Skip to content

Commit

Permalink
make hasOptionalKeyword function public
Browse files Browse the repository at this point in the history
  • Loading branch information
mscheong01 authored Aug 4, 2024
1 parent cb71119 commit 7c860b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1443,7 +1443,7 @@ public OneofDescriptor getRealContainingOneof() {
* Returns true if this field was syntactically written with "optional" in the .proto file.
* Excludes singular proto3 fields that do not have a label.
*/
boolean hasOptionalKeyword() {
public boolean hasOptionalKeyword() {
return isProto3Optional
|| (file.getEdition() == Edition.EDITION_PROTO2
&& isOptional()
Expand Down

0 comments on commit 7c860b0

Please sign in to comment.