Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions content/editions/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ You can set the `api_level` feature starting in edition 2023:
```proto
edition = "2023";

import option "third_party/golang/protobuf/v2/src/google/protobuf/go_features.proto";
import option "google/protobuf/go_features.proto";

// Remove this line after migrating the code to the Opaque API.
option features.(pb.go).api_level = API_HYBRID;
Expand Down Expand Up @@ -993,8 +993,8 @@ edition = "2024";

import "myproject/proto3file.proto";

import option "third_party/protobuf/cpp_features.proto";
import option "third_party/java/protobuf/java_features.proto";
import option "google/protobuf/cpp_features.proto";
import option "google/protobuf/java_features.proto";

message Msg {
myproject.proto3file.Proto3Enum name = 1 [
Expand Down Expand Up @@ -1092,7 +1092,7 @@ After running Prototiller, the equivalent code might look like this:
```proto
edition = "2024";

import option "third_party/protobuf/cpp_features.proto";
import option "google/protobuf/cpp_features.proto";

message Foo {
string bar = 6 [features.(pb.cpp).string_type = STRING];
Expand All @@ -1116,7 +1116,7 @@ After running Prototiller, the equivalent code might look like this:
```proto
edition = "2024";

import option "third_party/protobuf/cpp_features.proto";
import option "google/protobuf/cpp_features.proto";

message Foo {
string bar = 6 [features.(pb.cpp).string_type = STRING];
Expand Down Expand Up @@ -1243,7 +1243,7 @@ files:
```proto
edition = "2024";

import "google/protobuf/go_features.proto";
import option "google/protobuf/go_features.proto";

option features.(pb.go).strip_enum_prefix = STRIP_ENUM_PREFIX_STRIP;

Expand Down Expand Up @@ -1329,9 +1329,9 @@ Edition 2024.
// foo/bar_baz.proto
edition = "2024";

import option "third_party/protobuf/cpp_features.proto";
import option "third_party/java/protobuf/java_features.proto";
import option "third_party/golang/protobuf/v2/src/google/protobuf/go_features.proto";
import option "google/protobuf/cpp_features.proto";
import option "google/protobuf/java_features.proto";
import option "google/protobuf/go_features.proto";

// If previously relying on edition 2023 default java_outer_classname.
option java_outer_classname = "BarBaz" // or BarBazOuterClass
Expand Down
Loading