Lines Matching defs:field
43 /// but whose field numbers or types are unrecognized. This most frequently
63 /// Checks whether or not the given field number is present in the set.
65 internal bool HasField(int field)
67 return fields.ContainsKey(field);
112 /// Checks if two unknown field sets are equal.
142 /// Gets the unknown field set's hash code.
147 foreach (KeyValuePair<int, UnknownField> field in fields)
149 // Use ^ here to make the field order irrelevant.
150 int hash = field.Key.GetHashCode() ^ field.Value.GetHashCode();
156 // Optimization: We keep around the last field that was
158 // row (important when parsing an unknown repeated field).
185 /// Adds a field to the set. If a field with the same number already exists, it
188 internal UnknownFieldSet AddOrReplaceField(int number, UnknownField field)
192 throw new ArgumentOutOfRangeException("number", "Zero is not a valid field number.");
194 fields[number] = field;
199 /// Parse a single field from <paramref name="ctx"/> and merge it
202 /// <param name="ctx">The parse context from which to read the field</param>
268 /// Parse a single field from <paramref name="input"/> and merge it
270 /// <paramref name="unknownFields"/> will be returned as-is and the field will be skipped.
273 /// <param name="input">The coded input stream containing the field</param>
291 /// Parse a single field from <paramref name="ctx"/> and merge it
293 /// <paramref name="unknownFields"/> will be returned as-is and the field will be skipped.
296 /// <param name="ctx">The parse context from which to read the field</param>
313 throw new InvalidProtocolBufferException("Merge an unknown field of end-group tag, indicating that the corresponding start-group was missing."); // match the old code-gen
320 /// If a field number exists in both sets, the values in <paramref name="other"/>
338 /// If a field number exists in both sets, the values in <paramref name="other"/>
358 /// Adds a field to the unknown field set. If a field with the same
361 private UnknownFieldSet MergeField(int number, UnknownField field)
365 throw new ArgumentOutOfRangeException("number", "Zero is not a valid field number.");
369 GetOrAddField(number).MergeFrom(field);
373 AddOrReplaceField(number, field);
379 /// Clone an unknown field set from <paramref name="other"/>.