Classes | |
class | Builder |
class | DefaultInstanceBasedParser |
class | ExtendableBuilder |
class | ExtendableMessage |
interface | ExtendableMessageOrBuilder |
class | ExtensionDescriptor |
class | GeneratedExtension |
enum | MethodToInvoke |
class | SerializedForm |
Public Member Functions | |
boolean | equals (Object other) |
final MessageType | getDefaultInstanceForType () |
final Parser< MessageType > | getParserForType () |
int | getSerializedSize () |
int | hashCode () |
final boolean | isInitialized () |
final BuilderType | newBuilderForType () |
final BuilderType | toBuilder () |
String | toString () |
void | writeTo (CodedOutputStream output) throws IOException |
![]() | |
byte[] | toByteArray () |
ByteString | toByteString () |
void | writeDelimitedTo (final OutputStream output) throws IOException |
void | writeTo (final OutputStream output) throws IOException |
Static Public Member Functions | |
static< ContainingType extends MessageLite, Type > GeneratedExtension< ContainingType, Type > | newRepeatedGeneratedExtension (final ContainingType containingTypeDefaultInstance, final MessageLite messageDefaultInstance, final Internal.EnumLiteMap<?> enumTypeMap, final int number, final WireFormat.FieldType type, final boolean isPacked, final Class singularType) |
static< ContainingType extends MessageLite, Type > GeneratedExtension< ContainingType, Type > | newSingularGeneratedExtension (final ContainingType containingTypeDefaultInstance, final Type defaultValue, final MessageLite messageDefaultInstance, final Internal.EnumLiteMap<?> enumTypeMap, final int number, final WireFormat.FieldType type, final Class singularType) |
Protected Member Functions | |
final< MessageType extends GeneratedMessageLite< MessageType, BuilderType >, BuilderType extends GeneratedMessageLite.Builder< MessageType, BuilderType > > BuilderType | createBuilder () |
final< MessageType extends GeneratedMessageLite< MessageType, BuilderType >, BuilderType extends GeneratedMessageLite.Builder< MessageType, BuilderType > > BuilderType | createBuilder (MessageType prototype) |
Object | dynamicMethod (MethodToInvoke method) |
Object | dynamicMethod (MethodToInvoke method, Object arg0) |
abstract Object | dynamicMethod (MethodToInvoke method, Object arg0, Object arg1) |
void | makeImmutable () |
void | mergeLengthDelimitedField (int fieldNumber, ByteString value) |
final void | mergeUnknownFields (UnknownFieldSetLite unknownFields) |
void | mergeVarintField (int tag, int value) |
boolean | parseUnknownField (int tag, CodedInputStream input) throws IOException |
Static Protected Member Functions | |
static BooleanList | emptyBooleanList () |
static DoubleList | emptyDoubleList () |
static FloatList | emptyFloatList () |
static IntList | emptyIntList () |
static LongList | emptyLongList () |
static< E > ProtobufList< E > | emptyProtobufList () |
static final< T extends GeneratedMessageLite< T, ?> > boolean | isInitialized (T message, boolean shouldMemoize) |
static BooleanList | mutableCopy (BooleanList list) |
static DoubleList | mutableCopy (DoubleList list) |
static FloatList | mutableCopy (FloatList list) |
static IntList | mutableCopy (IntList list) |
static LongList | mutableCopy (LongList list) |
static< E > ProtobufList< E > | mutableCopy (ProtobufList< E > list) |
static Object | newMessageInfo (MessageLite defaultInstance, String info, Object[] objects) |
static< T extends GeneratedMessageLite< T, ?> T | parseDelimitedFrom (T defaultInstance, InputStream input) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseDelimitedFrom (T defaultInstance, InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, byte[] data) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, ByteBuffer data) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, ByteString data) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, CodedInputStream input) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, InputStream input) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parseFrom (T defaultInstance, InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parsePartialFrom (T defaultInstance, CodedInputStream input) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite<?, ?> void | registerDefaultInstance (Class< T > clazz, T defaultInstance) |
![]() | |
static< T > void | addAll (final Iterable< T > values, final Collection<? super T > list) |
static< T > void | addAll (final Iterable< T > values, final List<? super T > list) |
static void | checkByteStringIsUtf8 (ByteString byteString) throws IllegalArgumentException |
Protected Attributes | |
int | memoizedSerializedSize = -1 |
UnknownFieldSetLite | unknownFields = UnknownFieldSetLite.getDefaultInstance() |
![]() | |
int | memoizedHashCode |
Private Member Functions | |
final void | ensureUnknownFieldsInitialized () |
Static Private Member Functions | |
static< T extends GeneratedMessageLite< T, ?> T | checkMessageInitialized (T message) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parsePartialDelimitedFrom (T defaultInstance, InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parsePartialFrom (T defaultInstance, byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
static< T extends GeneratedMessageLite< T, ?> T | parsePartialFrom (T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
Static Private Attributes | |
static Map< Object, GeneratedMessageLite<?, ?> > | defaultInstanceMap |
static< MessageType extends ExtendableMessage< MessageType, BuilderType > BuilderType extends | ExtendableBuilder< MessageType, BuilderType > |
Lite version of GeneratedMessage.
Definition at line 60 of file GeneratedMessageLite.java.
|
inlinestaticprivate |
Helper method to check if message is initialized.
InvalidProtocolBufferException | if it is not initialized. |
Definition at line 1583 of file GeneratedMessageLite.java.
|
inlineprotected |
Definition at line 176 of file GeneratedMessageLite.java.
|
inlineprotected |
Definition at line 183 of file GeneratedMessageLite.java.
|
inlineprotected |
Same as dynamicMethod(MethodToInvoke, Object, Object) with
padding.
Definition at line 250 of file GeneratedMessageLite.java.
|
inlineprotected |
Same as dynamicMethod(MethodToInvoke, Object, Object) with
padding.
Definition at line 245 of file GeneratedMessageLite.java.
|
abstractprotected |
A method that implements different types of operations described in MethodToInvoke. Theses different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.
This method, plus the implementation of the Builder, enables the Builder class to be proguarded away entirely on Android.
For use by generated code only.
|
inlinestaticprotected |
Definition at line 1468 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1458 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1448 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1428 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1438 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1478 of file GeneratedMessageLite.java.
|
inlineprivate |
Lazily initializes unknown fields.
Definition at line 135 of file GeneratedMessageLite.java.
|
inline |
Definition at line 118 of file GeneratedMessageLite.java.
|
inline |
Definition at line 79 of file GeneratedMessageLite.java.
|
inline |
Definition at line 73 of file GeneratedMessageLite.java.
|
inline |
Definition at line 270 of file GeneratedMessageLite.java.
|
inline |
Definition at line 108 of file GeneratedMessageLite.java.
|
inline |
Definition at line 188 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
A static helper method for checking if a message is initialized, optionally memoizing.
For use by generated code only.
Definition at line 1410 of file GeneratedMessageLite.java.
|
inlineprotected |
Called by subclasses to complete parsing. For use by generated code only.
Definition at line 169 of file GeneratedMessageLite.java.
|
inlineprotected |
Called by subclasses to parse an unknown field. For use by generated code only.
Definition at line 163 of file GeneratedMessageLite.java.
|
inlineprotected |
Merge some unknown fields into the UnknownFieldSetLite for this message.
For use by generated code only.
Definition at line 326 of file GeneratedMessageLite.java.
|
inlineprotected |
Called by subclasses to parse an unknown field. For use by generated code only.
Definition at line 157 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1472 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1462 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1452 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1432 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1442 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1482 of file GeneratedMessageLite.java.
|
inline |
Definition at line 85 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 316 of file GeneratedMessageLite.java.
|
inlinestatic |
For use by generated code only.
Definition at line 1058 of file GeneratedMessageLite.java.
|
inlinestatic |
For use by generated code only.
Definition at line 1039 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1698 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1706 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1652 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1659 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1603 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1595 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1609 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1616 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1685 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1691 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1667 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1677 of file GeneratedMessageLite.java.
|
inlinestaticprivate |
Definition at line 1713 of file GeneratedMessageLite.java.
|
inlinestaticprivate |
Definition at line 1644 of file GeneratedMessageLite.java.
|
inlinestaticprivate |
Definition at line 1624 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 1572 of file GeneratedMessageLite.java.
|
inlineprotected |
Called by subclasses to parse an unknown field. For use by generated code only.
Definition at line 146 of file GeneratedMessageLite.java.
|
inlinestaticprotected |
Definition at line 311 of file GeneratedMessageLite.java.
|
inline |
Definition at line 194 of file GeneratedMessageLite.java.
|
inline |
A reflective toString function. This is primarily intended as a developer aid, while keeping binary size down. The first line of the
representation includes a commented version of
to act as an indicator that this should not be relied on for comparisons.
NOTE: This method relies on the field getter methods not being stripped or renamed by proguard. If they are, the fields will not be included in the returned string representation.
NOTE: This implementation is liable to change in the future, and should not be relied on in code.
Definition at line 102 of file GeneratedMessageLite.java.
|
inline |
Definition at line 264 of file GeneratedMessageLite.java.
|
staticprivate |
Definition at line 282 of file GeneratedMessageLite.java.
|
staticprivate |
Definition at line 1394 of file GeneratedMessageLite.java.
|
protected |
For use by generated code only.
Definition at line 69 of file GeneratedMessageLite.java.
|
protected |
For use by generated code only. Lazily initialized to reduce allocations.
Definition at line 66 of file GeneratedMessageLite.java.