public abstract class Extension<ContainingType extends MessageLite,Type> extends ExtensionLite<ContainingType,Type>
| Modifier and Type | Class and Description |
|---|---|
static class |
Extension.MessageType
Type of a message extension.
|
| Constructor and Description |
|---|
Extension() |
| Modifier and Type | Method and Description |
|---|---|
abstract Descriptors.FieldDescriptor |
getDescriptor()
Returns the descriptor of the extension.
|
abstract Message |
getMessageDefaultInstance()
Returns the default instance of the extension field, if it's a message extension.
|
Extension.MessageType |
getMessageType()
If the extension is a message extension (i.e., getLiteType() == MESSAGE), returns the type of
the message, otherwise undefined.
|
getDefaultValue, getLiteType, getNumber, isRepeatedpublic abstract Message getMessageDefaultInstance()
Message instead of MessageLite.getMessageDefaultInstance in class ExtensionLite<ContainingType extends MessageLite,Type>public abstract Descriptors.FieldDescriptor getDescriptor()
public Extension.MessageType getMessageType()