Class DataSourcesServiceStubSettings.Builder (0.3.0)

public static class DataSourcesServiceStubSettings.Builder extends StubSettings.Builder<DataSourcesServiceStubSettings,DataSourcesServiceStubSettings.Builder>

Builder for DataSourcesServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > DataSourcesServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(DataSourcesServiceStubSettings settings)

protected Builder(DataSourcesServiceStubSettings settings)
Parameter
Name Description
settings DataSourcesServiceStubSettings

Methods

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public DataSourcesServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description
DataSourcesServiceStubSettings.Builder

build()

public DataSourcesServiceStubSettings build()
Returns
Type Description
DataSourcesServiceStubSettings
Overrides
Exceptions
Type Description
IOException

createDataSourceSettings()

public UnaryCallSettings.Builder<CreateDataSourceRequest,DataSource> createDataSourceSettings()

Returns the builder for the settings used for calls to createDataSource.

Returns
Type Description
Builder<CreateDataSourceRequest,DataSource>

deleteDataSourceSettings()

public UnaryCallSettings.Builder<DeleteDataSourceRequest,Empty> deleteDataSourceSettings()

Returns the builder for the settings used for calls to deleteDataSource.

Returns
Type Description
Builder<DeleteDataSourceRequest,Empty>

fetchDataSourceSettings()

public UnaryCallSettings.Builder<FetchDataSourceRequest,Empty> fetchDataSourceSettings()

Returns the builder for the settings used for calls to fetchDataSource.

Returns
Type Description
Builder<FetchDataSourceRequest,Empty>

getDataSourceSettings()

public UnaryCallSettings.Builder<GetDataSourceRequest,DataSource> getDataSourceSettings()

Returns the builder for the settings used for calls to getDataSource.

Returns
Type Description
Builder<GetDataSourceRequest,DataSource>

listDataSourcesSettings()

public PagedCallSettings.Builder<ListDataSourcesRequest,ListDataSourcesResponse,DataSourcesServiceClient.ListDataSourcesPagedResponse> listDataSourcesSettings()

Returns the builder for the settings used for calls to listDataSources.

Returns
Type Description
Builder<ListDataSourcesRequest,ListDataSourcesResponse,ListDataSourcesPagedResponse>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
Type Description
com.google.common.collect.ImmutableList<Builder<?,?>>

updateDataSourceSettings()

public UnaryCallSettings.Builder<UpdateDataSourceRequest,DataSource> updateDataSourceSettings()

Returns the builder for the settings used for calls to updateDataSource.

Returns
Type Description
Builder<UpdateDataSourceRequest,DataSource>