Adding Cloud Pub/Sub example

Use `<>` and `[]` to document required and optional arguments.