Skip to content

Commit 263055c

Browse files
Google APIscopybara-github
authored andcommitted
feat: deprecate enabled field for message transforms and add disabled field
docs: deprecate `enabled` field for message transforms and add `disabled` field PiperOrigin-RevId: 734192973
1 parent b585489 commit 263055c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

google/pubsub/v1/pubsub.proto

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,13 @@ message MessageTransform {
722722
JavaScriptUDF javascript_udf = 2 [(google.api.field_behavior) = OPTIONAL];
723723
}
724724

725-
// Optional. If set to true, the transform is enabled. If false, the transform
726-
// is disabled and will not be applied to messages. Defaults to `true`.
727-
bool enabled = 3 [(google.api.field_behavior) = OPTIONAL];
725+
// Optional. This field is deprecated, use the `disabled` field to disable
726+
// transforms.
727+
bool enabled = 3 [deprecated = true, (google.api.field_behavior) = OPTIONAL];
728+
729+
// Optional. If true, the transform is disabled and will not be applied to
730+
// messages. Defaults to `false`.
731+
bool disabled = 4 [(google.api.field_behavior) = OPTIONAL];
728732
}
729733

730734
// A topic resource.

0 commit comments

Comments
 (0)