@Generated(value="by gapic-generator") @BetaApi public class DiskSettings extends ClientSettings<DiskSettings>
DiskClient
.
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 createSnapshotDisk to 30 seconds:
DiskSettings.Builder diskSettingsBuilder =
DiskSettings.newBuilder();
diskSettingsBuilder.createSnapshotDiskSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
DiskSettings diskSettings = diskSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
DiskSettings.Builder
Builder for DiskSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
DiskSettings(DiskSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
PagedCallSettings<AggregatedListDisksHttpRequest,DiskAggregatedList,DiskClient.AggregatedListDisksPagedResponse> |
aggregatedListDisksSettings()
Returns the object with the settings used for calls to aggregatedListDisks.
|
static DiskSettings |
create(DiskStubSettings stub) |
UnaryCallSettings<CreateSnapshotDiskHttpRequest,Operation> |
createSnapshotDiskSettings()
Returns the object with the settings used for calls to createSnapshotDisk.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<DeleteDiskHttpRequest,Operation> |
deleteDiskSettings()
Returns the object with the settings used for calls to deleteDisk.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static int |
getDefaultServicePort()
Returns the default service port.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<GetDiskHttpRequest,Disk> |
getDiskSettings()
Returns the object with the settings used for calls to getDisk.
|
UnaryCallSettings<GetIamPolicyDiskHttpRequest,Policy> |
getIamPolicyDiskSettings()
Returns the object with the settings used for calls to getIamPolicyDisk.
|
UnaryCallSettings<InsertDiskHttpRequest,Operation> |
insertDiskSettings()
Returns the object with the settings used for calls to insertDisk.
|
PagedCallSettings<ListDisksHttpRequest,DiskList,DiskClient.ListDisksPagedResponse> |
listDisksSettings()
Returns the object with the settings used for calls to listDisks.
|
static DiskSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static DiskSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<ResizeDiskHttpRequest,Operation> |
resizeDiskSettings()
Returns the object with the settings used for calls to resizeDisk.
|
UnaryCallSettings<SetIamPolicyDiskHttpRequest,Policy> |
setIamPolicyDiskSettings()
Returns the object with the settings used for calls to setIamPolicyDisk.
|
UnaryCallSettings<SetLabelsDiskHttpRequest,Operation> |
setLabelsDiskSettings()
Returns the object with the settings used for calls to setLabelsDisk.
|
UnaryCallSettings<TestIamPermissionsDiskHttpRequest,TestPermissionsResponse> |
testIamPermissionsDiskSettings()
Returns the object with the settings used for calls to testIamPermissionsDisk.
|
DiskSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected DiskSettings(DiskSettings.Builder settingsBuilder) throws IOException
IOException
public PagedCallSettings<AggregatedListDisksHttpRequest,DiskAggregatedList,DiskClient.AggregatedListDisksPagedResponse> aggregatedListDisksSettings()
public UnaryCallSettings<CreateSnapshotDiskHttpRequest,Operation> createSnapshotDiskSettings()
public UnaryCallSettings<DeleteDiskHttpRequest,Operation> deleteDiskSettings()
public UnaryCallSettings<GetDiskHttpRequest,Disk> getDiskSettings()
public UnaryCallSettings<GetIamPolicyDiskHttpRequest,Policy> getIamPolicyDiskSettings()
public UnaryCallSettings<InsertDiskHttpRequest,Operation> insertDiskSettings()
public PagedCallSettings<ListDisksHttpRequest,DiskList,DiskClient.ListDisksPagedResponse> listDisksSettings()
public UnaryCallSettings<ResizeDiskHttpRequest,Operation> resizeDiskSettings()
public UnaryCallSettings<SetIamPolicyDiskHttpRequest,Policy> setIamPolicyDiskSettings()
public UnaryCallSettings<SetLabelsDiskHttpRequest,Operation> setLabelsDiskSettings()
public UnaryCallSettings<TestIamPermissionsDiskHttpRequest,TestPermissionsResponse> testIamPermissionsDiskSettings()
public static final DiskSettings create(DiskStubSettings 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 DiskSettings.Builder newBuilder()
public static DiskSettings.Builder newBuilder(ClientContext clientContext)
public DiskSettings.Builder toBuilder()
toBuilder
in class ClientSettings<DiskSettings>
Copyright © 2019 Google LLC. All rights reserved.