protoc -I . --include_imports --descriptor_set_out=/dev/stdout google/samples/apps/nowinandroid/data/user_preferences.proto
errors out and gives me this error
com/google/samples/apps/nowinandroid/data/dark_theme_config.proto: File not found.
com/google/samples/apps/nowinandroid/data/theme_brand.proto: File not found.
user_preferences.proto:19:1: Import "com/google/samples/apps/nowinandroid/data/dark_theme_config.proto" was not found or had errors.
user_preferences.proto:20:1: Import "com/google/samples/apps/nowinandroid/data/theme_brand.proto" was not found or had errors.
user_preferences.proto:44:5: "ThemeBrandProto" is not defined.
user_preferences.proto:45:5: "DarkThemeConfigProto" is not defined.
But, if i change userpreferences imports from this
import "com/google/samples/apps/nowinandroid/data/dark_theme_config.proto";
import "com/google/samples/apps/nowinandroid/data/theme_brand.proto";
to
import "theme_brand.proto";
import "dark_theme_config.proto";
works fine