@Generated(value="by gapic-generator") @BetaApi public class TargetInstanceSettings extends ClientSettings<TargetInstanceSettings>
TargetInstanceClient
.
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 deleteTargetInstance to 30 seconds:
TargetInstanceSettings.Builder targetInstanceSettingsBuilder =
TargetInstanceSettings.newBuilder();
targetInstanceSettingsBuilder.deleteTargetInstanceSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
TargetInstanceSettings targetInstanceSettings = targetInstanceSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
TargetInstanceSettings.Builder
Builder for TargetInstanceSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
TargetInstanceSettings(TargetInstanceSettings.Builder settingsBuilder) |
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected TargetInstanceSettings(TargetInstanceSettings.Builder settingsBuilder) throws IOException
IOException
public PagedCallSettings<AggregatedListTargetInstancesHttpRequest,TargetInstanceAggregatedList,TargetInstanceClient.AggregatedListTargetInstancesPagedResponse> aggregatedListTargetInstancesSettings()
public UnaryCallSettings<DeleteTargetInstanceHttpRequest,Operation> deleteTargetInstanceSettings()
public UnaryCallSettings<GetTargetInstanceHttpRequest,TargetInstance> getTargetInstanceSettings()
public UnaryCallSettings<InsertTargetInstanceHttpRequest,Operation> insertTargetInstanceSettings()
public PagedCallSettings<ListTargetInstancesHttpRequest,TargetInstanceList,TargetInstanceClient.ListTargetInstancesPagedResponse> listTargetInstancesSettings()
public static final TargetInstanceSettings create(TargetInstanceStubSettings 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 TargetInstanceSettings.Builder newBuilder()
public static TargetInstanceSettings.Builder newBuilder(ClientContext clientContext)
public TargetInstanceSettings.Builder toBuilder()
toBuilder
in class ClientSettings<TargetInstanceSettings>
Copyright © 2019 Google LLC. All rights reserved.