Skip to content

Commit 811a857

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: add custom datetime format for Cloud Storage subscriptions
PiperOrigin-RevId: 619178723
1 parent 8984ddb commit 811a857

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

google/pubsub/v1/pubsub.proto

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ message IngestionDataSourceSettings {
203203
KINESIS_PERMISSION_DENIED = 2;
204204

205205
// Permission denied encountered while publishing to the topic. This can
206-
// happen due to Pub/Sub SA has not been granted the [appropriate publish
206+
// happen if the Pub/Sub SA has not been granted the [appropriate publish
207207
// permissions](https://cloud.google.com/pubsub/docs/access-control#pubsub.publisher)
208208
PUBLISH_PERMISSION_DENIED = 3;
209209

@@ -1197,6 +1197,11 @@ message CloudStorageConfig {
11971197
// Must not end in "/".
11981198
string filename_suffix = 3 [(google.api.field_behavior) = OPTIONAL];
11991199

1200+
// Optional. User-provided format string specifying how to represent datetimes
1201+
// in Cloud Storage filenames. See the [datetime format
1202+
// guidance](https://cloud.google.com/pubsub/docs/create-cloudstorage-subscription#file_names).
1203+
string filename_datetime_format = 10 [(google.api.field_behavior) = OPTIONAL];
1204+
12001205
// Defaults to text format.
12011206
oneof output_format {
12021207
// Optional. If set, message data will be written to Cloud Storage in text

0 commit comments

Comments
 (0)