public static class GeneratedMessageLite.GeneratedExtension<ContainingType,Type> extends ExtensionLite<ContainingType,Type>
Lite equivalent to 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().
Inheritance
java.lang.Object > ExtensionLite > GeneratedMessageLite.GeneratedExtension<ContainingType,Type>Type Parameters |
|
---|---|
Name | Description |
ContainingType |
|
Type |
Methods
getContainingTypeDefaultInstance()
public ContainingType getContainingTypeDefaultInstance()
Default instance of the type being extended, used to identify that type.
Returns | |
---|---|
Type | Description |
ContainingType |
getDefaultValue()
public Type getDefaultValue()
Returns the default value of the extension field.
Returns | |
---|---|
Type | Description |
Type |
getLiteType()
public WireFormat.FieldType getLiteType()
Returns the type of the field.
Returns | |
---|---|
Type | Description |
WireFormat.FieldType |
getMessageDefaultInstance()
public MessageLite getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default instance of the message.
Returns | |
---|---|
Type | Description |
MessageLite |
getNumber()
public int getNumber()
Get the field number.
Returns | |
---|---|
Type | Description |
int |
isRepeated()
public boolean isRepeated()
Returns whether it is a repeated field.
Returns | |
---|---|
Type | Description |
boolean |