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
ansys/api/discovery/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.14
|
|
@@ -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.current;
|
|
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 Current
|
|
11
|
+
{
|
|
12
|
+
//Current condition methods
|
|
13
|
+
rpc CreateCurrent(CurrentCreationRequest) returns (CurrentCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangeCurrentLocation(ChangeLocationRequest) returns(ChangeResponse);
|
|
16
|
+
|
|
17
|
+
rpc ChangeCurrentMagnitude(ChangeQuantityRequest) returns (ChangeResponse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Current
|
|
21
|
+
message CurrentCreationRequest{
|
|
22
|
+
ScopedCreationData creation_data = 1;
|
|
23
|
+
CurrentProperties current_properties = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message CurrentCreationResponse{
|
|
27
|
+
CreationResponse condition_response = 1;
|
|
28
|
+
CurrentDefinition condition_data = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Current condition definitions
|
|
32
|
+
message CurrentProperties {
|
|
33
|
+
Quantity current_magnitude = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message CurrentDefinition {
|
|
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
|
+
CurrentProperties current = 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/current.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/current.proto\x12)ansys.api.discovery.v0.conditions.current\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xb5\x01\n\x16\x43urrentCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12X\n\x12\x63urrent_properties\x18\x02 \x01(\x0b\x32<.ansys.api.discovery.v0.conditions.current.CurrentProperties\"\xb5\x01\n\x17\x43urrentCreationResponse\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.current.CurrentDefinition\"P\n\x11\x43urrentProperties\x12;\n\x11\x63urrent_magnitude\x18\x01 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\x8d\x02\n\x11\x43urrentDefinition\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\x07\x63urrent\x18\x06 \x01(\x0b\x32<.ansys.api.discovery.v0.conditions.current.CurrentProperties2\x83\x03\n\x07\x43urrent\x12\x96\x01\n\rCreateCurrent\x12\x41.ansys.api.discovery.v0.conditions.current.CurrentCreationRequest\x1a\x42.ansys.api.discovery.v0.conditions.current.CurrentCreationResponse\x12n\n\x15\x43hangeCurrentLocation\x12-.ansys.api.discovery.v0.ChangeLocationRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12o\n\x16\x43hangeCurrentMagnitude\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.current_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
|
+
_CURRENTCREATIONREQUEST._serialized_start=175
|
|
27
|
+
_CURRENTCREATIONREQUEST._serialized_end=356
|
|
28
|
+
_CURRENTCREATIONRESPONSE._serialized_start=359
|
|
29
|
+
_CURRENTCREATIONRESPONSE._serialized_end=540
|
|
30
|
+
_CURRENTPROPERTIES._serialized_start=542
|
|
31
|
+
_CURRENTPROPERTIES._serialized_end=622
|
|
32
|
+
_CURRENTDEFINITION._serialized_start=625
|
|
33
|
+
_CURRENTDEFINITION._serialized_end=894
|
|
34
|
+
_CURRENT._serialized_start=897
|
|
35
|
+
_CURRENT._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 CurrentCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""Current"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
CURRENT_PROPERTIES_FIELD_NUMBER: builtins.int
|
|
21
|
+
@property
|
|
22
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
23
|
+
@property
|
|
24
|
+
def current_properties(self) -> global___CurrentProperties: ...
|
|
25
|
+
def __init__(self,
|
|
26
|
+
*,
|
|
27
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
28
|
+
current_properties : typing.Optional[global___CurrentProperties] = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","current_properties",b"current_properties"]) -> builtins.bool: ...
|
|
31
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","current_properties",b"current_properties"]) -> None: ...
|
|
32
|
+
global___CurrentCreationRequest = CurrentCreationRequest
|
|
33
|
+
|
|
34
|
+
class CurrentCreationResponse(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___CurrentDefinition: ...
|
|
42
|
+
def __init__(self,
|
|
43
|
+
*,
|
|
44
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
45
|
+
condition_data : typing.Optional[global___CurrentDefinition] = ...,
|
|
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___CurrentCreationResponse = CurrentCreationResponse
|
|
50
|
+
|
|
51
|
+
class CurrentProperties(google.protobuf.message.Message):
|
|
52
|
+
"""Current condition definitions"""
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
54
|
+
CURRENT_MAGNITUDE_FIELD_NUMBER: builtins.int
|
|
55
|
+
@property
|
|
56
|
+
def current_magnitude(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
57
|
+
def __init__(self,
|
|
58
|
+
*,
|
|
59
|
+
current_magnitude : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
60
|
+
) -> None: ...
|
|
61
|
+
def HasField(self, field_name: typing_extensions.Literal["current_magnitude",b"current_magnitude"]) -> builtins.bool: ...
|
|
62
|
+
def ClearField(self, field_name: typing_extensions.Literal["current_magnitude",b"current_magnitude"]) -> None: ...
|
|
63
|
+
global___CurrentProperties = CurrentProperties
|
|
64
|
+
|
|
65
|
+
class CurrentDefinition(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
|
+
CURRENT_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 current(self) -> global___CurrentProperties: ...
|
|
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
|
+
current : typing.Optional[global___CurrentProperties] = ...,
|
|
91
|
+
) -> None: ...
|
|
92
|
+
def HasField(self, field_name: typing_extensions.Literal["current",b"current","id",b"id","parent_id",b"parent_id"]) -> builtins.bool: ...
|
|
93
|
+
def ClearField(self, field_name: typing_extensions.Literal["current",b"current","id",b"id","label",b"label","locations",b"locations","parent_id",b"parent_id","suppressed",b"suppressed"]) -> None: ...
|
|
94
|
+
global___CurrentDefinition = CurrentDefinition
|
|
@@ -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 current_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_current__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 CurrentStub(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.CreateCurrent = channel.unary_unary(
|
|
19
|
+
'/ansys.api.discovery.v0.conditions.current.Current/CreateCurrent',
|
|
20
|
+
request_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_current__pb2.CurrentCreationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_current__pb2.CurrentCreationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.ChangeCurrentLocation = channel.unary_unary(
|
|
24
|
+
'/ansys.api.discovery.v0.conditions.current.Current/ChangeCurrentLocation',
|
|
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.ChangeCurrentMagnitude = channel.unary_unary(
|
|
29
|
+
'/ansys.api.discovery.v0.conditions.current.Current/ChangeCurrentMagnitude',
|
|
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 CurrentServicer(object):
|
|
36
|
+
"""Missing associated documentation comment in .proto file."""
|
|
37
|
+
|
|
38
|
+
def CreateCurrent(self, request, context):
|
|
39
|
+
"""Current 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 ChangeCurrentLocation(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 ChangeCurrentMagnitude(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_CurrentServicer_to_server(servicer, server):
|
|
59
|
+
rpc_method_handlers = {
|
|
60
|
+
'CreateCurrent': grpc.unary_unary_rpc_method_handler(
|
|
61
|
+
servicer.CreateCurrent,
|
|
62
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_current__pb2.CurrentCreationRequest.FromString,
|
|
63
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_current__pb2.CurrentCreationResponse.SerializeToString,
|
|
64
|
+
),
|
|
65
|
+
'ChangeCurrentLocation': grpc.unary_unary_rpc_method_handler(
|
|
66
|
+
servicer.ChangeCurrentLocation,
|
|
67
|
+
request_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.FromString,
|
|
68
|
+
response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeResponse.SerializeToString,
|
|
69
|
+
),
|
|
70
|
+
'ChangeCurrentMagnitude': grpc.unary_unary_rpc_method_handler(
|
|
71
|
+
servicer.ChangeCurrentMagnitude,
|
|
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.current.Current', rpc_method_handlers)
|
|
78
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# This class is part of an EXPERIMENTAL API.
|
|
82
|
+
class Current(object):
|
|
83
|
+
"""Missing associated documentation comment in .proto file."""
|
|
84
|
+
|
|
85
|
+
@staticmethod
|
|
86
|
+
def CreateCurrent(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.current.Current/CreateCurrent',
|
|
97
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_current__pb2.CurrentCreationRequest.SerializeToString,
|
|
98
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_conditions_dot_current__pb2.CurrentCreationResponse.FromString,
|
|
99
|
+
options, channel_credentials,
|
|
100
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
101
|
+
|
|
102
|
+
@staticmethod
|
|
103
|
+
def ChangeCurrentLocation(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.current.Current/ChangeCurrentLocation',
|
|
114
|
+
ansys_dot_api_dot_discovery_dot_v0_dot_discoverymodels__pb2.ChangeLocationRequest.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 ChangeCurrentMagnitude(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.current.Current/ChangeCurrentMagnitude',
|
|
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.current_pb2
|
|
7
|
+
import ansys.api.discovery.v0.discoverymodels_pb2
|
|
8
|
+
import grpc
|
|
9
|
+
|
|
10
|
+
class CurrentStub:
|
|
11
|
+
def __init__(self, channel: grpc.Channel) -> None: ...
|
|
12
|
+
CreateCurrent: grpc.UnaryUnaryMultiCallable[
|
|
13
|
+
ansys.api.discovery.v0.conditions.current_pb2.CurrentCreationRequest,
|
|
14
|
+
ansys.api.discovery.v0.conditions.current_pb2.CurrentCreationResponse] = ...
|
|
15
|
+
"""Current condition methods"""
|
|
16
|
+
|
|
17
|
+
ChangeCurrentLocation: grpc.UnaryUnaryMultiCallable[
|
|
18
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
19
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
20
|
+
|
|
21
|
+
ChangeCurrentMagnitude: grpc.UnaryUnaryMultiCallable[
|
|
22
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeQuantityRequest,
|
|
23
|
+
ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse] = ...
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class CurrentServicer(metaclass=abc.ABCMeta):
|
|
27
|
+
@abc.abstractmethod
|
|
28
|
+
def CreateCurrent(self,
|
|
29
|
+
request: ansys.api.discovery.v0.conditions.current_pb2.CurrentCreationRequest,
|
|
30
|
+
context: grpc.ServicerContext,
|
|
31
|
+
) -> ansys.api.discovery.v0.conditions.current_pb2.CurrentCreationResponse:
|
|
32
|
+
"""Current condition methods"""
|
|
33
|
+
pass
|
|
34
|
+
|
|
35
|
+
@abc.abstractmethod
|
|
36
|
+
def ChangeCurrentLocation(self,
|
|
37
|
+
request: ansys.api.discovery.v0.discoverymodels_pb2.ChangeLocationRequest,
|
|
38
|
+
context: grpc.ServicerContext,
|
|
39
|
+
) -> ansys.api.discovery.v0.discoverymodels_pb2.ChangeResponse: ...
|
|
40
|
+
|
|
41
|
+
@abc.abstractmethod
|
|
42
|
+
def ChangeCurrentMagnitude(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_CurrentServicer_to_server(servicer: CurrentServicer, 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.localfidelity;
|
|
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 LocalFidelity
|
|
11
|
+
{
|
|
12
|
+
//LocalFidelity condition methods
|
|
13
|
+
rpc CreateLocalFidelity(LocalFidelityCreationRequest) returns (LocalFidelityCreationResponse);
|
|
14
|
+
|
|
15
|
+
rpc ChangeLocalFidelityLocation(ChangeLocationExtendedRequest) returns(ChangeResponse);
|
|
16
|
+
|
|
17
|
+
rpc ChangeLocalFidelityMagnitude(ChangeQuantityRequest) returns (ChangeResponse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// LocalFidelity
|
|
21
|
+
message LocalFidelityCreationRequest{
|
|
22
|
+
ScopedCreationData creation_data = 1;
|
|
23
|
+
LocalFidelityProperties local_fidelity_properties = 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
message LocalFidelityCreationResponse{
|
|
27
|
+
CreationResponse condition_response = 1;
|
|
28
|
+
LocalFidelityDefinition condition_data = 2;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// LocalFidelity condition definitions
|
|
32
|
+
message LocalFidelityProperties {
|
|
33
|
+
Quantity local_fidelity_magnitude = 1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message LocalFidelityDefinition {
|
|
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
|
+
LocalFidelityProperties local_fidelity = 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/localfidelity.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'\n5ansys/api/discovery/v0/conditions/localfidelity.proto\x12/ansys.api.discovery.v0.conditions.localfidelity\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\"\xce\x01\n\x1cLocalFidelityCreationRequest\x12\x41\n\rcreation_data\x18\x01 \x01(\x0b\x32*.ansys.api.discovery.v0.ScopedCreationData\x12k\n\x19local_fidelity_properties\x18\x02 \x01(\x0b\x32H.ansys.api.discovery.v0.conditions.localfidelity.LocalFidelityProperties\"\xc7\x01\n\x1dLocalFidelityCreationResponse\x12\x44\n\x12\x63ondition_response\x18\x01 \x01(\x0b\x32(.ansys.api.discovery.v0.CreationResponse\x12`\n\x0e\x63ondition_data\x18\x02 \x01(\x0b\x32H.ansys.api.discovery.v0.conditions.localfidelity.LocalFidelityDefinition\"]\n\x17LocalFidelityProperties\x12\x42\n\x18local_fidelity_magnitude\x18\x01 \x01(\x0b\x32 .ansys.api.discovery.v0.Quantity\"\xa6\x02\n\x17LocalFidelityDefinition\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`\n\x0elocal_fidelity\x18\x06 \x01(\x0b\x32H.ansys.api.discovery.v0.conditions.localfidelity.LocalFidelityProperties2\xbb\x03\n\rLocalFidelity\x12\xb4\x01\n\x13\x43reateLocalFidelity\x12M.ansys.api.discovery.v0.conditions.localfidelity.LocalFidelityCreationRequest\x1aN.ansys.api.discovery.v0.conditions.localfidelity.LocalFidelityCreationResponse\x12|\n\x1b\x43hangeLocalFidelityLocation\x12\x35.ansys.api.discovery.v0.ChangeLocationExtendedRequest\x1a&.ansys.api.discovery.v0.ChangeResponse\x12u\n\x1c\x43hangeLocalFidelityMagnitude\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.localfidelity_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
|
+
_LOCALFIDELITYCREATIONREQUEST._serialized_start=187
|
|
27
|
+
_LOCALFIDELITYCREATIONREQUEST._serialized_end=393
|
|
28
|
+
_LOCALFIDELITYCREATIONRESPONSE._serialized_start=396
|
|
29
|
+
_LOCALFIDELITYCREATIONRESPONSE._serialized_end=595
|
|
30
|
+
_LOCALFIDELITYPROPERTIES._serialized_start=597
|
|
31
|
+
_LOCALFIDELITYPROPERTIES._serialized_end=690
|
|
32
|
+
_LOCALFIDELITYDEFINITION._serialized_start=693
|
|
33
|
+
_LOCALFIDELITYDEFINITION._serialized_end=987
|
|
34
|
+
_LOCALFIDELITY._serialized_start=990
|
|
35
|
+
_LOCALFIDELITY._serialized_end=1433
|
|
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 LocalFidelityCreationRequest(google.protobuf.message.Message):
|
|
17
|
+
"""LocalFidelity"""
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
19
|
+
CREATION_DATA_FIELD_NUMBER: builtins.int
|
|
20
|
+
LOCAL_FIDELITY_PROPERTIES_FIELD_NUMBER: builtins.int
|
|
21
|
+
@property
|
|
22
|
+
def creation_data(self) -> ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData: ...
|
|
23
|
+
@property
|
|
24
|
+
def local_fidelity_properties(self) -> global___LocalFidelityProperties: ...
|
|
25
|
+
def __init__(self,
|
|
26
|
+
*,
|
|
27
|
+
creation_data : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.ScopedCreationData] = ...,
|
|
28
|
+
local_fidelity_properties : typing.Optional[global___LocalFidelityProperties] = ...,
|
|
29
|
+
) -> None: ...
|
|
30
|
+
def HasField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","local_fidelity_properties",b"local_fidelity_properties"]) -> builtins.bool: ...
|
|
31
|
+
def ClearField(self, field_name: typing_extensions.Literal["creation_data",b"creation_data","local_fidelity_properties",b"local_fidelity_properties"]) -> None: ...
|
|
32
|
+
global___LocalFidelityCreationRequest = LocalFidelityCreationRequest
|
|
33
|
+
|
|
34
|
+
class LocalFidelityCreationResponse(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___LocalFidelityDefinition: ...
|
|
42
|
+
def __init__(self,
|
|
43
|
+
*,
|
|
44
|
+
condition_response : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.CreationResponse] = ...,
|
|
45
|
+
condition_data : typing.Optional[global___LocalFidelityDefinition] = ...,
|
|
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___LocalFidelityCreationResponse = LocalFidelityCreationResponse
|
|
50
|
+
|
|
51
|
+
class LocalFidelityProperties(google.protobuf.message.Message):
|
|
52
|
+
"""LocalFidelity condition definitions"""
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
|
|
54
|
+
LOCAL_FIDELITY_MAGNITUDE_FIELD_NUMBER: builtins.int
|
|
55
|
+
@property
|
|
56
|
+
def local_fidelity_magnitude(self) -> ansys.api.discovery.v0.discoverymodels_pb2.Quantity: ...
|
|
57
|
+
def __init__(self,
|
|
58
|
+
*,
|
|
59
|
+
local_fidelity_magnitude : typing.Optional[ansys.api.discovery.v0.discoverymodels_pb2.Quantity] = ...,
|
|
60
|
+
) -> None: ...
|
|
61
|
+
def HasField(self, field_name: typing_extensions.Literal["local_fidelity_magnitude",b"local_fidelity_magnitude"]) -> builtins.bool: ...
|
|
62
|
+
def ClearField(self, field_name: typing_extensions.Literal["local_fidelity_magnitude",b"local_fidelity_magnitude"]) -> None: ...
|
|
63
|
+
global___LocalFidelityProperties = LocalFidelityProperties
|
|
64
|
+
|
|
65
|
+
class LocalFidelityDefinition(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
|
+
LOCAL_FIDELITY_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 local_fidelity(self) -> global___LocalFidelityProperties: ...
|
|
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
|
+
local_fidelity : typing.Optional[global___LocalFidelityProperties] = ...,
|
|
91
|
+
) -> None: ...
|
|
92
|
+
def HasField(self, field_name: typing_extensions.Literal["id",b"id","local_fidelity",b"local_fidelity","parent_id",b"parent_id"]) -> builtins.bool: ...
|
|
93
|
+
def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label","local_fidelity",b"local_fidelity","locations",b"locations","parent_id",b"parent_id","suppressed",b"suppressed"]) -> None: ...
|
|
94
|
+
global___LocalFidelityDefinition = LocalFidelityDefinition
|