Home
last modified time | relevance | path

Searched refs:FieldNumber (Results 1 – 7 of 7) sorted by relevance

/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DFieldDescriptor.cs77 if (FieldNumber <= 0) in FieldDescriptor()
205 public int FieldNumber => Proto.Number; field in Google.Protobuf.Reflection.FieldDescriptor
220 return FieldNumber - other.FieldNumber; in CompareTo()
DDescriptorPool.cs230 DescriptorIntPair key = new DescriptorIntPair(field.ContainingType, field.FieldNumber); in AddFieldByNumber()
234 throw new DescriptorValidationException(field, "Field number " + field.FieldNumber + in AddFieldByNumber()
DMessageDescriptor.cs93 …ollection<FieldDescriptor>(fieldsInDeclarationOrder.OrderBy(field => field.FieldNumber).ToArray()); in MessageDescriptor()
/external/protobuf/csharp/src/Google.Protobuf.Test/Reflection/
DDescriptorsTest.cs148 Assert.AreEqual(1, primitiveField.FieldNumber); in FieldDescriptor()
247 …Assert.AreEqual(new[] { 11, 1, 101, 200 }, fields.InDeclarationOrder().Select(x => x.FieldNumber)); in FieldListOrderings()
248 …Assert.AreEqual(new[] { 1, 11, 101, 200 }, fields.InFieldNumberOrder().Select(x => x.FieldNumber)); in FieldListOrderings()
/external/protobuf/csharp/src/Google.Protobuf/
DJsonFormatter.cs649 switch (specifiedField.FieldNumber) in WriteStructFieldValue()
666 …ow new InvalidOperationException("Unexpected case in struct field: " + specifiedField.FieldNumber); in WriteStructFieldValue()
/external/protobuf/csharp/src/Google.Protobuf.Test/
DGeneratedMessageTest.cs647 …alse(TestAllTypes.Descriptor.Fields.InDeclarationOrder().Select(x => x.FieldNumber).Contains(unuse… in IgnoreUnknownFields_RealDataStillRead()
/external/protobuf/src/google/protobuf/
Ddescriptor_unittest.cc821 TEST_F(DescriptorTest, FieldNumber) { in TEST_F() argument