public class ExtensionPool
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ExtensionPool.Extension
Encapsulates source information for an extension field.
|
| Modifier and Type | Field and Description |
|---|---|
static ExtensionPool |
EMPTY |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionPool |
create(com.google.protobuf.DescriptorProtos.FileDescriptorSet extensionDescriptor) |
com.google.protobuf.DescriptorProtos.FileDescriptorSet |
getDescriptor() |
java.lang.Iterable<java.util.Map.Entry<java.lang.String,ExtensionPool.Extension>> |
getSortedExtensionsByTypeName(java.lang.String name)
Returns an
Iterable of extension names to ExtensionPool.Extension. |
public static final ExtensionPool EMPTY
public static final ExtensionPool create(com.google.protobuf.DescriptorProtos.FileDescriptorSet extensionDescriptor)
public java.lang.Iterable<java.util.Map.Entry<java.lang.String,ExtensionPool.Extension>> getSortedExtensionsByTypeName(java.lang.String name)
Iterable of extension names to ExtensionPool.Extension. Extension names
are a fully qualified name surrounded by parentheses. The path of the name is determined by
where the extension is defined. For example, given the extension defined below, the field name
is "(foo.bar.baz)". The returned Iterable is sorted by field number.
syntax = "proto2";
package = foo.bar;
import "extendee.proto";
extend extendee.ExtendeeMessage {
optional baz = 1;
}
public com.google.protobuf.DescriptorProtos.FileDescriptorSet getDescriptor()