Skip to content

Commit 9026690

Browse files
Protocol Buffer TeamLogofile
authored andcommitted
This change includes the following:
* Update information about recommended options for a Java proto * Update the version supported topic to reflect the release of v26 PiperOrigin-RevId: 615513696 Change-Id: Ia38ed5a1e96a167c921ea59908f7dccd11e07f99
1 parent 7b2a09e commit 9026690

File tree

2 files changed

+337
-159
lines changed

2 files changed

+337
-159
lines changed

content/reference/java/java-proto-names.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@ java_api_version | java_multiple_files | java_alt_api_package | java_package | j
5858

5959
### Recommendation { #recommendation }
6060

61-
The recommended set of options to use is:
61+
The recommended option to use is:
6262

6363
```proto
64-
option java_api_version = 2;
6564
option java_multiple_files = true;
6665
```
6766

@@ -70,3 +69,6 @@ will be placed in a separate `.java` file. This makes it much easier to move
7069
messages from one `.proto` file to another. There is also an outer Java class
7170
generated for the `.proto` file itself. (The legend above explains how this
7271
outer class name is generated.)
72+
73+
The `java_api_version` option defaults to `2`, but you can manually set it to
74+
`1` when necessary.

0 commit comments

Comments
 (0)