Home
last modified time | relevance | path

Searched refs:Descriptor (Results 1 – 25 of 82) sorted by relevance

1234

/external/protobuf/src/google/protobuf/
Ddescriptor.h66 class Descriptor; variable
108 class LIBPROTOBUF_EXPORT Descriptor {
129 const Descriptor* containing_type() const;
180 const Descriptor* nested_type(int index) const;
184 const Descriptor* FindNestedTypeByName(const string& name) const;
249 const Descriptor* containing_type_;
260 Descriptor* nested_types_;
272 Descriptor() {} in Descriptor() function
278 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(Descriptor);
440 const Descriptor* containing_type() const;
[all …]
Dmessage.cc61 const Descriptor* descriptor = GetDescriptor(); in MergeFrom()
74 const Descriptor* descriptor = GetDescriptor(); in CopyFrom()
202 void RegisterType(const Descriptor* descriptor, const Message* prototype);
205 const Message* GetPrototype(const Descriptor* type);
214 hash_map<const Descriptor*, const Message*> type_map_;
245 void GeneratedMessageFactory::RegisterType(const Descriptor* descriptor, in RegisterType()
260 const Message* GeneratedMessageFactory::GetPrototype(const Descriptor* type) { in GetPrototype()
312 const Descriptor* descriptor, const Message* prototype) { in InternalRegisterGeneratedMessage()
Ddescriptor.cc196 typedef pair<const Descriptor*, int> DescriptorIntPair;
226 const Descriptor* descriptor;
251 CONSTRUCTOR(Descriptor , MESSAGE , descriptor ) in CONSTRUCTOR()
336 hash_set<const Descriptor*> extensions_loaded_from_db_;
354 inline const FieldDescriptor* FindExtension(const Descriptor* extendee,
356 inline void FindAllExtensions(const Descriptor* extendee,
449 const Descriptor* parent, int number) const;
600 const Descriptor* parent, int number) const { in FindFieldByNumber()
622 const Descriptor* extendee, int number) { in FindExtension()
627 const Descriptor* extendee, vector<const FieldDescriptor*>* out) const { in FindAllExtensions()
[all …]
Ddynamic_message.h48 class Descriptor; // descriptor.h variable
112 const Message* GetPrototype(const Descriptor* type);
128 const Message* GetPrototypeNoLock(const Descriptor* type);
Ddynamic_message_unittest.cc60 const Descriptor* descriptor_;
62 const Descriptor* extensions_descriptor_;
64 const Descriptor* packed_descriptor_;
100 TEST_F(DynamicMessageTest, Descriptor) { in TEST_F() argument
Ddynamic_message.cc175 const Descriptor* type; // Type of this DynamicMessage.
234 const Descriptor* descriptor = type_info_->type; in DynamicMessage()
306 const Descriptor* descriptor = type_info_->type; in ~DynamicMessage()
386 const Descriptor* descriptor = type_info_->type; in CrossLinkPrototypes()
432 typedef hash_map<const Descriptor*, const DynamicMessage::TypeInfo*> Map;
453 const Message* DynamicMessageFactory::GetPrototype(const Descriptor* type) { in GetPrototype()
459 const Descriptor* type) { in GetPrototypeNoLock()
Ddescriptor_unittest.cc252 const Descriptor* foo_message_;
258 const Descriptor* bar_message_;
469 const Descriptor* message_;
470 const Descriptor* message2_;
471 const Descriptor* foreign_;
716 const Descriptor* message_;
1063 const Descriptor* foo_request_;
1064 const Descriptor* foo_response_;
1065 const Descriptor* bar_request_;
1066 const Descriptor* bar_response_;
[all …]
Dmessage.h154 class Descriptor; // descriptor.h variable
168 const Descriptor* descriptor;
314 const Descriptor* GetDescriptor() const { return GetMetadata().descriptor; } in GetDescriptor()
668 virtual const Message* GetPrototype(const Descriptor* type) = 0;
700 static void InternalRegisterGeneratedMessage(const Descriptor* descriptor,
/external/protobuf/src/google/protobuf/compiler/python/
Dpython_generator.h46 class Descriptor; variable
77 void PrintNestedEnums(const Descriptor& descriptor) const;
85 const Descriptor& message_descriptor,
88 int (Descriptor::*CountFn)() const,
89 const FieldDescriptor* (Descriptor::*GetterFn)(int) const) const;
90 void PrintFieldsInDescriptor(const Descriptor& message_descriptor) const;
91 void PrintExtensionsInDescriptor(const Descriptor& message_descriptor) const;
93 void PrintDescriptor(const Descriptor& message_descriptor) const;
94 void PrintNestedDescriptors(const Descriptor& containing_descriptor) const;
97 void PrintMessage(const Descriptor& message_descriptor) const;
[all …]
Dpython_generator.cc94 for (const Descriptor* current = descriptor.containing_type(); in NamePrefixedWithNestedTypes()
390 void Generator::PrintNestedEnums(const Descriptor& descriptor) const { in PrintNestedEnums()
524 void Generator::PrintDescriptor(const Descriptor& message_descriptor) const { in PrintDescriptor()
579 const Descriptor::ExtensionRange* range = in PrintDescriptor()
600 const Descriptor& containing_descriptor) const { in PrintNestedDescriptors()
622 const Descriptor& message_descriptor) const { in PrintMessage()
644 const Descriptor& containing_descriptor) const { in PrintNestedMessages()
659 const Descriptor& descriptor, in FixForeignFieldsInDescriptor()
660 const Descriptor* containing_descriptor) const { in FixForeignFieldsInDescriptor()
686 void Generator::FixForeignFieldsInField(const Descriptor* containing_type, in FixForeignFieldsInField()
[all …]
/external/protobuf/java/src/main/java/com/google/protobuf/
DDynamicMessage.java33 import com.google.protobuf.Descriptors.Descriptor;
47 private final Descriptor type;
55 private DynamicMessage(Descriptor type, FieldSet<FieldDescriptor> fields, in DynamicMessage()
66 public static DynamicMessage getDefaultInstance(Descriptor type) { in getDefaultInstance()
72 public static DynamicMessage parseFrom(Descriptor type, in parseFrom()
80 Descriptor type, in parseFrom()
88 public static DynamicMessage parseFrom(Descriptor type, ByteString data) in parseFrom()
94 public static DynamicMessage parseFrom(Descriptor type, ByteString data, in parseFrom()
101 public static DynamicMessage parseFrom(Descriptor type, byte[] data) in parseFrom()
107 public static DynamicMessage parseFrom(Descriptor type, byte[] data, in parseFrom()
[all …]
DDescriptors.java77 public List<Descriptor> getMessageTypes() { in getMessageTypes()
107 public Descriptor findMessageTypeByName(String name) { in findMessageTypeByName()
117 if (result != null && result instanceof Descriptor && in findMessageTypeByName()
119 return (Descriptor)result; in findMessageTypeByName()
324 private final Descriptor[] messageTypes;
341 messageTypes = new Descriptor[proto.getMessageTypeCount()]; in FileDescriptor()
344 new Descriptor(proto.getMessageType(i), this, null, i); in FileDescriptor()
366 for (final Descriptor messageType : messageTypes) { in crossLink()
413 public static final class Descriptor implements GenericDescriptor { class in Descriptors
452 public Descriptor getContainingType() { return containingType; } in getContainingType()
[all …]
DExtensionRegistry.java33 import com.google.protobuf.Descriptors.Descriptor;
150 public ExtensionInfo findExtensionByNumber(final Descriptor containingType, in findExtensionByNumber()
245 private final Descriptor descriptor;
248 DescriptorIntPair(final Descriptor descriptor, final int number) { in DescriptorIntPair()
/external/v8/src/
Dproperty.h42 class Descriptor BASE_EMBEDDED {
76 Descriptor() : details_(Smi::FromInt(0)) {} in Descriptor() function
84 Descriptor(String* key, Object* value, PropertyDetails details) in Descriptor() function
89 Descriptor(String* key,
105 class MapTransitionDescriptor: public Descriptor {
108 : Descriptor(key, map, attributes, MAP_TRANSITION) { } in MapTransitionDescriptor()
116 class ConstTransitionDescriptor: public Descriptor {
119 : Descriptor(key, Smi::FromInt(0), NONE, CONSTANT_TRANSITION) { } in ConstTransitionDescriptor()
123 class FieldDescriptor: public Descriptor {
129 : Descriptor(key, Smi::FromInt(field_index), attributes, FIELD, index) {} in Descriptor() function
[all …]
/external/protobuf/src/google/protobuf/compiler/java/
Djava_message.cc73 bool operator()(const Descriptor::ExtensionRange* a, in operator ()()
74 const Descriptor::ExtensionRange* b) const { in operator ()()
81 const FieldDescriptor** SortFieldsByNumber(const Descriptor* descriptor) { in SortFieldsByNumber()
95 string UniqueFileScopeIdentifier(const Descriptor* descriptor) { in UniqueFileScopeIdentifier()
105 const Descriptor* type, in HasRequiredFields()
106 hash_set<const Descriptor*>* already_seen) { in HasRequiredFields()
140 static bool HasRequiredFields(const Descriptor* type) { in HasRequiredFields()
141 hash_set<const Descriptor*> already_seen; in HasRequiredFields()
149 MessageGenerator::MessageGenerator(const Descriptor* descriptor) in MessageGenerator()
400 vector<const Descriptor::ExtensionRange*> sorted_extensions; in GenerateMessageSerializationMethods()
[all …]
Djava_helpers.h78 inline string ClassName(const Descriptor* descriptor) { in ClassName()
123 inline bool HasUnknownFields(const Descriptor* descriptor) { in HasUnknownFields()
130 inline bool HasGeneratedMethods(const Descriptor* descriptor) { in HasGeneratedMethods()
136 inline bool HasDescriptorMethods(const Descriptor* descriptor) { in HasDescriptorMethods()
Djava_message.h55 explicit MessageGenerator(const Descriptor* descriptor);
80 io::Printer* printer, const Descriptor::ExtensionRange* range);
87 const Descriptor* descriptor_;
Djava_field.h77 explicit FieldGeneratorMap(const Descriptor* descriptor);
84 const Descriptor* descriptor_;
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_message.cc73 const FieldDescriptor** SortFieldsByNumber(const Descriptor* descriptor) { in SortFieldsByNumber()
87 string UniqueFileScopeIdentifier(const Descriptor* descriptor) { in UniqueFileScopeIdentifier()
97 const Descriptor* type, in HasRequiredFields()
98 hash_set<const Descriptor*>* already_seen) { in HasRequiredFields()
132 static bool HasRequiredFields(const Descriptor* type) { in HasRequiredFields()
133 hash_set<const Descriptor*> already_seen; in HasRequiredFields()
141 MessageGenerator::MessageGenerator(const Descriptor* descriptor, const Params& params) in MessageGenerator()
Djavamicro_message.h56 explicit MessageGenerator(const Descriptor* descriptor, const Params& params);
82 const Descriptor* descriptor_;
Djavamicro_field.h77 explicit FieldGeneratorMap(const Descriptor* descriptor, const Params &params);
84 const Descriptor* descriptor_;
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_helpers.h60 string ClassName(const Descriptor* descriptor, bool qualified);
63 string SuperClassName(const Descriptor* descriptor);
77 inline const Descriptor* FieldScope(const FieldDescriptor* field) { in FieldScope()
Dcpp_message.h59 explicit MessageGenerator(const Descriptor* descriptor,
150 io::Printer* printer, const Descriptor::ExtensionRange* range,
154 const Descriptor* descriptor_;
Dcpp_message.cc86 const FieldDescriptor** SortFieldsByNumber(const Descriptor* descriptor) { in SortFieldsByNumber()
99 bool operator()(const Descriptor::ExtensionRange* left, in operator ()()
100 const Descriptor::ExtensionRange* right) const { in operator ()()
111 const Descriptor* type, in HasRequiredFields()
112 hash_set<const Descriptor*>* already_seen) { in HasRequiredFields()
141 static bool HasRequiredFields(const Descriptor* type) { in HasRequiredFields()
142 hash_set<const Descriptor*> already_seen; in HasRequiredFields()
150 MessageGenerator::MessageGenerator(const Descriptor* descriptor, in MessageGenerator()
413 const Descriptor* nested_type = descriptor_->nested_type(i); in GenerateClassDefinition()
1359 const Descriptor::ExtensionRange* range = in GenerateMergeFromCodedStream()
[all …]
/external/protobuf/java/src/test/java/com/google/protobuf/
DDescriptorsTest.java38 import com.google.protobuf.Descriptors.Descriptor;
99 Descriptor messageType = TestAllTypes.getDescriptor(); in testFileDescriptor()
146 Descriptor messageType = TestAllTypes.getDescriptor(); in testDescriptor()
147 Descriptor nestedType = TestAllTypes.NestedMessage.getDescriptor(); in testDescriptor()
190 Descriptor messageType = TestAllTypes.getDescriptor(); in testFieldDescriptor()
272 Descriptor d = TestAllTypes.getDescriptor(); in testFieldDescriptorDefault()
350 Descriptor descriptor = in testCustomOptions()

1234