Class GrpcDeviceManagerStub (2.1.7)

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
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcDeviceManagerStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDeviceManagerStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcDeviceManagerStub
Exceptions
TypeDescription
IOException

create(DeviceManagerStubSettings settings)

public static final GrpcDeviceManagerStub create(DeviceManagerStubSettings settings)
Parameter
NameDescription
settingsDeviceManagerStubSettings
Returns
TypeDescription
GrpcDeviceManagerStub
Exceptions
TypeDescription
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
NameDescription
settingsDeviceManagerStubSettings
clientContextClientContext

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

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

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

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