diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 771780aa8..9c123c980 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,6 @@ jobs: uses: ./.github/workflows/test.yml with: - python-version: "3.10" + python-version: "3.12" secrets: inherit diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e61c1978b..f4af78611 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,7 @@ jobs: - "3.9" - "3.10" - "3.11" + - "3.12" uses: ./.github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f3c633c5c..0589f32ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -360,7 +360,7 @@ jobs: - name: Install Protobuf compiler run: | - python3 -m pip install grpcio-tools==1.54.2 + python3 -m pip install grpcio-tools==1.66.2 - name: Check Protobuf generation run: bash scripts/generate_protobuf_bindings.sh diff --git a/unified_planning/grpc/generated/unified_planning_pb2.py b/unified_planning/grpc/generated/unified_planning_pb2.py index adcc56996..a90a0ae05 100644 --- a/unified_planning/grpc/generated/unified_planning_pb2.py +++ b/unified_planning/grpc/generated/unified_planning_pb2.py @@ -1,11 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: unified_planning.proto +# Protobuf Python Version: 5.27.2 """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 27, + 2, + '', + 'unified_planning.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,149 +26,149 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16unified_planning.proto\"i\n\nExpression\x12\x13\n\x04\x61tom\x18\x01 \x01(\x0b\x32\x05.Atom\x12\x19\n\x04list\x18\x02 \x03(\x0b\x32\x0b.Expression\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x1d\n\x04kind\x18\x04 \x01(\x0e\x32\x0f.ExpressionKind\"\\\n\x04\x41tom\x12\x10\n\x06symbol\x18\x01 \x01(\tH\x00\x12\r\n\x03int\x18\x02 \x01(\x03H\x00\x12\x15\n\x04real\x18\x03 \x01(\x0b\x32\x05.RealH\x00\x12\x11\n\x07\x62oolean\x18\x04 \x01(\x08H\x00\x42\t\n\x07\x63ontent\".\n\x04Real\x12\x11\n\tnumerator\x18\x01 \x01(\x03\x12\x13\n\x0b\x64\x65nominator\x18\x02 \x01(\x03\"9\n\x0fTypeDeclaration\x12\x11\n\ttype_name\x18\x01 \x01(\t\x12\x13\n\x0bparent_type\x18\x02 \x01(\t\"\'\n\tParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"n\n\x06\x46luent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\nvalue_type\x18\x02 \x01(\t\x12\x1e\n\nparameters\x18\x03 \x03(\x0b\x32\n.Parameter\x12\"\n\rdefault_value\x18\x04 \x01(\x0b\x32\x0b.Expression\"/\n\x11ObjectDeclaration\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\"\xea\x01\n\x10\x45\x66\x66\x65\x63tExpression\x12*\n\x04kind\x18\x01 \x01(\x0e\x32\x1c.EffectExpression.EffectKind\x12\x1b\n\x06\x66luent\x18\x02 \x01(\x0b\x32\x0b.Expression\x12\x1a\n\x05value\x18\x03 \x01(\x0b\x32\x0b.Expression\x12\x1e\n\tcondition\x18\x04 \x01(\x0b\x32\x0b.Expression\x12\x1b\n\x06\x66orall\x18\x05 \x03(\x0b\x32\x0b.Expression\"4\n\nEffectKind\x12\n\n\x06\x41SSIGN\x10\x00\x12\x0c\n\x08INCREASE\x10\x01\x12\x0c\n\x08\x44\x45\x43REASE\x10\x02\"M\n\x06\x45\x66\x66\x65\x63t\x12!\n\x06\x65\x66\x66\x65\x63t\x18\x01 \x01(\x0b\x32\x11.EffectExpression\x12 \n\x0foccurrence_time\x18\x02 \x01(\x0b\x32\x07.Timing\"C\n\tCondition\x12\x19\n\x04\x63ond\x18\x01 \x01(\x0b\x32\x0b.Expression\x12\x1b\n\x04span\x18\x02 \x01(\x0b\x32\r.TimeInterval\"\x8d\x01\n\x06\x41\x63tion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\nparameters\x18\x02 \x03(\x0b\x32\n.Parameter\x12\x1b\n\x08\x64uration\x18\x03 \x01(\x0b\x32\t.Duration\x12\x1e\n\nconditions\x18\x04 \x03(\x0b\x32\n.Condition\x12\x18\n\x07\x65\x66\x66\x65\x63ts\x18\x05 \x03(\x0b\x32\x07.Effect\"\x90\x01\n\tTimepoint\x12&\n\x04kind\x18\x01 \x01(\x0e\x32\x18.Timepoint.TimepointKind\x12\x14\n\x0c\x63ontainer_id\x18\x02 \x01(\t\"E\n\rTimepointKind\x12\x10\n\x0cGLOBAL_START\x10\x00\x12\x0e\n\nGLOBAL_END\x10\x01\x12\t\n\x05START\x10\x02\x12\x07\n\x03\x45ND\x10\x03\"=\n\x06Timing\x12\x1d\n\ttimepoint\x18\x01 \x01(\x0b\x32\n.Timepoint\x12\x14\n\x05\x64\x65lay\x18\x02 \x01(\x0b\x32\x05.Real\"o\n\x08Interval\x12\x14\n\x0cis_left_open\x18\x01 \x01(\x08\x12\x1a\n\x05lower\x18\x02 \x01(\x0b\x32\x0b.Expression\x12\x15\n\ris_right_open\x18\x03 \x01(\x08\x12\x1a\n\x05upper\x18\x04 \x01(\x0b\x32\x0b.Expression\"k\n\x0cTimeInterval\x12\x14\n\x0cis_left_open\x18\x01 \x01(\x08\x12\x16\n\x05lower\x18\x02 \x01(\x0b\x32\x07.Timing\x12\x15\n\ris_right_open\x18\x03 \x01(\x08\x12\x16\n\x05upper\x18\x04 \x01(\x0b\x32\x07.Timing\"5\n\x08\x44uration\x12)\n\x16\x63ontrollable_in_bounds\x18\x01 \x01(\x0b\x32\t.Interval\"G\n\x17\x41\x62stractTaskDeclaration\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\nparameters\x18\x02 \x03(\x0b\x32\n.Parameter\"F\n\x04Task\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttask_name\x18\x02 \x01(\t\x12\x1f\n\nparameters\x18\x03 \x03(\x0b\x32\x0b.Expression\"\xaf\x01\n\x06Method\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\nparameters\x18\x02 \x03(\x0b\x32\n.Parameter\x12\x1c\n\rachieved_task\x18\x03 \x01(\x0b\x32\x05.Task\x12\x17\n\x08subtasks\x18\x04 \x03(\x0b\x32\x05.Task\x12 \n\x0b\x63onstraints\x18\x05 \x03(\x0b\x32\x0b.Expression\x12\x1e\n\nconditions\x18\x06 \x03(\x0b\x32\n.Condition\"g\n\x0bTaskNetwork\x12\x1d\n\tvariables\x18\x01 \x03(\x0b\x32\n.Parameter\x12\x17\n\x08subtasks\x18\x02 \x03(\x0b\x32\x05.Task\x12 \n\x0b\x63onstraints\x18\x03 \x03(\x0b\x32\x0b.Expression\"\x83\x01\n\tHierarchy\x12\x30\n\x0e\x61\x62stract_tasks\x18\x01 \x03(\x0b\x32\x18.AbstractTaskDeclaration\x12\x18\n\x07methods\x18\x02 \x03(\x0b\x32\x07.Method\x12*\n\x14initial_task_network\x18\x03 \x01(\x0b\x32\x0c.TaskNetwork\"\xb1\x01\n\x08\x41\x63tivity\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1e\n\nparameters\x18\x02 \x03(\x0b\x32\n.Parameter\x12\x1b\n\x08\x64uration\x18\x03 \x01(\x0b\x32\t.Duration\x12\x1e\n\nconditions\x18\x04 \x03(\x0b\x32\n.Condition\x12\x18\n\x07\x65\x66\x66\x65\x63ts\x18\x05 \x03(\x0b\x32\x07.Effect\x12 \n\x0b\x63onstraints\x18\x06 \x03(\x0b\x32\x0b.Expression\"u\n\x13SchedulingExtension\x12\x1d\n\nactivities\x18\x01 \x03(\x0b\x32\t.Activity\x12\x1d\n\tvariables\x18\x02 \x03(\x0b\x32\n.Parameter\x12 \n\x0b\x63onstraints\x18\x05 \x03(\x0b\x32\x0b.Expression\"\xa3\x01\n\x08Schedule\x12\x12\n\nactivities\x18\x01 \x03(\t\x12@\n\x14variable_assignments\x18\x02 \x03(\x0b\x32\".Schedule.VariableAssignmentsEntry\x1a\x41\n\x18VariableAssignmentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x14\n\x05value\x18\x02 \x01(\x0b\x32\x05.Atom:\x02\x38\x01\"@\n\x04Goal\x12\x19\n\x04goal\x18\x01 \x01(\x0b\x32\x0b.Expression\x12\x1d\n\x06timing\x18\x02 \x01(\x0b\x32\r.TimeInterval\"R\n\x0bTimedEffect\x12!\n\x06\x65\x66\x66\x65\x63t\x18\x01 \x01(\x0b\x32\x11.EffectExpression\x12 \n\x0foccurrence_time\x18\x02 \x01(\x0b\x32\x07.Timing\"E\n\nAssignment\x12\x1b\n\x06\x66luent\x18\x01 \x01(\x0b\x32\x0b.Expression\x12\x1a\n\x05value\x18\x02 \x01(\x0b\x32\x0b.Expression\"B\n\x0eGoalWithWeight\x12\x19\n\x04goal\x18\x01 \x01(\x0b\x32\x0b.Expression\x12\x15\n\x06weight\x18\x02 \x01(\x0b\x32\x05.Real\"f\n\x13TimedGoalWithWeight\x12\x19\n\x04goal\x18\x01 \x01(\x0b\x32\x0b.Expression\x12\x1d\n\x06timing\x18\x02 \x01(\x0b\x32\r.TimeInterval\x12\x15\n\x06weight\x18\x03 \x01(\x0b\x32\x05.Real\"\x9c\x04\n\x06Metric\x12 \n\x04kind\x18\x01 \x01(\x0e\x32\x12.Metric.MetricKind\x12\x1f\n\nexpression\x18\x02 \x01(\x0b\x32\x0b.Expression\x12.\n\x0c\x61\x63tion_costs\x18\x03 \x03(\x0b\x32\x18.Metric.ActionCostsEntry\x12(\n\x13\x64\x65\x66\x61ult_action_cost\x18\x04 \x01(\x0b\x32\x0b.Expression\x12\x1e\n\x05goals\x18\x05 \x03(\x0b\x32\x0f.GoalWithWeight\x12)\n\x0btimed_goals\x18\x06 \x03(\x0b\x32\x14.TimedGoalWithWeight\x1a?\n\x10\x41\x63tionCostsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1a\n\x05value\x18\x02 \x01(\x0b\x32\x0b.Expression:\x02\x38\x01\"\xe8\x01\n\nMetricKind\x12\x19\n\x15MINIMIZE_ACTION_COSTS\x10\x00\x12#\n\x1fMINIMIZE_SEQUENTIAL_PLAN_LENGTH\x10\x01\x12\x15\n\x11MINIMIZE_MAKESPAN\x10\x02\x12&\n\"MINIMIZE_EXPRESSION_ON_FINAL_STATE\x10\x03\x12&\n\"MAXIMIZE_EXPRESSION_ON_FINAL_STATE\x10\x04\x12\x14\n\x10OVERSUBSCRIPTION\x10\x05\x12\x1d\n\x19TEMPORAL_OVERSUBSCRIPTION\x10\x06\"\x8c\x04\n\x07Problem\x12\x13\n\x0b\x64omain_name\x18\x01 \x01(\t\x12\x14\n\x0cproblem_name\x18\x02 \x01(\t\x12\x1f\n\x05types\x18\x03 \x03(\x0b\x32\x10.TypeDeclaration\x12\x18\n\x07\x66luents\x18\x04 \x03(\x0b\x32\x07.Fluent\x12#\n\x07objects\x18\x05 \x03(\x0b\x32\x12.ObjectDeclaration\x12\x18\n\x07\x61\x63tions\x18\x06 \x03(\x0b\x32\x07.Action\x12\"\n\rinitial_state\x18\x07 \x03(\x0b\x32\x0b.Assignment\x12#\n\rtimed_effects\x18\x08 \x03(\x0b\x32\x0c.TimedEffect\x12\x14\n\x05goals\x18\t \x03(\x0b\x32\x05.Goal\x12\x1a\n\x08\x66\x65\x61tures\x18\n \x03(\x0e\x32\x08.Feature\x12\x18\n\x07metrics\x18\x0b \x03(\x0b\x32\x07.Metric\x12\x1d\n\thierarchy\x18\x0c \x01(\x0b\x32\n.Hierarchy\x12\x32\n\x14scheduling_extension\x18\x11 \x01(\x0b\x32\x14.SchedulingExtension\x12+\n\x16trajectory_constraints\x18\r \x03(\x0b\x32\x0b.Expression\x12\x15\n\rdiscrete_time\x18\x0e \x01(\x08\x12\x18\n\x10self_overlapping\x18\x0f \x01(\x08\x12\x16\n\x07\x65psilon\x18\x10 \x01(\x0b\x32\x05.Real\"\x80\x01\n\x0e\x41\x63tionInstance\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63tion_name\x18\x02 \x01(\t\x12\x19\n\nparameters\x18\x03 \x03(\x0b\x32\x05.Atom\x12\x19\n\nstart_time\x18\x04 \x01(\x0b\x32\x05.Real\x12\x17\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x05.Real\"\xae\x01\n\x0eMethodInstance\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0bmethod_name\x18\x02 \x01(\t\x12\x19\n\nparameters\x18\x03 \x03(\x0b\x32\x05.Atom\x12/\n\x08subtasks\x18\x06 \x03(\x0b\x32\x1d.MethodInstance.SubtasksEntry\x1a/\n\rSubtasksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x96\x01\n\rPlanHierarchy\x12\x31\n\nroot_tasks\x18\x01 \x03(\x0b\x32\x1d.PlanHierarchy.RootTasksEntry\x12 \n\x07methods\x18\x02 \x03(\x0b\x32\x0f.MethodInstance\x1a\x30\n\x0eRootTasksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"h\n\x04Plan\x12 \n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x0f.ActionInstance\x12!\n\thierarchy\x18\x02 \x01(\x0b\x32\x0e.PlanHierarchy\x12\x1b\n\x08schedule\x18\x03 \x01(\x0b\x32\t.Schedule\"\x83\x02\n\x0bPlanRequest\x12\x19\n\x07problem\x18\x01 \x01(\x0b\x32\x08.Problem\x12*\n\x0fresolution_mode\x18\x02 \x01(\x0e\x32\x11.PlanRequest.Mode\x12\x0f\n\x07timeout\x18\x03 \x01(\x01\x12\x37\n\x0e\x65ngine_options\x18\x04 \x03(\x0b\x32\x1f.PlanRequest.EngineOptionsEntry\x1a\x34\n\x12\x45ngineOptionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"-\n\x04Mode\x12\x0f\n\x0bSATISFIABLE\x10\x00\x12\x14\n\x10SOLVED_OPTIMALLY\x10\x01\"C\n\x11ValidationRequest\x12\x19\n\x07problem\x18\x01 \x01(\x0b\x32\x08.Problem\x12\x13\n\x04plan\x18\x02 \x01(\x0b\x32\x05.Plan\"{\n\nLogMessage\x12#\n\x05level\x18\x01 \x01(\x0e\x32\x14.LogMessage.LogLevel\x12\x0f\n\x07message\x18\x02 \x01(\t\"7\n\x08LogLevel\x12\t\n\x05\x44\x45\x42UG\x10\x00\x12\x08\n\x04INFO\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"\xbf\x03\n\x14PlanGenerationResult\x12,\n\x06status\x18\x01 \x01(\x0e\x32\x1c.PlanGenerationResult.Status\x12\x13\n\x04plan\x18\x02 \x01(\x0b\x32\x05.Plan\x12\x33\n\x07metrics\x18\x03 \x03(\x0b\x32\".PlanGenerationResult.MetricsEntry\x12!\n\x0clog_messages\x18\x04 \x03(\x0b\x32\x0b.LogMessage\x12\x17\n\x06\x65ngine\x18\x05 \x01(\x0b\x32\x07.Engine\x1a.\n\x0cMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xc2\x01\n\x06Status\x12\x16\n\x12SOLVED_SATISFICING\x10\x00\x12\x14\n\x10SOLVED_OPTIMALLY\x10\x01\x12\x15\n\x11UNSOLVABLE_PROVEN\x10\x02\x12\x1b\n\x17UNSOLVABLE_INCOMPLETELY\x10\x03\x12\x0b\n\x07TIMEOUT\x10\r\x12\n\n\x06MEMOUT\x10\x0e\x12\x12\n\x0eINTERNAL_ERROR\x10\x0f\x12\x17\n\x13UNSUPPORTED_PROBLEM\x10\x10\x12\x10\n\x0cINTERMEDIATE\x10\x11\"\x16\n\x06\x45ngine\x12\x0c\n\x04name\x18\x01 \x01(\t\"\xa8\x02\n\x10ValidationResult\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32(.ValidationResult.ValidationResultStatus\x12/\n\x07metrics\x18\x04 \x03(\x0b\x32\x1e.ValidationResult.MetricsEntry\x12!\n\x0clog_messages\x18\x02 \x03(\x0b\x32\x0b.LogMessage\x12\x17\n\x06\x65ngine\x18\x03 \x01(\x0b\x32\x07.Engine\x1a.\n\x0cMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"=\n\x16ValidationResultStatus\x12\t\n\x05VALID\x10\x00\x12\x0b\n\x07INVALID\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\"\xc4\x02\n\x0e\x43ompilerResult\x12\x19\n\x07problem\x18\x01 \x01(\x0b\x32\x08.Problem\x12\x37\n\rmap_back_plan\x18\x02 \x03(\x0b\x32 .CompilerResult.MapBackPlanEntry\x12-\n\x07metrics\x18\x05 \x03(\x0b\x32\x1c.CompilerResult.MetricsEntry\x12!\n\x0clog_messages\x18\x03 \x03(\x0b\x32\x0b.LogMessage\x12\x17\n\x06\x65ngine\x18\x04 \x01(\x0b\x32\x07.Engine\x1a\x43\n\x10MapBackPlanEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1e\n\x05value\x18\x02 \x01(\x0b\x32\x0f.ActionInstance:\x02\x38\x01\x1a.\n\x0cMetricsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*\xb0\x01\n\x0e\x45xpressionKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0c\n\x08\x43ONSTANT\x10\x01\x12\r\n\tPARAMETER\x10\x02\x12\x0c\n\x08VARIABLE\x10\x07\x12\x11\n\rFLUENT_SYMBOL\x10\x03\x12\x13\n\x0f\x46UNCTION_SYMBOL\x10\x04\x12\x12\n\x0eSTATE_VARIABLE\x10\x05\x12\x18\n\x14\x46UNCTION_APPLICATION\x10\x06\x12\x10\n\x0c\x43ONTAINER_ID\x10\x08*\xd5\x0e\n\x07\x46\x65\x61ture\x12\x10\n\x0c\x41\x43TION_BASED\x10\x00\x12\x10\n\x0cHIERARCHICAL\x10\x1a\x12\x0e\n\nSCHEDULING\x10\x38\x12\x1b\n\x17SIMPLE_NUMERIC_PLANNING\x10\x1e\x12\x1c\n\x18GENERAL_NUMERIC_PLANNING\x10\x1f\x12\x13\n\x0f\x43ONTINUOUS_TIME\x10\x01\x12\x11\n\rDISCRETE_TIME\x10\x02\x12\'\n#INTERMEDIATE_CONDITIONS_AND_EFFECTS\x10\x03\x12#\n\x1f\x45XTERNAL_CONDITIONS_AND_EFFECTS\x10\'\x12\x11\n\rTIMED_EFFECTS\x10\x04\x12\x0f\n\x0bTIMED_GOALS\x10\x05\x12\x19\n\x15\x44URATION_INEQUALITIES\x10\x06\x12\x14\n\x10SELF_OVERLAPPING\x10/\x12\x1f\n\x1bSTATIC_FLUENTS_IN_DURATIONS\x10\x1b\x12\x18\n\x14\x46LUENTS_IN_DURATIONS\x10\x1c\x12\x17\n\x13REAL_TYPE_DURATIONS\x10>\x12\x16\n\x12INT_TYPE_DURATIONS\x10?\x12\x16\n\x12\x43ONTINUOUS_NUMBERS\x10\x07\x12\x14\n\x10\x44ISCRETE_NUMBERS\x10\x08\x12\x11\n\rBOUNDED_TYPES\x10&\x12\x17\n\x13NEGATIVE_CONDITIONS\x10\t\x12\x1a\n\x16\x44ISJUNCTIVE_CONDITIONS\x10\n\x12\x0e\n\nEQUALITIES\x10\x0b\x12\x1a\n\x16\x45XISTENTIAL_CONDITIONS\x10\x0c\x12\x18\n\x14UNIVERSAL_CONDITIONS\x10\r\x12\x17\n\x13\x43ONDITIONAL_EFFECTS\x10\x0e\x12\x14\n\x10INCREASE_EFFECTS\x10\x0f\x12\x14\n\x10\x44\x45\x43REASE_EFFECTS\x10\x10\x12)\n%STATIC_FLUENTS_IN_BOOLEAN_ASSIGNMENTS\x10)\x12)\n%STATIC_FLUENTS_IN_NUMERIC_ASSIGNMENTS\x10*\x12(\n$STATIC_FLUENTS_IN_OBJECT_ASSIGNMENTS\x10\x39\x12\"\n\x1e\x46LUENTS_IN_BOOLEAN_ASSIGNMENTS\x10+\x12\"\n\x1e\x46LUENTS_IN_NUMERIC_ASSIGNMENTS\x10,\x12!\n\x1d\x46LUENTS_IN_OBJECT_ASSIGNMENTS\x10:\x12\x12\n\x0e\x46ORALL_EFFECTS\x10;\x12\x0f\n\x0b\x46LAT_TYPING\x10\x11\x12\x17\n\x13HIERARCHICAL_TYPING\x10\x12\x12\x13\n\x0fNUMERIC_FLUENTS\x10\x13\x12\x12\n\x0eOBJECT_FLUENTS\x10\x14\x12\x0f\n\x0bINT_FLUENTS\x10<\x12\x10\n\x0cREAL_FLUENTS\x10=\x12\x1a\n\x16\x42OOL_FLUENT_PARAMETERS\x10\x32\x12!\n\x1d\x42OUNDED_INT_FLUENT_PARAMETERS\x10\x33\x12\x1a\n\x16\x42OOL_ACTION_PARAMETERS\x10\x34\x12!\n\x1d\x42OUNDED_INT_ACTION_PARAMETERS\x10\x35\x12#\n\x1fUNBOUNDED_INT_ACTION_PARAMETERS\x10\x36\x12\x1a\n\x16REAL_ACTION_PARAMETERS\x10\x37\x12\x10\n\x0c\x41\x43TIONS_COST\x10\x15\x12\x0f\n\x0b\x46INAL_VALUE\x10\x16\x12\x0c\n\x08MAKESPAN\x10\x17\x12\x0f\n\x0bPLAN_LENGTH\x10\x18\x12\x14\n\x10OVERSUBSCRIPTION\x10\x1d\x12\x1d\n\x19TEMPORAL_OVERSUBSCRIPTION\x10(\x12\"\n\x1eSTATIC_FLUENTS_IN_ACTIONS_COST\x10-\x12\x1b\n\x17\x46LUENTS_IN_ACTIONS_COST\x10.\x12 \n\x1cREAL_NUMBERS_IN_ACTIONS_COST\x10@\x12\x1f\n\x1bINT_NUMBERS_IN_ACTIONS_COST\x10\x41\x12$\n REAL_NUMBERS_IN_OVERSUBSCRIPTION\x10\x42\x12#\n\x1fINT_NUMBERS_IN_OVERSUBSCRIPTION\x10\x43\x12\x15\n\x11SIMULATED_EFFECTS\x10\x19\x12\x1a\n\x16TRAJECTORY_CONSTRAINTS\x10\x30\x12\x14\n\x10STATE_INVARIANTS\x10\x31\x12\x18\n\x14METHOD_PRECONDITIONS\x10 \x12\x1c\n\x18TASK_NETWORK_CONSTRAINTS\x10!\x12\"\n\x1eINITIAL_TASK_NETWORK_VARIABLES\x10\"\x12\x14\n\x10TASK_ORDER_TOTAL\x10#\x12\x16\n\x12TASK_ORDER_PARTIAL\x10$\x12\x17\n\x13TASK_ORDER_TEMPORAL\x10%\x12\x1d\n\x19UNDEFINED_INITIAL_NUMERIC\x10\x44\x12\x1e\n\x1aUNDEFINED_INITIAL_SYMBOLIC\x10\x45\x32\xd8\x01\n\x0fUnifiedPlanning\x12\x34\n\x0bplanAnytime\x12\x0c.PlanRequest\x1a\x15.PlanGenerationResult0\x01\x12\x32\n\x0bplanOneShot\x12\x0c.PlanRequest\x1a\x15.PlanGenerationResult\x12\x35\n\x0cvalidatePlan\x12\x12.ValidationRequest\x1a\x11.ValidationResult\x12$\n\x07\x63ompile\x12\x08.Problem\x1a\x0f.CompilerResultb\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'unified_planning_pb2', globals()) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - _SCHEDULE_VARIABLEASSIGNMENTSENTRY._options = None - _SCHEDULE_VARIABLEASSIGNMENTSENTRY._serialized_options = b'8\001' - _METRIC_ACTIONCOSTSENTRY._options = None - _METRIC_ACTIONCOSTSENTRY._serialized_options = b'8\001' - _METHODINSTANCE_SUBTASKSENTRY._options = None - _METHODINSTANCE_SUBTASKSENTRY._serialized_options = b'8\001' - _PLANHIERARCHY_ROOTTASKSENTRY._options = None - _PLANHIERARCHY_ROOTTASKSENTRY._serialized_options = b'8\001' - _PLANREQUEST_ENGINEOPTIONSENTRY._options = None - _PLANREQUEST_ENGINEOPTIONSENTRY._serialized_options = b'8\001' - _PLANGENERATIONRESULT_METRICSENTRY._options = None - _PLANGENERATIONRESULT_METRICSENTRY._serialized_options = b'8\001' - _VALIDATIONRESULT_METRICSENTRY._options = None - _VALIDATIONRESULT_METRICSENTRY._serialized_options = b'8\001' - _COMPILERRESULT_MAPBACKPLANENTRY._options = None - _COMPILERRESULT_MAPBACKPLANENTRY._serialized_options = b'8\001' - _COMPILERRESULT_METRICSENTRY._options = None - _COMPILERRESULT_METRICSENTRY._serialized_options = b'8\001' - _EXPRESSIONKIND._serialized_start=6166 - _EXPRESSIONKIND._serialized_end=6342 - _FEATURE._serialized_start=6345 - _FEATURE._serialized_end=8222 - _EXPRESSION._serialized_start=26 - _EXPRESSION._serialized_end=131 - _ATOM._serialized_start=133 - _ATOM._serialized_end=225 - _REAL._serialized_start=227 - _REAL._serialized_end=273 - _TYPEDECLARATION._serialized_start=275 - _TYPEDECLARATION._serialized_end=332 - _PARAMETER._serialized_start=334 - _PARAMETER._serialized_end=373 - _FLUENT._serialized_start=375 - _FLUENT._serialized_end=485 - _OBJECTDECLARATION._serialized_start=487 - _OBJECTDECLARATION._serialized_end=534 - _EFFECTEXPRESSION._serialized_start=537 - _EFFECTEXPRESSION._serialized_end=771 - _EFFECTEXPRESSION_EFFECTKIND._serialized_start=719 - _EFFECTEXPRESSION_EFFECTKIND._serialized_end=771 - _EFFECT._serialized_start=773 - _EFFECT._serialized_end=850 - _CONDITION._serialized_start=852 - _CONDITION._serialized_end=919 - _ACTION._serialized_start=922 - _ACTION._serialized_end=1063 - _TIMEPOINT._serialized_start=1066 - _TIMEPOINT._serialized_end=1210 - _TIMEPOINT_TIMEPOINTKIND._serialized_start=1141 - _TIMEPOINT_TIMEPOINTKIND._serialized_end=1210 - _TIMING._serialized_start=1212 - _TIMING._serialized_end=1273 - _INTERVAL._serialized_start=1275 - _INTERVAL._serialized_end=1386 - _TIMEINTERVAL._serialized_start=1388 - _TIMEINTERVAL._serialized_end=1495 - _DURATION._serialized_start=1497 - _DURATION._serialized_end=1550 - _ABSTRACTTASKDECLARATION._serialized_start=1552 - _ABSTRACTTASKDECLARATION._serialized_end=1623 - _TASK._serialized_start=1625 - _TASK._serialized_end=1695 - _METHOD._serialized_start=1698 - _METHOD._serialized_end=1873 - _TASKNETWORK._serialized_start=1875 - _TASKNETWORK._serialized_end=1978 - _HIERARCHY._serialized_start=1981 - _HIERARCHY._serialized_end=2112 - _ACTIVITY._serialized_start=2115 - _ACTIVITY._serialized_end=2292 - _SCHEDULINGEXTENSION._serialized_start=2294 - _SCHEDULINGEXTENSION._serialized_end=2411 - _SCHEDULE._serialized_start=2414 - _SCHEDULE._serialized_end=2577 - _SCHEDULE_VARIABLEASSIGNMENTSENTRY._serialized_start=2512 - _SCHEDULE_VARIABLEASSIGNMENTSENTRY._serialized_end=2577 - _GOAL._serialized_start=2579 - _GOAL._serialized_end=2643 - _TIMEDEFFECT._serialized_start=2645 - _TIMEDEFFECT._serialized_end=2727 - _ASSIGNMENT._serialized_start=2729 - _ASSIGNMENT._serialized_end=2798 - _GOALWITHWEIGHT._serialized_start=2800 - _GOALWITHWEIGHT._serialized_end=2866 - _TIMEDGOALWITHWEIGHT._serialized_start=2868 - _TIMEDGOALWITHWEIGHT._serialized_end=2970 - _METRIC._serialized_start=2973 - _METRIC._serialized_end=3513 - _METRIC_ACTIONCOSTSENTRY._serialized_start=3215 - _METRIC_ACTIONCOSTSENTRY._serialized_end=3278 - _METRIC_METRICKIND._serialized_start=3281 - _METRIC_METRICKIND._serialized_end=3513 - _PROBLEM._serialized_start=3516 - _PROBLEM._serialized_end=4040 - _ACTIONINSTANCE._serialized_start=4043 - _ACTIONINSTANCE._serialized_end=4171 - _METHODINSTANCE._serialized_start=4174 - _METHODINSTANCE._serialized_end=4348 - _METHODINSTANCE_SUBTASKSENTRY._serialized_start=4301 - _METHODINSTANCE_SUBTASKSENTRY._serialized_end=4348 - _PLANHIERARCHY._serialized_start=4351 - _PLANHIERARCHY._serialized_end=4501 - _PLANHIERARCHY_ROOTTASKSENTRY._serialized_start=4453 - _PLANHIERARCHY_ROOTTASKSENTRY._serialized_end=4501 - _PLAN._serialized_start=4503 - _PLAN._serialized_end=4607 - _PLANREQUEST._serialized_start=4610 - _PLANREQUEST._serialized_end=4869 - _PLANREQUEST_ENGINEOPTIONSENTRY._serialized_start=4770 - _PLANREQUEST_ENGINEOPTIONSENTRY._serialized_end=4822 - _PLANREQUEST_MODE._serialized_start=4824 - _PLANREQUEST_MODE._serialized_end=4869 - _VALIDATIONREQUEST._serialized_start=4871 - _VALIDATIONREQUEST._serialized_end=4938 - _LOGMESSAGE._serialized_start=4940 - _LOGMESSAGE._serialized_end=5063 - _LOGMESSAGE_LOGLEVEL._serialized_start=5008 - _LOGMESSAGE_LOGLEVEL._serialized_end=5063 - _PLANGENERATIONRESULT._serialized_start=5066 - _PLANGENERATIONRESULT._serialized_end=5513 - _PLANGENERATIONRESULT_METRICSENTRY._serialized_start=5270 - _PLANGENERATIONRESULT_METRICSENTRY._serialized_end=5316 - _PLANGENERATIONRESULT_STATUS._serialized_start=5319 - _PLANGENERATIONRESULT_STATUS._serialized_end=5513 - _ENGINE._serialized_start=5515 - _ENGINE._serialized_end=5537 - _VALIDATIONRESULT._serialized_start=5540 - _VALIDATIONRESULT._serialized_end=5836 - _VALIDATIONRESULT_METRICSENTRY._serialized_start=5270 - _VALIDATIONRESULT_METRICSENTRY._serialized_end=5316 - _VALIDATIONRESULT_VALIDATIONRESULTSTATUS._serialized_start=5775 - _VALIDATIONRESULT_VALIDATIONRESULTSTATUS._serialized_end=5836 - _COMPILERRESULT._serialized_start=5839 - _COMPILERRESULT._serialized_end=6163 - _COMPILERRESULT_MAPBACKPLANENTRY._serialized_start=6048 - _COMPILERRESULT_MAPBACKPLANENTRY._serialized_end=6115 - _COMPILERRESULT_METRICSENTRY._serialized_start=5270 - _COMPILERRESULT_METRICSENTRY._serialized_end=5316 - _UNIFIEDPLANNING._serialized_start=8225 - _UNIFIEDPLANNING._serialized_end=8441 +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'unified_planning_pb2', _globals) +if not _descriptor._USE_C_DESCRIPTORS: + DESCRIPTOR._loaded_options = None + _globals['_SCHEDULE_VARIABLEASSIGNMENTSENTRY']._loaded_options = None + _globals['_SCHEDULE_VARIABLEASSIGNMENTSENTRY']._serialized_options = b'8\001' + _globals['_METRIC_ACTIONCOSTSENTRY']._loaded_options = None + _globals['_METRIC_ACTIONCOSTSENTRY']._serialized_options = b'8\001' + _globals['_METHODINSTANCE_SUBTASKSENTRY']._loaded_options = None + _globals['_METHODINSTANCE_SUBTASKSENTRY']._serialized_options = b'8\001' + _globals['_PLANHIERARCHY_ROOTTASKSENTRY']._loaded_options = None + _globals['_PLANHIERARCHY_ROOTTASKSENTRY']._serialized_options = b'8\001' + _globals['_PLANREQUEST_ENGINEOPTIONSENTRY']._loaded_options = None + _globals['_PLANREQUEST_ENGINEOPTIONSENTRY']._serialized_options = b'8\001' + _globals['_PLANGENERATIONRESULT_METRICSENTRY']._loaded_options = None + _globals['_PLANGENERATIONRESULT_METRICSENTRY']._serialized_options = b'8\001' + _globals['_VALIDATIONRESULT_METRICSENTRY']._loaded_options = None + _globals['_VALIDATIONRESULT_METRICSENTRY']._serialized_options = b'8\001' + _globals['_COMPILERRESULT_MAPBACKPLANENTRY']._loaded_options = None + _globals['_COMPILERRESULT_MAPBACKPLANENTRY']._serialized_options = b'8\001' + _globals['_COMPILERRESULT_METRICSENTRY']._loaded_options = None + _globals['_COMPILERRESULT_METRICSENTRY']._serialized_options = b'8\001' + _globals['_EXPRESSIONKIND']._serialized_start=6166 + _globals['_EXPRESSIONKIND']._serialized_end=6342 + _globals['_FEATURE']._serialized_start=6345 + _globals['_FEATURE']._serialized_end=8222 + _globals['_EXPRESSION']._serialized_start=26 + _globals['_EXPRESSION']._serialized_end=131 + _globals['_ATOM']._serialized_start=133 + _globals['_ATOM']._serialized_end=225 + _globals['_REAL']._serialized_start=227 + _globals['_REAL']._serialized_end=273 + _globals['_TYPEDECLARATION']._serialized_start=275 + _globals['_TYPEDECLARATION']._serialized_end=332 + _globals['_PARAMETER']._serialized_start=334 + _globals['_PARAMETER']._serialized_end=373 + _globals['_FLUENT']._serialized_start=375 + _globals['_FLUENT']._serialized_end=485 + _globals['_OBJECTDECLARATION']._serialized_start=487 + _globals['_OBJECTDECLARATION']._serialized_end=534 + _globals['_EFFECTEXPRESSION']._serialized_start=537 + _globals['_EFFECTEXPRESSION']._serialized_end=771 + _globals['_EFFECTEXPRESSION_EFFECTKIND']._serialized_start=719 + _globals['_EFFECTEXPRESSION_EFFECTKIND']._serialized_end=771 + _globals['_EFFECT']._serialized_start=773 + _globals['_EFFECT']._serialized_end=850 + _globals['_CONDITION']._serialized_start=852 + _globals['_CONDITION']._serialized_end=919 + _globals['_ACTION']._serialized_start=922 + _globals['_ACTION']._serialized_end=1063 + _globals['_TIMEPOINT']._serialized_start=1066 + _globals['_TIMEPOINT']._serialized_end=1210 + _globals['_TIMEPOINT_TIMEPOINTKIND']._serialized_start=1141 + _globals['_TIMEPOINT_TIMEPOINTKIND']._serialized_end=1210 + _globals['_TIMING']._serialized_start=1212 + _globals['_TIMING']._serialized_end=1273 + _globals['_INTERVAL']._serialized_start=1275 + _globals['_INTERVAL']._serialized_end=1386 + _globals['_TIMEINTERVAL']._serialized_start=1388 + _globals['_TIMEINTERVAL']._serialized_end=1495 + _globals['_DURATION']._serialized_start=1497 + _globals['_DURATION']._serialized_end=1550 + _globals['_ABSTRACTTASKDECLARATION']._serialized_start=1552 + _globals['_ABSTRACTTASKDECLARATION']._serialized_end=1623 + _globals['_TASK']._serialized_start=1625 + _globals['_TASK']._serialized_end=1695 + _globals['_METHOD']._serialized_start=1698 + _globals['_METHOD']._serialized_end=1873 + _globals['_TASKNETWORK']._serialized_start=1875 + _globals['_TASKNETWORK']._serialized_end=1978 + _globals['_HIERARCHY']._serialized_start=1981 + _globals['_HIERARCHY']._serialized_end=2112 + _globals['_ACTIVITY']._serialized_start=2115 + _globals['_ACTIVITY']._serialized_end=2292 + _globals['_SCHEDULINGEXTENSION']._serialized_start=2294 + _globals['_SCHEDULINGEXTENSION']._serialized_end=2411 + _globals['_SCHEDULE']._serialized_start=2414 + _globals['_SCHEDULE']._serialized_end=2577 + _globals['_SCHEDULE_VARIABLEASSIGNMENTSENTRY']._serialized_start=2512 + _globals['_SCHEDULE_VARIABLEASSIGNMENTSENTRY']._serialized_end=2577 + _globals['_GOAL']._serialized_start=2579 + _globals['_GOAL']._serialized_end=2643 + _globals['_TIMEDEFFECT']._serialized_start=2645 + _globals['_TIMEDEFFECT']._serialized_end=2727 + _globals['_ASSIGNMENT']._serialized_start=2729 + _globals['_ASSIGNMENT']._serialized_end=2798 + _globals['_GOALWITHWEIGHT']._serialized_start=2800 + _globals['_GOALWITHWEIGHT']._serialized_end=2866 + _globals['_TIMEDGOALWITHWEIGHT']._serialized_start=2868 + _globals['_TIMEDGOALWITHWEIGHT']._serialized_end=2970 + _globals['_METRIC']._serialized_start=2973 + _globals['_METRIC']._serialized_end=3513 + _globals['_METRIC_ACTIONCOSTSENTRY']._serialized_start=3215 + _globals['_METRIC_ACTIONCOSTSENTRY']._serialized_end=3278 + _globals['_METRIC_METRICKIND']._serialized_start=3281 + _globals['_METRIC_METRICKIND']._serialized_end=3513 + _globals['_PROBLEM']._serialized_start=3516 + _globals['_PROBLEM']._serialized_end=4040 + _globals['_ACTIONINSTANCE']._serialized_start=4043 + _globals['_ACTIONINSTANCE']._serialized_end=4171 + _globals['_METHODINSTANCE']._serialized_start=4174 + _globals['_METHODINSTANCE']._serialized_end=4348 + _globals['_METHODINSTANCE_SUBTASKSENTRY']._serialized_start=4301 + _globals['_METHODINSTANCE_SUBTASKSENTRY']._serialized_end=4348 + _globals['_PLANHIERARCHY']._serialized_start=4351 + _globals['_PLANHIERARCHY']._serialized_end=4501 + _globals['_PLANHIERARCHY_ROOTTASKSENTRY']._serialized_start=4453 + _globals['_PLANHIERARCHY_ROOTTASKSENTRY']._serialized_end=4501 + _globals['_PLAN']._serialized_start=4503 + _globals['_PLAN']._serialized_end=4607 + _globals['_PLANREQUEST']._serialized_start=4610 + _globals['_PLANREQUEST']._serialized_end=4869 + _globals['_PLANREQUEST_ENGINEOPTIONSENTRY']._serialized_start=4770 + _globals['_PLANREQUEST_ENGINEOPTIONSENTRY']._serialized_end=4822 + _globals['_PLANREQUEST_MODE']._serialized_start=4824 + _globals['_PLANREQUEST_MODE']._serialized_end=4869 + _globals['_VALIDATIONREQUEST']._serialized_start=4871 + _globals['_VALIDATIONREQUEST']._serialized_end=4938 + _globals['_LOGMESSAGE']._serialized_start=4940 + _globals['_LOGMESSAGE']._serialized_end=5063 + _globals['_LOGMESSAGE_LOGLEVEL']._serialized_start=5008 + _globals['_LOGMESSAGE_LOGLEVEL']._serialized_end=5063 + _globals['_PLANGENERATIONRESULT']._serialized_start=5066 + _globals['_PLANGENERATIONRESULT']._serialized_end=5513 + _globals['_PLANGENERATIONRESULT_METRICSENTRY']._serialized_start=5270 + _globals['_PLANGENERATIONRESULT_METRICSENTRY']._serialized_end=5316 + _globals['_PLANGENERATIONRESULT_STATUS']._serialized_start=5319 + _globals['_PLANGENERATIONRESULT_STATUS']._serialized_end=5513 + _globals['_ENGINE']._serialized_start=5515 + _globals['_ENGINE']._serialized_end=5537 + _globals['_VALIDATIONRESULT']._serialized_start=5540 + _globals['_VALIDATIONRESULT']._serialized_end=5836 + _globals['_VALIDATIONRESULT_METRICSENTRY']._serialized_start=5270 + _globals['_VALIDATIONRESULT_METRICSENTRY']._serialized_end=5316 + _globals['_VALIDATIONRESULT_VALIDATIONRESULTSTATUS']._serialized_start=5775 + _globals['_VALIDATIONRESULT_VALIDATIONRESULTSTATUS']._serialized_end=5836 + _globals['_COMPILERRESULT']._serialized_start=5839 + _globals['_COMPILERRESULT']._serialized_end=6163 + _globals['_COMPILERRESULT_MAPBACKPLANENTRY']._serialized_start=6048 + _globals['_COMPILERRESULT_MAPBACKPLANENTRY']._serialized_end=6115 + _globals['_COMPILERRESULT_METRICSENTRY']._serialized_start=5270 + _globals['_COMPILERRESULT_METRICSENTRY']._serialized_end=5316 + _globals['_UNIFIEDPLANNING']._serialized_start=8225 + _globals['_UNIFIEDPLANNING']._serialized_end=8441 # @@protoc_insertion_point(module_scope) diff --git a/unified_planning/grpc/generated/unified_planning_pb2_grpc.py b/unified_planning/grpc/generated/unified_planning_pb2_grpc.py index 4d8b80d57..52867c4c0 100644 --- a/unified_planning/grpc/generated/unified_planning_pb2_grpc.py +++ b/unified_planning/grpc/generated/unified_planning_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings import unified_planning.grpc.generated.unified_planning_pb2 as unified__planning__pb2 +GRPC_GENERATED_VERSION = '1.66.2' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in unified_planning_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class UnifiedPlanningStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,22 +38,22 @@ def __init__(self, channel): '/UnifiedPlanning/planAnytime', request_serializer=unified__planning__pb2.PlanRequest.SerializeToString, response_deserializer=unified__planning__pb2.PlanGenerationResult.FromString, - ) + _registered_method=True) self.planOneShot = channel.unary_unary( '/UnifiedPlanning/planOneShot', request_serializer=unified__planning__pb2.PlanRequest.SerializeToString, response_deserializer=unified__planning__pb2.PlanGenerationResult.FromString, - ) + _registered_method=True) self.validatePlan = channel.unary_unary( '/UnifiedPlanning/validatePlan', request_serializer=unified__planning__pb2.ValidationRequest.SerializeToString, response_deserializer=unified__planning__pb2.ValidationResult.FromString, - ) + _registered_method=True) self.compile = channel.unary_unary( '/UnifiedPlanning/compile', request_serializer=unified__planning__pb2.Problem.SerializeToString, response_deserializer=unified__planning__pb2.CompilerResult.FromString, - ) + _registered_method=True) class UnifiedPlanningServicer(object): @@ -100,6 +120,7 @@ def add_UnifiedPlanningServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'UnifiedPlanning', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('UnifiedPlanning', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -117,11 +138,21 @@ def planAnytime(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/UnifiedPlanning/planAnytime', + return grpc.experimental.unary_stream( + request, + target, + '/UnifiedPlanning/planAnytime', unified__planning__pb2.PlanRequest.SerializeToString, unified__planning__pb2.PlanGenerationResult.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def planOneShot(request, @@ -134,11 +165,21 @@ def planOneShot(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/UnifiedPlanning/planOneShot', + return grpc.experimental.unary_unary( + request, + target, + '/UnifiedPlanning/planOneShot', unified__planning__pb2.PlanRequest.SerializeToString, unified__planning__pb2.PlanGenerationResult.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def validatePlan(request, @@ -151,11 +192,21 @@ def validatePlan(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/UnifiedPlanning/validatePlan', + return grpc.experimental.unary_unary( + request, + target, + '/UnifiedPlanning/validatePlan', unified__planning__pb2.ValidationRequest.SerializeToString, unified__planning__pb2.ValidationResult.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def compile(request, @@ -168,8 +219,18 @@ def compile(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/UnifiedPlanning/compile', + return grpc.experimental.unary_unary( + request, + target, + '/UnifiedPlanning/compile', unified__planning__pb2.Problem.SerializeToString, unified__planning__pb2.CompilerResult.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True)