You can put differents messages in a proto file, you define them like
that :
Message X
{
required/optional type parameter1 = 1
required/optional type parameter2 = 2
...
}
Message Y
{
required/optional type parameter1 = 1
required/optional type parameter2 = 2
...
}
You can also put messages in messages to organize them.
Take a look at the wiki to see how it works. It will explained it
better than me.
On Jan 22, 10:33 pm, "Marco@worldcorp" <[email protected]> wrote:
> Hi all
> i am new to protocol buffer, and was wondering if i can use it for my
> needs.
> Basically, i am trying to implement a client-server communication
> where i can have this type of messages:
> - INCOMING (from client to server)
> - String
> - a Savings Object
> - a Share object
> - OUTCOMING (from server to client)
> - String
> - a List of Savings objects
> - a List of Share object
>
> Basically, what i am trying to say is that i have N types of messages
> from client to server and M types of messages from server to client,
> and all this messages are differents from each other (having in total
> N + M) types of messages.
> I am guessing i will need 1 proto file for each type of message,
> correct?
>
> w/kindest 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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/protobuf?hl=en.