|
Map< FieldDescriptor, Object > | getAllFields () |
|
Map< FieldDescriptor, Object > | getAllFields () |
|
Map< FieldDescriptor, Object > | getAllFieldsRaw () |
|
Map< FieldDescriptor, Object > | getAllFieldsRaw () |
|
final< Type > Type | getExtension (final Extension< MessageType, List< Type >> extension, final int index) |
|
final< Type > Type | getExtension (final Extension< MessageType, List< Type >> extension, final int index) |
|
final< Type > Type | getExtension (final Extension< MessageType, Type > extension) |
|
final< Type > Type | getExtension (final Extension< MessageType, Type > extension) |
|
final< Type > Type | getExtension (final ExtensionLite< MessageType, List< Type >> extensionLite, final int index) |
|
final< Type > Type | getExtension (final ExtensionLite< MessageType, List< Type >> extensionLite, final int index) |
|
final< Type > Type | getExtension (final ExtensionLite< MessageType, Type > extensionLite) |
|
final< Type > Type | getExtension (final ExtensionLite< MessageType, Type > extensionLite) |
|
final< Type > Type | getExtension (final GeneratedExtension< MessageType, List< Type >> extension, final int index) |
|
final< Type > Type | getExtension (final GeneratedExtension< MessageType, List< Type >> extension, final int index) |
|
final< Type > Type | getExtension (final GeneratedExtension< MessageType, Type > extension) |
|
final< Type > Type | getExtension (final GeneratedExtension< MessageType, Type > extension) |
|
final< Type > int | getExtensionCount (final Extension< MessageType, List< Type >> extension) |
|
final< Type > int | getExtensionCount (final Extension< MessageType, List< Type >> extension) |
|
final< Type > int | getExtensionCount (final ExtensionLite< MessageType, List< Type >> extensionLite) |
|
final< Type > int | getExtensionCount (final ExtensionLite< MessageType, List< Type >> extensionLite) |
|
final< Type > int | getExtensionCount (final GeneratedExtension< MessageType, List< Type >> extension) |
|
final< Type > int | getExtensionCount (final GeneratedExtension< MessageType, List< Type >> extension) |
|
Object | getField (final FieldDescriptor field) |
|
Object | getField (final FieldDescriptor field) |
|
Object | getRepeatedField (final FieldDescriptor field, final int index) |
|
Object | getRepeatedField (final FieldDescriptor field, final int index) |
|
int | getRepeatedFieldCount (final FieldDescriptor field) |
|
int | getRepeatedFieldCount (final FieldDescriptor field) |
|
final< Type > boolean | hasExtension (final Extension< MessageType, Type > extension) |
|
final< Type > boolean | hasExtension (final Extension< MessageType, Type > extension) |
|
final< Type > boolean | hasExtension (final ExtensionLite< MessageType, Type > extensionLite) |
|
final< Type > boolean | hasExtension (final ExtensionLite< MessageType, Type > extensionLite) |
|
final< Type > boolean | hasExtension (final GeneratedExtension< MessageType, Type > extension) |
|
final< Type > boolean | hasExtension (final GeneratedExtension< MessageType, Type > extension) |
|
boolean | hasField (final FieldDescriptor field) |
|
boolean | hasField (final FieldDescriptor field) |
|
boolean | isInitialized () |
|
boolean | isInitialized () |
|
Descriptor | getDescriptorForType () |
|
Descriptor | getDescriptorForType () |
|
FieldDescriptor | getOneofFieldDescriptor (final OneofDescriptor oneof) |
|
FieldDescriptor | getOneofFieldDescriptor (final OneofDescriptor oneof) |
|
Parser<? extends GeneratedMessage > | getParserForType () |
|
Parser<? extends GeneratedMessage > | getParserForType () |
|
int | getSerializedSize () |
|
int | getSerializedSize () |
|
UnknownFieldSet | getUnknownFields () |
|
UnknownFieldSet | getUnknownFields () |
|
boolean | hasOneof (final OneofDescriptor oneof) |
|
boolean | hasOneof (final OneofDescriptor oneof) |
|
void | writeTo (final CodedOutputStream output) throws IOException |
|
void | writeTo (final CodedOutputStream output) throws IOException |
|
boolean | equals (final Object other) |
|
boolean | equals (final Object other) |
|
List< String > | findInitializationErrors () |
|
List< String > | findInitializationErrors () |
|
String | getInitializationErrorString () |
|
String | getInitializationErrorString () |
|
int | hashCode () |
|
int | hashCode () |
|
final String | toString () |
|
final String | toString () |
|
Builder | newBuilderForType () |
|
Builder | newBuilderForType () |
|
Builder | toBuilder () |
|
Builder | toBuilder () |
|
byte[] | toByteArray () |
|
byte[] | toByteArray () |
|
ByteString | toByteString () |
|
ByteString | toByteString () |
|
void | writeDelimitedTo (OutputStream output) throws IOException |
|
void | writeDelimitedTo (OutputStream output) throws IOException |
|
void | writeTo (OutputStream output) throws IOException |
|
void | writeTo (OutputStream output) throws IOException |
|
Message | getDefaultInstanceForType () |
|
Message | getDefaultInstanceForType () |
|
Object | getField (Descriptors.FieldDescriptor field) |
|
Object | getField (Descriptors.FieldDescriptor field) |
|
Descriptors.FieldDescriptor | getOneofFieldDescriptor (Descriptors.OneofDescriptor oneof) |
|
Descriptors.FieldDescriptor | getOneofFieldDescriptor (Descriptors.OneofDescriptor oneof) |
|
Object | getRepeatedField (Descriptors.FieldDescriptor field, int index) |
|
Object | getRepeatedField (Descriptors.FieldDescriptor field, int index) |
|
int | getRepeatedFieldCount (Descriptors.FieldDescriptor field) |
|
int | getRepeatedFieldCount (Descriptors.FieldDescriptor field) |
|
boolean | hasField (Descriptors.FieldDescriptor field) |
|
boolean | hasField (Descriptors.FieldDescriptor field) |
|
boolean | hasOneof (Descriptors.OneofDescriptor oneof) |
|
boolean | hasOneof (Descriptors.OneofDescriptor oneof) |
|
|
| ExtendableMessage () |
|
| ExtendableMessage () |
|
| ExtendableMessage (ExtendableBuilder< MessageType, ?> builder) |
|
| ExtendableMessage (ExtendableBuilder< MessageType, ?> builder) |
|
boolean | extensionsAreInitialized () |
|
boolean | extensionsAreInitialized () |
|
int | extensionsSerializedSize () |
|
int | extensionsSerializedSize () |
|
int | extensionsSerializedSizeAsMessageSet () |
|
int | extensionsSerializedSizeAsMessageSet () |
|
Map< FieldDescriptor, Object > | getExtensionFields () |
|
Map< FieldDescriptor, Object > | getExtensionFields () |
|
void | makeExtensionsImmutable () |
|
void | makeExtensionsImmutable () |
|
ExtensionWriter | newExtensionWriter () |
|
ExtensionWriter | newExtensionWriter () |
|
ExtensionWriter | newMessageSetExtensionWriter () |
|
ExtensionWriter | newMessageSetExtensionWriter () |
|
boolean | parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
|
boolean | parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
|
| GeneratedMessage () |
|
| GeneratedMessage () |
|
| GeneratedMessage (Builder<?> builder) |
|
| GeneratedMessage (Builder<?> builder) |
|
abstract FieldAccessorTable | internalGetFieldAccessorTable () |
|
abstract FieldAccessorTable | internalGetFieldAccessorTable () |
|
MapField | internalGetMapField (int fieldNumber) |
|
MapField | internalGetMapField (int fieldNumber) |
|
abstract Message.Builder | newBuilderForType (BuilderParent parent) |
|
abstract Message.Builder | newBuilderForType (BuilderParent parent) |
|
Message.Builder | newBuilderForType (final AbstractMessage.BuilderParent parent) |
|
Message.Builder | newBuilderForType (final AbstractMessage.BuilderParent parent) |
|
boolean | parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
|
boolean | parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
|
Object | writeReplace () throws ObjectStreamException |
|
Object | writeReplace () throws ObjectStreamException |
|
Message.Builder | newBuilderForType (BuilderParent parent) |
|
Message.Builder | newBuilderForType (BuilderParent parent) |
|
|
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, Type > | newFileScopedGeneratedExtension (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 > | newFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance, final String descriptorOuterClass, final String extensionName) |
|
static< ContainingType extends Message, Type > GeneratedExtension< ContainingType, Type > | newFileScopedGeneratedExtension (final Class singularType, final Message defaultInstance, final String descriptorOuterClass, final String extensionName) |
|
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 > | newMessageScopedGeneratedExtension (final Message scope, final int descriptorIndex, 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 > | newMessageScopedGeneratedExtension (final Message scope, final String name, final Class singularType, final Message defaultInstance) |
|
static int | computeStringSize (final int fieldNumber, final Object value) |
|
static int | computeStringSize (final int fieldNumber, final Object value) |
|
static int | computeStringSizeNoTag (final Object value) |
|
static int | computeStringSizeNoTag (final Object value) |
|
static< M extends Message > M | parseDelimitedWithIOException (Parser< M > parser, InputStream input) throws IOException |
|
static< M extends Message > M | parseDelimitedWithIOException (Parser< M > parser, InputStream input) throws IOException |
|
static< M extends Message > M | parseDelimitedWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException |
|
static< M extends Message > M | parseDelimitedWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, CodedInputStream input) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, CodedInputStream input) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, CodedInputStream input, ExtensionRegistryLite extensions) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, CodedInputStream input, ExtensionRegistryLite extensions) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, InputStream input) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, InputStream input) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException |
|
static< M extends Message > M | parseWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException |
|
static void | writeString (CodedOutputStream output, final int fieldNumber, final Object value) throws IOException |
|
static void | writeString (CodedOutputStream output, final int fieldNumber, final Object value) throws IOException |
|
static void | writeStringNoTag (CodedOutputStream output, final Object value) throws IOException |
|
static void | writeStringNoTag (CodedOutputStream output, final Object value) throws IOException |
|
static int | hashBoolean (boolean b) |
|
static int | hashBoolean (boolean b) |
|
static int | hashEnum (EnumLite e) |
|
static int | hashEnum (EnumLite e) |
|
static int | hashEnumList (List<? extends EnumLite > list) |
|
static int | hashEnumList (List<? extends EnumLite > list) |
|
static int | hashFields (int hash, Map< FieldDescriptor, Object > map) |
|
static int | hashFields (int hash, Map< FieldDescriptor, Object > map) |
|
static int | hashLong (long n) |
|
static int | hashLong (long n) |
|
UnknownFieldSet | unknownFields |
|
int | memoizedSize = -1 |
|
static boolean | alwaysUseFieldBuilders = false |
|
Generated message classes for message types that contain extension ranges subclass this.
This class implements type-safe accessors for extensions. They implement all the same operations that you can do with normal fields – e.g. "has", "get", and "getCount" – but for extensions. The extensions are identified using instances of the class GeneratedExtension; the protocol compiler generates a static instance of this class for every extension in its input. Through the magic of generics, all is made type-safe.
For example, imagine you have the
file:
option java_class = "MyProto";
message Foo {
extensions 1000 to max;
}
extend Foo {
optional int32 bar;
}
Then you might write code like:
MyProto.Foo foo = getFoo();
int i = foo.getExtension(MyProto.bar);
See also ExtendableBuilder.
Definition at line 823 of file protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java.