Class LocalInventoryServiceStubSettings.Builder (0.16.0)

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

Builder for LocalInventoryServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > LocalInventoryServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
NameDescription
clientContextClientContext

Builder(LocalInventoryServiceStubSettings settings)

protected Builder(LocalInventoryServiceStubSettings settings)
Parameter
NameDescription
settingsLocalInventoryServiceStubSettings

Methods

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

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

build()

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

deleteLocalInventorySettings()

public UnaryCallSettings.Builder<DeleteLocalInventoryRequest,Empty> deleteLocalInventorySettings()

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

Returns
TypeDescription
Builder<DeleteLocalInventoryRequest,Empty>

getEndpoint()

public String getEndpoint()

Returns the endpoint set by the user or the the service's default endpoint.

Returns
TypeDescription
String
Overrides

insertLocalInventorySettings()

public UnaryCallSettings.Builder<InsertLocalInventoryRequest,LocalInventory> insertLocalInventorySettings()

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

Returns
TypeDescription
Builder<InsertLocalInventoryRequest,LocalInventory>

listLocalInventoriesSettings()

public PagedCallSettings.Builder<ListLocalInventoriesRequest,ListLocalInventoriesResponse,LocalInventoryServiceClient.ListLocalInventoriesPagedResponse> listLocalInventoriesSettings()

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

Returns
TypeDescription
Builder<ListLocalInventoriesRequest,ListLocalInventoriesResponse,ListLocalInventoriesPagedResponse>

unaryMethodSettingsBuilders()

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