Home
last modified time | relevance | path

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

/external/protobuf/python/compatibility_tests/v2.5.0/tests/google/protobuf/internal/
Ddescriptor_test.py153 message_options = message_descriptor.GetOptions()
155 self.assertEqual(-56, message_options.Extensions[message_opt1])
186 message_options = message_descriptor.GetOptions()
187 self.assertEqual(False, message_options.Extensions[
189 self.assertEqual(kint32min, message_options.Extensions[
191 self.assertEqual(kint64min, message_options.Extensions[
193 self.assertEqual(0, message_options.Extensions[
195 self.assertEqual(0, message_options.Extensions[
197 self.assertEqual(kint32min, message_options.Extensions[
199 self.assertEqual(kint64min, message_options.Extensions[
[all …]
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_test.py159 message_options = message_descriptor.GetOptions()
161 self.assertEqual(-56, message_options.Extensions[message_opt1])
213 message_options = message_descriptor.GetOptions()
214 self.assertEqual(False, message_options.Extensions[
216 self.assertEqual(kint32min, message_options.Extensions[
218 self.assertEqual(kint64min, message_options.Extensions[
220 self.assertEqual(0, message_options.Extensions[
222 self.assertEqual(0, message_options.Extensions[
224 self.assertEqual(kint32min, message_options.Extensions[
226 self.assertEqual(kint64min, message_options.Extensions[
[all …]
/external/grpc-grpc/third_party/nanopb/generator/
Dnanopb_generator.py779 def __init__(self, names, desc, message_options): argument
785 if message_options.msgid:
786 self.msgid = message_options.msgid
790 oneof_options = get_nanopb_suboptions(desc, message_options, self.name + f.name)
803 field_options = get_nanopb_suboptions(f, message_options, self.name + f.name)
817 field_options = get_nanopb_suboptions(desc, message_options, self.name + 'extensions')
822 self.packed = message_options.packed_struct
1021 message_options = get_nanopb_suboptions(message, self.file_options, names)
1023 if message_options.skip_message:
1026 self.messages.append(Message(names, message, message_options))
[all …]
/external/nanopb-c/generator/
Dnanopb_generator.py873 def __init__(self, names, desc, message_options): argument
879 if message_options.msgid:
880 self.msgid = message_options.msgid
884 oneof_options = get_nanopb_suboptions(desc, message_options, self.name + f.name)
899 field_options = get_nanopb_suboptions(f, message_options, self.name + f.name)
913 field_options = get_nanopb_suboptions(desc, message_options, self.name + 'extensions')
918 self.packed = message_options.packed_struct
1117 message_options = get_nanopb_suboptions(message, self.file_options, names)
1119 if message_options.skip_message:
1122 self.messages.append(Message(names, message, message_options))
[all …]
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc1397 std::string message_options = in FixOptionsForMessage() local
1399 if (message_options != "None") { in FixOptionsForMessage()
1401 PrintDescriptorOptionsFixingCode(descriptor_name, message_options, in FixOptionsForMessage()