Class ProductSearchSettings.Builder

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

Builder for ProductSearchSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ProductSearchSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ProductSearchSettings settings)

protected Builder(ProductSearchSettings settings)
Parameter
NameDescription
settingsProductSearchSettings

Builder(ProductSearchStubSettings.Builder stubSettings)

protected Builder(ProductSearchStubSettings.Builder stubSettings)
Parameter
NameDescription
stubSettingsProductSearchStubSettings.Builder

Methods

addProductToProductSetSettings()

public UnaryCallSettings.Builder<AddProductToProductSetRequest,Empty> addProductToProductSetSettings()

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

Returns
TypeDescription
Builder<AddProductToProductSetRequest,Empty>

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

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

build()

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

createProductSetSettings()

public UnaryCallSettings.Builder<CreateProductSetRequest,ProductSet> createProductSetSettings()

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

Returns
TypeDescription
Builder<CreateProductSetRequest,ProductSet>

createProductSettings()

public UnaryCallSettings.Builder<CreateProductRequest,Product> createProductSettings()

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

Returns
TypeDescription
Builder<CreateProductRequest,Product>

createReferenceImageSettings()

public UnaryCallSettings.Builder<CreateReferenceImageRequest,ReferenceImage> createReferenceImageSettings()

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

Returns
TypeDescription
Builder<CreateReferenceImageRequest,ReferenceImage>