@Generated(value="by gapic-generator-java") public class ProjectsStubSettings extends com.google.api.gax.rpc.StubSettings<ProjectsStubSettings>
ProjectsStub.
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
ProjectsStubSettings.Builder projectsSettingsBuilder = ProjectsStubSettings.newBuilder();
projectsSettingsBuilder
.getSettings()
.setRetrySettings(
projectsSettingsBuilder
.getSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
ProjectsStubSettings projectsSettings = projectsSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ProjectsStubSettings.Builder
Builder for ProjectsStubSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ProjectsStubSettings(ProjectsStubSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
ProjectsStub |
createStub() |
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 String |
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
String |
getServiceName()
Returns the default service name.
|
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 ProjectsStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static ProjectsStubSettings.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.
|
ProjectsStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toStringprotected ProjectsStubSettings(ProjectsStubSettings.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 ProjectsStub createStub() throws IOException
IOExceptionpublic String getServiceName()
getServiceName in class com.google.api.gax.rpc.StubSettings<ProjectsStubSettings>public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
@ObsoleteApi(value="Use getEndpoint() instead") public static String getDefaultEndpoint()
public static String getDefaultMtlsEndpoint()
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 ProjectsStubSettings.Builder newBuilder()
public static ProjectsStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public ProjectsStubSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.StubSettings<ProjectsStubSettings>Copyright © 2024 Google LLC. All rights reserved.