title: Netty protobuf and google csharp proto usage
body: <p>I want to communicate C# client application with Java server application. Java use Netty framework with protobuf pipeline enconder.</p>
  
  <p>My Proto file:
      import "google/protobuf/csharp_options.proto";</p>
  
  <pre><code>option (google.protobuf.csharp_file_options).namespace = "ChatClient.LoginProtocol";
  option (google.protobuf.csharp_file_options).umbrella_classname = "LoginProtocol";
  
  option optimize_for = SPEED;
  
  message Credential {
     required string email = 1;
     required string password = 2;
  
  }
  </code></pre>
  
  <p>Netty pipeline codecs:</p>
  
  <pre><code>p.addLast("frameDecoder", new ProtobufVarint32FrameDecoder());
  p.addLast("protobufDecoder", new   ProtobufDecoder(LoginProtos.Credential.getDefaultInstance()));
  
      p.addLast("frameEncoder", new ProtobufVarint32LengthFieldPrepender());
      p.addLast("protobufEncoder", new ProtobufEncoder());
  </code></pre>
  
  <p>So how can I send message to java Server. c# code:</p>
  
  <pre><code>stream = client.GetStream();
  sReader = new StreamReader(stream);
  sWriter = new StreamWriter(stream);
  
  Credential.Builder builder = Credential.CreateBuilder();
  
   builder.SetEmail("xxx@gmail.com").SetPassword("12356");
  
   sWriter.Write(builder.Build().ToByteArray());
  
   sWriter.Flush();
  </code></pre>
  
  <p>Thanks for help and sorry for my english.</p>