Top Description Constructors Methods
com.google.protobuf

public abstract Class ExtensionLite<ContainingType extends com.google.protobuf.MessageLite, Type>

extends Object
Class Inheritance
Known Direct Subclasses
com.google.protobuf.GeneratedMessageLite.GeneratedExtension, com.google.protobuf.Extension

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.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract Type
getDefaultValue()

Returns the default value of the extension field.

public abstract WireFormat.FieldType
getLiteType()

Returns the type of the field.

public abstract MessageLite
getMessageDefaultInstance()

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

public abstract int
getNumber()

Returns the field number of the extension.

pack-priv boolean
isLite()

Returns whether or not this extension is a Lite Extension.

public abstract boolean
isRepeated()

Returns whether it is a repeated field.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ExtensionLiteback to summary
public ExtensionLite()

Method Detail

getDefaultValueback to summary
public abstract Type getDefaultValue()

Returns the default value of the extension field.

getLiteTypeback to summary
public abstract WireFormat.FieldType getLiteType()

Returns the type of the field.

getMessageDefaultInstanceback to summary
public abstract MessageLite getMessageDefaultInstance()

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

getNumberback to summary
public abstract int getNumber()

Returns the field number of the extension.

isLiteback to summary
pack-priv boolean isLite()

Returns whether or not this extension is a Lite Extension.

isRepeatedback to summary
public abstract boolean isRepeated()

Returns whether it is a repeated field.