luminarycloud 0.21.2__py3-none-any.whl → 0.22.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.
Files changed (69) hide show
  1. luminarycloud/__init__.py +3 -1
  2. luminarycloud/_client/authentication_plugin.py +49 -0
  3. luminarycloud/_client/client.py +38 -8
  4. luminarycloud/_client/http_client.py +1 -1
  5. luminarycloud/_client/retry_interceptor.py +64 -2
  6. luminarycloud/_feature_flag.py +22 -0
  7. luminarycloud/_helpers/_create_simulation.py +7 -2
  8. luminarycloud/_helpers/download.py +11 -0
  9. luminarycloud/_helpers/proto_decorator.py +13 -5
  10. luminarycloud/_proto/api/v0/luminarycloud/feature_flag/feature_flag_pb2.py +55 -0
  11. luminarycloud/_proto/api/v0/luminarycloud/feature_flag/feature_flag_pb2.pyi +52 -0
  12. luminarycloud/_proto/api/v0/luminarycloud/feature_flag/feature_flag_pb2_grpc.py +72 -0
  13. luminarycloud/_proto/api/v0/luminarycloud/feature_flag/feature_flag_pb2_grpc.pyi +35 -0
  14. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.py +132 -132
  15. luminarycloud/_proto/api/v0/luminarycloud/geometry/geometry_pb2.pyi +36 -8
  16. luminarycloud/_proto/api/v0/luminarycloud/mesh/mesh_pb2.py +74 -73
  17. luminarycloud/_proto/api/v0/luminarycloud/mesh/mesh_pb2.pyi +8 -1
  18. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.py +53 -23
  19. luminarycloud/_proto/api/v0/luminarycloud/physics_ai/physics_ai_pb2.pyi +54 -1
  20. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2.py +195 -0
  21. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2.pyi +361 -0
  22. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2_grpc.py +172 -0
  23. luminarycloud/_proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference_pb2_grpc.pyi +66 -0
  24. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2.py +97 -61
  25. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2.pyi +68 -3
  26. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2_grpc.py +34 -0
  27. luminarycloud/_proto/api/v0/luminarycloud/simulation/simulation_pb2_grpc.pyi +12 -0
  28. luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2.py +33 -31
  29. luminarycloud/_proto/api/v0/luminarycloud/simulation_template/simulation_template_pb2.pyi +23 -2
  30. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.py +88 -65
  31. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2.pyi +42 -0
  32. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.py +34 -0
  33. luminarycloud/_proto/api/v0/luminarycloud/thirdpartyintegration/onshape/onshape_pb2_grpc.pyi +12 -0
  34. luminarycloud/_proto/base/base_pb2.py +7 -6
  35. luminarycloud/_proto/base/base_pb2.pyi +4 -0
  36. luminarycloud/_proto/cad/shape_pb2.py +39 -19
  37. luminarycloud/_proto/cad/shape_pb2.pyi +86 -34
  38. luminarycloud/_proto/client/simulation_pb2.py +3 -3
  39. luminarycloud/_proto/geometry/geometry_pb2.py +77 -63
  40. luminarycloud/_proto/geometry/geometry_pb2.pyi +42 -3
  41. luminarycloud/_proto/hexmesh/hexmesh_pb2.py +22 -18
  42. luminarycloud/_proto/hexmesh/hexmesh_pb2.pyi +18 -2
  43. luminarycloud/_proto/physicsaiinferenceservice/physicsaiinferenceservice_pb2.py +30 -0
  44. luminarycloud/_proto/physicsaiinferenceservice/physicsaiinferenceservice_pb2.pyi +7 -0
  45. luminarycloud/_proto/physicsaitrainingservice/physicsaitrainingservice_pb2.py +2 -2
  46. luminarycloud/_proto/physicsaitrainingservice/physicsaitrainingservice_pb2_grpc.py +34 -0
  47. luminarycloud/_proto/physicsaitrainingservice/physicsaitrainingservice_pb2_grpc.pyi +12 -0
  48. luminarycloud/enum/vis_enums.py +6 -0
  49. luminarycloud/feature_modification.py +32 -1
  50. luminarycloud/geometry.py +67 -7
  51. luminarycloud/geometry_version.py +4 -0
  52. luminarycloud/mesh.py +4 -0
  53. luminarycloud/meshing/mesh_generation_params.py +13 -14
  54. luminarycloud/meshing/sizing_strategy/sizing_strategies.py +1 -2
  55. luminarycloud/physics_ai/solution.py +4 -0
  56. luminarycloud/pipelines/api.py +99 -8
  57. luminarycloud/pipelines/core.py +12 -2
  58. luminarycloud/pipelines/stages.py +22 -9
  59. luminarycloud/project.py +5 -8
  60. luminarycloud/simulation.py +57 -0
  61. luminarycloud/types/vector3.py +1 -2
  62. luminarycloud/vis/data_extraction.py +7 -7
  63. luminarycloud/vis/interactive_report.py +163 -7
  64. luminarycloud/vis/report.py +113 -1
  65. luminarycloud/volume_selection.py +71 -7
  66. {luminarycloud-0.21.2.dist-info → luminarycloud-0.22.1.dist-info}/METADATA +1 -1
  67. {luminarycloud-0.21.2.dist-info → luminarycloud-0.22.1.dist-info}/RECORD +68 -58
  68. {luminarycloud-0.21.2.dist-info → luminarycloud-0.22.1.dist-info}/WHEEL +1 -1
  69. luminarycloud/pipeline_util/dictable.py +0 -27
