ansys-api-discovery 0.6.13__py3-none-any.whl → 0.6.14__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/conditions/current.proto +43 -0
- ansys/api/discovery/v0/conditions/current_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/current_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/current_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/current_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/conditions/localfidelity.proto +43 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/localfidelity_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/conditions/symmetry.proto +35 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2.py +34 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2.pyi +72 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2_grpc.py +101 -0
- ansys/api/discovery/v0/conditions/symmetry_pb2_grpc.pyi +38 -0
- ansys/api/discovery/v0/conditions/voltage.proto +43 -0
- ansys/api/discovery/v0/conditions/voltage_pb2.py +36 -0
- ansys/api/discovery/v0/conditions/voltage_pb2.pyi +94 -0
- ansys/api/discovery/v0/conditions/voltage_pb2_grpc.py +134 -0
- ansys/api/discovery/v0/conditions/voltage_pb2_grpc.pyi +48 -0
- ansys/api/discovery/v0/connections/fluidinterface.proto +15 -15
- ansys/api/discovery/v0/connections/fluidinterface_pb2.py +15 -15
- ansys/api/discovery/v0/connections/fluidinterface_pb2.pyi +16 -16
- ansys/api/discovery/v0/connections/fluidinterface_pb2_grpc.py +72 -72
- ansys/api/discovery/v0/connections/fluidinterface_pb2_grpc.pyi +24 -24
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.14.dist-info}/METADATA +2 -2
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.14.dist-info}/RECORD +32 -12
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.14.dist-info}/LICENSE +0 -0
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.14.dist-info}/WHEEL +0 -0
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.14.dist-info}/entry_points.txt +0 -0
- {ansys_api_discovery-0.6.13.dist-info → ansys_api_discovery-0.6.14.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
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 localfidelity_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_localfidelity__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 LocalFidelityStub(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.CreateLocalFidelity = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.localfidelity.LocalFidelity/CreateLocalFidelity',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_localfidelity__pb2.LocalFidelityCreationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_localfidelity__pb2.LocalFidelityCreationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.ChangeLocalFidelityLocation = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.localfidelity.LocalFidelity/ChangeLocalFidelityLocation',
|
|
25
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationExtendedRequest.SerializeToString,
|
|
26
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.ChangeLocalFidelityMagnitude = channel.unary_unary(
|
|
29
|
+
'/ansys.api.discovery.v0.conditions.localfidelity.LocalFidelity/ChangeLocalFidelityMagnitude',
|
|
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
|
+
|
|
34
|
+
|
|
35
|
+
class LocalFidelityServicer(object):
|
|
36
|
+
"""Missing associated documentation comment in .proto file."""
|
|
37
|
+
|
|
38
|
+
def CreateLocalFidelity(self, request, context):
|
|
39
|
+
"""LocalFidelity condition methods
|
|
40
|
+
"""
|
|
41
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
42
|
+
context.set_details('Method not implemented!')
|
|
43
|
+
raise NotImplementedError('Method not implemented!')
|
|
44
|
+
|
|
45
|
+
def ChangeLocalFidelityLocation(self, request, context):
|
|
46
|
+
"""Missing associated documentation comment in .proto file."""
|
|
47
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
|
+
context.set_details('Method not implemented!')
|
|
49
|
+
raise NotImplementedError('Method not implemented!')
|
|
50
|
+
|
|
51
|
+
def ChangeLocalFidelityMagnitude(self, request, context):
|
|
52
|
+
"""Missing associated documentation comment in .proto file."""
|
|
53
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
54
|
+
context.set_details('Method not implemented!')
|
|
55
|
+
raise NotImplementedError('Method not implemented!')
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def add_LocalFidelityServicer_to_server(servicer, server):
|
|
59
|
+
rpc_method_handlers = {
|
|
60
|
+
'CreateLocalFidelity': grpc.unary_unary_rpc_method_handler(
|
|
61
|
+
servicer.CreateLocalFidelity,
|
|
62
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_localfidelity__pb2.LocalFidelityCreationRequest.FromString,
|
|
63
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_localfidelity__pb2.LocalFidelityCreationResponse.SerializeToString,
|
|
64
|
+
),
|
|
65
|
+
'ChangeLocalFidelityLocation': grpc.unary_unary_rpc_method_handler(
|
|
66
|
+
servicer.ChangeLocalFidelityLocation,
|
|
67
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationExtendedRequest.FromString,
|
|
68
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
69
|
+
),
|
|
70
|
+
'ChangeLocalFidelityMagnitude': grpc.unary_unary_rpc_method_handler(
|
|
71
|
+
servicer.ChangeLocalFidelityMagnitude,
|
|
72
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.FromString,
|
|
73
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
74
|
+
),
|
|
75
|
+
}
|
|
76
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
77
|
+
'ansys.api.discovery.v0.conditions.localfidelity.LocalFidelity', rpc_method_handlers)
|
|
78
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# This class is part of an EXPERIMENTAL API.
|
|
82
|
+
class LocalFidelity(object):
|
|
83
|
+
"""Missing associated documentation comment in .proto file."""
|
|
84
|
+
|
|
85
|
+
@staticmethod
|
|
86
|
+
def CreateLocalFidelity(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.localfidelity.LocalFidelity/CreateLocalFidelity',
|
|
97
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_localfidelity__pb2.LocalFidelityCreationRequest.SerializeToString,
|
|
98
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_localfidelity__pb2.LocalFidelityCreationResponse.FromString,
|
|
99
|
+
options, channel_credentials,
|
|
100
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
101
|
+
|
|
102
|
+
@staticmethod
|
|
103
|
+
def ChangeLocalFidelityLocation(request,
|
|
104
|
+
target,
|
|
105
|
+
options=(),
|
|
106
|
+
channel_credentials=None,
|
|
107
|
+
call_credentials=None,
|
|
108
|
+
insecure=False,
|
|
109
|
+
compression=None,
|
|
110
|
+
wait_for_ready=None,
|
|
111
|
+
timeout=None,
|
|
112
|
+
metadata=None):
|
|
113
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.localfidelity.LocalFidelity/ChangeLocalFidelityLocation',
|
|
114
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationExtendedRequest.SerializeToString,
|
|
115
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
116
|
+
options, channel_credentials,
|
|
117
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
118
|
+
|
|
119
|
+
@staticmethod
|
|
120
|
+
def ChangeLocalFidelityMagnitude(request,
|
|
121
|
+
target,
|
|
122
|
+
options=(),
|
|
123
|
+
channel_credentials=None,
|
|
124
|
+
call_credentials=None,
|
|
125
|
+
insecure=False,
|
|
126
|
+
compression=None,
|
|
127
|
+
wait_for_ready=None,
|
|
128
|
+
timeout=None,
|
|
129
|
+
metadata=None):
|
|
130
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.localfidelity.LocalFidelity/ChangeLocalFidelityMagnitude',
|
|
131
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeQuantityRequest.SerializeToString,
|
|
132
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
133
|
+
options, channel_credentials,
|
|
134
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,48 @@
|
|
|
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.localfidelity_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class LocalFidelityStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreateLocalFidelity: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.localfidelity_pb2.LocalFidelityCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.localfidelity_pb2.LocalFidelityCreationResponse] = ...
|
|
15
|
+
"""LocalFidelity condition methods"""
|
|
16
|
+
|
|
17
|
+
ChangeLocalFidelityLocation: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationExtendedRequest,
|
|
19
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
20
|
+
|
|
21
|
+
ChangeLocalFidelityMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
22
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
23
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class LocalFidelityServicer(metaclass=abc.ABCMeta):
|
|
27
|
+
@abc.abstractmethod
|
|
28
|
+
def CreateLocalFidelity(self,
|
|
29
|
+
request: ansys.api.discovery.v0.conditions.localfidelity_pb2.LocalFidelityCreationRequest,
|
|
30
|
+
context: grpc.ServicerContext,
|
|
31
|
+
) -> ansys.api.discovery.v0.conditions.localfidelity_pb2.LocalFidelityCreationResponse:
|
|
32
|
+
"""LocalFidelity condition methods"""
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
@abc.abstractmethod
|
|
36
|
+
def ChangeLocalFidelityLocation(self,
|
|
37
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationExtendedRequest,
|
|
38
|
+
context: grpc.ServicerContext,
|
|
39
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
40
|
+
|
|
41
|
+
@abc.abstractmethod
|
|
42
|
+
def ChangeLocalFidelityMagnitude(self,
|
|
43
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
44
|
+
context: grpc.ServicerContext,
|
|
45
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def add_LocalFidelityServicer_to_server(servicer: LocalFidelityServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.symmetry;
|
|
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 Symmetry
|
|
11
|
+
{
|
|
12
|
+
//Symmetry condition methods
|
|
13
|
+
rpc CreateSymmetry(SymmetryCreationRequest) returns (SymmetryCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangeSymmetryLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// Symmetry
|
|
19
|
+
message SymmetryCreationRequest{
|
|
20
|
+
ScopedCreationData creation_data = 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message SymmetryCreationResponse{
|
|
24
|
+
CreationResponse condition_response = 1;
|
|
25
|
+
SymmetryDefinition condition_data = 2;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
message SymmetryDefinition {
|
|
30
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
31
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
32
|
+
string label = 3;
|
|
33
|
+
repeated string locations = 4;
|
|
34
|
+
bool suppressed = 5;
|
|
35
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ansys/api/discovery/v0/conditions/symmetry.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'\n0ansys/api/discovery/v0/conditions/symmetry.proto\x12*ansys.api.discovery.v0.conditions.symmetry\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\\\n\x17SymmetryCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\"\xb8\x01\n\x18SymmetryCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12V\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32>.ansys.api.discovery.v0.conditions.symmetry.SymmetryDefinition\"\xbf\x01\n\x12SymmetryDefinition\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\x32\x99\x02\n\x08Symmetry\x12\x9b\x01\n\x0e\x43reateSymmetry\x12\x43.ansys.api.discovery.v0.conditions.symmetry.SymmetryCreationRequest\x1a\x44.ansys.api.discovery.v0.conditions.symmetry.SymmetryCreationResponse\x12o\n\x16\x43hangeSymmetryLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\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.symmetry_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
|
+
_SYMMETRYCREATIONREQUEST._serialized_start=176
|
|
27
|
+
_SYMMETRYCREATIONREQUEST._serialized_end=268
|
|
28
|
+
_SYMMETRYCREATIONRESPONSE._serialized_start=271
|
|
29
|
+
_SYMMETRYCREATIONRESPONSE._serialized_end=455
|
|
30
|
+
_SYMMETRYDEFINITION._serialized_start=458
|
|
31
|
+
_SYMMETRYDEFINITION._serialized_end=649
|
|
32
|
+
_SYMMETRY._serialized_start=652
|
|
33
|
+
_SYMMETRY._serialized_end=933
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,72 @@
|
|
|
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 SymmetryCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""Symmetry"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
@property
|
|
21
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
22
|
+
def __init__(self,
|
|
23
|
+
*,
|
|
24
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
25
|
+
) -> None: ...
|
|
26
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data"]) -> builtins.bool: ...
|
|
27
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data"]) -> None: ...
|
|
28
|
+
global___SymmetryCreationRequest = SymmetryCreationRequest
|
|
29
|
+
|
|
30
|
+
class SymmetryCreationResponse(google.protobuf.message.Message):
|
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
32
|
+
CONDITION_RESPONSE_FIELD_NUMBER: builtins.int
|
|
33
|
+
CONDITION_DATA_FIELD_NUMBER: builtins.int
|
|
34
|
+
@property
|
|
35
|
+
def condition_response(self) -> ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse: ...
|
|
36
|
+
@property
|
|
37
|
+
def condition_data(self) -> global___SymmetryDefinition: ...
|
|
38
|
+
def __init__(self,
|
|
39
|
+
*,
|
|
40
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
41
|
+
condition_data : typing.Optional[global___SymmetryDefinition] = ...,
|
|
42
|
+
) -> None: ...
|
|
43
|
+
def HasField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> builtins.bool: ...
|
|
44
|
+
def ClearField(self, field_name: typing_extensions.Literal["condition_data",b"condition_data","condition_response",b"condition_response"]) -> None: ...
|
|
45
|
+
global___SymmetryCreationResponse = SymmetryCreationResponse
|
|
46
|
+
|
|
47
|
+
class SymmetryDefinition(google.protobuf.message.Message):
|
|
48
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
49
|
+
ID_FIELD_NUMBER: builtins.int
|
|
50
|
+
PARENT_ID_FIELD_NUMBER: builtins.int
|
|
51
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
52
|
+
LOCATIONS_FIELD_NUMBER: builtins.int
|
|
53
|
+
SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
54
|
+
@property
|
|
55
|
+
def id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
56
|
+
@property
|
|
57
|
+
def parent_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
58
|
+
label: typing.Text = ...
|
|
59
|
+
@property
|
|
60
|
+
def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
61
|
+
suppressed: builtins.bool = ...
|
|
62
|
+
def __init__(self,
|
|
63
|
+
*,
|
|
64
|
+
id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
65
|
+
parent_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
66
|
+
label : typing.Text = ...,
|
|
67
|
+
locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
68
|
+
suppressed : builtins.bool = ...,
|
|
69
|
+
) -> None: ...
|
|
70
|
+
def HasField(self, field_name: typing_extensions.Literal["id",b"id","parent_id",b"parent_id"]) -> builtins.bool: ...
|
|
71
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","locations",b"locations","parent_id",b"parent_id","suppressed",b"suppressed"]) -> None: ...
|
|
72
|
+
global___SymmetryDefinition = SymmetryDefinition
|
|
@@ -0,0 +1,101 @@
|
|
|
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 symmetry_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__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 SymmetryStub(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.CreateSymmetry = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.symmetry.Symmetry/CreateSymmetry',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.ChangeSymmetryLocation = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.symmetry.Symmetry/ChangeSymmetryLocation',
|
|
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 SymmetryServicer(object):
|
|
31
|
+
"""Missing associated documentation comment in .proto file."""
|
|
32
|
+
|
|
33
|
+
def CreateSymmetry(self, request, context):
|
|
34
|
+
"""Symmetry condition methods
|
|
35
|
+
"""
|
|
36
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
37
|
+
context.set_details('Method not implemented!')
|
|
38
|
+
raise NotImplementedError('Method not implemented!')
|
|
39
|
+
|
|
40
|
+
def ChangeSymmetryLocation(self, request, context):
|
|
41
|
+
"""Missing associated documentation comment in .proto file."""
|
|
42
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
43
|
+
context.set_details('Method not implemented!')
|
|
44
|
+
raise NotImplementedError('Method not implemented!')
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
def add_SymmetryServicer_to_server(servicer, server):
|
|
48
|
+
rpc_method_handlers = {
|
|
49
|
+
'CreateSymmetry': grpc.unary_unary_rpc_method_handler(
|
|
50
|
+
servicer.CreateSymmetry,
|
|
51
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationRequest.FromString,
|
|
52
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationResponse.SerializeToString,
|
|
53
|
+
),
|
|
54
|
+
'ChangeSymmetryLocation': grpc.unary_unary_rpc_method_handler(
|
|
55
|
+
servicer.ChangeSymmetryLocation,
|
|
56
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.FromString,
|
|
57
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
58
|
+
),
|
|
59
|
+
}
|
|
60
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
61
|
+
'ansys.api.discovery.v0.conditions.symmetry.Symmetry', rpc_method_handlers)
|
|
62
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# This class is part of an EXPERIMENTAL API.
|
|
66
|
+
class Symmetry(object):
|
|
67
|
+
"""Missing associated documentation comment in .proto file."""
|
|
68
|
+
|
|
69
|
+
@staticmethod
|
|
70
|
+
def CreateSymmetry(request,
|
|
71
|
+
target,
|
|
72
|
+
options=(),
|
|
73
|
+
channel_credentials=None,
|
|
74
|
+
call_credentials=None,
|
|
75
|
+
insecure=False,
|
|
76
|
+
compression=None,
|
|
77
|
+
wait_for_ready=None,
|
|
78
|
+
timeout=None,
|
|
79
|
+
metadata=None):
|
|
80
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.symmetry.Symmetry/CreateSymmetry',
|
|
81
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationRequest.SerializeToString,
|
|
82
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_symmetry__pb2.SymmetryCreationResponse.FromString,
|
|
83
|
+
options, channel_credentials,
|
|
84
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
85
|
+
|
|
86
|
+
@staticmethod
|
|
87
|
+
def ChangeSymmetryLocation(request,
|
|
88
|
+
target,
|
|
89
|
+
options=(),
|
|
90
|
+
channel_credentials=None,
|
|
91
|
+
call_credentials=None,
|
|
92
|
+
insecure=False,
|
|
93
|
+
compression=None,
|
|
94
|
+
wait_for_ready=None,
|
|
95
|
+
timeout=None,
|
|
96
|
+
metadata=None):
|
|
97
|
+
return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.conditions.symmetry.Symmetry/ChangeSymmetryLocation',
|
|
98
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.SerializeToString,
|
|
99
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.FromString,
|
|
100
|
+
options, channel_credentials,
|
|
101
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,38 @@
|
|
|
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.symmetry_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class SymmetryStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreateSymmetry: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationResponse] = ...
|
|
15
|
+
"""Symmetry condition methods"""
|
|
16
|
+
|
|
17
|
+
ChangeSymmetryLocation: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
19
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class SymmetryServicer(metaclass=abc.ABCMeta):
|
|
23
|
+
@abc.abstractmethod
|
|
24
|
+
def CreateSymmetry(self,
|
|
25
|
+
request: ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationRequest,
|
|
26
|
+
context: grpc.ServicerContext,
|
|
27
|
+
) -> ansys.api.discovery.v0.conditions.symmetry_pb2.SymmetryCreationResponse:
|
|
28
|
+
"""Symmetry condition methods"""
|
|
29
|
+
pass
|
|
30
|
+
|
|
31
|
+
@abc.abstractmethod
|
|
32
|
+
def ChangeSymmetryLocation(self,
|
|
33
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
34
|
+
context: grpc.ServicerContext,
|
|
35
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
def add_SymmetryServicer_to_server(servicer: SymmetryServicer, server: grpc.Server) -> None: ...
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright 2025, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
|
|
2
|
+
syntax = "proto3";
|
|
3
|
+
package ansys.api.discovery.v0.conditions.voltage;
|
|
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 Voltage
|
|
11
|
+
{
|
|
12
|
+
//Voltage condition methods
|
|
13
|
+
rpc CreateVoltage(VoltageCreationRequest) returns (VoltageCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangeVoltageLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
16
|
+
|
|
17
|
+
rpc ChangeVoltageMagnitude(ChangeQuantityRequest) returns (ChangeResponse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Voltage
|
|
21
|
+
message VoltageCreationRequest{
|
|
22
|
+
ScopedCreationData creation_data = 1;
|
|
23
|
+
VoltageProperties voltage_properties = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message VoltageCreationResponse{
|
|
27
|
+
CreationResponse condition_response = 1;
|
|
28
|
+
VoltageDefinition condition_data = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Voltage condition definitions
|
|
32
|
+
message VoltageProperties {
|
|
33
|
+
Quantity voltage_magnitude = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message VoltageDefinition {
|
|
37
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier id = 1;
|
|
38
|
+
ansys.api.dbu.v0.PhysicsEntityIdentifier parent_id = 2;
|
|
39
|
+
string label = 3;
|
|
40
|
+
repeated string locations = 4;
|
|
41
|
+
bool suppressed = 5;
|
|
42
|
+
VoltageProperties voltage = 6;
|
|
43
|
+
}
|
|
@@ -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/voltage.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/voltage.proto\x12)ansys.api.discovery.v0.conditions.voltage\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xb5\x01\n\x16VoltageCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12X\n\x12voltage_properties\x18\x02 \x01(\x0b\x32<.ansys.api.discovery.v0.conditions.voltage.VoltageProperties\"\xb5\x01\n\x17VoltageCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12T\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32<.ansys.api.discovery.v0.conditions.voltage.VoltageDefinition\"P\n\x11VoltageProperties\x12;\n\x11voltage_magnitude\x18\x01 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\x8d\x02\n\x11VoltageDefinition\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\x12M\n\x07voltage\x18\x06 \x01(\x0b\x32<.ansys.api.discovery.v0.conditions.voltage.VoltageProperties2\x83\x03\n\x07Voltage\x12\x96\x01\n\rCreateVoltage\x12\x41.ansys.api.discovery.v0.conditions.voltage.VoltageCreationRequest\x1a\x42.ansys.api.discovery.v0.conditions.voltage.VoltageCreationResponse\x12n\n\x15\x43hangeVoltageLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12o\n\x16\x43hangeVoltageMagnitude\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.voltage_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
|
+
_VOLTAGECREATIONREQUEST._serialized_start=175
|
|
27
|
+
_VOLTAGECREATIONREQUEST._serialized_end=356
|
|
28
|
+
_VOLTAGECREATIONRESPONSE._serialized_start=359
|
|
29
|
+
_VOLTAGECREATIONRESPONSE._serialized_end=540
|
|
30
|
+
_VOLTAGEPROPERTIES._serialized_start=542
|
|
31
|
+
_VOLTAGEPROPERTIES._serialized_end=622
|
|
32
|
+
_VOLTAGEDEFINITION._serialized_start=625
|
|
33
|
+
_VOLTAGEDEFINITION._serialized_end=894
|
|
34
|
+
_VOLTAGE._serialized_start=897
|
|
35
|
+
_VOLTAGE._serialized_end=1284
|
|
36
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,94 @@
|
|
|
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 VoltageCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""Voltage"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
VOLTAGE_PROPERTIES_FIELD_NUMBER: builtins.int
|
|
21
|
+
@property
|
|
22
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
23
|
+
@property
|
|
24
|
+
def voltage_properties(self) -> global___VoltageProperties: ...
|
|
25
|
+
def __init__(self,
|
|
26
|
+
*,
|
|
27
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
28
|
+
voltage_properties : typing.Optional[global___VoltageProperties] = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","voltage_properties",b"voltage_properties"]) -> builtins.bool: ...
|
|
31
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","voltage_properties",b"voltage_properties"]) -> None: ...
|
|
32
|
+
global___VoltageCreationRequest = VoltageCreationRequest
|
|
33
|
+
|
|
34
|
+
class VoltageCreationResponse(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___VoltageDefinition: ...
|
|
42
|
+
def __init__(self,
|
|
43
|
+
*,
|
|
44
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
45
|
+
condition_data : typing.Optional[global___VoltageDefinition] = ...,
|
|
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___VoltageCreationResponse = VoltageCreationResponse
|
|
50
|
+
|
|
51
|
+
class VoltageProperties(google.protobuf.message.Message):
|
|
52
|
+
"""Voltage condition definitions"""
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
54
|
+
VOLTAGE_MAGNITUDE_FIELD_NUMBER: builtins.int
|
|
55
|
+
@property
|
|
56
|
+
def voltage_magnitude(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
57
|
+
def __init__(self,
|
|
58
|
+
*,
|
|
59
|
+
voltage_magnitude : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
60
|
+
) -> None: ...
|
|
61
|
+
def HasField(self, field_name: typing_extensions.Literal["voltage_magnitude",b"voltage_magnitude"]) -> builtins.bool: ...
|
|
62
|
+
def ClearField(self, field_name: typing_extensions.Literal["voltage_magnitude",b"voltage_magnitude"]) -> None: ...
|
|
63
|
+
global___VoltageProperties = VoltageProperties
|
|
64
|
+
|
|
65
|
+
class VoltageDefinition(google.protobuf.message.Message):
|
|
66
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
67
|
+
ID_FIELD_NUMBER: builtins.int
|
|
68
|
+
PARENT_ID_FIELD_NUMBER: builtins.int
|
|
69
|
+
LABEL_FIELD_NUMBER: builtins.int
|
|
70
|
+
LOCATIONS_FIELD_NUMBER: builtins.int
|
|
71
|
+
SUPPRESSED_FIELD_NUMBER: builtins.int
|
|
72
|
+
VOLTAGE_FIELD_NUMBER: builtins.int
|
|
73
|
+
@property
|
|
74
|
+
def id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
75
|
+
@property
|
|
76
|
+
def parent_id(self) -> ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier: ...
|
|
77
|
+
label: typing.Text = ...
|
|
78
|
+
@property
|
|
79
|
+
def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
|
|
80
|
+
suppressed: builtins.bool = ...
|
|
81
|
+
@property
|
|
82
|
+
def voltage(self) -> global___VoltageProperties: ...
|
|
83
|
+
def __init__(self,
|
|
84
|
+
*,
|
|
85
|
+
id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
86
|
+
parent_id : typing.Optional[ansys.api.dbu.v0.dbumodels_pb2.PhysicsEntityIdentifier] = ...,
|
|
87
|
+
label : typing.Text = ...,
|
|
88
|
+
locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
|
|
89
|
+
suppressed : builtins.bool = ...,
|
|
90
|
+
voltage : typing.Optional[global___VoltageProperties] = ...,
|
|
91
|
+
) -> None: ...
|
|
92
|
+
def HasField(self, field_name: typing_extensions.Literal["id",b"id","parent_id",b"parent_id","voltage",b"voltage"]) -> builtins.bool: ...
|
|
93
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","locations",b"locations","parent_id",b"parent_id","suppressed",b"suppressed","voltage",b"voltage"]) -> None: ...
|
|
94
|
+
global___VoltageDefinition = VoltageDefinition
|