File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1063,12 +1063,10 @@ private static Field parseField(
10631063 .setType (TypeParser .parseType (fieldDescriptor ))
10641064 .setIsMessage (fieldDescriptor .getJavaType () == FieldDescriptor .JavaType .MESSAGE )
10651065 .setIsEnum (fieldDescriptor .getJavaType () == FieldDescriptor .JavaType .ENUM )
1066- .setIsContainedInOneof (
1067- fieldDescriptor .getContainingOneof () != null
1068- && !fieldDescriptor .getContainingOneof ().isSynthetic ())
1066+ .setIsContainedInOneof (fieldDescriptor .getRealContainingOneof () != null )
10691067 .setIsProto3Optional (
10701068 fieldDescriptor .getContainingOneof () != null
1071- && fieldDescriptor .getContainingOneof (). isSynthetic () )
1069+ && fieldDescriptor .getRealContainingOneof () == null )
10721070 .setIsRepeated (fieldDescriptor .isRepeated ())
10731071 .setIsRequired (isRequired )
10741072 .setFieldInfoFormat (fieldInfoFormat )
You can’t perform that action at this time.
0 commit comments