Package | Description |
---|---|
com.google.protobuf |
Modifier and Type | Method and Description |
---|---|
static <ContainingType extends Message,Type> |
GeneratedMessage.newFileScopedGeneratedExtension(java.lang.Class singularType,
Message defaultInstance)
For use by generated code only.
|
static <ContainingType extends Message,Type> |
GeneratedMessage.newMessageScopedGeneratedExtension(Message scope,
int descriptorIndex,
java.lang.Class singularType,
Message defaultInstance)
For use by generated code only.
|
Modifier and Type | Method and 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,java.util.List<Type>> extension,
Type value)
Append a value to a repeated extension.
|
<Type> BuilderType |
GeneratedMessage.ExtendableBuilder.clearExtension(GeneratedMessage.GeneratedExtension<MessageType,?> extension)
Clear an extension.
|
<Type> Type |
GeneratedMessage.ExtendableMessageOrBuilder.getExtension(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
GeneratedMessage.ExtendableMessage.getExtension(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
GeneratedMessage.ExtendableBuilder.getExtension(GeneratedMessage.GeneratedExtension<MessageType,java.util.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.
|
<Type> Type |
GeneratedMessage.ExtendableMessage.getExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> Type |
GeneratedMessage.ExtendableBuilder.getExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> int |
GeneratedMessage.ExtendableMessageOrBuilder.getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> int |
GeneratedMessage.ExtendableMessage.getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> int |
GeneratedMessage.ExtendableBuilder.getExtensionCount(GeneratedMessage.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> boolean |
GeneratedMessage.ExtendableMessageOrBuilder.hasExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> boolean |
GeneratedMessage.ExtendableMessage.hasExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> boolean |
GeneratedMessage.ExtendableBuilder.hasExtension(GeneratedMessage.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> BuilderType |
GeneratedMessage.ExtendableBuilder.setExtension(GeneratedMessage.GeneratedExtension<MessageType,java.util.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.
|