Class AssetServiceStubSettings.Builder (3.38.0)

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

Builder for AssetServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > AssetServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(AssetServiceStubSettings settings)

protected Builder(AssetServiceStubSettings settings)
Parameter
Name Description
settings AssetServiceStubSettings

Methods

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

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

build()

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

getEndpoint()

public String getEndpoint()

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

Returns
Type Description
String
Overrides

listAssetsSettings()

public PagedCallSettings.Builder<ListAssetsRequest,ListAssetsResponse,AssetServiceClient.ListAssetsPagedResponse> listAssetsSettings()

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

Returns
Type Description
Builder<ListAssetsRequest,ListAssetsResponse,ListAssetsPagedResponse>

unaryMethodSettingsBuilders()

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