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. |
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. |
static class |
DescriptorProtos.DescriptorProto
Protobuf type
google.protobuf.DescriptorProto |
static class |
DescriptorProtos.DescriptorProto.ExtensionRange
Protobuf type
google.protobuf.DescriptorProto.ExtensionRange |
static class |
DescriptorProtos.EnumDescriptorProto
Protobuf type
google.protobuf.EnumDescriptorProto |
static class |
DescriptorProtos.EnumOptions
Protobuf type
google.protobuf.EnumOptions |
static class |
DescriptorProtos.EnumValueDescriptorProto
Protobuf type
google.protobuf.EnumValueDescriptorProto |
static class |
DescriptorProtos.EnumValueOptions
Protobuf type
google.protobuf.EnumValueOptions |
static class |
DescriptorProtos.FieldDescriptorProto
Protobuf type
google.protobuf.FieldDescriptorProto |
static class |
DescriptorProtos.FieldOptions
Protobuf type
google.protobuf.FieldOptions |
static class |
DescriptorProtos.FileDescriptorProto
Protobuf type
google.protobuf.FileDescriptorProto |
static class |
DescriptorProtos.FileDescriptorSet
Protobuf type
google.protobuf.FileDescriptorSet |
static class |
DescriptorProtos.FileOptions
Protobuf type
google.protobuf.FileOptions |
static class |
DescriptorProtos.MessageOptions
Protobuf type
google.protobuf.MessageOptions |
static class |
DescriptorProtos.MethodDescriptorProto
Protobuf type
google.protobuf.MethodDescriptorProto |
static class |
DescriptorProtos.MethodOptions
Protobuf type
google.protobuf.MethodOptions |
static class |
DescriptorProtos.ServiceDescriptorProto
Protobuf type
google.protobuf.ServiceDescriptorProto |
static class |
DescriptorProtos.ServiceOptions
Protobuf type
google.protobuf.ServiceOptions |
static class |
DescriptorProtos.SourceCodeInfo
Protobuf type
google.protobuf.SourceCodeInfo |
static class |
DescriptorProtos.SourceCodeInfo.Location
Protobuf type
google.protobuf.SourceCodeInfo.Location |
static class |
DescriptorProtos.UninterpretedOption
Protobuf type
google.protobuf.UninterpretedOption |
static class |
DescriptorProtos.UninterpretedOption.NamePart
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.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 | 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) . |
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)
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.
|
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) |