luminarycloud 0.22.1__py3-none-any.whl → 0.22.2__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.
Files changed (64) hide show
  1. luminarycloud/_client/client.py +5 -3
  2. luminarycloud/_helpers/__init__.py +9 -0
  3. luminarycloud/_helpers/_inference_jobs.py +227 -0
  4. luminarycloud/_helpers/_parse_iso_datetime.py +54 -0
  5. luminarycloud/_helpers/proto_decorator.py +38 -7
  6. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.py +45 -25
  7. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.pyi +30 -0
  8. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2_grpc.py +34 -0
  9. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2_grpc.pyi +12 -0
  10. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.py +118 -45
  11. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.pyi +246 -2
  12. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.py +34 -0
  13. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2_grpc.pyi +12 -0
  14. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2.py +93 -33
  15. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2.pyi +105 -0
  16. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2_grpc.py +70 -0
  17. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2_grpc.pyi +29 -0
  18. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2.py +29 -7
  19. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2.pyi +39 -0
  20. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2_grpc.py +36 -0
  21. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2_grpc.pyi +18 -0
  22. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.py +70 -70
  23. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.pyi +5 -5
  24. luminarycloud/_proto/api/v0/luminarycloud/vis/vis_pb2.py +163 -153
  25. luminarycloud/_proto/api/v0/luminarycloud/vis/vis_pb2.pyi +37 -3
  26. luminarycloud/_proto/client/simulation_pb2.py +356 -337
  27. luminarycloud/_proto/client/simulation_pb2.pyi +89 -3
  28. luminarycloud/_proto/physicsaiinferenceservice/physicsaiinferenceservice_pb2.py +9 -4
  29. luminarycloud/_proto/physicsaitrainingservice/physicsaitrainingservice_pb2.py +6 -3
  30. luminarycloud/_proto/physicsaitrainingservice/physicsaitrainingservice_pb2_grpc.py +34 -0
  31. luminarycloud/_proto/physicsaitrainingservice/physicsaitrainingservice_pb2_grpc.pyi +12 -0
  32. luminarycloud/_wrapper.py +53 -7
  33. luminarycloud/feature_modification.py +25 -32
  34. luminarycloud/geometry.py +6 -6
  35. luminarycloud/outputs/__init__.py +2 -0
  36. luminarycloud/outputs/output_definitions.py +3 -3
  37. luminarycloud/outputs/stopping_conditions.py +94 -0
  38. luminarycloud/params/enum/_enum_wrappers.py +16 -0
  39. luminarycloud/params/geometry/shapes.py +33 -33
  40. luminarycloud/params/simulation/adaptive_mesh_refinement/__init__.py +1 -0
  41. luminarycloud/params/simulation/adaptive_mesh_refinement/active_region_.py +83 -0
  42. luminarycloud/params/simulation/adaptive_mesh_refinement/boundary_layer_profile_.py +1 -1
  43. luminarycloud/params/simulation/adaptive_mesh_refinement_.py +8 -1
  44. luminarycloud/physics_ai/__init__.py +7 -0
  45. luminarycloud/physics_ai/inference.py +166 -199
  46. luminarycloud/physics_ai/models.py +22 -0
  47. luminarycloud/pipelines/api.py +45 -9
  48. luminarycloud/project.py +56 -2
  49. luminarycloud/simulation.py +25 -0
  50. luminarycloud/types/__init__.py +2 -0
  51. luminarycloud/types/ids.py +2 -0
  52. luminarycloud/vis/__init__.py +1 -0
  53. luminarycloud/vis/filters.py +97 -0
  54. luminarycloud/vis/visualization.py +3 -0
  55. luminarycloud/volume_selection.py +6 -6
  56. luminarycloud/workflow_utils.py +149 -0
  57. {luminarycloud-0.22.1.dist-info → luminarycloud-0.22.2.dist-info}/METADATA +1 -1
  58. {luminarycloud-0.22.1.dist-info → luminarycloud-0.22.2.dist-info}/RECORD +59 -60
  59. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.py +0 -61
  60. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2.pyi +0 -85
  61. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2_grpc.py +0 -67
  62. luminarycloud/_proto/api/v0/luminarycloud/inference/inference_pb2_grpc.pyi +0 -26
  63. luminarycloud/_proto/inferenceservice/inferenceservice_pb2.py +0 -69
  64. {luminarycloud-0.22.1.dist-info → luminarycloud-0.22.2.dist-info}/WHEEL +0 -0
@@ -35,6 +35,11 @@ class PhysicsAiServiceStub(object):
35
35
  request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.SubmitTrainingJobRequest.SerializeToString,
36
36
  response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.SubmitTrainingJobResponse.FromString,
37
37
  )
38
+ self.CreateDataset = channel.unary_unary(
39
+ '/luminary.proto.api.v0.luminarycloud.physics_ai.PhysicsAiService/CreateDataset',
40
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.CreateDatasetRequest.SerializeToString,
41
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.CreateDatasetResponse.FromString,
42
+ )
38
43
 
39
44
 
40
45
  class PhysicsAiServiceServicer(object):
@@ -69,6 +74,13 @@ class PhysicsAiServiceServicer(object):
69
74
  context.set_details('Method not implemented!')
70
75
  raise NotImplementedError('Method not implemented!')
71
76
 
77
+ def CreateDataset(self, request, context):
78
+ """Creates a new Physics AI dataset
79
+ """
80
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
81
+ context.set_details('Method not implemented!')
82
+ raise NotImplementedError('Method not implemented!')
83
+
72
84
 
73
85
  def add_PhysicsAiServiceServicer_to_server(servicer, server):
74
86
  rpc_method_handlers = {
@@ -92,6 +104,11 @@ def add_PhysicsAiServiceServicer_to_server(servicer, server):
92
104
  request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.SubmitTrainingJobRequest.FromString,
93
105
  response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.SubmitTrainingJobResponse.SerializeToString,
94
106
  ),
