Both proto/google/fhir/proto/r4/core/datatypes.proto and proto/google/fhir/proto/r4/core/profiles/datatypes.proto generate a class named DatatypesReflection as part of the standard output from protoc. Both *.proto files use the same package google.fhir.r4.core. This results in a duplicate name collision in the generated output.
This problem disappears if the datatypes.proto file is moved into the google.fhir.r4.core.profiles namespace.
Tho' I am not certain if that causes any other unrelated issues.
Both
proto/google/fhir/proto/r4/core/datatypes.protoandproto/google/fhir/proto/r4/core/profiles/datatypes.protogenerate a class namedDatatypesReflectionas part of the standard output fromprotoc. Both*.protofiles use the same packagegoogle.fhir.r4.core. This results in a duplicate name collision in the generated output.This problem disappears if the
datatypes.protofile is moved into thegoogle.fhir.r4.core.profilesnamespace.Tho' I am not certain if that causes any other unrelated issues.