Class ProductServiceStubSettings.Builder (2.3.0)

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

Builder for ProductServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > ProductServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(ProductServiceStubSettings settings)

protected Builder(ProductServiceStubSettings settings)
Parameter
NameDescription
settingsProductServiceStubSettings

Methods

addFulfillmentPlacesOperationSettings()

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

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

Returns
TypeDescription
Builder<AddFulfillmentPlacesRequest,AddFulfillmentPlacesResponse,AddFulfillmentPlacesMetadata>

addFulfillmentPlacesSettings()

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

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

Returns
TypeDescription
Builder<AddFulfillmentPlacesRequest,Operation>

addLocalInventoriesOperationSettings()

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

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

Returns
TypeDescription
Builder<AddLocalInventoriesRequest,AddLocalInventoriesResponse,AddLocalInventoriesMetadata>

addLocalInventoriesSettings()

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

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

Returns
TypeDescription
Builder<AddLocalInventoriesRequest,Operation>

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

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

build()

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

createProductSettings()

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

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

Returns
TypeDescription
Builder<CreateProductRequest,Product>

deleteProductSettings()

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

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

Returns
TypeDescription
Builder<DeleteProductRequest,Empty>

getProductSettings()

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

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

Returns
TypeDescription
Builder<GetProductRequest,Product>

importProductsOperationSettings()

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

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

Returns
TypeDescription
Builder<ImportProductsRequest,ImportProductsResponse,ImportMetadata>

importProductsSettings()

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

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

Returns
TypeDescription
Builder<ImportProductsRequest,Operation>

listProductsSettings()

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

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

Returns
TypeDescription
Builder<ListProductsRequest,ListProductsResponse,ListProductsPagedResponse>

purgeProductsOperationSettings()

public OperationCallSettings.Builder<PurgeProductsRequest,PurgeProductsResponse,PurgeProductsMetadata> purgeProductsOperationSettings()

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

Returns
TypeDescription
Builder<PurgeProductsRequest,PurgeProductsResponse,PurgeProductsMetadata>

purgeProductsSettings()

public UnaryCallSettings.Builder<PurgeProductsRequest,Operation> purgeProductsSettings()

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

Returns
TypeDescription
Builder<PurgeProductsRequest,Operation>

removeFulfillmentPlacesOperationSettings()

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

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

Returns
TypeDescription
Builder<RemoveFulfillmentPlacesRequest,RemoveFulfillmentPlacesResponse,RemoveFulfillmentPlacesMetadata>

removeFulfillmentPlacesSettings()

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

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

Returns
TypeDescription
Builder<RemoveFulfillmentPlacesRequest,Operation>

removeLocalInventoriesOperationSettings()

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

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

Returns
TypeDescription
Builder<RemoveLocalInventoriesRequest,RemoveLocalInventoriesResponse,RemoveLocalInventoriesMetadata>

removeLocalInventoriesSettings()

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

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

Returns
TypeDescription
Builder<RemoveLocalInventoriesRequest,Operation>

setInventoryOperationSettings()

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

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

Returns
TypeDescription
Builder<SetInventoryRequest,SetInventoryResponse,SetInventoryMetadata>

setInventorySettings()

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

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

Returns
TypeDescription
Builder<SetInventoryRequest,Operation>

unaryMethodSettingsBuilders()

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

updateProductSettings()

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

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

Returns
TypeDescription
Builder<UpdateProductRequest,Product>