107
+ 'CreateDataset': grpc.unary_unary_rpc_method_handler(
108
+ servicer.CreateDataset,
109
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.CreateDatasetRequest.FromString,
110
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.CreateDatasetResponse.SerializeToString,
111
+ ),
95
112
  }
96
113
  generic_handler = grpc.method_handlers_generic_handler(
97
114
  'luminary.proto.api.v0.luminarycloud.physics_ai.PhysicsAiService', rpc_method_handlers)
@@ -170,3 +187,20 @@ class PhysicsAiService(object):
170
187
  proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.SubmitTrainingJobResponse.FromString,
171
188
  options, channel_credentials,
172
189
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
190
+
191
+ @staticmethod
192
+ def CreateDataset(request,
193
+ target,
194
+ options=(),
195
+ channel_credentials=None,
196
+ call_credentials=None,
197
+ insecure=False,
198
+ compression=None,
199
+ wait_for_ready=None,
200
+ timeout=None,
201
+ metadata=None):
202
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.physics_ai.PhysicsAiService/CreateDataset',
203
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.CreateDatasetRequest.SerializeToString,
204
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_physics__ai_dot_physics__ai__pb2.CreateDatasetResponse.FromString,
205
+ options, channel_credentials,
206
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -30,6 +30,11 @@ class PhysicsAiServiceStub:
30
30
  luminarycloud._proto.api.v0.luminarycloud.physics_ai.physics_ai_pb2.SubmitTrainingJobResponse,
31
31
  ]
32
32
  """Submits a training job for a Physics AI architecture"""
33
+ CreateDataset: grpc.UnaryUnaryMultiCallable[
34
+ luminarycloud._proto.api.v0.luminarycloud.physics_ai.physics_ai_pb2.CreateDatasetRequest,
35
+ luminarycloud._proto.api.v0.luminarycloud.physics_ai.physics_ai_pb2.CreateDatasetResponse,
36
+ ]
37
+ """Creates a new Physics AI dataset"""
33
38
 
34
39
  class PhysicsAiServiceServicer(metaclass=abc.ABCMeta):
35
40
  """Manages physics ai architectures."""
@@ -62,5 +67,12 @@ class PhysicsAiServiceServicer(metaclass=abc.ABCMeta):
62
67
  context: grpc.ServicerContext,
63
68
  ) -> luminarycloud._proto.api.v0.luminarycloud.physics_ai.physics_ai_pb2.SubmitTrainingJobResponse:
64
69
  """Submits a training job for a Physics AI architecture"""
70
+ @abc.abstractmethod
71
+ def CreateDataset(
72
+ self,
73
+ request: luminarycloud._proto.api.v0.luminarycloud.physics_ai.physics_ai_pb2.CreateDatasetRequest,
74
+ context: grpc.ServicerContext,
75
+ ) -> luminarycloud._proto.api.v0.luminarycloud.physics_ai.physics_ai_pb2.CreateDatasetResponse:
76
+ """Creates a new Physics AI dataset"""
65
77
 
66
78
  def add_PhysicsAiServiceServicer_to_server(servicer: PhysicsAiServiceServicer, server: grpc.Server) -> None: ...
@@ -14,16 +14,28 @@ _sym_db = _symbol_database.Default()
14
14
 
15
15
 
16
16
  from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
17
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
17
18
  from luminarycloud._proto.base import base_pb2 as proto_dot_base_dot_base__pb2
18
19
 
19
20
 
