Class SearchServiceSettings.Builder (2.39.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
NameDescription
clientContextClientContext

Builder(SearchServiceSettings settings)

protected Builder(SearchServiceSettings settings)
Parameter
NameDescription
settingsSearchServiceSettings

Builder(SearchServiceStubSettings.Builder stubSettings)

protected Builder(SearchServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsSearchServiceStubSettings.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
NameDescription
settingsUpdaterApiFunction<Builder<?,?>,java.lang.Void>
Returns
TypeDescription
SearchServiceSettings.Builder

build()

public SearchServiceSettings build()
Returns
TypeDescription
SearchServiceSettings
Overrides
Exceptions
TypeDescription
IOException

getStubSettingsBuilder()

public SearchServiceStubSettings.Builder getStubSettingsBuilder()
Returns
TypeDescription
SearchServiceStubSettings.Builder

searchSettings()

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

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

Returns
TypeDescription
Builder<SearchRequest,SearchResponse,SearchPagedResponse>