ansys-api-discovery 0.5.1__py3-none-any.whl → 0.6.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


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

Files changed (54) hide show
  1. ansys/api/discovery/VERSION +1 -1
  2. ansys/api/discovery/v0/conditions.proto +32 -0
  3. ansys/api/discovery/v0/conditions_pb2.py +33 -0
  4. ansys/api/discovery/v0/conditions_pb2.pyi +51 -0
  5. ansys/api/discovery/v0/conditions_pb2_grpc.py +134 -0
  6. ansys/api/discovery/v0/conditions_pb2_grpc.pyi +48 -0
  7. ansys/api/discovery/v0/conditionsfluid.proto +246 -0
  8. ansys/api/discovery/v0/conditionsfluid_pb2.py +85 -0
  9. ansys/api/discovery/v0/conditionsfluid_pb2.pyi +590 -0
  10. ansys/api/discovery/v0/conditionsfluid_pb2_grpc.py +662 -0
  11. ansys/api/discovery/v0/conditionsfluid_pb2_grpc.pyi +208 -0
  12. ansys/api/discovery/v0/conditionsstructural.proto +407 -0
  13. ansys/api/discovery/v0/conditionsstructural_pb2.py +113 -0
  14. ansys/api/discovery/v0/conditionsstructural_pb2.pyi +839 -0
  15. ansys/api/discovery/v0/conditionsstructural_pb2_grpc.py +2746 -0
  16. ansys/api/discovery/v0/conditionsstructural_pb2_grpc.pyi +854 -0
  17. ansys/api/discovery/v0/conditionsthermal.proto +179 -0
  18. ansys/api/discovery/v0/conditionsthermal_pb2.py +63 -0
  19. ansys/api/discovery/v0/conditionsthermal_pb2.pyi +399 -0
  20. ansys/api/discovery/v0/conditionsthermal_pb2_grpc.py +665 -0
  21. ansys/api/discovery/v0/conditionsthermal_pb2_grpc.pyi +217 -0
  22. ansys/api/discovery/v0/definedvariationstable.proto +13 -0
  23. ansys/api/discovery/v0/definedvariationstable_pb2.py +12 -116
  24. ansys/api/discovery/v0/definedvariationstable_pb2.pyi +20 -1
  25. ansys/api/discovery/v0/definedvariationstable_pb2_grpc.py +68 -0
  26. ansys/api/discovery/v0/definedvariationstable_pb2_grpc.pyi +26 -0
  27. ansys/api/discovery/v0/discoverymodels.proto +112 -1
  28. ansys/api/discovery/v0/discoverymodels_pb2.py +59 -168
  29. ansys/api/discovery/v0/discoverymodels_pb2.pyi +330 -3
  30. ansys/api/discovery/v0/historytrackparameters_pb2.py +3 -50
  31. ansys/api/discovery/v0/messaging.proto +19 -0
  32. ansys/api/discovery/v0/messaging_pb2.py +29 -0
  33. ansys/api/discovery/v0/messaging_pb2.pyi +22 -0
  34. ansys/api/discovery/v0/messaging_pb2_grpc.py +106 -0
  35. ansys/api/discovery/v0/messaging_pb2_grpc.pyi +38 -0
  36. ansys/api/discovery/v0/scriptparameters_pb2.py +3 -37
  37. ansys/api/discovery/v0/simulations.proto +22 -0
  38. ansys/api/discovery/v0/simulations_pb2.py +30 -0
  39. ansys/api/discovery/v0/simulations_pb2.pyi +27 -0
  40. ansys/api/discovery/v0/simulations_pb2_grpc.py +103 -0
  41. ansys/api/discovery/v0/simulations_pb2_grpc.pyi +42 -0
  42. ansys/api/discovery/v0/solution.proto +45 -0
  43. ansys/api/discovery/v0/solution_pb2.py +39 -0
  44. ansys/api/discovery/v0/solution_pb2.pyi +100 -0
  45. ansys/api/discovery/v0/solution_pb2_grpc.py +133 -0
  46. ansys/api/discovery/v0/solution_pb2_grpc.pyi +45 -0
  47. ansys/api/discovery/v0/units_pb2.py +3 -1232
  48. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/METADATA +8 -8
  49. ansys_api_discovery-0.6.0.dist-info/RECORD +70 -0
  50. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/WHEEL +1 -1
  51. ansys_api_discovery-0.5.1.dist-info/RECORD +0 -35
  52. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/LICENSE +0 -0
  53. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/entry_points.txt +0 -0
  54. {ansys_api_discovery-0.5.1.dist-info → ansys_api_discovery-0.6.0.dist-info}/top_level.txt +0 -0
@@ -3,6 +3,7 @@
3
3
  isort:skip_file
