# Beam GCP Pub/Sub : Subscribe

## <img src="/files/0dZZb5MUwCm7JpNxqHO4" alt="" data-size="line"> Beam GCP Pub/Sub : Subscribe

### Description <a href="#description" id="description"></a>

The Beam GCP Pub/Sub : Subscribe transform gets messages from a [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) topic using a subscription with the Beam execution engine.

| Hop Engine | X            |
| ---------- | ------------ |
| Spark      | <sup>✓</sup> |
| Flink      | <sup>✓</sup> |
| Dataflow   | <sup>✓</sup> |

### Options

| Option                      | Description                                                             |
| --------------------------- | ----------------------------------------------------------------------- |
| Transform name              | Name of the transform, this name has to be unique in a single pipeline. |
| Subscription name           | Name of the Google Cloud Pub/Sub subscription.                          |
| Topic to subscribe to       | The Google Cloud Pub/Sub topic.                                         |
| The type of message to read | <ul><li>String</li><li>PubsubMessage</li></ul>                          |
| The output field name       | The field containing the result message.                                |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.primeur.com/data-shaper-1.21/knowing-the-data-shaper-designer/pipelines/transforms/beamgcpsubscriber.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