@@ -0,0 +1,195 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: proto/api/v0/luminarycloud/physicsaiinference/physicsaiinference.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf.internal import enum_type_wrapper
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import message as _message
9
+ from google.protobuf import reflection as _reflection
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ # @@protoc_insertion_point(imports)
12
+
13
+ _sym_db = _symbol_database.Default()
14
+
15
+
16
+ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
17
+ from luminarycloud._proto.base import base_pb2 as proto_dot_base_dot_base__pb2
18
+
19
+
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
+
22
+ _VISUALIZATIONOUTPUT = DESCRIPTOR.enum_types_by_name['VisualizationOutput']
23
+ VisualizationOutput = enum_type_wrapper.EnumTypeWrapper(_VISUALIZATIONOUTPUT)
24
+ INVALID = 0
25
+ LUMINARY = 1
26
+ VTK = 2
27
+
28
+
29
+ _CREATEINFERENCESERVICEJOBREQUEST = DESCRIPTOR.message_types_by_name['CreateInferenceServiceJobRequest']
30
+ _SURFACEFORINFERENCE = DESCRIPTOR.message_types_by_name['SurfaceForInference']
31
+ _DOUBLEVECTOR = DESCRIPTOR.message_types_by_name['DoubleVector']
32
+ _VISUALIZATIONEXPORT = DESCRIPTOR.message_types_by_name['VisualizationExport']
33
+ _NUMERICRESULT = DESCRIPTOR.message_types_by_name['NumericResult']
34
+ _INFERENCERESULT = DESCRIPTOR.message_types_by_name['InferenceResult']
35
+ _INFERENCERESULT_NUMBEROUTPUTSENTRY = _INFERENCERESULT.nested_types_by_name['NumberOutputsEntry']
36
+ _INFERENCERESULT_SURFACERESULTSENTRY = _INFERENCERESULT.nested_types_by_name['SurfaceResultsEntry']
37
+ _INFERENCERESULT_VOLUMERESULTSENTRY = _INFERENCERESULT.nested_types_by_name['VolumeResultsEntry']
38
+ _INFERENCESERVICEJOB = DESCRIPTOR.message_types_by_name['InferenceServiceJob']
39
+ _GETINFERENCESERVICEJOBREQUEST = DESCRIPTOR.message_types_by_name['GetInferenceServiceJobRequest']
40
+ _GETINFERENCESERVICEJOBRESPONSE = DESCRIPTOR.message_types_by_name['GetInferenceServiceJobResponse']
41
+ _LISTINFERENCESERVICEJOBSREQUEST = DESCRIPTOR.message_types_by_name['ListInferenceServiceJobsRequest']
42
+ _LISTINFERENCESERVICEJOBSRESPONSE = DESCRIPTOR.message_types_by_name['ListInferenceServiceJobsResponse']
43
+ CreateInferenceServiceJobRequest = _reflection.GeneratedProtocolMessageType('CreateInferenceServiceJobRequest', (_message.Message,), {
44
+ 'DESCRIPTOR' : _CREATEINFERENCESERVICEJOBREQUEST,
45
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
46
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.CreateInferenceServiceJobRequest)
47
+ })
48
+ _sym_db.RegisterMessage(CreateInferenceServiceJobRequest)
49
+
50
+ SurfaceForInference = _reflection.GeneratedProtocolMessageType('SurfaceForInference', (_message.Message,), {
51
+ 'DESCRIPTOR' : _SURFACEFORINFERENCE,
52
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
53
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.SurfaceForInference)
54
+ })
55
+ _sym_db.RegisterMessage(SurfaceForInference)
56
+
57
+ DoubleVector = _reflection.GeneratedProtocolMessageType('DoubleVector', (_message.Message,), {
58
+ 'DESCRIPTOR' : _DOUBLEVECTOR,
59
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
60
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.DoubleVector)
61
+ })
62
+ _sym_db.RegisterMessage(DoubleVector)
63
+
64
+ VisualizationExport = _reflection.GeneratedProtocolMessageType('VisualizationExport', (_message.Message,), {
65
+ 'DESCRIPTOR' : _VISUALIZATIONEXPORT,
66
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
67
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.VisualizationExport)
68
+ })
69
+ _sym_db.RegisterMessage(VisualizationExport)
70
+
71
+ NumericResult = _reflection.GeneratedProtocolMessageType('NumericResult', (_message.Message,), {
72
+ 'DESCRIPTOR' : _NUMERICRESULT,
73
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
74
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.NumericResult)
75
+ })
76
+ _sym_db.RegisterMessage(NumericResult)
77
+
78
+ InferenceResult = _reflection.GeneratedProtocolMessageType('InferenceResult', (_message.Message,), {
79
+
80
+ 'NumberOutputsEntry' : _reflection.GeneratedProtocolMessageType('NumberOutputsEntry', (_message.Message,), {
81
+ 'DESCRIPTOR' : _INFERENCERESULT_NUMBEROUTPUTSENTRY,
82
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
83
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.NumberOutputsEntry)
84
+ })
85
+ ,
86
+
87
+ 'SurfaceResultsEntry' : _reflection.GeneratedProtocolMessageType('SurfaceResultsEntry', (_message.Message,), {
88
+ 'DESCRIPTOR' : _INFERENCERESULT_SURFACERESULTSENTRY,
89
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
90
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.SurfaceResultsEntry)
91
+ })
92
+ ,
93
+
94
+ 'VolumeResultsEntry' : _reflection.GeneratedProtocolMessageType('VolumeResultsEntry', (_message.Message,), {
95
+ 'DESCRIPTOR' : _INFERENCERESULT_VOLUMERESULTSENTRY,
96
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
97
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult.VolumeResultsEntry)
98
+ })
99
+ ,
100
+ 'DESCRIPTOR' : _INFERENCERESULT,
101
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
102
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceResult)
103
+ })
104
+ _sym_db.RegisterMessage(InferenceResult)
105
+ _sym_db.RegisterMessage(InferenceResult.NumberOutputsEntry)
106
+ _sym_db.RegisterMessage(InferenceResult.SurfaceResultsEntry)
107
+ _sym_db.RegisterMessage(InferenceResult.VolumeResultsEntry)
108
+
109
+ InferenceServiceJob = _reflection.GeneratedProtocolMessageType('InferenceServiceJob', (_message.Message,), {
110
+ 'DESCRIPTOR' : _INFERENCESERVICEJOB,
111
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
112
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.InferenceServiceJob)
113
+ })
114
+ _sym_db.RegisterMessage(InferenceServiceJob)
115
+
116
+ GetInferenceServiceJobRequest = _reflection.GeneratedProtocolMessageType('GetInferenceServiceJobRequest', (_message.Message,), {
117
+ 'DESCRIPTOR' : _GETINFERENCESERVICEJOBREQUEST,
118
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
119
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobRequest)
120
+ })
121
+ _sym_db.RegisterMessage(GetInferenceServiceJobRequest)
122
+
123
+ GetInferenceServiceJobResponse = _reflection.GeneratedProtocolMessageType('GetInferenceServiceJobResponse', (_message.Message,), {
124
+ 'DESCRIPTOR' : _GETINFERENCESERVICEJOBRESPONSE,
125
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
126
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.GetInferenceServiceJobResponse)
127
+ })
128
+ _sym_db.RegisterMessage(GetInferenceServiceJobResponse)
129
+
130
+ ListInferenceServiceJobsRequest = _reflection.GeneratedProtocolMessageType('ListInferenceServiceJobsRequest', (_message.Message,), {
131
+ 'DESCRIPTOR' : _LISTINFERENCESERVICEJOBSREQUEST,
132
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
133
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.ListInferenceServiceJobsRequest)
134
+ })
135
+ _sym_db.RegisterMessage(ListInferenceServiceJobsRequest)
136
+
137
+ ListInferenceServiceJobsResponse = _reflection.GeneratedProtocolMessageType('ListInferenceServiceJobsResponse', (_message.Message,), {
138
+ 'DESCRIPTOR' : _LISTINFERENCESERVICEJOBSRESPONSE,
139
+ '__module__' : 'proto.api.v0.luminarycloud.physicsaiinference.physicsaiinference_pb2'
140
+ # @@protoc_insertion_point(class_scope:luminary.proto.api.v0.luminarycloud.physicsaiinference.ListInferenceServiceJobsResponse)
141
+ })
142
+ _sym_db.RegisterMessage(ListInferenceServiceJobsResponse)
143
+
144
+ _PHYSICSAIINFERENCESERVICE = DESCRIPTOR.services_by_name['PhysicsAiInferenceService']
145
+ if _descriptor._USE_C_DESCRIPTORS == False:
146
+
147
+ DESCRIPTOR._options = None
148
+ DESCRIPTOR._serialized_options = b'ZDluminarycloud.com/core/proto/api/v0/luminarycloud/physicsaiinference'
149
+ _INFERENCERESULT_NUMBEROUTPUTSENTRY._options = None
150
+ _INFERENCERESULT_NUMBEROUTPUTSENTRY._serialized_options = b'8\001'
151
+ _INFERENCERESULT_SURFACERESULTSENTRY._options = None
152
+ _INFERENCERESULT_SURFACERESULTSENTRY._serialized_options = b'8\001'
153
+ _INFERENCERESULT_VOLUMERESULTSENTRY._options = None
154
+ _INFERENCERESULT_VOLUMERESULTSENTRY._serialized_options = b'8\001'
155
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['CreateInferenceServiceJob']._options = None
156
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['CreateInferenceServiceJob']._serialized_options = b'\202\323\344\223\002\"\"\035/v0/physics_ai/inference/jobs:\001*'
157
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['CreateInferenceServiceJobAsync']._options = None
158
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['CreateInferenceServiceJobAsync']._serialized_options = b'\202\323\344\223\002(\"#/v0/physics_ai/inference/jobs:async:\001*'
159
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['GetInferenceServiceJob']._options = None
160
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['GetInferenceServiceJob']._serialized_options = b'\202\323\344\223\002(\022&/v0/physics_ai/inference/jobs/{job_id}'
161
+ _PHYSICSAIINFERENCESERVICE.methods_by_name['ListInferenceServiceJobs']._options = None
162
+ _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
195
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,361 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import collections.abc
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.internal.containers
9
+ import google.protobuf.internal.enum_type_wrapper
10
+ import google.protobuf.message
11
+ import luminarycloud._proto.base.base_pb2
12
+ import sys
13
+ import typing
14
+
15
+ if sys.version_info >= (3, 10):
16
+ import typing as typing_extensions
17
+ else:
18
+ import typing_extensions
19
+
20
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
21
+
22
+ class _VisualizationOutput:
23
+ ValueType = typing.NewType("ValueType", builtins.int)
24
+ V: typing_extensions.TypeAlias = ValueType
25
+
26
+ class _VisualizationOutputEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VisualizationOutput.ValueType], builtins.type): # noqa: F821
27
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
28
+ INVALID: _VisualizationOutput.ValueType # 0
29
+ LUMINARY: _VisualizationOutput.ValueType # 1
30
+ VTK: _VisualizationOutput.ValueType # 2
31
+
32
+ class VisualizationOutput(_VisualizationOutput, metaclass=_VisualizationOutputEnumTypeWrapper):
33
+ """Visualization output types."""
34
+
35
+ INVALID: VisualizationOutput.ValueType # 0
36
+ LUMINARY: VisualizationOutput.ValueType # 1
37
+ VTK: VisualizationOutput.ValueType # 2
38
+ global___VisualizationOutput = VisualizationOutput
39
+
40
+ class CreateInferenceServiceJobRequest(google.protobuf.message.Message):
41
+ """Request message for creating an inference service job."""
42
+
43
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
44
+
45
+ REQUEST_ID_FIELD_NUMBER: builtins.int
46
+ PROJECT_ID_FIELD_NUMBER: builtins.int
47
+ MODEL_VERSION_ID_FIELD_NUMBER: builtins.int
48
+ GEOMETRY_FIELD_NUMBER: builtins.int
49
+ SURFACES_FIELD_NUMBER: builtins.int
50
+ INFERENCE_FIELDS_FIELD_NUMBER: builtins.int
51
+ SETTINGS_FIELD_NUMBER: builtins.int
52
+ PER_SURFACE_VISUALIZATIONS_FIELD_NUMBER: builtins.int
53
+ MERGED_VISUALIZATIONS_FIELD_NUMBER: builtins.int
54
+ CONDITIONS_FIELD_NUMBER: builtins.int
55
+ request_id: builtins.str
56
+ """Optional. Request ID used to deduplicate creation requests. If not provided, a new ID will be generated."""
57
+ project_id: builtins.str
58
+ """Required. Project ID where the inference job will be created."""
59
+ model_version_id: builtins.str
60
+ """Required. ID of the trained model version to use for inference."""
61
+ geometry: builtins.str
62
+ """Required. STL URL we will perform inference on."""
63
+ @property
64
+ def surfaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SurfaceForInference]:
65
+ """STL defining the surfaces where inference will be performed"""
66
+ @property
67
+ def inference_fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
68
+ """Optional. Specific fields within the trained model to return inference results for."""
69
+ settings: builtins.bytes
70
+ """Optional. JSON encoded settings for DoMINO (e.g., stencil_size)."""
71
+ @property
72
+ def per_surface_visualizations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___VisualizationOutput.ValueType]:
73
+ """Types of visualization to write for each surface"""
74
+ @property
75
+ def merged_visualizations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___VisualizationOutput.ValueType]:
76
+ """Types of merged visualization to write"""
77
+ conditions: builtins.bytes
78
+ """Optional. JSON encoded conditions to apply to the model (e.g., alpha, mach number, etc.)."""
79
+ def __init__(
80
+ self,
81
+ *,
82
+ request_id: builtins.str = ...,
83
+ project_id: builtins.str = ...,
84
+ model_version_id: builtins.str = ...,
85
+ geometry: builtins.str = ...,
86
+ surfaces: collections.abc.Iterable[global___SurfaceForInference] | None = ...,
87
+ inference_fields: collections.abc.Iterable[builtins.str] | None = ...,
88
+ settings: builtins.bytes | None = ...,
89
+ per_surface_visualizations: collections.abc.Iterable[global___VisualizationOutput.ValueType] | None = ...,
90
+ merged_visualizations: collections.abc.Iterable[global___VisualizationOutput.ValueType] | None = ...,
91
+ conditions: builtins.bytes | None = ...,
92
+ ) -> None: ...
93
+ def HasField(self, field_name: typing_extensions.Literal["_conditions", b"_conditions", "_settings", b"_settings", "conditions", b"conditions", "settings", b"settings"]) -> builtins.bool: ...
94
+ def ClearField(self, field_name: typing_extensions.Literal["_conditions", b"_conditions", "_settings", b"_settings", "conditions", b"conditions", "geometry", b"geometry", "inference_fields", b"inference_fields", "merged_visualizations", b"merged_visualizations", "model_version_id", b"model_version_id", "per_surface_visualizations", b"per_surface_visualizations", "project_id", b"project_id", "request_id", b"request_id", "settings", b"settings", "surfaces", b"surfaces"]) -> None: ...
95
+ @typing.overload
96
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_conditions", b"_conditions"]) -> typing_extensions.Literal["conditions"] | None: ...
97
+ @typing.overload
98
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_settings", b"_settings"]) -> typing_extensions.Literal["settings"] | None: ...
99
+
100
+ global___CreateInferenceServiceJobRequest = CreateInferenceServiceJobRequest
101
+
102
+ class SurfaceForInference(google.protobuf.message.Message):
103
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
104
+
105
+ NAME_FIELD_NUMBER: builtins.int
106
+ URL_FIELD_NUMBER: builtins.int
107
+ name: builtins.str
108
+ """Name of the surface"""
109
+ url: builtins.str
110
+ """STL defining the surface"""
111
+ def __init__(
112
+ self,
113
+ *,
114
+ name: builtins.str = ...,
115
+ url: builtins.str = ...,
116
+ ) -> None: ...
117
+ def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "url", b"url"]) -> None: ...
118
+
119
+ global___SurfaceForInference = SurfaceForInference
120
+
121
+ class DoubleVector(google.protobuf.message.Message):
122
+ """Double vector message for inference results."""
123
+
124
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
125
+
126
+ VALUES_FIELD_NUMBER: builtins.int
127
+ @property
128
+ def values(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.float]: ...
129
+ def __init__(
130
+ self,
131
+ *,
132
+ values: collections.abc.Iterable[builtins.float] | None = ...,
133
+ ) -> None: ...
134
+ def ClearField(self, field_name: typing_extensions.Literal["values", b"values"]) -> None: ...
135
+
136
+ global___DoubleVector = DoubleVector
137
+
138
+ class VisualizationExport(google.protobuf.message.Message):
139
+ """Visualization export information."""
140
+
141
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
142
+
143
+ TYPE_FIELD_NUMBER: builtins.int
144
+ URL_FIELD_NUMBER: builtins.int
145
+ type: global___VisualizationOutput.ValueType
146
+ url: builtins.str
147
+ def __init__(
148
+ self,
149
+ *,
150
+ type: global___VisualizationOutput.ValueType = ...,
151
+ url: builtins.str = ...,
152
+ ) -> None: ...
153
+ def ClearField(self, field_name: typing_extensions.Literal["type", b"type", "url", b"url"]) -> None: ...
154
+
155
+ global___VisualizationExport = VisualizationExport
156
+
157
+ class NumericResult(google.protobuf.message.Message):
158
+ """Inference result value."""
159
+
160
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
161
+
162
+ SCALAR_FIELD_NUMBER: builtins.int
163
+ VECTOR_FIELD_NUMBER: builtins.int
164
+ scalar: builtins.float
165
+ @property
166
+ def vector(self) -> global___DoubleVector: ...
167
+ def __init__(
168
+ self,
169
+ *,
170
+ scalar: builtins.float = ...,
171
+ vector: global___DoubleVector | None = ...,
172
+ ) -> None: ...
173
+ def HasField(self, field_name: typing_extensions.Literal["scalar", b"scalar", "value", b"value", "vector", b"vector"]) -> builtins.bool: ...
174
+ def ClearField(self, field_name: typing_extensions.Literal["scalar", b"scalar", "value", b"value", "vector", b"vector"]) -> None: ...
175
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["scalar", "vector"] | None: ...
176
+
177
+ global___NumericResult = NumericResult
178
+
179
+ class InferenceResult(google.protobuf.message.Message):
180
+ """An inference service job."""
181
+
182
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
183
+
184
+ class NumberOutputsEntry(google.protobuf.message.Message):
185
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
186
+
187
+ KEY_FIELD_NUMBER: builtins.int
188
+ VALUE_FIELD_NUMBER: builtins.int
189
+ key: builtins.str
190
+ @property
191
+ def value(self) -> global___NumericResult: ...
192
+ def __init__(
193
+ self,
194
+ *,
195
+ key: builtins.str = ...,
196
+ value: global___NumericResult | None = ...,
197
+ ) -> None: ...
198
+ def HasField(self, field_name: typing_extensions.Literal["value", b"value"]) -> builtins.bool: ...
199
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
200
+
201
+ class SurfaceResultsEntry(google.protobuf.message.Message):
202
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
203
+
204
+ KEY_FIELD_NUMBER: builtins.int
205
+ VALUE_FIELD_NUMBER: builtins.int
206
+ key: builtins.str
207
+ value: builtins.str
208
+ def __init__(
209
+ self,
210
+ *,
211
+ key: builtins.str = ...,
212
+ value: builtins.str = ...,
213
+ ) -> None: ...
214
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
215
+
216
+ class VolumeResultsEntry(google.protobuf.message.Message):
217
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
218
+
219
+ KEY_FIELD_NUMBER: builtins.int
220
+ VALUE_FIELD_NUMBER: builtins.int
221
+ key: builtins.str
222
+ value: builtins.str
223
+ def __init__(
224
+ self,
225
+ *,
226
+ key: builtins.str = ...,
227
+ value: builtins.str = ...,
228
+ ) -> None: ...
229
+ def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ...
230
+
231
+ NAME_FIELD_NUMBER: builtins.int
232
+ NUMBER_OUTPUTS_FIELD_NUMBER: builtins.int
233
+ SURFACE_RESULTS_FIELD_NUMBER: builtins.int
234
+ VOLUME_RESULTS_FIELD_NUMBER: builtins.int
235
+ VISUALIZATIONS_FIELD_NUMBER: builtins.int
236
+ name: builtins.str
237
+ """Name of surface"""
238
+ @property
239
+ def number_outputs(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___NumericResult]:
240
+ """Map of number outputs (e.g., lift and drag forces)."""
241
+ @property
242
+ def surface_results(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
243
+ """Map of surface results (e.g., URL to data in GCS for surface pressure)."""
244
+ @property
245
+ def volume_results(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
246
+ """Map of volume results (e.g., URL to data in GCS for pressure, velocity)."""
247
+ @property
248
+ def visualizations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VisualizationExport]:
249
+ """List of visualization exports."""
250
+ def __init__(
251
+ self,
252
+ *,
253
+ name: builtins.str = ...,
254
+ number_outputs: collections.abc.Mapping[builtins.str, global___NumericResult] | None = ...,
255
+ surface_results: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
256
+ volume_results: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
257
+ visualizations: collections.abc.Iterable[global___VisualizationExport] | None = ...,
258
+ ) -> None: ...
259
+ def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "number_outputs", b"number_outputs", "surface_results", b"surface_results", "visualizations", b"visualizations", "volume_results", b"volume_results"]) -> None: ...
260
+
261
+ global___InferenceResult = InferenceResult
262
+
263
+ class InferenceServiceJob(google.protobuf.message.Message):
264
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
265
+
266
+ JOB_ID_FIELD_NUMBER: builtins.int
267
+ RESULTS_FIELD_NUMBER: builtins.int
268
+ MERGED_VISUALIZATIONS_FIELD_NUMBER: builtins.int
269
+ STATUS_FIELD_NUMBER: builtins.int
270
+ job_id: builtins.str
271
+ """Unique identifier for the job."""
272
+ @property
273
+ def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InferenceResult]: ...
274
+ @property
275
+ def merged_visualizations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VisualizationExport]: ...
276
+ @property
277
+ def status(self) -> luminarycloud._proto.base.base_pb2.JobStatus:
278
+ """Current status of the job (e.g., Active, Completed, Failed)."""
279
+ def __init__(
280
+ self,
281
+ *,
282
+ job_id: builtins.str = ...,
283
+ results: collections.abc.Iterable[global___InferenceResult] | None = ...,
284
+ merged_visualizations: collections.abc.Iterable[global___VisualizationExport] | None = ...,
285
+ status: luminarycloud._proto.base.base_pb2.JobStatus | None = ...,
286
+ ) -> None: ...
287
+ def HasField(self, field_name: typing_extensions.Literal["status", b"status"]) -> builtins.bool: ...
288
+ def ClearField(self, field_name: typing_extensions.Literal["job_id", b"job_id", "merged_visualizations", b"merged_visualizations", "results", b"results", "status", b"status"]) -> None: ...
289
+
290
+ global___InferenceServiceJob = InferenceServiceJob
291
+
292
+ class GetInferenceServiceJobRequest(google.protobuf.message.Message):
293
+ """Request message for getting an inference service job."""
294
+
295
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
296
+
297
+ JOB_ID_FIELD_NUMBER: builtins.int
298
+ job_id: builtins.str
299
+ """Required. Inference job ID."""
300
+ def __init__(
301
+ self,
302
+ *,
303
+ job_id: builtins.str = ...,
304
+ ) -> None: ...
305
+ def ClearField(self, field_name: typing_extensions.Literal["job_id", b"job_id"]) -> None: ...
306
+
307
+ global___GetInferenceServiceJobRequest = GetInferenceServiceJobRequest
308
+
309
+ class GetInferenceServiceJobResponse(google.protobuf.message.Message):
310
+ """Response message for getting an inference service job."""
311
+
312
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
313
+
314
+ JOB_FIELD_NUMBER: builtins.int
315
+ @property
316
+ def job(self) -> global___InferenceServiceJob:
317
+ """The inference service job."""
318
+ def __init__(
319
+ self,
320
+ *,
321
+ job: global___InferenceServiceJob | None = ...,
322
+ ) -> None: ...
323
+ def HasField(self, field_name: typing_extensions.Literal["job", b"job"]) -> builtins.bool: ...
324
+ def ClearField(self, field_name: typing_extensions.Literal["job", b"job"]) -> None: ...
325
+
326
+ global___GetInferenceServiceJobResponse = GetInferenceServiceJobResponse
327
+
328
+ class ListInferenceServiceJobsRequest(google.protobuf.message.Message):
329
+ """Request message for listing inference service jobs."""
330
+
331
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
332
+
333
+ PROJECT_ID_FIELD_NUMBER: builtins.int
334
+ project_id: builtins.str
335
+ """Required. Project ID to list inference jobs for."""
336
+ def __init__(
337
+ self,
338
+ *,
339
+ project_id: builtins.str = ...,
340
+ ) -> None: ...
341
+ def ClearField(self, field_name: typing_extensions.Literal["project_id", b"project_id"]) -> None: ...
342
+
343
+ global___ListInferenceServiceJobsRequest = ListInferenceServiceJobsRequest
344
+
345
+ class ListInferenceServiceJobsResponse(google.protobuf.message.Message):
346
+ """Response message for listing inference service jobs."""
347
+
348
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
349
+
350
+ JOBS_FIELD_NUMBER: builtins.int
351
+ @property
352
+ def jobs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InferenceServiceJob]:
353
+ """List of inference service jobs."""
354
+ def __init__(
355
+ self,
356
+ *,
357
+ jobs: collections.abc.Iterable[global___InferenceServiceJob] | None = ...,
358
+ ) -> None: ...
359
+ def ClearField(self, field_name: typing_extensions.Literal["jobs", b"jobs"]) -> None: ...
360
+
361
+ global___ListInferenceServiceJobsResponse = ListInferenceServiceJobsResponse