@@ -1141,6 +1141,14 @@ message BigQueryConfig {
11411141 // write to in BigQuery. `use_table_schema` and `use_topic_schema` cannot be
11421142 // enabled at the same time.
11431143 bool use_table_schema = 6 [(google.api.field_behavior ) = OPTIONAL ];
1144+
1145+ // Optional. The service account to use to write to BigQuery. The subscription
1146+ // creator or updater that specifies this field must have
1147+ // `iam.serviceAccounts.actAs` permission on the service account. If not
1148+ // specified, the Pub/Sub [service
1149+ // agent](https://cloud.google.com/iam/docs/service-agents),
1150+ // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
1151+ string service_account_email = 7 [(google.api.field_behavior ) = OPTIONAL ];
11441152}
11451153
11461154// Configuration for a Cloud Storage subscription.
@@ -1227,6 +1235,14 @@ message CloudStorageConfig {
12271235 // Output only. An output-only field that indicates whether or not the
12281236 // subscription can receive messages.
12291237 State state = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
1238+
1239+ // Optional. The service account to use to write to Cloud Storage. The
1240+ // subscription creator or updater that specifies this field must have
1241+ // `iam.serviceAccounts.actAs` permission on the service account. If not
1242+ // specified, the Pub/Sub
1243+ // [service agent](https://cloud.google.com/iam/docs/service-agents),
1244+ // service-{project_number}@gcp-sa-pubsub.iam.gserviceaccount.com, is used.
1245+ string service_account_email = 11 [(google.api.field_behavior ) = OPTIONAL ];
12301246}
12311247
12321248// A message and its corresponding acknowledgment ID.
0 commit comments