Google Pub/Sub Message Binding v0.1.0
The Google Cloud Pub/Sub message binding v0.1.0 defines message-specific properties for the Google Cloud Pub/Sub protocol.
Overview
This binding object allows you to specify an orderingKey, a map of attributes, and an optional schema definition.
Message Properties
| Property | Type | Required | Description |
|---|---|---|---|
bindingVersion | string | No | Binding version (defaults to 0.1.0). |
attributes | object | No | A map of key-value pairs for metadata. |
orderingKey | string | No | A key that ensures messages with the same key are delivered in order. |
schema | object | No | A schema that the message payload should validate against. |
schema Object
| Property | Type | Required | Description |
|---|---|---|---|
name | string | Yes | The full resource name of the schema. |
type | string | Yes | The type of the schema (e.g., avro, protobuf). |
Example
yaml
messages:
userLocationUpdate:
bindings:
googlepubsub:
bindingVersion: '0.1.0'
orderingKey: 'userId'
schema:
type: 'avro'
name: 'projects/my-gcp-project/schemas/UserLocation'Changelog
Version 0.1.0
- Initial release.
- The
schemaobject required atypefield, which was removed inv0.2.0as it was redundant with the schema definition in GCP.