@Generated(value="by gapic-generator") @BetaApi public class TargetPoolSettings extends ClientSettings<TargetPoolSettings>
TargetPoolClient
.
The default instance has everything set to sensible defaults:
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object. For example, to set the total timeout of addHealthCheckTargetPool to 30 seconds:
TargetPoolSettings.Builder targetPoolSettingsBuilder =
TargetPoolSettings.newBuilder();
targetPoolSettingsBuilder.addHealthCheckTargetPoolSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
TargetPoolSettings targetPoolSettings = targetPoolSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
TargetPoolSettings.Builder
Builder for TargetPoolSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
TargetPoolSettings(TargetPoolSettings.Builder settingsBuilder) |
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected TargetPoolSettings(TargetPoolSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<AddHealthCheckTargetPoolHttpRequest,Operation> addHealthCheckTargetPoolSettings()
public UnaryCallSettings<AddInstanceTargetPoolHttpRequest,Operation> addInstanceTargetPoolSettings()
public PagedCallSettings<AggregatedListTargetPoolsHttpRequest,TargetPoolAggregatedList,TargetPoolClient.AggregatedListTargetPoolsPagedResponse> aggregatedListTargetPoolsSettings()
public UnaryCallSettings<DeleteTargetPoolHttpRequest,Operation> deleteTargetPoolSettings()
public UnaryCallSettings<GetTargetPoolHttpRequest,TargetPool> getTargetPoolSettings()
public UnaryCallSettings<GetHealthTargetPoolHttpRequest,TargetPoolInstanceHealth> getHealthTargetPoolSettings()
public UnaryCallSettings<InsertTargetPoolHttpRequest,Operation> insertTargetPoolSettings()
public PagedCallSettings<ListTargetPoolsHttpRequest,TargetPoolList,TargetPoolClient.ListTargetPoolsPagedResponse> listTargetPoolsSettings()
public UnaryCallSettings<RemoveHealthCheckTargetPoolHttpRequest,Operation> removeHealthCheckTargetPoolSettings()
public UnaryCallSettings<RemoveInstanceTargetPoolHttpRequest,Operation> removeInstanceTargetPoolSettings()
public UnaryCallSettings<SetBackupTargetPoolHttpRequest,Operation> setBackupTargetPoolSettings()
public static final TargetPoolSettings create(TargetPoolStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static int getDefaultServicePort()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static TargetPoolSettings.Builder newBuilder()
public static TargetPoolSettings.Builder newBuilder(ClientContext clientContext)
public TargetPoolSettings.Builder toBuilder()
toBuilder
in class ClientSettings<TargetPoolSettings>
Copyright © 2019 Google LLC. All rights reserved.