Skip to content

Commit f06dc33

Browse files
committed
deploy: 57de98d
1 parent 3d8b98f commit f06dc33

File tree

3 files changed

+31
-24
lines changed

3 files changed

+31
-24
lines changed

reference/java/index.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -966,14 +966,15 @@ defined in the proto file.</p>
966966
</li>
967967
</ul>
968968
<h3 id="recommendation">Recommendation</h3>
969-
<p>The recommended set of options to use is:</p>
970-
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-proto" data-lang="proto"><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">option</span> <span style="color:#000">java_api_version</span> <span style="color:#ce5c00;font-weight:bold">=</span> <span style="color:#0000cf;font-weight:bold">2</span><span style="color:#000;font-weight:bold">;</span><span style="color:#a40000">
971-
</span></span></span><span style="display:flex;"><span><span style="color:#a40000"></span><span style="color:#204a87;font-weight:bold">option</span> <span style="color:#000">java_multiple_files</span> <span style="color:#ce5c00;font-weight:bold">=</span> <span style="color:#204a87;font-weight:bold">true</span><span style="color:#000;font-weight:bold">;</span><span style="color:#a40000">
969+
<p>The recommended option to use is:</p>
970+
<div class="highlight"><pre tabindex="0" style="background-color:#f8f8f8;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-proto" data-lang="proto"><span style="display:flex;"><span><span style="color:#204a87;font-weight:bold">option</span> <span style="color:#000">java_multiple_files</span> <span style="color:#ce5c00;font-weight:bold">=</span> <span style="color:#204a87;font-weight:bold">true</span><span style="color:#000;font-weight:bold">;</span><span style="color:#a40000">
972971
</span></span></span></code></pre></div><p>With <code>java_multiple_files = true</code>, the generated Java class for each message
973972
will be placed in a separate <code>.java</code> file. This makes it much easier to move
974973
messages from one <code>.proto</code> file to another. There is also an outer Java class
975974
generated for the <code>.proto</code> file itself. (The legend above explains how this
976-
outer class name is generated.)&lt;/p></description></item><item><title>Reference:</title><link>https://protobuf.dev/reference/java/api-docs-link/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://protobuf.dev/reference/java/api-docs-link/</guid><description>
975+
outer class name is generated.)&lt;/p>
976+
&lt;p>The &lt;code>java_api_version&lt;/code> option defaults to &lt;code>2&lt;/code>, but you can manually set it to
977+
&lt;code>1&lt;/code> when necessary.&lt;/p></description></item><item><title>Reference:</title><link>https://protobuf.dev/reference/java/api-docs-link/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://protobuf.dev/reference/java/api-docs-link/</guid><description>
977978
&lt;!-- mdformat global-off -->
978979
&lt;hr>
979980
&lt;h2 id="weight-660">title: &amp;ldquo;Java API&amp;rdquo;

reference/java/java-proto-names/index.html

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

support/version-support/index.html

Lines changed: 22 additions & 16 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)