Class OrderServiceStubSettings.Builder (0.1.0)

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

Builder for OrderServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > OrderServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(OrderServiceStubSettings settings)

protected Builder(OrderServiceStubSettings settings)
Parameter
Name Description
settings OrderServiceStubSettings

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Methods

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

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

build()

public OrderServiceStubSettings build()
Returns
Type Description
OrderServiceStubSettings
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>

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>

unaryMethodSettingsBuilders()

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