Home
last modified time | relevance | path

Searched refs:message_descriptor (Results 1 – 19 of 19) sorted by relevance

/external/protobuf/python/google/protobuf/internal/
Dpython_message.py173 def _AddSlots(message_descriptor, dictionary): argument
309 def _AddInitMethod(message_descriptor, cls): argument
311 fields = message_descriptor.fields
327 field = _GetFieldByName(message_descriptor, field_name)
330 (message_descriptor.name, field_name))
351 def _GetFieldByName(message_descriptor, field_name): argument
361 return message_descriptor.fields_by_name[field_name]
600 def _AddListFieldsMethod(message_descriptor, cls): argument
611 def _AddHasFieldMethod(message_descriptor, cls): argument
615 for field in message_descriptor.fields:
[all …]
Dcpp_message.py374 def NewMessage(bases, message_descriptor, dictionary): argument
376 _AddClassAttributesForNestedExtensions(message_descriptor, dictionary)
377 _AddEnumValues(message_descriptor, dictionary)
378 _AddDescriptors(message_descriptor, dictionary)
382 def InitMessage(message_descriptor, cls): argument
385 _AddInitMethod(message_descriptor, cls)
386 _AddMessageMethods(message_descriptor, cls)
387 _AddPropertiesForExtensions(message_descriptor, cls)
391 def _AddDescriptors(message_descriptor, dictionary): argument
399 for field in message_descriptor.fields:
[all …]
Ddescriptor_test.py140 message_descriptor =\
142 field_descriptor = message_descriptor.fields_by_name["field1"]
143 enum_descriptor = message_descriptor.enum_types_by_name["AnEnum"]
145 message_descriptor.enum_values_by_name["ANENUM_VAL2"]
153 message_options = message_descriptor.GetOptions()
184 message_descriptor =\
186 message_options = message_descriptor.GetOptions()
210 message_descriptor =\
212 message_options = message_descriptor.GetOptions()
236 message_descriptor =\
[all …]
Dcontainers.py194 def __init__(self, message_listener, message_descriptor): argument
210 self._message_descriptor = message_descriptor
Dgenerator_test.py140 message_descriptor = unittest_pb2.TestRequired.DESCRIPTOR
141 non_extension_descriptor = message_descriptor.fields_by_name['a']
/external/nanopb-c/generator/google/protobuf/internal/
Dpython_message.py164 def _AddSlots(message_descriptor, dictionary): argument
297 def _AddInitMethod(message_descriptor, cls): argument
299 fields = message_descriptor.fields
311 field = _GetFieldByName(message_descriptor, field_name)
314 (message_descriptor.name, field_name))
335 def _GetFieldByName(message_descriptor, field_name): argument
345 return message_descriptor.fields_by_name[field_name]
574 def _AddListFieldsMethod(message_descriptor, cls): argument
585 def _AddHasFieldMethod(message_descriptor, cls): argument
589 for field in message_descriptor.fields:
[all …]
Dcontainers.py194 def __init__(self, message_listener, message_descriptor): argument
210 self._message_descriptor = message_descriptor
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.cc583 void Generator::PrintDescriptor(const Descriptor& message_descriptor) const { in PrintDescriptor()
584 PrintNestedDescriptors(message_descriptor); in PrintDescriptor()
589 ModuleLevelDescriptorName(message_descriptor)); in PrintDescriptor()
592 m["name"] = message_descriptor.name(); in PrintDescriptor()
593 m["full_name"] = message_descriptor.full_name(); in PrintDescriptor()
602 PrintFieldsInDescriptor(message_descriptor); in PrintDescriptor()
603 PrintExtensionsInDescriptor(message_descriptor); in PrintDescriptor()
607 for (int i = 0; i < message_descriptor.nested_type_count(); ++i) { in PrintDescriptor()
609 *message_descriptor.nested_type(i)); in PrintDescriptor()
617 for (int i = 0; i < message_descriptor.enum_type_count(); ++i) { in PrintDescriptor()
[all …]
Dpython_generator.h85 const Descriptor& message_descriptor,
90 void PrintFieldsInDescriptor(const Descriptor& message_descriptor) const;
91 void PrintExtensionsInDescriptor(const Descriptor& message_descriptor) const;
93 void PrintDescriptor(const Descriptor& message_descriptor) const;
97 void PrintMessage(const Descriptor& message_descriptor, const string& prefix,
/external/protobuf/python/google/protobuf/pyext/
Dcpp_message.py43 def NewMessage(bases, message_descriptor, dictionary): argument
55 def InitMessage(message_descriptor, cls): argument
59 super(cls, self).__init__(message_descriptor, **kwargs)
61 cls.AddDescriptors(message_descriptor)
Dmessage.cc1387 ScopedPyObjectPtr message_descriptor(PyObject_GetAttr(cls, kDESCRIPTOR)); in CheckAndGetInteger() local
1388 if (message_descriptor == NULL) { in CheckAndGetInteger()
1392 message_descriptor) < 0) { in CheckAndGetInteger()
/external/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/protorpc/
Ddefinition.py143 def define_message(message_descriptor, module_name): argument
155 for enum in message_descriptor.enum_types or []:
161 for field in message_descriptor.fields or []:
165 class_name = message_descriptor.name.encode('utf-8')
224 for message_descriptor in file_descriptor.message_types or []:
225 message_class = define_message(message_descriptor, module.__name__)
226 setattr(module, message_descriptor.name, message_class)
Ddefinition_test.py345 message_descriptor = descriptor.describe_message(AMessage)
347 message_class = definition.define_message(message_descriptor, '__main__')
352 self.assertEquals(message_descriptor,
362 message_descriptor = descriptor.describe_message(AMessage)
364 message_class = definition.define_message(message_descriptor, '__main__')
369 self.assertEquals(message_descriptor,
380 message_descriptor = descriptor.describe_message(AMessage)
382 message_class = definition.define_message(message_descriptor, '__main__')
387 self.assertEquals(message_descriptor,
400 message_descriptor = descriptor.describe_message(AMessage)
[all …]
Ddescriptor.py385 message_descriptor = MessageDescriptor()
386 message_descriptor.name = message_definition.definition_name().split('.')[-1]
391 message_descriptor.fields = [describe_field(field) for field in fields]
403 message_descriptor.message_types = message_descriptors
415 message_descriptor.enum_types = enum_descriptors
417 return message_descriptor
Dgenerate_python_test.py124 message_descriptor = descriptor.MessageDescriptor()
125 message_descriptor.name = 'MyMessage'
127 message_descriptor.fields = list(field_descriptors)
130 file_descriptor.message_types.append(message_descriptor)
/external/protobuf/python/google/protobuf/
Dtext_format.py315 message_descriptor = message.DESCRIPTOR
322 if not message_descriptor.is_extendable:
325 message_descriptor.full_name)
332 elif message_descriptor != field.containing_type:
335 name, message_descriptor.full_name))
339 field = message_descriptor.fields_by_name.get(name, None)
345 field = message_descriptor.fields_by_name.get(name.lower(), None)
356 message_descriptor.full_name, name))
/external/nanopb-c/generator/google/protobuf/
Dtext_format.py171 message_descriptor = message.DESCRIPTOR
178 if not message_descriptor.is_extendable:
181 message_descriptor.full_name)
186 elif message_descriptor != field.containing_type:
189 name, message_descriptor.full_name))
193 field = message_descriptor.fields_by_name.get(name, None)
199 field = message_descriptor.fields_by_name.get(name.lower(), None)
210 message_descriptor.full_name, name))
/external/protobuf/src/google/protobuf/compiler/java/
Djava_name_resolver.cc75 const Descriptor* message_descriptor = descriptor->containing_type(); in ClassNameWithoutPackage() local
76 if (message_descriptor == NULL) { in ClassNameWithoutPackage()
79 return ClassNameWithoutPackage(message_descriptor, immutable) + in ClassNameWithoutPackage()
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/gen/
Dmessage_registry.py153 message_descriptor = self.LookupDescriptor(name)
154 if message_descriptor is None:
156 return message_descriptor
170 def __DescriptorEnv(self, message_descriptor): argument
173 self.__current_path.append(message_descriptor.name)
174 self.__current_env = message_descriptor