Package com.google.protobuf
Class GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
java.lang.Object
com.google.protobuf.ExtensionLite<ContainingType,Type>
com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType,Type>
- Enclosing class:
GeneratedMessageLite<MessageType extends GeneratedMessageLite<MessageType,
BuilderType>, BuilderType extends GeneratedMessageLite.Builder<MessageType, BuilderType>>
public static class GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,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().
-
Method Summary
Modifier and TypeMethodDescriptionDefault instance of the type being extended, used to identify that type.Returns the default value of the extension field.Returns the type of the field.If the extension is an embedded message or group, returns the default instance of the message.int
Get the field number.boolean
Returns whether it is a repeated field.
-
Method Details
-
getContainingTypeDefaultInstance
Default instance of the type being extended, used to identify that type. -
getNumber
public int getNumber()Get the field number.- Specified by:
getNumber
in classExtensionLite<ContainingType extends MessageLite,
Type>
-
getMessageDefaultInstance
If the extension is an embedded message or group, returns the default instance of the message.- Specified by:
getMessageDefaultInstance
in classExtensionLite<ContainingType extends MessageLite,
Type>
-
getLiteType
Description copied from class:ExtensionLite
Returns the type of the field.- Specified by:
getLiteType
in classExtensionLite<ContainingType extends MessageLite,
Type>
-
isRepeated
public boolean isRepeated()Description copied from class:ExtensionLite
Returns whether it is a repeated field.- Specified by:
isRepeated
in classExtensionLite<ContainingType extends MessageLite,
Type>
-
getDefaultValue
Description copied from class:ExtensionLite
Returns the default value of the extension field.- Specified by:
getDefaultValue
in classExtensionLite<ContainingType extends MessageLite,
Type>
-