Package | Description |
---|---|
com.google.protobuf.nano |
Modifier and Type | Class and Description |
---|---|
private static class |
Extension.PrimitiveExtension<M extends ExtendableMessageNano<M>,T>
Represents an extension of a primitive (including enum) type.
|
Modifier and Type | Field and Description |
---|---|
private Extension<?,?> |
FieldData.cachedExtension |
Modifier and Type | Method and Description |
---|---|
static <M extends ExtendableMessageNano<M>,T extends MessageNano> |
Extension.createMessageTyped(int type,
java.lang.Class<T> clazz,
int tag)
Deprecated.
use
createMessageTyped(int, Class, long) instead. |
static <M extends ExtendableMessageNano<M>,T extends MessageNano> |
Extension.createMessageTyped(int type,
java.lang.Class<T> clazz,
long tag)
Creates an
Extension of the given message type and tag number. |
static <M extends ExtendableMessageNano<M>,T> |
Extension.createPrimitiveTyped(int type,
java.lang.Class<T> clazz,
long tag)
Creates an
Extension of the given primitive type and tag number. |
static <M extends ExtendableMessageNano<M>,T extends MessageNano> |
Extension.createRepeatedMessageTyped(int type,
java.lang.Class<T[]> clazz,
long tag)
Creates a repeated
Extension of the given message type and tag number. |
static <M extends ExtendableMessageNano<M>,T> |
Extension.createRepeatedPrimitiveTyped(int type,
java.lang.Class<T> clazz,
long tag,
long nonPackedTag,
long packedTag)
Creates a repeated
Extension of the given primitive type and tag number. |
Modifier and Type | Method and Description |
---|---|
<T> T |
ExtendableMessageNano.getExtension(Extension<M,T> extension)
Gets the value stored in the specified extension of this message.
|
(package private) <T> T |
FieldData.getValue(Extension<?,T> extension) |
boolean |
ExtendableMessageNano.hasExtension(Extension<M,?> extension)
Checks if there is a value stored for the specified extension in this
message.
|
<T> M |
ExtendableMessageNano.setExtension(Extension<M,T> extension,
T value)
Sets the value of the specified extension of this message.
|
(package private) <T> void |
FieldData.setValue(Extension<?,T> extension,
T newValue) |
Constructor and Description |
---|
FieldData(Extension<?,T> extension,
T newValue) |