Class ProductServiceSettings.Builder (2.45.0)

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

Builder for ProductServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > ProductServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(ProductServiceSettings settings)

protected Builder(ProductServiceSettings settings)
Parameter
Name Description
settings ProductServiceSettings

Builder(ProductServiceStubSettings.Builder stubSettings)

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

Methods

addFulfillmentPlacesOperationSettings()

public OperationCallSettings.Builder<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata> addFulfillmentPlacesOperationSettings()

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

Returns
Type Description
Builder<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata>

addFulfillmentPlacesSettings()

public UnaryCallSettings.Builder<AddFulfillmentPlacesRequest,Operation> addFulfillmentPlacesSettings()

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

Returns
Type Description
Builder<AddFulfillmentPlacesRequest,Operation>

addLocalInventoriesOperationSettings()

public OperationCallSettings.Builder<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata> addLocalInventoriesOperationSettings()

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

Returns
Type Description
Builder<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata>

addLocalInventoriesSettings()

public UnaryCallSettings.Builder<AddLocalInventoriesRequest,Operation> addLocalInventoriesSettings()

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

Returns
Type Description
Builder<AddLocalInventoriesRequest,Operation>

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

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

build()

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

createProductSettings()

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

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

Returns
Type Description
Builder<CreateProductRequest,Product>

deleteProductSettings()

public UnaryCallSettings.Builder<DeleteProductRequest,Empty> deleteProductSettings()

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

Returns
Type Description
Builder<DeleteProductRequest,Empty>

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 ProductServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
ProductServiceStubSettings.Builder

importProductsOperationSettings()

public OperationCallSettings.Builder<ImportProductsRequest,ImportProductsResponse,ImportMetadata> importProductsOperationSettings()

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

Returns
Type Description
Builder<ImportProductsRequest,ImportProductsResponse,ImportMetadata>

importProductsSettings()

public UnaryCallSettings.Builder<ImportProductsRequest,Operation> importProductsSettings()

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

Returns
Type Description
Builder<ImportProductsRequest,Operation>

listProductsSettings()

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

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

Returns
Type Description
Builder<ListProductsRequest,ListProductsResponse,ListProductsPagedResponse>

removeFulfillmentPlacesOperationSettings()

public OperationCallSettings.Builder<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata> removeFulfillmentPlacesOperationSettings()

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

Returns
Type Description
Builder<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata>

removeFulfillmentPlacesSettings()

public UnaryCallSettings.Builder<RemoveFulfillmentPlacesRequest,Operation> removeFulfillmentPlacesSettings()

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

Returns
Type Description
Builder<RemoveFulfillmentPlacesRequest,Operation>

removeLocalInventoriesOperationSettings()

public OperationCallSettings.Builder<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata> removeLocalInventoriesOperationSettings()

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

Returns
Type Description
Builder<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata>

removeLocalInventoriesSettings()

public UnaryCallSettings.Builder<RemoveLocalInventoriesRequest,Operation> removeLocalInventoriesSettings()

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

Returns
Type Description
Builder<RemoveLocalInventoriesRequest,Operation>

setInventoryOperationSettings()

public OperationCallSettings.Builder<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata> setInventoryOperationSettings()

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

Returns
Type Description
Builder<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata>

setInventorySettings()

public UnaryCallSettings.Builder<SetInventoryRequest,Operation> setInventorySettings()

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

Returns
Type Description
Builder<SetInventoryRequest,Operation>

updateProductSettings()

public UnaryCallSettings.Builder<UpdateProductRequest,Product> updateProductSettings()

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

Returns
Type Description
Builder<UpdateProductRequest,Product>