Language

WireType Enum

Definition

public enum WireType
type WireType = 
Inheritance
WireType

Fields

Name Value Description
Varint 0

Varint wire type code.

Android reference for android.util.proto.ProtoOutputStream.WIRE_TYPE_VARINT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fixed64 1

Fixed64 wire type code.

Android reference for android.util.proto.ProtoOutputStream.WIRE_TYPE_FIXED64.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

LengthDelimited 2

Length delimited wire type code.

Android reference for android.util.proto.ProtoOutputStream.WIRE_TYPE_LENGTH_DELIMITED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

StartGroup 3

Start group wire type code.

Android reference for android.util.proto.ProtoOutputStream.WIRE_TYPE_START_GROUP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

EndGroup 4

End group wire type code.

Android reference for android.util.proto.ProtoOutputStream.WIRE_TYPE_END_GROUP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Fixed32 5

Fixed32 wire type code.

Android reference for android.util.proto.ProtoOutputStream.WIRE_TYPE_FIXED32.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Mask 7

Mask to select the wire type from a tag.

// Reading a wire type from a tag.
int wireType = tag & WIRE_TYPE_MASK;

// Building a tag from a field number and a wire type.
int tag = (fieldNumber << FIELD_ID_SHIFT) | wireType;

Android reference for android.util.proto.ProtoOutputStream.WIRE_TYPE_MASK.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to