Package com.google.cloud.iot.v1.stub
Class HttpJsonDeviceManagerStub
java.lang.Object
com.google.cloud.iot.v1.stub.DeviceManagerStub
com.google.cloud.iot.v1.stub.HttpJsonDeviceManagerStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
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.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonDeviceManagerStub, using the given settings.protectedHttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonDeviceManagerStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonDeviceManagerStubcreate(ClientContext clientContext) static final HttpJsonDeviceManagerStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonDeviceManagerStubcreate(DeviceManagerStubSettings settings) UnaryCallable<DeleteDeviceRequest,com.google.protobuf.Empty> UnaryCallable<DeleteDeviceRegistryRequest,com.google.protobuf.Empty> static List<ApiMethodDescriptor>booleanbooleanvoidshutdown()void
-
Constructor Details
-
HttpJsonDeviceManagerStub
protected HttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext) throws IOException 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.- Throws:
IOException
-
HttpJsonDeviceManagerStub
protected HttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException 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.- Throws:
IOException
-
-
Method Details
-
create
public static final HttpJsonDeviceManagerStub create(DeviceManagerStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonDeviceManagerStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonDeviceManagerStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
createDeviceRegistryCallable
- Overrides:
createDeviceRegistryCallablein classDeviceManagerStub
-
getDeviceRegistryCallable
- Overrides:
getDeviceRegistryCallablein classDeviceManagerStub
-
updateDeviceRegistryCallable
- Overrides:
updateDeviceRegistryCallablein classDeviceManagerStub
-
deleteDeviceRegistryCallable
public UnaryCallable<DeleteDeviceRegistryRequest,com.google.protobuf.Empty> deleteDeviceRegistryCallable()- Overrides:
deleteDeviceRegistryCallablein classDeviceManagerStub
-
listDeviceRegistriesCallable
public UnaryCallable<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse> listDeviceRegistriesCallable()- Overrides:
listDeviceRegistriesCallablein classDeviceManagerStub
-
listDeviceRegistriesPagedCallable
public UnaryCallable<ListDeviceRegistriesRequest,DeviceManagerClient.ListDeviceRegistriesPagedResponse> listDeviceRegistriesPagedCallable()- Overrides:
listDeviceRegistriesPagedCallablein classDeviceManagerStub
-
createDeviceCallable
- Overrides:
createDeviceCallablein classDeviceManagerStub
-
getDeviceCallable
- Overrides:
getDeviceCallablein classDeviceManagerStub
-
updateDeviceCallable
- Overrides:
updateDeviceCallablein classDeviceManagerStub
-
deleteDeviceCallable
- Overrides:
deleteDeviceCallablein classDeviceManagerStub
-
listDevicesCallable
- Overrides:
listDevicesCallablein classDeviceManagerStub
-
listDevicesPagedCallable
public UnaryCallable<ListDevicesRequest,DeviceManagerClient.ListDevicesPagedResponse> listDevicesPagedCallable()- Overrides:
listDevicesPagedCallablein classDeviceManagerStub
-
modifyCloudToDeviceConfigCallable
public UnaryCallable<ModifyCloudToDeviceConfigRequest,DeviceConfig> modifyCloudToDeviceConfigCallable()- Overrides:
modifyCloudToDeviceConfigCallablein classDeviceManagerStub
-
listDeviceConfigVersionsCallable
public UnaryCallable<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> listDeviceConfigVersionsCallable()- Overrides:
listDeviceConfigVersionsCallablein classDeviceManagerStub
-
listDeviceStatesCallable
- Overrides:
listDeviceStatesCallablein classDeviceManagerStub
-
setIamPolicyCallable
- Overrides:
setIamPolicyCallablein classDeviceManagerStub
-
getIamPolicyCallable
- Overrides:
getIamPolicyCallablein classDeviceManagerStub
-
testIamPermissionsCallable
public UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()- Overrides:
testIamPermissionsCallablein classDeviceManagerStub
-
sendCommandToDeviceCallable
public UnaryCallable<SendCommandToDeviceRequest,SendCommandToDeviceResponse> sendCommandToDeviceCallable()- Overrides:
sendCommandToDeviceCallablein classDeviceManagerStub
-
bindDeviceToGatewayCallable
public UnaryCallable<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> bindDeviceToGatewayCallable()- Overrides:
bindDeviceToGatewayCallablein classDeviceManagerStub
-
unbindDeviceFromGatewayCallable
public UnaryCallable<UnbindDeviceFromGatewayRequest,UnbindDeviceFromGatewayResponse> unbindDeviceFromGatewayCallable()- Overrides:
unbindDeviceFromGatewayCallablein classDeviceManagerStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classDeviceManagerStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-