public static class AdUnitServiceStubSettings.Builder extends StubSettings.Builder<AdUnitServiceStubSettings,AdUnitServiceStubSettings.Builder>
Builder for AdUnitServiceStubSettings.
Constructors
Builder()
protected Builder()
Builder(AdUnitServiceStubSettings settings)
protected Builder(AdUnitServiceStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings |
AdUnitServiceStubSettings |
Builder(ClientContext clientContext)
protected Builder(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext |
ClientContext |
Methods
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
public AdUnitServiceStubSettings.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 |
AdUnitServiceStubSettings.Builder |
build()
public AdUnitServiceStubSettings build()
Returns | |
---|---|
Type | Description |
AdUnitServiceStubSettings |
Exceptions | |
---|---|
Type | Description |
IOException |
getAdUnitSettings()
public UnaryCallSettings.Builder<GetAdUnitRequest,AdUnit> getAdUnitSettings()
Returns the builder for the settings used for calls to getAdUnit.
Returns | |
---|---|
Type | Description |
Builder<GetAdUnitRequest,AdUnit> |
listAdUnitSizesSettings()
public PagedCallSettings.Builder<ListAdUnitSizesRequest,ListAdUnitSizesResponse,AdUnitServiceClient.ListAdUnitSizesPagedResponse> listAdUnitSizesSettings()
Returns the builder for the settings used for calls to listAdUnitSizes.
Returns | |
---|---|
Type | Description |
Builder<ListAdUnitSizesRequest,ListAdUnitSizesResponse,ListAdUnitSizesPagedResponse> |
listAdUnitsSettings()
public PagedCallSettings.Builder<ListAdUnitsRequest,ListAdUnitsResponse,AdUnitServiceClient.ListAdUnitsPagedResponse> listAdUnitsSettings()
Returns the builder for the settings used for calls to listAdUnits.
Returns | |
---|---|
Type | Description |
Builder<ListAdUnitsRequest,ListAdUnitsResponse,ListAdUnitsPagedResponse> |
unaryMethodSettingsBuilders()
public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns | |
---|---|
Type | Description |
com.google.common.collect.ImmutableList<Builder<?,?>> |