[protobuf] Delete Repeated field entry

2015-03-30 Thread Nitish Joshi
How to delete Repeated field element?

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


Re: [protobuf] Deleting a member at particular index in a repeated member

2015-03-30 Thread Nitish Joshi
Hi,
I am facing similar problem to delete particular index in repeated field. 
I saw the code What exactly foo here means?

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


[protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-03-30 Thread Kostiantyn Shchepanovskyi
Hi,

3. Removal of extensions, which are instead replaced by a new standard type 
 called Any.


Extensions are used for custom options definition in proto2.

import google/protobuf/descriptor.proto;

extend google.protobuf.MessageOptions {
  optional string my_option = 51234;
}

message MyMessage {
  option (my_option) = Hello world!;
}

How it will look in proto3?

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


Re: [protobuf] Re: Protobuf Buffers v3.0.0-alpha-1

2015-03-30 Thread 'Feng Xiao' via Protocol Buffers
On Mon, Mar 30, 2015 at 11:44 AM, Kostiantyn Shchepanovskyi 
schepanov...@gmail.com wrote:

 Hi,

 3. Removal of extensions, which are instead replaced by a new standard
 type called Any.


 Extensions are used for custom options definition in proto2.

 import google/protobuf/descriptor.proto;

 extend google.protobuf.MessageOptions {
   optional string my_option = 51234;
 }

 message MyMessage {
   option (my_option) = Hello world!;
 }

 How it will look in proto3?

Extensions to these options are explicitly allowed in proto3.



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


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