ansys-api-discovery 0.5.1__py3-none-any.whl → 0.6.0__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.

Potentially problematic release.


This version of ansys-api-discovery might be problematic. Click here for more details.

Files changed (54) hide show
  1. ansys/api/discovery/VERSION +1 -1
  2. ansys/api/discovery/v0/conditions.proto +32 -0
  3. ansys/api/discovery/v0/conditions_pb2.py +33 -0
  4. ansys/api/discovery/v0/conditions_pb2.pyi +51 -0
  5. ansys/api/discovery/v0/conditions_pb2_grpc.py +134 -0
  6. ansys/api/discovery/v0/conditions_pb2_grpc.pyi +48 -0
  7. ansys/api/discovery/v0/conditionsfluid.proto +246 -0
  8. ansys/api/discovery/v0/conditionsfluid_pb2.py +85 -0
  9. ansys/api/discovery/v0/conditionsfluid_pb2.pyi +590 -0
  10. ansys/api/discovery/v0/conditionsfluid_pb2_grpc.py +662 -0
  11. ansys/api/discovery/v0/conditionsfluid_pb2_grpc.pyi +208 -0
  12. ansys/api/discovery/v0/conditionsstructural.proto +407 -0
  13. ansys/api/discovery/v0/conditionsstructural_pb2.py +113 -0
  14. ansys/api/discovery/v0/conditionsstructural_pb2.pyi +839 -0
  15. ansys/api/discovery/v0/conditionsstructural_pb2_grpc.py +2746 -0
  16. ansys/api/discovery/v0/conditionsstructural_pb2_grpc.pyi +854 -0
  17. ansys/api/discovery/v0/conditionsthermal.proto +179 -0
  18. ansys/api/discovery/v0/conditionsthermal_pb2.py +63 -0
  19. ansys/api/discovery/v0/conditionsthermal_pb2.pyi +399 -0
  20. ansys/api/discovery/v0/conditionsthermal_pb2_grpc.py +665 -0
  21. ansys/api/discovery/v0/conditionsthermal_pb2_grpc.pyi +217 -0
  22. ansys/api/discovery/v0/definedvariationstable.proto +13 -0
  23. ansys/api/discovery/v0/definedvariationstable_pb2.py +12 -116
  24. ansys/api/discovery/v0/definedvariationstable_pb2.pyi +20 -1
  25. ansys/api/discovery/v0/definedvariationstable_pb2_grpc.py +68 -0
  26. ansys/api/discovery/v0/definedvariationstable_pb2_grpc.pyi +26 -0
  27. ansys/api/discovery/v0/discoverymodels.proto +112 -1
  28. ansys/api/discovery/v0/discoverymodels_pb2.py +59 -168
  29. ansys/api/discovery/v0/discoverymodels_pb2.pyi +330 -3
  30. ansys/api/discovery/v0/historytrackparameters_pb2.py +3 -50
  31. ansys/api/discovery/v0/messaging.proto +19 -0
  32. ansys/api/discovery/v0/messaging_pb2.py +29 -0
  33. ansys/api/discovery/v0/messaging_pb2.pyi +22 -0
  34. ansys/api/discovery/v0/messaging_pb2_grpc.py +106 -0
  35. ansys/api/discovery/v0/messaging_pb2_grpc.pyi +38 -0
  36. ansys/api/discovery/v0/scriptparameters_pb2.py +3 -37
  37. ansys/api/discovery/v0/simulations.proto +22 -0
  38. ansys/api/discovery/v0/simulations_pb2.py +30 -0
  39. ansys/api/discovery/v0/simulations_pb2.pyi +27 -0
  40. ansys/api/discovery/v0/simulations_pb2_grpc.py +103 -0
  41. ansys/api/discovery/v0/simulations_pb2_grpc.pyi +42 -0
  42. ansys/api/discovery/v0/solution.proto +45 -0
  43. ansys/api/discovery/v0/solution_pb2.py +39 -0
  44. ansys/api/discovery/v0/solution_pb2.pyi +100 -0
  45. ansys/api/discovery/v0/solution_pb2_grpc.py +133 -0
  46. ansys/api/discovery/v0/solution_pb2_grpc.pyi +45 -0
  47. ansys/api/discovery/v0/units_pb2.py +3 -1232
  48. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/METADATA +8 -8
  49. ansys_api_discovery-0.6.0.dist-info/RECORD +70 -0
  50. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/WHEEL +1 -1
  51. ansys_api_discovery-0.5.1.dist-info/RECORD +0 -35
  52. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/LICENSE +0 -0
  53. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/entry_points.txt +0 -0
  54. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/top_level.txt +0 -0
