Pub/Sub - filtering on subscribers pull requests

Hi All,

I wanted to leverage similar pull request as with the GCP CLI for Pub/Sub subscription:

gcloud pubsub subscriptions pull --filter

I’m looking to leverage the same in Java client libraries.

Is there a way to do this?

Thank you.