4
4
  """
5
5
  import ansys.api.dbu.v0.dbumodels_pb2
6
+ import ansys.api.geometry.v0.models_pb2
6
7
  import builtins
7
8
  import google.protobuf.descriptor
8
9
  import google.protobuf.internal.containers
@@ -32,6 +33,22 @@ UNKNOWN: InputParameterType.ValueType = ... # 3
32
33
  global___InputParameterType = InputParameterType
33
34
 
34
35
 
36
+ class _LocationSpecification:
37
+ ValueType = typing.NewType('ValueType', builtins.int)
38
+ V: typing_extensions.TypeAlias = ValueType
39
+ class _LocationSpecificationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LocationSpecification.ValueType], builtins.type):
40
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ...
41
+ FACELOCATIONS: LocationSpecification.ValueType = ... # 0
42
+ BODYLOCATIONS: LocationSpecification.ValueType = ... # 1
43
+ class LocationSpecification(_LocationSpecification, metaclass=_LocationSpecificationEnumTypeWrapper):
44
+ """Defines the type of location, some conditions support application to either bodies and faces"""
45
+ pass
46
+
47
+ FACELOCATIONS: LocationSpecification.ValueType = ... # 0
48
+ BODYLOCATIONS: LocationSpecification.ValueType = ... # 1
49
+ global___LocationSpecification = LocationSpecification
50
+
51
+
35
52
  class _QuantityType:
36
53
  ValueType = typing.NewType('ValueType', builtins.int)
37
54
  V: typing_extensions.TypeAlias = ValueType
@@ -117,10 +134,10 @@ class _QuantityTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._E
117
134
  QUANTITY_TYPE_VOLUME_FLOW: QuantityType.ValueType = ... # 77
118
135
  QUANTITY_TYPE_VOLUME_PER_LENGTH: QuantityType.ValueType = ... # 78
119
136
  QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA: QuantityType.ValueType = ... # 79
137
+ QUANTITY_TYPE_NONE: QuantityType.ValueType = ... # 80
138
+ QUANTITY_TYPE_UNKNOWN: QuantityType.ValueType = ... # 81
120
139
  class QuantityType(_QuantityType, metaclass=_QuantityTypeEnumTypeWrapper):
121
- """
122
- Represents the quantity type for a physics parameter.
123
- """
140
+ """Represents the quantity type for a physics parameter."""
124
141
  pass
125
142
 
126
143
  QUANTITY_TYPE_ACCELERATION: QuantityType.ValueType = ... # 0
@@ -203,6 +220,8 @@ QUANTITY_TYPE_VOLUME_CONCENTRATION: QuantityType.ValueType = ... # 76
203
220
  QUANTITY_TYPE_VOLUME_FLOW: QuantityType.ValueType = ... # 77
204
221
  QUANTITY_TYPE_VOLUME_PER_LENGTH: QuantityType.ValueType = ... # 78
205
222
  QUANTITY_TYPE_WARPING_MOMENT_OF_INERTIA: QuantityType.ValueType = ... # 79
223
+ QUANTITY_TYPE_NONE: QuantityType.ValueType = ... # 80
224
+ QUANTITY_TYPE_UNKNOWN: QuantityType.ValueType = ... # 81
206
225
  global___QuantityType = QuantityType
207
226
 
208
227
 
@@ -397,3 +416,311 @@ class ScriptParameter(google.protobuf.message.Message):
397
416
  ) -> None: ...
398
417
  def ClearField(self, field_name: typing_extensions.Literal["dimension_type",b"dimension_type","dimension_value",b"dimension_value","id",b"id","name",b"name"]) -> None: ...
399
418
  global___ScriptParameter = ScriptParameter
419
+
420
+ class Simulation(google.protobuf.message.Message):
421
+ """
422
+ SIMULATIONS PROTOS
423
+ """
424
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
425
+ ID_FIELD_NUMBER: builtins.int
426
+ LABEL_FIELD_NUMBER: builtins.int
427
+ id: typing.Text = ...
428
+ label: typing.Text = ...
429
+ def __init__(self,
430
+ *,
431
+ id : typing.Text = ...,
432
+ label : typing.Text = ...,
433
+ ) -> None: ...
434
+ def ClearField(self, field_name: typing_extensions.Literal["id",b"id","label",b"label"]) -> None: ...
435
+ global___Simulation = Simulation
436
+
437
+ class ChangeLocationRequest(google.protobuf.message.Message):
438
+ """General Requests
439
+
440
+ """
441
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
442
+ OBJECT_ID_FIELD_NUMBER: builtins.int
443
+ LOCATIONS_FIELD_NUMBER: builtins.int
444
+ object_id: typing.Text = ...
445
+ @property
446
+ def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
447
+ def __init__(self,
448
+ *,
449
+ object_id : typing.Text = ...,
450
+ locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
451
+ ) -> None: ...
452
+ def ClearField(self, field_name: typing_extensions.Literal["locations",b"locations","object_id",b"object_id"]) -> None: ...
453
+ global___ChangeLocationRequest = ChangeLocationRequest
454
+
455
+ class ChangeLocationExtendedRequest(google.protobuf.message.Message):
456
+ """enables the type of location to be changed as well as the scope. Only supported for specific condition types"""
457
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
458
+ CHANGE_LOCATION_REQUEST_FIELD_NUMBER: builtins.int
459
+ LOCATION_SPECIFICATION_FIELD_NUMBER: builtins.int
460
+ @property
461
+ def change_location_request(self) -> global___ChangeLocationRequest: ...
462
+ location_specification: global___LocationSpecification.ValueType = ...
463
+ def __init__(self,
464
+ *,
465
+ change_location_request : typing.Optional[global___ChangeLocationRequest] = ...,
466
+ location_specification : global___LocationSpecification.ValueType = ...,
467
+ ) -> None: ...
468
+ def HasField(self, field_name: typing_extensions.Literal["change_location_request",b"change_location_request"]) -> builtins.bool: ...
469
+ def ClearField(self, field_name: typing_extensions.Literal["change_location_request",b"change_location_request","location_specification",b"location_specification"]) -> None: ...
470
+ global___ChangeLocationExtendedRequest = ChangeLocationExtendedRequest
471
+
472
+ class ChangeQuantityRequest(google.protobuf.message.Message):
473
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
474
+ OBJECT_ID_FIELD_NUMBER: builtins.int
475
+ QUANTITY_FIELD_NUMBER: builtins.int
476
+ object_id: typing.Text = ...
477
+ @property
478
+ def quantity(self) -> global___Quantity: ...
479
+ def __init__(self,
480
+ *,
481
+ object_id : typing.Text = ...,
482
+ quantity : typing.Optional[global___Quantity] = ...,
483
+ ) -> None: ...
484
+ def HasField(self, field_name: typing_extensions.Literal["quantity",b"quantity"]) -> builtins.bool: ...
485
+ def ClearField(self, field_name: typing_extensions.Literal["object_id",b"object_id","quantity",b"quantity"]) -> None: ...
486
+ global___ChangeQuantityRequest = ChangeQuantityRequest
487
+
488
+ class ChangeBooleanRequest(google.protobuf.message.Message):
489
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
490
+ OBJECT_ID_FIELD_NUMBER: builtins.int
491
+ BOOLEAN_VALUE_FIELD_NUMBER: builtins.int
492
+ object_id: typing.Text = ...
493
+ boolean_value: builtins.bool = ...
494
+ def __init__(self,
495
+ *,
496
+ object_id : typing.Text = ...,
497
+ boolean_value : builtins.bool = ...,
498
+ ) -> None: ...
499
+ def ClearField(self, field_name: typing_extensions.Literal["boolean_value",b"boolean_value","object_id",b"object_id"]) -> None: ...
500
+ global___ChangeBooleanRequest = ChangeBooleanRequest
501
+
502
+ class ChangeDirectionRequest(google.protobuf.message.Message):
503
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
504
+ OBJECT_ID_FIELD_NUMBER: builtins.int
505
+ DIRECTION_FIELD_NUMBER: builtins.int
506
+ object_id: typing.Text = ...
507
+ @property
508
+ def direction(self) -> ansys.api.geometry.v0.models_pb2.Direction: ...
509
+ def __init__(self,
510
+ *,
511
+ object_id : typing.Text = ...,
512
+ direction : typing.Optional[ansys.api.geometry.v0.models_pb2.Direction] = ...,
513
+ ) -> None: ...
514
+ def HasField(self, field_name: typing_extensions.Literal["direction",b"direction"]) -> builtins.bool: ...
515
+ def ClearField(self, field_name: typing_extensions.Literal["direction",b"direction","object_id",b"object_id"]) -> None: ...
516
+ global___ChangeDirectionRequest = ChangeDirectionRequest
517
+
518
+ class ChangeCommandRequest(google.protobuf.message.Message):
519
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
520
+ OBJECT_ID_FIELD_NUMBER: builtins.int
521
+ object_id: typing.Text = ...
522
+ def __init__(self,
523
+ *,
524
+ object_id : typing.Text = ...,
525
+ ) -> None: ...
526
+ def ClearField(self, field_name: typing_extensions.Literal["object_id",b"object_id"]) -> None: ...
527
+ global___ChangeCommandRequest = ChangeCommandRequest
528
+
529
+ class ScopedConditionCreationData(google.protobuf.message.Message):
530
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
531
+ OBJECT_ID_FIELD_NUMBER: builtins.int
532
+ SIMULATION_ID_FIELD_NUMBER: builtins.int
533
+ LOCATIONS_FIELD_NUMBER: builtins.int
534
+ object_id: typing.Text = ...
535
+ simulation_id: typing.Text = ...
536
+ @property
537
+ def locations(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ...
538
+ def __init__(self,
539
+ *,
540
+ object_id : typing.Optional[typing.Text] = ...,
541
+ simulation_id : typing.Text = ...,
542
+ locations : typing.Optional[typing.Iterable[typing.Text]] = ...,
543
+ ) -> None: ...
544
+ def HasField(self, field_name: typing_extensions.Literal["_object_id",b"_object_id","object_id",b"object_id"]) -> builtins.bool: ...
545
+ def ClearField(self, field_name: typing_extensions.Literal["_object_id",b"_object_id","locations",b"locations","object_id",b"object_id","simulation_id",b"simulation_id"]) -> None: ...
546
+ def WhichOneof(self, oneof_group: typing_extensions.Literal["_object_id",b"_object_id"]) -> typing.Optional[typing_extensions.Literal["object_id"]]: ...
547
+ global___ScopedConditionCreationData = ScopedConditionCreationData
548
+
549
+ class ConditionChangedResponse(google.protobuf.message.Message):
550
+ """General Responses
551
+
552
+ """
553
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
554
+ SUCCESS_FIELD_NUMBER: builtins.int
555
+ MESSAGE_FIELD_NUMBER: builtins.int
556
+ success: builtins.bool = ...
557
+ message: typing.Text = ...
558
+ def __init__(self,
559
+ *,
560
+ success : builtins.bool = ...,
561
+ message : typing.Text = ...,
562
+ ) -> None: ...
563
+ def ClearField(self, field_name: typing_extensions.Literal["message",b"message","success",b"success"]) -> None: ...
564
+ global___ConditionChangedResponse = ConditionChangedResponse
565
+
566
+ class ConditionCreationResponse(google.protobuf.message.Message):
567
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
568
+ SUCCESS_FIELD_NUMBER: builtins.int
569
+ MESSAGE_FIELD_NUMBER: builtins.int
570
+ success: builtins.bool = ...
571
+ message: typing.Text = ...
572
+ def __init__(self,
573
+ *,
574
+ success : builtins.bool = ...,
575
+ message : typing.Text = ...,
576
+ ) -> None: ...
577
+ def ClearField(self, field_name: typing_extensions.Literal["message",b"message","success",b"success"]) -> None: ...
578
+ global___ConditionCreationResponse = ConditionCreationResponse
579
+
580
+ class MessageResponse(google.protobuf.message.Message):
581
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
582
+ MESSAGE_FIELD_NUMBER: builtins.int
583
+ message: typing.Text = ...
584
+ def __init__(self,
585
+ *,
586
+ message : typing.Text = ...,
587
+ ) -> None: ...
588
+ def ClearField(self, field_name: typing_extensions.Literal["message",b"message"]) -> None: ...
589
+ global___MessageResponse = MessageResponse
590
+
591
+ class Quantity(google.protobuf.message.Message):
592
+ """Quantity Data"""
593
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
594
+ QUANTITY_TYPE_FIELD_NUMBER: builtins.int
595
+ QUANTITY_VALUE_FIELD_NUMBER: builtins.int
596
+ UNIT_FIELD_NUMBER: builtins.int
597
+ UNIT_ABBREVIATION_FIELD_NUMBER: builtins.int
598
+ AS_STRING_FIELD_NUMBER: builtins.int
599
+ quantity_type: global___QuantityType.ValueType = ...
600
+ """not required in cases where the usage context defines the quantity type"""
601
+
602
+ quantity_value: builtins.float = ...
603
+ unit: builtins.int = ...
604
+ unit_abbreviation: typing.Text = ...
605
+ """not required in cases where the usage context defines the abbreviation"""
606
+
607
+ as_string: typing.Text = ...
608
+ """Optional, but if not empty, all other properties will be defaulted from it."""
609
+
610
+ def __init__(self,
611
+ *,
612
+ quantity_type : global___QuantityType.ValueType = ...,
613
+ quantity_value : builtins.float = ...,
614
+ unit : builtins.int = ...,
615
+ unit_abbreviation : typing.Text = ...,
616
+ as_string : typing.Text = ...,
617
+ ) -> None: ...
618
+ def ClearField(self, field_name: typing_extensions.Literal["as_string",b"as_string","quantity_type",b"quantity_type","quantity_value",b"quantity_value","unit",b"unit","unit_abbreviation",b"unit_abbreviation"]) -> None: ...
619
+ global___Quantity = Quantity
620
+
621
+ class QuantityVector(google.protobuf.message.Message):
622
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
623
+ X_FIELD_NUMBER: builtins.int
624
+ Y_FIELD_NUMBER: builtins.int
625
+ Z_FIELD_NUMBER: builtins.int
626
+ @property
627
+ def x(self) -> global___Quantity: ...
628
+ @property
629
+ def y(self) -> global___Quantity: ...
630
+ @property
631
+ def z(self) -> global___Quantity: ...
632
+ def __init__(self,
633
+ *,
634
+ x : typing.Optional[global___Quantity] = ...,
635
+ y : typing.Optional[global___Quantity] = ...,
636
+ z : typing.Optional[global___Quantity] = ...,
637
+ ) -> None: ...
638
+ def HasField(self, field_name: typing_extensions.Literal["x",b"x","y",b"y","z",b"z"]) -> builtins.bool: ...
639
+ def ClearField(self, field_name: typing_extensions.Literal["x",b"x","y",b"y","z",b"z"]) -> None: ...
640
+ global___QuantityVector = QuantityVector
641
+
642
+ class OptionalVector(google.protobuf.message.Message):
643
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
644
+ IS_DEFINED_FIELD_NUMBER: builtins.int
645
+ VECTOR_FIELD_NUMBER: builtins.int
646
+ is_defined: builtins.bool = ...
647
+ @property
648
+ def vector(self) -> global___QuantityVector: ...
649
+ def __init__(self,
650
+ *,
651
+ is_defined : builtins.bool = ...,
652
+ vector : typing.Optional[global___QuantityVector] = ...,
653
+ ) -> None: ...
654
+ def HasField(self, field_name: typing_extensions.Literal["vector",b"vector"]) -> builtins.bool: ...
655
+ def ClearField(self, field_name: typing_extensions.Literal["is_defined",b"is_defined","vector",b"vector"]) -> None: ...
656
+ global___OptionalVector = OptionalVector
657
+
658
+ class OptionalQuantity(google.protobuf.message.Message):
659
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
660
+ IS_DEFINED_FIELD_NUMBER: builtins.int
661
+ QUANTITY_FIELD_NUMBER: builtins.int
662
+ is_defined: builtins.bool = ...
663
+ @property
664
+ def quantity(self) -> global___Quantity: ...
665
+ def __init__(self,
666
+ *,
667
+ is_defined : builtins.bool = ...,
668
+ quantity : typing.Optional[global___Quantity] = ...,
669
+ ) -> None: ...
670
+ def HasField(self, field_name: typing_extensions.Literal["quantity",b"quantity"]) -> builtins.bool: ...
671
+ def ClearField(self, field_name: typing_extensions.Literal["is_defined",b"is_defined","quantity",b"quantity"]) -> None: ...
672
+ global___OptionalQuantity = OptionalQuantity
673
+
674
+ class TensorOfOptionalQuantities(google.protobuf.message.Message):
675
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
676
+ DX_FIELD_NUMBER: builtins.int
677
+ DY_FIELD_NUMBER: builtins.int
678
+ DZ_FIELD_NUMBER: builtins.int
679
+ RX_FIELD_NUMBER: builtins.int
680
+ RY_FIELD_NUMBER: builtins.int
681
+ RZ_FIELD_NUMBER: builtins.int
682
+ @property
683
+ def dx(self) -> global___OptionalQuantity: ...
684
+ @property
685
+ def dy(self) -> global___OptionalQuantity: ...
686
+ @property
687
+ def dz(self) -> global___OptionalQuantity: ...
688
+ @property
689
+ def rx(self) -> global___OptionalQuantity: ...
690
+ @property
691
+ def ry(self) -> global___OptionalQuantity: ...
692
+ @property
693
+ def rz(self) -> global___OptionalQuantity: ...
694
+ def __init__(self,
695
+ *,
696
+ dx : typing.Optional[global___OptionalQuantity] = ...,
697
+ dy : typing.Optional[global___OptionalQuantity] = ...,
698
+ dz : typing.Optional[global___OptionalQuantity] = ...,
699
+ rx : typing.Optional[global___OptionalQuantity] = ...,
700
+ ry : typing.Optional[global___OptionalQuantity] = ...,
701
+ rz : typing.Optional[global___OptionalQuantity] = ...,
702
+ ) -> None: ...
703
+ def HasField(self, field_name: typing_extensions.Literal["dx",b"dx","dy",b"dy","dz",b"dz","rx",b"rx","ry",b"ry","rz",b"rz"]) -> builtins.bool: ...
704
+ def ClearField(self, field_name: typing_extensions.Literal["dx",b"dx","dy",b"dy","dz",b"dz","rx",b"rx","ry",b"ry","rz",b"rz"]) -> None: ...
705
+ global___TensorOfOptionalQuantities = TensorOfOptionalQuantities
706
+
707
+ class VectorOfOptionalQuantities(google.protobuf.message.Message):
708
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
709
+ X_FIELD_NUMBER: builtins.int
710
+ Y_FIELD_NUMBER: builtins.int
711
+ Z_FIELD_NUMBER: builtins.int
712
+ @property
713
+ def x(self) -> global___OptionalQuantity: ...
714
+ @property
715
+ def y(self) -> global___OptionalQuantity: ...
716
+ @property
717
+ def z(self) -> global___OptionalQuantity: ...
718
+ def __init__(self,
719
+ *,
720
+ x : typing.Optional[global___OptionalQuantity] = ...,
721
+ y : typing.Optional[global___OptionalQuantity] = ...,
722
+ z : typing.Optional[global___OptionalQuantity] = ...,
723
+ ) -> None: ...
724
+ def HasField(self, field_name: typing_extensions.Literal["x",b"x","y",b"y","z",b"z"]) -> builtins.bool: ...
725
+ def ClearField(self, field_name: typing_extensions.Literal["x",b"x","y",b"y","z",b"z"]) -> None: ...
726
+ global___VectorOfOptionalQuantities = VectorOfOptionalQuantities
@@ -2,11 +2,9 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: ansys/api/discovery/v0/historytrackparameters.proto
4
4
  """Generated protocol buffer code."""
5
- from google.protobuf.internal import enum_type_wrapper
5
+ from google.protobuf.internal import builder as _builder
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
8
- from google.protobuf import message as _message
9
- from google.protobuf import reflection as _reflection
10
8
  from google.protobuf import symbol_database as _symbol_database
11
9
  # @@protoc_insertion_point(imports)
12
10
 
@@ -20,53 +18,8 @@ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
20
18
 
21
19
  DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3ansys/api/discovery/v0/historytrackparameters.proto\x12-ansys.api.discovery.v0.historytrackparameters\x1a ansys/api/dbu/v0/dbumodels.proto\x1a,ansys/api/discovery/v0/discoverymodels.proto\x1a\x1bgoogle/protobuf/empty.proto\"a\n\x0eGetAllResponse\x12O\n\x18history_track_parameters\x18\x01 \x03(\x0b\x32-.ansys.api.discovery.v0.HistoryTrackParameter\"_\n\rUpdateRequest\x12N\n\x17history_track_parameter\x18\x01 \x01(\x0b\x32-.ansys.api.discovery.v0.HistoryTrackParameter\" \n\x0eReplayResponse\x12\x0e\n\x06result\x18\x01 \x01(\t\"l\n\x1aGetRecordingStatusResponse\x12N\n\x06status\x18\x01 \x01(\x0e\x32>.ansys.api.discovery.v0.historytrackparameters.RecordingStatus\"k\n\x19SetRecordingStatusRequest\x12N\n\x06status\x18\x01 \x01(\x0e\x32>.ansys.api.discovery.v0.historytrackparameters.RecordingStatus*\"\n\x0fRecordingStatus\x12\x07\n\x03OFF\x10\x00\x12\x06\n\x02ON\x10\x01\x32\x9c\x05\n\x16HistoryTrackParameters\x12X\n\x03Get\x12\".ansys.api.dbu.v0.EntityIdentifier\x1a-.ansys.api.discovery.v0.HistoryTrackParameter\x12_\n\x06GetAll\x12\x16.google.protobuf.Empty\x1a=.ansys.api.discovery.v0.historytrackparameters.GetAllResponse\x12u\n\x06Update\x12<.ansys.api.discovery.v0.historytrackparameters.UpdateRequest\x1a-.ansys.api.discovery.v0.HistoryTrackParameter\x12_\n\x06Replay\x12\x16.google.protobuf.Empty\x1a=.ansys.api.discovery.v0.historytrackparameters.ReplayResponse\x12w\n\x12GetRecordingStatus\x12\x16.google.protobuf.Empty\x1aI.ansys.api.discovery.v0.historytrackparameters.GetRecordingStatusResponse\x12v\n\x12SetRecordingStatus\x12H.ansys.api.discovery.v0.historytrackparameters.SetRecordingStatusRequest\x1a\x16.google.protobuf.EmptyB0\xaa\x02-Ansys.Api.Discovery.V0.HistoryTrackParametersb\x06proto3')
22
20
 
23
- _RECORDINGSTATUS = DESCRIPTOR.enum_types_by_name['RecordingStatus']
24
- RecordingStatus = enum_type_wrapper.EnumTypeWrapper(_RECORDINGSTATUS)
25
- OFF = 0
26
- ON = 1
27
-
28
-
29
- _GETALLRESPONSE = DESCRIPTOR.message_types_by_name['GetAllResponse']
30
- _UPDATEREQUEST = DESCRIPTOR.message_types_by_name['UpdateRequest']
31
- _REPLAYRESPONSE = DESCRIPTOR.message_types_by_name['ReplayResponse']
32
- _GETRECORDINGSTATUSRESPONSE = DESCRIPTOR.message_types_by_name['GetRecordingStatusResponse']
33
- _SETRECORDINGSTATUSREQUEST = DESCRIPTOR.message_types_by_name['SetRecordingStatusRequest']
34
- GetAllResponse = _reflection.GeneratedProtocolMessageType('GetAllResponse', (_message.Message,), {
35
- 'DESCRIPTOR' : _GETALLRESPONSE,
36
- '__module__' : 'ansys.api.discovery.v0.historytrackparameters_pb2'
37
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.historytrackparameters.GetAllResponse)
38
- })
39
- _sym_db.RegisterMessage(GetAllResponse)
40
-
41
- UpdateRequest = _reflection.GeneratedProtocolMessageType('UpdateRequest', (_message.Message,), {
42
- 'DESCRIPTOR' : _UPDATEREQUEST,
43
- '__module__' : 'ansys.api.discovery.v0.historytrackparameters_pb2'
44
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.historytrackparameters.UpdateRequest)
45
- })
46
- _sym_db.RegisterMessage(UpdateRequest)
47
-
48
- ReplayResponse = _reflection.GeneratedProtocolMessageType('ReplayResponse', (_message.Message,), {
49
- 'DESCRIPTOR' : _REPLAYRESPONSE,
50
- '__module__' : 'ansys.api.discovery.v0.historytrackparameters_pb2'
51
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.historytrackparameters.ReplayResponse)
52
- })
53
- _sym_db.RegisterMessage(ReplayResponse)
54
-
55
- GetRecordingStatusResponse = _reflection.GeneratedProtocolMessageType('GetRecordingStatusResponse', (_message.Message,), {
56
- 'DESCRIPTOR' : _GETRECORDINGSTATUSRESPONSE,
57
- '__module__' : 'ansys.api.discovery.v0.historytrackparameters_pb2'
58
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.historytrackparameters.GetRecordingStatusResponse)
59
- })
60
- _sym_db.RegisterMessage(GetRecordingStatusResponse)
61
-
62
- SetRecordingStatusRequest = _reflection.GeneratedProtocolMessageType('SetRecordingStatusRequest', (_message.Message,), {
63
- 'DESCRIPTOR' : _SETRECORDINGSTATUSREQUEST,
64
- '__module__' : 'ansys.api.discovery.v0.historytrackparameters_pb2'
65
- # @@protoc_insertion_point(class_scope:ansys.api.discovery.v0.historytrackparameters.SetRecordingStatusRequest)
66
- })
67
- _sym_db.RegisterMessage(SetRecordingStatusRequest)
68
-
69
- _HISTORYTRACKPARAMETERS = DESCRIPTOR.services_by_name['HistoryTrackParameters']
21
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
22
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.historytrackparameters_pb2', globals())
70
23
  if _descriptor._USE_C_DESCRIPTORS == False:
71
24
 
72
25
  DESCRIPTOR._options = None
@@ -0,0 +1,19 @@
1
+ // Copyright 2023, ANSYS Inc. Unauthorized use, distribution or duplication is prohibited.
2
+ syntax = "proto3";
3
+
4
+ package ansys.api.discovery.v0.messaging;
5
+
6
+ import "google/protobuf/empty.proto";
7
+
8
+ option csharp_namespace = "Ansys.Api.Discovery.V0.Messaging";
9
+
10
+ // Messaging service for getting events out of Discovery
11
+ //
12
+ service Messaging{
13
+ rpc GetMessages(google.protobuf.Empty) returns(stream MessagingResponse);
14
+ rpc ClearMessages(google.protobuf.Empty) returns(google.protobuf.Empty);
15
+ }
16
+
17
+ message MessagingResponse{
18
+ string event_message = 1;
19
+ }
@@ -0,0 +1,29 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: ansys/api/discovery/v0/messaging.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf.internal import builder as _builder
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
15
+
16
+
17
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&ansys/api/discovery/v0/messaging.proto\x12 ansys.api.discovery.v0.messaging\x1a\x1bgoogle/protobuf/empty.proto\"*\n\x11MessagingResponse\x12\x15\n\revent_message\x18\x01 \x01(\t2\xaa\x01\n\tMessaging\x12\\\n\x0bGetMessages\x12\x16.google.protobuf.Empty\x1a\x33.ansys.api.discovery.v0.messaging.MessagingResponse0\x01\x12?\n\rClearMessages\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.EmptyB#\xaa\x02 Ansys.Api.Discovery.V0.Messagingb\x06proto3')
18
+
19
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
20
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ansys.api.discovery.v0.messaging_pb2', globals())
21
+ if _descriptor._USE_C_DESCRIPTORS == False:
22
+
23
+ DESCRIPTOR._options = None
24
+ DESCRIPTOR._serialized_options = b'\252\002 Ansys.Api.Discovery.V0.Messaging'
25
+ _MESSAGINGRESPONSE._serialized_start=105
26
+ _MESSAGINGRESPONSE._serialized_end=147
27
+ _MESSAGING._serialized_start=150
28
+ _MESSAGING._serialized_end=320
29
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,22 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+ import builtins
6
+ import google.protobuf.descriptor
7
+ import google.protobuf.message
8
+ import typing
9
+ import typing_extensions
10
+
11
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ...
12
+
13
+ class MessagingResponse(google.protobuf.message.Message):
14
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor = ...
15
+ EVENT_MESSAGE_FIELD_NUMBER: builtins.int
16
+ event_message: typing.Text = ...
17
+ def __init__(self,
18
+ *,
19
+ event_message : typing.Text = ...,
20
+ ) -> None: ...
21
+ def ClearField(self, field_name: typing_extensions.Literal["event_message",b"event_message"]) -> None: ...
22
+ global___MessagingResponse = MessagingResponse
@@ -0,0 +1,106 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+
5
+ from ansys.api.discovery.v0 import messaging_pb2 as ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2
6
+ from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
7
+
8
+
9
+ class MessagingStub(object):
10
+ """Messaging service for getting events out of Discovery
11
+
12
+ """
13
+
14
+ def __init__(self, channel):
15
+ """Constructor.
16
+
17
+ Args:
18
+ channel: A grpc.Channel.
19
+ """
20
+ self.GetMessages = channel.unary_stream(
21
+ '/ansys.api.discovery.v0.messaging.Messaging/GetMessages',
22
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
23
+ response_deserializer=ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2.MessagingResponse.FromString,
24
+ )
25
+ self.ClearMessages = channel.unary_unary(
26
+ '/ansys.api.discovery.v0.messaging.Messaging/ClearMessages',
27
+ request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
28
+ response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
29
+ )
30
+
31
+
32
+ class MessagingServicer(object):
33
+ """Messaging service for getting events out of Discovery
34
+
35
+ """
36
+
37
+ def GetMessages(self, request, context):
38
+ """Missing associated documentation comment in .proto file."""
39
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
40
+ context.set_details('Method not implemented!')
41
+ raise NotImplementedError('Method not implemented!')
42
+
43
+ def ClearMessages(self, request, context):
44
+ """Missing associated documentation comment in .proto file."""
45
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
46
+ context.set_details('Method not implemented!')
47
+ raise NotImplementedError('Method not implemented!')
48
+
49
+
50
+ def add_MessagingServicer_to_server(servicer, server):
51
+ rpc_method_handlers = {
52
+ 'GetMessages': grpc.unary_stream_rpc_method_handler(
53
+ servicer.GetMessages,
54
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
55
+ response_serializer=ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2.MessagingResponse.SerializeToString,
56
+ ),
57
+ 'ClearMessages': grpc.unary_unary_rpc_method_handler(
58
+ servicer.ClearMessages,
59
+ request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
60
+ response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
61
+ ),
62
+ }
63
+ generic_handler = grpc.method_handlers_generic_handler(
64
+ 'ansys.api.discovery.v0.messaging.Messaging', rpc_method_handlers)
65
+ server.add_generic_rpc_handlers((generic_handler,))
66
+
67
+
68
+ # This class is part of an EXPERIMENTAL API.
69
+ class Messaging(object):
70
+ """Messaging service for getting events out of Discovery
71
+
72
+ """
73
+
74
+ @staticmethod
75
+ def GetMessages(request,
76
+ target,
77
+ options=(),
78
+ channel_credentials=None,
79
+ call_credentials=None,
80
+ insecure=False,
81
+ compression=None,
82
+ wait_for_ready=None,
83
+ timeout=None,
84
+ metadata=None):
85
+ return grpc.experimental.unary_stream(request, target, '/ansys.api.discovery.v0.messaging.Messaging/GetMessages',
86
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
87
+ ansys_dot_api_dot_discovery_dot_v0_dot_messaging__pb2.MessagingResponse.FromString,
88
+ options, channel_credentials,
89
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
90
+
91
+ @staticmethod
92
+ def ClearMessages(request,
93
+ target,
94
+ options=(),
95
+ channel_credentials=None,
96
+ call_credentials=None,
97
+ insecure=False,
98
+ compression=None,
99
+ wait_for_ready=None,
100
+ timeout=None,
101
+ metadata=None):
102
+ return grpc.experimental.unary_unary(request, target, '/ansys.api.discovery.v0.messaging.Messaging/ClearMessages',
103
+ google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
104
+ google_dot_protobuf_dot_empty__pb2.Empty.FromString,
105
+ options, channel_credentials,
106
+ 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.messaging_pb2
7
+ import google.protobuf.empty_pb2
8
+ import grpc
9
+ import typing
10
+
11
+ class MessagingStub:
12
+ """Messaging service for getting events out of Discovery"""
13
+ def __init__(self, channel: grpc.Channel) -> None: ...
14
+ GetMessages: grpc.UnaryStreamMultiCallable[
15
+ google.protobuf.empty_pb2.Empty,
16
+ ansys.api.discovery.v0.messaging_pb2.MessagingResponse] = ...
17
+
18
+ ClearMessages: grpc.UnaryUnaryMultiCallable[
19
+ google.protobuf.empty_pb2.Empty,
20
+ google.protobuf.empty_pb2.Empty] = ...
21
+
22
+
23
+ class MessagingServicer(metaclass=abc.ABCMeta):
24
+ """Messaging service for getting events out of Discovery"""
25
+ @abc.abstractmethod
26
+ def GetMessages(self,
27
+ request: google.protobuf.empty_pb2.Empty,
28
+ context: grpc.ServicerContext,
29
+ ) -> typing.Iterator[ansys.api.discovery.v0.messaging_pb2.MessagingResponse]: ...
30
+
31
+ @abc.abstractmethod
32
+ def ClearMessages(self,
33
+ request: google.protobuf.empty_pb2.Empty,
34
+ context: grpc.ServicerContext,
35
+ ) -> google.protobuf.empty_pb2.Empty: ...
36
+
37
+
38
+ def add_MessagingServicer_to_server(servicer: MessagingServicer, server: grpc.Server) -> None: ...