Lines Matching defs:number
206 /// Returns the field with the given number in the given descriptor,
209 internal FieldDescriptor FindFieldByNumber(MessageDescriptor messageDescriptor, int number)
212 fieldsByNumber.TryGetValue(new DescriptorIntPair(messageDescriptor, number), out ret);
216 internal EnumValueDescriptor FindEnumValueByNumber(EnumDescriptor enumDescriptor, int number)
219 enumValuesByNumber.TryGetValue(new DescriptorIntPair(enumDescriptor, number), out ret);
227 /// containing type and number already exists.</exception>
234 throw new DescriptorValidationException(field, "Field number " + field.FieldNumber +
244 /// with the same type and number already exists, this method does nothing.
245 /// (This is allowed; the first value defined with the number takes precedence.)
249 DescriptorIntPair key = new DescriptorIntPair(enumValue.EnumDescriptor, enumValue.Number);
338 private readonly int number;
341 internal DescriptorIntPair(IDescriptor descriptor, int number)
343 this.number = number;
350 && number == other.number;
364 return descriptor.GetHashCode()*((1 << 16) - 1) + number;