Lines Matching refs:field
206 /// Returns the field with the given number in the given descriptor,
224 /// Adds a field to the fieldsByNumber table.
226 /// <exception cref="DescriptorValidationException">A field with the same
228 internal void AddFieldByNumber(FieldDescriptor field)
231 ObjectIntPair<IDescriptor> key = new ObjectIntPair<IDescriptor>(field.Proto.HasExtendee ? field.ExtendeeType : field.ContainingType, field.FieldNumber);
235 throw new DescriptorValidationException(field, "Field number " + field.FieldNumber +
237 field.ContainingType.FullName +
238 "\" by field \"" + old.Name + "\".");
240 fieldsByNumber[key] = field;