public static final class DeviceManagerGrpc.DeviceManagerFutureStub extends AbstractFutureStub<DeviceManagerGrpc.DeviceManagerFutureStub>
Internet of Things (IoT) service. Securely connect and manage IoT devices.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
com.google.common.util.concurrent.ListenableFuture<BindDeviceToGatewayResponse> |
bindDeviceToGateway(BindDeviceToGatewayRequest request)
Associates the device with the gateway.
|
protected DeviceManagerGrpc.DeviceManagerFutureStub |
build(Channel channel,
CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Device> |
createDevice(CreateDeviceRequest request)
Creates a device in a device registry.
|
com.google.common.util.concurrent.ListenableFuture<DeviceRegistry> |
createDeviceRegistry(CreateDeviceRegistryRequest request)
Creates a device registry that contains devices.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteDevice(DeleteDeviceRequest request)
Deletes a device.
|
com.google.common.util.concurrent.ListenableFuture<Empty> |
deleteDeviceRegistry(DeleteDeviceRegistryRequest request)
Deletes a device registry configuration.
|
com.google.common.util.concurrent.ListenableFuture<Device> |
getDevice(GetDeviceRequest request)
Gets details about a device.
|
com.google.common.util.concurrent.ListenableFuture<DeviceRegistry> |
getDeviceRegistry(GetDeviceRegistryRequest request)
Gets a device registry configuration.
|
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> |
getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request)
Gets the access control policy for a resource.
|
com.google.common.util.concurrent.ListenableFuture<ListDeviceConfigVersionsResponse> |
listDeviceConfigVersions(ListDeviceConfigVersionsRequest request)
Lists the last few versions of the device configuration in descending
order (i.e.: newest first).
|
com.google.common.util.concurrent.ListenableFuture<ListDeviceRegistriesResponse> |
listDeviceRegistries(ListDeviceRegistriesRequest request)
Lists device registries.
|
com.google.common.util.concurrent.ListenableFuture<ListDevicesResponse> |
listDevices(ListDevicesRequest request)
List devices in a device registry.
|
com.google.common.util.concurrent.ListenableFuture<ListDeviceStatesResponse> |
listDeviceStates(ListDeviceStatesRequest request)
Lists the last few versions of the device state in descending order (i.e.:
newest first).
|
com.google.common.util.concurrent.ListenableFuture<DeviceConfig> |
modifyCloudToDeviceConfig(ModifyCloudToDeviceConfigRequest request)
Modifies the configuration for the device, which is eventually sent from
the Cloud IoT Core servers.
|
com.google.common.util.concurrent.ListenableFuture<SendCommandToDeviceResponse> |
sendCommandToDevice(SendCommandToDeviceRequest request)
Sends a command to the specified device.
|
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.Policy> |
setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request)
Sets the access control policy on the specified resource.
|
com.google.common.util.concurrent.ListenableFuture<com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request)
Returns permissions that a caller has on the specified resource.
|
com.google.common.util.concurrent.ListenableFuture<UnbindDeviceFromGatewayResponse> |
unbindDeviceFromGateway(UnbindDeviceFromGatewayRequest request)
Deletes the association between the device and the gateway.
|
com.google.common.util.concurrent.ListenableFuture<Device> |
updateDevice(UpdateDeviceRequest request)
Updates a device.
|
com.google.common.util.concurrent.ListenableFuture<DeviceRegistry> |
updateDeviceRegistry(UpdateDeviceRegistryRequest request)
Updates a device registry configuration.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected DeviceManagerGrpc.DeviceManagerFutureStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<DeviceManagerGrpc.DeviceManagerFutureStub>
public com.google.common.util.concurrent.ListenableFuture<DeviceRegistry> createDeviceRegistry(CreateDeviceRegistryRequest request)
Creates a device registry that contains devices.
public com.google.common.util.concurrent.ListenableFuture<DeviceRegistry> getDeviceRegistry(GetDeviceRegistryRequest request)
Gets a device registry configuration.
public com.google.common.util.concurrent.ListenableFuture<DeviceRegistry> updateDeviceRegistry(UpdateDeviceRegistryRequest request)
Updates a device registry configuration.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteDeviceRegistry(DeleteDeviceRegistryRequest request)
Deletes a device registry configuration.
public com.google.common.util.concurrent.ListenableFuture<ListDeviceRegistriesResponse> listDeviceRegistries(ListDeviceRegistriesRequest request)
Lists device registries.
public com.google.common.util.concurrent.ListenableFuture<Device> createDevice(CreateDeviceRequest request)
Creates a device in a device registry.
public com.google.common.util.concurrent.ListenableFuture<Device> getDevice(GetDeviceRequest request)
Gets details about a device.
public com.google.common.util.concurrent.ListenableFuture<Device> updateDevice(UpdateDeviceRequest request)
Updates a device.
public com.google.common.util.concurrent.ListenableFuture<Empty> deleteDevice(DeleteDeviceRequest request)
Deletes a device.
public com.google.common.util.concurrent.ListenableFuture<ListDevicesResponse> listDevices(ListDevicesRequest request)
List devices in a device registry.
public com.google.common.util.concurrent.ListenableFuture<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.
public com.google.common.util.concurrent.ListenableFuture<ListDeviceConfigVersionsResponse> listDeviceConfigVersions(ListDeviceConfigVersionsRequest request)
Lists the last few versions of the device configuration in descending order (i.e.: newest first).
public com.google.common.util.concurrent.ListenableFuture<ListDeviceStatesResponse> listDeviceStates(ListDeviceStatesRequest request)
Lists the last few versions of the device state in descending order (i.e.: newest first).
public com.google.common.util.concurrent.ListenableFuture<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.
public com.google.common.util.concurrent.ListenableFuture<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.
public com.google.common.util.concurrent.ListenableFuture<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.
public com.google.common.util.concurrent.ListenableFuture<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.
public com.google.common.util.concurrent.ListenableFuture<BindDeviceToGatewayResponse> bindDeviceToGateway(BindDeviceToGatewayRequest request)
Associates the device with the gateway.
public com.google.common.util.concurrent.ListenableFuture<UnbindDeviceFromGatewayResponse> unbindDeviceFromGateway(UnbindDeviceFromGatewayRequest request)
Deletes the association between the device and the gateway.
Copyright © 2022 Google LLC. All rights reserved.