Package com.google.cloud.iot.v1
Class DeviceManagerGrpc.DeviceManagerBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<DeviceManagerGrpc.DeviceManagerBlockingStub>
-
- com.google.cloud.iot.v1.DeviceManagerGrpc.DeviceManagerBlockingStub
-
- Enclosing class:
- DeviceManagerGrpc
public static final class DeviceManagerGrpc.DeviceManagerBlockingStub extends io.grpc.stub.AbstractBlockingStub<DeviceManagerGrpc.DeviceManagerBlockingStub>
A stub to allow clients to do synchronous rpc calls to service DeviceManager.Internet of Things (IoT) service. Securely connect and manage IoT devices.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BindDeviceToGatewayResponse
bindDeviceToGateway(BindDeviceToGatewayRequest request)
Associates the device with the gateway.protected DeviceManagerGrpc.DeviceManagerBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
Device
createDevice(CreateDeviceRequest request)
Creates a device in a device registry.DeviceRegistry
createDeviceRegistry(CreateDeviceRegistryRequest request)
Creates a device registry that contains devices.com.google.protobuf.Empty
deleteDevice(DeleteDeviceRequest request)
Deletes a device.com.google.protobuf.Empty
deleteDeviceRegistry(DeleteDeviceRegistryRequest request)
Deletes a device registry configuration.Device
getDevice(GetDeviceRequest request)
Gets details about a device.DeviceRegistry
getDeviceRegistry(GetDeviceRegistryRequest request)
Gets a device registry configuration.com.google.iam.v1.Policy
getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request)
Gets the access control policy for a resource.ListDeviceConfigVersionsResponse
listDeviceConfigVersions(ListDeviceConfigVersionsRequest request)
Lists the last few versions of the device configuration in descending order (i.e.: newest first).ListDeviceRegistriesResponse
listDeviceRegistries(ListDeviceRegistriesRequest request)
Lists device registries.ListDevicesResponse
listDevices(ListDevicesRequest request)
List devices in a device registry.ListDeviceStatesResponse
listDeviceStates(ListDeviceStatesRequest request)
Lists the last few versions of the device state in descending order (i.e.: newest first).DeviceConfig
modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest request)
Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers.SendCommandToDeviceResponse
sendCommandToDevice(SendCommandToDeviceRequest request)
Sends a command to the specified device.com.google.iam.v1.Policy
setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request)
Sets the access control policy on the specified resource.com.google.iam.v1.TestIamPermissionsResponse
testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request)
Returns permissions that a caller has on the specified resource.UnbindDeviceFromGatewayResponse
unbindDeviceFromGateway(UnbindDeviceFromGatewayRequest request)
Deletes the association between the device and the gateway.Device
updateDevice(UpdateDeviceRequest request)
Updates a device.DeviceRegistry
updateDeviceRegistry(UpdateDeviceRegistryRequest request)
Updates a device registry configuration.
-
-
-
Method Detail
-
build
protected DeviceManagerGrpc.DeviceManagerBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<DeviceManagerGrpc.DeviceManagerBlockingStub>
-
createDeviceRegistry
public DeviceRegistry createDeviceRegistry(CreateDeviceRegistryRequest request)
Creates a device registry that contains devices.
-
getDeviceRegistry
public DeviceRegistry getDeviceRegistry(GetDeviceRegistryRequest request)
Gets a device registry configuration.
-
updateDeviceRegistry
public DeviceRegistry updateDeviceRegistry(UpdateDeviceRegistryRequest request)
Updates a device registry configuration.
-
deleteDeviceRegistry
public com.google.protobuf.Empty deleteDeviceRegistry(DeleteDeviceRegistryRequest request)
Deletes a device registry configuration.
-
listDeviceRegistries
public ListDeviceRegistriesResponse listDeviceRegistries(ListDeviceRegistriesRequest request)
Lists device registries.
-
createDevice
public Device createDevice(CreateDeviceRequest request)
Creates a device in a device registry.
-
getDevice
public Device getDevice(GetDeviceRequest request)
Gets details about a device.
-
updateDevice
public Device updateDevice(UpdateDeviceRequest request)
Updates a device.
-
deleteDevice
public com.google.protobuf.Empty deleteDevice(DeleteDeviceRequest request)
Deletes a device.
-
listDevices
public ListDevicesResponse listDevices(ListDevicesRequest request)
List devices in a device registry.
-
modifyCloudToDeviceConfig
public DeviceConfig modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest request)
Modifies the configuration for the device, which is eventually sent from the Cloud IoT Core servers. Returns the modified configuration version and its metadata.
-
listDeviceConfigVersions
public ListDeviceConfigVersionsResponse listDeviceConfigVersions(ListDeviceConfigVersionsRequest request)
Lists the last few versions of the device configuration in descending order (i.e.: newest first).
-
listDeviceStates
public ListDeviceStatesResponse listDeviceStates(ListDeviceStatesRequest request)
Lists the last few versions of the device state in descending order (i.e.: newest first).
-
setIamPolicy
public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request)
Sets the access control policy on the specified resource. Replaces any existing policy.
-
getIamPolicy
public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request)
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
-
testIamPermissions
public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request)
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
-
sendCommandToDevice
public SendCommandToDeviceResponse sendCommandToDevice(SendCommandToDeviceRequest request)
Sends a command to the specified device. In order for a device to be able to receive commands, it must: 1) be connected to Cloud IoT Core using the MQTT protocol, and 2) be subscribed to the group of MQTT topics specified by /devices/{device-id}/commands/#. This subscription will receive commands at the top-level topic /devices/{device-id}/commands as well as commands for subfolders, like /devices/{device-id}/commands/subfolder. Note that subscribing to specific subfolders is not supported. If the command could not be delivered to the device, this method will return an error; in particular, if the device is not subscribed, this method will return FAILED_PRECONDITION. Otherwise, this method will return OK. If the subscription is QoS 1, at least once delivery will be guaranteed; for QoS 0, no acknowledgment will be expected from the device.
-
bindDeviceToGateway
public BindDeviceToGatewayResponse bindDeviceToGateway(BindDeviceToGatewayRequest request)
Associates the device with the gateway.
-
unbindDeviceFromGateway
public UnbindDeviceFromGatewayResponse unbindDeviceFromGateway(UnbindDeviceFromGatewayRequest request)
Deletes the association between the device and the gateway.
-
-