Package com.google.protobuf
Class GeneratedMessageLite<MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite<MessageType,BuilderType>
-
- All Implemented Interfaces:
MessageLite,MessageLiteOrBuilder
- Direct Known Subclasses:
Any,Api,BoolValue,BytesValue,DescriptorProtos.DescriptorProto,DescriptorProtos.DescriptorProto.ExtensionRange,DescriptorProtos.DescriptorProto.ReservedRange,DescriptorProtos.EnumDescriptorProto,DescriptorProtos.EnumDescriptorProto.EnumReservedRange,DescriptorProtos.EnumValueDescriptorProto,DescriptorProtos.ExtensionRangeOptions.Declaration,DescriptorProtos.FeatureSetDefaults,DescriptorProtos.FeatureSetDefaults.FeatureSetEditionDefault,DescriptorProtos.FieldDescriptorProto,DescriptorProtos.FieldOptions.EditionDefault,DescriptorProtos.FieldOptions.FeatureSupport,DescriptorProtos.FileDescriptorProto,DescriptorProtos.FileDescriptorSet,DescriptorProtos.GeneratedCodeInfo,DescriptorProtos.GeneratedCodeInfo.Annotation,DescriptorProtos.MethodDescriptorProto,DescriptorProtos.OneofDescriptorProto,DescriptorProtos.ServiceDescriptorProto,DescriptorProtos.SourceCodeInfo,DescriptorProtos.SourceCodeInfo.Location,DescriptorProtos.UninterpretedOption,DescriptorProtos.UninterpretedOption.NamePart,DoubleValue,Duration,Empty,Enum,EnumValue,Field,FieldMask,FloatValue,GeneratedMessageLite.ExtendableMessage,Int32Value,Int64Value,ListValue,Method,Mixin,Option,SourceContext,StringValue,Struct,Timestamp,Type,UInt32Value,UInt64Value,Value
public abstract class GeneratedMessageLite<MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>> extends AbstractMessageLite<MessageType,BuilderType>
Lite version ofGeneratedMessage.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Map<java.lang.Object,GeneratedMessageLite<?,?>>defaultInstanceMapprivate static intMEMOIZED_SERIALIZED_SIZE_MASKprivate intmemoizedSerializedSizeWe use the high bit of memoizedSerializedSize as the explicit mutability flag.private static intMUTABLE_FLAG_MASK(package private) static intUNINITIALIZED_HASH_CODE(package private) static intUNINITIALIZED_SERIALIZED_SIZEprotected UnknownFieldSetLiteunknownFieldsFor use by generated code only.-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Constructor Summary
Constructors Constructor Description GeneratedMessageLite()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) java.lang.ObjectbuildMessageInfo()Constructs aMessageInfofor this message type.private static <MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>,T>
GeneratedMessageLite.GeneratedExtension<MessageType,T>checkIsLite(ExtensionLite<MessageType,T> extension)Checks that theExtensionis Lite and returns it as aGeneratedMessageLite.GeneratedExtension.private static <T extends GeneratedMessageLite<T,?>>
TcheckMessageInitialized(T message)Helper method to check if message is initialized.(package private) voidclearMemoizedHashCode()(package private) voidclearMemoizedSerializedSize()(package private) intcomputeHashCode()private intcomputeSerializedSize(Schema<?> nullableSchema)protected <MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
BuilderTypecreateBuilder()protected <MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
BuilderTypecreateBuilder(MessageType prototype)protected java.lang.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method)Same asdynamicMethod(MethodToInvoke, Object, Object)withnullpadding.protected java.lang.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0)Same asdynamicMethod(MethodToInvoke, Object, Object)withnullpadding.protected abstract java.lang.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.protected static Internal.BooleanListemptyBooleanList()protected static Internal.DoubleListemptyDoubleList()protected static Internal.FloatListemptyFloatList()protected static Internal.IntListemptyIntList()protected static Internal.LongListemptyLongList()protected static <E> Internal.ProtobufList<E>emptyProtobufList()private voidensureUnknownFieldsInitialized()Lazily initializes unknown fields.booleanequals(java.lang.Object other)(package private) static <T extends GeneratedMessageLite<?,?>>
TgetDefaultInstance(java.lang.Class<T> clazz)MessageTypegetDefaultInstanceForType()Get an instance of the type with no fields set.(package private) intgetMemoizedHashCode()(package private) intgetMemoizedSerializedSize()(package private) static java.lang.reflect.MethodgetMethodOrDie(java.lang.Class clazz, java.lang.String name, java.lang.Class... params)Calls Class.getMethod and throws a RuntimeException if it fails.Parser<MessageType>getParserForType()Gets the parser for a message of the same type as this message.intgetSerializedSize()Get the number of bytes required to encode this message.(package private) intgetSerializedSize(Schema schema)inthashCode()(package private) booleanhashCodeIsNotMemoized()(package private) static java.lang.ObjectinvokeOrDie(java.lang.reflect.Method method, java.lang.Object object, java.lang.Object... params)Calls invoke and throws a RuntimeException if it fails.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.protected static <T extends GeneratedMessageLite<T,?>>
booleanisInitialized(T message, boolean shouldMemoize)A static helper method for checking if a message is initialized, optionally memoizing.(package private) booleanisMutable()protected voidmakeImmutable()Called by subclasses to complete parsing.(package private) voidmarkImmutable()protected voidmergeLengthDelimitedField(int fieldNumber, ByteString value)Called by subclasses to parse an unknown field.protected voidmergeUnknownFields(UnknownFieldSetLite unknownFields)Merge some unknown fields into theUnknownFieldSetLitefor this message.protected voidmergeVarintField(int tag, int value)Called by subclasses to parse an unknown field.protected static Internal.BooleanListmutableCopy(Internal.BooleanList list)protected static Internal.DoubleListmutableCopy(Internal.DoubleList list)protected static Internal.FloatListmutableCopy(Internal.FloatList list)protected static Internal.IntListmutableCopy(Internal.IntList list)protected static Internal.LongListmutableCopy(Internal.LongList list)protected static <E> Internal.ProtobufList<E>mutableCopy(Internal.ProtobufList<E> list)BuilderTypenewBuilderForType()Constructs a new builder for a message of the same type as this message.protected static java.lang.ObjectnewMessageInfo(MessageLite defaultInstance, java.lang.String info, java.lang.Object[] objects)(package private) MessageTypenewMutableInstance()static <ContainingType extends MessageLite,Type>
GeneratedMessageLite.GeneratedExtension<ContainingType,Type>newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance, MessageLite messageDefaultInstance, Internal.EnumLiteMap<?> enumTypeMap, int number, WireFormat.FieldType type, boolean isPacked, java.lang.Class singularType)For use by generated code only.static <ContainingType extends MessageLite,Type>
GeneratedMessageLite.GeneratedExtension<ContainingType,Type>newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance, Type defaultValue, MessageLite messageDefaultInstance, Internal.EnumLiteMap<?> enumTypeMap, int number, WireFormat.FieldType type, java.lang.Class singularType)For use by generated code only.protected static <T extends GeneratedMessageLite<T,?>>
TparseDelimitedFrom(T defaultInstance, java.io.InputStream input)protected static <T extends GeneratedMessageLite<T,?>>
TparseDelimitedFrom(T defaultInstance, java.io.InputStream input, ExtensionRegistryLite extensionRegistry)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, byte[] data)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, byte[] data, ExtensionRegistryLite extensionRegistry)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, ByteString data)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, CodedInputStream input)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, CodedInputStream input, ExtensionRegistryLite extensionRegistry)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, java.io.InputStream input)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, java.io.InputStream input, ExtensionRegistryLite extensionRegistry)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, java.nio.ByteBuffer data)protected static <T extends GeneratedMessageLite<T,?>>
TparseFrom(T defaultInstance, java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)private static <T extends GeneratedMessageLite<T,?>>
TparsePartialDelimitedFrom(T defaultInstance, java.io.InputStream input, ExtensionRegistryLite extensionRegistry)private static <T extends GeneratedMessageLite<T,?>>
TparsePartialFrom(T defaultInstance, byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry)A static helper method for parsing a partial from byte array.private static <T extends GeneratedMessageLite<T,?>>
TparsePartialFrom(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry)protected static <T extends GeneratedMessageLite<T,?>>
TparsePartialFrom(T defaultInstance, CodedInputStream input)(package private) static <T extends GeneratedMessageLite<T,?>>
TparsePartialFrom(T instance, CodedInputStream input, ExtensionRegistryLite extensionRegistry)A static helper method for parsing a partial from input using the extension registry and the instance.protected booleanparseUnknownField(int tag, CodedInputStream input)Called by subclasses to parse an unknown field.protected static <T extends GeneratedMessageLite<?,?>>
voidregisterDefaultInstance(java.lang.Class<T> clazz, T defaultInstance)(package private) voidsetMemoizedHashCode(int value)(package private) voidsetMemoizedSerializedSize(int size)BuilderTypetoBuilder()Constructs a builder initialized with the current message.java.lang.StringtoString()A reflective toString function.voidwriteTo(CodedOutputStream output)Serializes the message and writes it tooutput.-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, newUninitializedMessageException, toByteArray, toByteString, writeDelimitedTo, writeTo
-
-
-
-
Field Detail
-
UNINITIALIZED_SERIALIZED_SIZE
static final int UNINITIALIZED_SERIALIZED_SIZE
- See Also:
- Constant Field Values
-
MUTABLE_FLAG_MASK
private static final int MUTABLE_FLAG_MASK
- See Also:
- Constant Field Values
-
MEMOIZED_SERIALIZED_SIZE_MASK
private static final int MEMOIZED_SERIALIZED_SIZE_MASK
- See Also:
- Constant Field Values
-
memoizedSerializedSize
private int memoizedSerializedSize
We use the high bit of memoizedSerializedSize as the explicit mutability flag. It didn't make sense to have negative sizes anyway. Messages start as mutable.Adding a standalone boolean would have added 8 bytes to every message instance.
We also reserve 0x7FFFFFFF as the "uninitialized" value.
-
UNINITIALIZED_HASH_CODE
static final int UNINITIALIZED_HASH_CODE
- See Also:
- Constant Field Values
-
unknownFields
protected UnknownFieldSetLite unknownFields
For use by generated code only. Lazily initialized to reduce allocations.
-
defaultInstanceMap
private static java.util.Map<java.lang.Object,GeneratedMessageLite<?,?>> defaultInstanceMap
-
-
Method Detail
-
isMutable
boolean isMutable()
-
markImmutable
void markImmutable()
-
getMemoizedHashCode
int getMemoizedHashCode()
-
setMemoizedHashCode
void setMemoizedHashCode(int value)
-
clearMemoizedHashCode
void clearMemoizedHashCode()
-
hashCodeIsNotMemoized
boolean hashCodeIsNotMemoized()
-
getParserForType
public final Parser<MessageType> getParserForType()
Description copied from interface:MessageLiteGets the parser for a message of the same type as this message.
-
getDefaultInstanceForType
public final MessageType getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.
-
newBuilderForType
public final BuilderType newBuilderForType()
Description copied from interface:MessageLiteConstructs a new builder for a message of the same type as this message.
-
newMutableInstance
MessageType newMutableInstance()
-
toString
public java.lang.String toString()
A reflective toString function. This is primarily intended as a developer aid, while keeping binary size down. The first line of thetoString()representation includes a commented version ofsuper.toString()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.
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
computeHashCode
int computeHashCode()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
ensureUnknownFieldsInitialized
private void ensureUnknownFieldsInitialized()
Lazily initializes unknown fields.
-
parseUnknownField
protected boolean parseUnknownField(int tag, CodedInputStream input) throws java.io.IOExceptionCalled by subclasses to parse an unknown field. For use by generated code only.- Returns:
trueunless the tag is an end-group tag.- Throws:
java.io.IOException
-
mergeVarintField
protected void mergeVarintField(int tag, int value)Called by subclasses to parse an unknown field. For use by generated code only.
-
mergeLengthDelimitedField
protected void mergeLengthDelimitedField(int fieldNumber, ByteString value)Called by subclasses to parse an unknown field. For use by generated code only.
-
makeImmutable
protected void makeImmutable()
Called by subclasses to complete parsing. For use by generated code only.
-
createBuilder
protected final <MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>> BuilderType createBuilder()
-
createBuilder
protected final <MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>> BuilderType createBuilder(MessageType prototype)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.
-
toBuilder
public final BuilderType toBuilder()
Description copied from interface:MessageLiteConstructs a builder initialized with the current message. Use this to derive a new message from the current one.
-
dynamicMethod
protected abstract java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke. These 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.NEW_INSTANCEreturns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE.IS_INITIALIZEDreturnsnullfor false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZEDreturns the memoizedisInitializedbyte value.SET_MEMOIZED_IS_INITIALIZEDsets the memoizedisInitializedbyte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDERreturns aBuilderTypeinstance.
For use by generated code only.
-
dynamicMethod
@CanIgnoreReturnValue protected java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0)
Same asdynamicMethod(MethodToInvoke, Object, Object)withnullpadding.
-
dynamicMethod
protected java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method)
Same asdynamicMethod(MethodToInvoke, Object, Object)withnullpadding.
-
clearMemoizedSerializedSize
void clearMemoizedSerializedSize()
-
getMemoizedSerializedSize
int getMemoizedSerializedSize()
- Overrides:
getMemoizedSerializedSizein classAbstractMessageLite<MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
-
setMemoizedSerializedSize
void setMemoizedSerializedSize(int size)
- Overrides:
setMemoizedSerializedSizein classAbstractMessageLite<MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
-
writeTo
public void writeTo(CodedOutputStream output) throws java.io.IOException
Description copied from interface:MessageLiteSerializes the message and writes it tooutput. This does not flush or close the stream.- Throws:
java.io.IOException
-
getSerializedSize
int getSerializedSize(Schema schema)
- Overrides:
getSerializedSizein classAbstractMessageLite<MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
-
getSerializedSize
public int getSerializedSize()
Description copied from interface:MessageLiteGet the number of bytes required to encode this message. The result is only computed on the first call and memoized after that. If this message requires more than Integer.MAX_VALUE bytes to encode, the return value will be smaller than the actual number of bytes required and might be negative.
-
computeSerializedSize
private int computeSerializedSize(Schema<?> nullableSchema)
-
buildMessageInfo
java.lang.Object buildMessageInfo() throws java.lang.ExceptionConstructs aMessageInfofor this message type.- Throws:
java.lang.Exception
-
getDefaultInstance
static <T extends GeneratedMessageLite<?,?>> T getDefaultInstance(java.lang.Class<T> clazz)
-
registerDefaultInstance
protected static <T extends GeneratedMessageLite<?,?>> void registerDefaultInstance(java.lang.Class<T> clazz, T defaultInstance)
-
newMessageInfo
protected static java.lang.Object newMessageInfo(MessageLite defaultInstance, java.lang.String info, java.lang.Object[] objects)
-
mergeUnknownFields
protected final void mergeUnknownFields(UnknownFieldSetLite unknownFields)
Merge some unknown fields into theUnknownFieldSetLitefor this message.For use by generated code only.
-
newSingularGeneratedExtension
public static <ContainingType extends MessageLite,Type> GeneratedMessageLite.GeneratedExtension<ContainingType,Type> newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance, Type defaultValue, MessageLite messageDefaultInstance, Internal.EnumLiteMap<?> enumTypeMap, int number, WireFormat.FieldType type, java.lang.Class singularType)
For use by generated code only.
-
newRepeatedGeneratedExtension
public static <ContainingType extends MessageLite,Type> GeneratedMessageLite.GeneratedExtension<ContainingType,Type> newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance, MessageLite messageDefaultInstance, Internal.EnumLiteMap<?> enumTypeMap, int number, WireFormat.FieldType type, boolean isPacked, java.lang.Class singularType)
For use by generated code only.
-
getMethodOrDie
static java.lang.reflect.Method getMethodOrDie(java.lang.Class clazz, java.lang.String name, java.lang.Class... params)Calls Class.getMethod and throws a RuntimeException if it fails.
-
invokeOrDie
static java.lang.Object invokeOrDie(java.lang.reflect.Method method, java.lang.Object object, java.lang.Object... params)Calls invoke and throws a RuntimeException if it fails.
-
checkIsLite
private static <MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>,T> GeneratedMessageLite.GeneratedExtension<MessageType,T> checkIsLite(ExtensionLite<MessageType,T> extension)
Checks that theExtensionis Lite and returns it as aGeneratedMessageLite.GeneratedExtension.
-
isInitialized
protected static final <T extends GeneratedMessageLite<T,?>> boolean isInitialized(T message, boolean shouldMemoize)
A static helper method for checking if a message is initialized, optionally memoizing.For use by generated code only.
-
emptyIntList
protected static Internal.IntList emptyIntList()
-
mutableCopy
protected static Internal.IntList mutableCopy(Internal.IntList list)
-
emptyLongList
protected static Internal.LongList emptyLongList()
-
mutableCopy
protected static Internal.LongList mutableCopy(Internal.LongList list)
-
emptyFloatList
protected static Internal.FloatList emptyFloatList()
-
mutableCopy
protected static Internal.FloatList mutableCopy(Internal.FloatList list)
-
emptyDoubleList
protected static Internal.DoubleList emptyDoubleList()
-
mutableCopy
protected static Internal.DoubleList mutableCopy(Internal.DoubleList list)
-
emptyBooleanList
protected static Internal.BooleanList emptyBooleanList()
-
mutableCopy
protected static Internal.BooleanList mutableCopy(Internal.BooleanList list)
-
emptyProtobufList
protected static <E> Internal.ProtobufList<E> emptyProtobufList()
-
mutableCopy
protected static <E> Internal.ProtobufList<E> mutableCopy(Internal.ProtobufList<E> list)
-
parsePartialFrom
static <T extends GeneratedMessageLite<T,?>> T parsePartialFrom(T instance, CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
A static helper method for parsing a partial from input using the extension registry and the instance.- Throws:
InvalidProtocolBufferException
-
parsePartialFrom
private static <T extends GeneratedMessageLite<T,?>> T parsePartialFrom(T defaultInstance, byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
A static helper method for parsing a partial from byte array.- Throws:
InvalidProtocolBufferException
-
parsePartialFrom
protected static <T extends GeneratedMessageLite<T,?>> T parsePartialFrom(T defaultInstance, CodedInputStream input) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
checkMessageInitialized
private static <T extends GeneratedMessageLite<T,?>> T checkMessageInitialized(T message) throws InvalidProtocolBufferException
Helper method to check if message is initialized.- Returns:
- The message to check.
- Throws:
InvalidProtocolBufferException- if it is not initialized.
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, ByteString data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parsePartialFrom
private static <T extends GeneratedMessageLite<T,?>> T parsePartialFrom(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, byte[] data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, java.io.InputStream input) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, CodedInputStream input) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseFrom(T defaultInstance, CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseDelimitedFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseDelimitedFrom(T defaultInstance, java.io.InputStream input) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseDelimitedFrom
protected static <T extends GeneratedMessageLite<T,?>> T parseDelimitedFrom(T defaultInstance, java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parsePartialDelimitedFrom
private static <T extends GeneratedMessageLite<T,?>> T parsePartialDelimitedFrom(T defaultInstance, java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
-