Modifier and Type | Class and Description |
---|---|
class |
AbstractParser<MessageType extends MessageLite>
A partial implementation of the
Parser interface which implements as many methods of that interface as
possible in terms of other methods. |
class |
ExtensionLite<ContainingType extends MessageLite,Type>
Lite interface that generated extensions implement.
|
static class |
GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
Type used to represent generated extensions.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessageLite<MessageType extends AbstractMessageLite<MessageType,BuilderType>,BuilderType extends AbstractMessageLite.Builder<MessageType,BuilderType>>
A partial implementation of the
MessageLite interface which implements as many methods of that interface as
possible in terms of other methods. |
class |
GeneratedMessageLite<MessageType extends GeneratedMessageLite<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.Builder<MessageType,BuilderType>>
All generated protocol message classes extend this class.
|
static class |
GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>
Generated message classes for message types that contain extension ranges subclass this.
|
Modifier and Type | Field and Description |
---|---|
protected MessageLite |
LazyFieldLite.value
The parsed value.
|
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,
java.lang.Class singularType)
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,
java.lang.Class singularType)
For use by generated code only.
|
protected <MessageType extends MessageLite> |
GeneratedMessageLite.ExtendableMessage.parseUnknownField(MessageType defaultInstance,
CodedInputStream input,
ExtensionRegistryLite extensionRegistry,
int tag)
Parse an unknown field or an extension.
|
<T extends MessageLite> |
CodedInputStream.readGroup(int fieldNumber,
Parser<T> parser,
ExtensionRegistryLite extensionRegistry)
Read a
group field value from the stream. |
<T extends MessageLite> |
CodedInputStream.readMessage(Parser<T> parser,
ExtensionRegistryLite extensionRegistry)
Read an embedded message field value from the stream.
|
<T extends MessageLite> |
GeneratedMessageLite.Visitor.visitMessage(T mine,
T other)
Message fields use null sentinals.
|
<T extends MessageLite> |
GeneratedMessageLite.MergeFromVisitor.visitMessage(T mine,
T other) |
Modifier and Type | Method and Description |
---|---|
MessageLite |
MessageLite.Builder.build()
Constructs the message based on the state of the Builder.
|
MessageLite |
MessageLite.Builder.buildPartial()
Like
MessageLite.Builder.build() , but does not throw an exception if the message is missing required fields. |
MessageLite |
MessageLiteOrBuilder.getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
abstract MessageLite |
ExtensionLite.getMessageDefaultInstance()
Returns the default instance of the extension field, if it's a message extension.
|
MessageLite |
GeneratedMessageLite.GeneratedExtension.getMessageDefaultInstance()
If the extension is an embedded message or group, returns the default instance of the message.
|
MessageLite |
InvalidProtocolBufferException.getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if no message is attached.
|
MessageLite |
LazyField.getValue() |
MessageLite |
LazyFieldLite.getValue(MessageLite defaultInstance)
Returns message instance.
|
MessageLite |
LazyFieldLite.setValue(MessageLite value)
Sets the value of the instance and returns the old value without delay parsing anything.
|
Modifier and Type | Method and Description |
---|---|
Parser<? extends MessageLite> |
MessageLite.getParserForType()
Gets the parser for a message of the same type as this message.
|
Modifier and Type | Method and Description |
---|---|
static int |
CodedOutputStream.computeGroupSize(int fieldNumber,
MessageLite value)
Deprecated.
groups are deprecated.
|
static int |
CodedOutputStream.computeGroupSizeNoTag(MessageLite value)
Deprecated.
|
static int |
CodedOutputStream.computeMessageSetExtensionSize(int fieldNumber,
MessageLite value)
Compute the number of bytes that would be needed to encode a MessageSet extension to the stream.
|
static int |
CodedOutputStream.computeMessageSize(int fieldNumber,
MessageLite value)
Compute the number of bytes that would be needed to encode an embedded message field, including tag.
|
static int |
CodedOutputStream.computeMessageSizeNoTag(MessageLite value)
Compute the number of bytes that would be needed to encode an embedded message field.
|
protected void |
LazyFieldLite.ensureInitialized(MessageLite defaultInstance)
Might lazily parse the bytes that were previously passed in.
|
static LazyFieldLite |
LazyFieldLite.fromValue(MessageLite value)
Constructs a LazyFieldLite instance with a value.
|
MessageLite |
LazyFieldLite.getValue(MessageLite defaultInstance)
Returns message instance.
|
BuilderType |
AbstractMessageLite.Builder.mergeFrom(MessageLite other) |
MessageLite.Builder |
MessageLite.Builder.mergeFrom(MessageLite other)
Merge
other into the message being built. |
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.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.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 UninitializedMessageException |
AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite message)
Construct an UninitializedMessageException reporting missing fields in the given message.
|
static GeneratedMessageLite.SerializedForm |
GeneratedMessageLite.SerializedForm.of(MessageLite message) |
InvalidProtocolBufferException |
InvalidProtocolBufferException.setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort parsing in
Parser interface. |
MessageLite |
LazyFieldLite.setValue(MessageLite value)
Sets the value of the instance and returns the old value without delay parsing anything.
|
void |
CodedOutputStream.writeGroup(int fieldNumber,
MessageLite value)
Deprecated.
groups are deprecated.
|
void |
CodedOutputStream.writeGroupNoTag(MessageLite value)
Deprecated.
groups are deprecated.
|
abstract void |
CodedOutputStream.writeMessage(int fieldNumber,
MessageLite value)
Write an embedded message field, including tag, to the stream.
|
abstract void |
CodedOutputStream.writeMessageNoTag(MessageLite value)
Write an embedded message field to the stream.
|
abstract void |
CodedOutputStream.writeMessageSetExtension(int fieldNumber,
MessageLite value)
Write a MessageSet extension field to the stream.
|
Constructor and Description |
---|
LazyField(MessageLite defaultInstance,
ExtensionRegistryLite extensionRegistry,
ByteString bytes) |
UninitializedMessageException(MessageLite message) |