Class ProductsServiceSettings.Builder (0.11.0)

public static class ProductsServiceSettings.Builder extends ClientSettings.Builder<ProductsServiceSettings,ProductsServiceSettings.Builder>

Builder for ProductsServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ProductsServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ProductsServiceSettings settings)

protected Builder(ProductsServiceSettings settings)
Parameter
Name Description
settings ProductsServiceSettings

Builder(ProductsServiceStubSettings.Builder stubSettings)

protected Builder(ProductsServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings ProductsServiceStubSettings.Builder

Methods

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

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

build()

public ProductsServiceSettings build()
Returns
Type Description
ProductsServiceSettings
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>

getStubSettingsBuilder()

public ProductsServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
ProductsServiceStubSettings.Builder

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>