Stay organized with collectionsSave and categorize content based on your preferences.
publicfinalclassUnknownFieldSetLite
UnknownFieldSetLiteis 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 compiled before the new types were added.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Class UnknownFieldSetLite (3.19.4)\n\n public final class UnknownFieldSetLite\n\n`UnknownFieldSetLite` is used to keep track of fields which were seen when parsing a\nprotocol message but whose field numbers or types are unrecognized. This most frequently occurs\nwhen new fields are added to a message type and then messages containing those fields are read by\nold software that was compiled before the new types were added.\n\nFor use by generated code only. \n\nInheritance\n-----------\n\n[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e UnknownFieldSetLite \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nStatic Methods\n--------------\n\n### getDefaultInstance()\n\n public static UnknownFieldSetLite getDefaultInstance()\n\nGet an empty `UnknownFieldSetLite`.\n\nFor use by generated code only.\n\nMethods\n-------\n\n### equals(Object obj)\n\n public boolean equals(Object obj)\n\n**Overrides** \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-)\n\n### getSerializedSize()\n\n public int getSerializedSize()\n\nGet the number of bytes required to encode this set.\n\nFor use by generated code only.\n\n### getSerializedSizeAsMessageSet()\n\n public int getSerializedSizeAsMessageSet()\n\nGet the number of bytes required to encode this field, including field number, using `\nMessageSet` wire format.\n\n### hashCode()\n\n public int hashCode()\n\n**Overrides** \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--)\n\n### makeImmutable()\n\n public void makeImmutable()\n\nMarks this object as immutable.\n\nFuture calls to methods that attempt to modify this object will throw.\n\n### writeAsMessageSetTo(CodedOutputStream output)\n\n public void writeAsMessageSetTo(CodedOutputStream output)\n\nSerializes the set and writes it to `output` using `MessageSet` wire format.\n\nFor use by generated code only.\n\n### writeTo(CodedOutputStream output)\n\n public void writeTo(CodedOutputStream output)\n\nSerializes the set and writes it to `output`.\n\nFor use by generated code only.\n\n### writeTo(Writer writer)\n\n public void writeTo(Writer writer)\n\nSerializes the set and writes it to `writer`."]]