Skip to content

Commit a19b46e

Browse files
Google APIscopybara-github
authored andcommitted
docs: Add a link to Pub/Sub filtering language public documentation to pubsub.proto
PiperOrigin-RevId: 315930680
1 parent bc25a10 commit a19b46e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

google/pubsub/v1/pubsub.proto

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ message PubsubMessage {
191191
bytes data = 1;
192192

193193
// Attributes for this message. If this field is empty, the message must
194-
// contain non-empty data.
194+
// contain non-empty data. This can be used to filter messages on the
195+
// subscription.
195196
map<string, string> attributes = 2;
196197

197198
// ID of this message, assigned by the server when the message is published.
@@ -700,7 +701,8 @@ message Subscription {
700701
// value for `expiration_policy.ttl` is 1 day.
701702
ExpirationPolicy expiration_policy = 11;
702703

703-
// An expression written in the Cloud Pub/Sub filter language. If non-empty,
704+
// An expression written in the Pub/Sub [filter
705+
// language](https://cloud.google.com/pubsub/docs/filtering). If non-empty,
704706
// then only `PubsubMessage`s whose `attributes` field matches the filter are
705707
// delivered on this subscription. If empty, then no messages are filtered
706708
// out.

0 commit comments

Comments
 (0)