20
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nFproto/api/v0/luminarycloud/physicsaiinference/physicsaiinference.proto\x12\x36luminary.proto.api.v0.luminarycloud.physicsaiinference\x1a\x1cgoogle/api/annotations.proto\x1a\x15proto/base/base.proto\"\x98\x04\n CreateInferenceServiceJobRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x18\n\x10model_version_id\x18\x03 \x01(\t\x12\x10\n\x08geometry\x18\x04 \x01(\t\x12]\n\x08surfaces\x18\x05 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.SurfaceForInference\x12\x18\n\x10inference_fields\x18\x06 \x03(\t\x12\x15\n\x08settings\x18\x07 \x01(\x0cH\x00\x88\x01\x01\x12o\n\x1aper_surface_visualizations\x18\x08 \x03(\x0e\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationOutput\x12j\n\x15merged_visualizations\x18\t \x03(\x0e\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationOutput\x12\x17\n\nconditions\x18\n \x01(\x0cH\x01\x88\x01\x01\x42\x0b\n\t_settingsB\r\n\x0b_conditions\"0\n\x13SurfaceForInference\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x1e\n\x0c\x44oubleVector\x12\x0e\n\x06values\x18\x01 \x03(\x01\"}\n\x13VisualizationExport\x12Y\n\x04type\x18\x01 \x01(\x0e\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationOutput\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x82\x01\n\rNumericResult\x12\x10\n\x06scalar\x18\x01 \x01(\x01H\x00\x12V\n\x06vector\x18\x02 \x01(\x0b\x32\x44.luminary.proto.api.v0.luminarycloud.physicsaiinference.DoubleVectorH\x00\x42\x07\n\x05value\"\xcc\x05\n\x0fInferenceResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12r\n\x0enumber_outputs\x18\x02 \x03(\x0b\x32Z.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.NumberOutputsEntry\x12t\n\x0fsurface_results\x18\x03 \x03(\x0b\x32[.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.SurfaceResultsEntry\x12r\n\x0evolume_results\x18\x04 \x03(\x0b\x32Z.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.VolumeResultsEntry\x12\x63\n\x0evisualizations\x18\x05 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationExport\x1a{\n\x12NumberOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12T\n\x05value\x18\x02 \x01(\x0b\x32\x45.luminary.proto.api.v0.luminarycloud.physicsaiinference.NumericResult:\x02\x38\x01\x1a\x35\n\x13SurfaceResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12VolumeResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9b\x02\n\x13InferenceServiceJob\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult\x12j\n\x15merged_visualizations\x18\x03 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationExport\x12.\n\x06status\x18\x04 \x01(\x0b\x32\x1e.luminary.proto.base.JobStatus\"/\n\x1dGetInferenceServiceJobRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\"z\n\x1eGetInferenceServiceJobResponse\x12X\n\x03job\x18\x01 \x01(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceServiceJob\"5\n\x1fListInferenceServiceJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"}\n ListInferenceServiceJobsResponse\x12Y\n\x04jobs\x18\x01 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceServiceJob*9\n\x13VisualizationOutput\x12\x0b\n\x07INVALID\x10\x00\x12\x0c\n\x08LUMINARY\x10\x01\x12\x07\n\x03VTK\x10\x02\x32\x8b\x08\n\x19PhysicsAiInferenceService\x12\xf7\x01\n\x19\x43reateInferenceServiceJob\x12X.luminary.proto.api.v0.luminarycloud.physicsaiinference.CreateInferenceServiceJobRequest\x1aV.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobResponse\"(\x82\xd3\xe4\x93\x02\"\"\x1d/v0/physics_ai/inference/jobs:\x01*\x12\x82\x02\n\x1e\x43reateInferenceServiceJobAsync\x12X.luminary.proto.api.v0.luminarycloud.physicsaiinference.CreateInferenceServiceJobRequest\x1aV.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobResponse\".\x82\xd3\xe4\x93\x02(\"#/v0/physics_ai/inference/jobs:async:\x01*\x12\xf7\x01\n\x16GetInferenceServiceJob\x12U.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobRequest\x1aV.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobResponse\".\x82\xd3\xe4\x93\x02(\x12&/v0/physics_ai/inference/jobs/{job_id}\x12\xf4\x01\n\x18ListInferenceServiceJobs\x12W.luminary.proto.api.v0.luminarycloud.physicsaiinference.ListInferenceServiceJobsRequest\x1aX.luminary.proto.api.v0.luminarycloud.physicsaiinference.ListInferenceServiceJobsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v0/physics_ai/inference/jobsBFZDluminarycloud.com/core/proto/api/v0/luminarycloud/physicsaiinferenceb\x06proto3')
21
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\nFproto/api/v0/luminarycloud/physicsaiinference/physicsaiinference.proto\x12\x36luminary.proto.api.v0.luminarycloud.physicsaiinference\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x15proto/base/base.proto\"\x98\x04\n CreateInferenceServiceJobRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x18\n\x10model_version_id\x18\x03 \x01(\t\x12\x10\n\x08geometry\x18\x04 \x01(\t\x12]\n\x08surfaces\x18\x05 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.SurfaceForInference\x12\x18\n\x10inference_fields\x18\x06 \x03(\t\x12\x15\n\x08settings\x18\x07 \x01(\x0cH\x00\x88\x01\x01\x12o\n\x1aper_surface_visualizations\x18\x08 \x03(\x0e\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationOutput\x12j\n\x15merged_visualizations\x18\t \x03(\x0e\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationOutput\x12\x17\n\nconditions\x18\n \x01(\x0cH\x01\x88\x01\x01\x42\x0b\n\t_settingsB\r\n\x0b_conditions\"0\n\x13SurfaceForInference\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x1e\n\x0c\x44oubleVector\x12\x0e\n\x06values\x18\x01 \x03(\x01\"}\n\x13VisualizationExport\x12Y\n\x04type\x18\x01 \x01(\x0e\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationOutput\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x82\x01\n\rNumericResult\x12\x10\n\x06scalar\x18\x01 \x01(\x01H\x00\x12V\n\x06vector\x18\x02 \x01(\x0b\x32\x44.luminary.proto.api.v0.luminarycloud.physicsaiinference.DoubleVectorH\x00\x42\x07\n\x05value\"\xcc\x05\n\x0fInferenceResult\x12\x0c\n\x04name\x18\x01 \x01(\t\x12r\n\x0enumber_outputs\x18\x02 \x03(\x0b\x32Z.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.NumberOutputsEntry\x12t\n\x0fsurface_results\x18\x03 \x03(\x0b\x32[.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.SurfaceResultsEntry\x12r\n\x0evolume_results\x18\x04 \x03(\x0b\x32Z.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.VolumeResultsEntry\x12\x63\n\x0evisualizations\x18\x05 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationExport\x1a{\n\x12NumberOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12T\n\x05value\x18\x02 \x01(\x0b\x32\x45.luminary.proto.api.v0.luminarycloud.physicsaiinference.NumericResult:\x02\x38\x01\x1a\x35\n\x13SurfaceResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x34\n\x12VolumeResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9b\x02\n\x13InferenceServiceJob\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12X\n\x07results\x18\x02 \x03(\x0b\x32G.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult\x12j\n\x15merged_visualizations\x18\x03 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationExport\x12.\n\x06status\x18\x04 \x01(\x0b\x32\x1e.luminary.proto.base.JobStatus\"5\n\x19GetInferenceFieldsRequest\x12\x18\n\x10model_version_id\x18\x01 \x01(\t\"\xca\x01\n\x0eInferenceField\x12\x0c\n\x04name\x18\x01 \x01(\t\x12P\n\x04type\x18\x02 \x01(\x0e\x32\x42.luminary.proto.api.v0.luminarycloud.physicsaiinference.field_type\x12X\n\x08\x63\x61tegory\x18\x03 \x01(\x0e\x32\x46.luminary.proto.api.v0.luminarycloud.physicsaiinference.field_category\"~\n\x1aGetInferenceFieldsResponse\x12`\n\x10inference_fields\x18\x01 \x03(\x0b\x32\x46.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceField\"/\n\x1dGetInferenceServiceJobRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t\"z\n\x1eGetInferenceServiceJobResponse\x12X\n\x03job\x18\x01 \x01(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceServiceJob\"5\n\x1fListInferenceServiceJobsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"}\n ListInferenceServiceJobsResponse\x12Y\n\x04jobs\x18\x01 \x03(\x0b\x32K.luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceServiceJob\"+\n\x19\x44\x65leteInferenceJobRequest\x12\x0e\n\x06job_id\x18\x01 \x01(\t*9\n\x13VisualizationOutput\x12\x0b\n\x07INVALID\x10\x00\x12\x0c\n\x08LUMINARY\x10\x01\x12\x07\n\x03VTK\x10\x02*6\n\nfield_type\x12\x10\n\x0cUNKNOWN_TYPE\x10\x00\x12\n\n\x06SCALAR\x10\x01\x12\n\n\x06VECTOR\x10\x02*L\n\x0e\x66ield_category\x12\x14\n\x10UNKNOWN_CATEGORY\x10\x00\x12\x0b\n\x07NUMERIC\x10\x01\x12\x0b\n\x07SURFACE\x10\x02\x12\n\n\x06VOLUME\x10\x03\x32\xb7\x0b\n\x19PhysicsAiInferenceService\x12\xf7\x01\n\x19\x43reateInferenceServiceJob\x12X.luminary.proto.api.v0.luminarycloud.physicsaiinference.CreateInferenceServiceJobRequest\x1aV.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobResponse\"(\x82\xd3\xe4\x93\x02\"\"\x1d/v0/physics_ai/inference/jobs:\x01*\x12\x82\x02\n\x1e\x43reateInferenceServiceJobAsync\x12X.luminary.proto.api.v0.luminarycloud.physicsaiinference.CreateInferenceServiceJobRequest\x1aV.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobResponse\".\x82\xd3\xe4\x93\x02(\"#/v0/physics_ai/inference/jobs:async:\x01*\x12\xf7\x01\n\x16GetInferenceServiceJob\x12U.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobRequest\x1aV.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobResponse\".\x82\xd3\xe4\x93\x02(\x12&/v0/physics_ai/inference/jobs/{job_id}\x12\xf4\x01\n\x18ListInferenceServiceJobs\x12W.luminary.proto.api.v0.luminarycloud.physicsaiinference.ListInferenceServiceJobsRequest\x1aX.luminary.proto.api.v0.luminarycloud.physicsaiinference.ListInferenceServiceJobsResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v0/physics_ai/inference/jobs\x12\xaf\x01\n\x12\x44\x65leteInferenceJob\x12Q.luminary.proto.api.v0.luminarycloud.physicsaiinference.DeleteInferenceJobRequest\x1a\x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02(*&/v0/physics_ai/inference/jobs/{job_id}\x12\xf7\x01\n\x12GetInferenceFields\x12Q.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceFieldsRequest\x1aR.luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceFieldsResponse\":\x82\xd3\xe4\x93\x02\x34\x12\x32/v0/physics_ai/inference/fields/{model_version_id}BFZDluminarycloud.com/core/proto/api/v0/luminarycloud/physicsaiinferenceb\x06proto3')
21
22
 
22
23
  _VISUALIZATIONOUTPUT = DESCRIPTOR.enum_types_by_name['VisualizationOutput']
23
24
  VisualizationOutput = enum_type_wrapper.EnumTypeWrapper(_VISUALIZATIONOUTPUT)
25
+ _FIELD_TYPE = DESCRIPTOR.enum_types_by_name['field_type']
26
+ field_type = enum_type_wrapper.EnumTypeWrapper(_FIELD_TYPE)
27
+ _FIELD_CATEGORY = DESCRIPTOR.enum_types_by_name['field_category']
28
+ field_category = enum_type_wrapper.EnumTypeWrapper(_FIELD_CATEGORY)
24
29
  INVALID = 0
25
30
  LUMINARY = 1
26
31
  VTK = 2
32
+ UNKNOWN_TYPE = 0
33
+ SCALAR = 1
34
+ VECTOR = 2
35
+ UNKNOWN_CATEGORY = 0
36
+ NUMERIC = 1
37
+ SURFACE = 2
38
+ VOLUME = 3
27
39
 
28
40
 
29
41
  _CREATEINFERENCESERVICEJOBREQUEST = DESCRIPTOR.message_types_by_name['CreateInferenceServiceJobRequest']
@@ -36,10 +48,14 @@ _INFERENCERESULT_NUMBEROUTPUTSENTRY = _INFERENCERESULT.nested_types_by_name['Num
36
48
  _INFERENCERESULT_SURFACERESULTSENTRY = _INFERENCERESULT.nested_types_by_name['SurfaceResultsEntry']
37
49
  _INFERENCERESULT_VOLUMERESULTSENTRY = _INFERENCERESULT.nested_types_by_name['VolumeResultsEntry']
38
50
  _INFERENCESERVICEJOB = DESCRIPTOR.message_types_by_name['InferenceServiceJob']
51
+ _GETINFERENCEFIELDSREQUEST = DESCRIPTOR.message_types_by_name['GetInferenceFieldsRequest']
52
+ _INFERENCEFIELD = DESCRIPTOR.message_types_by_name['InferenceField']
53
+ _GETINFERENCEFIELDSRESPONSE = DESCRIPTOR.message_types_by_name['GetInferenceFieldsResponse']
39
54
  _GETINFERENCESERVICEJOBREQUEST = DESCRIPTOR.message_types_by_name['GetInferenceServiceJobRequest']
40
55
  _GETINFERENCESERVICEJOBRESPONSE = DESCRIPTOR.message_types_by_name['GetInferenceServiceJobResponse']
41
56
  _LISTINFERENCESERVICEJOBSREQUEST = DESCRIPTOR.message_types_by_name['ListInferenceServiceJobsRequest']
42
57
  _LISTINFERENCESERVICEJOBSRESPONSE = DESCRIPTOR.message_types_by_name['ListInferenceServiceJobsResponse']
58
+ _DELETEINFERENCEJOBREQUEST = DESCRIPTOR.message_types_by_name['DeleteInferenceJobRequest']
43
59
  CreateInferenceServiceJobRequest = _reflection.GeneratedProtocolMessageType('CreateInferenceServiceJobRequest', (_message.Message,), {
44
60
  'DESCRIPTOR' : _CREATEINFERENCESERVICEJOBREQUEST,
45
61
  '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
@@ -113,6 +129,27 @@ InferenceServiceJob = _reflection.GeneratedProtocolMessageType('InferenceService
113
129
  })
114
130
  _sym_db.RegisterMessage(InferenceServiceJob)
115
131
 
132
+ GetInferenceFieldsRequest = _reflection.GeneratedProtocolMessageType('GetInferenceFieldsRequest', (_message.Message,), {
133
+ 'DESCRIPTOR' : _GETINFERENCEFIELDSREQUEST,
134
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
135
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceFieldsRequest)
136
+ })
137
+ _sym_db.RegisterMessage(GetInferenceFieldsRequest)
138
+
139
+ InferenceField = _reflection.GeneratedProtocolMessageType('InferenceField', (_message.Message,), {
140
+ 'DESCRIPTOR' : _INFERENCEFIELD,
141
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
142
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceField)
143
+ })
144
+ _sym_db.RegisterMessage(InferenceField)
145
+
146
+ GetInferenceFieldsResponse = _reflection.GeneratedProtocolMessageType('GetInferenceFieldsResponse', (_message.Message,), {
147
+ 'DESCRIPTOR' : _GETINFERENCEFIELDSRESPONSE,
148
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
149
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceFieldsResponse)
150
+ })
151
+ _sym_db.RegisterMessage(GetInferenceFieldsResponse)
152
+
116
153
  GetInferenceServiceJobRequest = _reflection.GeneratedProtocolMessageType('GetInferenceServiceJobRequest', (_message.Message,), {
117
154
  'DESCRIPTOR' : _GETINFERENCESERVICEJOBREQUEST,
118
155
  '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
@@ -141,6 +178,13 @@ ListInferenceServiceJobsResponse = _reflection.GeneratedProtocolMessageType('Lis
141
178
  })
142
179
  _sym_db.RegisterMessage(ListInferenceServiceJobsResponse)
143
180
 
181
+ DeleteInferenceJobRequest = _reflection.GeneratedProtocolMessageType('DeleteInferenceJobRequest', (_message.Message,), {
182
+ 'DESCRIPTOR' : _DELETEINFERENCEJOBREQUEST,
183
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
184
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.DeleteInferenceJobRequest)
185
+ })
186
+ _sym_db.RegisterMessage(DeleteInferenceJobRequest)
187
+
144
188
  _PHYSICSAIINFERENCESERVICE = DESCRIPTOR.services_by_name['PhysicsAiInferenceService']
