@Generated(value="by gapic-generator") public class SubscriptionAdminSettings extends ClientSettings<SubscriptionAdminSettings>
SubscriptionAdminClient
.
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 createSubscription to 30 seconds:
SubscriptionAdminSettings.Builder subscriptionAdminSettingsBuilder =
SubscriptionAdminSettings.newBuilder();
subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
SubscriptionAdminSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionAdminSettings.Builder
Builder for SubscriptionAdminSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
SubscriptionAdminSettings(SubscriptionAdminSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
static SubscriptionAdminSettings |
create(SubscriberStubSettings stub) |
UnaryCallSettings<com.google.pubsub.v1.CreateSnapshotRequest,com.google.pubsub.v1.Snapshot> |
createSnapshotSettings()
Returns the object with the settings used for calls to createSnapshot.
|
UnaryCallSettings<com.google.pubsub.v1.Subscription,com.google.pubsub.v1.Subscription> |
createSubscriptionSettings()
Returns the object with the settings used for calls to createSubscription.
|
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 InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<com.google.pubsub.v1.DeleteSnapshotRequest,Empty> |
deleteSnapshotSettings()
Returns the object with the settings used for calls to deleteSnapshot.
|
UnaryCallSettings<com.google.pubsub.v1.DeleteSubscriptionRequest,Empty> |
deleteSubscriptionSettings()
Returns the object with the settings used for calls to deleteSubscription.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
UnaryCallSettings<com.google.pubsub.v1.GetSubscriptionRequest,com.google.pubsub.v1.Subscription> |
getSubscriptionSettings()
Returns the object with the settings used for calls to getSubscription.
|
PagedCallSettings<com.google.pubsub.v1.ListSnapshotsRequest,com.google.pubsub.v1.ListSnapshotsResponse,SubscriptionAdminClient.ListSnapshotsPagedResponse> |
listSnapshotsSettings()
Returns the object with the settings used for calls to listSnapshots.
|
PagedCallSettings<com.google.pubsub.v1.ListSubscriptionsRequest,com.google.pubsub.v1.ListSubscriptionsResponse,SubscriptionAdminClient.ListSubscriptionsPagedResponse> |
listSubscriptionsSettings()
Returns the object with the settings used for calls to listSubscriptions.
|
UnaryCallSettings<com.google.pubsub.v1.ModifyPushConfigRequest,Empty> |
modifyPushConfigSettings()
Returns the object with the settings used for calls to modifyPushConfig.
|
static SubscriptionAdminSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static SubscriptionAdminSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<com.google.pubsub.v1.SeekRequest,com.google.pubsub.v1.SeekResponse> |
seekSettings()
Returns the object with the settings used for calls to seek.
|
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
SubscriptionAdminSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<com.google.pubsub.v1.UpdateSnapshotRequest,com.google.pubsub.v1.Snapshot> |
updateSnapshotSettings()
Returns the object with the settings used for calls to updateSnapshot.
|
UnaryCallSettings<com.google.pubsub.v1.UpdateSubscriptionRequest,com.google.pubsub.v1.Subscription> |
updateSubscriptionSettings()
Returns the object with the settings used for calls to updateSubscription.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected SubscriptionAdminSettings(SubscriptionAdminSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<com.google.pubsub.v1.Subscription,com.google.pubsub.v1.Subscription> createSubscriptionSettings()
public UnaryCallSettings<com.google.pubsub.v1.GetSubscriptionRequest,com.google.pubsub.v1.Subscription> getSubscriptionSettings()
public UnaryCallSettings<com.google.pubsub.v1.UpdateSubscriptionRequest,com.google.pubsub.v1.Subscription> updateSubscriptionSettings()
public PagedCallSettings<com.google.pubsub.v1.ListSubscriptionsRequest,com.google.pubsub.v1.ListSubscriptionsResponse,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsSettings()
public UnaryCallSettings<com.google.pubsub.v1.DeleteSubscriptionRequest,Empty> deleteSubscriptionSettings()
public UnaryCallSettings<com.google.pubsub.v1.ModifyPushConfigRequest,Empty> modifyPushConfigSettings()
public PagedCallSettings<com.google.pubsub.v1.ListSnapshotsRequest,com.google.pubsub.v1.ListSnapshotsResponse,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsSettings()
public UnaryCallSettings<com.google.pubsub.v1.CreateSnapshotRequest,com.google.pubsub.v1.Snapshot> createSnapshotSettings()
public UnaryCallSettings<com.google.pubsub.v1.UpdateSnapshotRequest,com.google.pubsub.v1.Snapshot> updateSnapshotSettings()
public UnaryCallSettings<com.google.pubsub.v1.DeleteSnapshotRequest,Empty> deleteSnapshotSettings()
public UnaryCallSettings<com.google.pubsub.v1.SeekRequest,com.google.pubsub.v1.SeekResponse> seekSettings()
public UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public static final SubscriptionAdminSettings create(SubscriberStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
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 SubscriptionAdminSettings.Builder newBuilder()
public static SubscriptionAdminSettings.Builder newBuilder(ClientContext clientContext)
public SubscriptionAdminSettings.Builder toBuilder()
toBuilder
in class ClientSettings<SubscriptionAdminSettings>
Copyright © 2019 Google LLC. All rights reserved.