| Package | Description |
|---|---|
| com.google.protobuf |
| 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
Interface that generated extensions implement.
|
static class |
GeneratedMessageLite
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.
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.DescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.DescriptorProto.ExtensionRange
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.EnumDescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.EnumOptions
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.EnumValueDescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.EnumValueOptions
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.FieldDescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.FieldOptions
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.FileDescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.FileDescriptorSet
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.FileOptions
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.MessageOptions
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.MethodDescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.MethodOptions
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.OneofDescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.ServiceDescriptorProto
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.ServiceOptions
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.SourceCodeInfo
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.SourceCodeInfo.Location
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.UninterpretedOption
|
static class |
DescriptorProtos
Protobuf type
google.protobuf.UninterpretedOption.NamePart
|
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
Generated message classes for message types that contain extension ranges subclass this.
|
class |
GeneratedMessageLite
Lite version of
GeneratedMessage.
|
static class |
GeneratedMessageLite
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 |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance, MessageLite
For use by generated code only.
|
static <ContainingType extends MessageLite |
GeneratedMessageLite.newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance, Type defaultValue, MessageLite
For use by generated code only.
|
<T extends MessageLite |
CodedInputStream.readGroup(int fieldNumber, Parser
Read a
group field value from the stream.
|
<T extends MessageLite |
CodedInputStream.readMessage(Parser
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, 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 or group, returns the default instance of the message.
|
abstract MessageLite |
Extension.getMessageDefaultInstance()
Returns the default instance of the extension field, if it's a message extension.
|
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
Returns message instance.
|
MessageLite |
LazyFieldLite.setValue(MessageLite
LazyField is not thread-safe for write access.
|
| Modifier and Type | Method and Description |
|---|---|
Parser |
GeneratedMessageLite.getParserForType()
|
Parser |
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
Compute the number of bytes that would be needed to encode a
group field, including tag.
|
static int |
CodedOutputStream.computeGroupSizeNoTag(MessageLite
Compute the number of bytes that would be needed to encode a
group field.
|
static int |
CodedOutputStream.computeMessageSetExtensionSize(int fieldNumber, MessageLite
Compute the number of bytes that would be needed to encode a MessageSet extension to the stream.
|
static int |
CodedOutputStream.computeMessageSize(int fieldNumber, MessageLite
Compute the number of bytes that would be needed to encode an embedded message field, including tag.
|
static int |
CodedOutputStream.computeMessageSizeNoTag(MessageLite
Compute the number of bytes that would be needed to encode an embedded message field.
|
static int |
CodedOutputStream.computeUnknownGroupSize(int fieldNumber, MessageLite
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just call
CodedOutputStream.
|
static int |
CodedOutputStream.computeUnknownGroupSizeNoTag(MessageLite
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just call
CodedOutputStream.
|
protected void |
LazyFieldLite.ensureInitialized(MessageLite
|
static LazyFieldLite |
LazyFieldLite.fromValue(MessageLite
|
MessageLite |
LazyFieldLite.getValue(MessageLite
Returns message instance.
|
MessageLite |
Descriptors.FieldDescriptor.internalMergeFrom(MessageLite
For internal use only.
|
static <ContainingType extends MessageLite |
GeneratedMessageLite.newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance, MessageLite
For use by generated code only.
|
static <ContainingType extends MessageLite |
GeneratedMessageLite.newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance, Type defaultValue, MessageLite
For use by generated code only.
|
protected static UninitializedMessageException |
AbstractMessageLite.Builder.newUninitializedMessageException(MessageLite
Construct an UninitializedMessageException reporting missing fields in the given message.
|
InvalidProtocolBufferException |
InvalidProtocolBufferException.setUnfinishedMessage(MessageLite
Attaches an unfinished message to the exception to support best-effort parsing in
Parser interface.
|
MessageLite |
LazyFieldLite.setValue(MessageLite
LazyField is not thread-safe for write access.
|
void |
CodedOutputStream.writeGroup(int fieldNumber, MessageLite
Write a
group field, including tag, to the stream.
|
void |
CodedOutputStream.writeGroupNoTag(MessageLite
Write a
group field to the stream.
|
void |
CodedOutputStream.writeMessage(int fieldNumber, MessageLite
Write an embedded message field, including tag, to the stream.
|
void |
CodedOutputStream.writeMessageNoTag(MessageLite
Write an embedded message field to the stream.
|
void |
CodedOutputStream.writeMessageSetExtension(int fieldNumber, MessageLite
Write a MessageSet extension field to the stream.
|
void |
CodedOutputStream.writeUnknownGroup(int fieldNumber, MessageLite
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just call
CodedOutputStream.
|
void |
CodedOutputStream.writeUnknownGroupNoTag(MessageLite
Deprecated.
UnknownFieldSet now implements MessageLite, so you can just call
CodedOutputStream.
|
| Constructor and Description | |
|---|---|
LazyField(MessageLite
|
|
UninitializedMessageException(MessageLite
|