I think you want foo_primitives.bar ... going from memory though.

On Fri, Nov 7, 2014 at 7:19 PM, Michael Wagner <mikepwag...@gmail.com> wrote:
> I would like to do the follwing:
>
> foo_primtives.proto:
>
> package foo_primitives;
>
> messaage bar {
>     // some fields;
> };
>
> message baz {
>    // some fields;
> }
>
> foo_composed_types.proto:
>
> import "foo_primtives.proto";
> package foo_composed;
>
> message foo_complicated {
>    optional foo_primitves::bar bar = 1
>    optional foo_primitives::baz baz = 2;
> };
>
> If I do thus protoc gives me an "Expected field name" error on the first
> colon in the package specifer.
>
> If I remove the "package foo_primitves;" from the "foo_primtives.proto" file
> and corresponding "foo_primitves::" from the fields in foo_composed.proto,
> then protoc is happy.
>
> Can I import packages? Am I fat-fingerig something?
>
> Thanks,
>
> Mike
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to protobuf+unsubscr...@googlegroups.com.
> To post to this group, send email to protobuf@googlegroups.com.
> Visit this group at http://groups.google.com/group/protobuf.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to