ansys-api-discovery 0.6.3__py3-none-any.whl → 0.6.4__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.
- ansys/api/discovery/VERSION +1 -1
- ansys/api/discovery/v0/assignments/boltassignment.proto +40 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2.py +37 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2.pyi +95 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2_grpc.py +67 -0
- ansys/api/discovery/v0/assignments/boltassignment_pb2_grpc.pyi +27 -0
- ansys/api/discovery/v0/conditions/acceleration.proto +52 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2_grpc.py +365 -0
- ansys/api/discovery/v0/conditions/acceleration_pb2_grpc.pyi +118 -0
- ansys/api/discovery/v0/conditions/bearing.proto +47 -0
- ansys/api/discovery/v0/conditions/bearing_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/bearing_pb2.pyi +102 -0
- ansys/api/discovery/v0/conditions/bearing_pb2_grpc.py +200 -0
- ansys/api/discovery/v0/conditions/bearing_pb2_grpc.pyi +68 -0
- ansys/api/discovery/v0/conditions/boltpreload.proto +94 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2.py +48 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2.pyi +218 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2_grpc.py +431 -0
- ansys/api/discovery/v0/conditions/boltpreload_pb2_grpc.pyi +138 -0
- ansys/api/discovery/v0/{conditions.proto → conditions/condition.proto} +5 -4
- ansys/api/discovery/v0/conditions/condition_pb2.py +34 -0
- ansys/api/discovery/v0/{conditions_pb2.pyi → conditions/condition_pb2.pyi} +13 -6
- ansys/api/discovery/v0/{conditions_pb2_grpc.py → conditions/condition_pb2_grpc.py} +21 -21
- ansys/api/discovery/v0/{conditions_pb2_grpc.pyi → conditions/condition_pb2_grpc.pyi} +10 -10
- ansys/api/discovery/v0/conditions/convection.proto +43 -0
- ansys/api/discovery/v0/conditions/convection_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/convection_pb2.pyi +89 -0
- ansys/api/discovery/v0/conditions/convection_pb2_grpc.py +166 -0
- ansys/api/discovery/v0/conditions/convection_pb2_grpc.pyi +55 -0
- ansys/api/discovery/v0/conditions/displacement.proto +105 -0
- ansys/api/discovery/v0/conditions/displacement_pb2.py +48 -0
- ansys/api/discovery/v0/conditions/displacement_pb2.pyi +209 -0
- ansys/api/discovery/v0/conditions/displacement_pb2_grpc.py +827 -0
- ansys/api/discovery/v0/conditions/displacement_pb2_grpc.pyi +258 -0
- ansys/api/discovery/v0/{conditionsfluid.proto → conditions/flow.proto} +19 -24
- ansys/api/discovery/v0/conditions/flow_pb2.py +86 -0
- ansys/api/discovery/v0/{conditionsfluid_pb2.pyi → conditions/flow_pb2.pyi} +51 -34
- ansys/api/discovery/v0/{conditionsfluid_pb2_grpc.py → conditions/flow_pb2_grpc.py} +86 -86
- ansys/api/discovery/v0/{conditionsfluid_pb2_grpc.pyi → conditions/flow_pb2_grpc.pyi} +32 -32
- ansys/api/discovery/v0/conditions/fluidinitialtemperature.proto +13 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2.py +28 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2.pyi +7 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2_grpc.py +66 -0
- ansys/api/discovery/v0/conditions/fluidinitialtemperature_pb2_grpc.pyi +24 -0
- ansys/api/discovery/v0/conditions/force.proto +131 -0
- ansys/api/discovery/v0/conditions/force_pb2.py +56 -0
- ansys/api/discovery/v0/conditions/force_pb2.pyi +286 -0
- ansys/api/discovery/v0/conditions/force_pb2_grpc.py +829 -0
- ansys/api/discovery/v0/conditions/force_pb2_grpc.pyi +257 -0
- ansys/api/discovery/v0/conditions/gravity.proto +39 -0
- ansys/api/discovery/v0/conditions/gravity_pb2.py +32 -0
- ansys/api/discovery/v0/conditions/gravity_pb2.pyi +65 -0
- ansys/api/discovery/v0/conditions/gravity_pb2_grpc.py +266 -0
- ansys/api/discovery/v0/conditions/gravity_pb2_grpc.pyi +91 -0
- ansys/api/discovery/v0/conditions/heat.proto +90 -0
- ansys/api/discovery/v0/conditions/heat_pb2.py +46 -0
- ansys/api/discovery/v0/conditions/heat_pb2.pyi +210 -0
- ansys/api/discovery/v0/conditions/heat_pb2_grpc.py +332 -0
- ansys/api/discovery/v0/conditions/heat_pb2_grpc.pyi +108 -0
- ansys/api/discovery/v0/conditions/insulated.proto +34 -0
- ansys/api/discovery/v0/conditions/insulated_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/insulated_pb2.pyi +73 -0
- ansys/api/discovery/v0/conditions/insulated_pb2_grpc.py +100 -0
- ansys/api/discovery/v0/conditions/insulated_pb2_grpc.pyi +35 -0
- ansys/api/discovery/v0/conditions/mass.proto +49 -0
- ansys/api/discovery/v0/conditions/mass_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/mass_pb2.pyi +98 -0
- ansys/api/discovery/v0/conditions/mass_pb2_grpc.py +266 -0
- ansys/api/discovery/v0/conditions/mass_pb2_grpc.pyi +88 -0
- ansys/api/discovery/v0/conditions/moment.proto +67 -0
- ansys/api/discovery/v0/conditions/moment_pb2.py +40 -0
- ansys/api/discovery/v0/conditions/moment_pb2.pyi +132 -0
- ansys/api/discovery/v0/conditions/moment_pb2_grpc.py +398 -0
- ansys/api/discovery/v0/conditions/moment_pb2_grpc.pyi +128 -0
- ansys/api/discovery/v0/conditions/porous.proto +116 -0
- ansys/api/discovery/v0/conditions/porous_pb2.py +44 -0
- ansys/api/discovery/v0/conditions/porous_pb2.pyi +217 -0
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.py +534 -0
- ansys/api/discovery/v0/conditions/porous_pb2_grpc.pyi +181 -0
- ansys/api/discovery/v0/conditions/pressure.proto +43 -0
- ansys/api/discovery/v0/conditions/pressure_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/pressure_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/pressure_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/pressure_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone.proto +57 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2.pyi +102 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2_grpc.py +136 -0
- ansys/api/discovery/v0/conditions/rotatingfluidzone_pb2_grpc.pyi +54 -0
- ansys/api/discovery/v0/conditions/solidtemperature.proto +40 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2.pyi +81 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2_grpc.py +166 -0
- ansys/api/discovery/v0/conditions/solidtemperature_pb2_grpc.pyi +55 -0
- ansys/api/discovery/v0/conditions/springpreload.proto +105 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2.py +50 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2.pyi +250 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2_grpc.py +431 -0
- ansys/api/discovery/v0/conditions/springpreload_pb2_grpc.pyi +138 -0
- ansys/api/discovery/v0/conditions/support.proto +98 -0
- ansys/api/discovery/v0/conditions/support_pb2.py +46 -0
- ansys/api/discovery/v0/conditions/support_pb2.pyi +200 -0
- ansys/api/discovery/v0/{conditionsthermal_pb2_grpc.py → conditions/support_pb2_grpc.py} +251 -221
- ansys/api/discovery/v0/conditions/support_pb2_grpc.pyi +218 -0
- ansys/api/discovery/v0/conditions/velocity.proto +58 -0
- ansys/api/discovery/v0/conditions/velocity_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/velocity_pb2.pyi +98 -0
- ansys/api/discovery/v0/conditions/velocity_pb2_grpc.py +497 -0
- ansys/api/discovery/v0/conditions/velocity_pb2_grpc.pyi +158 -0
- ansys/api/discovery/v0/conditions/wall.proto +209 -0
- ansys/api/discovery/v0/conditions/wall_pb2.py +70 -0
- ansys/api/discovery/v0/conditions/wall_pb2.pyi +494 -0
- ansys/api/discovery/v0/conditions/wall_pb2_grpc.py +633 -0
- ansys/api/discovery/v0/conditions/wall_pb2_grpc.pyi +211 -0
- ansys/api/discovery/v0/connections/contact.proto +110 -0
- ansys/api/discovery/v0/connections/contact_pb2.py +46 -0
- ansys/api/discovery/v0/connections/contact_pb2.pyi +242 -0
- ansys/api/discovery/v0/connections/contact_pb2_grpc.py +827 -0
- ansys/api/discovery/v0/connections/contact_pb2_grpc.pyi +258 -0
- ansys/api/discovery/v0/connections/contactgroup.proto +89 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2.py +37 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2.pyi +178 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.py +860 -0
- ansys/api/discovery/v0/connections/contactgroup_pb2_grpc.pyi +266 -0
- ansys/api/discovery/v0/connections/joint.proto +56 -0
- ansys/api/discovery/v0/connections/joint_pb2.py +40 -0
- ansys/api/discovery/v0/connections/joint_pb2.pyi +129 -0
- ansys/api/discovery/v0/connections/joint_pb2_grpc.py +167 -0
- ansys/api/discovery/v0/connections/joint_pb2_grpc.pyi +58 -0
- ansys/api/discovery/v0/discoverymodels.proto +34 -17
- ansys/api/discovery/v0/discoverymodels_pb2.py +46 -40
- ansys/api/discovery/v0/discoverymodels_pb2.pyi +118 -47
- ansys/api/discovery/v0/engineeringdata/boltdata.proto +37 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2.py +36 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2.pyi +81 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2_grpc.py +67 -0
- ansys/api/discovery/v0/engineeringdata/boltdata_pb2_grpc.pyi +27 -0
- ansys/api/discovery/v0/monitors.proto +4 -4
- ansys/api/discovery/v0/monitors_pb2.py +10 -10
- ansys/api/discovery/v0/monitors_pb2.pyi +11 -11
- ansys/api/discovery/v0/solution.proto +4 -3
- ansys/api/discovery/v0/solution_pb2.py +16 -15
- ansys/api/discovery/v0/solution_pb2.pyi +11 -7
- ansys/api/discovery/v0/unsupported.proto +10 -0
- ansys/api/discovery/v0/unsupported_pb2.py +5 -3
- ansys/api/discovery/v0/unsupported_pb2.pyi +14 -0
- ansys/api/discovery/v0/unsupported_pb2_grpc.py +68 -0
- ansys/api/discovery/v0/unsupported_pb2_grpc.pyi +24 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.dist-info}/METADATA +13 -4
- ansys_api_discovery-0.6.4.dist-info/RECORD +200 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.dist-info}/WHEEL +1 -1
- ansys/api/discovery/v0/conditions_pb2.py +0 -33
- ansys/api/discovery/v0/conditionsfluid_pb2.py +0 -85
- ansys/api/discovery/v0/conditionsstructural.proto +0 -595
- ansys/api/discovery/v0/conditionsstructural_pb2.py +0 -149
- ansys/api/discovery/v0/conditionsstructural_pb2.pyi +0 -1216
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.py +0 -4171
- ansys/api/discovery/v0/conditionsstructural_pb2_grpc.pyi +0 -1303
- ansys/api/discovery/v0/conditionsthermal.proto +0 -179
- ansys/api/discovery/v0/conditionsthermal_pb2.py +0 -63
- ansys/api/discovery/v0/conditionsthermal_pb2.pyi +0 -399
- ansys/api/discovery/v0/conditionsthermal_pb2_grpc.pyi +0 -217
- ansys_api_discovery-0.6.3.dist-info/RECORD +0 -85
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.dist-info}/LICENSE +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.dist-info}/entry_points.txt +0 -0
- {ansys_api_discovery-0.6.3.dist-info → ansys_api_discovery-0.6.4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,100 @@
|
|
|
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.conditions import insulated_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_insulated__pb2
|
|
6
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class InsulatedStub(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.CreateInsulated = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.insulated.Insulated/CreateInsulated',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_insulated__pb2.InsulatedCreationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_insulated__pb2.InsulatedCreationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.ChangeInsulatedLocation = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.insulated.Insulated/ChangeInsulatedLocation',
|
|
25
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
26
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class InsulatedServicer(object):
|
|
31
|
+
"""Missing associated documentation comment in .proto file."""
|
|
32
|
+
|
|
33
|
+
def CreateInsulated(self, request, context):
|
|
34
|
+
"""Missing associated documentation comment in .proto file."""
|
|
35
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
36
|
+
context.set_details('Method not implemented!')
|
|
37
|
+
raise NotImplementedError('Method not implemented!')
|
|
38
|
+
|
|
39
|
+
def ChangeInsulatedLocation(self, request, context):
|
|
40
|
+
"""Missing associated documentation comment in .proto file."""
|
|
41
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
42
|
+
context.set_details('Method not implemented!')
|
|
43
|
+
raise NotImplementedError('Method not implemented!')
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
def add_InsulatedServicer_to_server(servicer, server):
|
|
47
|
+
rpc_method_handlers = {
|
|
48
|
+
'CreateInsulated': grpc.unary_unary_rpc_method_handler(
|
|
49
|
+
servicer.CreateInsulated,
|
|
50
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_insulated__pb2.InsulatedCreationRequest.FromString,
|
|
51
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_insulated__pb2.InsulatedCreationResponse.SerializeToString,
|
|
52
|
+
),
|
|
53
|
+
'ChangeInsulatedLocation': grpc.unary_unary_rpc_method_handler(
|
|
54
|
+
servicer.ChangeInsulatedLocation,
|
|
55
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.FromString,
|
|
56
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
57
|
+
),
|
|
58
|
+
}
|
|
59
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
60
|
+
'ansys.api.discovery.v0.conditions.insulated.Insulated', rpc_method_handlers)
|
|
61
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# This class is part of an EXPERIMENTAL API.
|
|
65
|
+
class Insulated(object):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
|
|
68
|
+
@staticmethod
|
|
69
|
+
def CreateInsulated(request,
|
|
70
|
+
target,
|
|
71
|
+
options=(),
|
|
72
|
+
channel_credentials=None,
|
|
73
|
+
call_credentials=None,
|
|
74
|
+
insecure=False,
|
|
75
|
+
compression=None,
|
|
76
|
+
wait_for_ready=None,
|
|
77
|
+
timeout=None,
|
|
78
|
+
metadata=None):
|
|
79
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.insulated.Insulated/CreateInsulated',
|
|
80
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_insulated__pb2.InsulatedCreationRequest.SerializeToString,
|
|
81
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_insulated__pb2.InsulatedCreationResponse.FromString,
|
|
82
|
+
options, channel_credentials,
|
|
83
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
84
|
+
|
|
85
|
+
@staticmethod
|
|
86
|
+
def ChangeInsulatedLocation(request,
|
|
87
|
+
target,
|
|
88
|
+
options=(),
|
|
89
|
+
channel_credentials=None,
|
|
90
|
+
call_credentials=None,
|
|
91
|
+
insecure=False,
|
|
92
|
+
compression=None,
|
|
93
|
+
wait_for_ready=None,
|
|
94
|
+
timeout=None,
|
|
95
|
+
metadata=None):
|
|
96
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.insulated.Insulated/ChangeInsulatedLocation',
|
|
97
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
98
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
99
|
+
options, channel_credentials,
|
|
100
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import ansys.api.discovery.v0.conditions.insulated_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class InsulatedStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreateInsulated: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.insulated_pb2.InsulatedCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.insulated_pb2.InsulatedCreationResponse] = ...
|
|
15
|
+
|
|
16
|
+
ChangeInsulatedLocation: grpc.UnaryUnaryMultiCallable[
|
|
17
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
18
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class InsulatedServicer(metaclass=abc.ABCMeta):
|
|
22
|
+
@abc.abstractmethod
|
|
23
|
+
def CreateInsulated(self,
|
|
24
|
+
request: ansys.api.discovery.v0.conditions.insulated_pb2.InsulatedCreationRequest,
|
|
25
|
+
context: grpc.ServicerContext,
|
|
26
|
+
) -> ansys.api.discovery.v0.conditions.insulated_pb2.InsulatedCreationResponse: ...
|
|
27
|
+
|
|
28
|
+
@abc.abstractmethod
|
|
29
|
+
def ChangeInsulatedLocation(self,
|
|
30
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
31
|
+
context: grpc.ServicerContext,
|
|
32
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def add_InsulatedServicer_to_server(servicer: InsulatedServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.mass;
|
|
4
|
+
|
|
5
|
+
import "ansys/api/dbu/v0/dbumodels.proto";
|
|
6
|
+
import "ansys/api/discovery/v0/discoverymodels.proto";
|
|
7
|
+
|
|
8
|
+
option csharp_namespace = "Ansys.Api.Discovery.V0.Conditions";
|
|
9
|
+
|
|
10
|
+
service Mass
|
|
11
|
+
{
|
|
12
|
+
//Mass condition methods
|
|
13
|
+
rpc CreateMass(MassCreationRequest) returns (MassCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangeMassLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
16
|
+
|
|
17
|
+
rpc ChangeMassMagnitude(ChangeQuantityRequest) returns (ChangeResponse);
|
|
18
|
+
|
|
19
|
+
rpc ChangeMassUseRemotePointEnabled(ChangeBooleanRequest) returns (ChangeResponse);
|
|
20
|
+
rpc ChangeMassRemotePositionX(ChangeQuantityRequest) returns (ChangeResponse);
|
|
21
|
+
rpc ChangeMassRemotePositionY(ChangeQuantityRequest) returns (ChangeResponse);
|
|
22
|
+
rpc ChangeMassRemotePositionZ(ChangeQuantityRequest) returns (ChangeResponse);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// Mass
|
|
26
|
+
message MassCreationRequest{
|
|
27
|
+
ScopedCreationData creation_data = 1;
|
|
28
|
+
MassProperties mass_properties = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
message MassCreationResponse{
|
|
32
|
+
CreationResponse condition_response = 1;
|
|
33
|
+
MassDefinition condition_data = 2;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Mass condition definitions
|
|
37
|
+
message MassProperties {
|
|
38
|
+
Quantity mass_magnitude = 1;
|
|
39
|
+
OptionalVector remote_point = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message MassDefinition {
|
|
43
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
44
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
45
|
+
string label = 3;
|
|
46
|
+
repeated string locations = 4;
|
|
47
|
+
bool suppressed = 5;
|
|
48
|
+
MassProperties mass = 6;
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/conditions/mass.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.dbu.v0 import dbumodels_pb2 as ansys_dot_api_dot_dbu_dot_v0_dot_dbumodels__pb2
|
|
15
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,ansys/api/discovery/v0/conditions/mass.proto\x12&ansys.api.discovery.v0.conditions.mass\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xa9\x01\n\x13MassCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12O\n\x0fmass_properties\x18\x02 \x01(\x0b\x32\x36.ansys.api.discovery.v0.conditions.mass.MassProperties\"\xac\x01\n\x14MassCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12N\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32\x36.ansys.api.discovery.v0.conditions.mass.MassDefinition\"\x88\x01\n\x0eMassProperties\x12\x38\n\x0emass_magnitude\x18\x01 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\x12<\n\x0cremote_point\x18\x02 \x01(\x0b\x32&.ansys.api.discovery.v0.OptionalVector\"\x81\x02\n\x0eMassDefinition\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12<\n\tparent_id\x18\x02 \x01(\x0b\x32).ansys.api.dbu.v0.PhysicsEntityIdentifier\x12\r\n\x05label\x18\x03 \x01(\t\x12\x11\n\tlocations\x18\x04 \x03(\t\x12\x12\n\nsuppressed\x18\x05 \x01(\x08\x12\x44\n\x04mass\x18\x06 \x01(\x0b\x32\x36.ansys.api.discovery.v0.conditions.mass.MassProperties2\xc0\x06\n\x04Mass\x12\x87\x01\n\nCreateMass\x12;.ansys.api.discovery.v0.conditions.mass.MassCreationRequest\x1a<.ansys.api.discovery.v0.conditions.mass.MassCreationResponse\x12k\n\x12\x43hangeMassLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12l\n\x13\x43hangeMassMagnitude\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12w\n\x1f\x43hangeMassUseRemotePointEnabled\x12,.ansys.api.discovery.v0.ChangeBooleanRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12r\n\x19\x43hangeMassRemotePositionX\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12r\n\x19\x43hangeMassRemotePositionY\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12r\n\x19\x43hangeMassRemotePositionZ\x12-.ansys.api.discovery.v0.ChangeQuantityRequest\x1a&.ansys.api.discovery.v0.ChangeResponseB$\xaa\x02!Ansys.Api.Discovery.V0.Conditionsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.conditions.mass_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.Conditions'
|
|
26
|
+
_MASSCREATIONREQUEST._serialized_start=169
|
|
27
|
+
_MASSCREATIONREQUEST._serialized_end=338
|
|
28
|
+
_MASSCREATIONRESPONSE._serialized_start=341
|
|
29
|
+
_MASSCREATIONRESPONSE._serialized_end=513
|
|
30
|
+
_MASSPROPERTIES._serialized_start=516
|
|
31
|
+
_MASSPROPERTIES._serialized_end=652
|
|
32
|
+
_MASSDEFINITION._serialized_start=655
|
|
33
|
+
_MASSDEFINITION._serialized_end=912
|
|
34
|
+
_MASS._serialized_start=915
|
|
35
|
+
_MASS._serialized_end=1747
|
|
36
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
import ansys.api.dbu.v0.dbumodels_pb2
|
|
6
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
7
|
+
import builtins
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.message
|
|
11
|
+
import typing
|
|
12
|
+
import typing_extensions
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
|
|
15
|
+
|
|
16
|
+
class MassCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""Mass"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
MASS_PROPERTIES_FIELD_NUMBER: builtins.int
|
|
21
|
+
@property
|
|
22
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
23
|
+
@property
|
|
24
|
+
def mass_properties(self) -> global___MassProperties: ...
|
|
25
|
+
def __init__(self,
|
|
26
|
+
*,
|
|
27
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
28
|
+
mass_properties : typing.Optional[global___MassProperties] = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","mass_properties",b"mass_properties"]) -> builtins.bool: ...
|
|
31
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","mass_properties",b"mass_properties"]) -> None: ...
|
|
32
|
+
global___MassCreationRequest = MassCreationRequest
|
|
33
|
+
|
|
34
|
+
class MassCreationResponse(google.protobuf.message.Message):
|
|
35
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
36
|
+
CONDITION_RESPONSE_FIELD_NUMBER: builtins.int
|
|
37
|
+
CONDITION_DATA_FIELD_NUMBER: builtins.int
|
|
38
|
+
@property
|
|
39
|
+
def condition_response(self) -> ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse: ...
|
|
40
|
+
@property
|
|
41
|
+
def condition_data(self) -> global___MassDefinition: ...
|
|
42
|
+
def __init__(self,
|
|
43
|
+
*,
|
|
44
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
45
|
+
condition_data : typing.Optional[global___MassDefinition] = ...,
|
|
46
|
+
) -> None: ...
|
|
47
|
+
def HasField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> builtins.bool: ...
|
|
48
|
+
def ClearField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> None: ...
|
|
49
|
+
global___MassCreationResponse = MassCreationResponse
|
|
50
|
+
|
|
51
|
+
class MassProperties(google.protobuf.message.Message):
|
|
52
|
+
"""Mass condition definitions"""
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
54
|
+
MASS_MAGNITUDE_FIELD_NUMBER: builtins.int
|
|
55
|
+
REMOTE_POINT_FIELD_NUMBER: builtins.int
|
|
56
|
+
@property
|
|
57
|
+
def mass_magnitude(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
58
|
+
@property
|
|
59
|
+
def remote_point(self) -> ansys.api.discovery.v0.discoverymodels_pb2.OptionalVector: ...
|
|
60
|
+
def __init__(self,
|
|
61
|
+
*,
|
|
62
|
+
mass_magnitude : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
63
|
+
remote_point : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.OptionalVector] = ...,
|
|
64
|
+
) -> None: ...
|
|
65
|
+
def HasField(self, field_name: typing_extensions.Literal["mass_magnitude",b"mass_magnitude","remote_point",b"remote_point"]) -> builtins.bool: ...
|
|
66
|
+
def ClearField(self, field_name: typing_extensions.Literal["mass_magnitude",b"mass_magnitude","remote_point",b"remote_point"]) -> None: ...
|
|
67
|
+
global___MassProperties = MassProperties
|
|
68
|
+
|
|
69
|
+
class MassDefinition(google.protobuf.message.Message):
|
|
70
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
71
|
+
ID_FIELD_NUMBER: builtins.int
|
|
72
|
+
PARENT_ID_FIELD_NUMBER: builtins.int
|
|
73
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
74
|
+
LOCATIONS_FIELD_NUMBER: builtins.int
|
|
75
|
+
SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
76
|
+
MASS_FIELD_NUMBER: builtins.int
|
|
77
|
+
@property
|
|
78
|
+
def id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
79
|
+
@property
|
|
80
|
+
def parent_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
81
|
+
label: typing.Text = ...
|
|
82
|
+
@property
|
|
83
|
+
def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
84
|
+
suppressed: builtins.bool = ...
|
|
85
|
+
@property
|
|
86
|
+
def mass(self) -> global___MassProperties: ...
|
|
87
|
+
def __init__(self,
|
|
88
|
+
*,
|
|
89
|
+
id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
90
|
+
parent_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
91
|
+
label : typing.Text = ...,
|
|
92
|
+
locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
93
|
+
suppressed : builtins.bool = ...,
|
|
94
|
+
mass : typing.Optional[global___MassProperties] = ...,
|
|
95
|
+
) -> None: ...
|
|
96
|
+
def HasField(self, field_name: typing_extensions.Literal["id",b"id","mass",b"mass","parent_id",b"parent_id"]) -> builtins.bool: ...
|
|
97
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","locations",b"locations","mass",b"mass","parent_id",b"parent_id","suppressed",b"suppressed"]) -> None: ...
|
|
98
|
+
global___MassDefinition = MassDefinition
|
|
@@ -0,0 +1,266 @@
|
|
|
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.conditions import mass_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_mass__pb2
|
|
6
|
+
from ansys.api.discovery.v0 import discoverymodels_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class MassStub(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.CreateMass = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.mass.Mass/CreateMass',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_mass__pb2.MassCreationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_mass__pb2.MassCreationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.ChangeMassLocation = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassLocation',
|
|
25
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
26
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.ChangeMassMagnitude = channel.unary_unary(
|
|
29
|
+
'/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassMagnitude',
|
|
30
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
31
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.ChangeMassUseRemotePointEnabled = channel.unary_unary(
|
|
34
|
+
'/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassUseRemotePointEnabled',
|
|
35
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeBooleanRequest.SerializeToString,
|
|
36
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.ChangeMassRemotePositionX = channel.unary_unary(
|
|
39
|
+
'/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassRemotePositionX',
|
|
40
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
41
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
self.ChangeMassRemotePositionY = channel.unary_unary(
|
|
44
|
+
'/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassRemotePositionY',
|
|
45
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
46
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
47
|
+
)
|
|
48
|
+
self.ChangeMassRemotePositionZ = channel.unary_unary(
|
|
49
|
+
'/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassRemotePositionZ',
|
|
50
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
51
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
52
|
+
)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class MassServicer(object):
|
|
56
|
+
"""Missing associated documentation comment in .proto file."""
|
|
57
|
+
|
|
58
|
+
def CreateMass(self, request, context):
|
|
59
|
+
"""Mass condition methods
|
|
60
|
+
"""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def ChangeMassLocation(self, request, context):
|
|
66
|
+
"""Missing associated documentation comment in .proto file."""
|
|
67
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
68
|
+
context.set_details('Method not implemented!')
|
|
69
|
+
raise NotImplementedError('Method not implemented!')
|
|
70
|
+
|
|
71
|
+
def ChangeMassMagnitude(self, request, context):
|
|
72
|
+
"""Missing associated documentation comment in .proto file."""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def ChangeMassUseRemotePointEnabled(self, request, context):
|
|
78
|
+
"""Missing associated documentation comment in .proto file."""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
83
|
+
def ChangeMassRemotePositionX(self, request, context):
|
|
84
|
+
"""Missing associated documentation comment in .proto file."""
|
|
85
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
|
+
context.set_details('Method not implemented!')
|
|
87
|
+
raise NotImplementedError('Method not implemented!')
|
|
88
|
+
|
|
89
|
+
def ChangeMassRemotePositionY(self, request, context):
|
|
90
|
+
"""Missing associated documentation comment in .proto file."""
|
|
91
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
92
|
+
context.set_details('Method not implemented!')
|
|
93
|
+
raise NotImplementedError('Method not implemented!')
|
|
94
|
+
|
|
95
|
+
def ChangeMassRemotePositionZ(self, request, context):
|
|
96
|
+
"""Missing associated documentation comment in .proto file."""
|
|
97
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
98
|
+
context.set_details('Method not implemented!')
|
|
99
|
+
raise NotImplementedError('Method not implemented!')
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def add_MassServicer_to_server(servicer, server):
|
|
103
|
+
rpc_method_handlers = {
|
|
104
|
+
'CreateMass': grpc.unary_unary_rpc_method_handler(
|
|
105
|
+
servicer.CreateMass,
|
|
106
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_mass__pb2.MassCreationRequest.FromString,
|
|
107
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_mass__pb2.MassCreationResponse.SerializeToString,
|
|
108
|
+
),
|
|
109
|
+
'ChangeMassLocation': grpc.unary_unary_rpc_method_handler(
|
|
110
|
+
servicer.ChangeMassLocation,
|
|
111
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.FromString,
|
|
112
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
113
|
+
),
|
|
114
|
+
'ChangeMassMagnitude': grpc.unary_unary_rpc_method_handler(
|
|
115
|
+
servicer.ChangeMassMagnitude,
|
|
116
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.FromString,
|
|
117
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
118
|
+
),
|
|
119
|
+
'ChangeMassUseRemotePointEnabled': grpc.unary_unary_rpc_method_handler(
|
|
120
|
+
servicer.ChangeMassUseRemotePointEnabled,
|
|
121
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeBooleanRequest.FromString,
|
|
122
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
123
|
+
),
|
|
124
|
+
'ChangeMassRemotePositionX': grpc.unary_unary_rpc_method_handler(
|
|
125
|
+
servicer.ChangeMassRemotePositionX,
|
|
126
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.FromString,
|
|
127
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
128
|
+
),
|
|
129
|
+
'ChangeMassRemotePositionY': grpc.unary_unary_rpc_method_handler(
|
|
130
|
+
servicer.ChangeMassRemotePositionY,
|
|
131
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.FromString,
|
|
132
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
133
|
+
),
|
|
134
|
+
'ChangeMassRemotePositionZ': grpc.unary_unary_rpc_method_handler(
|
|
135
|
+
servicer.ChangeMassRemotePositionZ,
|
|
136
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.FromString,
|
|
137
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
138
|
+
),
|
|
139
|
+
}
|
|
140
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
141
|
+
'ansys.api.discovery.v0.conditions.mass.Mass', rpc_method_handlers)
|
|
142
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
# This class is part of an EXPERIMENTAL API.
|
|
146
|
+
class Mass(object):
|
|
147
|
+
"""Missing associated documentation comment in .proto file."""
|
|
148
|
+
|
|
149
|
+
@staticmethod
|
|
150
|
+
def CreateMass(request,
|
|
151
|
+
target,
|
|
152
|
+
options=(),
|
|
153
|
+
channel_credentials=None,
|
|
154
|
+
call_credentials=None,
|
|
155
|
+
insecure=False,
|
|
156
|
+
compression=None,
|
|
157
|
+
wait_for_ready=None,
|
|
158
|
+
timeout=None,
|
|
159
|
+
metadata=None):
|
|
160
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.mass.Mass/CreateMass',
|
|
161
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_mass__pb2.MassCreationRequest.SerializeToString,
|
|
162
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_mass__pb2.MassCreationResponse.FromString,
|
|
163
|
+
options, channel_credentials,
|
|
164
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
165
|
+
|
|
166
|
+
@staticmethod
|
|
167
|
+
def ChangeMassLocation(request,
|
|
168
|
+
target,
|
|
169
|
+
options=(),
|
|
170
|
+
channel_credentials=None,
|
|
171
|
+
call_credentials=None,
|
|
172
|
+
insecure=False,
|
|
173
|
+
compression=None,
|
|
174
|
+
wait_for_ready=None,
|
|
175
|
+
timeout=None,
|
|
176
|
+
metadata=None):
|
|
177
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassLocation',
|
|
178
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
179
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
180
|
+
options, channel_credentials,
|
|
181
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
182
|
+
|
|
183
|
+
@staticmethod
|
|
184
|
+
def ChangeMassMagnitude(request,
|
|
185
|
+
target,
|
|
186
|
+
options=(),
|
|
187
|
+
channel_credentials=None,
|
|
188
|
+
call_credentials=None,
|
|
189
|
+
insecure=False,
|
|
190
|
+
compression=None,
|
|
191
|
+
wait_for_ready=None,
|
|
192
|
+
timeout=None,
|
|
193
|
+
metadata=None):
|
|
194
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassMagnitude',
|
|
195
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
196
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
197
|
+
options, channel_credentials,
|
|
198
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
199
|
+
|
|
200
|
+
@staticmethod
|
|
201
|
+
def ChangeMassUseRemotePointEnabled(request,
|
|
202
|
+
target,
|
|
203
|
+
options=(),
|
|
204
|
+
channel_credentials=None,
|
|
205
|
+
call_credentials=None,
|
|
206
|
+
insecure=False,
|
|
207
|
+
compression=None,
|
|
208
|
+
wait_for_ready=None,
|
|
209
|
+
timeout=None,
|
|
210
|
+
metadata=None):
|
|
211
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassUseRemotePointEnabled',
|
|
212
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeBooleanRequest.SerializeToString,
|
|
213
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
214
|
+
options, channel_credentials,
|
|
215
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
216
|
+
|
|
217
|
+
@staticmethod
|
|
218
|
+
def ChangeMassRemotePositionX(request,
|
|
219
|
+
target,
|
|
220
|
+
options=(),
|
|
221
|
+
channel_credentials=None,
|
|
222
|
+
call_credentials=None,
|
|
223
|
+
insecure=False,
|
|
224
|
+
compression=None,
|
|
225
|
+
wait_for_ready=None,
|
|
226
|
+
timeout=None,
|
|
227
|
+
metadata=None):
|
|
228
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassRemotePositionX',
|
|
229
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
230
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
231
|
+
options, channel_credentials,
|
|
232
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
233
|
+
|
|
234
|
+
@staticmethod
|
|
235
|
+
def ChangeMassRemotePositionY(request,
|
|
236
|
+
target,
|
|
237
|
+
options=(),
|
|
238
|
+
channel_credentials=None,
|
|
239
|
+
call_credentials=None,
|
|
240
|
+
insecure=False,
|
|
241
|
+
compression=None,
|
|
242
|
+
wait_for_ready=None,
|
|
243
|
+
timeout=None,
|
|
244
|
+
metadata=None):
|
|
245
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassRemotePositionY',
|
|
246
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
247
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
248
|
+
options, channel_credentials,
|
|
249
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
250
|
+
|
|
251
|
+
@staticmethod
|
|
252
|
+
def ChangeMassRemotePositionZ(request,
|
|
253
|
+
target,
|
|
254
|
+
options=(),
|
|
255
|
+
channel_credentials=None,
|
|
256
|
+
call_credentials=None,
|
|
257
|
+
insecure=False,
|
|
258
|
+
compression=None,
|
|
259
|
+
wait_for_ready=None,
|
|
260
|
+
timeout=None,
|
|
261
|
+
metadata=None):
|
|
262
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.mass.Mass/ChangeMassRemotePositionZ',
|
|
263
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
264
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
265
|
+
options, channel_credentials,
|
|
266
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|