/** * Constructs an instance of SubscriptionAdminClient, using the given settings. This is protected * so that it is easy to make a subclass, but otherwise, the static factory methods should be * preferred. */ protected SubscriptionAdminClient(SubscriptionAdminSettings settings) throws IOException { this.settings = settings; this.stub = ((SubscriberStubSettings) settings.getStubSettings()).createStub(); }
/** Returns the object with the settings used for calls to streamingPull. */ /* package-private */ StreamingCallSettings<StreamingPullRequest, StreamingPullResponse> streamingPullSettings() { return ((SubscriberStubSettings) getStubSettings()).streamingPullSettings(); }
/** Returns the object with the settings used for calls to deleteSubscription. */ public UnaryCallSettings<DeleteSubscriptionRequest, Empty> deleteSubscriptionSettings() { return ((SubscriberStubSettings) getStubSettings()).deleteSubscriptionSettings(); }
/** Returns the object with the settings used for calls to testIamPermissions. */ public UnaryCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse> testIamPermissionsSettings() { return ((SubscriberStubSettings) getStubSettings()).testIamPermissionsSettings(); }
/** Returns the object with the settings used for calls to listSnapshots. */ public PagedCallSettings<ListSnapshotsRequest, ListSnapshotsResponse, ListSnapshotsPagedResponse> listSnapshotsSettings() { return ((SubscriberStubSettings) getStubSettings()).listSnapshotsSettings(); }
/** Returns the object with the settings used for calls to getSubscription. */ public UnaryCallSettings<GetSubscriptionRequest, Subscription> getSubscriptionSettings() { return ((SubscriberStubSettings) getStubSettings()).getSubscriptionSettings(); }
/** Returns the object with the settings used for calls to createSnapshot. */ public UnaryCallSettings<CreateSnapshotRequest, Snapshot> createSnapshotSettings() { return ((SubscriberStubSettings) getStubSettings()).createSnapshotSettings(); }
/** Returns the object with the settings used for calls to listSubscriptions. */ public PagedCallSettings< ListSubscriptionsRequest, ListSubscriptionsResponse, ListSubscriptionsPagedResponse> listSubscriptionsSettings() { return ((SubscriberStubSettings) getStubSettings()).listSubscriptionsSettings(); }
/** Returns the object with the settings used for calls to modifyAckDeadline. */ /* package-private */ UnaryCallSettings<ModifyAckDeadlineRequest, Empty> modifyAckDeadlineSettings() { return ((SubscriberStubSettings) getStubSettings()).modifyAckDeadlineSettings(); }
/** Returns the object with the settings used for calls to acknowledge. */ /* package-private */ UnaryCallSettings<AcknowledgeRequest, Empty> acknowledgeSettings() { return ((SubscriberStubSettings) getStubSettings()).acknowledgeSettings(); }
/** Returns the object with the settings used for calls to updateSnapshot. */ public UnaryCallSettings<UpdateSnapshotRequest, Snapshot> updateSnapshotSettings() { return ((SubscriberStubSettings) getStubSettings()).updateSnapshotSettings(); }
/** Returns the object with the settings used for calls to setIamPolicy. */ public UnaryCallSettings<SetIamPolicyRequest, Policy> setIamPolicySettings() { return ((SubscriberStubSettings) getStubSettings()).setIamPolicySettings(); }
/** Returns the object with the settings used for calls to getIamPolicy. */ public UnaryCallSettings<GetIamPolicyRequest, Policy> getIamPolicySettings() { return ((SubscriberStubSettings) getStubSettings()).getIamPolicySettings(); }
/** Returns the object with the settings used for calls to createSubscription. */ public UnaryCallSettings<Subscription, Subscription> createSubscriptionSettings() { return ((SubscriberStubSettings) getStubSettings()).createSubscriptionSettings(); }
/** Returns the object with the settings used for calls to updateSubscription. */ public UnaryCallSettings<UpdateSubscriptionRequest, Subscription> updateSubscriptionSettings() { return ((SubscriberStubSettings) getStubSettings()).updateSubscriptionSettings(); }
/** Returns the object with the settings used for calls to pull. */ /* package-private */ UnaryCallSettings<PullRequest, PullResponse> pullSettings() { return ((SubscriberStubSettings) getStubSettings()).pullSettings(); }
/** Returns the object with the settings used for calls to modifyPushConfig. */ public UnaryCallSettings<ModifyPushConfigRequest, Empty> modifyPushConfigSettings() { return ((SubscriberStubSettings) getStubSettings()).modifyPushConfigSettings(); }
/** Returns the object with the settings used for calls to deleteSnapshot. */ public UnaryCallSettings<DeleteSnapshotRequest, Empty> deleteSnapshotSettings() { return ((SubscriberStubSettings) getStubSettings()).deleteSnapshotSettings(); }
/** Returns the object with the settings used for calls to seek. */ public UnaryCallSettings<SeekRequest, SeekResponse> seekSettings() { return ((SubscriberStubSettings) getStubSettings()).seekSettings(); }
protected Builder(SubscriptionAdminSettings settings) { super(settings.getStubSettings().toBuilder()); }