Class HttpJsonDataSourcesServiceStub (0.5.0)

public class HttpJsonDataSourcesServiceStub extends DataSourcesServiceStub

REST stub implementation for the DataSourcesService service API.

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

Inheritance

java.lang.Object > DataSourcesServiceStub > HttpJsonDataSourcesServiceStub

Static Methods

create(ClientContext clientContext)

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

create(ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

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

create(DataSourcesServiceStubSettings settings)

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

getMethodDescriptors()

public static List<ApiMethodDescriptor> getMethodDescriptors()
Returns
Type Description
List<ApiMethodDescriptor>

Constructors

HttpJsonDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext)

protected HttpJsonDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext)

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

HttpJsonDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

protected HttpJsonDataSourcesServiceStub(DataSourcesServiceStubSettings settings, ClientContext clientContext, HttpJsonStubCallableFactory callableFactory)

Constructs an instance of HttpJsonDataSourcesServiceStub, 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 HttpJsonStubCallableFactory

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

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