Hi! 
How can I convert a ChatMessage to a proto message?

//Need covert to proto message
public class ChatMessage {
private String message;
private List<Extension> extensions;
}

interface Extension {
getName();
}

public abstract class AbstractExtension implement Extension {
   
   private String name;   
public String getName() { return name;}
}
    
public class HelpExtension extends AbstractExtension  {
private String hint;
}

public class AlertExtension extends AbstractExtension {
private String alert;
}

... and more implemented Extension class.


-- 
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 https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to