|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.protobuf.Extension<ContainingType,Type>
public abstract class Extension<ContainingType extends MessageLite,Type>
Interface that generated extensions implement.
Nested Class Summary | |
---|---|
protected static class |
Extension.ExtensionType
The API type that the extension is used for. |
static class |
Extension.MessageType
Type of a message extension. |
Constructor Summary | |
---|---|
Extension()
|
Method Summary | |
---|---|
protected abstract java.lang.Object |
fromReflectionType(java.lang.Object value)
|
abstract Type |
getDefaultValue()
Returns the default value of the extension field. |
abstract Descriptors.FieldDescriptor |
getDescriptor()
Returns the descriptor of the extension. |
protected Extension.ExtensionType |
getExtensionType()
|
abstract WireFormat.FieldType |
getLiteType()
Returns the type of the field. |
abstract MessageLite |
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. |
abstract int |
getNumber()
Returns the field number of the extension. |
abstract boolean |
isRepeated()
Returns whether it is a repeated field. |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Extension()
Method Detail |
---|
public abstract int getNumber()
public abstract WireFormat.FieldType getLiteType()
public abstract boolean isRepeated()
public abstract Descriptors.FieldDescriptor getDescriptor()
public abstract Type getDefaultValue()
public abstract MessageLite getMessageDefaultInstance()
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)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |