@Generated(value="by gapic-generator-java") public class ProjectsSettings extends com.google.api.gax.rpc.ClientSettings<ProjectsSettings>
ProjectsClient.
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 get to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ProjectsSettings.Builder projectsSettingsBuilder = ProjectsSettings.newBuilder();
projectsSettingsBuilder
.getSettings()
.setRetrySettings(
projectsSettingsBuilder
.getSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ProjectsSettings projectsSettings = projectsSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectsSettings.Builder
Builder for ProjectsSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ProjectsSettings(ProjectsSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
static ProjectsSettings |
create(ProjectsStubSettings stub) |
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DisableXpnHostProjectRequest,Operation,Operation> |
disableXpnHostOperationSettings()
Returns the object with the settings used for calls to disableXpnHost.
|
com.google.api.gax.rpc.UnaryCallSettings<DisableXpnHostProjectRequest,Operation> |
disableXpnHostSettings()
Returns the object with the settings used for calls to disableXpnHost.
|
com.google.api.gax.rpc.OperationCallSettings<DisableXpnResourceProjectRequest,Operation,Operation> |
disableXpnResourceOperationSettings()
Returns the object with the settings used for calls to disableXpnResource.
|
com.google.api.gax.rpc.UnaryCallSettings<DisableXpnResourceProjectRequest,Operation> |
disableXpnResourceSettings()
Returns the object with the settings used for calls to disableXpnResource.
|
com.google.api.gax.rpc.OperationCallSettings<EnableXpnHostProjectRequest,Operation,Operation> |
enableXpnHostOperationSettings()
Returns the object with the settings used for calls to enableXpnHost.
|
com.google.api.gax.rpc.UnaryCallSettings<EnableXpnHostProjectRequest,Operation> |
enableXpnHostSettings()
Returns the object with the settings used for calls to enableXpnHost.
|
com.google.api.gax.rpc.OperationCallSettings<EnableXpnResourceProjectRequest,Operation,Operation> |
enableXpnResourceOperationSettings()
Returns the object with the settings used for calls to enableXpnResource.
|
com.google.api.gax.rpc.UnaryCallSettings<EnableXpnResourceProjectRequest,Operation> |
enableXpnResourceSettings()
Returns the object with the settings used for calls to enableXpnResource.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetProjectRequest,Project> |
getSettings()
Returns the object with the settings used for calls to get.
|
com.google.api.gax.rpc.UnaryCallSettings<GetXpnHostProjectRequest,Project> |
getXpnHostSettings()
Returns the object with the settings used for calls to getXpnHost.
|
com.google.api.gax.rpc.PagedCallSettings<GetXpnResourcesProjectsRequest,ProjectsGetXpnResources,ProjectsClient.GetXpnResourcesPagedResponse> |
getXpnResourcesSettings()
Returns the object with the settings used for calls to getXpnResources.
|
com.google.api.gax.rpc.PagedCallSettings<ListXpnHostsProjectsRequest,XpnHostList,ProjectsClient.ListXpnHostsPagedResponse> |
listXpnHostsSettings()
Returns the object with the settings used for calls to listXpnHosts.
|
com.google.api.gax.rpc.OperationCallSettings<MoveDiskProjectRequest,Operation,Operation> |
moveDiskOperationSettings()
Returns the object with the settings used for calls to moveDisk.
|
com.google.api.gax.rpc.UnaryCallSettings<MoveDiskProjectRequest,Operation> |
moveDiskSettings()
Returns the object with the settings used for calls to moveDisk.
|
com.google.api.gax.rpc.OperationCallSettings<MoveInstanceProjectRequest,Operation,Operation> |
moveInstanceOperationSettings()
Returns the object with the settings used for calls to moveInstance.
|
com.google.api.gax.rpc.UnaryCallSettings<MoveInstanceProjectRequest,Operation> |
moveInstanceSettings()
Returns the object with the settings used for calls to moveInstance.
|
static ProjectsSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static ProjectsSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.OperationCallSettings<SetCloudArmorTierProjectRequest,Operation,Operation> |
setCloudArmorTierOperationSettings()
Returns the object with the settings used for calls to setCloudArmorTier.
|
com.google.api.gax.rpc.UnaryCallSettings<SetCloudArmorTierProjectRequest,Operation> |
setCloudArmorTierSettings()
Returns the object with the settings used for calls to setCloudArmorTier.
|
com.google.api.gax.rpc.OperationCallSettings<SetCommonInstanceMetadataProjectRequest,Operation,Operation> |
setCommonInstanceMetadataOperationSettings()
Returns the object with the settings used for calls to setCommonInstanceMetadata.
|
com.google.api.gax.rpc.UnaryCallSettings<SetCommonInstanceMetadataProjectRequest,Operation> |
setCommonInstanceMetadataSettings()
Returns the object with the settings used for calls to setCommonInstanceMetadata.
|
com.google.api.gax.rpc.OperationCallSettings<SetDefaultNetworkTierProjectRequest,Operation,Operation> |
setDefaultNetworkTierOperationSettings()
Returns the object with the settings used for calls to setDefaultNetworkTier.
|
com.google.api.gax.rpc.UnaryCallSettings<SetDefaultNetworkTierProjectRequest,Operation> |
setDefaultNetworkTierSettings()
Returns the object with the settings used for calls to setDefaultNetworkTier.
|
com.google.api.gax.rpc.OperationCallSettings<SetUsageExportBucketProjectRequest,Operation,Operation> |
setUsageExportBucketOperationSettings()
Returns the object with the settings used for calls to setUsageExportBucket.
|
com.google.api.gax.rpc.UnaryCallSettings<SetUsageExportBucketProjectRequest,Operation> |
setUsageExportBucketSettings()
Returns the object with the settings used for calls to setUsageExportBucket.
|
ProjectsSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toStringprotected ProjectsSettings(ProjectsSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallSettings<DisableXpnHostProjectRequest,Operation> disableXpnHostSettings()
public com.google.api.gax.rpc.OperationCallSettings<DisableXpnHostProjectRequest,Operation,Operation> disableXpnHostOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DisableXpnResourceProjectRequest,Operation> disableXpnResourceSettings()
public com.google.api.gax.rpc.OperationCallSettings<DisableXpnResourceProjectRequest,Operation,Operation> disableXpnResourceOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<EnableXpnHostProjectRequest,Operation> enableXpnHostSettings()
public com.google.api.gax.rpc.OperationCallSettings<EnableXpnHostProjectRequest,Operation,Operation> enableXpnHostOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<EnableXpnResourceProjectRequest,Operation> enableXpnResourceSettings()
public com.google.api.gax.rpc.OperationCallSettings<EnableXpnResourceProjectRequest,Operation,Operation> enableXpnResourceOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetProjectRequest,Project> getSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetXpnHostProjectRequest,Project> getXpnHostSettings()
public com.google.api.gax.rpc.PagedCallSettings<GetXpnResourcesProjectsRequest,ProjectsGetXpnResources,ProjectsClient.GetXpnResourcesPagedResponse> getXpnResourcesSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListXpnHostsProjectsRequest,XpnHostList,ProjectsClient.ListXpnHostsPagedResponse> listXpnHostsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<MoveDiskProjectRequest,Operation> moveDiskSettings()
public com.google.api.gax.rpc.OperationCallSettings<MoveDiskProjectRequest,Operation,Operation> moveDiskOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<MoveInstanceProjectRequest,Operation> moveInstanceSettings()
public com.google.api.gax.rpc.OperationCallSettings<MoveInstanceProjectRequest,Operation,Operation> moveInstanceOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<SetCloudArmorTierProjectRequest,Operation> setCloudArmorTierSettings()
public com.google.api.gax.rpc.OperationCallSettings<SetCloudArmorTierProjectRequest,Operation,Operation> setCloudArmorTierOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<SetCommonInstanceMetadataProjectRequest,Operation> setCommonInstanceMetadataSettings()
public com.google.api.gax.rpc.OperationCallSettings<SetCommonInstanceMetadataProjectRequest,Operation,Operation> setCommonInstanceMetadataOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<SetDefaultNetworkTierProjectRequest,Operation> setDefaultNetworkTierSettings()
public com.google.api.gax.rpc.OperationCallSettings<SetDefaultNetworkTierProjectRequest,Operation,Operation> setDefaultNetworkTierOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<SetUsageExportBucketProjectRequest,Operation> setUsageExportBucketSettings()
public com.google.api.gax.rpc.OperationCallSettings<SetUsageExportBucketProjectRequest,Operation,Operation> setUsageExportBucketOperationSettings()
public static final ProjectsSettings create(ProjectsStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static ProjectsSettings.Builder newBuilder()
public static ProjectsSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public ProjectsSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<ProjectsSettings>Copyright © 2024 Google LLC. All rights reserved.