Home
last modified time | relevance | path

Searched refs:enum_options (Results 1 – 5 of 5) sorted by relevance

/external/grpc-grpc/third_party/nanopb/generator/
Dnanopb_generator.py167 def __init__(self, names, desc, enum_options): argument
170 self.options = enum_options
173 if enum_options.long_names:
179 self.packed = enum_options.packed_enum
1017 enum_options = get_nanopb_suboptions(enum, self.file_options, base_name + enum.name)
1018 self.enums.append(Enum(base_name, enum, enum_options))
1028 enum_options = get_nanopb_suboptions(enum, message_options, names + enum.name)
1029 self.enums.append(Enum(names, enum, enum_options))
/external/nanopb-c/generator/
Dnanopb_generator.py182 def __init__(self, names, desc, enum_options): argument
185 self.options = enum_options
188 if enum_options.long_names:
194 self.packed = enum_options.packed_enum
1113 enum_options = get_nanopb_suboptions(enum, self.file_options, base_name + enum.name)
1114 self.enums.append(Enum(base_name, enum, enum_options))
1124 enum_options = get_nanopb_suboptions(enum, message_options, names + enum.name)
1125 self.enums.append(Enum(names, enum, enum_options))
/external/protobuf/python/google/protobuf/internal/
Dgenerator_test.py155 enum_options = proto.DESCRIPTOR.enum_types_by_name['AnEnum'].GetOptions()
156 self.assertTrue(enum_options is not None)
Ddescriptor_test.py161 enum_options = enum_descriptor.GetOptions()
163 self.assertEqual(-789, enum_options.Extensions[enum_opt1])
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc1242 string enum_options = OptionsValue( in FixOptionsForEnum() local
1244 if (enum_options != "None") { in FixOptionsForEnum()
1245 PrintDescriptorOptionsFixingCode(descriptor_name, enum_options, printer_); in FixOptionsForEnum()