145
189
  if _descriptor._USE_C_DESCRIPTORS == False:
146
190
 
@@ -160,36 +204,52 @@ if _descriptor._USE_C_DESCRIPTORS == False:
160
204
  _PHYSICSAIINFERENCESERVICE.methods_by_name['GetInferenceServiceJob']._serialized_options = b'\202\323\344\223\002(\022&/v0/physics_ai/inference/jobs/{job_id}'
161
205
  _PHYSICSAIINFERENCESERVICE.methods_by_name['ListInferenceServiceJobs']._options = None
162
206
  _PHYSICSAIINFERENCESERVICE.methods_by_name['ListInferenceServiceJobs']._serialized_options = b'\202\323\344\223\002\037\022\035/v0/physics_ai/inference/jobs'
163
- _VISUALIZATIONOUTPUT._serialized_start=2424
164
- _VISUALIZATIONOUTPUT._serialized_end=2481
165
- _CREATEINFERENCESERVICEJOBREQUEST._serialized_start=184
166
- _CREATEINFERENCESERVICEJOBREQUEST._serialized_end=720
167
- _SURFACEFORINFERENCE._serialized_start=722
168
- _SURFACEFORINFERENCE._serialized_end=770
169
- _DOUBLEVECTOR._serialized_start=772
170
- _DOUBLEVECTOR._serialized_end=802
171
- _VISUALIZATIONEXPORT._serialized_start=804
172
- _VISUALIZATIONEXPORT._serialized_end=929
173
- _NUMERICRESULT._serialized_start=932
174
- _NUMERICRESULT._serialized_end=1062
175
- _INFERENCERESULT._serialized_start=1065
176
- _INFERENCERESULT._serialized_end=1781
177
- _INFERENCERESULT_NUMBEROUTPUTSENTRY._serialized_start=1549
178
- _INFERENCERESULT_NUMBEROUTPUTSENTRY._serialized_end=1672
179
- _INFERENCERESULT_SURFACERESULTSENTRY._serialized_start=1674
180
- _INFERENCERESULT_SURFACERESULTSENTRY._serialized_end=1727
181
- _INFERENCERESULT_VOLUMERESULTSENTRY._serialized_start=1729
182
- _INFERENCERESULT_VOLUMERESULTSENTRY._serialized_end=1781
183
- _INFERENCESERVICEJOB._serialized_start=1784
184
- _INFERENCESERVICEJOB._serialized_end=2067
185
- _GETINFERENCESERVICEJOBREQUEST._serialized_start=2069
186
- _GETINFERENCESERVICEJOBREQUEST._serialized_end=2116
187
- _GETINFERENCESERVICEJOBRESPONSE._serialized_start=2118
188
- _GETINFERENCESERVICEJOBRESPONSE._serialized_end=2240
189
- _LISTINFERENCESERVICEJOBSREQUEST._serialized_start=2242
190
- _LISTINFERENCESERVICEJOBSREQUEST._serialized_end=2295
191
- _LISTINFERENCESERVICEJOBSRESPONSE._serialized_start=2297
192
- _LISTINFERENCESERVICEJOBSRESPONSE._serialized_end=2422
193
- _PHYSICSAIINFERENCESERVICE._serialized_start=2484
194
- _PHYSICSAIINFERENCESERVICE._serialized_end=3519
207
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['DeleteInferenceJob']._options = None
208
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['DeleteInferenceJob']._serialized_options = b'\202\323\344\223\002(*&/v0/physics_ai/inference/jobs/{job_id}'
209
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['GetInferenceFields']._options = None
210
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['GetInferenceFields']._serialized_options = b'\202\323\344\223\0024\0222/v0/physics_ai/inference/fields/{model_version_id}'
211
+ _VISUALIZATIONOUTPUT._serialized_start=2886
212
+ _VISUALIZATIONOUTPUT._serialized_end=2943
213
+ _FIELD_TYPE._serialized_start=2945
214
+ _FIELD_TYPE._serialized_end=2999
215
+ _FIELD_CATEGORY._serialized_start=3001
216
+ _FIELD_CATEGORY._serialized_end=3077
217
+ _CREATEINFERENCESERVICEJOBREQUEST._serialized_start=213
218
+ _CREATEINFERENCESERVICEJOBREQUEST._serialized_end=749
219
+ _SURFACEFORINFERENCE._serialized_start=751
220
+ _SURFACEFORINFERENCE._serialized_end=799
221
+ _DOUBLEVECTOR._serialized_start=801
222
+ _DOUBLEVECTOR._serialized_end=831
223
+ _VISUALIZATIONEXPORT._serialized_start=833
224
+ _VISUALIZATIONEXPORT._serialized_end=958
225
+ _NUMERICRESULT._serialized_start=961
226
+ _NUMERICRESULT._serialized_end=1091
227
+ _INFERENCERESULT._serialized_start=1094
228
+ _INFERENCERESULT._serialized_end=1810
229
+ _INFERENCERESULT_NUMBEROUTPUTSENTRY._serialized_start=1578
230
+ _INFERENCERESULT_NUMBEROUTPUTSENTRY._serialized_end=1701
231
+ _INFERENCERESULT_SURFACERESULTSENTRY._serialized_start=1703
232
+ _INFERENCERESULT_SURFACERESULTSENTRY._serialized_end=1756
233
+ _INFERENCERESULT_VOLUMERESULTSENTRY._serialized_start=1758
234
+ _INFERENCERESULT_VOLUMERESULTSENTRY._serialized_end=1810
235
+ _INFERENCESERVICEJOB._serialized_start=1813
236
+ _INFERENCESERVICEJOB._serialized_end=2096
237
+ _GETINFERENCEFIELDSREQUEST._serialized_start=2098
238
+ _GETINFERENCEFIELDSREQUEST._serialized_end=2151
239
+ _INFERENCEFIELD._serialized_start=2154
240
+ _INFERENCEFIELD._serialized_end=2356
241
+ _GETINFERENCEFIELDSRESPONSE._serialized_start=2358
242
+ _GETINFERENCEFIELDSRESPONSE._serialized_end=2484
243
+ _GETINFERENCESERVICEJOBREQUEST._serialized_start=2486
244
+ _GETINFERENCESERVICEJOBREQUEST._serialized_end=2533
245
+ _GETINFERENCESERVICEJOBRESPONSE._serialized_start=2535
246
+ _GETINFERENCESERVICEJOBRESPONSE._serialized_end=2657
247
+ _LISTINFERENCESERVICEJOBSREQUEST._serialized_start=2659
248
+ _LISTINFERENCESERVICEJOBSREQUEST._serialized_end=2712
249
+ _LISTINFERENCESERVICEJOBSRESPONSE._serialized_start=2714
250
+ _LISTINFERENCESERVICEJOBSRESPONSE._serialized_end=2839
251
+ _DELETEINFERENCEJOBREQUEST._serialized_start=2841
252
+ _DELETEINFERENCEJOBREQUEST._serialized_end=2884
253
+ _PHYSICSAIINFERENCESERVICE._serialized_start=3080
254
+ _PHYSICSAIINFERENCESERVICE._serialized_end=4543
195
255
  # @@protoc_insertion_point(module_scope)
