Class OrderServiceSettings.Builder (0.11.0)

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

Builder for OrderServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > OrderServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(OrderServiceSettings settings)

protected Builder(OrderServiceSettings settings)
Parameter
Name Description
settings OrderServiceSettings

Builder(OrderServiceStubSettings.Builder stubSettings)

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

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

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

getOrderSettings()

public UnaryCallSettings.Builder<GetOrderRequest,Order> getOrderSettings()

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

Returns
Type Description
Builder<GetOrderRequest,Order>

getStubSettingsBuilder()

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

listOrdersSettings()

public PagedCallSettings.Builder<ListOrdersRequest,ListOrdersResponse,OrderServiceClient.ListOrdersPagedResponse> listOrdersSettings()

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

Returns
Type Description
Builder<ListOrdersRequest,ListOrdersResponse,ListOrdersPagedResponse>