just want to find some sample code for Class Service:

for example:
given .proto .java files below,
how to use simply use them in some basic Java network program, such as
ServerSocket or DatagramSocket?

# .proto
message Req1 {
  required int32 id = 1;

message Res1 {
  required string name = 1;

service Serv1 {
  rpc Func1(Req1) returns (Res1) {
    option name = "name1";

// .java
public class MyServ implements Serv1 {

  public EmptyMessage Func1(RPC rpc, Req1 req) throws RpcException {

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 [EMAIL PROTECTED]
For more options, visit this group at 

Reply via email to