Package com.google.cloud.compute.v1.stub
Class HttpJsonRegionHealthChecksStub
- java.lang.Object
-
- com.google.cloud.compute.v1.stub.RegionHealthChecksStub
-
- com.google.cloud.compute.v1.stub.HttpJsonRegionHealthChecksStub
-
- All Implemented Interfaces:
com.google.api.gax.core.BackgroundResource
,AutoCloseable
@Generated("by gapic-generator-java") @BetaApi public class HttpJsonRegionHealthChecksStub extends RegionHealthChecksStub
REST stub implementation for the RegionHealthChecks service API.This class is for advanced usage and reflects the underlying API directly.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HttpJsonRegionHealthChecksStub(RegionHealthChecksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext)
Constructs an instance of HttpJsonRegionHealthChecksStub, using the given settings.protected
HttpJsonRegionHealthChecksStub(RegionHealthChecksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory)
Constructs an instance of HttpJsonRegionHealthChecksStub, using the given settings.
-
Method Summary
-
-
-
Constructor Detail
-
HttpJsonRegionHealthChecksStub
protected HttpJsonRegionHealthChecksStub(RegionHealthChecksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext) throws IOException
Constructs an instance of HttpJsonRegionHealthChecksStub, 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
-
HttpJsonRegionHealthChecksStub
protected HttpJsonRegionHealthChecksStub(RegionHealthChecksStubSettings settings, com.google.api.gax.rpc.ClientContext clientContext, com.google.api.gax.httpjson.HttpJsonStubCallableFactory callableFactory) throws IOException
Constructs an instance of HttpJsonRegionHealthChecksStub, 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 HttpJsonRegionHealthChecksStub create(RegionHealthChecksStubSettings settings) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegionHealthChecksStub create(com.google.api.gax.rpc.ClientContext clientContext) throws IOException
- Throws:
IOException
-
create
public static final HttpJsonRegionHealthChecksStub 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()
-
deleteCallable
public com.google.api.gax.rpc.UnaryCallable<DeleteRegionHealthCheckRequest,Operation> deleteCallable()
- Overrides:
deleteCallable
in classRegionHealthChecksStub
-
deleteOperationCallable
public com.google.api.gax.rpc.OperationCallable<DeleteRegionHealthCheckRequest,Operation,Operation> deleteOperationCallable()
- Overrides:
deleteOperationCallable
in classRegionHealthChecksStub
-
getCallable
public com.google.api.gax.rpc.UnaryCallable<GetRegionHealthCheckRequest,HealthCheck> getCallable()
- Overrides:
getCallable
in classRegionHealthChecksStub
-
insertCallable
public com.google.api.gax.rpc.UnaryCallable<InsertRegionHealthCheckRequest,Operation> insertCallable()
- Overrides:
insertCallable
in classRegionHealthChecksStub
-
insertOperationCallable
public com.google.api.gax.rpc.OperationCallable<InsertRegionHealthCheckRequest,Operation,Operation> insertOperationCallable()
- Overrides:
insertOperationCallable
in classRegionHealthChecksStub
-
listCallable
public com.google.api.gax.rpc.UnaryCallable<ListRegionHealthChecksRequest,HealthCheckList> listCallable()
- Overrides:
listCallable
in classRegionHealthChecksStub
-
listPagedCallable
public com.google.api.gax.rpc.UnaryCallable<ListRegionHealthChecksRequest,RegionHealthChecksClient.ListPagedResponse> listPagedCallable()
- Overrides:
listPagedCallable
in classRegionHealthChecksStub
-
patchCallable
public com.google.api.gax.rpc.UnaryCallable<PatchRegionHealthCheckRequest,Operation> patchCallable()
- Overrides:
patchCallable
in classRegionHealthChecksStub
-
patchOperationCallable
public com.google.api.gax.rpc.OperationCallable<PatchRegionHealthCheckRequest,Operation,Operation> patchOperationCallable()
- Overrides:
patchOperationCallable
in classRegionHealthChecksStub
-
updateCallable
public com.google.api.gax.rpc.UnaryCallable<UpdateRegionHealthCheckRequest,Operation> updateCallable()
- Overrides:
updateCallable
in classRegionHealthChecksStub
-
updateOperationCallable
public com.google.api.gax.rpc.OperationCallable<UpdateRegionHealthCheckRequest,Operation,Operation> updateOperationCallable()
- Overrides:
updateOperationCallable
in classRegionHealthChecksStub
-
close
public final void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in classRegionHealthChecksStub
-
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
-
-