public
abstract
class
Extension<ContainingType
,
Type
>
extends
ExtensionLite<ContainingType
,
Type
>
Interface that generated extensions implement.
Type Parameters
Name
Description
ContainingType
Type
Constructors
Extension()
public
Extension
()
Methods
fromReflectionType(Object value)
protected
abstract
Object
fromReflectionType
(
Object
value
)
getDescriptor()
public
abstract
Descriptors
.
FieldDescriptor
getDescriptor
()
Returns the descriptor of the extension.
getExtensionType()
protected
abstract
Extension
.
ExtensionType
getExtensionType
()
getMessageDefaultInstance()
public
abstract
Message
getMessageDefaultInstance
()
Returns the default instance of the extension field, if it's a message extension. Overridden to return Message instead of MessageLite .
getMessageType()
public
Extension
.
MessageType
getMessageType
()
If the extension is a message extension (i.e., getLiteType() == MESSAGE), returns the type of the message, otherwise undefined.
singularFromReflectionType(Object value)
protected
abstract
Object
singularFromReflectionType
(
Object
value
)
singularToReflectionType(Object value)
protected
abstract
Object
singularToReflectionType
(
Object
value
)
toReflectionType(Object value)
protected
abstract
Object
toReflectionType
(
Object
value
)

