@Generated(value="by gapic-generator") @BetaApi public class SnapshotStubSettings extends StubSettings<SnapshotStubSettings>
SnapshotStub
.
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 deleteSnapshot to 30 seconds:
SnapshotStubSettings.Builder snapshotSettingsBuilder =
SnapshotStubSettings.newBuilder();
snapshotSettingsBuilder.deleteSnapshotSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
SnapshotStubSettings snapshotSettings = snapshotSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
SnapshotStubSettings.Builder
Builder for SnapshotStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
SnapshotStubSettings(SnapshotStubSettings.Builder settingsBuilder) |
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected SnapshotStubSettings(SnapshotStubSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<DeleteSnapshotHttpRequest,Operation> deleteSnapshotSettings()
public UnaryCallSettings<GetSnapshotHttpRequest,Snapshot> getSnapshotSettings()
public UnaryCallSettings<GetIamPolicySnapshotHttpRequest,Policy> getIamPolicySnapshotSettings()
public PagedCallSettings<ListSnapshotsHttpRequest,SnapshotList,SnapshotClient.ListSnapshotsPagedResponse> listSnapshotsSettings()
public UnaryCallSettings<SetIamPolicySnapshotHttpRequest,Policy> setIamPolicySnapshotSettings()
public UnaryCallSettings<SetLabelsSnapshotHttpRequest,Operation> setLabelsSnapshotSettings()
public UnaryCallSettings<TestIamPermissionsSnapshotHttpRequest,TestPermissionsResponse> testIamPermissionsSnapshotSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public SnapshotStub 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 SnapshotStubSettings.Builder newBuilder()
public static SnapshotStubSettings.Builder newBuilder(ClientContext clientContext)
public SnapshotStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<SnapshotStubSettings>
Copyright © 2019 Google LLC. All rights reserved.