Class HttpJsonDeviceManagerStub (2.8.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
NameDescription
clientContextClientContext
Returns
TypeDescription
HttpJsonDeviceManagerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

public static final HttpJsonDeviceManagerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory
Returns
TypeDescription
HttpJsonDeviceManagerStub
Exceptions
TypeDescription
IOException

create(DeviceManagerStubSettings settings)

public static final HttpJsonDeviceManagerStub create(DeviceManagerStubSettings settings)
Parameter
NameDescription
settingsDeviceManagerStubSettings
Returns
TypeDescription
HttpJsonDeviceManagerStub
Exceptions
TypeDescription
IOException

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
TypeDescription
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
NameDescription
settingsDeviceManagerStubSettings
clientContextClientContext

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
NameDescription
settingsDeviceManagerStubSettings
clientContextClientContext
callableFactoryHttpJsonStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

bindDeviceToGatewayCallable()

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

close()

public final void close()
Overrides

createDeviceCallable()

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

createDeviceRegistryCallable()

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

deleteDeviceCallable()

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

deleteDeviceRegistryCallable()

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

getDeviceCallable()

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

getDeviceRegistryCallable()

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

getIamPolicyCallable()

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

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDeviceConfigVersionsCallable()

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

listDeviceRegistriesCallable()

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

listDeviceRegistriesPagedCallable()

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

listDeviceStatesCallable()

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

listDevicesCallable()

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

listDevicesPagedCallable()

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

modifyCloudToDeviceConfigCallable()

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

sendCommandToDeviceCallable()

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

setIamPolicyCallable()

public UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()
Returns
TypeDescription
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
TypeDescription
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
Overrides

unbindDeviceFromGatewayCallable()

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

updateDeviceCallable()

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

updateDeviceRegistryCallable()

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