@Generated(value="by gapic-generator") public class SubscriberStubSettings extends StubSettings<SubscriberStubSettings>
SubscriberStub
.
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:
SubscriberStubSettings.Builder subscriptionAdminSettingsBuilder =
SubscriberStubSettings.newBuilder();
subscriptionAdminSettingsBuilder.createSubscriptionSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
SubscriberStubSettings subscriptionAdminSettings = subscriptionAdminSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
SubscriberStubSettings.Builder
Builder for SubscriberStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
SubscriberStubSettings(SubscriberStubSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings<com.google.pubsub.v1.AcknowledgeRequest,Empty> |
acknowledgeSettings()
Returns the object with the settings used for calls to acknowledge.
|
UnaryCallSettings<com.google.pubsub.v1.CreateSnapshotRequest,com.google.pubsub.v1.Snapshot> |
createSnapshotSettings()
Returns the object with the settings used for calls to createSnapshot.
|
SubscriberStub |
createStub() |
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.ModifyAckDeadlineRequest,Empty> |
modifyAckDeadlineSettings()
Returns the object with the settings used for calls to modifyAckDeadline.
|
UnaryCallSettings<com.google.pubsub.v1.ModifyPushConfigRequest,Empty> |
modifyPushConfigSettings()
Returns the object with the settings used for calls to modifyPushConfig.
|
static SubscriberStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static SubscriberStubSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<com.google.pubsub.v1.PullRequest,com.google.pubsub.v1.PullResponse> |
pullSettings()
Returns the object with the settings used for calls to pull.
|
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.
|
StreamingCallSettings<com.google.pubsub.v1.StreamingPullRequest,com.google.pubsub.v1.StreamingPullResponse> |
streamingPullSettings()
Returns the object with the settings used for calls to streamingPull.
|
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
SubscriberStubSettings.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, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected SubscriberStubSettings(SubscriberStubSettings.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.ModifyAckDeadlineRequest,Empty> modifyAckDeadlineSettings()
public UnaryCallSettings<com.google.pubsub.v1.AcknowledgeRequest,Empty> acknowledgeSettings()
public UnaryCallSettings<com.google.pubsub.v1.PullRequest,com.google.pubsub.v1.PullResponse> pullSettings()
public StreamingCallSettings<com.google.pubsub.v1.StreamingPullRequest,com.google.pubsub.v1.StreamingPullResponse> streamingPullSettings()
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()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public SubscriberStub createStub() 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 SubscriberStubSettings.Builder newBuilder()
public static SubscriberStubSettings.Builder newBuilder(ClientContext clientContext)
public SubscriberStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<SubscriberStubSettings>
Copyright © 2019 Google LLC. All rights reserved.