Class RoutesStubSettings.Builder (1.49.0)

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

Builder for RoutesStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > RoutesStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(RoutesStubSettings settings)

protected Builder(RoutesStubSettings settings)
Parameter
NameDescription
settingsRoutesStubSettings

Methods

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

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

build()

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

deleteOperationSettings()

public OperationCallSettings.Builder<DeleteRouteRequest,Operation,Operation> deleteOperationSettings()

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

Returns
TypeDescription
Builder<DeleteRouteRequest,Operation,Operation>

deleteSettings()

public UnaryCallSettings.Builder<DeleteRouteRequest,Operation> deleteSettings()

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

Returns
TypeDescription
Builder<DeleteRouteRequest,Operation>

getEndpoint()

public String getEndpoint()

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

Returns
TypeDescription
String
Overrides

getSettings()

public UnaryCallSettings.Builder<GetRouteRequest,Route> getSettings()

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

Returns
TypeDescription
Builder<GetRouteRequest,Route>

insertOperationSettings()

public OperationCallSettings.Builder<InsertRouteRequest,Operation,Operation> insertOperationSettings()

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

Returns
TypeDescription
Builder<InsertRouteRequest,Operation,Operation>

insertSettings()

public UnaryCallSettings.Builder<InsertRouteRequest,Operation> insertSettings()

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

Returns
TypeDescription
Builder<InsertRouteRequest,Operation>

listSettings()

public PagedCallSettings.Builder<ListRoutesRequest,RouteList,RoutesClient.ListPagedResponse> listSettings()

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

Returns
TypeDescription
Builder<ListRoutesRequest,RouteList,ListPagedResponse>

unaryMethodSettingsBuilders()

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