Class GrpcCloudLocationFinderStub
java.lang.Object
com.google.cloud.locationfinder.v1.stub.CloudLocationFinderStub
com.google.cloud.locationfinder.v1.stub.GrpcCloudLocationFinderStub
- All Implemented Interfaces:
BackgroundResource,AutoCloseable
@Generated("by gapic-generator-java")
public class GrpcCloudLocationFinderStub
extends CloudLocationFinderStub
gRPC stub implementation for the CloudLocationFinder service API.
This class is for advanced usage and reflects the underlying API directly.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGrpcCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext) Constructs an instance of GrpcCloudLocationFinderStub, using the given settings.protectedGrpcCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) Constructs an instance of GrpcCloudLocationFinderStub, using the given settings. -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long duration, TimeUnit unit) final voidclose()static final GrpcCloudLocationFinderStubcreate(ClientContext clientContext) static final GrpcCloudLocationFinderStubcreate(ClientContext clientContext, GrpcStubCallableFactory callableFactory) static final GrpcCloudLocationFinderStubcreate(CloudLocationFinderStubSettings settings) booleanbooleanUnaryCallable<SearchCloudLocationsRequest,CloudLocationFinderClient.SearchCloudLocationsPagedResponse> voidshutdown()void
-
Constructor Details
-
GrpcCloudLocationFinderStub
protected GrpcCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext) throws IOException Constructs an instance of GrpcCloudLocationFinderStub, 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
-
GrpcCloudLocationFinderStub
protected GrpcCloudLocationFinderStub(CloudLocationFinderStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException Constructs an instance of GrpcCloudLocationFinderStub, 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 GrpcCloudLocationFinderStub create(CloudLocationFinderStubSettings settings) throws IOException - Throws:
IOException
-
create
public static final GrpcCloudLocationFinderStub create(ClientContext clientContext) throws IOException - Throws:
IOException
-
create
public static final GrpcCloudLocationFinderStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException - Throws:
IOException
-
getOperationsStub
-
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
-