Hi all
 i am starting to learn protobuffers so that i can use them alongside
Netty

I have created this simple .proto file

package tutorial;

option java_package = "com.example.messages";
option java_outer_classname = "MessageProtos";

message Message {
  required string content = 1;

  enum MessageType {
    TEST = 0;
    DEBUG = 1;
    DO_TASK = 2;
  }
  required MessageType type = 2;
}

THis has generated a class with two methods that Errors out due to
'Cannot dereference boolean'

public static com.example.messages.MessageProtos.Message
parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return newBuilder().mergeDelimitedFrom(input).buildParsed();
    }
    public static com.example.messages.MessageProtos.Message
parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return newBuilder().mergeDelimitedFrom(input, extensionRegistry)
               .buildParsed();
    }

could anyone tell me what have i done wrong in my .proto file?

thanks and regards
 marco




-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to