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:
com.google.api.gax.core.BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi 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
Constructors Modifier Constructor Description protectedHttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)Constructs an instance of HttpJsonDeviceManagerStub, using the given settings.protectedHttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)Constructs an instance of HttpJsonDeviceManagerStub, using the given settings.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long duration, TimeUnit unit)com.google.api.gax.rpc.UnaryCallable<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse>bindDeviceToGatewayCallable()voidclose()static HttpJsonDeviceManagerStubcreate(com.google.api.gax.rpc.ClientContext clientContext)static HttpJsonDeviceManagerStubcreate(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)static HttpJsonDeviceManagerStubcreate(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()static List<com.google.api.gax.httpjson.ApiMethodDescriptor>getMethodDescriptors()booleanisShutdown()booleanisTerminated()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()voidshutdown()voidshutdownNow()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
-
HttpJsonDeviceManagerStub
protected HttpJsonDeviceManagerStub(DeviceManagerStubSettings settings, com.google.api.gax.rpc.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, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.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 Detail
-
create
public static final HttpJsonDeviceManagerStub create(DeviceManagerStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDeviceManagerStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonDeviceManagerStub create(com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
- Throws:
IOException
-
getMethodDescriptors
@InternalApi public static List<com.google.api.gax.httpjson.ApiMethodDescriptor> getMethodDescriptors()
-
createDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDeviceRegistryRequest,DeviceRegistry> createDeviceRegistryCallable()
- Overrides:
createDeviceRegistryCallablein classDeviceManagerStub
-
getDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<GetDeviceRegistryRequest,DeviceRegistry> getDeviceRegistryCallable()
- Overrides:
getDeviceRegistryCallablein classDeviceManagerStub
-
updateDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDeviceRegistryRequest,DeviceRegistry> updateDeviceRegistryCallable()
- Overrides:
updateDeviceRegistryCallablein classDeviceManagerStub
-
deleteDeviceRegistryCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDeviceRegistryRequest,com.google.protobuf.Empty> deleteDeviceRegistryCallable()
- Overrides:
deleteDeviceRegistryCallablein classDeviceManagerStub
-
listDeviceRegistriesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceRegistriesRequest,ListDeviceRegistriesResponse> listDeviceRegistriesCallable()
- Overrides:
listDeviceRegistriesCallablein classDeviceManagerStub
-
listDeviceRegistriesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceRegistriesRequest,DeviceManagerClient.ListDeviceRegistriesPagedResponse> listDeviceRegistriesPagedCallable()
- Overrides:
listDeviceRegistriesPagedCallablein classDeviceManagerStub
-
createDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<CreateDeviceRequest,Device> createDeviceCallable()
- Overrides:
createDeviceCallablein classDeviceManagerStub
-
getDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<GetDeviceRequest,Device> getDeviceCallable()
- Overrides:
getDeviceCallablein classDeviceManagerStub
-
updateDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateDeviceRequest,Device> updateDeviceCallable()
- Overrides:
updateDeviceCallablein classDeviceManagerStub
-
deleteDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteDeviceRequest,com.google.protobuf.Empty> deleteDeviceCallable()
- Overrides:
deleteDeviceCallablein classDeviceManagerStub
-
listDevicesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDevicesRequest,ListDevicesResponse> listDevicesCallable()
- Overrides:
listDevicesCallablein classDeviceManagerStub
-
listDevicesPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListDevicesRequest,DeviceManagerClient.ListDevicesPagedResponse> listDevicesPagedCallable()
- Overrides:
listDevicesPagedCallablein classDeviceManagerStub
-
modifyCloudToDeviceConfigCallable
public com.google.api.gax.rpc.UnaryCallable<ModifyCloudToDeviceConfigRequest,DeviceConfig> modifyCloudToDeviceConfigCallable()
- Overrides:
modifyCloudToDeviceConfigCallablein classDeviceManagerStub
-
listDeviceConfigVersionsCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceConfigVersionsRequest,ListDeviceConfigVersionsResponse> listDeviceConfigVersionsCallable()
- Overrides:
listDeviceConfigVersionsCallablein classDeviceManagerStub
-
listDeviceStatesCallable
public com.google.api.gax.rpc.UnaryCallable<ListDeviceStatesRequest,ListDeviceStatesResponse> listDeviceStatesCallable()
- Overrides:
listDeviceStatesCallablein classDeviceManagerStub
-
setIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicyCallable()
- Overrides:
setIamPolicyCallablein classDeviceManagerStub
-
getIamPolicyCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicyCallable()
- Overrides:
getIamPolicyCallablein classDeviceManagerStub
-
testIamPermissionsCallable
public com.google.api.gax.rpc.UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsCallable()
- Overrides:
testIamPermissionsCallablein classDeviceManagerStub
-
sendCommandToDeviceCallable
public com.google.api.gax.rpc.UnaryCallable<SendCommandToDeviceRequest,SendCommandToDeviceResponse> sendCommandToDeviceCallable()
- Overrides:
sendCommandToDeviceCallablein classDeviceManagerStub
-
bindDeviceToGatewayCallable
public com.google.api.gax.rpc.UnaryCallable<BindDeviceToGatewayRequest,BindDeviceToGatewayResponse> bindDeviceToGatewayCallable()
- Overrides:
bindDeviceToGatewayCallablein classDeviceManagerStub
-
unbindDeviceFromGatewayCallable
public com.google.api.gax.rpc.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
public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException- Throws:
InterruptedException
-
-