Lines Matching refs:Descriptor
51 #include <google/protobuf/descriptor.h>
52 #include <google/protobuf/descriptor.pb.h>
68 const Descriptor* descriptor_;
70 const Descriptor* extensions_descriptor_;
72 const Descriptor* packed_descriptor_;
74 const Descriptor* oneof_descriptor_;
76 const Descriptor* proto3_descriptor_;
91 unittest::TestAllTypes::descriptor()->file()->CopyTo(&unittest_file);
92 unittest_import::ImportMessage::descriptor()->file()->CopyTo(
94 unittest_import::PublicImportMessage::descriptor()->file()->CopyTo(
96 proto2_nofieldpresence_unittest::TestAllTypes::descriptor()->
131 TEST_F(DynamicMessageTest, Descriptor) {
132 // Check that the descriptor on the DynamicMessage matches the descriptor
182 const Descriptor* descriptor = message->GetDescriptor();
185 *message, descriptor->FindFieldByName("foo_int")));
187 *message, descriptor->FindFieldByName("foo_string")));
189 *message, descriptor->FindFieldByName("foo_cord")));
191 *message, descriptor->FindFieldByName("foo_string_piece")));
193 *message, descriptor->FindFieldByName("foo_bytes")));
195 *message, descriptor->FindFieldByName("foo_enum"))->number());
196 const Descriptor* nested_descriptor;
203 *message, descriptor->FindFieldByName("foo_message")));
204 const Descriptor* foogroup_descriptor;
211 *message, descriptor->FindFieldByName("foogroup")));
214 *message, descriptor->FindFieldByName("foo_lazy_message")));
216 *message, descriptor->FindFieldByName("bar_int")));
218 *message, descriptor->FindFieldByName("bar_string")));
220 *message, descriptor->FindFieldByName("bar_cord")));
222 *message, descriptor->FindFieldByName("bar_string_piece")));
224 *message, descriptor->FindFieldByName("bar_bytes")));
226 *message, descriptor->FindFieldByName("bar_enum"))->number());
259 const Descriptor* desc = message->GetDescriptor();