@@ -37,6 +37,42 @@ LUMINARY: VisualizationOutput.ValueType # 1
37
37
  VTK: VisualizationOutput.ValueType # 2
38
38
  global___VisualizationOutput = VisualizationOutput
39
39
 
40
+ class _field_type:
41
+ ValueType = typing.NewType("ValueType", builtins.int)
42
+ V: typing_extensions.TypeAlias = ValueType
43
+
44
+ class _field_typeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_field_type.ValueType], builtins.type): # noqa: F821
45
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
46
+ UNKNOWN_TYPE: _field_type.ValueType # 0
47
+ SCALAR: _field_type.ValueType # 1
48
+ VECTOR: _field_type.ValueType # 2
49
+
50
+ class field_type(_field_type, metaclass=_field_typeEnumTypeWrapper): ...
51
+
52
+ UNKNOWN_TYPE: field_type.ValueType # 0
53
+ SCALAR: field_type.ValueType # 1
54
+ VECTOR: field_type.ValueType # 2
55
+ global___field_type = field_type
56
+
57
+ class _field_category:
58
+ ValueType = typing.NewType("ValueType", builtins.int)
59
+ V: typing_extensions.TypeAlias = ValueType
60
+
61
+ class _field_categoryEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_field_category.ValueType], builtins.type): # noqa: F821
62
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
63
+ UNKNOWN_CATEGORY: _field_category.ValueType # 0
64
+ NUMERIC: _field_category.ValueType # 1
65
+ SURFACE: _field_category.ValueType # 2
66
+ VOLUME: _field_category.ValueType # 3
67
+
68
+ class field_category(_field_category, metaclass=_field_categoryEnumTypeWrapper): ...
69
+
70
+ UNKNOWN_CATEGORY: field_category.ValueType # 0
71
+ NUMERIC: field_category.ValueType # 1
72
+ SURFACE: field_category.ValueType # 2
73
+ VOLUME: field_category.ValueType # 3
74
+ global___field_category = field_category
75
+
40
76
  class CreateInferenceServiceJobRequest(google.protobuf.message.Message):
