Class HttpJsonDeviceManagerStub (2.54.0)

public class HttpJsonDeviceManagerStub extends DeviceManagerStub

REST stub implementation for the DeviceManager service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > DeviceManagerStub > HttpJsonDeviceManagerStub

Static Methods

create(ClientContext clientContext)

public static final HttpJsonDeviceManagerStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
HttpJsonDeviceManagerStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDeviceManagerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory
Returns
Type Description
HttpJsonDeviceManagerStub
Exceptions
Type Description
IOException

create(DeviceManagerStubSettings settings)

public static final HttpJsonDeviceManagerStub create(DeviceManagerStubSettings settings)
Parameter
Name Description
settings DeviceManagerStubSettings
Returns
Type Description
HttpJsonDeviceManagerStub
Exceptions
Type Description
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext)

protected HttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext)

Constructs an instance of HttpJsonDeviceManagerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings DeviceManagerStubSettings
clientContext ClientContext

HttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDeviceManagerStub, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.

Parameters
Name Description
settings DeviceManagerStubSettings
clientContext ClientContext
callableFactory HttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

bindDeviceToGatewayCallable()

public UnaryCallable<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> bindDeviceToGatewayCallable()
Returns
Type Description
UnaryCallable<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse>
Overrides

close()

public final void close()
Overrides

createDeviceCallable()

public UnaryCallable<CreateDeviceRequest,Device> createDeviceCallable()
Returns
Type Description
UnaryCallable<CreateDeviceRequest,Device>
Overrides

createDeviceRegistryCallable()

public UnaryCallable<CreateDeviceRegistryRequest,DeviceRegistry> createDeviceRegistryCallable()
Returns
Type Description
UnaryCallable<CreateDeviceRegistryRequest,DeviceRegistry>
Overrides

deleteDeviceCallable()

public UnaryCallable<DeleteDeviceRequest,Empty> deleteDeviceCallable()
Returns
Type Description
UnaryCallable<DeleteDeviceRequest,Empty>
Overrides

deleteDeviceRegistryCallable()

public UnaryCallable<DeleteDeviceRegistryRequest,Empty> deleteDeviceRegistryCallable()
Returns
Type Description
UnaryCallable<DeleteDeviceRegistryRequest,Empty>
Overrides

getDeviceCallable()

public UnaryCallable<GetDeviceRequest,Device> getDeviceCallable()
Returns
Type Description
UnaryCallable<GetDeviceRequest,Device>
Overrides

getDeviceRegistryCallable()

public UnaryCallable<GetDeviceRegistryRequest,DeviceRegistry> getDeviceRegistryCallable()
Returns
Type Description
UnaryCallable<GetDeviceRegistryRequest,DeviceRegistry>
Overrides

getIamPolicyCallable()

public UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listDeviceConfigVersionsCallable()

public UnaryCallable<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> listDeviceConfigVersionsCallable()
Returns
Type Description
UnaryCallable<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse>
Overrides

listDeviceRegistriesCallable()

public UnaryCallable<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse> listDeviceRegistriesCallable()
Returns
Type Description
UnaryCallable<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse>
Overrides

listDeviceRegistriesPagedCallable()

public UnaryCallable<ListDeviceRegistriesRequest,DeviceManagerClient.ListDeviceRegistriesPagedResponse> listDeviceRegistriesPagedCallable()
Returns
Type Description
UnaryCallable<ListDeviceRegistriesRequest,ListDeviceRegistriesPagedResponse>
Overrides

listDeviceStatesCallable()

public UnaryCallable<ListDeviceStatesRequest,ListDeviceStatesResponse> listDeviceStatesCallable()
Returns
Type Description
UnaryCallable<ListDeviceStatesRequest,ListDeviceStatesResponse>
Overrides

listDevicesCallable()

public UnaryCallable<ListDevicesRequest,ListDevicesResponse> listDevicesCallable()
Returns
Type Description
UnaryCallable<ListDevicesRequest,ListDevicesResponse>
Overrides

listDevicesPagedCallable()

public UnaryCallable<ListDevicesRequest,DeviceManagerClient.ListDevicesPagedResponse> listDevicesPagedCallable()
Returns
Type Description
UnaryCallable<ListDevicesRequest,ListDevicesPagedResponse>
Overrides

modifyCloudToDeviceConfigCallable()

public UnaryCallable<ModifyCloudToDeviceConfigRequest,DeviceConfig> modifyCloudToDeviceConfigCallable()
Returns
Type Description
UnaryCallable<ModifyCloudToDeviceConfigRequest,DeviceConfig>
Overrides

sendCommandToDeviceCallable()

public UnaryCallable<SendCommandToDeviceRequest,SendCommandToDeviceResponse> sendCommandToDeviceCallable()
Returns
Type Description
UnaryCallable<SendCommandToDeviceRequest,SendCommandToDeviceResponse>
Overrides

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

testIamPermissionsCallable()

public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()
Returns
Type Description
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

unbindDeviceFromGatewayCallable()

public UnaryCallable<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse> unbindDeviceFromGatewayCallable()
Returns
Type Description
UnaryCallable<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse>
Overrides

updateDeviceCallable()

public UnaryCallable<UpdateDeviceRequest,Device> updateDeviceCallable()
Returns
Type Description
UnaryCallable<UpdateDeviceRequest,Device>
Overrides

updateDeviceRegistryCallable()

public UnaryCallable<UpdateDeviceRegistryRequest,DeviceRegistry> updateDeviceRegistryCallable()
Returns
Type Description
UnaryCallable<UpdateDeviceRegistryRequest,DeviceRegistry>
Overrides