Skip to content

Commit

Permalink
Merge branch 'main' into chore/add-generation-config
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeWang1127 committed May 15, 2024
2 parents 685905a + 986c090 commit 7748828
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1063,12 +1063,10 @@ private static Field parseField(
.setType(TypeParser.parseType(fieldDescriptor))
.setIsMessage(fieldDescriptor.getJavaType() == FieldDescriptor.JavaType.MESSAGE)
.setIsEnum(fieldDescriptor.getJavaType() == FieldDescriptor.JavaType.ENUM)
.setIsContainedInOneof(
fieldDescriptor.getContainingOneof() != null
&& !fieldDescriptor.getContainingOneof().isSynthetic())
.setIsContainedInOneof(fieldDescriptor.getRealContainingOneof() != null)
.setIsProto3Optional(
fieldDescriptor.getContainingOneof() != null
&& fieldDescriptor.getContainingOneof().isSynthetic())
&& fieldDescriptor.getRealContainingOneof() == null)
.setIsRepeated(fieldDescriptor.isRepeated())
.setIsRequired(isRequired)
.setFieldInfoFormat(fieldInfoFormat)
Expand Down

0 comments on commit 7748828

Please sign in to comment.