protobuf package. Others should not use this class directly.
This class contains constants and helper functions useful for dealing with the Protocol Buffer wire format.
| Modifier and Type | Class and Description |
|---|---|
| public static enum | WireFormat.FieldType
Lite equivalent to |
| public static enum | WireFormat.JavaType
Lite equivalent to |
| pack-priv static enum | WireFormat.Utf8Validation
Validation level for handling incoming string field data which potentially contain non-UTF8 bytes. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static int | |
| pack-priv static int | makeTag(final int fieldNumber, final int wireType)
Makes a tag value given a field number and wire type. |
| pack-priv static Object | Returns: An object representing the field's value, of the exact type which would be returned byMessage#getField(Descriptors. for this field.The stream from which to read. input, WireFormat.Declared type of the field. type,Different string UTF8 validation level for handling string fields. utf8ValidationRead a field of any primitive type for immutable messages from a CodedInputStream. |
| FIXED32_SIZE | back to summary |
|---|---|
| pack-priv static final int FIXED32_SIZE | |
| FIXED64_SIZE | back to summary |
|---|---|
| pack-priv static final int FIXED64_SIZE | |
| MAX_VARINT32_SIZE | back to summary |
|---|---|
| pack-priv static final int MAX_VARINT32_SIZE | |
| MAX_VARINT64_SIZE | back to summary |
|---|---|
| pack-priv static final int MAX_VARINT64_SIZE | |
| MAX_VARINT_SIZE | back to summary |
|---|---|
| pack-priv static final int MAX_VARINT_SIZE | |
| MESSAGE_SET_ITEM | back to summary |
|---|---|
| pack-priv static final int MESSAGE_SET_ITEM | |
| MESSAGE_SET_ITEM_END_TAG | back to summary |
|---|---|
| pack-priv static final int MESSAGE_SET_ITEM_END_TAG | |
| MESSAGE_SET_ITEM_TAG | back to summary |
|---|---|
| pack-priv static final int MESSAGE_SET_ITEM_TAG | |
| MESSAGE_SET_MESSAGE | back to summary |
|---|---|
| pack-priv static final int MESSAGE_SET_MESSAGE | |
| MESSAGE_SET_MESSAGE_TAG | back to summary |
|---|---|
| pack-priv static final int MESSAGE_SET_MESSAGE_TAG | |
| MESSAGE_SET_TYPE_ID | back to summary |
|---|---|
| pack-priv static final int MESSAGE_SET_TYPE_ID | |
| MESSAGE_SET_TYPE_ID_TAG | back to summary |
|---|---|
| pack-priv static final int MESSAGE_SET_TYPE_ID_TAG | |
| TAG_TYPE_BITS | back to summary |
|---|---|
| pack-priv static final int TAG_TYPE_BITS | |
| TAG_TYPE_MASK | back to summary |
|---|---|
| pack-priv static final int TAG_TYPE_MASK | |
| WIRETYPE_END_GROUP | back to summary |
|---|---|
| public static final int WIRETYPE_END_GROUP | |
| WIRETYPE_FIXED32 | back to summary |
|---|---|
| public static final int WIRETYPE_FIXED32 | |
| WIRETYPE_FIXED64 | back to summary |
|---|---|
| public static final int WIRETYPE_FIXED64 | |
| WIRETYPE_LENGTH_DELIMITED | back to summary |
|---|---|
| public static final int WIRETYPE_LENGTH_DELIMITED | |
| WIRETYPE_START_GROUP | back to summary |
|---|---|
| public static final int WIRETYPE_START_GROUP | |
| WIRETYPE_VARINT | back to summary |
|---|---|
| public static final int WIRETYPE_VARINT | |
| WireFormat | back to summary |
|---|---|
| private WireFormat() | |
| getTagFieldNumber | back to summary |
|---|---|
| public static int getTagFieldNumber(final int tag) Given a tag value, determines the field number (the upper 29 bits). | |
| getTagWireType | back to summary |
|---|---|
| public static int getTagWireType(final int tag) Given a tag value, determines the wire type (the lower 3 bits). | |
| makeTag | back to summary |
|---|---|
| pack-priv static int makeTag(final int fieldNumber, final int wireType) Makes a tag value given a field number and wire type. | |
| readPrimitiveField | back to summary |
|---|---|
| pack-priv static Object readPrimitiveField(CodedInputStream input, WireFormat. Read a field of any primitive type for immutable messages from a CodedInputStream. Enums, groups, and embedded messages are not handled by this method.
| |
Descriptors.FieldDescriptor.Type . This is only here to support the
lite runtime and should not be used by users.
| Modifier and Type | Field and Description |
|---|---|
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| private final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public WireFormat. | |
| public int | |
| public boolean | |
| public static WireFormat. | |
| public static WireFormat. |
| BOOL | back to summary |
|---|---|
| public static final WireFormat. | |
| BYTES | back to summary |
|---|---|
| public static final WireFormat. | |
| DOUBLE | back to summary |
|---|---|
| public static final WireFormat. | |
| ENUM | back to summary |
|---|---|
| public static final WireFormat. | |
| FIXED32 | back to summary |
|---|---|
| public static final WireFormat. | |
| FIXED64 | back to summary |
|---|---|
| public static final WireFormat. | |
| FLOAT | back to summary |
|---|---|
| public static final WireFormat. | |
| GROUP | back to summary |
|---|---|
| public static final WireFormat. | |
| INT32 | back to summary |
|---|---|
| public static final WireFormat. | |
| INT64 | back to summary |
|---|---|
| public static final WireFormat. | |
| javaType | back to summary |
|---|---|
| private final WireFormat. | |
| MESSAGE | back to summary |
|---|---|
| public static final WireFormat. | |
| SFIXED32 | back to summary |
|---|---|
| public static final WireFormat. | |
| SFIXED64 | back to summary |
|---|---|
| public static final WireFormat. | |
| SINT32 | back to summary |
|---|---|
| public static final WireFormat. | |
| SINT64 | back to summary |
|---|---|
| public static final WireFormat. | |
| STRING | back to summary |
|---|---|
| public static final WireFormat. | |
| UINT32 | back to summary |
|---|---|
| public static final WireFormat. | |
| UINT64 | back to summary |
|---|---|
| public static final WireFormat. | |
| wireType | back to summary |
|---|---|
| private final int wireType | |
| FieldType | back to summary |
|---|---|
| private FieldType(final WireFormat. | |
| getJavaType | back to summary |
|---|---|
| public WireFormat. | |
| getWireType | back to summary |
|---|---|
| public int getWireType() | |
| isPackable | back to summary |
|---|---|
| public boolean isPackable() | |
| valueOf | back to summary |
|---|---|
| public static WireFormat. | |
| values | back to summary |
|---|---|
| public static WireFormat. | |
Descriptors.FieldDescriptor.JavaType . This is only here to support
the lite runtime and should not be used by users.
| Modifier and Type | Field and Description |
|---|---|
| public static final WireFormat. | |
| public static final WireFormat. | |
| private final Object | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. | |
| public static final WireFormat. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object | |
| public static WireFormat. | |
| public static WireFormat. |
| BOOLEAN | back to summary |
|---|---|
| public static final WireFormat. | |
| BYTE_STRING | back to summary |
|---|---|
| public static final WireFormat. | |
| defaultDefault | back to summary |
|---|---|
| private final Object defaultDefault | |
| DOUBLE | back to summary |
|---|---|
| public static final WireFormat. | |
| ENUM | back to summary |
|---|---|
| public static final WireFormat. | |
| FLOAT | back to summary |
|---|---|
| public static final WireFormat. | |
| INT | back to summary |
|---|---|
| public static final WireFormat. | |
| LONG | back to summary |
|---|---|
| public static final WireFormat. | |
| MESSAGE | back to summary |
|---|---|
| public static final WireFormat. | |
| STRING | back to summary |
|---|---|
| public static final WireFormat. | |
| JavaType | back to summary |
|---|---|
| private JavaType(final Object defaultDefault) | |
| getDefaultDefault | back to summary |
|---|---|
| pack-priv Object getDefaultDefault() The default default value for fields of this type, if it's a primitive type. | |
| valueOf | back to summary |
|---|---|
| public static WireFormat. | |
| values | back to summary |
|---|---|
| public static WireFormat. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final WireFormat. | LAZY
Keep data as ByteString; validation/conversion to String is lazy. |
| public static final WireFormat. | LOOSE
Eagerly parses to String; silently accepts invalid UTF8 bytes. |
| public static final WireFormat. | STRICT
Eagerly parses to String; throws an IOException on invalid bytes. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv abstract Object | readString(CodedInputStream input)
Read a string field from the input with the proper UTF8 validation. |
| public static WireFormat. | |
| public static WireFormat. |
| LAZY | back to summary |
|---|---|
| public static final WireFormat. Keep data as ByteString; validation/conversion to String is lazy. | |
| LOOSE | back to summary |
|---|---|
| public static final WireFormat. Eagerly parses to String; silently accepts invalid UTF8 bytes. | |
| STRICT | back to summary |
|---|---|
| public static final WireFormat. Eagerly parses to String; throws an IOException on invalid bytes. | |
| Utf8Validation | back to summary |
|---|---|
| private Utf8Validation() | |
| readString | back to summary |
|---|---|
| pack-priv abstract Object readString(CodedInputStream input) throws IOException Read a string field from the input with the proper UTF8 validation. | |
| valueOf | back to summary |
|---|---|
| public static WireFormat. | |
| values | back to summary |
|---|---|
| public static WireFormat. | |