Class GeneratedMessageLite.GeneratedExtension<ContainingType,Type> (3.19.4)

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

NameDescription
ContainingType
Type

Methods

getContainingTypeDefaultInstance()

public ContainingType getContainingTypeDefaultInstance()

Default instance of the type being extended, used to identify that type.

Returns
TypeDescription
ContainingType

getDefaultValue()

public Type getDefaultValue()

Returns the default value of the extension field.

Returns
TypeDescription
Type
Overrides

getLiteType()

public WireFormat.FieldType getLiteType()

Returns the type of the field.

Returns
TypeDescription
WireFormat.FieldType
Overrides

getMessageDefaultInstance()

public MessageLite getMessageDefaultInstance()

If the extension is an embedded message or group, returns the default instance of the message.

Returns
TypeDescription
MessageLite
Overrides

getNumber()

public int getNumber()

Get the field number.

Returns
TypeDescription
int
Overrides

isRepeated()

public boolean isRepeated()

Returns whether it is a repeated field.

Returns
TypeDescription
boolean
Overrides