Class KeyTrackingServiceStubSettings.Builder (0.30.0)

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

Builder for KeyTrackingServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > KeyTrackingServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(KeyTrackingServiceStubSettings settings)

protected Builder(KeyTrackingServiceStubSettings settings)
Parameter
NameDescription
settingsKeyTrackingServiceStubSettings

Methods

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

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

build()

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

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

getProtectedResourcesSummarySettings()

public UnaryCallSettings.Builder<GetProtectedResourcesSummaryRequest,ProtectedResourcesSummary> getProtectedResourcesSummarySettings()

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

Returns
TypeDescription
Builder<GetProtectedResourcesSummaryRequest,ProtectedResourcesSummary>

searchProtectedResourcesSettings()

public PagedCallSettings.Builder<SearchProtectedResourcesRequest,SearchProtectedResourcesResponse,KeyTrackingServiceClient.SearchProtectedResourcesPagedResponse> searchProtectedResourcesSettings()

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

Returns
TypeDescription
Builder<SearchProtectedResourcesRequest,SearchProtectedResourcesResponse,SearchProtectedResourcesPagedResponse>

unaryMethodSettingsBuilders()

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