Class GrpcDataSourcesServiceStub (0.1.0)

public class GrpcDataSourcesServiceStub extends DataSourcesServiceStub

gRPC stub implementation for the DataSourcesService service API.

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

Inheritance

java.lang.Object > DataSourcesServiceStub > GrpcDataSourcesServiceStub

Static Methods

create(ClientContext clientContext)

public static final GrpcDataSourcesServiceStub create(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext
Returns
Type Description
GrpcDataSourcesServiceStub
Exceptions
Type Description
IOException

create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)

public static final GrpcDataSourcesServiceStub create(ClientContext clientContext, GrpcStubCallableFactory callableFactory)
Parameters
Name Description
clientContext ClientContext
callableFactory GrpcStubCallableFactory
Returns
Type Description
GrpcDataSourcesServiceStub
Exceptions
Type Description
IOException

create(DataSourcesServiceStubSettings settings)

public static final GrpcDataSourcesServiceStub create(DataSourcesServiceStubSettings settings)
Parameter
Name Description
settings DataSourcesServiceStubSettings
Returns
Type Description
GrpcDataSourcesServiceStub
Exceptions
Type Description
IOException

Constructors

GrpcDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext)

protected GrpcDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext)

Constructs an instance of GrpcDataSourcesServiceStub, 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
Name Description
settings DataSourcesServiceStubSettings
clientContext ClientContext

GrpcDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

protected GrpcDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext, GrpcStubCallableFactory callableFactory)

Constructs an instance of GrpcDataSourcesServiceStub, 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
Name Description
settings DataSourcesServiceStubSettings
clientContext ClientContext
callableFactory GrpcStubCallableFactory

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
InterruptedException

close()

public final void close()
Overrides

createDataSourceCallable()

public UnaryCallable<CreateDataSourceRequest,DataSource> createDataSourceCallable()
Returns
Type Description
UnaryCallable<CreateDataSourceRequest,DataSource>
Overrides

deleteDataSourceCallable()

public UnaryCallable<DeleteDataSourceRequest,Empty> deleteDataSourceCallable()
Returns
Type Description
UnaryCallable<DeleteDataSourceRequest,Empty>
Overrides

fetchDataSourceCallable()

public UnaryCallable<FetchDataSourceRequest,Empty> fetchDataSourceCallable()
Returns
Type Description
UnaryCallable<FetchDataSourceRequest,Empty>
Overrides

getDataSourceCallable()

public UnaryCallable<GetDataSourceRequest,DataSource> getDataSourceCallable()
Returns
Type Description
UnaryCallable<GetDataSourceRequest,DataSource>
Overrides

getOperationsStub()

public GrpcOperationsStub getOperationsStub()
Returns
Type Description
GrpcOperationsStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
boolean

listDataSourcesCallable()

public UnaryCallable<ListDataSourcesRequest,ListDataSourcesResponse> listDataSourcesCallable()
Returns
Type Description
UnaryCallable<ListDataSourcesRequest,ListDataSourcesResponse>
Overrides

listDataSourcesPagedCallable()

public UnaryCallable<ListDataSourcesRequest,DataSourcesServiceClient.ListDataSourcesPagedResponse> listDataSourcesPagedCallable()
Returns
Type Description
UnaryCallable<ListDataSourcesRequest,ListDataSourcesPagedResponse>
Overrides

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDataSourceCallable()

public UnaryCallable<UpdateDataSourceRequest,DataSource> updateDataSourceCallable()
Returns
Type Description
UnaryCallable<UpdateDataSourceRequest,DataSource>
Overrides