Class HttpJsonCloudLocationFinderStub
java.lang.Object
com.google.cloud.locationfinder.v1.stub.CloudLocationFinderStub
com.google.cloud.locationfinder.v1.stub.HttpJsonCloudLocationFinderStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class HttpJsonCloudLocationFinderStub
extends CloudLocationFinderStub
REST stub implementation for the CloudLocationFinder service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHttpJsonCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext) Constructs an instance of HttpJsonCloudLocationFinderStub, using the given settings.protectedHttpJsonCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) Constructs an instance of HttpJsonCloudLocationFinderStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final HttpJsonCloudLocationFinderStubcreate(ClientContext clientContext) static final HttpJsonCloudLocationFinderStubcreate(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) static final HttpJsonCloudLocationFinderStubcreate(CloudLocationFinderStubSettings settings) static List<ApiMethodDescriptor>booleanbooleanUnaryCallable<SearchCloudLocationsRequest,CloudLocationFinderClient.SearchCloudLocationsPagedResponse> voidshutdown()void
-
Constructor Details
-
HttpJsonCloudLocationFinderStub
protected HttpJsonCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of HttpJsonCloudLocationFinderStub, 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
-
HttpJsonCloudLocationFinderStub
protected HttpJsonCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException Constructs an instance of HttpJsonCloudLocationFinderStub, 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 HttpJsonCloudLocationFinderStub create(CloudLocationFinderStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCloudLocationFinderStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final HttpJsonCloudLocationFinderStub create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getMethodDescriptors
-
listCloudLocationsCallable
public UnaryCallable<ListCloudLocationsRequest,ListCloudLocationsResponse> listCloudLocationsCallable()- Overrides:
listCloudLocationsCallablein classCloudLocationFinderStub
-
listCloudLocationsPagedCallable
public UnaryCallable<ListCloudLocationsRequest,CloudLocationFinderClient.ListCloudLocationsPagedResponse> listCloudLocationsPagedCallable()- Overrides:
listCloudLocationsPagedCallablein classCloudLocationFinderStub
-
getCloudLocationCallable
- Overrides:
getCloudLocationCallablein classCloudLocationFinderStub
-
searchCloudLocationsCallable
public UnaryCallable<SearchCloudLocationsRequest,SearchCloudLocationsResponse> searchCloudLocationsCallable()- Overrides:
searchCloudLocationsCallablein classCloudLocationFinderStub
-
searchCloudLocationsPagedCallable
public UnaryCallable<SearchCloudLocationsRequest,CloudLocationFinderClient.SearchCloudLocationsPagedResponse> searchCloudLocationsPagedCallable()- Overrides:
searchCloudLocationsPagedCallablein classCloudLocationFinderStub
-
close
public final void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classCloudLocationFinderStub
-
shutdown
public void shutdown() -
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
shutdownNow
public void shutdownNow() -
awaitTermination
- Throws:
InterruptedException
-