Class ExtensionLite<ContainingType,Type>

Stay organized with collections Save and categorize content based on your preferences.
public abstract class ExtensionLite<ContainingType,Type>

Lite interface that generated extensions implement.

Methods are for use by generated code only. You can hold a reference to extensions using this type name.

Inheritance

java.lang.Object > ExtensionLite<ContainingType,Type>

Type Parameters

NameDescription
ContainingType
Type

Constructors

ExtensionLite()

public ExtensionLite()

Methods

getDefaultValue()

public abstract Type getDefaultValue()

Returns the default value of the extension field.

Returns
TypeDescription
Type

getLiteType()

public abstract WireFormat.FieldType getLiteType()

Returns the type of the field.

Returns
TypeDescription
WireFormat.FieldType

getMessageDefaultInstance()

public abstract MessageLite getMessageDefaultInstance()

Returns the default instance of the extension field, if it's a message extension.

Returns
TypeDescription
MessageLite

getNumber()

public abstract int getNumber()

Returns the field number of the extension.

Returns
TypeDescription
int

isRepeated()

public abstract boolean isRepeated()

Returns whether it is a repeated field.

Returns
TypeDescription
boolean