Class CreativeServiceStubSettings.Builder (0.3.0)

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

Builder for CreativeServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > CreativeServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(CreativeServiceStubSettings settings)

protected Builder(CreativeServiceStubSettings settings)
Parameter
Name Description
settings CreativeServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getCreativeSettings()

public UnaryCallSettings.Builder<GetCreativeRequest,Creative> getCreativeSettings()

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

Returns
Type Description
Builder<GetCreativeRequest,Creative>

listCreativesSettings()

public PagedCallSettings.Builder<ListCreativesRequest,ListCreativesResponse,CreativeServiceClient.ListCreativesPagedResponse> listCreativesSettings()

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

Returns
Type Description
Builder<ListCreativesRequest,ListCreativesResponse,ListCreativesPagedResponse>

unaryMethodSettingsBuilders()

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