/external/protobuf/src/google/protobuf/compiler/python/ |
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,
|
python_generator.cc | 634 // Prints statement assigning ModuleLevelDescriptorName(message_descriptor) 635 // to a Python Descriptor object for message_descriptor. 638 void Generator::PrintDescriptor(const Descriptor& message_descriptor) const { 639 PrintNestedDescriptors(message_descriptor); 644 ModuleLevelDescriptorName(message_descriptor)); 647 m["name"] = message_descriptor.name(); 648 m["full_name"] = message_descriptor.full_name(); 657 PrintFieldsInDescriptor(message_descriptor); 658 PrintExtensionsInDescriptor(message_descriptor); 662 for (int i = 0; i < message_descriptor.nested_type_count(); ++i) [all...] |
/external/protobuf/python/google/protobuf/internal/ |
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...] |
python_message.py | 251 def _AddSlots(message_descriptor, dictionary): 256 message_descriptor: A Descriptor instance describing this message type. 463 def _AddInitMethod(message_descriptor, cls): 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): 551 message_descriptor: A Descriptor describing all fields in message. 557 return message_descriptor.fields_by_name[field_name [all...] |
containers.py | 350 def __init__(self, message_listener, message_descriptor): 361 message_descriptor: A Descriptor instance describing the protocol type 366 self._message_descriptor = message_descriptor 525 def __init__(self, message_listener, message_descriptor, key_checker): 537 self._message_descriptor = message_descriptor
|
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/ |
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...] |
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...] |
descriptor_pool.py | 284 message_descriptor = self.FindMessageTypeByName(message_name) 285 return message_descriptor.fields_by_name[field_name]
|
/external/protobuf/python/google/protobuf/pyext/ |
descriptor_pool.h | 106 const Descriptor* message_descriptor, 114 const Descriptor* message_descriptor);
|
descriptor_pool.cc | 180 const Descriptor* message_descriptor = local 183 if (message_descriptor == NULL) { 188 return PyMessageDescriptor_FromDescriptor(message_descriptor); 193 const Descriptor* message_descriptor, 198 std::make_pair(message_descriptor, message_class)); 209 const Descriptor* message_descriptor) { 211 iterator ret = self->classes_by_descriptor->find(message_descriptor); 214 message_descriptor->full_name().c_str()); 351 const Descriptor* message_descriptor = local 353 if (!message_descriptor) { [all...] |
descriptor_containers.h | 55 namespace message_descriptor { namespace in namespace:google::protobuf::python 73 } // namespace message_descriptor
|
message.cc | 250 const Descriptor* message_descriptor = local 252 if (message_descriptor == NULL) { 266 WKT_classes, message_descriptor->full_name().c_str()); 300 newtype->message_descriptor = descriptor; 406 return type->message_descriptor; 484 const Descriptor* message_descriptor = local 493 message_descriptor->FindFieldByName(key_str); 894 const Descriptor *message_descriptor = self->message->GetDescriptor(); local 901 message_descriptor->FindFieldByName(string(field_name, size)); 1225 const Descriptor* message_descriptor = type->message_descriptor; local [all...] |
message.h | 130 const Descriptor* message_descriptor; member in struct:google::protobuf::python::CMessageClass
|
descriptor.cc | 81 // message_descriptor = Descriptor( 84 // message_descriptor.fields[0].containing_type = message_descriptor 412 namespace message_descriptor { namespace in namespace:google::protobuf::python 626 } // namespace message_descriptor 656 message_descriptor::Methods, // tp_methods 658 message_descriptor::Getters, // tp_getset 663 const Descriptor* message_descriptor) { 665 &PyMessageDescriptor_Type, message_descriptor, NULL); [all...] |
descriptor_containers.cc | 920 namespace message_descriptor { namespace in namespace:google::protobuf::python [all...] |
/external/grpc-grpc/src/python/grpcio_reflection/grpc_reflection/v1alpha/ |
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/ |
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/ |
java_name_resolver.cc | 75 const Descriptor* message_descriptor = descriptor->containing_type(); local 76 if (message_descriptor == NULL) { 79 return ClassNameWithoutPackage(message_descriptor, immutable) +
|
/external/python/apitools/apitools/gen/ |
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): 190 self.__current_path.append(message_descriptor.name) 191 self.__current_env = message_descriptor
|