@Generated(value="by gapic-generator") @BetaApi public class DiskStubSettings extends StubSettings<DiskStubSettings>
DiskStub
.
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:
DiskStubSettings.Builder diskSettingsBuilder =
DiskStubSettings.newBuilder();
diskSettingsBuilder.createSnapshotDiskSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
DiskStubSettings diskSettings = diskSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
DiskStubSettings.Builder
Builder for DiskStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
DiskStubSettings(DiskStubSettings.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.
|
UnaryCallSettings<CreateSnapshotDiskHttpRequest,Operation> |
createSnapshotDiskSettings()
Returns the object with the settings used for calls to createSnapshotDisk.
|
DiskStub |
createStub() |
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 DiskStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static DiskStubSettings.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.
|
DiskStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected DiskStubSettings(DiskStubSettings.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()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public DiskStub createStub() 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 DiskStubSettings.Builder newBuilder()
public static DiskStubSettings.Builder newBuilder(ClientContext clientContext)
public DiskStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<DiskStubSettings>
Copyright © 2019 Google LLC. All rights reserved.