title: How to use protobuf message as java class without a java outer class?
body: <p>I want to generate java class with My.proto:</p>
  
  <pre><code>package com.my.test;
  
  option java_package = "com.my.test";
  
  message MyError {
    optional string value = 11;
    optional string name = 12;
  }
  
  message MyRequest {
    optional string myid = 1;
    optional string yourid = 2;
  }
  </code></pre>
  
  <p>After use <code>protoc --java_out=./ My.proto</code>, there will be: <code>com.my.test.My.java</code></p>
  
  <pre><code>package com.my.test;
  
  public class My {
    public static class MyError {}
    public static class MyRequest {}
  }
  </code></pre>
  
  <p>How could I generate java class like:</p>
  
  <pre><code>package com.my.test;
  public class MyError {}
  </code></pre>
  
  <p>and </p>
  
  <pre><code>package com.my.test;
  public class MyRequest {}
  </code></pre>