@Generated(value="by gapic-generator") @BetaApi public class InstanceSettings extends ClientSettings<InstanceSettings>
InstanceClient
.
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 addAccessConfigInstance to 30 seconds:
InstanceSettings.Builder instanceSettingsBuilder =
InstanceSettings.newBuilder();
instanceSettingsBuilder.addAccessConfigInstanceSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
InstanceSettings instanceSettings = instanceSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
InstanceSettings.Builder
Builder for InstanceSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
InstanceSettings(InstanceSettings.Builder settingsBuilder) |
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected InstanceSettings(InstanceSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<AddAccessConfigInstanceHttpRequest,Operation> addAccessConfigInstanceSettings()
public PagedCallSettings<AggregatedListInstancesHttpRequest,InstanceAggregatedList,InstanceClient.AggregatedListInstancesPagedResponse> aggregatedListInstancesSettings()
public UnaryCallSettings<AttachDiskInstanceHttpRequest,Operation> attachDiskInstanceSettings()
public UnaryCallSettings<DeleteInstanceHttpRequest,Operation> deleteInstanceSettings()
public UnaryCallSettings<DeleteAccessConfigInstanceHttpRequest,Operation> deleteAccessConfigInstanceSettings()
public UnaryCallSettings<DetachDiskInstanceHttpRequest,Operation> detachDiskInstanceSettings()
public UnaryCallSettings<GetInstanceHttpRequest,Instance> getInstanceSettings()
public UnaryCallSettings<GetIamPolicyInstanceHttpRequest,Policy> getIamPolicyInstanceSettings()
public UnaryCallSettings<GetSerialPortOutputInstanceHttpRequest,SerialPortOutput> getSerialPortOutputInstanceSettings()
public UnaryCallSettings<GetShieldedInstanceIdentityInstanceHttpRequest,ShieldedInstanceIdentity> getShieldedInstanceIdentityInstanceSettings()
public UnaryCallSettings<InsertInstanceHttpRequest,Operation> insertInstanceSettings()
public PagedCallSettings<ListInstancesHttpRequest,InstanceList,InstanceClient.ListInstancesPagedResponse> listInstancesSettings()
public PagedCallSettings<ListReferrersInstancesHttpRequest,InstanceListReferrers,InstanceClient.ListReferrersInstancesPagedResponse> listReferrersInstancesSettings()
public UnaryCallSettings<ResetInstanceHttpRequest,Operation> resetInstanceSettings()
public UnaryCallSettings<SetDeletionProtectionInstanceHttpRequest,Operation> setDeletionProtectionInstanceSettings()
public UnaryCallSettings<SetDiskAutoDeleteInstanceHttpRequest,Operation> setDiskAutoDeleteInstanceSettings()
public UnaryCallSettings<SetIamPolicyInstanceHttpRequest,Policy> setIamPolicyInstanceSettings()
public UnaryCallSettings<SetLabelsInstanceHttpRequest,Operation> setLabelsInstanceSettings()
public UnaryCallSettings<SetMachineResourcesInstanceHttpRequest,Operation> setMachineResourcesInstanceSettings()
public UnaryCallSettings<SetMachineTypeInstanceHttpRequest,Operation> setMachineTypeInstanceSettings()
public UnaryCallSettings<SetMetadataInstanceHttpRequest,Operation> setMetadataInstanceSettings()
public UnaryCallSettings<SetMinCpuPlatformInstanceHttpRequest,Operation> setMinCpuPlatformInstanceSettings()
public UnaryCallSettings<SetSchedulingInstanceHttpRequest,Operation> setSchedulingInstanceSettings()
public UnaryCallSettings<SetServiceAccountInstanceHttpRequest,Operation> setServiceAccountInstanceSettings()
public UnaryCallSettings<SetShieldedInstanceIntegrityPolicyInstanceHttpRequest,Operation> setShieldedInstanceIntegrityPolicyInstanceSettings()
public UnaryCallSettings<SetTagsInstanceHttpRequest,Operation> setTagsInstanceSettings()
public UnaryCallSettings<SimulateMaintenanceEventInstanceHttpRequest,Operation> simulateMaintenanceEventInstanceSettings()
public UnaryCallSettings<StartInstanceHttpRequest,Operation> startInstanceSettings()
public UnaryCallSettings<StartWithEncryptionKeyInstanceHttpRequest,Operation> startWithEncryptionKeyInstanceSettings()
public UnaryCallSettings<StopInstanceHttpRequest,Operation> stopInstanceSettings()
public UnaryCallSettings<TestIamPermissionsInstanceHttpRequest,TestPermissionsResponse> testIamPermissionsInstanceSettings()
public UnaryCallSettings<UpdateAccessConfigInstanceHttpRequest,Operation> updateAccessConfigInstanceSettings()
public UnaryCallSettings<UpdateNetworkInterfaceInstanceHttpRequest,Operation> updateNetworkInterfaceInstanceSettings()
public UnaryCallSettings<UpdateShieldedInstanceConfigInstanceHttpRequest,Operation> updateShieldedInstanceConfigInstanceSettings()
public static final InstanceSettings create(InstanceStubSettings 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 InstanceSettings.Builder newBuilder()
public static InstanceSettings.Builder newBuilder(ClientContext clientContext)
public InstanceSettings.Builder toBuilder()
toBuilder
in class ClientSettings<InstanceSettings>
Copyright © 2019 Google LLC. All rights reserved.