Whether the given value would be encoded as the default value for its corresponding protobuf scalar type.
Whether the given value would be encoded as the default value for its corresponding protobuf scalar type.
If the field has the default value, we need to skip it when writing to protobuf.
Default values for the protobuf scalar types are as follows:
string -> "" bytes -> empty bytes bool -> false all numeric types -> zero enums -> the first defined enum value, which must be 0
For embedded message fields, there isn't a sensible default value so this method will always return false.
The wire type that this writer uses.
The wire type that this writer uses.
0 = varint 1 = fixed64 2 = length delimited 5 = fixed32 (3 and 4 are deprecated and should not be used)
one of the WIRETYPE
constants listed in com.google.protobuf.WireFormat
Write the value to the output stream *without* prefixing a tag.
Whether repeated fields of this type can be packed.
Whether repeated fields of this type can be packed. Primitive repeated fields (ints, floats, bools and enums) can be packed, and should be, unless overriden using a @pbUnpacked annotation.