# Class ExtensionLite&lt;ContainingType,Type&gt; (3.19.4)

    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](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> ExtensionLite\<ContainingType,Type\>

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

| ## Type Parameters ||
|---|---|
| **Name** | **Description** |
| `ContainingType` |   |
| `Type` |   |

## Constructors

### ExtensionLite()

    public ExtensionLite()

## Methods

### getDefaultValue()

    public abstract Type getDefaultValue()

Returns the default value of the extension field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Type` |   |

### getLiteType()

    public abstract WireFormat.FieldType getLiteType()

Returns the type of the field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.WireFormat.FieldType` |   |

### getMessageDefaultInstance()

    public abstract MessageLite getMessageDefaultInstance()

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageLite` |   |

### getNumber()

    public abstract int getNumber()

Returns the field number of the extension.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### isRepeated()

    public abstract boolean isRepeated()

Returns whether it is a repeated field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |