webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Classes | |
class | Builder |
interface | BuilderParent |
class | ExtendableBuilder |
class | ExtendableMessage |
interface | ExtendableMessageOrBuilder |
interface | ExtensionDescriptorRetriever |
class | FieldAccessorTable |
class | GeneratedExtension |
Public Member Functions | |
Parser<? extends GeneratedMessage > | getParserForType () |
Descriptor | getDescriptorForType () |
boolean | isInitialized () |
Map< FieldDescriptor, Object > | getAllFields () |
boolean | hasOneof (final OneofDescriptor oneof) |
FieldDescriptor | getOneofFieldDescriptor (final OneofDescriptor oneof) |
boolean | hasField (final FieldDescriptor field) |
Object | getField (final FieldDescriptor field) |
int | getRepeatedFieldCount (final FieldDescriptor field) |
Object | getRepeatedField (final FieldDescriptor field, final int index) |
UnknownFieldSet | getUnknownFields () |
void | writeTo (final CodedOutputStream output) throws IOException |
int | getSerializedSize () |
Static Public Member Functions | |
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, Type > | newMessageScopedGeneratedExtension (final Message scope, final int descriptorIndex, final Class singularType, final Message defaultInstance) |
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, Type > | newFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance) |
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, Type > | newMessageScopedGeneratedExtension (final Message scope, final String name, final Class singularType, final Message defaultInstance) |
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, Type > | newFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance, final String descriptorOuterClass, final String extensionName) |
Protected Member Functions | |
GeneratedMessage () | |
GeneratedMessage (Builder<?> builder) | |
abstract FieldAccessorTable | internalGetFieldAccessorTable () |
boolean | parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
void | makeExtensionsImmutable () |
abstract Message.Builder | newBuilderForType (BuilderParent parent) |
MapField | internalGetMapField (int fieldNumber) |
Object | writeReplace () throws ObjectStreamException |
Protected Attributes | |
UnknownFieldSet | unknownFields |
Static Protected Attributes | |
static boolean | alwaysUseFieldBuilders = false |
All generated protocol message classes extend this class. This class implements most of the Message and Builder interfaces using Java reflection. Users can ignore this class and pretend that generated messages implement the Message interface directly.
|
inlineprotected |
|
inlineprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inline |
Returns a collection of all the fields in this message which are set and their corresponding values. A singular ("required" or "optional") field is set iff hasField() returns true for that field. A "repeated" field is set iff getRepeatedFieldCount() is greater than zero. The values are exactly what would be returned by calling getField(Descriptors.FieldDescriptor) for each field. The map is guaranteed to be a sorted map, so iterating over it will return fields in order by field number.
If this is for a builder, the returned map may or may not reflect future changes to the builder. Either way, the returned map is itself unmodifiable.
Implements com.google.protobuf.MessageOrBuilder.
|
inline |
Get the message's type's descriptor. This differs from the
method of generated message classes in that this method is an abstract method of the
interface whereas
is a static method of a specific class. They return the same thing.
Implements com.google.protobuf.MessageOrBuilder.
|
inline |
|
inline |
|
inline |
Gets the parser for a message of the same type as this message.
Implements com.google.protobuf.Message.
|
inline |
|
inline |
|
inline |
Get the number of bytes required to encode this message. The result is only computed on the first call and memoized after that.
Implements com.google.protobuf.MessageLite.
|
inline |
Get the UnknownFieldSet for this message.
Implements com.google.protobuf.MessageOrBuilder.
|
inline |
|
inline |
|
abstractprotected |
Get the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.
|
inlineprotected |
Gets the map field with the given field number. This method should be overridden in the generated message class if the message contains map fields.
Unlike other field types, reflection support for map fields can't be implemented based on generated public API because we need to access a map field as a list in reflection API but the generated API only allows us to access it as a map. This method returns the underlying map field directly and thus enables us to access the map field as a list.
|
inline |
Returns true if all required fields in the message and all embedded messages are set, false otherwise.
See also: MessageOrBuilder#getInitializationErrorString()
Implements com.google.protobuf.MessageLiteOrBuilder.
|
inlineprotected |
Used by parsing constructors in generated classes.
|
abstractprotected |
|
inlinestatic |
For use by generated code only.
|
inlinestatic |
Used in proto1 generated code only.
After enabling bridge, we can define proto2 extensions (the extended type is a proto2 mutable message) in a proto1 .proto file. For these extensions we should generate proto2 GeneratedExtensions.
|
inlinestatic |
For use by generated code only.
|
inlinestatic |
Used in proto1 generated code only.
After enabling bridge, we can define proto2 extensions (the extended type is a proto2 mutable message) in a proto1 .proto file. For these extensions we should generate proto2 GeneratedExtensions.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlineprotected |
Called by subclasses to parse an unknown field.
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inlineprotected |
Replaces this object in the output stream with a serialized form. Part of Java's serialization magic. Generated sub-classes must override this method by calling
|
inlinestaticprotected |
|
inlinestaticprotected |
|
inline |
Serializes the message and writes it to
. This does not flush or close the stream.
Implements com.google.protobuf.MessageLite.
For testing. Allows a test to disable the optimization that avoids using field builders for nested messages until they are requested. By disabling this optimization, existing tests can be reused to test the field builders.
|
protected |
For use by generated code only.