Class LookupServiceStubSettings.Builder (2.37.0)

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

Builder for LookupServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > LookupServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(LookupServiceStubSettings settings)

protected Builder(LookupServiceStubSettings settings)
Parameter
NameDescription
settingsLookupServiceStubSettings

Methods

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

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

build()

public LookupServiceStubSettings build()
Returns
TypeDescription
LookupServiceStubSettings
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

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>

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>

unaryMethodSettingsBuilders()

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