# Uses of Class
com.google.protobuf.GeneratedMessage.GeneratedExtension

Packages that use GeneratedMessage.GeneratedExtension
Package
Description
com.google.protobuf
xg

## Uses of GeneratedMessage.GeneratedExtension in com.google.protobuf

Methods in com.google.protobuf that return GeneratedMessage.GeneratedExtension
Modifier and Type
Method
Description
`static <ContainingType extends Message, Type>
GeneratedMessage.GeneratedExtension<ContainingType,Type>`
GeneratedMessage.`newFileScopedGeneratedExtension(Class singularType, Message defaultInstance)`
For use by generated code only.
`static <ContainingType extends Message, Type>
GeneratedMessage.GeneratedExtension<ContainingType,Type>`
GeneratedMessage.`newFileScopedGeneratedExtension(Class singularType, Message defaultInstance, String descriptorOuterClass, String extensionName)`
Used in proto1 generated code only.
`static <ContainingType extends Message, Type>
GeneratedMessage.GeneratedExtension<ContainingType,Type>`
GeneratedMessage.`newMessageScopedGeneratedExtension(Message scope, int descriptorIndex, Class singularType, Message defaultInstance)`
For use by generated code only.
`static <ContainingType extends Message, Type>
GeneratedMessage.GeneratedExtension<ContainingType,Type>`
GeneratedMessage.`newMessageScopedGeneratedExtension(Message scope, String name, Class singularType, Message defaultInstance)`
Used in proto1 generated code only.
Methods in com.google.protobuf with parameters of type GeneratedMessage.GeneratedExtension
Modifier and Type
Method
Description
`void`
ExtensionRegistry.`add(GeneratedMessage.GeneratedExtension<?,?> extension)`
Add an extension from a generated file to the registry.
`<Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`addExtension(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension, Type value)`
Append a value to a repeated extension.
`<T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`addExtension(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension, T value)`
Append a value to a repeated extension.
`<Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`clearExtension(GeneratedMessage.GeneratedExtension<MessageType,?> extension)`
Clear an extension.
`<T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`clearExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)`
Clears an extension.
`final <Type> Type`
GeneratedMessage.ExtendableBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension, int index)`
Get the value of an extension.
`final <Type> Type`
GeneratedMessage.ExtendableBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)`
Get the value of an extension.
`final <Type> Type`
GeneratedMessage.ExtendableMessage.`getExtension(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension, int index)`
Get one element of a repeated extension.
`final <Type> Type`
GeneratedMessage.ExtendableMessage.`getExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)`
Get the value of an extension.
`<Type> Type`
GeneratedMessage.ExtendableMessageOrBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension, int index)`
Get one element of a repeated extension.
`<Type> Type`
GeneratedMessage.ExtendableMessageOrBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)`
Get the value of an extension.
`final <T> T`
GeneratedMessageV3.ExtendableBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension, int index)`
Get the value of an extension.
`final <T> T`
GeneratedMessageV3.ExtendableBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)`
Get the value of an extension.
`final <T> T`
GeneratedMessageV3.ExtendableMessage.`getExtension(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension, int index)`
Get one element of a repeated extension.
`final <T> T`
GeneratedMessageV3.ExtendableMessage.`getExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)`
Get the value of an extension.
`<T> T`
GeneratedMessageV3.ExtendableMessageOrBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension, int index)`
Get one element of a repeated extension.
`<T> T`
GeneratedMessageV3.ExtendableMessageOrBuilder.`getExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)`
Get the value of an extension.
`final <Type> int`
GeneratedMessage.ExtendableBuilder.`getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension)`
Get the number of elements in a repeated extension.
`final <Type> int`
GeneratedMessage.ExtendableMessage.`getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension)`
Get the number of elements in a repeated extension.
`<Type> int`
GeneratedMessage.ExtendableMessageOrBuilder.`getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension)`
Get the number of elements in a repeated extension.
`final <T> int`
GeneratedMessageV3.ExtendableBuilder.`getExtensionCount(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension)`
Get the number of elements in a repeated extension.
`final <T> int`
GeneratedMessageV3.ExtendableMessage.`getExtensionCount(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension)`
Get the number of elements in a repeated extension.
`<T> int`
GeneratedMessageV3.ExtendableMessageOrBuilder.`getExtensionCount(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension)`
Get the number of elements in a repeated extension.
`final <Type> boolean`
GeneratedMessage.ExtendableBuilder.`hasExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)`
Check if a singular extension is present.
`final <Type> boolean`
GeneratedMessage.ExtendableMessage.`hasExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)`
Check if a singular extension is present.
`<Type> boolean`
GeneratedMessage.ExtendableMessageOrBuilder.`hasExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)`
Check if a singular extension is present.
`final <T> boolean`
GeneratedMessageV3.ExtendableBuilder.`hasExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)`
Check if a singular extension is present.
`final <T> boolean`
GeneratedMessageV3.ExtendableMessage.`hasExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)`
Check if a singular extension is present.
`<T> boolean`
GeneratedMessageV3.ExtendableMessageOrBuilder.`hasExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension)`
Check if a singular extension is present.
`<Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`setExtension(GeneratedMessage.GeneratedExtension<MessageType,List<Type>> extension, int index, Type value)`
Set the value of one element of a repeated extension.
`<Type> BuilderType`
GeneratedMessage.ExtendableBuilder.`setExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension, Type value)`
Set the value of an extension.
`<T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`setExtension(GeneratedMessage.GeneratedExtension<MessageT,List<T>> extension, int index, T value)`
Set the value of one element of a repeated extension.
`<T> BuilderT`
GeneratedMessageV3.ExtendableBuilder.`setExtension(GeneratedMessage.GeneratedExtension<MessageT,T> extension, T value)`
Set the value of an extension.

## Uses of GeneratedMessage.GeneratedExtension in xg

Fields in xg declared as GeneratedMessage.GeneratedExtension
Modifier and Type
Field
Description
`static final GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumOptions,Validator.EnumValidatorOptions>`
Validator.`enumValidator`
`extend .google.protobuf.EnumOptions { ...`
`static final GeneratedMessage.GeneratedExtension<DescriptorProtos.OneofOptions,Validator.OneofValidatorOptions>`
Validator.`oneofValidator`
`extend .google.protobuf.OneofOptions { ...`
`static final GeneratedMessage.GeneratedExtension<DescriptorProtos.FieldOptions,Validator.ValidatorOptions>`
Validator.`validator`
`extend .google.protobuf.FieldOptions { ...`