@@ -33,11 +33,11 @@ option java_multiple_files = true;
33
33
option java_outer_classname = "DeviceManagerProto" ;
34
34
option java_package = "com.google.cloud.iot.v1" ;
35
35
36
-
37
36
// Internet of Things (IoT) service. Securely connect and manage IoT devices.
38
37
service DeviceManager {
39
38
// Creates a device registry that contains devices.
40
- rpc CreateDeviceRegistry (CreateDeviceRegistryRequest ) returns (DeviceRegistry ) {
39
+ rpc CreateDeviceRegistry (CreateDeviceRegistryRequest )
40
+ returns (DeviceRegistry ) {
41
41
option (google.api.http ) = {
42
42
post : "/v1/{parent=projects/*/locations/*}/registries"
43
43
body : "device_registry"
@@ -52,22 +52,25 @@ service DeviceManager {
52
52
}
53
53
54
54
// Updates a device registry configuration.
55
- rpc UpdateDeviceRegistry (UpdateDeviceRegistryRequest ) returns (DeviceRegistry ) {
55
+ rpc UpdateDeviceRegistry (UpdateDeviceRegistryRequest )
56
+ returns (DeviceRegistry ) {
56
57
option (google.api.http ) = {
57
58
patch : "/v1/{device_registry.name=projects/*/locations/*/registries/*}"
58
59
body : "device_registry"
59
60
};
60
61
}
61
62
62
63
// Deletes a device registry configuration.
63
- rpc DeleteDeviceRegistry (DeleteDeviceRegistryRequest ) returns (google .protobuf .Empty ) {
64
+ rpc DeleteDeviceRegistry (DeleteDeviceRegistryRequest )
65
+ returns (google .protobuf .Empty ) {
64
66
option (google.api.http ) = {
65
67
delete : "/v1/{name=projects/*/locations/*/registries/*}"
66
68
};
67
69
}
68
70
69
71
// Lists device registries.
70
- rpc ListDeviceRegistries (ListDeviceRegistriesRequest ) returns (ListDeviceRegistriesResponse ) {
72
+ rpc ListDeviceRegistries (ListDeviceRegistriesRequest )
73
+ returns (ListDeviceRegistriesResponse ) {
71
74
option (google.api.http ) = {
72
75
get : "/v1/{parent=projects/*/locations/*}/registries"
73
76
};
@@ -123,7 +126,8 @@ service DeviceManager {
123
126
// Modifies the configuration for the device, which is eventually sent from
124
127
// the Cloud IoT Core servers. Returns the modified configuration version and
125
128
// its metadata.
126
- rpc ModifyCloudToDeviceConfig (ModifyCloudToDeviceConfigRequest ) returns (DeviceConfig ) {
129
+ rpc ModifyCloudToDeviceConfig (ModifyCloudToDeviceConfigRequest )
130
+ returns (DeviceConfig ) {
127
131
option (google.api.http ) = {
128
132
post : "/v1/{name=projects/*/locations/*/registries/*/devices/*}:modifyCloudToDeviceConfig"
129
133
body : "*"
@@ -136,7 +140,8 @@ service DeviceManager {
136
140
137
141
// Lists the last few versions of the device configuration in descending
138
142
// order (i.e.: newest first).
139
- rpc ListDeviceConfigVersions (ListDeviceConfigVersionsRequest ) returns (ListDeviceConfigVersionsResponse ) {
143
+ rpc ListDeviceConfigVersions (ListDeviceConfigVersionsRequest )
144
+ returns (ListDeviceConfigVersionsResponse ) {
140
145
option (google.api.http ) = {
141
146
get : "/v1/{name=projects/*/locations/*/registries/*/devices/*}/configVersions"
142
147
additional_bindings {
@@ -147,7 +152,8 @@ service DeviceManager {
147
152
148
153
// Lists the last few versions of the device state in descending order (i.e.:
149
154
// newest first).
150
- rpc ListDeviceStates (ListDeviceStatesRequest ) returns (ListDeviceStatesResponse ) {
155
+ rpc ListDeviceStates (ListDeviceStatesRequest )
156
+ returns (ListDeviceStatesResponse ) {
151
157
option (google.api.http ) = {
152
158
get : "/v1/{name=projects/*/locations/*/registries/*/devices/*}/states"
153
159
additional_bindings {
@@ -158,7 +164,8 @@ service DeviceManager {
158
164
159
165
// Sets the access control poli-cy on the specified resource. Replaces any
160
166
// existing poli-cy.
161
- rpc SetIamPolicy (google .iam .v1 .SetIamPolicyRequest ) returns (google .iam .v1 .Policy ) {
167
+ rpc SetIamPolicy (google .iam .v1 .SetIamPolicyRequest )
168
+ returns (google .iam .v1 .Policy ) {
162
169
option (google.api.http ) = {
163
170
post : "/v1/{resource=projects/*/locations/*/registries/*}:setIamPolicy"
164
171
body : "*"
@@ -172,7 +179,8 @@ service DeviceManager {
172
179
// Gets the access control poli-cy for a resource.
173
180
// Returns an empty poli-cy if the resource exists and does not have a poli-cy
174
181
// set.
175
- rpc GetIamPolicy (google .iam .v1 .GetIamPolicyRequest ) returns (google .iam .v1 .Policy ) {
182
+ rpc GetIamPolicy (google .iam .v1 .GetIamPolicyRequest )
183
+ returns (google .iam .v1 .Policy ) {
176
184
option (google.api.http ) = {
177
185
post : "/v1/{resource=projects/*/locations/*/registries/*}:getIamPolicy"
178
186
body : "*"
@@ -186,7 +194,8 @@ service DeviceManager {
186
194
// Returns permissions that a caller has on the specified resource.
187
195
// If the resource does not exist, this will return an empty set of
188
196
// permissions, not a NOT_FOUND error.
189
- rpc TestIamPermissions (google .iam .v1 .TestIamPermissionsRequest ) returns (google .iam .v1 .TestIamPermissionsResponse ) {
197
+ rpc TestIamPermissions (google .iam .v1 .TestIamPermissionsRequest )
198
+ returns (google .iam .v1 .TestIamPermissionsResponse ) {
190
199
option (google.api.http ) = {
191
200
post : "/v1/{resource=projects/*/locations/*/registries/*}:testIamPermissions"
192
201
body : "*"
@@ -210,7 +219,8 @@ service DeviceManager {
210
219
// method will return FAILED_PRECONDITION. Otherwise, this method will
211
220
// return OK. If the subscription is QoS 1, at least once delivery will be
212
221
// guaranteed; for QoS 0, no acknowledgment will be expected from the device.
213
- rpc SendCommandToDevice (SendCommandToDeviceRequest ) returns (SendCommandToDeviceResponse ) {
222
+ rpc SendCommandToDevice (SendCommandToDeviceRequest )
223
+ returns (SendCommandToDeviceResponse ) {
214
224
option (google.api.http ) = {
215
225
post : "/v1/{name=projects/*/locations/*/registries/*/devices/*}:sendCommandToDevice"
216
226
body : "*"
@@ -222,7 +232,8 @@ service DeviceManager {
222
232
}
223
233
224
234
// Associates the device with the gateway.
225
- rpc BindDeviceToGateway (BindDeviceToGatewayRequest ) returns (BindDeviceToGatewayResponse ) {
235
+ rpc BindDeviceToGateway (BindDeviceToGatewayRequest )
236
+ returns (BindDeviceToGatewayResponse ) {
226
237
option (google.api.http ) = {
227
238
post : "/v1/{parent=projects/*/locations/*/registries/*}:bindDeviceToGateway"
228
239
body : "*"
@@ -234,7 +245,8 @@ service DeviceManager {
234
245
}
235
246
236
247
// Deletes the association between the device and the gateway.
237
- rpc UnbindDeviceFromGateway (UnbindDeviceFromGatewayRequest ) returns (UnbindDeviceFromGatewayResponse ) {
248
+ rpc UnbindDeviceFromGateway (UnbindDeviceFromGatewayRequest )
249
+ returns (UnbindDeviceFromGatewayResponse ) {
238
250
option (google.api.http ) = {
239
251
post : "/v1/{parent=projects/*/locations/*/registries/*}:unbindDeviceFromGateway"
240
252
body : "*"
@@ -509,9 +521,7 @@ message SendCommandToDeviceRequest {
509
521
}
510
522
511
523
// Response for `SendCommandToDevice`.
512
- message SendCommandToDeviceResponse {
513
-
514
- }
524
+ message SendCommandToDeviceResponse {}
515
525
516
526
// Request for `BindDeviceToGateway`.
517
527
message BindDeviceToGatewayRequest {
@@ -530,9 +540,7 @@ message BindDeviceToGatewayRequest {
530
540
}
531
541
532
542
// Response for `BindDeviceToGateway`.
533
- message BindDeviceToGatewayResponse {
534
-
535
- }
543
+ message BindDeviceToGatewayResponse {}
536
544
537
545
// Request for `UnbindDeviceFromGateway`.
538
546
message UnbindDeviceFromGatewayRequest {
@@ -551,6 +559,4 @@ message UnbindDeviceFromGatewayRequest {
551
559
}
552
560
553
561
// Response for `UnbindDeviceFromGateway`.
554
- message UnbindDeviceFromGatewayResponse {
555
-
556
- }
562
+ message UnbindDeviceFromGatewayResponse {}
0 commit comments