/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_test.py | 140 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() 176 message_descriptor = ( 179 self.assertFalse(message_descriptor.has_options) 189 message_descriptor =\ 191 message_options = message_descriptor.GetOptions() 215 message_descriptor =\ [all …]
|
D | python_message.py | 251 def _AddSlots(message_descriptor, dictionary): argument 463 def _AddInitMethod(message_descriptor, cls): argument 496 field = _GetFieldByName(message_descriptor, field_name) 499 (message_descriptor.name, field_name)) 532 _ReraiseTypeErrorWithFieldName(message_descriptor.name, field_name) 540 _ReraiseTypeErrorWithFieldName(message_descriptor.name, field_name) 547 def _GetFieldByName(message_descriptor, field_name): argument 557 return message_descriptor.fields_by_name[field_name] 560 (message_descriptor.name, field_name)) 797 def _AddListFieldsMethod(message_descriptor, cls): argument [all …]
|
D | well_known_types.py | 390 def IsValidForDescriptor(self, message_descriptor): argument 393 if not _IsValidPath(message_descriptor, path): 397 def AllFieldsFromDescriptor(self, message_descriptor): argument 400 for field in message_descriptor.fields: 452 def _IsValidPath(message_descriptor, path): argument 457 field = message_descriptor.fields_by_name[name] 462 message_descriptor = field.message_type 463 return last in message_descriptor.fields_by_name 468 message_descriptor = message.DESCRIPTOR 469 if (message_descriptor.name != 'FieldMask' or [all …]
|
D | containers.py | 350 def __init__(self, message_listener, message_descriptor): argument 366 self._message_descriptor = message_descriptor 525 def __init__(self, message_listener, message_descriptor, key_checker): argument 537 self._message_descriptor = message_descriptor
|
D | generator_test.py | 145 message_descriptor = unittest_pb2.TestRequired.DESCRIPTOR 146 non_extension_descriptor = message_descriptor.fields_by_name['a']
|
/external/protobuf/python/google/protobuf/ |
D | json_format.py | 99 message_descriptor = message.DESCRIPTOR 100 full_name = message_descriptor.full_name 101 if _IsWrapperMessage(message_descriptor): 149 message_descriptor = message.DESCRIPTOR 150 for field in message_descriptor.fields: 216 message_descriptor = sub_message.DESCRIPTOR 217 full_name = message_descriptor.full_name 218 if _IsWrapperMessage(message_descriptor): 233 message_descriptor = db.pool.FindMessageTypeByName(type_name) 237 message_class = db.GetPrototype(message_descriptor) [all …]
|
D | text_format.py | 467 message_descriptor = message.DESCRIPTOR 468 if (hasattr(message_descriptor, 'syntax') and 469 message_descriptor.syntax == 'proto3'): 479 if not message_descriptor.is_extendable: 482 message_descriptor.full_name) 492 elif message_descriptor != field.containing_type: 495 name, message_descriptor.full_name)) 503 field = message_descriptor.fields_by_number.get(number, None) 504 if not field and message_descriptor.is_extendable: 507 field = message_descriptor.fields_by_name.get(name, None) [all …]
|
D | descriptor_pool.py | 284 message_descriptor = self.FindMessageTypeByName(message_name) 285 return message_descriptor.fields_by_name[field_name]
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 638 void Generator::PrintDescriptor(const Descriptor& message_descriptor) const { in PrintDescriptor() 639 PrintNestedDescriptors(message_descriptor); in PrintDescriptor() 644 ModuleLevelDescriptorName(message_descriptor)); in PrintDescriptor() 647 m["name"] = message_descriptor.name(); in PrintDescriptor() 648 m["full_name"] = message_descriptor.full_name(); in PrintDescriptor() 657 PrintFieldsInDescriptor(message_descriptor); in PrintDescriptor() 658 PrintExtensionsInDescriptor(message_descriptor); in PrintDescriptor() 662 for (int i = 0; i < message_descriptor.nested_type_count(); ++i) { in PrintDescriptor() 664 *message_descriptor.nested_type(i)); in PrintDescriptor() 672 for (int i = 0; i < message_descriptor.enum_type_count(); ++i) { in PrintDescriptor() [all …]
|
D | python_generator.h | 86 const Descriptor& message_descriptor, 91 void PrintFieldsInDescriptor(const Descriptor& message_descriptor) const; 92 void PrintExtensionsInDescriptor(const Descriptor& message_descriptor) const; 94 void PrintDescriptor(const Descriptor& message_descriptor) const; 98 void PrintMessage(const Descriptor& message_descriptor, const string& prefix,
|
/external/protobuf/python/google/protobuf/pyext/ |
D | descriptor_pool.cc | 180 const Descriptor* message_descriptor = in FindMessageByName() local 183 if (message_descriptor == NULL) { in FindMessageByName() 188 return PyMessageDescriptor_FromDescriptor(message_descriptor); in FindMessageByName() 193 const Descriptor* message_descriptor, in RegisterMessageClass() argument 198 std::make_pair(message_descriptor, message_class)); in RegisterMessageClass() 209 const Descriptor* message_descriptor) { in GetMessageClass() argument 211 iterator ret = self->classes_by_descriptor->find(message_descriptor); in GetMessageClass() 214 message_descriptor->full_name().c_str()); in GetMessageClass() 351 const Descriptor* message_descriptor = in AddDescriptor() local 353 if (!message_descriptor) { in AddDescriptor() [all …]
|
D | descriptor_pool.h | 106 const Descriptor* message_descriptor, 114 const Descriptor* message_descriptor);
|
D | message.cc | 250 const Descriptor* message_descriptor = in New() local 252 if (message_descriptor == NULL) { in New() 266 WKT_classes, message_descriptor->full_name().c_str()); in New() 300 newtype->message_descriptor = descriptor; in New() 406 return type->message_descriptor; in GetMessageDescriptor() 484 const Descriptor* message_descriptor = in ForEachCompositeField() local 493 message_descriptor->FindFieldByName(key_str); in ForEachCompositeField() 894 const Descriptor *message_descriptor = self->message->GetDescriptor(); in CheckAndGetInteger() local 901 message_descriptor->FindFieldByName(string(field_name, size)); in CheckAndGetInteger() 1225 const Descriptor* message_descriptor = type->message_descriptor; in CheckAndGetInteger() local [all …]
|
D | descriptor_containers.h | 55 namespace message_descriptor {
|
D | descriptor.cc | 412 namespace message_descriptor { namespace 656 message_descriptor::Methods, // tp_methods 658 message_descriptor::Getters, // tp_getset 663 const Descriptor* message_descriptor) { in PyMessageDescriptor_FromDescriptor() argument 665 &PyMessageDescriptor_Type, message_descriptor, NULL); in PyMessageDescriptor_FromDescriptor()
|
D | message.h | 130 const Descriptor* message_descriptor; member
|
D | descriptor_containers.cc | 920 namespace message_descriptor { namespace
|
/external/grpc-grpc/src/python/grpcio_reflection/grpc_reflection/v1alpha/ |
D | reflection.py | 76 message_descriptor = self._pool.FindMessageTypeByName( 79 message_descriptor, extension_number) 89 message_descriptor = self._pool.FindMessageTypeByName( 95 message_descriptor))) 102 base_type_name=message_descriptor.full_name,
|
/external/python/apitools/apitools/base/protorpclite/ |
D | descriptor.py | 350 message_descriptor = MessageDescriptor() 351 message_descriptor.name = message_definition.definition_name().split( 357 message_descriptor.fields = [describe_field(field) for field in fields] 369 message_descriptor.message_types = message_descriptors 381 message_descriptor.enum_types = enum_descriptors 383 return message_descriptor
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_name_resolver.cc | 75 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/python/apitools/apitools/gen/ |
D | message_registry.py | 170 message_descriptor = self.LookupDescriptor(name) 171 if message_descriptor is None: 173 return message_descriptor 187 def __DescriptorEnv(self, message_descriptor): argument 190 self.__current_path.append(message_descriptor.name) 191 self.__current_env = message_descriptor
|