luminarycloud 0.18.0__py3-none-any.whl → 0.18.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- luminarycloud/__init__.py +4 -0
- luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2.py +88 -55
- luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2.pyi +108 -1
- luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2_grpc.py +35 -0
- luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2_grpc.pyi +16 -0
- luminarycloud/_proto/client/simulation_pb2.py +234 -234
- luminarycloud/_proto/client/simulation_pb2.pyi +5 -1
- luminarycloud/_proto/output/output_pb2.py +43 -36
- luminarycloud/_proto/output/output_pb2.pyi +28 -1
- luminarycloud/_proto/quantity/quantity_options_pb2.py +5 -4
- luminarycloud/_proto/quantity/quantity_options_pb2.pyi +4 -0
- luminarycloud/_proto/quantity/quantity_pb2.py +8 -8
- luminarycloud/enum/__init__.py +1 -0
- luminarycloud/enum/moment_convention_type.py +19 -0
- luminarycloud/outputs/output_definitions.py +5 -0
- luminarycloud/params/simulation/monitor_plane_.py +1 -1
- luminarycloud/physics_ai/inference.py +14 -3
- luminarycloud/pipelines/operators.py +4 -4
- luminarycloud/project.py +1 -1
- luminarycloud/simulation.py +6 -0
- luminarycloud/simulation_param.py +4 -2
- luminarycloud/simulation_queue.py +130 -0
- luminarycloud/simulation_template.py +6 -1
- luminarycloud/types/adfloat.py +3 -0
- luminarycloud/vis/interactive_scene.py +14 -1
- luminarycloud/vis/visualization.py +16 -0
- {luminarycloud-0.18.0.dist-info → luminarycloud-0.18.1.dist-info}/METADATA +1 -1
- {luminarycloud-0.18.0.dist-info → luminarycloud-0.18.1.dist-info}/RECORD +29 -27
- {luminarycloud-0.18.0.dist-info → luminarycloud-0.18.1.dist-info}/WHEEL +0 -0
luminarycloud/__init__.py
CHANGED
|
@@ -63,6 +63,10 @@ from .volume_selection import (
|
|
|
63
63
|
from .named_variable_set import (
|
|
64
64
|
NamedVariableSet as NamedVariableSet,
|
|
65
65
|
)
|
|
66
|
+
from .simulation_queue import (
|
|
67
|
+
iterate_simulation_status_queue as iterate_simulation_status_queue,
|
|
68
|
+
SimulationQueueStatus as SimulationQueueStatus,
|
|
69
|
+
)
|
|
66
70
|
|
|
67
71
|
# Log SDK version number
|
|
68
72
|
logger = _logging.getLogger("luminarycloud")
|
|
@@ -19,11 +19,12 @@ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
|
19
19
|
from luminarycloud._proto.base import base_pb2 as proto_dot_base_dot_base__pb2
|
|
20
20
|
from luminarycloud._proto.quantity import quantity_pb2 as proto_dot_quantity_dot_quantity__pb2
|
|
21
21
|
from luminarycloud._proto.output import reference_values_pb2 as proto_dot_output_dot_reference__values__pb2
|
|
22
|
+
from luminarycloud._proto.output import output_pb2 as proto_dot_output_dot_output__pb2
|
|
22
23
|
from luminarycloud._proto.client import simulation_pb2 as proto_dot_client_dot_simulation__pb2
|
|
23
24
|
from luminarycloud._proto.api.v0.luminarycloud.common import common_pb2 as proto_dot_api_dot_v0_dot_luminarycloud_dot_common_dot_common__pb2
|
|
24
25
|
|
|
25
26
|
|
|
26
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6proto/api/v0/luminarycloud/simulation/simulation.proto\x12.luminary.proto.api.v0.luminarycloud.simulation\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x15proto/base/base.proto\x1a\x1dproto/quantity/quantity.proto\x1a#proto/output/reference_values.proto\x1a\x1dproto/client/simulation.proto\x1a.proto/api/v0/luminarycloud/common/common.proto\"\xf4\x03\n\nSimulation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12[\n\x06status\x18\x05 \x01(\x0e\x32K.luminary.proto.api.v0.luminarycloud.simulation.Simulation.SimulationStatus\x12\x0f\n\x07mesh_id\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nproject_id\x18\x08 \x01(\t\"\xd2\x01\n\x10SimulationStatus\x12!\n\x1dSIMULATION_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19SIMULATION_STATUS_PENDING\x10\x01\x12\x1c\n\x18SIMULATION_STATUS_ACTIVE\x10\x02\x12\x1f\n\x1bSIMULATION_STATUS_COMPLETED\x10\x03\x12\x1c\n\x18SIMULATION_STATUS_FAILED\x10\x04\x12\x1f\n\x1bSIMULATION_STATUS_SUSPENDED\x10\x05\"\xe8\x01\n\x11SimulationOptions\x12\x18\n\x10\x62\x61tch_processing\x18\x01 \x01(\x08\x12[\n\x08gpu_type\x18\x08 \x01(\x0e\x32I.luminary.proto.api.v0.luminarycloud.simulation.SimulationOptions.GPUType\x12\x11\n\tgpu_count\x18\t \x01(\r\"I\n\x07GPUType\x12\x18\n\x14GPU_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rGPU_TYPE_V100\x10\x01\x12\x11\n\rGPU_TYPE_A100\x10\x02\"\xf0\x02\n\x17\x43reateSimulationRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0f\n\x07mesh_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x1e\n\x16simulation_template_id\x18\x04 \x01(\t\x12]\n\x12simulation_options\x18\x05 \x01(\x0b\x32\x41.luminary.proto.api.v0.luminarycloud.simulation.SimulationOptions\x12\x44\n\x10simulation_param\x18\x06 \x01(\x0b\x32&.luminary.proto.client.SimulationParamB\x02\x18\x01\x12!\n\x15simulation_param_json\x18\x07 \x01(\x0c\x42\x02\x18\x01\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12%\n\x1dnamed_variable_set_version_id\x18\t \x01(\t\"j\n\x18\x43reateSimulationResponse\x12N\n\nsimulation\x18\x01 \x01(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\"\"\n\x14GetSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"g\n\x15GetSimulationResponse\x12N\n\nsimulation\x18\x01 \x01(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\"k\n\x17UpdateSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_description\"j\n\x18UpdateSimulationResponse\x12N\n\nsimulation\x18\x01 \x01(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\",\n\x16ListSimulationsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"j\n\x17ListSimulationsResponse\x12O\n\x0bsimulations\x18\x01 \x03(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\"%\n\x17\x44\x65leteSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"&\n\x18SuspendSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xcf\x02\n#GetSimulationGlobalResidualsRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x89\x01\n\x16residual_normalization\x18\x03 \x01(\x0e\x32i.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationGlobalResidualsRequest.ResidualNormalization\"\x89\x01\n\x15ResidualNormalization\x12&\n\"RESIDUAL_NORMALIZATION_UNSPECIFIED\x10\x00\x12#\n\x1fRESIDUAL_NORMALIZATION_RELATIVE\x10\x01\x12#\n\x1fRESIDUAL_NORMALIZATION_ABSOLUTE\x10\x02J\x04\x08\x04\x10\x05\"j\n$GetSimulationGlobalResidualsResponse\x12\x42\n\x08\x63sv_file\x18\x01 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.File\"\xf1\x04\n)GetSimulationSurfaceQuantityOutputRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12<\n\rquantity_type\x18\x02 \x01(\x0e\x32%.luminary.proto.quantity.QuantityType\x12\x13\n\x0bsurface_ids\x18\x03 \x03(\t\x12Y\n\x10\x63\x61lculation_type\x18\x04 \x01(\x0e\x32?.luminary.proto.api.v0.luminarycloud.simulation.CalculationType\x12\x10\n\x08\x66rame_id\x18\x06 \x01(\t\x12L\n\x0f\x66orce_direction\x18\x11 \x01(\x0b\x32\x33.luminary.proto.api.v0.luminarycloud.common.Vector3\x12J\n\rmoment_center\x18\x12 \x01(\x0b\x32\x33.luminary.proto.api.v0.luminarycloud.common.Vector3\x12U\n\x0e\x61veraging_type\x18\x13 \x01(\x0e\x32=.luminary.proto.api.v0.luminarycloud.simulation.AveragingType\x12@\n\x10reference_values\x18\x14 \x01(\x0b\x32&.luminary.proto.output.ReferenceValues\x12?\n\x10vector_component\x18\x15 \x01(\x0e\x32%.luminary.proto.base.Vector3ComponentJ\x04\x08\x05\x10\x06\"p\n*GetSimulationSurfaceQuantityOutputResponse\x12\x42\n\x08\x63sv_file\x18\x01 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.File\"J\n#GetSimulationSurfaceSolutionRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttime_step\x18\x03 \x01(\rJ\x04\x08\x02\x10\x03\"l\n$GetSimulationSurfaceSolutionResponse\x12>\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.FileJ\x04\x08\x01\x10\x02\"c\n\"GetSimulationVolumeSolutionRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttime_step\x18\x03 \x01(\r\x12\x18\n\x10single_precision\x18\x04 \x01(\x08J\x04\x08\x02\x10\x03\"k\n#GetSimulationVolumeSolutionResponse\x12>\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.FileJ\x04\x08\x01\x10\x02\",\n\x1eGetSimulationParametersRequest\x12\n\n\x02id\x18\x01 \x01(\t*\x96\x01\n\x0f\x43\x61lculationType\x12 \n\x1c\x43\x41LCULATION_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43\x41LCULATION_TYPE_AGGREGATE\x10\x01\x12 \n\x1c\x43\x41LCULATION_TYPE_PER_SURFACE\x10\x02\x12\x1f\n\x1b\x43\x41LCULATION_TYPE_DIFFERENCE\x10\x03*f\n\rAveragingType\x12\x1e\n\x1a\x41VERAGING_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41VERAGING_TYPE_MASS_FLOW\x10\x01\x12\x17\n\x13\x41VERAGING_TYPE_AREA\x10\x02\x32\xb2\x12\n\x11SimulationService\x12\xd7\x01\n\x10\x43reateSimulation\x12G.luminary.proto.api.v0.luminarycloud.simulation.CreateSimulationRequest\x1aH.luminary.proto.api.v0.luminarycloud.simulation.CreateSimulationResponse\"0\x82\xd3\xe4\x93\x02*\"%/v0/projects/{project_id}/simulations:\x01*\x12\xba\x01\n\rGetSimulation\x12\x44.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationRequest\x1a\x45.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v0/simulations/{id}\x12\xc6\x01\n\x10UpdateSimulation\x12G.luminary.proto.api.v0.luminarycloud.simulation.UpdateSimulationRequest\x1aH.luminary.proto.api.v0.luminarycloud.simulation.UpdateSimulationResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x32\x14/v0/simulations/{id}:\x01*\x12\xd1\x01\n\x0fListSimulations\x12\x46.luminary.proto.api.v0.luminarycloud.simulation.ListSimulationsRequest\x1aG.luminary.proto.api.v0.luminarycloud.simulation.ListSimulationsResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/v0/projects/{project_id}/simulations\x12\x91\x01\n\x10\x44\x65leteSimulation\x12G.luminary.proto.api.v0.luminarycloud.simulation.DeleteSimulationRequest\x1a\x16.google.protobuf.Empty\"\x1c\x82\xd3\xe4\x93\x02\x16*\x14/v0/simulations/{id}\x12\x9b\x01\n\x11SuspendSimulation\x12H.luminary.proto.api.v0.luminarycloud.simulation.SuspendSimulationRequest\x1a\x16.google.protobuf.Empty\"$\x82\xd3\xe4\x93\x02\x1e\"\x1c/v0/simulations/{id}:suspend\x12\xf7\x01\n\x1cGetSimulationGlobalResiduals\x12S.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationGlobalResidualsRequest\x1aT.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationGlobalResidualsResponse\",\x82\xd3\xe4\x93\x02&\x12$/v0/simulations/{id}:globalresiduals\x12\x8f\x02\n\"GetSimulationSurfaceQuantityOutput\x12Y.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceQuantityOutputRequest\x1aZ.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceQuantityOutputResponse\"2\x82\xd3\xe4\x93\x02,\x12*/v0/simulations/{id}:surfacequantityoutput\x12\xf7\x01\n\x1cGetSimulationSurfaceSolution\x12S.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceSolutionRequest\x1aT.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceSolutionResponse\",\x82\xd3\xe4\x93\x02&\x12$/v0/simulations/{id}:surfacesolution\x12\xf3\x01\n\x1bGetSimulationVolumeSolution\x12R.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationVolumeSolutionRequest\x1aS.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationVolumeSolutionResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v0/simulations/{id}:volumesolution\x12\xba\x01\n\x17GetSimulationParameters\x12N.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationParametersRequest\x1a&.luminary.proto.client.SimulationParam\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v0/simulations/{id}/parametersB>Z<luminarycloud.com/core/proto/api/v0/luminarycloud/simulationb\x06proto3')
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6proto/api/v0/luminarycloud/simulation/simulation.proto\x12.luminary.proto.api.v0.luminarycloud.simulation\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x15proto/base/base.proto\x1a\x1dproto/quantity/quantity.proto\x1a#proto/output/reference_values.proto\x1a\x19proto/output/output.proto\x1a\x1dproto/client/simulation.proto\x1a.proto/api/v0/luminarycloud/common/common.proto\"\xf4\x03\n\nSimulation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12[\n\x06status\x18\x05 \x01(\x0e\x32K.luminary.proto.api.v0.luminarycloud.simulation.Simulation.SimulationStatus\x12\x0f\n\x07mesh_id\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x12\n\nproject_id\x18\x08 \x01(\t\"\xd2\x01\n\x10SimulationStatus\x12!\n\x1dSIMULATION_STATUS_UNSPECIFIED\x10\x00\x12\x1d\n\x19SIMULATION_STATUS_PENDING\x10\x01\x12\x1c\n\x18SIMULATION_STATUS_ACTIVE\x10\x02\x12\x1f\n\x1bSIMULATION_STATUS_COMPLETED\x10\x03\x12\x1c\n\x18SIMULATION_STATUS_FAILED\x10\x04\x12\x1f\n\x1bSIMULATION_STATUS_SUSPENDED\x10\x05\"\xe8\x01\n\x11SimulationOptions\x12\x18\n\x10\x62\x61tch_processing\x18\x01 \x01(\x08\x12[\n\x08gpu_type\x18\x08 \x01(\x0e\x32I.luminary.proto.api.v0.luminarycloud.simulation.SimulationOptions.GPUType\x12\x11\n\tgpu_count\x18\t \x01(\r\"I\n\x07GPUType\x12\x18\n\x14GPU_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rGPU_TYPE_V100\x10\x01\x12\x11\n\rGPU_TYPE_A100\x10\x02\"\xf0\x02\n\x17\x43reateSimulationRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0f\n\x07mesh_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x1e\n\x16simulation_template_id\x18\x04 \x01(\t\x12]\n\x12simulation_options\x18\x05 \x01(\x0b\x32\x41.luminary.proto.api.v0.luminarycloud.simulation.SimulationOptions\x12\x44\n\x10simulation_param\x18\x06 \x01(\x0b\x32&.luminary.proto.client.SimulationParamB\x02\x18\x01\x12!\n\x15simulation_param_json\x18\x07 \x01(\x0c\x42\x02\x18\x01\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12%\n\x1dnamed_variable_set_version_id\x18\t \x01(\t\"j\n\x18\x43reateSimulationResponse\x12N\n\nsimulation\x18\x01 \x01(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\"\"\n\x14GetSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"g\n\x15GetSimulationResponse\x12N\n\nsimulation\x18\x01 \x01(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\"k\n\x17UpdateSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\x04name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_description\"j\n\x18UpdateSimulationResponse\x12N\n\nsimulation\x18\x01 \x01(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\",\n\x16ListSimulationsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"j\n\x17ListSimulationsResponse\x12O\n\x0bsimulations\x18\x01 \x03(\x0b\x32:.luminary.proto.api.v0.luminarycloud.simulation.Simulation\"%\n\x17\x44\x65leteSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"&\n\x18SuspendSimulationRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xcf\x02\n#GetSimulationGlobalResidualsRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x89\x01\n\x16residual_normalization\x18\x03 \x01(\x0e\x32i.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationGlobalResidualsRequest.ResidualNormalization\"\x89\x01\n\x15ResidualNormalization\x12&\n\"RESIDUAL_NORMALIZATION_UNSPECIFIED\x10\x00\x12#\n\x1fRESIDUAL_NORMALIZATION_RELATIVE\x10\x01\x12#\n\x1fRESIDUAL_NORMALIZATION_ABSOLUTE\x10\x02J\x04\x08\x04\x10\x05\"j\n$GetSimulationGlobalResidualsResponse\x12\x42\n\x08\x63sv_file\x18\x01 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.File\"\xbe\x05\n)GetSimulationSurfaceQuantityOutputRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12<\n\rquantity_type\x18\x02 \x01(\x0e\x32%.luminary.proto.quantity.QuantityType\x12\x13\n\x0bsurface_ids\x18\x03 \x03(\t\x12Y\n\x10\x63\x61lculation_type\x18\x04 \x01(\x0e\x32?.luminary.proto.api.v0.luminarycloud.simulation.CalculationType\x12\x10\n\x08\x66rame_id\x18\x06 \x01(\t\x12L\n\x0f\x66orce_direction\x18\x11 \x01(\x0b\x32\x33.luminary.proto.api.v0.luminarycloud.common.Vector3\x12J\n\rmoment_center\x18\x12 \x01(\x0b\x32\x33.luminary.proto.api.v0.luminarycloud.common.Vector3\x12U\n\x0e\x61veraging_type\x18\x13 \x01(\x0e\x32=.luminary.proto.api.v0.luminarycloud.simulation.AveragingType\x12@\n\x10reference_values\x18\x14 \x01(\x0b\x32&.luminary.proto.output.ReferenceValues\x12?\n\x10vector_component\x18\x15 \x01(\x0e\x32%.luminary.proto.base.Vector3Component\x12K\n\x16moment_convention_type\x18\x16 \x01(\x0e\x32+.luminary.proto.output.MomentConventionTypeJ\x04\x08\x05\x10\x06\"p\n*GetSimulationSurfaceQuantityOutputResponse\x12\x42\n\x08\x63sv_file\x18\x01 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.File\"J\n#GetSimulationSurfaceSolutionRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttime_step\x18\x03 \x01(\rJ\x04\x08\x02\x10\x03\"l\n$GetSimulationSurfaceSolutionResponse\x12>\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.FileJ\x04\x08\x01\x10\x02\"c\n\"GetSimulationVolumeSolutionRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttime_step\x18\x03 \x01(\r\x12\x18\n\x10single_precision\x18\x04 \x01(\x08J\x04\x08\x02\x10\x03\"k\n#GetSimulationVolumeSolutionResponse\x12>\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x30.luminary.proto.api.v0.luminarycloud.common.FileJ\x04\x08\x01\x10\x02\",\n\x1eGetSimulationParametersRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xed\x01\n\x15SimulationQueueStatus\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x15\n\rsimulation_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x31\n\rcreation_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x35\n\x0cstarted_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12\x0e\n\x06is_lma\x18\x06 \x01(\x08\x12\x10\n\x08priority\x18\x07 \x01(\x08\x42\x0f\n\r_started_time\"l\n\x1cListQueuedSimulationsRequest\x12\x16\n\tpage_size\x18\x01 \x01(\x05H\x00\x88\x01\x01\x12\x17\n\npage_token\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x0c\n\n_page_sizeB\r\n\x0b_page_token\"\xa9\x01\n\x1dListQueuedSimulationsResponse\x12Z\n\x0bsimulations\x18\x01 \x03(\x0b\x32\x45.luminary.proto.api.v0.luminarycloud.simulation.SimulationQueueStatus\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0btotal_count\x18\x03 \x01(\x05*\x96\x01\n\x0f\x43\x61lculationType\x12 \n\x1c\x43\x41LCULATION_TYPE_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x43\x41LCULATION_TYPE_AGGREGATE\x10\x01\x12 \n\x1c\x43\x41LCULATION_TYPE_PER_SURFACE\x10\x02\x12\x1f\n\x1b\x43\x41LCULATION_TYPE_DIFFERENCE\x10\x03*f\n\rAveragingType\x12\x1e\n\x1a\x41VERAGING_TYPE_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41VERAGING_TYPE_MASS_FLOW\x10\x01\x12\x17\n\x13\x41VERAGING_TYPE_AREA\x10\x02\x32\x89\x14\n\x11SimulationService\x12\xd7\x01\n\x10\x43reateSimulation\x12G.luminary.proto.api.v0.luminarycloud.simulation.CreateSimulationRequest\x1aH.luminary.proto.api.v0.luminarycloud.simulation.CreateSimulationResponse\"0\x82\xd3\xe4\x93\x02*\"%/v0/projects/{project_id}/simulations:\x01*\x12\xba\x01\n\rGetSimulation\x12\x44.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationRequest\x1a\x45.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/v0/simulations/{id}\x12\xc6\x01\n\x10UpdateSimulation\x12G.luminary.proto.api.v0.luminarycloud.simulation.UpdateSimulationRequest\x1aH.luminary.proto.api.v0.luminarycloud.simulation.UpdateSimulationResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x32\x14/v0/simulations/{id}:\x01*\x12\xd1\x01\n\x0fListSimulations\x12\x46.luminary.proto.api.v0.luminarycloud.simulation.ListSimulationsRequest\x1aG.luminary.proto.api.v0.luminarycloud.simulation.ListSimulationsResponse\"-\x82\xd3\xe4\x93\x02\'\x12%/v0/projects/{project_id}/simulations\x12\x91\x01\n\x10\x44\x65leteSimulation\x12G.luminary.proto.api.v0.luminarycloud.simulation.DeleteSimulationRequest\x1a\x16.google.protobuf.Empty\"\x1c\x82\xd3\xe4\x93\x02\x16*\x14/v0/simulations/{id}\x12\x9b\x01\n\x11SuspendSimulation\x12H.luminary.proto.api.v0.luminarycloud.simulation.SuspendSimulationRequest\x1a\x16.google.protobuf.Empty\"$\x82\xd3\xe4\x93\x02\x1e\"\x1c/v0/simulations/{id}:suspend\x12\xf7\x01\n\x1cGetSimulationGlobalResiduals\x12S.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationGlobalResidualsRequest\x1aT.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationGlobalResidualsResponse\",\x82\xd3\xe4\x93\x02&\x12$/v0/simulations/{id}:globalresiduals\x12\x8f\x02\n\"GetSimulationSurfaceQuantityOutput\x12Y.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceQuantityOutputRequest\x1aZ.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceQuantityOutputResponse\"2\x82\xd3\xe4\x93\x02,\x12*/v0/simulations/{id}:surfacequantityoutput\x12\xf7\x01\n\x1cGetSimulationSurfaceSolution\x12S.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceSolutionRequest\x1aT.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationSurfaceSolutionResponse\",\x82\xd3\xe4\x93\x02&\x12$/v0/simulations/{id}:surfacesolution\x12\xf3\x01\n\x1bGetSimulationVolumeSolution\x12R.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationVolumeSolutionRequest\x1aS.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationVolumeSolutionResponse\"+\x82\xd3\xe4\x93\x02%\x12#/v0/simulations/{id}:volumesolution\x12\xba\x01\n\x17GetSimulationParameters\x12N.luminary.proto.api.v0.luminarycloud.simulation.GetSimulationParametersRequest\x1a&.luminary.proto.client.SimulationParam\"\'\x82\xd3\xe4\x93\x02!\x12\x1f/v0/simulations/{id}/parameters\x12\xd4\x01\n\x15ListQueuedSimulations\x12L.luminary.proto.api.v0.luminarycloud.simulation.ListQueuedSimulationsRequest\x1aM.luminary.proto.api.v0.luminarycloud.simulation.ListQueuedSimulationsResponse\"\x1e\x82\xd3\xe4\x93\x02\x18\x12\x16/v0/queued-simulationsB>Z<luminarycloud.com/core/proto/api/v0/luminarycloud/simulationb\x06proto3')
|
|
27
28
|
|
|
28
29
|
_CALCULATIONTYPE = DESCRIPTOR.enum_types_by_name['CalculationType']
|
|
29
30
|
CalculationType = enum_type_wrapper.EnumTypeWrapper(_CALCULATIONTYPE)
|
|
@@ -59,6 +60,9 @@ _GETSIMULATIONSURFACESOLUTIONRESPONSE = DESCRIPTOR.message_types_by_name['GetSim
|
|
|
59
60
|
_GETSIMULATIONVOLUMESOLUTIONREQUEST = DESCRIPTOR.message_types_by_name['GetSimulationVolumeSolutionRequest']
|
|
60
61
|
_GETSIMULATIONVOLUMESOLUTIONRESPONSE = DESCRIPTOR.message_types_by_name['GetSimulationVolumeSolutionResponse']
|
|
61
62
|
_GETSIMULATIONPARAMETERSREQUEST = DESCRIPTOR.message_types_by_name['GetSimulationParametersRequest']
|
|
63
|
+
_SIMULATIONQUEUESTATUS = DESCRIPTOR.message_types_by_name['SimulationQueueStatus']
|
|
64
|
+
_LISTQUEUEDSIMULATIONSREQUEST = DESCRIPTOR.message_types_by_name['ListQueuedSimulationsRequest']
|
|
65
|
+
_LISTQUEUEDSIMULATIONSRESPONSE = DESCRIPTOR.message_types_by_name['ListQueuedSimulationsResponse']
|
|
62
66
|
_SIMULATION_SIMULATIONSTATUS = _SIMULATION.enum_types_by_name['SimulationStatus']
|
|
63
67
|
_SIMULATIONOPTIONS_GPUTYPE = _SIMULATIONOPTIONS.enum_types_by_name['GPUType']
|
|
64
68
|
_GETSIMULATIONGLOBALRESIDUALSREQUEST_RESIDUALNORMALIZATION = _GETSIMULATIONGLOBALRESIDUALSREQUEST.enum_types_by_name['ResidualNormalization']
|
|
@@ -209,6 +213,27 @@ GetSimulationParametersRequest = _reflection.GeneratedProtocolMessageType('GetSi
|
|
|
209
213
|
})
|
|
210
214
|
_sym_db.RegisterMessage(GetSimulationParametersRequest)
|
|
211
215
|
|
|
216
|
+
SimulationQueueStatus = _reflection.GeneratedProtocolMessageType('SimulationQueueStatus', (_message.Message,), {
|
|
217
|
+
'DESCRIPTOR' : _SIMULATIONQUEUESTATUS,
|
|
218
|
+
'__module__' : 'proto.api.v0.luminarycloud.simulation.simulation_pb2'
|
|
219
|
+
# @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.simulation.SimulationQueueStatus)
|
|
220
|
+
})
|
|
221
|
+
_sym_db.RegisterMessage(SimulationQueueStatus)
|
|
222
|
+
|
|
223
|
+
ListQueuedSimulationsRequest = _reflection.GeneratedProtocolMessageType('ListQueuedSimulationsRequest', (_message.Message,), {
|
|
224
|
+
'DESCRIPTOR' : _LISTQUEUEDSIMULATIONSREQUEST,
|
|
225
|
+
'__module__' : 'proto.api.v0.luminarycloud.simulation.simulation_pb2'
|
|
226
|
+
# @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.simulation.ListQueuedSimulationsRequest)
|
|
227
|
+
})
|
|
228
|
+
_sym_db.RegisterMessage(ListQueuedSimulationsRequest)
|
|
229
|
+
|
|
230
|
+
ListQueuedSimulationsResponse = _reflection.GeneratedProtocolMessageType('ListQueuedSimulationsResponse', (_message.Message,), {
|
|
231
|
+
'DESCRIPTOR' : _LISTQUEUEDSIMULATIONSRESPONSE,
|
|
232
|
+
'__module__' : 'proto.api.v0.luminarycloud.simulation.simulation_pb2'
|
|
233
|
+
# @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.simulation.ListQueuedSimulationsResponse)
|
|
234
|
+
})
|
|
235
|
+
_sym_db.RegisterMessage(ListQueuedSimulationsResponse)
|
|
236
|
+
|
|
212
237
|
_SIMULATIONSERVICE = DESCRIPTOR.services_by_name['SimulationService']
|
|
213
238
|
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
214
239
|
|
|
@@ -240,58 +265,66 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
240
265
|
_SIMULATIONSERVICE.methods_by_name['GetSimulationVolumeSolution']._serialized_options = b'\202\323\344\223\002%\022#/v0/simulations/{id}:volumesolution'
|
|
241
266
|
_SIMULATIONSERVICE.methods_by_name['GetSimulationParameters']._options = None
|
|
242
267
|
_SIMULATIONSERVICE.methods_by_name['GetSimulationParameters']._serialized_options = b'\202\323\344\223\002!\022\037/v0/simulations/{id}/parameters'
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
268
|
+
_SIMULATIONSERVICE.methods_by_name['ListQueuedSimulations']._options = None
|
|
269
|
+
_SIMULATIONSERVICE.methods_by_name['ListQueuedSimulations']._serialized_options = b'\202\323\344\223\002\030\022\026/v0/queued-simulations'
|
|
270
|
+
_CALCULATIONTYPE._serialized_start=4433
|
|
271
|
+
_CALCULATIONTYPE._serialized_end=4583
|
|
272
|
+
_AVERAGINGTYPE._serialized_start=4585
|
|
273
|
+
_AVERAGINGTYPE._serialized_end=4687
|
|
274
|
+
_SIMULATION._serialized_start=396
|
|
275
|
+
_SIMULATION._serialized_end=896
|
|
276
|
+
_SIMULATION_SIMULATIONSTATUS._serialized_start=686
|
|
277
|
+
_SIMULATION_SIMULATIONSTATUS._serialized_end=896
|
|
278
|
+
_SIMULATIONOPTIONS._serialized_start=899
|
|
279
|
+
_SIMULATIONOPTIONS._serialized_end=1131
|
|
280
|
+
_SIMULATIONOPTIONS_GPUTYPE._serialized_start=1058
|
|
281
|
+
_SIMULATIONOPTIONS_GPUTYPE._serialized_end=1131
|
|
282
|
+
_CREATESIMULATIONREQUEST._serialized_start=1134
|
|
283
|
+
_CREATESIMULATIONREQUEST._serialized_end=1502
|
|
284
|
+
_CREATESIMULATIONRESPONSE._serialized_start=1504
|
|
285
|
+
_CREATESIMULATIONRESPONSE._serialized_end=1610
|
|
286
|
+
_GETSIMULATIONREQUEST._serialized_start=1612
|
|
287
|
+
_GETSIMULATIONREQUEST._serialized_end=1646
|
|
288
|
+
_GETSIMULATIONRESPONSE._serialized_start=1648
|
|
289
|
+
_GETSIMULATIONRESPONSE._serialized_end=1751
|
|
290
|
+
_UPDATESIMULATIONREQUEST._serialized_start=1753
|
|
291
|
+
_UPDATESIMULATIONREQUEST._serialized_end=1860
|
|
292
|
+
_UPDATESIMULATIONRESPONSE._serialized_start=1862
|
|
293
|
+
_UPDATESIMULATIONRESPONSE._serialized_end=1968
|
|
294
|
+
_LISTSIMULATIONSREQUEST._serialized_start=1970
|
|
295
|
+
_LISTSIMULATIONSREQUEST._serialized_end=2014
|
|
296
|
+
_LISTSIMULATIONSRESPONSE._serialized_start=2016
|
|
297
|
+
_LISTSIMULATIONSRESPONSE._serialized_end=2122
|
|
298
|
+
_DELETESIMULATIONREQUEST._serialized_start=2124
|
|
299
|
+
_DELETESIMULATIONREQUEST._serialized_end=2161
|
|
300
|
+
_SUSPENDSIMULATIONREQUEST._serialized_start=2163
|
|
301
|
+
_SUSPENDSIMULATIONREQUEST._serialized_end=2201
|
|
302
|
+
_GETSIMULATIONGLOBALRESIDUALSREQUEST._serialized_start=2204
|
|
303
|
+
_GETSIMULATIONGLOBALRESIDUALSREQUEST._serialized_end=2539
|
|
304
|
+
_GETSIMULATIONGLOBALRESIDUALSREQUEST_RESIDUALNORMALIZATION._serialized_start=2396
|
|
305
|
+
_GETSIMULATIONGLOBALRESIDUALSREQUEST_RESIDUALNORMALIZATION._serialized_end=2533
|
|
306
|
+
_GETSIMULATIONGLOBALRESIDUALSRESPONSE._serialized_start=2541
|
|
307
|
+
_GETSIMULATIONGLOBALRESIDUALSRESPONSE._serialized_end=2647
|
|
308
|
+
_GETSIMULATIONSURFACEQUANTITYOUTPUTREQUEST._serialized_start=2650
|
|
309
|
+
_GETSIMULATIONSURFACEQUANTITYOUTPUTREQUEST._serialized_end=3352
|
|
310
|
+
_GETSIMULATIONSURFACEQUANTITYOUTPUTRESPONSE._serialized_start=3354
|
|
311
|
+
_GETSIMULATIONSURFACEQUANTITYOUTPUTRESPONSE._serialized_end=3466
|
|
312
|
+
_GETSIMULATIONSURFACESOLUTIONREQUEST._serialized_start=3468
|
|
313
|
+
_GETSIMULATIONSURFACESOLUTIONREQUEST._serialized_end=3542
|
|
314
|
+
_GETSIMULATIONSURFACESOLUTIONRESPONSE._serialized_start=3544
|
|
315
|
+
_GETSIMULATIONSURFACESOLUTIONRESPONSE._serialized_end=3652
|
|
316
|
+
_GETSIMULATIONVOLUMESOLUTIONREQUEST._serialized_start=3654
|
|
317
|
+
_GETSIMULATIONVOLUMESOLUTIONREQUEST._serialized_end=3753
|
|
318
|
+
_GETSIMULATIONVOLUMESOLUTIONRESPONSE._serialized_start=3755
|
|
319
|
+
_GETSIMULATIONVOLUMESOLUTIONRESPONSE._serialized_end=3862
|
|
320
|
+
_GETSIMULATIONPARAMETERSREQUEST._serialized_start=3864
|
|
321
|
+
_GETSIMULATIONPARAMETERSREQUEST._serialized_end=3908
|
|
322
|
+
_SIMULATIONQUEUESTATUS._serialized_start=3911
|
|
323
|
+
_SIMULATIONQUEUESTATUS._serialized_end=4148
|
|
324
|
+
_LISTQUEUEDSIMULATIONSREQUEST._serialized_start=4150
|
|
325
|
+
_LISTQUEUEDSIMULATIONSREQUEST._serialized_end=4258
|
|
326
|
+
_LISTQUEUEDSIMULATIONSRESPONSE._serialized_start=4261
|
|
327
|
+
_LISTQUEUEDSIMULATIONSRESPONSE._serialized_end=4430
|
|
328
|
+
_SIMULATIONSERVICE._serialized_start=4690
|
|
329
|
+
_SIMULATIONSERVICE._serialized_end=7259
|
|
297
330
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -12,6 +12,7 @@ import google.protobuf.timestamp_pb2
|
|
|
12
12
|
import luminarycloud._proto.api.v0.luminarycloud.common.common_pb2
|
|
13
13
|
import luminarycloud._proto.base.base_pb2
|
|
14
14
|
import luminarycloud._proto.client.simulation_pb2
|
|
15
|
+
import luminarycloud._proto.output.output_pb2
|
|
15
16
|
import luminarycloud._proto.output.reference_values_pb2
|
|
16
17
|
import luminarycloud._proto.quantity.quantity_pb2
|
|
17
18
|
import sys
|
|
@@ -506,6 +507,7 @@ class GetSimulationSurfaceQuantityOutputRequest(google.protobuf.message.Message)
|
|
|
506
507
|
AVERAGING_TYPE_FIELD_NUMBER: builtins.int
|
|
507
508
|
REFERENCE_VALUES_FIELD_NUMBER: builtins.int
|
|
508
509
|
VECTOR_COMPONENT_FIELD_NUMBER: builtins.int
|
|
510
|
+
MOMENT_CONVENTION_TYPE_FIELD_NUMBER: builtins.int
|
|
509
511
|
id: builtins.str
|
|
510
512
|
"""Required. The simulation id for which to get the surface quantity outputs."""
|
|
511
513
|
quantity_type: luminarycloud._proto.quantity.quantity_pb2.QuantityType.ValueType
|
|
@@ -538,6 +540,8 @@ class GetSimulationSurfaceQuantityOutputRequest(google.protobuf.message.Message)
|
|
|
538
540
|
"""
|
|
539
541
|
vector_component: luminarycloud._proto.base.base_pb2.Vector3Component.ValueType
|
|
540
542
|
"""Optional. For 3-vector quantity types, e.g. Velocity, which vector component to return."""
|
|
543
|
+
moment_convention_type: luminarycloud._proto.output.output_pb2.MomentConventionType.ValueType
|
|
544
|
+
"""Optional. For "aerodynamic moment" quantity types, the frame type to use for pitch, roll, and yaw moments."""
|
|
541
545
|
def __init__(
|
|
542
546
|
self,
|
|
543
547
|
*,
|
|
@@ -551,9 +555,10 @@ class GetSimulationSurfaceQuantityOutputRequest(google.protobuf.message.Message)
|
|
|
551
555
|
averaging_type: global___AveragingType.ValueType = ...,
|
|
552
556
|
reference_values: luminarycloud._proto.output.reference_values_pb2.ReferenceValues | None = ...,
|
|
553
557
|
vector_component: luminarycloud._proto.base.base_pb2.Vector3Component.ValueType = ...,
|
|
558
|
+
moment_convention_type: luminarycloud._proto.output.output_pb2.MomentConventionType.ValueType = ...,
|
|
554
559
|
) -> None: ...
|
|
555
560
|
def HasField(self, field_name: typing_extensions.Literal["force_direction", b"force_direction", "moment_center", b"moment_center", "reference_values", b"reference_values"]) -> builtins.bool: ...
|
|
556
|
-
def ClearField(self, field_name: typing_extensions.Literal["averaging_type", b"averaging_type", "calculation_type", b"calculation_type", "force_direction", b"force_direction", "frame_id", b"frame_id", "id", b"id", "moment_center", b"moment_center", "quantity_type", b"quantity_type", "reference_values", b"reference_values", "surface_ids", b"surface_ids", "vector_component", b"vector_component"]) -> None: ...
|
|
561
|
+
def ClearField(self, field_name: typing_extensions.Literal["averaging_type", b"averaging_type", "calculation_type", b"calculation_type", "force_direction", b"force_direction", "frame_id", b"frame_id", "id", b"id", "moment_center", b"moment_center", "moment_convention_type", b"moment_convention_type", "quantity_type", b"quantity_type", "reference_values", b"reference_values", "surface_ids", b"surface_ids", "vector_component", b"vector_component"]) -> None: ...
|
|
557
562
|
|
|
558
563
|
global___GetSimulationSurfaceQuantityOutputRequest = GetSimulationSurfaceQuantityOutputRequest
|
|
559
564
|
|
|
@@ -670,3 +675,105 @@ class GetSimulationParametersRequest(google.protobuf.message.Message):
|
|
|
670
675
|
def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ...
|
|
671
676
|
|
|
672
677
|
global___GetSimulationParametersRequest = GetSimulationParametersRequest
|
|
678
|
+
|
|
679
|
+
class SimulationQueueStatus(google.protobuf.message.Message):
|
|
680
|
+
"""Represents a simulation in the queue."""
|
|
681
|
+
|
|
682
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
683
|
+
|
|
684
|
+
PROJECT_ID_FIELD_NUMBER: builtins.int
|
|
685
|
+
SIMULATION_ID_FIELD_NUMBER: builtins.int
|
|
686
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
687
|
+
CREATION_TIME_FIELD_NUMBER: builtins.int
|
|
688
|
+
STARTED_TIME_FIELD_NUMBER: builtins.int
|
|
689
|
+
IS_LMA_FIELD_NUMBER: builtins.int
|
|
690
|
+
PRIORITY_FIELD_NUMBER: builtins.int
|
|
691
|
+
project_id: builtins.str
|
|
692
|
+
"""The ID of the project this simulation belongs to."""
|
|
693
|
+
simulation_id: builtins.str
|
|
694
|
+
"""The unique ID of the simulation."""
|
|
695
|
+
name: builtins.str
|
|
696
|
+
"""The name of the simulation."""
|
|
697
|
+
@property
|
|
698
|
+
def creation_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
699
|
+
"""The time when the job was created."""
|
|
700
|
+
@property
|
|
701
|
+
def started_time(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
702
|
+
"""The time when the simulation started running. Only set if the simulation
|
|
703
|
+
has started running.
|
|
704
|
+
"""
|
|
705
|
+
is_lma: builtins.bool
|
|
706
|
+
"""Whether this is an LMA simulation."""
|
|
707
|
+
priority: builtins.bool
|
|
708
|
+
"""Whether this is a priority job."""
|
|
709
|
+
def __init__(
|
|
710
|
+
self,
|
|
711
|
+
*,
|
|
712
|
+
project_id: builtins.str = ...,
|
|
713
|
+
simulation_id: builtins.str = ...,
|
|
714
|
+
name: builtins.str = ...,
|
|
715
|
+
creation_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
716
|
+
started_time: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
717
|
+
is_lma: builtins.bool = ...,
|
|
718
|
+
priority: builtins.bool = ...,
|
|
719
|
+
) -> None: ...
|
|
720
|
+
def HasField(self, field_name: typing_extensions.Literal["_started_time", b"_started_time", "creation_time", b"creation_time", "started_time", b"started_time"]) -> builtins.bool: ...
|
|
721
|
+
def ClearField(self, field_name: typing_extensions.Literal["_started_time", b"_started_time", "creation_time", b"creation_time", "is_lma", b"is_lma", "name", b"name", "priority", b"priority", "project_id", b"project_id", "simulation_id", b"simulation_id", "started_time", b"started_time"]) -> None: ...
|
|
722
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_started_time", b"_started_time"]) -> typing_extensions.Literal["started_time"] | None: ...
|
|
723
|
+
|
|
724
|
+
global___SimulationQueueStatus = SimulationQueueStatus
|
|
725
|
+
|
|
726
|
+
class ListQueuedSimulationsRequest(google.protobuf.message.Message):
|
|
727
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
728
|
+
|
|
729
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
730
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
731
|
+
page_size: builtins.int
|
|
732
|
+
"""Optional. The maximum number of jobs to return. The service may return
|
|
733
|
+
fewer than this value. Default is 50, max is 100. Values above 100 will be
|
|
734
|
+
replace by 100.
|
|
735
|
+
"""
|
|
736
|
+
page_token: builtins.str
|
|
737
|
+
"""A page token, received from a previous call. Provide this to retrieve the
|
|
738
|
+
subsequent page.
|
|
739
|
+
"""
|
|
740
|
+
def __init__(
|
|
741
|
+
self,
|
|
742
|
+
*,
|
|
743
|
+
page_size: builtins.int | None = ...,
|
|
744
|
+
page_token: builtins.str | None = ...,
|
|
745
|
+
) -> None: ...
|
|
746
|
+
def HasField(self, field_name: typing_extensions.Literal["_page_size", b"_page_size", "_page_token", b"_page_token", "page_size", b"page_size", "page_token", b"page_token"]) -> builtins.bool: ...
|
|
747
|
+
def ClearField(self, field_name: typing_extensions.Literal["_page_size", b"_page_size", "_page_token", b"_page_token", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
748
|
+
@typing.overload
|
|
749
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_page_size", b"_page_size"]) -> typing_extensions.Literal["page_size"] | None: ...
|
|
750
|
+
@typing.overload
|
|
751
|
+
def WhichOneof(self, oneof_group: typing_extensions.Literal["_page_token", b"_page_token"]) -> typing_extensions.Literal["page_token"] | None: ...
|
|
752
|
+
|
|
753
|
+
global___ListQueuedSimulationsRequest = ListQueuedSimulationsRequest
|
|
754
|
+
|
|
755
|
+
class ListQueuedSimulationsResponse(google.protobuf.message.Message):
|
|
756
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
757
|
+
|
|
758
|
+
SIMULATIONS_FIELD_NUMBER: builtins.int
|
|
759
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
760
|
+
TOTAL_COUNT_FIELD_NUMBER: builtins.int
|
|
761
|
+
@property
|
|
762
|
+
def simulations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SimulationQueueStatus]:
|
|
763
|
+
"""The list of simulations in the queue."""
|
|
764
|
+
next_page_token: builtins.str
|
|
765
|
+
"""A page token that can be used to retrieve the next page of results.
|
|
766
|
+
If empty, there are no more results.
|
|
767
|
+
"""
|
|
768
|
+
total_count: builtins.int
|
|
769
|
+
"""The total number of simulations in the queue for this account."""
|
|
770
|
+
def __init__(
|
|
771
|
+
self,
|
|
772
|
+
*,
|
|
773
|
+
simulations: collections.abc.Iterable[global___SimulationQueueStatus] | None = ...,
|
|
774
|
+
next_page_token: builtins.str = ...,
|
|
775
|
+
total_count: builtins.int = ...,
|
|
776
|
+
) -> None: ...
|
|
777
|
+
def ClearField(self, field_name: typing_extensions.Literal["next_page_token", b"next_page_token", "simulations", b"simulations", "total_count", b"total_count"]) -> None: ...
|
|
778
|
+
|
|
779
|
+
global___ListQueuedSimulationsResponse = ListQueuedSimulationsResponse
|
|
@@ -72,6 +72,11 @@ class SimulationServiceStub(object):
|
|
|
72
72
|
request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.GetSimulationParametersRequest.SerializeToString,
|
|
73
73
|
response_deserializer=proto_dot_client_dot_simulation__pb2.SimulationParam.FromString,
|
|
74
74
|
)
|
|
75
|
+
self.ListQueuedSimulations = channel.unary_unary(
|
|
76
|
+
'/luminary.proto.api.v0.luminarycloud.simulation.SimulationService/ListQueuedSimulations',
|
|
77
|
+
request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.ListQueuedSimulationsRequest.SerializeToString,
|
|
78
|
+
response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.ListQueuedSimulationsResponse.FromString,
|
|
79
|
+
)
|
|
75
80
|
|
|
76
81
|
|
|
77
82
|
class SimulationServiceServicer(object):
|
|
@@ -164,6 +169,14 @@ class SimulationServiceServicer(object):
|
|
|
164
169
|
context.set_details('Method not implemented!')
|
|
165
170
|
raise NotImplementedError('Method not implemented!')
|
|
166
171
|
|
|
172
|
+
def ListQueuedSimulations(self, request, context):
|
|
173
|
+
"""Lists simulations in the queue for the account of the requester. Only
|
|
174
|
+
available for accounts with unlimited billing type.
|
|
175
|
+
"""
|
|
176
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
177
|
+
context.set_details('Method not implemented!')
|
|
178
|
+
raise NotImplementedError('Method not implemented!')
|
|
179
|
+
|
|
167
180
|
|
|
168
181
|
def add_SimulationServiceServicer_to_server(servicer, server):
|
|
169
182
|
rpc_method_handlers = {
|
|
@@ -222,6 +235,11 @@ def add_SimulationServiceServicer_to_server(servicer, server):
|
|
|
222
235
|
request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.GetSimulationParametersRequest.FromString,
|
|
223
236
|
response_serializer=proto_dot_client_dot_simulation__pb2.SimulationParam.SerializeToString,
|
|
224
237
|
),
|
|
238
|
+
'ListQueuedSimulations': grpc.unary_unary_rpc_method_handler(
|
|
239
|
+
servicer.ListQueuedSimulations,
|
|
240
|
+
request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.ListQueuedSimulationsRequest.FromString,
|
|
241
|
+
response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.ListQueuedSimulationsResponse.SerializeToString,
|
|
242
|
+
),
|
|
225
243
|
}
|
|
226
244
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
227
245
|
'luminary.proto.api.v0.luminarycloud.simulation.SimulationService', rpc_method_handlers)
|
|
@@ -419,3 +437,20 @@ class SimulationService(object):
|
|
|
419
437
|
proto_dot_client_dot_simulation__pb2.SimulationParam.FromString,
|
|
420
438
|
options, channel_credentials,
|
|
421
439
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
440
|
+
|
|
441
|
+
@staticmethod
|
|
442
|
+
def ListQueuedSimulations(request,
|
|
443
|
+
target,
|
|
444
|
+
options=(),
|
|
445
|
+
channel_credentials=None,
|
|
446
|
+
call_credentials=None,
|
|
447
|
+
insecure=False,
|
|
448
|
+
compression=None,
|
|
449
|
+
wait_for_ready=None,
|
|
450
|
+
timeout=None,
|
|
451
|
+
metadata=None):
|
|
452
|
+
return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.simulation.SimulationService/ListQueuedSimulations',
|
|
453
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.ListQueuedSimulationsRequest.SerializeToString,
|
|
454
|
+
proto_dot_api_dot_v0_dot_luminarycloud_dot_simulation_dot_simulation__pb2.ListQueuedSimulationsResponse.FromString,
|
|
455
|
+
options, channel_credentials,
|
|
456
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -81,6 +81,13 @@ class SimulationServiceStub:
|
|
|
81
81
|
luminarycloud._proto.client.simulation_pb2.SimulationParam,
|
|
82
82
|
]
|
|
83
83
|
"""Fetches the simulation parameters for an existing simulation."""
|
|
84
|
+
ListQueuedSimulations: grpc.UnaryUnaryMultiCallable[
|
|
85
|
+
luminarycloud._proto.api.v0.luminarycloud.simulation.simulation_pb2.ListQueuedSimulationsRequest,
|
|
86
|
+
luminarycloud._proto.api.v0.luminarycloud.simulation.simulation_pb2.ListQueuedSimulationsResponse,
|
|
87
|
+
]
|
|
88
|
+
"""Lists simulations in the queue for the account of the requester. Only
|
|
89
|
+
available for accounts with unlimited billing type.
|
|
90
|
+
"""
|
|
84
91
|
|
|
85
92
|
class SimulationServiceServicer(metaclass=abc.ABCMeta):
|
|
86
93
|
"""Provides APIs for running simulations and retrieve outputs."""
|
|
@@ -176,5 +183,14 @@ class SimulationServiceServicer(metaclass=abc.ABCMeta):
|
|
|
176
183
|
context: grpc.ServicerContext,
|
|
177
184
|
) -> luminarycloud._proto.client.simulation_pb2.SimulationParam:
|
|
178
185
|
"""Fetches the simulation parameters for an existing simulation."""
|
|
186
|
+
@abc.abstractmethod
|
|
187
|
+
def ListQueuedSimulations(
|
|
188
|
+
self,
|
|
189
|
+
request: luminarycloud._proto.api.v0.luminarycloud.simulation.simulation_pb2.ListQueuedSimulationsRequest,
|
|
190
|
+
context: grpc.ServicerContext,
|
|
191
|
+
) -> luminarycloud._proto.api.v0.luminarycloud.simulation.simulation_pb2.ListQueuedSimulationsResponse:
|
|
192
|
+
"""Lists simulations in the queue for the account of the requester. Only
|
|
193
|
+
available for accounts with unlimited billing type.
|
|
194
|
+
"""
|
|
179
195
|
|
|
180
196
|
def add_SimulationServiceServicer_to_server(servicer: SimulationServiceServicer, server: grpc.Server) -> None: ...
|