clazz.
| Modifier and Type | Class and Description |
|---|---|
| private static class | Extension.PrimitiveExtension<M extends ExtendableMessageNano
Represents an extension of a primitive (including enum) type. |
| Modifier and Type | Field and Description |
|---|---|
| protected final Class | clazz
Java type of this extension. |
| protected final boolean | repeated
Whether this extension is repeated. |
| public final int | tag
Tag number of this extension. |
| protected final int | type
Protocol Buffer type of this extension; one of the |
| public 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 | |
| public 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 | |
| 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 |
|---|---|
| protected int | |
| pack-priv int | |
| protected int | |
| public static <M extends ExtendableMessageNano | createMessageTyped(int type, Class<T> clazz, int tag)
Deprecated
use
Creates an createMessageTyped(int, Class, long) instead.
Extension of the given message type and tag number.
|
| public static <M extends ExtendableMessageNano | createMessageTyped(int type, Class<T> clazz, long tag)
Creates an |
| public static <M extends ExtendableMessageNano | createPrimitiveTyped(int type, Class<T>
the boxed Java type of this extension clazz, long tag)Creates an |
| public static <M extends ExtendableMessageNano | createRepeatedMessageTyped(int type, Class<T[]> clazz, long tag)
Creates a repeated |
| public static <M extends ExtendableMessageNano | createRepeatedPrimitiveTyped(int type, Class<T>
the Java array type of this extension, with an unboxed component type clazz, long tag, long nonPackedTag, long packedTag)Creates a repeated |
| private T | |
| private T | |
| pack-priv final T | getValueFrom(List<UnknownFieldData>
a list of unknownFields)UnknownFieldData. All of the elements must have a tag
that matches this Extension's tag.Returns the value of this extension stored in the given list of unknown fields, or
|
| protected Object | |
| protected void | |
| protected void | |
| protected void | |
| pack-priv void |
| clazz | back to summary |
|---|---|
| protected final Class<T> clazz Java type of this extension. For a singular extension, this is the boxed Java type for the
Protocol Buffer | |
| repeated | back to summary |
|---|---|
| protected final boolean repeated Whether this extension is repeated. | |
| tag | back to summary |
|---|---|
| public final int tag Tag number of this extension. The data should be viewed as an unsigned 32-bit value. | |
| type | back to summary |
|---|---|
| protected final int type Protocol Buffer type of this extension; one of the | |
| TYPE_BOOL | back to summary |
|---|---|
| public static final int TYPE_BOOL | |
| TYPE_BYTES | back to summary |
|---|---|
| public static final int TYPE_BYTES | |
| TYPE_DOUBLE | back to summary |
|---|---|
| public static final int TYPE_DOUBLE | |
| TYPE_ENUM | back to summary |
|---|---|
| public static final int TYPE_ENUM | |
| TYPE_FIXED32 | back to summary |
|---|---|
| public static final int TYPE_FIXED32 | |
| TYPE_FIXED64 | back to summary |
|---|---|
| public static final int TYPE_FIXED64 | |
| TYPE_FLOAT | back to summary |
|---|---|
| public static final int TYPE_FLOAT | |
| TYPE_GROUP | back to summary |
|---|---|
| public static final int TYPE_GROUP | |
| TYPE_INT32 | back to summary |
|---|---|
| public static final int TYPE_INT32 | |
| TYPE_INT64 | back to summary |
|---|---|
| public static final int TYPE_INT64 | |
| TYPE_MESSAGE | back to summary |
|---|---|
| public static final int TYPE_MESSAGE | |
| TYPE_SFIXED32 | back to summary |
|---|---|
| public static final int TYPE_SFIXED32 | |
| TYPE_SFIXED64 | back to summary |
|---|---|
| public static final int TYPE_SFIXED64 | |
| TYPE_SINT32 | back to summary |
|---|---|
| public static final int TYPE_SINT32 | |
| TYPE_SINT64 | back to summary |
|---|---|
| public static final int TYPE_SINT64 | |
| TYPE_STRING | back to summary |
|---|---|
| public static final int TYPE_STRING | |
| TYPE_UINT32 | back to summary |
|---|---|
| public static final int TYPE_UINT32 | |
| TYPE_UINT64 | back to summary |
|---|---|
| public static final int TYPE_UINT64 | |
| Extension | back to summary |
|---|---|
| private Extension(int type, Class<T> clazz, int tag, boolean repeated) | |
| computeRepeatedSerializedSize | back to summary |
|---|---|
| protected int computeRepeatedSerializedSize(Object array) | |
| computeSerializedSize | back to summary |
|---|---|
| pack-priv int computeSerializedSize(Object value) | |
| computeSingularSerializedSize | back to summary |
|---|---|
| protected int computeSingularSerializedSize(Object value) | |
| createMessageTyped | back to summary |
|---|---|
| public static <M extends ExtendableMessageNano Deprecated use Creates an
| |
| createMessageTyped | back to summary |
|---|---|
| public static <M extends ExtendableMessageNano Creates an
| |
| createPrimitiveTyped | back to summary |
|---|---|
| public static <M extends ExtendableMessageNano Creates an
| |
| createRepeatedMessageTyped | back to summary |
|---|---|
| public static <M extends ExtendableMessageNano Creates a repeated
| |
| createRepeatedPrimitiveTyped | back to summary |
|---|---|
| public static <M extends ExtendableMessageNano Creates a repeated
| |
| getRepeatedValueFrom | back to summary |
|---|---|
| private T getRepeatedValueFrom(List<UnknownFieldData> unknownFields) | |
| getSingularValueFrom | back to summary |
|---|---|
| private T getSingularValueFrom(List<UnknownFieldData> unknownFields) | |
| getValueFrom | back to summary |
|---|---|
| pack-priv final T getValueFrom(List<UnknownFieldData> unknownFields) Returns the value of this extension stored in the given list of unknown fields, or
| |
| readData | back to summary |
|---|---|
| protected Object readData(CodedInputByteBufferNano input) | |
| readDataInto | back to summary |
|---|---|
| protected void readDataInto(UnknownFieldData data, List<Object> resultList) | |
| writeRepeatedData | back to summary |
|---|---|
| protected void writeRepeatedData(Object array, CodedOutputByteBufferNano output) | |
| writeSingularData | back to summary |
|---|---|
| protected void writeSingularData(Object value, CodedOutputByteBufferNano out) | |
| writeTo | back to summary |
|---|---|
| pack-priv void writeTo(Object value, CodedOutputByteBufferNano output) throws IOException | |
| Modifier and Type | Field and Description |
|---|---|
| private final int | nonPackedTag
Tag of a piece of non-packed data from the wire compatible with this extension. |
| private final int | packedTag
Tag of a piece of packed data from the wire compatible with this extension. |
| Access | Constructor and Description |
|---|---|
| public | PrimitiveExtension(int type, Class<T> clazz, int tag, boolean repeated, int nonPackedTag, int packedTag)
|
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| protected int | |
| protected final int | |
| protected Object | |
| protected void | readDataInto(UnknownFieldData data, List<Object> resultList)
|
| protected void | writeRepeatedData(Object array, CodedOutputByteBufferNano output)
Overrides com. |
| protected final void | writeSingularData(Object value, CodedOutputByteBufferNano output)
Overrides com. |
| nonPackedTag | back to summary |
|---|---|
| private final int nonPackedTag Tag of a piece of non-packed data from the wire compatible with this extension. | |
| packedTag | back to summary |
|---|---|
| private final int packedTag Tag of a piece of packed data from the wire compatible with this extension. 0 if the type of this extension is not packable. | |
| PrimitiveExtension | back to summary |
|---|---|
| public PrimitiveExtension(int type, Class<T> clazz, int tag, boolean repeated, int nonPackedTag, int packedTag) | |
| computePackedDataSize | back to summary |
|---|---|
| private int computePackedDataSize(Object array) | |
| computeRepeatedSerializedSize | back to summary |
|---|---|
| protected int computeRepeatedSerializedSize(Object array) Overrides com.
| |
| computeSingularSerializedSize | back to summary |
|---|---|
| protected final int computeSingularSerializedSize(Object value) Overrides com.
| |
| readData | back to summary |
|---|---|
| protected Object readData(CodedInputByteBufferNano input) Overrides com.
| |
| readDataInto | back to summary |
|---|---|
| protected void readDataInto(UnknownFieldData data, List<Object> resultList) Overrides com.
| |
| writeRepeatedData | back to summary |
|---|---|
| protected void writeRepeatedData(Object array, CodedOutputByteBufferNano output) Overrides com.
| |
| writeSingularData | back to summary |
|---|---|
| protected final void writeSingularData(Object value, CodedOutputByteBufferNano output) Overrides com.
| |