41
77
  """Request message for creating an inference service job."""
42
78
 
@@ -289,6 +325,59 @@ class InferenceServiceJob(google.protobuf.message.Message):
289
325
 
290
326
  global___InferenceServiceJob = InferenceServiceJob
291
327
 
328
+ class GetInferenceFieldsRequest(google.protobuf.message.Message):
329
+ """Request message for getting inference fields of a model version"""
330
+
331
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
332
+
333
+ MODEL_VERSION_ID_FIELD_NUMBER: builtins.int
334
+ model_version_id: builtins.str
335
+ def __init__(
336
+ self,
337
+ *,
338
+ model_version_id: builtins.str = ...,
339
+ ) -> None: ...
340
+ def ClearField(self, field_name: typing_extensions.Literal["model_version_id", b"model_version_id"]) -> None: ...
341
+
342
+ global___GetInferenceFieldsRequest = GetInferenceFieldsRequest
343
+
344
+ class InferenceField(google.protobuf.message.Message):
345
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
346
+
347
+ NAME_FIELD_NUMBER: builtins.int
348
+ TYPE_FIELD_NUMBER: builtins.int
349
+ CATEGORY_FIELD_NUMBER: builtins.int
350
+ name: builtins.str
351
+ type: global___field_type.ValueType
352
+ category: global___field_category.ValueType
353
+ def __init__(
354
+ self,
355
+ *,
356
+ name: builtins.str = ...,
357
+ type: global___field_type.ValueType = ...,
358
+ category: global___field_category.ValueType = ...,
359
+ ) -> None: ...
360
+ def ClearField(self, field_name: typing_extensions.Literal["category", b"category", "name", b"name", "type", b"type"]) -> None: ...
361
+
362
+ global___InferenceField = InferenceField
363
+
364
+ class GetInferenceFieldsResponse(google.protobuf.message.Message):
365
+ """Response message for for getting inference fields of a model version"""
366
+
367
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
368
+
369
+ INFERENCE_FIELDS_FIELD_NUMBER: builtins.int
370
+ @property
371
+ def inference_fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InferenceField]: ...
372
+ def __init__(
373
+ self,
374
+ *,
375
+ inference_fields: collections.abc.Iterable[global___InferenceField] | None = ...,
376
+ ) -> None: ...
377
+ def ClearField(self, field_name: typing_extensions.Literal["inference_fields", b"inference_fields"]) -> None: ...
378
+
379
+ global___GetInferenceFieldsResponse = GetInferenceFieldsResponse
380
+
292
381
  class GetInferenceServiceJobRequest(google.protobuf.message.Message):
