Lines Matching refs:FieldDescriptor
109 FieldDescriptor field = messageType.Fields.InDeclarationOrder()[0];
111 Assert.AreEqual(field, messageType.FindDescriptor<FieldDescriptor>("single_int32"));
112 Assert.Null(messageType.FindDescriptor<FieldDescriptor>("no_such_field"));
138 public void FieldDescriptor()
141 FieldDescriptor primitiveField = messageType.FindDescriptor<FieldDescriptor>("single_int32");
142 FieldDescriptor enumField = messageType.FindDescriptor<FieldDescriptor>("single_nested_enum");
143 FieldDescriptor messageField = messageType.FindDescriptor<FieldDescriptor>("single_foreign_message");
166 FieldDescriptor singleField =
167 TestAllTypes.Descriptor.FindDescriptor<FieldDescriptor>("single_int32");
168 FieldDescriptor repeatedField =
169 TestAllTypes.Descriptor.FindDescriptor<FieldDescriptor>("repeated_int32");