Class LookupServiceSettings.Builder (2.41.0)

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

Builder for LookupServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > LookupServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(LookupServiceSettings settings)

protected Builder(LookupServiceSettings settings)
Parameter
NameDescription
settingsLookupServiceSettings

Builder(LookupServiceStubSettings.Builder stubSettings)

protected Builder(LookupServiceStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsLookupServiceStubSettings.Builder

Methods

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

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

build()

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

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
TypeDescription
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getStubSettingsBuilder()

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

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,LookupServiceClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
TypeDescription
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

resolveServiceSettings()

public UnaryCallSettings.Builder<ResolveServiceRequest,ResolveServiceResponse> resolveServiceSettings()

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

Returns
TypeDescription
Builder<ResolveServiceRequest,ResolveServiceResponse>