293
382
  """Request message for getting an inference service job."""
294
383
 
@@ -359,3 +448,19 @@ class ListInferenceServiceJobsResponse(google.protobuf.message.Message):
359
448
  def ClearField(self, field_name: typing_extensions.Literal["jobs", b"jobs"]) -> None: ...
360
449
 
361
450
  global___ListInferenceServiceJobsResponse = ListInferenceServiceJobsResponse
451
+
452
+ class DeleteInferenceJobRequest(google.protobuf.message.Message):
453
+ """Request message for deleting an inference service job."""
454
+
455
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
456
+
457
+ JOB_ID_FIELD_NUMBER: builtins.int
458
+ job_id: builtins.str
459
+ def __init__(
460
+ self,
461
+ *,
462
+ job_id: builtins.str = ...,
463
+ ) -> None: ...
464
+ def ClearField(self, field_name: typing_extensions.Literal["job_id", b"job_id"]) -> None: ...
465
+
466
+ global___DeleteInferenceJobRequest = DeleteInferenceJobRequest
@@ -2,6 +2,7 @@
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
4
 
5
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
5
6
  from luminarycloud._proto.api.v0.luminarycloud.physicsaiinference import physicsaiinference_pb2 as proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2
6
7
 
7
8
 
@@ -35,6 +36,16 @@ class PhysicsAiInferenceServiceStub(object):
35
36
  request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.ListInferenceServiceJobsRequest.SerializeToString,
36
37
  response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.ListInferenceServiceJobsResponse.FromString,
37
38
  )
39
+ self.DeleteInferenceJob = channel.unary_unary(
40
+ '/luminary.proto.api.v0.luminarycloud.physicsaiinference.PhysicsAiInferenceService/DeleteInferenceJob',
41
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.DeleteInferenceJobRequest.SerializeToString,
42
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
43
+ )
44
+ self.GetInferenceFields = channel.unary_unary(
45
+ '/luminary.proto.api.v0.luminarycloud.physicsaiinference.PhysicsAiInferenceService/GetInferenceFields',
46
+ request_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.GetInferenceFieldsRequest.SerializeToString,
47
+ response_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.GetInferenceFieldsResponse.FromString,
48
+ )
38
49
 
39
50
 
40
51
  class PhysicsAiInferenceServiceServicer(object):
@@ -69,6 +80,21 @@ class PhysicsAiInferenceServiceServicer(object):
69
80
  context.set_details('Method not implemented!')
70
81
  raise NotImplementedError('Method not implemented!')
71
82
 
