Package com.google.cloud.pubsub.v1.stub
Class SubscriberStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<SubscriberStubSettings,SubscriberStubSettings.Builder>
-
- com.google.cloud.pubsub.v1.stub.SubscriberStubSettings.Builder
-
- Enclosing class:
- SubscriberStubSettings
public static class SubscriberStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<SubscriberStubSettings,SubscriberStubSettings.Builder>
Builder for SubscriberStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(SubscriberStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.api.gax.rpc.UnaryCallSettings.Builder<AcknowledgeRequest,com.google.protobuf.Empty>
acknowledgeSettings()
Returns the builder for the settings used for calls to acknowledge.SubscriberStubSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.SubscriberStubSettings
build()
com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateSnapshotRequest,Snapshot>
createSnapshotSettings()
Returns the builder for the settings used for calls to createSnapshot.com.google.api.gax.rpc.UnaryCallSettings.Builder<Subscription,Subscription>
createSubscriptionSettings()
Returns the builder for the settings used for calls to createSubscription.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteSnapshotRequest,com.google.protobuf.Empty>
deleteSnapshotSettings()
Returns the builder for the settings used for calls to deleteSnapshot.com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteSubscriptionRequest,com.google.protobuf.Empty>
deleteSubscriptionSettings()
Returns the builder for the settings used for calls to deleteSubscription.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy>
getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSnapshotRequest,Snapshot>
getSnapshotSettings()
Returns the builder for the settings used for calls to getSnapshot.com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSubscriptionRequest,Subscription>
getSubscriptionSettings()
Returns the builder for the settings used for calls to getSubscription.com.google.api.gax.rpc.PagedCallSettings.Builder<ListSnapshotsRequest,ListSnapshotsResponse,SubscriptionAdminClient.ListSnapshotsPagedResponse>
listSnapshotsSettings()
Returns the builder for the settings used for calls to listSnapshots.com.google.api.gax.rpc.PagedCallSettings.Builder<ListSubscriptionsRequest,ListSubscriptionsResponse,SubscriptionAdminClient.ListSubscriptionsPagedResponse>
listSubscriptionsSettings()
Returns the builder for the settings used for calls to listSubscriptions.com.google.api.gax.rpc.UnaryCallSettings.Builder<ModifyAckDeadlineRequest,com.google.protobuf.Empty>
modifyAckDeadlineSettings()
Returns the builder for the settings used for calls to modifyAckDeadline.com.google.api.gax.rpc.UnaryCallSettings.Builder<ModifyPushConfigRequest,com.google.protobuf.Empty>
modifyPushConfigSettings()
Returns the builder for the settings used for calls to modifyPushConfig.com.google.api.gax.rpc.UnaryCallSettings.Builder<PullRequest,PullResponse>
pullSettings()
Returns the builder for the settings used for calls to pull.com.google.api.gax.rpc.UnaryCallSettings.Builder<SeekRequest,SeekResponse>
seekSettings()
Returns the builder for the settings used for calls to seek.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy>
setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.com.google.api.gax.rpc.StreamingCallSettings.Builder<StreamingPullRequest,StreamingPullResponse>
streamingPullSettings()
Returns the builder for the settings used for calls to streamingPull.com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse>
testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateSnapshotRequest,Snapshot>
updateSnapshotSettings()
Returns the builder for the settings used for calls to updateSnapshot.com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateSubscriptionRequest,Subscription>
updateSubscriptionSettings()
Returns the builder for the settings used for calls to updateSubscription.-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(SubscriberStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public SubscriberStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.Note: This method does not support applying settings to streaming methods.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
createSubscriptionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<Subscription,Subscription> createSubscriptionSettings()
Returns the builder for the settings used for calls to createSubscription.
-
getSubscriptionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSubscriptionRequest,Subscription> getSubscriptionSettings()
Returns the builder for the settings used for calls to getSubscription.
-
updateSubscriptionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateSubscriptionRequest,Subscription> updateSubscriptionSettings()
Returns the builder for the settings used for calls to updateSubscription.
-
listSubscriptionsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListSubscriptionsRequest,ListSubscriptionsResponse,SubscriptionAdminClient.ListSubscriptionsPagedResponse> listSubscriptionsSettings()
Returns the builder for the settings used for calls to listSubscriptions.
-
deleteSubscriptionSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteSubscriptionRequest,com.google.protobuf.Empty> deleteSubscriptionSettings()
Returns the builder for the settings used for calls to deleteSubscription.
-
modifyAckDeadlineSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ModifyAckDeadlineRequest,com.google.protobuf.Empty> modifyAckDeadlineSettings()
Returns the builder for the settings used for calls to modifyAckDeadline.
-
acknowledgeSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<AcknowledgeRequest,com.google.protobuf.Empty> acknowledgeSettings()
Returns the builder for the settings used for calls to acknowledge.
-
pullSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<PullRequest,PullResponse> pullSettings()
Returns the builder for the settings used for calls to pull.
-
streamingPullSettings
public com.google.api.gax.rpc.StreamingCallSettings.Builder<StreamingPullRequest,StreamingPullResponse> streamingPullSettings()
Returns the builder for the settings used for calls to streamingPull.
-
modifyPushConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ModifyPushConfigRequest,com.google.protobuf.Empty> modifyPushConfigSettings()
Returns the builder for the settings used for calls to modifyPushConfig.
-
getSnapshotSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<GetSnapshotRequest,Snapshot> getSnapshotSettings()
Returns the builder for the settings used for calls to getSnapshot.
-
listSnapshotsSettings
public com.google.api.gax.rpc.PagedCallSettings.Builder<ListSnapshotsRequest,ListSnapshotsResponse,SubscriptionAdminClient.ListSnapshotsPagedResponse> listSnapshotsSettings()
Returns the builder for the settings used for calls to listSnapshots.
-
createSnapshotSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CreateSnapshotRequest,Snapshot> createSnapshotSettings()
Returns the builder for the settings used for calls to createSnapshot.
-
updateSnapshotSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<UpdateSnapshotRequest,Snapshot> updateSnapshotSettings()
Returns the builder for the settings used for calls to updateSnapshot.
-
deleteSnapshotSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<DeleteSnapshotRequest,com.google.protobuf.Empty> deleteSnapshotSettings()
Returns the builder for the settings used for calls to deleteSnapshot.
-
seekSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<SeekRequest,SeekResponse> seekSettings()
Returns the builder for the settings used for calls to seek.
-
setIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
Returns the builder for the settings used for calls to setIamPolicy.
-
getIamPolicySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
Returns the builder for the settings used for calls to getIamPolicy.
-
testIamPermissionsSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
Returns the builder for the settings used for calls to testIamPermissions.
-
build
public SubscriberStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<SubscriberStubSettings,SubscriberStubSettings.Builder>
- Throws:
IOException
-
-