message Object1And2 {
  required Object1 object1 = 1;
  required Object2 object2 = 2;
}

service MyService {
  rpc send(Object1And2) returns(VOID);
}

On Sun, Aug 22, 2010 at 1:36 AM, omer.c <chechiko...@gmail.com> wrote:

> Hello,
>
> Can a service receive multiplate arugments or only one?
>
> For example,
>
> message VOID {}
>
> message Object1
> {
>    required int32 t = 1;
>    required int32 s = 2;
> }
>
> message Object2
> {
>    required int32 t2 = 1;
>    required int32 s2 = 2;
> }
>
> How can I define a service which will accept both arguments:
>
> service my_service
> {
>  rpc send(Object1, Object2) returns(VOID);   // doesn't compile
> }
>
> Is it possible ?
>
> Thanks,
> Omer
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to