Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The
Pub/Sub system can remove the relevant messages from the subscription.
Acknowledging a message whose ack deadline has expired may succeed, but such a message may
be redelivered later. Acknowledging a message more than once will not result in an error.
Sample code:
try (SubscriptionAdminClient subscriptionAdminClient = SubscriptionAdminClient.create()) {
ProjectSubscriptionName subscription = ProjectSubscriptionName.of("[PROJECT]", "[SUBSCRIPTION]");
List<String> ackIds = new ArrayList<>();
AcknowledgeRequest request = AcknowledgeRequest.newBuilder()
.setSubscription(subscription.toString())
.addAllAckIds(ackIds)
.build();
ApiFuture<Void> future = subscriptionAdminClient.acknowledgeCallable().futureCall(request);
// Do something
future.get();
}