Public Member Functions | |
Type | getDefaultValue () |
FieldDescriptor | getDescriptor () |
WireFormat.FieldType | getLiteType () |
Message | getMessageDefaultInstance () |
int | getNumber () |
void | internalInit (final FieldDescriptor descriptor) |
boolean | isRepeated () |
![]() | |
abstract Descriptors.FieldDescriptor | getDescriptor () |
abstract Message | getMessageDefaultInstance () |
MessageType | getMessageType () |
Protected Member Functions | |
Object | fromReflectionType (final Object value) |
ExtensionType | getExtensionType () |
Object | singularFromReflectionType (final Object value) |
Object | singularToReflectionType (final Object value) |
Object | toReflectionType (final Object value) |
![]() | |
abstract Object | fromReflectionType (Object value) |
abstract ExtensionType | getExtensionType () |
abstract Object | singularFromReflectionType (Object value) |
abstract Object | singularToReflectionType (Object value) |
abstract Object | toReflectionType (Object value) |
Private Attributes | |
ExtensionDescriptorRetriever | descriptorRetriever |
final Method | enumGetValueDescriptor |
final Method | enumValueOf |
final ExtensionType | extensionType |
final Message | messageDefaultInstance |
final Class | singularType |
Type used to represent generated extensions. The protocol compiler generates a static singleton instance of this class for each extension.
For example, imagine you have the
file:
option java_class = "MyProto";
message Foo { extensions 1000 to max; }
extend Foo { optional int32 bar; }
Then,
has type
.
In general, users should ignore the details of this type, and simply use these static singletons as parameters to the extension accessors defined in ExtendableMessage and ExtendableBuilder.
Definition at line 1757 of file GeneratedMessage.java.
|
inlineprotected |
Convert from the type used by the reflection accessors to the type used by native accessors. E.g., for enums, the reflection accessors use EnumValueDescriptors but the native accessors use the generated enum type.
Definition at line 1852 of file GeneratedMessage.java.
|
inline |
Definition at line 1951 of file GeneratedMessage.java.
|
inline |
Definition at line 1822 of file GeneratedMessage.java.
|
inlineprotected |
Definition at line 1840 of file GeneratedMessage.java.
|
inline |
Definition at line 1940 of file GeneratedMessage.java.
|
inline |
If the extension is an embedded message or group, returns the default instance of the message.
Definition at line 1835 of file GeneratedMessage.java.
|
inline |
Definition at line 1935 of file GeneratedMessage.java.
|
inline |
For use by generated code only.
Definition at line 1801 of file GeneratedMessage.java.
|
inline |
Definition at line 1945 of file GeneratedMessage.java.
|
inlineprotected |
Like fromReflectionType(Object), but if the type is a repeated type, this converts a single element.
Definition at line 1876 of file GeneratedMessage.java.
|
inlineprotected |
Like toReflectionType(Object), but if the type is a repeated type, this converts a single element.
Definition at line 1924 of file GeneratedMessage.java.
|
inlineprotected |
Convert from the type used by the native accessors to the type used by reflection accessors. E.g., for enums, the reflection accessors use EnumValueDescriptors but the native accessors use the generated enum type.
Definition at line 1901 of file GeneratedMessage.java.
|
private |
Definition at line 1814 of file GeneratedMessage.java.
|
private |
Definition at line 1818 of file GeneratedMessage.java.
|
private |
Definition at line 1817 of file GeneratedMessage.java.
|
private |
Definition at line 1819 of file GeneratedMessage.java.
|
private |
Definition at line 1816 of file GeneratedMessage.java.
|
private |
Definition at line 1815 of file GeneratedMessage.java.