# Uses of Class
com.google.protobuf.Extension

Packages that use Extension
Package
Description
com.google.protobuf

## Uses of Extension in com.google.protobuf

Subclasses of Extension in com.google.protobuf
Modifier and Type
Class
Description
`static class`
`GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>`
Type used to represent generated extensions.
Methods in com.google.protobuf with parameters of type Extension
Modifier and Type
Method
Description
`void`
ExtensionRegistry.`add(Extension<?,?> extension)`
Add an extension from a generated file to the registry.
`final <Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`addExtension(Extension<MessageType,List<Type>> extension, Type value)`
Append a value to a repeated extension.
`final <T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`addExtension(Extension<MessageT,List<T>> extension, T value)`
Append a value to a repeated extension.
`final <Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`clearExtension(Extension<MessageType,?> extension)`
Clear an extension.
`final <T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`clearExtension(Extension<MessageT,T> extension)`
Clear an extension.
`final <Type> Type`
GeneratedMessage.ExtendableBuilder.`getExtension(Extension<MessageType,List<Type>> extension, int index)`
Get the value of an extension.
`final <Type> Type`
GeneratedMessage.ExtendableBuilder.`getExtension(Extension<MessageType,Type> extension)`
Get the value of an extension.
`final <Type> Type`
GeneratedMessage.ExtendableMessage.`getExtension(Extension<MessageType,List<Type>> extension, int index)`
Get one element of a repeated extension.
`final <Type> Type`
GeneratedMessage.ExtendableMessage.`getExtension(Extension<MessageType,Type> extension)`
Get the value of an extension.
`<Type> Type`
GeneratedMessage.ExtendableMessageOrBuilder.`getExtension(Extension<MessageType,List<Type>> extension, int index)`
Get one element of a repeated extension.
`<Type> Type`
GeneratedMessage.ExtendableMessageOrBuilder.`getExtension(Extension<MessageType,Type> extension)`
Get the value of an extension.
`final <T> T`
GeneratedMessageV3.ExtendableBuilder.`getExtension(Extension<MessageT,List<T>> extension, int index)`
Get the value of an extension.
`final <T> T`
GeneratedMessageV3.ExtendableBuilder.`getExtension(Extension<MessageT,T> extension)`
Get the value of an extension.
`final <T> T`
GeneratedMessageV3.ExtendableMessage.`getExtension(Extension<MessageT,List<T>> extension, int index)`
Get one element of a repeated extension.
`final <T> T`
GeneratedMessageV3.ExtendableMessage.`getExtension(Extension<MessageT,T> extension)`
Get the value of an extension.
`<T> T`
GeneratedMessageV3.ExtendableMessageOrBuilder.`getExtension(Extension<MessageT,List<T>> extension, int index)`
Get one element of a repeated extension.
`<T> T`
GeneratedMessageV3.ExtendableMessageOrBuilder.`getExtension(Extension<MessageT,T> extension)`
Get the value of an extension.
`final <Type> int`
GeneratedMessage.ExtendableBuilder.`getExtensionCount(Extension<MessageType,List<Type>> extension)`
Get the number of elements in a repeated extension.
`final <Type> int`
GeneratedMessage.ExtendableMessage.`getExtensionCount(Extension<MessageType,List<Type>> extension)`
Get the number of elements in a repeated extension.
`<Type> int`
GeneratedMessage.ExtendableMessageOrBuilder.`getExtensionCount(Extension<MessageType,List<Type>> extension)`
Get the number of elements in a repeated extension.
`final <T> int`
GeneratedMessageV3.ExtendableBuilder.`getExtensionCount(Extension<MessageT,List<T>> extension)`
Get the number of elements in a repeated extension.
`final <T> int`
GeneratedMessageV3.ExtendableMessage.`getExtensionCount(Extension<MessageT,List<T>> extension)`
Get the number of elements in a repeated extension.
`<T> int`
GeneratedMessageV3.ExtendableMessageOrBuilder.`getExtensionCount(Extension<MessageT,List<T>> extension)`
Get the number of elements in a repeated extension.
`final <Type> boolean`
GeneratedMessage.ExtendableBuilder.`hasExtension(Extension<MessageType,Type> extension)`
Check if a singular extension is present.
`final <Type> boolean`
GeneratedMessage.ExtendableMessage.`hasExtension(Extension<MessageType,Type> extension)`
Check if a singular extension is present.
`<Type> boolean`
GeneratedMessage.ExtendableMessageOrBuilder.`hasExtension(Extension<MessageType,Type> extension)`
Check if a singular extension is present.
`final <T> boolean`
GeneratedMessageV3.ExtendableBuilder.`hasExtension(Extension<MessageT,T> extension)`
Check if a singular extension is present.
`final <T> boolean`
GeneratedMessageV3.ExtendableMessage.`hasExtension(Extension<MessageT,T> extension)`
Check if a singular extension is present.
`<T> boolean`
GeneratedMessageV3.ExtendableMessageOrBuilder.`hasExtension(Extension<MessageT,T> extension)`
Check if a singular extension is present.
`final <Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`setExtension(Extension<MessageType,List<Type>> extension, int index, Type value)`
Set the value of one element of a repeated extension.
`final <Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`setExtension(Extension<MessageType,Type> extension, Type value)`
Set the value of an extension.
`final <T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`setExtension(Extension<MessageT,List<T>> extension, int index, T value)`
Set the value of one element of a repeated extension.
`final <T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`setExtension(Extension<MessageT,T> extension, T value)`
Set the value of an extension.