Skip to content

Commit

Permalink
Internal change
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 689689361
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Oct 25, 2024
1 parent 54d068e commit 5aff431
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions go/go_features.proto
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,26 @@ message GoFeatures {
edition_defaults = { edition: EDITION_LEGACY, value: "API_LEVEL_UNSPECIFIED" },
edition_defaults = { edition: EDITION_2024, value: "API_OPAQUE" }
];

enum StripEnumPrefix {
STRIP_ENUM_PREFIX_UNSPECIFIED = 0;
STRIP_ENUM_PREFIX_KEEP = 1;
STRIP_ENUM_PREFIX_GENERATE_BOTH = 2;
STRIP_ENUM_PREFIX_STRIP = 3;
}

optional StripEnumPrefix strip_enum_prefix = 3 [
retention = RETENTION_RUNTIME,
targets = TARGET_TYPE_ENUM,
targets = TARGET_TYPE_ENUM_ENTRY,
targets = TARGET_TYPE_FILE,
feature_support = {
edition_introduced: EDITION_2024,
},
// TODO: change the default to STRIP_ENUM_PREFIX_STRIP for edition 2025.
edition_defaults = {
edition: EDITION_LEGACY,
value: "STRIP_ENUM_PREFIX_KEEP"
}
];
}

0 comments on commit 5aff431

Please sign in to comment.