Status: New
Labels: Type-Defect Priority-Medium

New issue 589 by python protobuf API doesn't return custom FieldOptions in ubuntu(fine in Mac)

What steps will reproduce the problem?
1.define a proto

message SqlOptions {
  optional bool primary_key = 1;
  optional bool index = 2;

extend google.protobuf.FieldOptions {
  optional SqlOptions sql_options = 50000;

message Item {
  optional int32 id = 1 [(sql_options) = { primary_key : true}];

2. compile this proto and generate python source code

3. field_descriptor.GetOptions().ListFields() will return empty list in ubuntu, mac is fine.

What is the expected output? What do you see instead?
expect to return primary_key : true option

What version of the product are you using? On what operating system?
protoc --version
libprotoc 2.4.1

python lib: protobuf-2.5.0

Please provide any additional information below.

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

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 post to this group, send email to
Visit this group at
For more options, visit

Reply via email to