Class GrpcCatalogServiceStub (0.11.0)

public class GrpcCatalogServiceStub extends CatalogServiceStub

gRPC stub implementation for the CatalogService service API.

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

Inheritance

java.lang.Object > CatalogServiceStub > GrpcCatalogServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

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

create(CatalogServiceStubSettings settings)

public static final GrpcCatalogServiceStub create(CatalogServiceStubSettings settings)
Parameter
NameDescription
settingsCatalogServiceStubSettings
Returns
TypeDescription
GrpcCatalogServiceStub
Exceptions
TypeDescription
IOException

Constructors

GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext)

protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcCatalogServiceStub, 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
settingsCatalogServiceStubSettings
clientContextClientContext

GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcCatalogServiceStub(CatalogServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcCatalogServiceStub, 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
settingsCatalogServiceStubSettings
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

createCatalogItemCallable()

public UnaryCallable<CreateCatalogItemRequest,CatalogItem> createCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<CreateCatalogItemRequest,CatalogItem>
Overrides

deleteCatalogItemCallable()

public UnaryCallable<DeleteCatalogItemRequest,Empty> deleteCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<DeleteCatalogItemRequest,Empty>
Overrides

getCatalogItemCallable()

public UnaryCallable<GetCatalogItemRequest,CatalogItem> getCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<GetCatalogItemRequest,CatalogItem>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
TypeDescription
GrpcOperationsStub
Overrides

importCatalogItemsCallable()

public UnaryCallable<ImportCatalogItemsRequest,Operation> importCatalogItemsCallable()
Returns
TypeDescription
UnaryCallable<ImportCatalogItemsRequest,Operation>
Overrides

importCatalogItemsOperationCallable()

public OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata> importCatalogItemsOperationCallable()
Returns
TypeDescription
OperationCallable<ImportCatalogItemsRequest,ImportCatalogItemsResponse,ImportMetadata>
Overrides

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listCatalogItemsCallable()

public UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse> listCatalogItemsCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsResponse>
Overrides

listCatalogItemsPagedCallable()

public UnaryCallable<ListCatalogItemsRequest,CatalogServiceClient.ListCatalogItemsPagedResponse> listCatalogItemsPagedCallable()
Returns
TypeDescription
UnaryCallable<ListCatalogItemsRequest,ListCatalogItemsPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateCatalogItemCallable()

public UnaryCallable<UpdateCatalogItemRequest,CatalogItem> updateCatalogItemCallable()
Returns
TypeDescription
UnaryCallable<UpdateCatalogItemRequest,CatalogItem>
Overrides