Class ProductsServiceStubSettings.Builder (0.5.0)

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

Builder for ProductsServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ProductsServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ProductsServiceStubSettings settings)

protected Builder(ProductsServiceStubSettings settings)
Parameter
Name Description
settings ProductsServiceStubSettings

Methods

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

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

build()

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

getProductSettings()

public UnaryCallSettings.Builder<GetProductRequest,Product> getProductSettings()

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

Returns
Type Description
Builder<GetProductRequest,Product>

listProductsSettings()

public PagedCallSettings.Builder<ListProductsRequest,ListProductsResponse,ProductsServiceClient.ListProductsPagedResponse> listProductsSettings()

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

Returns
Type Description
Builder<ListProductsRequest,ListProductsResponse,ListProductsPagedResponse>

unaryMethodSettingsBuilders()

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