<PackageReference Include="Google.Protobuf" Version="3.36.1" />

Google.Protobuf.UnknownFieldSet

public sealed class UnknownFieldSet
Used to keep track of fields which were seen when parsing a protocol message but whose field numbers or types are unrecognized. This most frequently occurs when new fields are added to a message type and then messages containing those fields are read by old software that was built before the new types were added. Most users will never need to use this class directly.
public static UnknownFieldSet Clone(UnknownFieldSet other)

Clone an unknown field set from other.

public static UnknownFieldSet MergeFieldFrom(UnknownFieldSet unknownFields, CodedInputStream input)

Create a new UnknownFieldSet if unknownFields is null. Parse a single field from input and merge it into unknownFields. If input is configured to discard unknown fields, unknownFields will be returned as-is and the field will be skipped.

public static UnknownFieldSet MergeFieldFrom(UnknownFieldSet unknownFields, ref ParseContext ctx)

Create a new UnknownFieldSet if unknownFields is null. Parse a single field from ctx and merge it into unknownFields. If ctx is configured to discard unknown fields, unknownFields will be returned as-is and the field will be skipped.

public static UnknownFieldSet MergeFrom(UnknownFieldSet unknownFields, UnknownFieldSet other)

Created a new UnknownFieldSet to unknownFields if needed and merges the fields from other into the first set. If a field number exists in both sets, the values in other will be appended to the values in this set.

public int CalculateSize()

Gets the number of bytes required to encode this set.

public void WriteTo(CodedOutputStream output)

Serializes the set and writes it to output.

public void WriteTo(ref WriteContext ctx)

Serializes the set and writes it to ctx.