RSSeismicScripting 3.0.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.
- rsseismic/Application.py +196 -0
- rsseismic/ApplicationManager.py +111 -0
- rsseismic/BedrockLayer.py +29 -0
- rsseismic/MeanProfile.py +169 -0
- rsseismic/MeanProfileSoilLayer.py +119 -0
- rsseismic/Model.py +204 -0
- rsseismic/Motions.py +140 -0
- rsseismic/ProfileGenerationSettings.py +29 -0
- rsseismic/Profiles.py +186 -0
- rsseismic/ProjectSettings.py +46 -0
- rsseismic/ReferenceCurve.py +73 -0
- rsseismic/Results.py +419 -0
- rsseismic/SoilLayer.py +34 -0
- rsseismic/SoilLayerCurve.py +124 -0
- rsseismic/SoilLayerOperations.py +120 -0
- rsseismic/__init__.py +79 -0
- rsseismic/_application_paths.py +74 -0
- rsseismic/_batch_compute.py +420 -0
- rsseismic/_client.py +81 -0
- rsseismic/_proto_converters.py +345 -0
- rsseismic/_proxyObject.py +11 -0
- rsseismic/_result_bulk_dataframes.py +202 -0
- rsseismic/_result_dataframes.py +77 -0
- rsseismic/_rpc_helpers.py +55 -0
- rsseismic/enums/__init__.py +23 -0
- rsseismic/enums/_generated.py +120 -0
- rsseismic/enums/fitting_procedure.py +15 -0
- rsseismic/exceptions.py +11 -0
- rsseismic/generatedFiles/ApplicationService_pb2.py +46 -0
- rsseismic/generatedFiles/ApplicationService_pb2.pyi +67 -0
- rsseismic/generatedFiles/ApplicationService_pb2_grpc.py +274 -0
- rsseismic/generatedFiles/BedrockLayerDataService_pb2.py +27 -0
- rsseismic/generatedFiles/BedrockLayerDataService_pb2.pyi +5 -0
- rsseismic/generatedFiles/BedrockLayerDataService_pb2_grpc.py +231 -0
- rsseismic/generatedFiles/CommonMessages_pb2.py +50 -0
- rsseismic/generatedFiles/CommonMessages_pb2.pyi +113 -0
- rsseismic/generatedFiles/CommonMessages_pb2_grpc.py +29 -0
- rsseismic/generatedFiles/MeanProfileService_pb2.py +62 -0
- rsseismic/generatedFiles/MeanProfileService_pb2.pyi +176 -0
- rsseismic/generatedFiles/MeanProfileService_pb2_grpc.py +458 -0
- rsseismic/generatedFiles/MeanProfileSoilLayerDataService_pb2.py +45 -0
- rsseismic/generatedFiles/MeanProfileSoilLayerDataService_pb2.pyi +87 -0
- rsseismic/generatedFiles/MeanProfileSoilLayerDataService_pb2_grpc.py +360 -0
- rsseismic/generatedFiles/ModelService_pb2.py +54 -0
- rsseismic/generatedFiles/ModelService_pb2.pyi +122 -0
- rsseismic/generatedFiles/ModelService_pb2_grpc.py +360 -0
- rsseismic/generatedFiles/MotionService_pb2.py +78 -0
- rsseismic/generatedFiles/MotionService_pb2.pyi +224 -0
- rsseismic/generatedFiles/MotionService_pb2_grpc.py +575 -0
- rsseismic/generatedFiles/ProfileGenerationSettingsService_pb2.py +27 -0
- rsseismic/generatedFiles/ProfileGenerationSettingsService_pb2.pyi +5 -0
- rsseismic/generatedFiles/ProfileGenerationSettingsService_pb2_grpc.py +145 -0
- rsseismic/generatedFiles/ProfileService_pb2.py +76 -0
- rsseismic/generatedFiles/ProfileService_pb2.pyi +246 -0
- rsseismic/generatedFiles/ProfileService_pb2_grpc.py +532 -0
- rsseismic/generatedFiles/ProjectSettingsDataService_pb2.py +35 -0
- rsseismic/generatedFiles/ProjectSettingsDataService_pb2.pyi +40 -0
- rsseismic/generatedFiles/ProjectSettingsDataService_pb2_grpc.py +232 -0
- rsseismic/generatedFiles/ReferenceCurveDataService_pb2.py +41 -0
- rsseismic/generatedFiles/ReferenceCurveDataService_pb2.pyi +73 -0
- rsseismic/generatedFiles/ReferenceCurveDataService_pb2_grpc.py +281 -0
- rsseismic/generatedFiles/ResultsService_pb2.py +82 -0
- rsseismic/generatedFiles/ResultsService_pb2.pyi +373 -0
- rsseismic/generatedFiles/ResultsService_pb2_grpc.py +489 -0
- rsseismic/generatedFiles/SoilLayerCurveDataService_pb2.py +52 -0
- rsseismic/generatedFiles/SoilLayerCurveDataService_pb2.pyi +150 -0
- rsseismic/generatedFiles/SoilLayerCurveDataService_pb2_grpc.py +280 -0
- rsseismic/generatedFiles/SoilLayerDataService_pb2.py +27 -0
- rsseismic/generatedFiles/SoilLayerDataService_pb2.pyi +5 -0
- rsseismic/generatedFiles/SoilLayerDataService_pb2_grpc.py +231 -0
- rsseismic/generatedFiles/SoilLayerService_pb2.py +46 -0
- rsseismic/generatedFiles/SoilLayerService_pb2.pyi +122 -0
- rsseismic/generatedFiles/SoilLayerService_pb2_grpc.py +317 -0
- rsseismic/generatedFiles/__init__.py +4 -0
- rsseismic/properties/_PropertyAccessor.py +151 -0
- rsseismic/properties/__init__.py +6 -0
- rsseismic/properties/bedrockLayer/__init__.py +1 -0
- rsseismic/properties/bedrockLayer/_generated.py +127 -0
- rsseismic/properties/meanProfileSoilLayer/__init__.py +1 -0
- rsseismic/properties/meanProfileSoilLayer/_generated.py +87 -0
- rsseismic/properties/profileGenerationSettings/__init__.py +1 -0
- rsseismic/properties/profileGenerationSettings/_generated.py +195 -0
- rsseismic/properties/projectSettings/__init__.py +1 -0
- rsseismic/properties/projectSettings/_generated.py +270 -0
- rsseismic/properties/referenceCurve/__init__.py +1 -0
- rsseismic/properties/referenceCurve/_generated.py +264 -0
- rsseismic/properties/soilLayer/__init__.py +1 -0
- rsseismic/properties/soilLayer/_generated.py +523 -0
- rsseismic/types.py +311 -0
- rsseismicscripting-3.0.0.dist-info/METADATA +88 -0
- rsseismicscripting-3.0.0.dist-info/RECORD +94 -0
- rsseismicscripting-3.0.0.dist-info/WHEEL +5 -0
- rsseismicscripting-3.0.0.dist-info/licenses/License.txt +20 -0
- rsseismicscripting-3.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"""Generated enum types mirroring DeepSoil file-model enums."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import enum
|
|
6
|
+
|
|
7
|
+
from . import _generated as _generated_module
|
|
8
|
+
from .fitting_procedure import FittingProcedureModel
|
|
9
|
+
|
|
10
|
+
__all__ = sorted(
|
|
11
|
+
{
|
|
12
|
+
*(
|
|
13
|
+
name
|
|
14
|
+
for name in dir(_generated_module)
|
|
15
|
+
if not name.startswith("_")
|
|
16
|
+
and isinstance(obj := getattr(_generated_module, name), type)
|
|
17
|
+
and issubclass(obj, enum.Enum)
|
|
18
|
+
),
|
|
19
|
+
"FittingProcedureModel",
|
|
20
|
+
}
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
from ._generated import * # noqa: F403
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Generated by RSSeismicRPCBinder. Do not edit.
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
from enum import Enum
|
|
5
|
+
|
|
6
|
+
class AnalysisMode(str, Enum):
|
|
7
|
+
"""Python mirror of DeepSoilFile.eAnalysisMode."""
|
|
8
|
+
Linear = "Linear"
|
|
9
|
+
EquivalentLinear = "EquivalentLinear"
|
|
10
|
+
Nonlinear = "Nonlinear"
|
|
11
|
+
|
|
12
|
+
class ComplexShearModulusFormulation(str, Enum):
|
|
13
|
+
"""Python mirror of DeepSoilFile.eComplexShearModulusFormulation."""
|
|
14
|
+
FREQUENCY_INDEPENDENT = "FREQUENCY_INDEPENDENT"
|
|
15
|
+
FREQUENCY_DEPENDENT = "FREQUENCY_DEPENDENT"
|
|
16
|
+
SIMPLIFIED = "SIMPLIFIED"
|
|
17
|
+
|
|
18
|
+
class CurveModel(str, Enum):
|
|
19
|
+
"""Python mirror of DeepSoilFile.eCurveModel."""
|
|
20
|
+
None_ = "None"
|
|
21
|
+
Amir_Faryar_2016 = "Amir_Faryar_2016"
|
|
22
|
+
Andrus_2003 = "Andrus_2003"
|
|
23
|
+
Darendeli_2001 = "Darendeli_2001"
|
|
24
|
+
Menq_2003 = "Menq_2003"
|
|
25
|
+
Roblee_Chiou_2004 = "Roblee_Chiou_2004"
|
|
26
|
+
Seed_Idriss_Upper_Limit = "Seed_Idriss_Upper_Limit"
|
|
27
|
+
Seed_Idriss_Mean = "Seed_Idriss_Mean"
|
|
28
|
+
Seed_Idriss_Lower_Limit = "Seed_Idriss_Lower_Limit"
|
|
29
|
+
Zhang_2005 = "Zhang_2005"
|
|
30
|
+
Vucetic_Dobry_1991 = "Vucetic_Dobry_1991"
|
|
31
|
+
|
|
32
|
+
class HystereticFormulation(str, Enum):
|
|
33
|
+
"""Python mirror of DeepSoilFile.eHystereticFormulation."""
|
|
34
|
+
NonMasing = "NonMasing"
|
|
35
|
+
Masing = "Masing"
|
|
36
|
+
|
|
37
|
+
class InputMotionConfiguration(str, Enum):
|
|
38
|
+
"""Python mirror of DeepSoilFile.eInputMotionConfiguration."""
|
|
39
|
+
UniDirectional = "UniDirectional"
|
|
40
|
+
BiDirectional = "BiDirectional"
|
|
41
|
+
|
|
42
|
+
class IntegrationScheme(str, Enum):
|
|
43
|
+
"""Python mirror of DeepSoilFile.eIntegrationScheme."""
|
|
44
|
+
IMPLICIT_NEWMARK = "IMPLICIT_NEWMARK"
|
|
45
|
+
EXPLICIT_HEUN = "EXPLICIT_HEUN"
|
|
46
|
+
|
|
47
|
+
class LayerOutputSetting(str, Enum):
|
|
48
|
+
"""Python mirror of DeepSoilFile.eLayerOutputSetting."""
|
|
49
|
+
SURFACE_ONLY = "SURFACE_ONLY"
|
|
50
|
+
ALL_LAYERS = "ALL_LAYERS"
|
|
51
|
+
SPECIFIC_DEPTH = "SPECIFIC_DEPTH"
|
|
52
|
+
SPECIFIC_LAYERS = "SPECIFIC_LAYERS"
|
|
53
|
+
|
|
54
|
+
class PWPModel(str, Enum):
|
|
55
|
+
"""Python mirror of DeepSoilFile.ePWPModel."""
|
|
56
|
+
Sand_Vucetic_Dobry = "Sand_Vucetic_Dobry"
|
|
57
|
+
Clay_Matasovic = "Clay_Matasovic"
|
|
58
|
+
Sand_GMP = "Sand_GMP"
|
|
59
|
+
Sand_Park_Ahn = "Sand_Park_Ahn"
|
|
60
|
+
General_Berrill_Davis = "General_Berrill_Davis"
|
|
61
|
+
None_ = "None"
|
|
62
|
+
|
|
63
|
+
class ReductionFactorFormulation(str, Enum):
|
|
64
|
+
"""Python mirror of DeepSoilFile.eReductionFactorFormulation."""
|
|
65
|
+
MRDF_UIUC = "MRDF_UIUC"
|
|
66
|
+
MRDF_Darendeli = "MRDF_Darendeli"
|
|
67
|
+
None_ = "None"
|
|
68
|
+
|
|
69
|
+
class SoilModel(str, Enum):
|
|
70
|
+
"""Python mirror of DeepSoilFile.eSoilModel."""
|
|
71
|
+
GQ_H = "GQ_H"
|
|
72
|
+
MKZ = "MKZ"
|
|
73
|
+
Linear = "Linear"
|
|
74
|
+
Points = "Points"
|
|
75
|
+
Yee = "Yee"
|
|
76
|
+
|
|
77
|
+
class SoilType(str, Enum):
|
|
78
|
+
"""Python mirror of DeepSoilFile.eSoilType."""
|
|
79
|
+
Sand = "Sand"
|
|
80
|
+
Clay = "Clay"
|
|
81
|
+
UserDefined = "UserDefined"
|
|
82
|
+
|
|
83
|
+
class SolutionType(str, Enum):
|
|
84
|
+
"""Python mirror of DeepSoilFile.eSolutionType."""
|
|
85
|
+
FrequencyDomain = "FrequencyDomain"
|
|
86
|
+
TimeDomain = "TimeDomain"
|
|
87
|
+
StrainDomain = "StrainDomain"
|
|
88
|
+
|
|
89
|
+
class SolverType(str, Enum):
|
|
90
|
+
"""Python mirror of DeepSoilFile.eSolverType."""
|
|
91
|
+
LumpedMassModel = "LumpedMassModel"
|
|
92
|
+
FiniteElementMethod = "FiniteElementMethod"
|
|
93
|
+
|
|
94
|
+
class StepControl(str, Enum):
|
|
95
|
+
"""Python mirror of DeepSoilFile.eStepControl."""
|
|
96
|
+
FLEXIBLE = "FLEXIBLE"
|
|
97
|
+
FIXED = "FIXED"
|
|
98
|
+
|
|
99
|
+
class TimeHistoryInterpolationMethod(str, Enum):
|
|
100
|
+
"""Python mirror of DeepSoilFile.eTimeHistoryInterpolationMethod."""
|
|
101
|
+
LINEAR = "LINEAR"
|
|
102
|
+
ZERO_PADDED = "ZERO_PADDED"
|
|
103
|
+
|
|
104
|
+
class VaryWithDepthOption(str, Enum):
|
|
105
|
+
"""Python mirror of DeepSoilFile.eVaryWithDepthOption."""
|
|
106
|
+
Constant_Value = "Constant_Value"
|
|
107
|
+
Vary_With_Depth = "Vary_With_Depth"
|
|
108
|
+
|
|
109
|
+
class VelocityRandInputMethod(str, Enum):
|
|
110
|
+
"""Python mirror of DeepSoilFile.eVelocityRandInputMethod."""
|
|
111
|
+
GeomatrixAB = "GeomatrixAB"
|
|
112
|
+
GeomatrixCD = "GeomatrixCD"
|
|
113
|
+
USGSAB = "USGSAB"
|
|
114
|
+
USGSCD = "USGSCD"
|
|
115
|
+
USGSA = "USGSA"
|
|
116
|
+
USGSB = "USGSB"
|
|
117
|
+
USGSC = "USGSC"
|
|
118
|
+
USGSD = "USGSD"
|
|
119
|
+
UserDefined = "UserDefined"
|
|
120
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Public enum for soil-layer curve fitting procedures."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from enum import Enum
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FittingProcedureModel(str, Enum):
|
|
9
|
+
"""Curve fitting procedure for ``SoilLayerCurve.runCurveFit``."""
|
|
10
|
+
|
|
11
|
+
MRF = "MRF"
|
|
12
|
+
MRDF = "MRDF"
|
|
13
|
+
DF = "DF"
|
|
14
|
+
MRDF_UIUC = "MRDF_UIUC"
|
|
15
|
+
MRDF_Darendeli = "MRDF_Derendeli"
|
rsseismic/exceptions.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"""Shared exceptions for RSSeismic scripting RPC failures."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ScriptingError(RuntimeError):
|
|
7
|
+
"""Raised when the RSSeismic gRPC server returns a failed operation response."""
|
|
8
|
+
|
|
9
|
+
def __init__(self, message: str):
|
|
10
|
+
super().__init__(message)
|
|
11
|
+
self.message = message
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: ApplicationService.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
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
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18\x41pplicationService.proto\x12\x1c\x41pplicationServiceDefinition\"\r\n\x0bPingRequest\"\x0e\n\x0cPingResponse\"#\n\x0fOpenFileRequest\x12\x10\n\x08\x66ileName\x18\x01 \x01(\t\"J\n\x10OpenFileResponse\x12\x0f\n\x07modelID\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x14\n\x0c\x65rrorMessage\x18\x03 \x01(\t\"\x13\n\x11NewProjectRequest\"6\n\x12NewProjectResponse\x12\x0f\n\x07modelID\x18\x01 \x01(\t\x12\x0f\n\x07success\x18\x02 \x01(\x08\"!\n\x1fGetMaxConcurrentAnalysesRequest\"A\n GetMaxConcurrentAnalysesResponse\x12\x1d\n\x15maxConcurrentAnalyses\x18\x01 \x01(\x05\"@\n\x1fSetMaxConcurrentAnalysesRequest\x12\x1d\n\x15maxConcurrentAnalyses\x18\x01 \x01(\x05\"h\n SetMaxConcurrentAnalysesResponse\x12\x0f\n\x07success\x18\x01 \x01(\x08\x12\x14\n\x0c\x65rrorMessage\x18\x02 \x01(\t\x12\x1d\n\x15maxConcurrentAnalyses\x18\x03 \x01(\x05\x32\x87\x05\n\x12\x41pplicationService\x12i\n\x08OpenFile\x12-.ApplicationServiceDefinition.OpenFileRequest\x1a..ApplicationServiceDefinition.OpenFileResponse\x12o\n\nNewProject\x12/.ApplicationServiceDefinition.NewProjectRequest\x1a\x30.ApplicationServiceDefinition.NewProjectResponse\x12]\n\x04Ping\x12).ApplicationServiceDefinition.PingRequest\x1a*.ApplicationServiceDefinition.PingResponse\x12\x99\x01\n\x18GetMaxConcurrentAnalyses\x12=.ApplicationServiceDefinition.GetMaxConcurrentAnalysesRequest\x1a>.ApplicationServiceDefinition.GetMaxConcurrentAnalysesResponse\x12\x99\x01\n\x18SetMaxConcurrentAnalyses\x12=.ApplicationServiceDefinition.SetMaxConcurrentAnalysesRequest\x1a>.ApplicationServiceDefinition.SetMaxConcurrentAnalysesResponseb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ApplicationService_pb2', _globals)
|
|
22
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
23
|
+
DESCRIPTOR._loaded_options = None
|
|
24
|
+
_globals['_PINGREQUEST']._serialized_start=58
|
|
25
|
+
_globals['_PINGREQUEST']._serialized_end=71
|
|
26
|
+
_globals['_PINGRESPONSE']._serialized_start=73
|
|
27
|
+
_globals['_PINGRESPONSE']._serialized_end=87
|
|
28
|
+
_globals['_OPENFILEREQUEST']._serialized_start=89
|
|
29
|
+
_globals['_OPENFILEREQUEST']._serialized_end=124
|
|
30
|
+
_globals['_OPENFILERESPONSE']._serialized_start=126
|
|
31
|
+
_globals['_OPENFILERESPONSE']._serialized_end=200
|
|
32
|
+
_globals['_NEWPROJECTREQUEST']._serialized_start=202
|
|
33
|
+
_globals['_NEWPROJECTREQUEST']._serialized_end=221
|
|
34
|
+
_globals['_NEWPROJECTRESPONSE']._serialized_start=223
|
|
35
|
+
_globals['_NEWPROJECTRESPONSE']._serialized_end=277
|
|
36
|
+
_globals['_GETMAXCONCURRENTANALYSESREQUEST']._serialized_start=279
|
|
37
|
+
_globals['_GETMAXCONCURRENTANALYSESREQUEST']._serialized_end=312
|
|
38
|
+
_globals['_GETMAXCONCURRENTANALYSESRESPONSE']._serialized_start=314
|
|
39
|
+
_globals['_GETMAXCONCURRENTANALYSESRESPONSE']._serialized_end=379
|
|
40
|
+
_globals['_SETMAXCONCURRENTANALYSESREQUEST']._serialized_start=381
|
|
41
|
+
_globals['_SETMAXCONCURRENTANALYSESREQUEST']._serialized_end=445
|
|
42
|
+
_globals['_SETMAXCONCURRENTANALYSESRESPONSE']._serialized_start=447
|
|
43
|
+
_globals['_SETMAXCONCURRENTANALYSESRESPONSE']._serialized_end=551
|
|
44
|
+
_globals['_APPLICATIONSERVICE']._serialized_start=554
|
|
45
|
+
_globals['_APPLICATIONSERVICE']._serialized_end=1201
|
|
46
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from google.protobuf import descriptor as _descriptor
|
|
2
|
+
from google.protobuf import message as _message
|
|
3
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
4
|
+
|
|
5
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
6
|
+
|
|
7
|
+
class PingRequest(_message.Message):
|
|
8
|
+
__slots__ = ()
|
|
9
|
+
def __init__(self) -> None: ...
|
|
10
|
+
|
|
11
|
+
class PingResponse(_message.Message):
|
|
12
|
+
__slots__ = ()
|
|
13
|
+
def __init__(self) -> None: ...
|
|
14
|
+
|
|
15
|
+
class OpenFileRequest(_message.Message):
|
|
16
|
+
__slots__ = ("fileName",)
|
|
17
|
+
FILENAME_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
fileName: str
|
|
19
|
+
def __init__(self, fileName: _Optional[str] = ...) -> None: ...
|
|
20
|
+
|
|
21
|
+
class OpenFileResponse(_message.Message):
|
|
22
|
+
__slots__ = ("modelID", "success", "errorMessage")
|
|
23
|
+
MODELID_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
ERRORMESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
modelID: str
|
|
27
|
+
success: bool
|
|
28
|
+
errorMessage: str
|
|
29
|
+
def __init__(self, modelID: _Optional[str] = ..., success: bool = ..., errorMessage: _Optional[str] = ...) -> None: ...
|
|
30
|
+
|
|
31
|
+
class NewProjectRequest(_message.Message):
|
|
32
|
+
__slots__ = ()
|
|
33
|
+
def __init__(self) -> None: ...
|
|
34
|
+
|
|
35
|
+
class NewProjectResponse(_message.Message):
|
|
36
|
+
__slots__ = ("modelID", "success")
|
|
37
|
+
MODELID_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
modelID: str
|
|
40
|
+
success: bool
|
|
41
|
+
def __init__(self, modelID: _Optional[str] = ..., success: bool = ...) -> None: ...
|
|
42
|
+
|
|
43
|
+
class GetMaxConcurrentAnalysesRequest(_message.Message):
|
|
44
|
+
__slots__ = ()
|
|
45
|
+
def __init__(self) -> None: ...
|
|
46
|
+
|
|
47
|
+
class GetMaxConcurrentAnalysesResponse(_message.Message):
|
|
48
|
+
__slots__ = ("maxConcurrentAnalyses",)
|
|
49
|
+
MAXCONCURRENTANALYSES_FIELD_NUMBER: _ClassVar[int]
|
|
50
|
+
maxConcurrentAnalyses: int
|
|
51
|
+
def __init__(self, maxConcurrentAnalyses: _Optional[int] = ...) -> None: ...
|
|
52
|
+
|
|
53
|
+
class SetMaxConcurrentAnalysesRequest(_message.Message):
|
|
54
|
+
__slots__ = ("maxConcurrentAnalyses",)
|
|
55
|
+
MAXCONCURRENTANALYSES_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
maxConcurrentAnalyses: int
|
|
57
|
+
def __init__(self, maxConcurrentAnalyses: _Optional[int] = ...) -> None: ...
|
|
58
|
+
|
|
59
|
+
class SetMaxConcurrentAnalysesResponse(_message.Message):
|
|
60
|
+
__slots__ = ("success", "errorMessage", "maxConcurrentAnalyses")
|
|
61
|
+
SUCCESS_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
ERRORMESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
MAXCONCURRENTANALYSES_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
success: bool
|
|
65
|
+
errorMessage: str
|
|
66
|
+
maxConcurrentAnalyses: int
|
|
67
|
+
def __init__(self, success: bool = ..., errorMessage: _Optional[str] = ..., maxConcurrentAnalyses: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,274 @@
|
|
|
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
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
import ApplicationService_pb2 as ApplicationService__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.64.1'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
EXPECTED_ERROR_RELEASE = '1.65.0'
|
|
11
|
+
SCHEDULED_RELEASE_DATE = 'June 25, 2024'
|
|
12
|
+
_version_not_supported = False
|
|
13
|
+
|
|
14
|
+
try:
|
|
15
|
+
from grpc._utilities import first_version_is_lower
|
|
16
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
17
|
+
except ImportError:
|
|
18
|
+
_version_not_supported = True
|
|
19
|
+
|
|
20
|
+
if _version_not_supported:
|
|
21
|
+
warnings.warn(
|
|
22
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
23
|
+
+ f' but the generated code in ApplicationService_pb2_grpc.py depends on'
|
|
24
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
25
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
26
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
27
|
+
+ f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
|
|
28
|
+
+ f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
|
|
29
|
+
RuntimeWarning
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class ApplicationServiceStub(object):
|
|
34
|
+
"""Missing associated documentation comment in .proto file."""
|
|
35
|
+
|
|
36
|
+
def __init__(self, channel):
|
|
37
|
+
"""Constructor.
|
|
38
|
+
|
|
39
|
+
Args:
|
|
40
|
+
channel: A grpc.Channel.
|
|
41
|
+
"""
|
|
42
|
+
self.OpenFile = channel.unary_unary(
|
|
43
|
+
'/ApplicationServiceDefinition.ApplicationService/OpenFile',
|
|
44
|
+
request_serializer=ApplicationService__pb2.OpenFileRequest.SerializeToString,
|
|
45
|
+
response_deserializer=ApplicationService__pb2.OpenFileResponse.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.NewProject = channel.unary_unary(
|
|
48
|
+
'/ApplicationServiceDefinition.ApplicationService/NewProject',
|
|
49
|
+
request_serializer=ApplicationService__pb2.NewProjectRequest.SerializeToString,
|
|
50
|
+
response_deserializer=ApplicationService__pb2.NewProjectResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.Ping = channel.unary_unary(
|
|
53
|
+
'/ApplicationServiceDefinition.ApplicationService/Ping',
|
|
54
|
+
request_serializer=ApplicationService__pb2.PingRequest.SerializeToString,
|
|
55
|
+
response_deserializer=ApplicationService__pb2.PingResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
self.GetMaxConcurrentAnalyses = channel.unary_unary(
|
|
58
|
+
'/ApplicationServiceDefinition.ApplicationService/GetMaxConcurrentAnalyses',
|
|
59
|
+
request_serializer=ApplicationService__pb2.GetMaxConcurrentAnalysesRequest.SerializeToString,
|
|
60
|
+
response_deserializer=ApplicationService__pb2.GetMaxConcurrentAnalysesResponse.FromString,
|
|
61
|
+
_registered_method=True)
|
|
62
|
+
self.SetMaxConcurrentAnalyses = channel.unary_unary(
|
|
63
|
+
'/ApplicationServiceDefinition.ApplicationService/SetMaxConcurrentAnalyses',
|
|
64
|
+
request_serializer=ApplicationService__pb2.SetMaxConcurrentAnalysesRequest.SerializeToString,
|
|
65
|
+
response_deserializer=ApplicationService__pb2.SetMaxConcurrentAnalysesResponse.FromString,
|
|
66
|
+
_registered_method=True)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
class ApplicationServiceServicer(object):
|
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
|
71
|
+
|
|
72
|
+
def OpenFile(self, request, context):
|
|
73
|
+
"""Missing associated documentation comment in .proto file."""
|
|
74
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
|
+
context.set_details('Method not implemented!')
|
|
76
|
+
raise NotImplementedError('Method not implemented!')
|
|
77
|
+
|
|
78
|
+
def NewProject(self, request, context):
|
|
79
|
+
"""Missing associated documentation comment in .proto file."""
|
|
80
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
81
|
+
context.set_details('Method not implemented!')
|
|
82
|
+
raise NotImplementedError('Method not implemented!')
|
|
83
|
+
|
|
84
|
+
def Ping(self, request, context):
|
|
85
|
+
"""Missing associated documentation comment in .proto file."""
|
|
86
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
87
|
+
context.set_details('Method not implemented!')
|
|
88
|
+
raise NotImplementedError('Method not implemented!')
|
|
89
|
+
|
|
90
|
+
def GetMaxConcurrentAnalyses(self, request, context):
|
|
91
|
+
"""Missing associated documentation comment in .proto file."""
|
|
92
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
93
|
+
context.set_details('Method not implemented!')
|
|
94
|
+
raise NotImplementedError('Method not implemented!')
|
|
95
|
+
|
|
96
|
+
def SetMaxConcurrentAnalyses(self, request, context):
|
|
97
|
+
"""Missing associated documentation comment in .proto file."""
|
|
98
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
99
|
+
context.set_details('Method not implemented!')
|
|
100
|
+
raise NotImplementedError('Method not implemented!')
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def add_ApplicationServiceServicer_to_server(servicer, server):
|
|
104
|
+
rpc_method_handlers = {
|
|
105
|
+
'OpenFile': grpc.unary_unary_rpc_method_handler(
|
|
106
|
+
servicer.OpenFile,
|
|
107
|
+
request_deserializer=ApplicationService__pb2.OpenFileRequest.FromString,
|
|
108
|
+
response_serializer=ApplicationService__pb2.OpenFileResponse.SerializeToString,
|
|
109
|
+
),
|
|
110
|
+
'NewProject': grpc.unary_unary_rpc_method_handler(
|
|
111
|
+
servicer.NewProject,
|
|
112
|
+
request_deserializer=ApplicationService__pb2.NewProjectRequest.FromString,
|
|
113
|
+
response_serializer=ApplicationService__pb2.NewProjectResponse.SerializeToString,
|
|
114
|
+
),
|
|
115
|
+
'Ping': grpc.unary_unary_rpc_method_handler(
|
|
116
|
+
servicer.Ping,
|
|
117
|
+
request_deserializer=ApplicationService__pb2.PingRequest.FromString,
|
|
118
|
+
response_serializer=ApplicationService__pb2.PingResponse.SerializeToString,
|
|
119
|
+
),
|
|
120
|
+
'GetMaxConcurrentAnalyses': grpc.unary_unary_rpc_method_handler(
|
|
121
|
+
servicer.GetMaxConcurrentAnalyses,
|
|
122
|
+
request_deserializer=ApplicationService__pb2.GetMaxConcurrentAnalysesRequest.FromString,
|
|
123
|
+
response_serializer=ApplicationService__pb2.GetMaxConcurrentAnalysesResponse.SerializeToString,
|
|
124
|
+
),
|
|
125
|
+
'SetMaxConcurrentAnalyses': grpc.unary_unary_rpc_method_handler(
|
|
126
|
+
servicer.SetMaxConcurrentAnalyses,
|
|
127
|
+
request_deserializer=ApplicationService__pb2.SetMaxConcurrentAnalysesRequest.FromString,
|
|
128
|
+
response_serializer=ApplicationService__pb2.SetMaxConcurrentAnalysesResponse.SerializeToString,
|
|
129
|
+
),
|
|
130
|
+
}
|
|
131
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
132
|
+
'ApplicationServiceDefinition.ApplicationService', rpc_method_handlers)
|
|
133
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
134
|
+
server.add_registered_method_handlers('ApplicationServiceDefinition.ApplicationService', rpc_method_handlers)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
# This class is part of an EXPERIMENTAL API.
|
|
138
|
+
class ApplicationService(object):
|
|
139
|
+
"""Missing associated documentation comment in .proto file."""
|
|
140
|
+
|
|
141
|
+
@staticmethod
|
|
142
|
+
def OpenFile(request,
|
|
143
|
+
target,
|
|
144
|
+
options=(),
|
|
145
|
+
channel_credentials=None,
|
|
146
|
+
call_credentials=None,
|
|
147
|
+
insecure=False,
|
|
148
|
+
compression=None,
|
|
149
|
+
wait_for_ready=None,
|
|
150
|
+
timeout=None,
|
|
151
|
+
metadata=None):
|
|
152
|
+
return grpc.experimental.unary_unary(
|
|
153
|
+
request,
|
|
154
|
+
target,
|
|
155
|
+
'/ApplicationServiceDefinition.ApplicationService/OpenFile',
|
|
156
|
+
ApplicationService__pb2.OpenFileRequest.SerializeToString,
|
|
157
|
+
ApplicationService__pb2.OpenFileResponse.FromString,
|
|
158
|
+
options,
|
|
159
|
+
channel_credentials,
|
|
160
|
+
insecure,
|
|
161
|
+
call_credentials,
|
|
162
|
+
compression,
|
|
163
|
+
wait_for_ready,
|
|
164
|
+
timeout,
|
|
165
|
+
metadata,
|
|
166
|
+
_registered_method=True)
|
|
167
|
+
|
|
168
|
+
@staticmethod
|
|
169
|
+
def NewProject(request,
|
|
170
|
+
target,
|
|
171
|
+
options=(),
|
|
172
|
+
channel_credentials=None,
|
|
173
|
+
call_credentials=None,
|
|
174
|
+
insecure=False,
|
|
175
|
+
compression=None,
|
|
176
|
+
wait_for_ready=None,
|
|
177
|
+
timeout=None,
|
|
178
|
+
metadata=None):
|
|
179
|
+
return grpc.experimental.unary_unary(
|
|
180
|
+
request,
|
|
181
|
+
target,
|
|
182
|
+
'/ApplicationServiceDefinition.ApplicationService/NewProject',
|
|
183
|
+
ApplicationService__pb2.NewProjectRequest.SerializeToString,
|
|
184
|
+
ApplicationService__pb2.NewProjectResponse.FromString,
|
|
185
|
+
options,
|
|
186
|
+
channel_credentials,
|
|
187
|
+
insecure,
|
|
188
|
+
call_credentials,
|
|
189
|
+
compression,
|
|
190
|
+
wait_for_ready,
|
|
191
|
+
timeout,
|
|
192
|
+
metadata,
|
|
193
|
+
_registered_method=True)
|
|
194
|
+
|
|
195
|
+
@staticmethod
|
|
196
|
+
def Ping(request,
|
|
197
|
+
target,
|
|
198
|
+
options=(),
|
|
199
|
+
channel_credentials=None,
|
|
200
|
+
call_credentials=None,
|
|
201
|
+
insecure=False,
|
|
202
|
+
compression=None,
|
|
203
|
+
wait_for_ready=None,
|
|
204
|
+
timeout=None,
|
|
205
|
+
metadata=None):
|
|
206
|
+
return grpc.experimental.unary_unary(
|
|
207
|
+
request,
|
|
208
|
+
target,
|
|
209
|
+
'/ApplicationServiceDefinition.ApplicationService/Ping',
|
|
210
|
+
ApplicationService__pb2.PingRequest.SerializeToString,
|
|
211
|
+
ApplicationService__pb2.PingResponse.FromString,
|
|
212
|
+
options,
|
|
213
|
+
channel_credentials,
|
|
214
|
+
insecure,
|
|
215
|
+
call_credentials,
|
|
216
|
+
compression,
|
|
217
|
+
wait_for_ready,
|
|
218
|
+
timeout,
|
|
219
|
+
metadata,
|
|
220
|
+
_registered_method=True)
|
|
221
|
+
|
|
222
|
+
@staticmethod
|
|
223
|
+
def GetMaxConcurrentAnalyses(request,
|
|
224
|
+
target,
|
|
225
|
+
options=(),
|
|
226
|
+
channel_credentials=None,
|
|
227
|
+
call_credentials=None,
|
|
228
|
+
insecure=False,
|
|
229
|
+
compression=None,
|
|
230
|
+
wait_for_ready=None,
|
|
231
|
+
timeout=None,
|
|
232
|
+
metadata=None):
|
|
233
|
+
return grpc.experimental.unary_unary(
|
|
234
|
+
request,
|
|
235
|
+
target,
|
|
236
|
+
'/ApplicationServiceDefinition.ApplicationService/GetMaxConcurrentAnalyses',
|
|
237
|
+
ApplicationService__pb2.GetMaxConcurrentAnalysesRequest.SerializeToString,
|
|
238
|
+
ApplicationService__pb2.GetMaxConcurrentAnalysesResponse.FromString,
|
|
239
|
+
options,
|
|
240
|
+
channel_credentials,
|
|
241
|
+
insecure,
|
|
242
|
+
call_credentials,
|
|
243
|
+
compression,
|
|
244
|
+
wait_for_ready,
|
|
245
|
+
timeout,
|
|
246
|
+
metadata,
|
|
247
|
+
_registered_method=True)
|
|
248
|
+
|
|
249
|
+
@staticmethod
|
|
250
|
+
def SetMaxConcurrentAnalyses(request,
|
|
251
|
+
target,
|
|
252
|
+
options=(),
|
|
253
|
+
channel_credentials=None,
|
|
254
|
+
call_credentials=None,
|
|
255
|
+
insecure=False,
|
|
256
|
+
compression=None,
|
|
257
|
+
wait_for_ready=None,
|
|
258
|
+
timeout=None,
|
|
259
|
+
metadata=None):
|
|
260
|
+
return grpc.experimental.unary_unary(
|
|
261
|
+
request,
|
|
262
|
+
target,
|
|
263
|
+
'/ApplicationServiceDefinition.ApplicationService/SetMaxConcurrentAnalyses',
|
|
264
|
+
ApplicationService__pb2.SetMaxConcurrentAnalysesRequest.SerializeToString,
|
|
265
|
+
ApplicationService__pb2.SetMaxConcurrentAnalysesResponse.FromString,
|
|
266
|
+
options,
|
|
267
|
+
channel_credentials,
|
|
268
|
+
insecure,
|
|
269
|
+
call_credentials,
|
|
270
|
+
compression,
|
|
271
|
+
wait_for_ready,
|
|
272
|
+
timeout,
|
|
273
|
+
metadata,
|
|
274
|
+
_registered_method=True)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: BedrockLayerDataService.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
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
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
import CommonMessages_pb2 as CommonMessages__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x42\x65\x64rockLayerDataService.proto\x12!BedrockLayerDataServiceDefinition\x1a\x14\x43ommonMessages.proto2\x8b\x03\n\x17\x42\x65\x64rockLayerDataService\x12_\n\x0bSetProperty\x12+.CommonMessages.SetPropertyInProjectRequest\x1a#.CommonMessages.SetPropertyResponse\x12_\n\x0bGetProperty\x12+.CommonMessages.GetPropertyInProjectRequest\x1a#.CommonMessages.GetPropertyResponse\x12V\n\x08SetColor\x12(.CommonMessages.SetColorInProjectRequest\x1a .CommonMessages.SetColorResponse\x12V\n\x08GetColor\x12(.CommonMessages.GetColorInProjectRequest\x1a .CommonMessages.GetColorResponseb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'BedrockLayerDataService_pb2', _globals)
|
|
23
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
24
|
+
DESCRIPTOR._loaded_options = None
|
|
25
|
+
_globals['_BEDROCKLAYERDATASERVICE']._serialized_start=91
|
|
26
|
+
_globals['_BEDROCKLAYERDATASERVICE']._serialized_end=486
|
|
27
|
+
# @@protoc_insertion_point(module_scope)
|