@@ -2,10 +2,9 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: ansys/api/discovery/v0/scriptparameters.proto
4
4
  """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import descriptor_pool as _descriptor_pool
7
- from google.protobuf import message as _message
8
- from google.protobuf import reflection as _reflection
9
8
  from google.protobuf import symbol_database as _symbol_database
10
9
  # @@protoc_insertion_point(imports)
11
10
 
@@ -19,41 +18,8 @@ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
19
18
 
20
19
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n-ansys/api/discovery/v0/scriptparameters.proto\x12\'ansys.api.discovery.v0.scriptparameters\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x1f\n\rGetAllRequest\x12\x0e\n\x06parent\x18\x01 \x01(\t\"T\n\x0eGetAllResponse\x12\x42\n\x11script_parameters\x18\x01 \x03(\x0b\x32\'.ansys.api.discovery.v0.ScriptParameter\"R\n\rUpdateRequest\x12\x41\n\x10script_parameter\x18\x01 \x01(\x0b\x32\'.ansys.api.discovery.v0.ScriptParameter\" \n\x0eReplayResponse\x12\x0e\n\x06result\x18\x01 \x01(\t2\xa7\x03\n\x10ScriptParameters\x12R\n\x03Get\x12\".ansys.api.dbu.v0.EntityIdentifier\x1a\'.ansys.api.discovery.v0.ScriptParameter\x12y\n\x06GetAll\x12\x36.ansys.api.discovery.v0.scriptparameters.GetAllRequest\x1a\x37.ansys.api.discovery.v0.scriptparameters.GetAllResponse\x12i\n\x06Update\x12\x36.ansys.api.discovery.v0.scriptparameters.UpdateRequest\x1a\'.ansys.api.discovery.v0.ScriptParameter\x12Y\n\x06Replay\x12\x16.google.protobuf.Empty\x1a\x37.ansys.api.discovery.v0.scriptparameters.ReplayResponseB*\xaa\x02\'Ansys.Api.Discovery.V0.ScriptParametersb\x06proto3')
21
20
 
22
-
23
-
24
- _GETALLREQUEST = DESCRIPTOR.message_types_by_name['GetAllRequest']
25
- _GETALLRESPONSE = DESCRIPTOR.message_types_by_name['GetAllResponse']
26
- _UPDATEREQUEST = DESCRIPTOR.message_types_by_name['UpdateRequest']
27
- _REPLAYRESPONSE = DESCRIPTOR.message_types_by_name['ReplayResponse']
28
- GetAllRequest = _reflection.GeneratedProtocolMessageType('GetAllRequest', (_message.Message,), {
29
- 'DESCRIPTOR' : _GETALLREQUEST,
30
- '__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
31
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.GetAllRequest)
32
- })
33
- _sym_db.RegisterMessage(GetAllRequest)
34
-
35
- GetAllResponse = _reflection.GeneratedProtocolMessageType('GetAllResponse', (_message.Message,), {
36
- 'DESCRIPTOR' : _GETALLRESPONSE,
37
- '__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
38
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.GetAllResponse)
39
- })
40
- _sym_db.RegisterMessage(GetAllResponse)
41
-
42
- UpdateRequest = _reflection.GeneratedProtocolMessageType('UpdateRequest', (_message.Message,), {
43
- 'DESCRIPTOR' : _UPDATEREQUEST,
44
- '__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
45
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.UpdateRequest)
46
- })
47
- _sym_db.RegisterMessage(UpdateRequest)
48
-
49
- ReplayResponse = _reflection.GeneratedProtocolMessageType('ReplayResponse', (_message.Message,), {
50
- 'DESCRIPTOR' : _REPLAYRESPONSE,
51
- '__module__' : 'ansys.api.discovery.v0.scriptparameters_pb2'
52
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.scriptparameters.ReplayResponse)
53
- })
54
- _sym_db.RegisterMessage(ReplayResponse)
55
-
56
- _SCRIPTPARAMETERS = DESCRIPTOR.services_by_name['ScriptParameters']
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.scriptparameters_pb2', globals())
57
23
  if _descriptor._USE_C_DESCRIPTORS == False:
58
24
 
59
25
  DESCRIPTOR._options = None
@@ -0,0 +1,22 @@
1
+ // Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2
+ syntax = "proto3";
3
+ package ansys.api.discovery.v0.simulations;
4
+
5
+ import "ansys/api/discovery/v0/discoverymodels.proto";
6
+ import "google/protobuf/empty.proto";
7
+
8
+ option csharp_namespace = "Ansys.Api.Discovery.V0.Simulations";
9
+
10
+ service Simulations
11
+ {
12
+ // Creates a new simulation
13
+ rpc CreateSimulation(google.protobuf.Empty) returns (Simulation);
14
+
15
+ // Lists all simulations
16
+ rpc GetAll(google.protobuf.Empty) returns(GetAllResponse);
17
+ }
18
+
19
+ message GetAllResponse{
20
+ // The simulations in the study.
21
+ repeated Simulation simulations = 1;
22
+ }
@@ -0,0 +1,30 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: ansys/api/discovery/v0/simulations.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
15
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
16
+
17
+
18
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(ansys/api/discovery/v0/simulations.proto\x12\"ansys.api.discovery.v0.simulations\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"I\n\x0eGetAllResponse\x12\x37\n\x0bsimulations\x18\x01 \x03(\x0b\x32\".ansys.api.discovery.v0.Simulation2\xb3\x01\n\x0bSimulations\x12N\n\x10\x43reateSimulation\x12\x16.google.protobuf.Empty\x1a\".ansys.api.discovery.v0.Simulation\x12T\n\x06GetAll\x12\x16.google.protobuf.Empty\x1a\x32.ansys.api.discovery.v0.simulations.GetAllResponseB%\xaa\x02\"Ansys.Api.Discovery.V0.Simulationsb\x06proto3')
19
+
20
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
21
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.simulations_pb2', globals())
22
+ if _descriptor._USE_C_DESCRIPTORS == False:
23
+
24
+ DESCRIPTOR._options = None
25
+ DESCRIPTOR._serialized_options = b'\252\002\"Ansys.Api.Discovery.V0.Simulations'
26
+ _GETALLRESPONSE._serialized_start=155
27
+ _GETALLRESPONSE._serialized_end=228
28
+ _SIMULATIONS._serialized_start=231
29
+ _SIMULATIONS._serialized_end=410
30
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,27 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import ansys.api.discovery.v0.discoverymodels_pb2
6
+ import builtins
7
+ import google.protobuf.descriptor
8
+ import google.protobuf.internal.containers
9
+ import google.protobuf.message
10
+ import typing
11
+ import typing_extensions
12
+
13
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
14
+
15
+ class GetAllResponse(google.protobuf.message.Message):
16
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
17
+ SIMULATIONS_FIELD_NUMBER: builtins.int
18
+ @property
19
+ def simulations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ansys.api.discovery.v0.discoverymodels_pb2.Simulation]:
20
+ """The simulations in the study."""
21
+ pass
22
+ def __init__(self,
23
+ *,
24
+ simulations : typing.Optional[typing.Iterable[ansys.api.discovery.v0.discoverymodels_pb2.Simulation]] = ...,
25
+ ) -> None: ...
26
+ def ClearField(self, field_name: typing_extensions.Literal["simulations",b"simulations"]) -> None: ...
27
+ global___GetAllResponse = GetAllResponse
@@ -0,0 +1,103 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
6
+ from ansys.api.discovery.v0 import simulations_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_simulations__pb2
7
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
8
+
9
+
10
+ class SimulationsStub(object):
11
+ """Missing associated documentation comment in .proto file."""
12
+
13
+ def __init__(self, channel):
14
+ """Constructor.
15
+
16
+ Args:
17
+ channel: A grpc.Channel.
18
+ """
19
+ self.CreateSimulation = channel.unary_unary(
20
+ '/ansys.api.discovery.v0.simulations.Simulations/CreateSimulation',
21
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
22
+ response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.Simulation.FromString,
23
+ )
24
+ self.GetAll = channel.unary_unary(
25
+ '/ansys.api.discovery.v0.simulations.Simulations/GetAll',
26
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
27
+ response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_simulations__pb2.GetAllResponse.FromString,
28
+ )
29
+
30
+
31
+ class SimulationsServicer(object):
32
+ """Missing associated documentation comment in .proto file."""
33
+
34
+ def CreateSimulation(self, request, context):
35
+ """Creates a new simulation
36
+ """
37
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
38
+ context.set_details('Method not implemented!')
39
+ raise NotImplementedError('Method not implemented!')
40
+
41
+ def GetAll(self, request, context):
42
+ """Lists all simulations
43
+ """
44
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
45
+ context.set_details('Method not implemented!')
46
+ raise NotImplementedError('Method not implemented!')
47
+
48
+
49
+ def add_SimulationsServicer_to_server(servicer, server):
50
+ rpc_method_handlers = {
51
+ 'CreateSimulation': grpc.unary_unary_rpc_method_handler(
52
+ servicer.CreateSimulation,
53
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
54
+ response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.Simulation.SerializeToString,
55
+ ),
56
+ 'GetAll': grpc.unary_unary_rpc_method_handler(
57
+ servicer.GetAll,
58
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
59
+ response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_simulations__pb2.GetAllResponse.SerializeToString,
60
+ ),
61
+ }
62
+ generic_handler = grpc.method_handlers_generic_handler(
63
+ 'ansys.api.discovery.v0.simulations.Simulations', rpc_method_handlers)
64
+ server.add_generic_rpc_handlers((generic_handler,))
65
+
66
+
67
+ # This class is part of an EXPERIMENTAL API.
68
+ class Simulations(object):
69
+ """Missing associated documentation comment in .proto file."""
70
+
71
+ @staticmethod
72
+ def CreateSimulation(request,
73
+ target,
74
+ options=(),
75
+ channel_credentials=None,
76
+ call_credentials=None,
77
+ insecure=False,
78
+ compression=None,
79
+ wait_for_ready=None,
80
+ timeout=None,
81
+ metadata=None):
82
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.simulations.Simulations/CreateSimulation',
83
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
84
+ ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.Simulation.FromString,
85
+ options, channel_credentials,
86
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
87
+
88
+ @staticmethod
89
+ def GetAll(request,
90
+ target,
91
+ options=(),
92
+ channel_credentials=None,
93
+ call_credentials=None,
94
+ insecure=False,
95
+ compression=None,
96
+ wait_for_ready=None,
97
+ timeout=None,
98
+ metadata=None):
99
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.simulations.Simulations/GetAll',
100
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
101
+ ansys_dot_api_dot_discovery_dot_v0_dot_simulations__pb2.GetAllResponse.FromString,
102
+ options, channel_credentials,
103
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,42 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import abc
6
+ import ansys.api.discovery.v0.discoverymodels_pb2
7
+ import ansys.api.discovery.v0.simulations_pb2
8
+ import google.protobuf.empty_pb2
9
+ import grpc
10
+
11
+ class SimulationsStub:
12
+ def __init__(self, channel: grpc.Channel) -> None: ...
13
+ CreateSimulation: grpc.UnaryUnaryMultiCallable[
14
+ google.protobuf.empty_pb2.Empty,
15
+ ansys.api.discovery.v0.discoverymodels_pb2.Simulation] = ...
16
+ """Creates a new simulation"""
17
+
18
+ GetAll: grpc.UnaryUnaryMultiCallable[
19
+ google.protobuf.empty_pb2.Empty,
20
+ ansys.api.discovery.v0.simulations_pb2.GetAllResponse] = ...
21
+ """Lists all simulations"""
22
+
23
+
24
+ class SimulationsServicer(metaclass=abc.ABCMeta):
25
+ @abc.abstractmethod
26
+ def CreateSimulation(self,
27
+ request: google.protobuf.empty_pb2.Empty,
28
+ context: grpc.ServicerContext,
29
+ ) -> ansys.api.discovery.v0.discoverymodels_pb2.Simulation:
30
+ """Creates a new simulation"""
31
+ pass
32
+
33
+ @abc.abstractmethod
34
+ def GetAll(self,
35
+ request: google.protobuf.empty_pb2.Empty,
36
+ context: grpc.ServicerContext,
37
+ ) -> ansys.api.discovery.v0.simulations_pb2.GetAllResponse:
38
+ """Lists all simulations"""
39
+ pass
40
+
41
+
42
+ def add_SimulationsServicer_to_server(servicer: SimulationsServicer, server: grpc.Server) -> None: ...
@@ -0,0 +1,45 @@
1
+ // Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2
+ syntax = "proto3";
3
+ package ansys.api.discovery.v0.solution;
4
+
5
+ import "google/protobuf/empty.proto";
6
+
7
+ option csharp_namespace = "Ansys.Api.Discovery.V0.Solution";
8
+
9
+ service Solution
10
+ {
11
+ rpc GetSolverFidelity(SimulationStageRequest) returns (SolverFidelityResponse);
12
+ rpc SetSolverFidelity(SolverFidelityRequest) returns (google.protobuf.Empty);
13
+ rpc Solve(SolveExecutionRequest) returns (SolveExecutionResponse);
14
+ }
15
+
16
+ message SolverFidelityRequest{
17
+ SimulationStageRequest simulation_stage = 1;
18
+ double value = 2;
19
+ }
20
+
21
+ //TODO Replace string with Enum
22
+ message SimulationStageRequest{
23
+ string simulation = 1;
24
+ string stage = 2;
25
+ }
26
+
27
+ message SolverFidelityResponse{
28
+ double value = 1;
29
+ }
30
+
31
+ message SolveExecutionRequest{
32
+ string simulation_id = 1;
33
+ Stage stage = 2;
34
+ bool execute_remotely =3;
35
+ }
36
+
37
+ message SolveExecutionResponse{
38
+ bool success = 1;
39
+ string message = 2;
40
+ }
41
+
42
+ enum Stage {
43
+ EXPLORE = 0;
44
+ REFINE = 1;
45
+ }
@@ -0,0 +1,39 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: ansys/api/discovery/v0/solution.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
15
+
16
+
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%ansys/api/discovery/v0/solution.proto\x12\x1f\x61nsys.api.discovery.v0.solution\x1a\x1bgoogle/protobuf/empty.proto\"y\n\x15SolverFidelityRequest\x12Q\n\x10simulation_stage\x18\x01 \x01(\x0b\x32\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x12\r\n\x05value\x18\x02 \x01(\x01\";\n\x16SimulationStageRequest\x12\x12\n\nsimulation\x18\x01 \x01(\t\x12\r\n\x05stage\x18\x02 \x01(\t\"\'\n\x16SolverFidelityResponse\x12\r\n\x05value\x18\x01 \x01(\x01\"\x7f\n\x15SolveExecutionRequest\x12\x15\n\rsimulation_id\x18\x01 \x01(\t\x12\x35\n\x05stage\x18\x02 \x01(\x0e\x32&.ansys.api.discovery.v0.solution.Stage\x12\x18\n\x10\x65xecute_remotely\x18\x03 \x01(\x08\":\n\x16SolveExecutionResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x0f\n\x07message\x18\x02 \x01(\t* \n\x05Stage\x12\x0b\n\x07\x45XPLORE\x10\x00\x12\n\n\x06REFINE\x10\x01\x32\xf1\x02\n\x08Solution\x12\x85\x01\n\x11GetSolverFidelity\x12\x37.ansys.api.discovery.v0.solution.SimulationStageRequest\x1a\x37.ansys.api.discovery.v0.solution.SolverFidelityResponse\x12\x63\n\x11SetSolverFidelity\x12\x36.ansys.api.discovery.v0.solution.SolverFidelityRequest\x1a\x16.google.protobuf.Empty\x12x\n\x05Solve\x12\x36.ansys.api.discovery.v0.solution.SolveExecutionRequest\x1a\x37.ansys.api.discovery.v0.solution.SolveExecutionResponseB\"\xaa\x02\x1f\x41nsys.Api.Discovery.V0.Solutionb\x06proto3')
18
+
19
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
20
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.solution_pb2', globals())
21
+ if _descriptor._USE_C_DESCRIPTORS == False:
22
+
23
+ DESCRIPTOR._options = None
24
+ DESCRIPTOR._serialized_options = b'\252\002\037Ansys.Api.Discovery.V0.Solution'
25
+ _STAGE._serialized_start=517
26
+ _STAGE._serialized_end=549
27
+ _SOLVERFIDELITYREQUEST._serialized_start=103
28
+ _SOLVERFIDELITYREQUEST._serialized_end=224
29
+ _SIMULATIONSTAGEREQUEST._serialized_start=226
30
+ _SIMULATIONSTAGEREQUEST._serialized_end=285
31
+ _SOLVERFIDELITYRESPONSE._serialized_start=287
32
+ _SOLVERFIDELITYRESPONSE._serialized_end=326
33
+ _SOLVEEXECUTIONREQUEST._serialized_start=328
34
+ _SOLVEEXECUTIONREQUEST._serialized_end=455
35
+ _SOLVEEXECUTIONRESPONSE._serialized_start=457
36
+ _SOLVEEXECUTIONRESPONSE._serialized_end=515
37
+ _SOLUTION._serialized_start=552
38
+ _SOLUTION._serialized_end=921
39
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,100 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import google.protobuf.descriptor
7
+ import google.protobuf.internal.enum_type_wrapper
8
+ import google.protobuf.message
9
+ import typing
10
+ import typing_extensions
11
+
12
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
13
+
14
+ class _Stage:
15
+ ValueType = typing.NewType('ValueType', builtins.int)
16
+ V: typing_extensions.TypeAlias = ValueType
17
+ class _StageEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Stage.ValueType], builtins.type):
18
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
19
+ EXPLORE: Stage.ValueType = ... # 0
20
+ REFINE: Stage.ValueType = ... # 1
21
+ class Stage(_Stage, metaclass=_StageEnumTypeWrapper):
22
+ pass
23
+
24
+ EXPLORE: Stage.ValueType = ... # 0
25
+ REFINE: Stage.ValueType = ... # 1
26
+ global___Stage = Stage
27
+
28
+
29
+ class SolverFidelityRequest(google.protobuf.message.Message):
30
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
31
+ SIMULATION_STAGE_FIELD_NUMBER: builtins.int
32
+ VALUE_FIELD_NUMBER: builtins.int
33
+ @property
34
+ def simulation_stage(self) -> global___SimulationStageRequest: ...
35
+ value: builtins.float = ...
36
+ def __init__(self,
37
+ *,
38
+ simulation_stage : typing.Optional[global___SimulationStageRequest] = ...,
39
+ value : builtins.float = ...,
40
+ ) -> None: ...
41
+ def HasField(self, field_name: typing_extensions.Literal["simulation_stage",b"simulation_stage"]) -> builtins.bool: ...
42
+ def ClearField(self, field_name: typing_extensions.Literal["simulation_stage",b"simulation_stage","value",b"value"]) -> None: ...
43
+ global___SolverFidelityRequest = SolverFidelityRequest
44
+
45
+ class SimulationStageRequest(google.protobuf.message.Message):
46
+ """TODO Replace string with Enum"""
47
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
48
+ SIMULATION_FIELD_NUMBER: builtins.int
49
+ STAGE_FIELD_NUMBER: builtins.int
50
+ simulation: typing.Text = ...
51
+ stage: typing.Text = ...
52
+ def __init__(self,
53
+ *,
54
+ simulation : typing.Text = ...,
55
+ stage : typing.Text = ...,
56
+ ) -> None: ...
57
+ def ClearField(self, field_name: typing_extensions.Literal["simulation",b"simulation","stage",b"stage"]) -> None: ...
58
+ global___SimulationStageRequest = SimulationStageRequest
59
+
60
+ class SolverFidelityResponse(google.protobuf.message.Message):
61
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
62
+ VALUE_FIELD_NUMBER: builtins.int
63
+ value: builtins.float = ...
64
+ def __init__(self,
65
+ *,
66
+ value : builtins.float = ...,
67
+ ) -> None: ...
68
+ def ClearField(self, field_name: typing_extensions.Literal["value",b"value"]) -> None: ...
69
+ global___SolverFidelityResponse = SolverFidelityResponse
70
+
71
+ class SolveExecutionRequest(google.protobuf.message.Message):
72
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
73
+ SIMULATION_ID_FIELD_NUMBER: builtins.int
74
+ STAGE_FIELD_NUMBER: builtins.int
75
+ EXECUTE_REMOTELY_FIELD_NUMBER: builtins.int
76
+ simulation_id: typing.Text = ...
77
+ stage: global___Stage.ValueType = ...
78
+ execute_remotely: builtins.bool = ...
79
+ def __init__(self,
80
+ *,
81
+ simulation_id : typing.Text = ...,
82
+ stage : global___Stage.ValueType = ...,
83
+ execute_remotely : builtins.bool = ...,
84
+ ) -> None: ...
85
+ def ClearField(self, field_name: typing_extensions.Literal["execute_remotely",b"execute_remotely","simulation_id",b"simulation_id","stage",b"stage"]) -> None: ...
86
+ global___SolveExecutionRequest = SolveExecutionRequest
87
+
88
+ class SolveExecutionResponse(google.protobuf.message.Message):
89
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
90
+ SUCCESS_FIELD_NUMBER: builtins.int
91
+ MESSAGE_FIELD_NUMBER: builtins.int
92
+ success: builtins.bool = ...
93
+ message: typing.Text = ...
94
+ def __init__(self,
95
+ *,
96
+ success : builtins.bool = ...,
97
+ message : typing.Text = ...,
98
+ ) -> None: ...
99
+ def ClearField(self, field_name: typing_extensions.Literal["message",b"message","success",b"success"]) -> None: ...
100
+ global___SolveExecutionResponse = SolveExecutionResponse
@@ -0,0 +1,133 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from ansys.api.discovery.v0 import solution_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2
6
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
7
+
8
+
9
+ class SolutionStub(object):
10
+ """Missing associated documentation comment in .proto file."""
11
+
12
+ def __init__(self, channel):
13
+ """Constructor.
14
+
15
+ Args:
16
+ channel: A grpc.Channel.
17
+ """
18
+ self.GetSolverFidelity = channel.unary_unary(
19
+ '/ansys.api.discovery.v0.solution.Solution/GetSolverFidelity',
20
+ request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SimulationStageRequest.SerializeToString,
21
+ response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityResponse.FromString,
22
+ )
23
+ self.SetSolverFidelity = channel.unary_unary(
24
+ '/ansys.api.discovery.v0.solution.Solution/SetSolverFidelity',
25
+ request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityRequest.SerializeToString,
26
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
27
+ )
28
+ self.Solve = channel.unary_unary(
29
+ '/ansys.api.discovery.v0.solution.Solution/Solve',
30
+ request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionRequest.SerializeToString,
31
+ response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionResponse.FromString,
32
+ )
33
+
34
+
35
+ class SolutionServicer(object):
36
+ """Missing associated documentation comment in .proto file."""
37
+
38
+ def GetSolverFidelity(self, request, context):
39
+ """Missing associated documentation comment in .proto file."""
40
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
41
+ context.set_details('Method not implemented!')
42
+ raise NotImplementedError('Method not implemented!')
43
+
44
+ def SetSolverFidelity(self, request, context):
45
+ """Missing associated documentation comment in .proto file."""
46
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
47
+ context.set_details('Method not implemented!')
48
+ raise NotImplementedError('Method not implemented!')
49
+
50
+ def Solve(self, request, context):
51
+ """Missing associated documentation comment in .proto file."""
52
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
53
+ context.set_details('Method not implemented!')
54
+ raise NotImplementedError('Method not implemented!')
55
+
56
+
57
+ def add_SolutionServicer_to_server(servicer, server):
58
+ rpc_method_handlers = {
59
+ 'GetSolverFidelity': grpc.unary_unary_rpc_method_handler(
60
+ servicer.GetSolverFidelity,
61
+ request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SimulationStageRequest.FromString,
62
+ response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityResponse.SerializeToString,
63
+ ),
64
+ 'SetSolverFidelity': grpc.unary_unary_rpc_method_handler(
65
+ servicer.SetSolverFidelity,
66
+ request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityRequest.FromString,
67
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
68
+ ),
69
+ 'Solve': grpc.unary_unary_rpc_method_handler(
70
+ servicer.Solve,
71
+ request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionRequest.FromString,
72
+ response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionResponse.SerializeToString,
73
+ ),
74
+ }
75
+ generic_handler = grpc.method_handlers_generic_handler(
76
+ 'ansys.api.discovery.v0.solution.Solution', rpc_method_handlers)
77
+ server.add_generic_rpc_handlers((generic_handler,))
78
+
79
+
80
+ # This class is part of an EXPERIMENTAL API.
81
+ class Solution(object):
82
+ """Missing associated documentation comment in .proto file."""
83
+
84
+ @staticmethod
85
+ def GetSolverFidelity(request,
86
+ target,
87
+ options=(),
88
+ channel_credentials=None,
89
+ call_credentials=None,
90
+ insecure=False,
91
+ compression=None,
92
+ wait_for_ready=None,
93
+ timeout=None,
94
+ metadata=None):
95
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.solution.Solution/GetSolverFidelity',
96
+ ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SimulationStageRequest.SerializeToString,
97
+ ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityResponse.FromString,
98
+ options, channel_credentials,
99
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
100
+
101
+ @staticmethod
102
+ def SetSolverFidelity(request,
103
+ target,
104
+ options=(),
105
+ channel_credentials=None,
106
+ call_credentials=None,
107
+ insecure=False,
108
+ compression=None,
109
+ wait_for_ready=None,
110
+ timeout=None,
111
+ metadata=None):
112
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.solution.Solution/SetSolverFidelity',
113
+ ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolverFidelityRequest.SerializeToString,
114
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
115
+ options, channel_credentials,
116
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
117
+
118
+ @staticmethod
119
+ def Solve(request,
120
+ target,
121
+ options=(),
122
+ channel_credentials=None,
123
+ call_credentials=None,
124
+ insecure=False,
125
+ compression=None,
126
+ wait_for_ready=None,
127
+ timeout=None,
128
+ metadata=None):
129
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.solution.Solution/Solve',
130
+ ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionRequest.SerializeToString,
131
+ ansys_dot_api_dot_discovery_dot_v0_dot_solution__pb2.SolveExecutionResponse.FromString,
132
+ options, channel_credentials,
133
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -0,0 +1,45 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import abc
6
+ import ansys.api.discovery.v0.solution_pb2
7
+ import google.protobuf.empty_pb2
8
+ import grpc
9
+
10
+ class SolutionStub:
11
+ def __init__(self, channel: grpc.Channel) -> None: ...
12
+ GetSolverFidelity: grpc.UnaryUnaryMultiCallable[
13
+ ansys.api.discovery.v0.solution_pb2.SimulationStageRequest,
14
+ ansys.api.discovery.v0.solution_pb2.SolverFidelityResponse] = ...
15
+
16
+ SetSolverFidelity: grpc.UnaryUnaryMultiCallable[
17
+ ansys.api.discovery.v0.solution_pb2.SolverFidelityRequest,
18
+ google.protobuf.empty_pb2.Empty] = ...
19
+
20
+ Solve: grpc.UnaryUnaryMultiCallable[
21
+ ansys.api.discovery.v0.solution_pb2.SolveExecutionRequest,
22
+ ansys.api.discovery.v0.solution_pb2.SolveExecutionResponse] = ...
23
+
24
+
25
+ class SolutionServicer(metaclass=abc.ABCMeta):
26
+ @abc.abstractmethod
27
+ def GetSolverFidelity(self,
28
+ request: ansys.api.discovery.v0.solution_pb2.SimulationStageRequest,
29
+ context: grpc.ServicerContext,
30
+ ) -> ansys.api.discovery.v0.solution_pb2.SolverFidelityResponse: ...
31
+
32
+ @abc.abstractmethod
33
+ def SetSolverFidelity(self,
34
+ request: ansys.api.discovery.v0.solution_pb2.SolverFidelityRequest,
35
+ context: grpc.ServicerContext,
36
+ ) -> google.protobuf.empty_pb2.Empty: ...
37
+
38
+ @abc.abstractmethod
39
+ def Solve(self,
40
+ request: ansys.api.discovery.v0.solution_pb2.SolveExecutionRequest,
41
+ context: grpc.ServicerContext,
42
+ ) -> ansys.api.discovery.v0.solution_pb2.SolveExecutionResponse: ...
43
+
44
+
45
+ def add_SolutionServicer_to_server(servicer: SolutionServicer, server: grpc.Server) -> None: ...