Package com.google.protobuf
Class ExtensionLite<ContainingType extends MessageLite,Type>
java.lang.Object
com.google.protobuf.ExtensionLite<ContainingType,Type>
- Direct Known Subclasses:
Extension,GeneratedMessageLite.GeneratedExtension
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TypeReturns the default value of the extension field.abstract WireFormat.FieldTypeReturns the type of the field.abstract MessageLiteReturns the default instance of the extension field, if it's a message extension.abstract intReturns the field number of the extension.(package private) booleanisLite()Returns whether or not this extension is a Lite Extension.abstract booleanReturns whether it is a repeated field.
-
Constructor Details
-
ExtensionLite
public ExtensionLite()
-
-
Method Details
-
getNumber
public abstract int getNumber()Returns the field number of the extension. -
getLiteType
Returns the type of the field. -
isRepeated
public abstract boolean isRepeated()Returns whether it is a repeated field. -
getDefaultValue
Returns the default value of the extension field. -
getMessageDefaultInstance
Returns the default instance of the extension field, if it's a message extension. -
isLite
boolean isLite()Returns whether or not this extension is a Lite Extension.
-