Package | Description |
---|---|
com.google.protobuf |
Modifier and Type | Method and Description |
---|---|
<ContainingType extends MessageLite> |
ExtensionRegistryLite.findLiteExtensionByNumber(ContainingType containingTypeDefaultInstance,
int fieldNumber)
Find an extension by containing type and field number.
|
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isPacked)
For use by generated code only.
|
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance,
Type defaultValue,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type)
For use by generated code only.
|
Modifier and Type | Method and Description |
---|---|
void |
ExtensionRegistryLite.add(GeneratedMessageLite.GeneratedExtension<?,?> extension)
Add an extension from a lite generated file to the registry.
|
<Type> BuilderType |
GeneratedMessageLite.ExtendableBuilder.addExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
Type value)
Append a value to a repeated extension.
|
<Type> BuilderType |
GeneratedMessageLite.ExtendableBuilder.clearExtension(GeneratedMessageLite.GeneratedExtension<MessageType,?> extension)
Clear an extension.
|
<Type> Type |
GeneratedMessageLite.ExtendableMessageOrBuilder.getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
GeneratedMessageLite.ExtendableMessage.getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
GeneratedMessageLite.ExtendableBuilder.getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
GeneratedMessageLite.ExtendableMessageOrBuilder.getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> Type |
GeneratedMessageLite.ExtendableMessage.getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> Type |
GeneratedMessageLite.ExtendableBuilder.getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> int |
GeneratedMessageLite.ExtendableMessageOrBuilder.getExtensionCount(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> int |
GeneratedMessageLite.ExtendableMessage.getExtensionCount(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> int |
GeneratedMessageLite.ExtendableBuilder.getExtensionCount(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> boolean |
GeneratedMessageLite.ExtendableMessageOrBuilder.hasExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> boolean |
GeneratedMessageLite.ExtendableMessage.hasExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> boolean |
GeneratedMessageLite.ExtendableBuilder.hasExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
<Type> BuilderType |
GeneratedMessageLite.ExtendableBuilder.setExtension(GeneratedMessageLite.GeneratedExtension<MessageType,java.util.List<Type>> extension,
int index,
Type value)
Set the value of one element of a repeated extension.
|
<Type> BuilderType |
GeneratedMessageLite.ExtendableBuilder.setExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension,
Type value)
Set the value of an extension.
|