|
| Map< FieldDescriptor, Object > | getAllFields () |
| |
| Map< FieldDescriptor, Object > | getAllFieldsRaw () |
| |
| 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 ExtensionLite< MessageType, List< Type >> extensionLite, final int index) |
| |
| 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, 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 GeneratedExtension< MessageType, List< Type >> extension) |
| |
| Object | getField (final FieldDescriptor field) |
| |
| Object | getRepeatedField (final FieldDescriptor field, final int index) |
| |
| int | getRepeatedFieldCount (final FieldDescriptor field) |
| |
| final< Type > boolean | hasExtension (final Extension< MessageType, Type > extension) |
| |
| final< Type > boolean | hasExtension (final ExtensionLite< MessageType, Type > extensionLite) |
| |
| final< Type > boolean | hasExtension (final GeneratedExtension< MessageType, Type > extension) |
| |
| boolean | hasField (final FieldDescriptor field) |
| |
| boolean | isInitialized () |
| |
| Descriptor | getDescriptorForType () |
| |
| FieldDescriptor | getOneofFieldDescriptor (final OneofDescriptor oneof) |
| |
| Parser<? extends GeneratedMessageV3 > | getParserForType () |
| |
| int | getSerializedSize () |
| |
| UnknownFieldSet | getUnknownFields () |
| |
| boolean | hasOneof (final OneofDescriptor oneof) |
| |
| void | writeTo (final CodedOutputStream output) throws IOException |
| |
| boolean | equals (final Object other) |
| |
| List< String > | findInitializationErrors () |
| |
| String | getInitializationErrorString () |
| |
| int | hashCode () |
| |
| final String | toString () |
| |
| byte[] | toByteArray () |
| |
| ByteString | toByteString () |
| |
| void | writeDelimitedTo (final OutputStream output) throws IOException |
| |
| void | writeTo (final OutputStream output) throws IOException |
| |
| Builder | newBuilderForType () |
| |
| Builder | toBuilder () |
| |
| Message | getDefaultInstanceForType () |
| |
| Object | getField (Descriptors.FieldDescriptor field) |
| |
| Descriptors.FieldDescriptor | getOneofFieldDescriptor (Descriptors.OneofDescriptor oneof) |
| |
| Object | getRepeatedField (Descriptors.FieldDescriptor field, int index) |
| |
| int | getRepeatedFieldCount (Descriptors.FieldDescriptor field) |
| |
| boolean | hasField (Descriptors.FieldDescriptor field) |
| |
| boolean | hasOneof (Descriptors.OneofDescriptor oneof) |
| |
| Message | getDefaultInstanceForType () |
| |
| < Type > Type | getExtension (Extension< MessageType, List< Type >> extension, int index) |
| |
| < Type > Type | getExtension (Extension< MessageType, Type > extension) |
| |
| < Type > Type | getExtension (ExtensionLite< MessageType, List< Type >> extension, int index) |
| |
| < Type > Type | getExtension (ExtensionLite< MessageType, Type > extension) |
| |
| < Type > Type | getExtension (GeneratedExtension< MessageType, List< Type >> extension, int index) |
| |
| < Type > Type | getExtension (GeneratedExtension< MessageType, Type > extension) |
| |
| < Type > int | getExtensionCount (Extension< MessageType, List< Type >> extension) |
| |
| < Type > int | getExtensionCount (ExtensionLite< MessageType, List< Type >> extension) |
| |
| < Type > int | getExtensionCount (GeneratedExtension< MessageType, List< Type >> extension) |
| |
| < Type > boolean | hasExtension (Extension< MessageType, Type > extension) |
| |
| < Type > boolean | hasExtension (ExtensionLite< MessageType, Type > extension) |
| |
| < Type > boolean | hasExtension (GeneratedExtension< MessageType, Type > extension) |
| |
|
| | ExtendableMessage () |
| |
| | ExtendableMessage (ExtendableBuilder< MessageType, ?> builder) |
| |
| boolean | extensionsAreInitialized () |
| |
| int | extensionsSerializedSize () |
| |
| int | extensionsSerializedSizeAsMessageSet () |
| |
| Map< FieldDescriptor, Object > | getExtensionFields () |
| |
| void | makeExtensionsImmutable () |
| |
| ExtensionWriter | newExtensionWriter () |
| |
| ExtensionWriter | newMessageSetExtensionWriter () |
| |
| boolean | parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
| |
| boolean | parseUnknownFieldProto3 (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
| |
| | GeneratedMessageV3 () |
| |
| | GeneratedMessageV3 (Builder<?> builder) |
| |
| abstract FieldAccessorTable | internalGetFieldAccessorTable () |
| |
| MapField | internalGetMapField (int fieldNumber) |
| |
| void | mergeFromAndMakeImmutableInternal (CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException |
| |
| abstract Message.Builder | newBuilderForType (BuilderParent parent) |
| |
| Message.Builder | newBuilderForType (final AbstractMessage.BuilderParent parent) |
| |
| Object | newInstance (UnusedPrivateParameter unused) |
| |
| boolean | parseUnknownField (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
| |
| boolean | parseUnknownFieldProto3 (CodedInputStream input, UnknownFieldSet.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException |
| |
| Object | writeReplace () throws ObjectStreamException |
| |
| Message.Builder | newBuilderForType (BuilderParent parent) |
| |
|
| static boolean | canUseUnsafe () |
| |
| static int | computeStringSize (final int fieldNumber, final Object value) |
| |
| static int | computeStringSizeNoTag (final Object value) |
| |
| static BooleanList | emptyBooleanList () |
| |
| static DoubleList | emptyDoubleList () |
| |
| static FloatList | emptyFloatList () |
| |
| static IntList | emptyIntList () |
| |
| static LongList | emptyLongList () |
| |
| static BooleanList | mutableCopy (BooleanList list) |
| |
| static DoubleList | mutableCopy (DoubleList list) |
| |
| static FloatList | mutableCopy (FloatList list) |
| |
| static IntList | mutableCopy (IntList list) |
| |
| static LongList | mutableCopy (LongList list) |
| |
| static BooleanList | newBooleanList () |
| |
| static DoubleList | newDoubleList () |
| |
| static FloatList | newFloatList () |
| |
| static IntList | newIntList () |
| |
| static LongList | newLongList () |
| |
| 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 | 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, InputStream input) throws IOException |
| |
| static< M extends Message > M | parseWithIOException (Parser< M > parser, InputStream input, ExtensionRegistryLite extensions) throws IOException |
| |
| static< V > void | serializeBooleanMapTo (CodedOutputStream out, MapField< Boolean, V > field, MapEntry< Boolean, V > defaultEntry, int fieldNumber) throws IOException |
| |
| static< V > void | serializeIntegerMapTo (CodedOutputStream out, MapField< Integer, V > field, MapEntry< Integer, V > defaultEntry, int fieldNumber) throws IOException |
| |
| static< V > void | serializeLongMapTo (CodedOutputStream out, MapField< Long, V > field, MapEntry< Long, V > defaultEntry, int fieldNumber) throws IOException |
| |
| static< V > void | serializeStringMapTo (CodedOutputStream out, MapField< String, V > field, MapEntry< String, V > defaultEntry, int fieldNumber) 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 int | hashBoolean (boolean b) |
| |
| static int | hashEnum (EnumLite e) |
| |
| static int | hashEnumList (List<? extends EnumLite > list) |
| |
| static int | hashFields (int hash, Map< FieldDescriptor, Object > map) |
| |
| static int | hashLong (long n) |
| |
| static< T > void | addAll (final Iterable< T > values, final Collection<? super T > list) |
| |
| static< T > void | addAll (final Iterable< T > values, final List<? super T > list) |
| |
| static void | checkByteStringIsUtf8 (ByteString byteString) throws IllegalArgumentException |
| |
| UnknownFieldSet | unknownFields |
| |
| int | memoizedSize = -1 |
| |
| int | memoizedHashCode = 0 |
| |
| 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 971 of file GeneratedMessageV3.java.