# DestinationPubsub


## Fields

| Field                                                                                                                                                                          | Type                                                                                                                                                                           | Required                                                                                                                                                                       | Description                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `credentials_json`                                                                                                                                                             | *str*                                                                                                                                                                          | :heavy_check_mark:                                                                                                                                                             | The contents of the JSON service account key. Check out the <a href="https://docs.airbyte.com/integrations/destinations/pubsub">docs</a> if you need help generating this key. |
| `project_id`                                                                                                                                                                   | *str*                                                                                                                                                                          | :heavy_check_mark:                                                                                                                                                             | The GCP project ID for the project containing the target PubSub.                                                                                                               |
| `topic_id`                                                                                                                                                                     | *str*                                                                                                                                                                          | :heavy_check_mark:                                                                                                                                                             | The PubSub topic ID in the given GCP project ID.                                                                                                                               |
| `batching_delay_threshold`                                                                                                                                                     | *Optional[int]*                                                                                                                                                                | :heavy_minus_sign:                                                                                                                                                             | Number of ms before the buffer is flushed                                                                                                                                      |
| `batching_element_count_threshold`                                                                                                                                             | *Optional[int]*                                                                                                                                                                | :heavy_minus_sign:                                                                                                                                                             | Number of messages before the buffer is flushed                                                                                                                                |
| `batching_enabled`                                                                                                                                                             | *Optional[bool]*                                                                                                                                                               | :heavy_minus_sign:                                                                                                                                                             | If TRUE messages will be buffered instead of sending them one by one                                                                                                           |
| `batching_request_bytes_threshold`                                                                                                                                             | *Optional[int]*                                                                                                                                                                | :heavy_minus_sign:                                                                                                                                                             | Number of bytes before the buffer is flushed                                                                                                                                   |
| `destination_type`                                                                                                                                                             | [models.Pubsub](../models/pubsub.md)                                                                                                                                           | :heavy_check_mark:                                                                                                                                                             | N/A                                                                                                                                                                            |
| `ordering_enabled`                                                                                                                                                             | *Optional[bool]*                                                                                                                                                               | :heavy_minus_sign:                                                                                                                                                             | If TRUE PubSub publisher will have <a href="https://cloud.google.com/pubsub/docs/ordering">message ordering</a> enabled. Every message will have an ordering key of stream     |