Skip to content

Commit

Permalink
feat: Add publish_time to PubsubMessage
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
jskeet committed Feb 9, 2021
1 parent 3385b02 commit 503f45b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@
"messageId": {
"type": "string",
"description": "ID of this message, assigned by the server when the message is published.\n Guaranteed to be unique within the topic."
},
"publishTime": {
"type": "string",
"description": "The time at which the message was published, populated by the server when\n it receives the `Publish` call.",
"format": "date-time"
}
},
"additionalProperties": true,
Expand Down
6 changes: 6 additions & 0 deletions proto/google/events/cloud/pubsub/v1/data.proto
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ syntax = "proto3";

package google.events.cloud.pubsub.v1;

import "google/protobuf/timestamp.proto";

option csharp_namespace = "Google.Events.Protobuf.Cloud.PubSub.V1";

// The event data when a message is published to a topic.
Expand All @@ -40,4 +42,8 @@ message PubsubMessage {
// ID of this message, assigned by the server when the message is published.
// Guaranteed to be unique within the topic.
string message_id = 3;

// The time at which the message was published, populated by the server when
// it receives the `Publish` call.
google.protobuf.Timestamp publish_time = 4;
}

0 comments on commit 503f45b

Please sign in to comment.