| Modifier and Type | Class and Description |
|---|---|
| public abstract static class | |
| protected static interface | GeneratedMessage.BuilderParent
TODO(xiaofeng): remove this after b/29368482 is fixed. |
| private abstract static class | |
| public abstract static class | GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.
Generated message builders for message types that contain extension ranges subclass this. |
| public abstract static class | GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.
Generated message classes for message types that contain extension ranges subclass this. |
| public static interface | |
| pack-priv static interface | GeneratedMessage.ExtensionDescriptorRetriever
Gets the descriptor for an extension. |
| public static class | GeneratedMessage.FieldAccessorTable
Users should ignore this class. |
| public static class | GeneratedMessage.GeneratedExtension<ContainingType extends Message, Type>
Type used to represent generated extensions. |
| Modifier and Type | Field and Description |
|---|---|
| protected static boolean | alwaysUseFieldBuilders
For testing. |
| private static final long | |
| protected UnknownFieldSet | unknownFields
For use by generated code only. |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private static <MessageType extends GeneratedMessage. | checkNotLite(ExtensionLite<MessageType, T> extension)
Checks that the |
| protected static int | |
| protected static int | |
| pack-priv static void | |
| public Map | getAllFields()
Implements com. |
| private Map | getAllFieldsMutable(boolean
whether to generate ByteString for string fields getBytesForString)Internal helper to return a modifiable map containing all the fields. |
| pack-priv Map | getAllFieldsRaw()
Returns a collection of all the fields in this message which are set and their corresponding values. |
| public Descriptors. | getDescriptorForType()
Implements com. |
| public Object | getField(final Descriptors.
Implements com. |
| pack-priv Object | getFieldRaw(final Descriptors.
Obtains the value of the given field, or the default value if it is not set. |
| private static Method | getMethodOrDie(final Class<T> clazz, final String name, final Class<T>... params)
Calls Class.getMethod and throws a RuntimeException if it fails. |
| public Descriptors. | getOneofFieldDescriptor(final Descriptors.
Overrides com. Implements com. |
| public Parser | getParserForType()
Implements com. |
| public Object | getRepeatedField(final Descriptors.
Implements com. |
| public int | getRepeatedFieldCount(final Descriptors.
Implements com. |
| public int | getSerializedSize()
Overrides com. Implements com. |
| public UnknownFieldSet | getUnknownFields()
Implements com. UnknownFieldSet for this message.
|
| public boolean | hasField(final Descriptors.
Implements com. |
| public boolean | hasOneof(final Descriptors.
Overrides com. Implements com. |
| protected abstract GeneratedMessage. | |
| protected MapField | |
| private static Object | invokeOrDie(final Method method, final Object object, final Object... params)
Calls invoke and throws a RuntimeException if it fails. |
| public boolean | isInitialized()
Overrides com. Implements com. |
| protected void | |
| protected abstract Message. | newBuilderForType(GeneratedMessage.
TODO(xiaofeng): remove this together with GeneratedMessage.BuilderParent. |
| protected Message. | newBuilderForType(final AbstractMessage.
Overrides com. |
| public static <ContainingType extends Message, Type> GeneratedMessage. | newFileScopedGeneratedExtension(final Class<T> singularType, final Message defaultInstance)
For use by generated code only. |
| public static <ContainingType extends Message, Type> GeneratedMessage. | newFileScopedGeneratedExtension(final Class<T> singularType, final Message defaultInstance, final String descriptorOuterClass, final String extensionName)
Used in proto1 generated code only. |
| public static <ContainingType extends Message, Type> GeneratedMessage. | newMessageScopedGeneratedExtension(final Message scope, final int descriptorIndex, final Class<T> singularType, final Message defaultInstance)
For use by generated code only. |
| public static <ContainingType extends Message, Type> GeneratedMessage. | newMessageScopedGeneratedExtension(final Message scope, final String name, final Class<T> singularType, final Message defaultInstance)
Used in proto1 generated code only. |
| protected static <M extends Message> M | |
| protected static <M extends Message> M | parseDelimitedWithIOException(Parser<M> parser, InputStream input, ExtensionRegistryLite extensions)
|
| protected boolean | Returns: true unless the tag is an end-group tag.Called by subclasses to parse an unknown field. |
| protected static <M extends Message> M | |
| protected static <M extends Message> M | |
| protected static <M extends Message> M | |
| protected static <M extends Message> M | |
| protected Object | Returns: a SerializedForm of this messageReplaces this object in the output stream with a serialized form. |
| protected static void | |
| protected static void | |
| public void | writeTo(final CodedOutputStream output)
Overrides com. Implements com. output.
|