File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ syntax = "proto3" ;
2+ package ansys.api.acp.v0.sensor ;
3+
4+ import "ansys/api/acp/v0/base.proto" ;
5+ import "ansys/api/acp/v0/enum_types.proto" ;
6+ import "ansys/api/acp/v0/array_types.proto" ;
7+
8+ enum SensorType {
9+ SENSOR_BY_AREA = 0 ;
10+ SENSOR_BY_MATERIAL = 1 ;
11+ SENSOR_BY_PLIES = 2 ;
12+ SENSOR_BY_SOLID_MODEL = 3 ;
13+ }
14+
15+ message Properties {
16+ enum_types.StatusType status = 1 ;
17+ bool locked = 2 ;
18+ SensorType sensor_type = 3 ;
19+ bool active = 4 ;
20+ repeated base.ResourcePath entities = 5 ;
21+ optional double covered_area = 6 ;
22+ optional double modeling_ply_area = 7 ;
23+ optional double production_ply_area = 8 ;
24+ optional double price = 9 ;
25+ optional double weight = 10 ;
26+ optional array_types.DoubleArray center_of_gravity = 11 ;
27+ }
28+
29+ message ObjectInfo {
30+ base.BasicInfo info = 1 ;
31+ Properties properties = 2 ;
32+ }
33+
34+ message ListReply { repeated ObjectInfo objects = 1 ; }
35+
36+ message CreateRequest {
37+ base.CollectionPath collection_path = 1 ;
38+ string name = 2 ;
39+ Properties properties = 3 ;
40+ }
41+
42+ service ObjectService {
43+ rpc List (base .ListRequest ) returns (ListReply );
44+
45+ rpc Get (base .GetRequest ) returns (ObjectInfo );
46+
47+ rpc Put (ObjectInfo ) returns (ObjectInfo );
48+
49+ rpc Delete (base .DeleteRequest ) returns (base .Empty );
50+
51+ rpc Create (CreateRequest ) returns (ObjectInfo );
52+ }
You can’t perform that action at this time.
0 commit comments