Home
last modified time | relevance | path

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

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/internal/
Ddescriptor_test.py137 message_descriptor =\
139 field_descriptor = message_descriptor.fields_by_name['field1']
140 oneof_descriptor = message_descriptor.oneofs_by_name['AnOneof']
141 enum_descriptor = message_descriptor.enum_types_by_name['AnEnum']
143 message_descriptor.enum_values_by_name['ANENUM_VAL2']
151 message_options = message_descriptor.GetOptions()
177 message_descriptor = (
180 self.assertFalse(message_descriptor.has_options)
190 message_descriptor =\
192 message_options = message_descriptor.GetOptions()
[all …]
Dpython_message.py246 def _AddSlots(message_descriptor, dictionary): argument
458 def _AddInitMethod(message_descriptor, cls): argument
491 field = _GetFieldByName(message_descriptor, field_name)
494 (message_descriptor.name, field_name))
527 _ReraiseTypeErrorWithFieldName(message_descriptor.name, field_name)
535 _ReraiseTypeErrorWithFieldName(message_descriptor.name, field_name)
542 def _GetFieldByName(message_descriptor, field_name): argument
552 return message_descriptor.fields_by_name[field_name]
555 (message_descriptor.name, field_name))
792 def _AddListFieldsMethod(message_descriptor, cls): argument
[all …]
Dwell_known_types.py390 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 …]
Dcontainers.py350 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
Dgenerator_test.py145 message_descriptor = unittest_pb2.TestRequired.DESCRIPTOR
146 non_extension_descriptor = message_descriptor.fields_by_name['a']
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/
Djson_format.py125 message_descriptor = message.DESCRIPTOR
126 full_name = message_descriptor.full_name
127 if _IsWrapperMessage(message_descriptor):
165 message_descriptor = message.DESCRIPTOR
166 for field in message_descriptor.fields:
230 message_descriptor = sub_message.DESCRIPTOR
231 full_name = message_descriptor.full_name
232 if _IsWrapperMessage(message_descriptor):
281 def _IsWrapperMessage(message_descriptor): argument
282 return message_descriptor.file.name == 'google/protobuf/wrappers.proto'
[all …]
Dtext_format.py234 message_descriptor = descriptor_pool.FindMessageTypeByName(type_name)
237 message_type = factory.GetPrototype(message_descriptor)
587 message_descriptor = message.DESCRIPTOR
588 if (hasattr(message_descriptor, 'syntax') and
589 message_descriptor.syntax == 'proto3'):
599 if not message_descriptor.is_extendable:
602 message_descriptor.full_name)
612 elif message_descriptor != field.containing_type:
615 (name, message_descriptor.full_name))
623 field = message_descriptor.fields_by_number.get(number, None)
[all …]
Ddescriptor_pool.py284 message_descriptor = self.FindMessageTypeByName(message_name)
285 return message_descriptor.fields_by_name[field_name]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/python/
Dpython_generator.cc666 void Generator::PrintDescriptor(const Descriptor& message_descriptor) const { in PrintDescriptor()
667 PrintNestedDescriptors(message_descriptor); in PrintDescriptor()
672 ModuleLevelDescriptorName(message_descriptor)); in PrintDescriptor()
675 m["name"] = message_descriptor.name(); in PrintDescriptor()
676 m["full_name"] = message_descriptor.full_name(); in PrintDescriptor()
685 PrintFieldsInDescriptor(message_descriptor); in PrintDescriptor()
686 PrintExtensionsInDescriptor(message_descriptor); in PrintDescriptor()
690 for (int i = 0; i < message_descriptor.nested_type_count(); ++i) { in PrintDescriptor()
692 *message_descriptor.nested_type(i)); in PrintDescriptor()
700 for (int i = 0; i < message_descriptor.enum_type_count(); ++i) { in PrintDescriptor()
[all …]
Dpython_generator.h87 const Descriptor& message_descriptor,
92 void PrintFieldsInDescriptor(const Descriptor& message_descriptor) const;
93 void PrintExtensionsInDescriptor(const Descriptor& message_descriptor) const;
95 void PrintDescriptor(const Descriptor& message_descriptor) const;
99 void PrintMessage(const Descriptor& message_descriptor, const string& prefix,
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/python/google/protobuf/pyext/
Ddescriptor_pool.cc180 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()
385 const Descriptor* message_descriptor = in AddDescriptor() local
387 if (!message_descriptor) { in AddDescriptor()
[all …]
Ddescriptor_pool.h106 const Descriptor* message_descriptor,
114 const Descriptor* message_descriptor);
Dmessage.cc250 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()
1230 const Descriptor* message_descriptor = type->message_descriptor; in CheckAndGetInteger() local
[all …]
Ddescriptor_containers.h56 namespace message_descriptor {
Ddescriptor.cc417 namespace message_descriptor { namespace
661 message_descriptor::Methods, // tp_methods
663 message_descriptor::Getters, // tp_getset
668 const Descriptor* message_descriptor) { in PyMessageDescriptor_FromDescriptor() argument
670 &PyMessageDescriptor_Type, message_descriptor, NULL); in PyMessageDescriptor_FromDescriptor()
Dmessage.h130 const Descriptor* message_descriptor; member
Ddescriptor_containers.cc944 namespace message_descriptor { namespace
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/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()