Package com.google.cloud.iot.v1.stub
Class GrpcDeviceManagerStub
- java.lang.Object
-
- com.google.cloud.iot.v1.stub.DeviceManagerStub
-
- com.google.cloud.iot.v1.stub.GrpcDeviceManagerStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") 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.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
GrpcDeviceManagerStub(DeviceManagerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of GrpcDeviceManagerStub, using the given settings.protected
GrpcDeviceManagerStub(DeviceManagerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
Constructs an instance of GrpcDeviceManagerStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
awaitTermination(long duration, TimeUnit unit)
com.google.api.gax.rpc.UnaryCallable<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse>
bindDeviceToGatewayCallable()
void
close()
static GrpcDeviceManagerStub
create(com.google.api.gax.rpc.ClientContext clientContext)
static GrpcDeviceManagerStub
create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory)
static GrpcDeviceManagerStub
create(DeviceManagerStubSettings settings)
com.google.api.gax.rpc.UnaryCallable<CreateDeviceRequest,Device>
createDeviceCallable()
com.google.api.gax.rpc.UnaryCallable<CreateDeviceRegistryRequest,DeviceRegistry>
createDeviceRegistryCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteDeviceRequest,com.google.protobuf.Empty>
deleteDeviceCallable()
com.google.api.gax.rpc.UnaryCallable<DeleteDeviceRegistryRequest,com.google.protobuf.Empty>
deleteDeviceRegistryCallable()
com.google.api.gax.rpc.UnaryCallable<GetDeviceRequest,Device>
getDeviceCallable()
com.google.api.gax.rpc.UnaryCallable<GetDeviceRegistryRequest,DeviceRegistry>
getDeviceRegistryCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicyCallable()
com.google.longrunning.stub.GrpcOperationsStub
getOperationsStub()
boolean
isShutdown()
boolean
isTerminated()
com.google.api.gax.rpc.UnaryCallable<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse>
listDeviceConfigVersionsCallable()
com.google.api.gax.rpc.UnaryCallable<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse>
listDeviceRegistriesCallable()
com.google.api.gax.rpc.UnaryCallable<ListDeviceRegistriesRequest,DeviceManagerClient.ListDeviceRegistriesPagedResponse>
listDeviceRegistriesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListDevicesRequest,ListDevicesResponse>
listDevicesCallable()
com.google.api.gax.rpc.UnaryCallable<ListDevicesRequest,DeviceManagerClient.ListDevicesPagedResponse>
listDevicesPagedCallable()
com.google.api.gax.rpc.UnaryCallable<ListDeviceStatesRequest,ListDeviceStatesResponse>
listDeviceStatesCallable()
com.google.api.gax.rpc.UnaryCallable<ModifyCloudToDeviceConfigRequest,DeviceConfig>
modifyCloudToDeviceConfigCallable()
com.google.api.gax.rpc.UnaryCallable<SendCommandToDeviceRequest,SendCommandToDeviceResponse>
sendCommandToDeviceCallable()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicyCallable()
void
shutdown()
void
shutdownNow()
com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsCallable()
com.google.api.gax.rpc.UnaryCallable<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse>
unbindDeviceFromGatewayCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateDeviceRequest,Device>
updateDeviceCallable()
com.google.api.gax.rpc.UnaryCallable<UpdateDeviceRegistryRequest,DeviceRegistry>
updateDeviceRegistryCallable()
-
-
-
Constructor Detail
-
GrpcDeviceManagerStub
protected GrpcDeviceManagerStub(DeviceManagerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
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.- Throws:
IOException
-
GrpcDeviceManagerStub
protected GrpcDeviceManagerStub(DeviceManagerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
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.- Throws:
IOException
-
-
Method Detail
-
create
public static final GrpcDeviceManagerStub create(DeviceManagerStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final GrpcDeviceManagerStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final GrpcDeviceManagerStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.grpc.GrpcStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getOperationsStub
public com.google.longrunning.stub.GrpcOperationsStub getOperationsStub()
-
createDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDeviceRegistryRequest,DeviceRegistry> createDeviceRegistryCallable()
- Overrides:
createDeviceRegistryCallable
in classDeviceManagerStub
-
getDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<GetDeviceRegistryRequest,DeviceRegistry> getDeviceRegistryCallable()
- Overrides:
getDeviceRegistryCallable
in classDeviceManagerStub
-
updateDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDeviceRegistryRequest,DeviceRegistry> updateDeviceRegistryCallable()
- Overrides:
updateDeviceRegistryCallable
in classDeviceManagerStub
-
deleteDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDeviceRegistryRequest,com.google.protobuf.Empty> deleteDeviceRegistryCallable()
- Overrides:
deleteDeviceRegistryCallable
in classDeviceManagerStub
-
listDeviceRegistriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse> listDeviceRegistriesCallable()
- Overrides:
listDeviceRegistriesCallable
in classDeviceManagerStub
-
listDeviceRegistriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceRegistriesRequest,DeviceManagerClient.ListDeviceRegistriesPagedResponse> listDeviceRegistriesPagedCallable()
- Overrides:
listDeviceRegistriesPagedCallable
in classDeviceManagerStub
-
createDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDeviceRequest,Device> createDeviceCallable()
- Overrides:
createDeviceCallable
in classDeviceManagerStub
-
getDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<GetDeviceRequest,Device> getDeviceCallable()
- Overrides:
getDeviceCallable
in classDeviceManagerStub
-
updateDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDeviceRequest,Device> updateDeviceCallable()
- Overrides:
updateDeviceCallable
in classDeviceManagerStub
-
deleteDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDeviceRequest,com.google.protobuf.Empty> deleteDeviceCallable()
- Overrides:
deleteDeviceCallable
in classDeviceManagerStub
-
listDevicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDevicesRequest,ListDevicesResponse> listDevicesCallable()
- Overrides:
listDevicesCallable
in classDeviceManagerStub
-
listDevicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDevicesRequest,DeviceManagerClient.ListDevicesPagedResponse> listDevicesPagedCallable()
- Overrides:
listDevicesPagedCallable
in classDeviceManagerStub
-
modifyCloudToDeviceConfigCallable
public com.google.api.gax.rpc.UnaryCallable<ModifyCloudToDeviceConfigRequest,DeviceConfig> modifyCloudToDeviceConfigCallable()
- Overrides:
modifyCloudToDeviceConfigCallable
in classDeviceManagerStub
-
listDeviceConfigVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> listDeviceConfigVersionsCallable()
- Overrides:
listDeviceConfigVersionsCallable
in classDeviceManagerStub
-
listDeviceStatesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceStatesRequest,ListDeviceStatesResponse> listDeviceStatesCallable()
- Overrides:
listDeviceStatesCallable
in classDeviceManagerStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallable
in classDeviceManagerStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallable
in classDeviceManagerStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallable
in classDeviceManagerStub
-
sendCommandToDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<SendCommandToDeviceRequest,SendCommandToDeviceResponse> sendCommandToDeviceCallable()
- Overrides:
sendCommandToDeviceCallable
in classDeviceManagerStub
-
bindDeviceToGatewayCallable
public com.google.api.gax.rpc.UnaryCallable<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> bindDeviceToGatewayCallable()
- Overrides:
bindDeviceToGatewayCallable
in classDeviceManagerStub
-
unbindDeviceFromGatewayCallable
public com.google.api.gax.rpc.UnaryCallable<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse> unbindDeviceFromGatewayCallable()
- Overrides:
unbindDeviceFromGatewayCallable
in classDeviceManagerStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classDeviceManagerStub
-
shutdown
public void shutdown()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
shutdownNow
public void shutdownNow()
-
awaitTermination
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException
- Throws:
InterruptedException
-
-