Skip to content

Commit f29a82a

Browse files
Google APIscopybara-github
authored andcommitted
feat: add use_topic_schema for Cloud Storage Subscriptions
PiperOrigin-RevId: 643385701
1 parent 9199c38 commit f29a82a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

google/pubsub/v1/pubsub.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,10 @@ message CloudStorageConfig {
11681168
// data (for example, an ordering_key, if present) are added as entries in
11691169
// the attributes map.
11701170
bool write_metadata = 1 [(google.api.field_behavior) = OPTIONAL];
1171+
1172+
// Optional. When true, the output Cloud Storage file will be serialized
1173+
// using the topic schema, if it exists.
1174+
bool use_topic_schema = 2 [(google.api.field_behavior) = OPTIONAL];
11711175
}
11721176

11731177
// Possible states for a Cloud Storage subscription.
@@ -1188,6 +1192,10 @@ message CloudStorageConfig {
11881192
// Cannot write to the destination because enforce_in_transit is set to true
11891193
// and the destination locations are not in the allowed regions.
11901194
IN_TRANSIT_LOCATION_RESTRICTION = 4;
1195+
1196+
// Cannot write to the Cloud Storage bucket due to an incompatibility
1197+
// between the topic schema and subscription settings.
1198+
SCHEMA_MISMATCH = 5;
11911199
}
11921200

11931201
// Required. User-provided name for the Cloud Storage bucket.

0 commit comments

Comments
 (0)