File tree 1 file changed +2
-4
lines changed
gapic-generator-java/src/main/java/com/google/api/generator/gapic/protoparser
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(
1063
1063
.setType (TypeParser .parseType (fieldDescriptor ))
1064
1064
.setIsMessage (fieldDescriptor .getJavaType () == FieldDescriptor .JavaType .MESSAGE )
1065
1065
.setIsEnum (fieldDescriptor .getJavaType () == FieldDescriptor .JavaType .ENUM )
1066
- .setIsContainedInOneof (
1067
- fieldDescriptor .getContainingOneof () != null
1068
- && !fieldDescriptor .getContainingOneof ().isSynthetic ())
1066
+ .setIsContainedInOneof (fieldDescriptor .getRealContainingOneof () != null )
1069
1067
.setIsProto3Optional (
1070
1068
fieldDescriptor .getContainingOneof () != null
1071
- && fieldDescriptor .getContainingOneof (). isSynthetic () )
1069
+ && fieldDescriptor .getRealContainingOneof () == null )
1072
1070
.setIsRepeated (fieldDescriptor .isRepeated ())
1073
1071
.setIsRequired (isRequired )
1074
1072
.setFieldInfoFormat (fieldInfoFormat )
You can’t perform that action at this time.
0 commit comments