@Generated(value="by gapic-generator") @BetaApi public class DiskSettings extends com.google.api.gax.rpc.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 addResourcePoliciesDisk to 30 seconds:
DiskSettings.Builder diskSettingsBuilder =
DiskSettings.newBuilder();
diskSettingsBuilder.addResourcePoliciesDiskSettings().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 |
---|---|
com.google.api.gax.rpc.UnaryCallSettings<AddResourcePoliciesDiskHttpRequest,Operation> |
addResourcePoliciesDiskSettings()
Returns the object with the settings used for calls to addResourcePoliciesDisk.
|
com.google.api.gax.rpc.PagedCallSettings<AggregatedListDisksHttpRequest,DiskAggregatedList,DiskClient.AggregatedListDisksPagedResponse> |
aggregatedListDisksSettings()
Returns the object with the settings used for calls to aggregatedListDisks.
|
static DiskSettings |
create(DiskStubSettings stub) |
com.google.api.gax.rpc.UnaryCallSettings<CreateSnapshotDiskHttpRequest,Operation> |
createSnapshotDiskSettings()
Returns the object with the settings used for calls to createSnapshotDisk.
|
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.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.
|
com.google.api.gax.rpc.UnaryCallSettings<GetDiskHttpRequest,Disk> |
getDiskSettings()
Returns the object with the settings used for calls to getDisk.
|
com.google.api.gax.rpc.UnaryCallSettings<GetIamPolicyDiskHttpRequest,Policy> |
getIamPolicyDiskSettings()
Returns the object with the settings used for calls to getIamPolicyDisk.
|
com.google.api.gax.rpc.UnaryCallSettings<InsertDiskHttpRequest,Operation> |
insertDiskSettings()
Returns the object with the settings used for calls to insertDisk.
|
com.google.api.gax.rpc.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(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.UnaryCallSettings<RemoveResourcePoliciesDiskHttpRequest,Operation> |
removeResourcePoliciesDiskSettings()
Returns the object with the settings used for calls to removeResourcePoliciesDisk.
|
com.google.api.gax.rpc.UnaryCallSettings<ResizeDiskHttpRequest,Operation> |
resizeDiskSettings()
Returns the object with the settings used for calls to resizeDisk.
|
com.google.api.gax.rpc.UnaryCallSettings<SetIamPolicyDiskHttpRequest,Policy> |
setIamPolicyDiskSettings()
Returns the object with the settings used for calls to setIamPolicyDisk.
|
com.google.api.gax.rpc.UnaryCallSettings<SetLabelsDiskHttpRequest,Operation> |
setLabelsDiskSettings()
Returns the object with the settings used for calls to setLabelsDisk.
|
com.google.api.gax.rpc.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.
|
protected DiskSettings(DiskSettings.Builder settingsBuilder) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallSettings<AddResourcePoliciesDiskHttpRequest,Operation> addResourcePoliciesDiskSettings()
public com.google.api.gax.rpc.PagedCallSettings<AggregatedListDisksHttpRequest,DiskAggregatedList,DiskClient.AggregatedListDisksPagedResponse> aggregatedListDisksSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateSnapshotDiskHttpRequest,Operation> createSnapshotDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDiskHttpRequest,Operation> deleteDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetDiskHttpRequest,Disk> getDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetIamPolicyDiskHttpRequest,Policy> getIamPolicyDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<InsertDiskHttpRequest,Operation> insertDiskSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListDisksHttpRequest,DiskList,DiskClient.ListDisksPagedResponse> listDisksSettings()
public com.google.api.gax.rpc.UnaryCallSettings<RemoveResourcePoliciesDiskHttpRequest,Operation> removeResourcePoliciesDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ResizeDiskHttpRequest,Operation> resizeDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<SetIamPolicyDiskHttpRequest,Policy> setIamPolicyDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<SetLabelsDiskHttpRequest,Operation> setLabelsDiskSettings()
public com.google.api.gax.rpc.UnaryCallSettings<TestIamPermissionsDiskHttpRequest,TestPermissionsResponse> testIamPermissionsDiskSettings()
public static final DiskSettings create(DiskStubSettings stub) throws IOException
IOException
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static int getDefaultServicePort()
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()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static DiskSettings.Builder newBuilder()
public static DiskSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public DiskSettings.Builder toBuilder()
toBuilder
in class com.google.api.gax.rpc.ClientSettings<DiskSettings>
Copyright © 2019 Google LLC. All rights reserved.