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 |
Extension<ContainingType extends MessageLite,Type>
Interface that generated extensions implement.
|
static class |
GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
Lite equivalent to
GeneratedMessage.GeneratedExtension . |
Modifier and Type | Interface and Description |
---|---|
interface |
Message
Abstract interface implemented by Protocol Message objects.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractMessage
A partial implementation of the
Message interface which implements
as many methods of that interface as possible in terms of other methods. |
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 |
DynamicMessage
An implementation of
Message that can represent arbitrary types,
given a Descriptors.Descriptor . |
class |
GeneratedMessage
All generated protocol message classes extend this class.
|
static class |
GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.ExtendableMessage>
Generated message classes for message types that contain extension ranges
subclass this.
|
class |
GeneratedMessageLite
Lite version of
GeneratedMessage . |
static class |
GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
Lite equivalent of
GeneratedMessage.ExtendableMessage . |
class |
UnknownFieldSet
UnknownFieldSet is used to keep track of fields which were seen when
parsing a protocol message but whose field numbers or types are unrecognized. |
Modifier and Type | Field and Description |
---|---|
protected MessageLite |
LazyFieldLite.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,
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,
Class singularType)
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.
|
abstract MessageLite |
Extension.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)
LazyField is not thread-safe for write access.
|
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) . |
protected void |
LazyFieldLite.ensureInitialized(MessageLite defaultInstance) |
static LazyFieldLite |
LazyFieldLite.fromValue(MessageLite value) |
MessageLite |
LazyFieldLite.getValue(MessageLite defaultInstance)
Returns message instance.
|
MessageLite.Builder |
Descriptors.FieldDescriptor.internalMergeFrom(MessageLite.Builder to,
MessageLite from)
For internal use only.
|
static <ContainingType extends MessageLite,Type> |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isPacked,
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,
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.
|
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)
LazyField is not thread-safe for write access.
|
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 |
---|
LazyField(MessageLite defaultInstance,
ExtensionRegistryLite extensionRegistry,
ByteString bytes) |
UninitializedMessageException(MessageLite message) |
Copyright © 2008-2014 Google. All Rights Reserved.