83
+ def DeleteInferenceJob(self, request, context):
84
+ """Deletes (soft deletes) an inference service job by its ID.
85
+ This marks the job as soft-deleted so it no longer appears in listings.
86
+ """
87
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
88
+ context.set_details('Method not implemented!')
89
+ raise NotImplementedError('Method not implemented!')
90
+
91
+ def GetInferenceFields(self, request, context):
92
+ """Gets the inference fields that can be requested from a model version.
93
+ """
94
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
95
+ context.set_details('Method not implemented!')
96
+ raise NotImplementedError('Method not implemented!')
97
+
72
98
 
73
99
  def add_PhysicsAiInferenceServiceServicer_to_server(servicer, server):
74
100
  rpc_method_handlers = {
@@ -92,6 +118,16 @@ def add_PhysicsAiInferenceServiceServicer_to_server(servicer, server):
92
118
  request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.ListInferenceServiceJobsRequest.FromString,
93
119
  response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.ListInferenceServiceJobsResponse.SerializeToString,
94
120
  ),
121
+ 'DeleteInferenceJob': grpc.unary_unary_rpc_method_handler(
122
+ servicer.DeleteInferenceJob,
123
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.DeleteInferenceJobRequest.FromString,
124
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
125
+ ),
126
+ 'GetInferenceFields': grpc.unary_unary_rpc_method_handler(
127
+ servicer.GetInferenceFields,
128
+ request_deserializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.GetInferenceFieldsRequest.FromString,
129
+ response_serializer=proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.GetInferenceFieldsResponse.SerializeToString,
130
+ ),
95
131
  }
96
132
  generic_handler = grpc.method_handlers_generic_handler(
97
133
  'luminary.proto.api.v0.luminarycloud.physicsaiinference.PhysicsAiInferenceService', rpc_method_handlers)
@@ -170,3 +206,37 @@ class PhysicsAiInferenceService(object):
170
206
  proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.ListInferenceServiceJobsResponse.FromString,
171
207
  options, channel_credentials,
172
208
  insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
209
+
210
+ @staticmethod
211
+ def DeleteInferenceJob(request,
212
+ target,
213
+ options=(),
214
+ channel_credentials=None,
215
+ call_credentials=None,
216
+ insecure=False,
217
+ compression=None,
218
+ wait_for_ready=None,
219
+ timeout=None,
220
+ metadata=None):
221
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.physicsaiinference.PhysicsAiInferenceService/DeleteInferenceJob',
222
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.DeleteInferenceJobRequest.SerializeToString,
223
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
224
+ options, channel_credentials,
225
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
226
+
227
+ @staticmethod
228
+ def GetInferenceFields(request,
229
+ target,
230
+ options=(),
231
+ channel_credentials=None,
232
+ call_credentials=None,
233
+ insecure=False,
234
+ compression=None,
235
+ wait_for_ready=None,
236
+ timeout=None,
237
+ metadata=None):
238
+ return grpc.experimental.unary_unary(request, target, '/luminary.proto.api.v0.luminarycloud.physicsaiinference.PhysicsAiInferenceService/GetInferenceFields',
239
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.GetInferenceFieldsRequest.SerializeToString,
240
+ proto_dot_api_dot_v0_dot_luminarycloud_dot_physicsaiinference_dot_physicsaiinference__pb2.GetInferenceFieldsResponse.FromString,
241
+ options, channel_credentials,
242
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -3,6 +3,7 @@
3
3
  isort:skip_file
4
4
  """
5
5
  import abc
6
+ import google.protobuf.empty_pb2
6
7
  import grpc
7
8
  import luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2
8
9
 
@@ -30,6 +31,18 @@ class PhysicsAiInferenceServiceStub:
30
31
  luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.ListInferenceServiceJobsResponse,
31
32
  ]
32
33
  """Lists all inference service jobs for a given project."""
34
+ DeleteInferenceJob: grpc.UnaryUnaryMultiCallable[
35
+ luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.DeleteInferenceJobRequest,
36
+ google.protobuf.empty_pb2.Empty,
37
+ ]
38
+ """Deletes (soft deletes) an inference service job by its ID.
39
+ This marks the job as soft-deleted so it no longer appears in listings.
40
+ """
41
+ GetInferenceFields: grpc.UnaryUnaryMultiCallable[
42
+ luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.GetInferenceFieldsRequest,
43
+ luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.GetInferenceFieldsResponse,
44
+ ]
45
+ """Gets the inference fields that can be requested from a model version."""
33
46
 
34
47
  class PhysicsAiInferenceServiceServicer(metaclass=abc.ABCMeta):
35
48
  """Manages physics AI inference jobs."""
@@ -62,5 +75,21 @@ class PhysicsAiInferenceServiceServicer(metaclass=abc.ABCMeta):
62
75
  context: grpc.ServicerContext,
63
76
  ) -> luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.ListInferenceServiceJobsResponse:
64
77
  """Lists all inference service jobs for a given project."""
78
+ @abc.abstractmethod
79
+ def DeleteInferenceJob(
80
+ self,
81
+ request: luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.DeleteInferenceJobRequest,
82
+ context: grpc.ServicerContext,
83
+ ) -> google.protobuf.empty_pb2.Empty:
84
+ """Deletes (soft deletes) an inference service job by its ID.
85
+ This marks the job as soft-deleted so it no longer appears in listings.
86
+ """
87
+ @abc.abstractmethod
88
+ def GetInferenceFields(
89
+ self,
90
+ request: luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.GetInferenceFieldsRequest,
91
+ context: grpc.ServicerContext,
92
+ ) -> luminarycloud._proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2.GetInferenceFieldsResponse:
93
+ """Gets the inference fields that can be requested from a model version."""
65
94
 
66
95
  def add_PhysicsAiInferenceServiceServicer_to_server(servicer: PhysicsAiInferenceServiceServicer, server: grpc.Server) -> None: ...