@Generated(value="by gapic-generator") @BetaApi public class ProjectSettings extends ClientSettings<ProjectSettings>
ProjectClient
.
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 disableXpnHostProject to 30 seconds:
ProjectSettings.Builder projectSettingsBuilder =
ProjectSettings.newBuilder();
projectSettingsBuilder.disableXpnHostProjectSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
ProjectSettings projectSettings = projectSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
ProjectSettings.Builder
Builder for ProjectSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
ProjectSettings(ProjectSettings.Builder settingsBuilder) |
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected ProjectSettings(ProjectSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<DisableXpnHostProjectHttpRequest,Operation> disableXpnHostProjectSettings()
public UnaryCallSettings<DisableXpnResourceProjectHttpRequest,Operation> disableXpnResourceProjectSettings()
public UnaryCallSettings<EnableXpnHostProjectHttpRequest,Operation> enableXpnHostProjectSettings()
public UnaryCallSettings<EnableXpnResourceProjectHttpRequest,Operation> enableXpnResourceProjectSettings()
public UnaryCallSettings<GetProjectHttpRequest,Project> getProjectSettings()
public UnaryCallSettings<GetXpnHostProjectHttpRequest,Project> getXpnHostProjectSettings()
public PagedCallSettings<GetXpnResourcesProjectsHttpRequest,ProjectsGetXpnResources,ProjectClient.GetXpnResourcesProjectsPagedResponse> getXpnResourcesProjectsSettings()
public PagedCallSettings<ListXpnHostsProjectsHttpRequest,XpnHostList,ProjectClient.ListXpnHostsProjectsPagedResponse> listXpnHostsProjectsSettings()
public UnaryCallSettings<MoveDiskProjectHttpRequest,Operation> moveDiskProjectSettings()
public UnaryCallSettings<MoveInstanceProjectHttpRequest,Operation> moveInstanceProjectSettings()
public UnaryCallSettings<SetCommonInstanceMetadataProjectHttpRequest,Operation> setCommonInstanceMetadataProjectSettings()
public UnaryCallSettings<SetDefaultNetworkTierProjectHttpRequest,Operation> setDefaultNetworkTierProjectSettings()
public UnaryCallSettings<SetUsageExportBucketProjectHttpRequest,Operation> setUsageExportBucketProjectSettings()
public static final ProjectSettings create(ProjectStubSettings 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 ProjectSettings.Builder newBuilder()
public static ProjectSettings.Builder newBuilder(ClientContext clientContext)
public ProjectSettings.Builder toBuilder()
toBuilder
in class ClientSettings<ProjectSettings>
Copyright © 2019 Google LLC. All rights reserved.