Stay organized with collectionsSave and categorize content based on your preferences.
publicfinalclassWireFormat
This class is used internally by the Protocol Buffer library and generated message
implementations. It is public only because those generated messages do not reside in theprotobufpackage. Others should not use this class directly.
This class contains constants and helper functions useful for dealing with the Protocol Buffer
wire format.
[[["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 WireFormat (3.19.4)\n\n public final class WireFormat\n\nThis class is used internally by the Protocol Buffer library and generated message\nimplementations. It is public only because those generated messages do not reside in the `\nprotobuf` package. Others should not use this class directly.\n\nThis class contains constants and helper functions useful for dealing with the Protocol Buffer\nwire format. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e WireFormat \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 Fields\n-------------\n\n### WIRETYPE_END_GROUP\n\n public static final int WIRETYPE_END_GROUP\n\n### WIRETYPE_FIXED32\n\n public static final int WIRETYPE_FIXED32\n\n### WIRETYPE_FIXED64\n\n public static final int WIRETYPE_FIXED64\n\n### WIRETYPE_LENGTH_DELIMITED\n\n public static final int WIRETYPE_LENGTH_DELIMITED\n\n### WIRETYPE_START_GROUP\n\n public static final int WIRETYPE_START_GROUP\n\n### WIRETYPE_VARINT\n\n public static final int WIRETYPE_VARINT\n\nStatic Methods\n--------------\n\n### getTagFieldNumber(int tag)\n\n public static int getTagFieldNumber(int tag)\n\nGiven a tag value, determines the field number (the upper 29 bits).\n\n### getTagWireType(int tag)\n\n public static int getTagWireType(int tag)\n\nGiven a tag value, determines the wire type (the lower 3 bits)."]]