Class SearchServiceStubSettings.Builder (2.51.0)

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

Builder for SearchServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > SearchServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(SearchServiceStubSettings settings)

protected Builder(SearchServiceStubSettings settings)
Parameter
Name Description
settings SearchServiceStubSettings

Methods

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

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

build()

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

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>

unaryMethodSettingsBuilders()

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