Class SearchServiceSettings.Builder (0.49.0)

public static class SearchServiceSettings.Builder extends ClientSettings.Builder<SearchServiceSettings,SearchServiceSettings.Builder>

Builder for SearchServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > SearchServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SearchServiceSettings settings)

protected Builder(SearchServiceSettings settings)
Parameter
Name Description
settings SearchServiceSettings

Builder(SearchServiceStubSettings.Builder stubSettings)

protected Builder(SearchServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings SearchServiceStubSettings.Builder

Methods

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

public SearchServiceSettings.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
SearchServiceSettings.Builder

build()

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

getStubSettingsBuilder()

public SearchServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
SearchServiceStubSettings.Builder

searchLiteSettings()

public PagedCallSettings.Builder<SearchRequest,SearchResponse,SearchServiceClient.SearchLitePagedResponse> searchLiteSettings()

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

Returns
Type Description
Builder<SearchRequest,SearchResponse,SearchLitePagedResponse>

searchSettings()

public PagedCallSettings.Builder<SearchRequest,SearchResponse,SearchServiceClient.SearchPagedResponse> searchSettings()

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

Returns
Type Description
Builder<SearchRequest,SearchResponse,SearchPagedResponse>