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. |
static class |
GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
Lite equivalent to GeneratedMessage.GeneratedExtension.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessageLite
A partial implementation of the
MessageLite interface which
implements as many methods of that interface as possible in terms of other
methods. |
class |
GeneratedMessageLite
Lite version of GeneratedMessage.
|
static class |
GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
Lite equivalent of GeneratedMessage.ExtendableMessage.
|
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)
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)
For use by generated code only.
|
<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.
|
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.
|
MessageLite |
GeneratedMessageLite.GeneratedExtension.getMessageDefaultInstance()
If the extension is an embedded message, this is the default instance of
that type.
|
MessageLite |
InvalidProtocolBufferException.getUnfinishedMessage()
Returns the unfinished message attached to the exception, or null if
no message is attached.
|
Modifier and Type | Method and Description |
---|---|
Parser<? extends MessageLite> |
MessageLite.getParserForType()
Gets the parser for a message of the same type as this message.
|
Parser<? extends MessageLite> |
GeneratedMessageLite.getParserForType() |
Modifier and Type | Method and Description |
---|---|
static int |
CodedOutputStream.computeGroupSize(int fieldNumber,
MessageLite value)
Compute the number of bytes that would be needed to encode a
group field, including tag. |
static int |
CodedOutputStream.computeGroupSizeNoTag(MessageLite value)
Compute the number of bytes that would be needed to encode a
group field. |
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.
|
static int |
CodedOutputStream.computeUnknownGroupSize(int fieldNumber,
MessageLite value)
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just
call
CodedOutputStream.computeGroupSize(int, com.google.protobuf.MessageLite) . |
static int |
CodedOutputStream.computeUnknownGroupSizeNoTag(MessageLite value)
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just
call
CodedOutputStream.computeUnknownGroupSizeNoTag(com.google.protobuf.MessageLite) . |
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isPacked)
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)
For use by generated code only.
|
protected static UninitializedMessageException |
AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite message)
Construct an UninitializedMessageException reporting missing fields in
the given message.
|
InvalidProtocolBufferException |
InvalidProtocolBufferException.setUnfinishedMessage(MessageLite unfinishedMessage)
Attaches an unfinished message to the exception to support best-effort
parsing in
Parser interface. |
void |
CodedOutputStream.writeGroup(int fieldNumber,
MessageLite value)
Write a
group field, including tag, to the stream. |
void |
CodedOutputStream.writeGroupNoTag(MessageLite value)
Write a
group field to the stream. |
void |
CodedOutputStream.writeMessage(int fieldNumber,
MessageLite value)
Write an embedded message field, including tag, to the stream.
|
void |
CodedOutputStream.writeMessageNoTag(MessageLite value)
Write an embedded message field to the stream.
|
void |
CodedOutputStream.writeMessageSetExtension(int fieldNumber,
MessageLite value)
Write a MessageSet extension field to the stream.
|
void |
CodedOutputStream.writeUnknownGroup(int fieldNumber,
MessageLite value)
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just
call
CodedOutputStream.writeGroup(int, com.google.protobuf.MessageLite) . |
void |
CodedOutputStream.writeUnknownGroupNoTag(MessageLite value)
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just
call
CodedOutputStream.writeGroupNoTag(com.google.protobuf.MessageLite) . |
Constructor and Description |
---|
UninitializedMessageException(MessageLite message) |