Class GrpcDeviceManagerStub (2.42.0)

public class GrpcDeviceManagerStub extends DeviceManagerStub

gRPC stub implementation for the DeviceManager service API.

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

Inheritance

java.lang.Object > DeviceManagerStub > GrpcDeviceManagerStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(DeviceManagerStubSettings settings)

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

Constructors

GrpcDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext)

protected GrpcDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDeviceManagerStub, 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

GrpcDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDeviceManagerStub, 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 GrpcStubCallableFactory

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

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