Class GrpcCloudCatalogStub (2.23.0)

public class GrpcCloudCatalogStub extends CloudCatalogStub

gRPC stub implementation for the CloudCatalog service API.

This class is for advanced usage and reflects the underlying API directly.

Inheritance

java.lang.Object > CloudCatalogStub > GrpcCloudCatalogStub

Static Methods

create(ClientContext clientContext)

public static final GrpcCloudCatalogStub create(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
GrpcCloudCatalogStub
Exceptions
TypeDescription
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcCloudCatalogStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
NameDescription
clientContextClientContext
callableFactoryGrpcStubCallableFactory
Returns
TypeDescription
GrpcCloudCatalogStub
Exceptions
TypeDescription
IOException

create(CloudCatalogStubSettings settings)

public static final GrpcCloudCatalogStub create(CloudCatalogStubSettings settings)
Parameter
NameDescription
settingsCloudCatalogStubSettings
Returns
TypeDescription
GrpcCloudCatalogStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCloudCatalogStub(CloudCatalogStubSettings settings, ClientContext clientContext)

protected GrpcCloudCatalogStub(CloudCatalogStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCloudCatalogStub, 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.

Parameters
NameDescription
settingsCloudCatalogStubSettings
clientContextClientContext

GrpcCloudCatalogStub(CloudCatalogStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCloudCatalogStub(CloudCatalogStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCloudCatalogStub, 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.

Parameters
NameDescription
settingsCloudCatalogStubSettings
clientContextClientContext
callableFactoryGrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listServicesCallable()

public UnaryCallable<ListServicesRequest,ListServicesResponse> listServicesCallable()
Returns
TypeDescription
UnaryCallable<ListServicesRequest,ListServicesResponse>
Overrides

listServicesPagedCallable()

public UnaryCallable<ListServicesRequest,CloudCatalogClient.ListServicesPagedResponse> listServicesPagedCallable()
Returns
TypeDescription
UnaryCallable<ListServicesRequest,ListServicesPagedResponse>
Overrides

listSkusCallable()

public UnaryCallable<ListSkusRequest,ListSkusResponse> listSkusCallable()
Returns
TypeDescription
UnaryCallable<ListSkusRequest,ListSkusResponse>
Overrides

listSkusPagedCallable()

public UnaryCallable<ListSkusRequest,CloudCatalogClient.ListSkusPagedResponse> listSkusPagedCallable()
Returns
TypeDescription
UnaryCallable<ListSkusRequest,ListSkusPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()