public static class GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type> extends ExtensionLite<ContainingType,Type>
GeneratedMessage.GeneratedExtension
.
Users should ignore the contents of this class and only use objects of
this type as parameters to extension accessors and ExtensionRegistry.add().Modifier and Type | Method and Description |
---|---|
ContainingType |
getContainingTypeDefaultInstance()
Default instance of the type being extended, used to identify that type.
|
Type |
getDefaultValue()
Returns the default value of the extension field.
|
WireFormat.FieldType |
getLiteType()
Returns the type of the field.
|
MessageLite |
getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default
instance of the message.
|
int |
getNumber()
Get the field number.
|
boolean |
isRepeated()
Returns whether it is a repeated field.
|
public ContainingType getContainingTypeDefaultInstance()
public int getNumber()
getNumber
in class ExtensionLite<ContainingType extends MessageLite,Type>
public MessageLite getMessageDefaultInstance()
getMessageDefaultInstance
in class ExtensionLite<ContainingType extends MessageLite,Type>
public WireFormat.FieldType getLiteType()
ExtensionLite
getLiteType
in class ExtensionLite<ContainingType extends MessageLite,Type>
public boolean isRepeated()
ExtensionLite
isRepeated
in class ExtensionLite<ContainingType extends MessageLite,Type>
public Type getDefaultValue()
ExtensionLite
getDefaultValue
in class ExtensionLite<ContainingType extends MessageLite,Type>
Copyright © 2008–2015 Google. All rights reserved.