public abstract class Extension<ContainingType extends MessageLite,Type> extends ExtensionLite<ContainingType,Type>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Extension.ExtensionType
The API type that the extension is used for.
|
static class |
Extension.MessageType
Type of a message extension.
|
| Constructor and Description |
|---|
Extension() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
fromReflectionType(java.lang.Object value) |
abstract Descriptors.FieldDescriptor |
getDescriptor()
Returns the descriptor of the extension.
|
protected Extension.ExtensionType |
getExtensionType() |
Extension.MessageType |
getMessageType()
If the extension is a message extension (i.e., getLiteType() == MESSAGE),
returns the type of the message, otherwise undefined.
|
protected abstract java.lang.Object |
singularFromReflectionType(java.lang.Object value) |
protected abstract java.lang.Object |
singularToReflectionType(java.lang.Object value) |
protected abstract java.lang.Object |
toReflectionType(java.lang.Object value) |
getDefaultValue, getLiteType, getMessageDefaultInstance, getNumber, isRepeatedpublic abstract Descriptors.FieldDescriptor getDescriptor()
protected Extension.ExtensionType getExtensionType()
public Extension.MessageType getMessageType()
protected abstract java.lang.Object fromReflectionType(java.lang.Object value)
protected abstract java.lang.Object singularFromReflectionType(java.lang.Object value)
protected abstract java.lang.Object toReflectionType(java.lang.Object value)
protected abstract java.lang.Object singularToReflectionType(java.lang.Object value)