@@ -4,54 +4,14 @@ package viam.app.agent.v1;
4
4
5
5
import "google/protobuf/duration.proto" ;
6
6
import "google/protobuf/struct.proto" ;
7
- import "tagger/v1/tagger.proto" ;
8
7
9
8
option go_package = "go.viam.com/api/app/agent/v1" ;
10
9
11
- // AgentService is used by viam-agent to retrieve update info for subsystems.
12
- service AgentAppService {
13
- // GetAgentConfig is for retrieving config in App.
14
- rpc GetAgentConfig (GetAgentConfigRequest ) returns (GetAgentConfigResponse );
15
-
16
- // UpdateAgentConfig is for editing config in App.
17
- rpc UpdateAgentConfig (UpdateAgentConfigRequest ) returns (UpdateAgentConfigResponse );
18
- }
19
-
20
10
service AgentDeviceService {
21
11
// DeviceAgentConfig is for retrieving config by the on-device agent.
22
12
rpc DeviceAgentConfig (DeviceAgentConfigRequest ) returns (DeviceAgentConfigResponse );
23
13
}
24
14
25
- // App side
26
- message GetAgentConfigRequest {
27
- string id = 1 ;
28
- }
29
-
30
- message GetAgentConfigResponse {
31
- AppAgentConfig agent_config = 1 ;
32
- }
33
-
34
- message UpdateAgentConfigRequest {
35
- string id = 1 ;
36
- AppAgentConfig agent_config = 2 ;
37
- }
38
-
39
- message UpdateAgentConfigResponse {
40
- AppAgentConfig agent_config = 1 ;
41
- }
42
-
43
- message AppAgentConfig {
44
- map <string , AppSubsystemConfig > subsystem_configs = 1 [(tagger.v1.tags ) = "bson:\"subsystem_configs\" json:\"subsystem_configs\"" ];
45
- }
46
-
47
- message AppSubsystemConfig {
48
- string release_channel = 1 [(tagger.v1.tags ) = "bson:\"release_channel\" json:\"release_channel\"" ];
49
- string pin_version = 2 [(tagger.v1.tags ) = "bson:\"pin_version\" json:\"pin_version\"" ];
50
- string pin_url = 3 [(tagger.v1.tags ) = "bson:\"pin_url\" json:\"pin_url\"" ];
51
- bool disable_subsystem = 4 [(tagger.v1.tags ) = "bson:\"disable_subsystem\" json:\"disable_subsystem\"" ];
52
- google.protobuf.Struct attributes = 5 [(tagger.v1.tags ) = "bson:\"attributes\" json:\"attributes\"" ];
53
- }
54
-
55
15
// Device side
56
16
message DeviceAgentConfigRequest {
57
17
// robot partID
0 commit comments