From e30c95c988fb5f1548a7282ed974384689e019cd Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Fri, 2 Aug 2024 20:14:30 -0700 Subject: [PATCH 01/14] add test structure (probably not the best way) --- packages/pigeon/CHANGELOG.md | 6 + .../java/io/flutter/plugins/Messages.java | 43 +- .../flutter/pigeon_example_app/Messages.g.kt | 12 +- .../example/app/ios/Runner/Messages.g.swift | 15 +- .../example/app/lib/src/messages.g.dart | 12 +- .../pigeon/example/app/linux/messages.g.cc | 58 +- .../example/app/macos/Runner/messages.g.m | 16 +- .../example/app/windows/runner/messages.g.cpp | 19 +- packages/pigeon/lib/cpp_generator.dart | 193 ++++- packages/pigeon/lib/dart_generator.dart | 126 +++- packages/pigeon/lib/generator_tools.dart | 57 +- packages/pigeon/lib/java_generator.dart | 259 +++++-- packages/pigeon/lib/kotlin_generator.dart | 196 +++-- packages/pigeon/lib/objc_generator.dart | 236 ++++-- packages/pigeon/lib/pigeon_lib.dart | 34 +- packages/pigeon/lib/swift_generator.dart | 200 +++-- packages/pigeon/pigeons/core_tests.dart | 10 + .../CoreTests.java | 498 +++++-------- .../ios/Classes/CoreTests.gen.m | 38 +- .../macos/Classes/CoreTests.gen.m | 38 +- .../lib/integration_tests.dart | 692 +++++++++--------- .../lib/src/generated/core_tests.gen.dart | 30 +- .../lib/src/generated/enum.gen.dart | 12 +- .../lib/src/generated/message.gen.dart | 22 +- .../src/generated/non_null_fields.gen.dart | 22 +- .../lib/src/generated/null_fields.gen.dart | 18 +- .../test/test_message.gen.dart | 22 +- .../com/example/test_plugin/CoreTests.gen.kt | 31 +- .../ios/Classes/CoreTests.gen.swift | 39 +- .../linux/pigeon/core_tests.gen.cc | 156 ++-- .../macos/Classes/CoreTests.gen.swift | 39 +- .../windows/pigeon/core_tests.gen.cpp | 53 +- packages/pigeon/pubspec.yaml | 2 +- packages/pigeon/test/java_generator_test.dart | 10 +- packages/pigeon/test/objc_generator_test.dart | 2 +- packages/pigeon/tool/generate.dart | 13 +- packages/pigeon/tool/run_tests.dart | 2 +- packages/pigeon/tool/shared/generation.dart | 69 +- packages/pigeon/tool/shared/test_runner.dart | 68 +- packages/pigeon/tool/test.dart | 6 + 40 files changed, 2048 insertions(+), 1326 deletions(-) diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index f501b5cd23f..4e4a15089a6 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -1,3 +1,9 @@ +## 21.2.0 + +* Removes restriction on number of custom types. +* [java] Fixes bug with multiple enums. +* [java] Removes `Object` from generics. + ## 21.1.0 * Adds GObject (Linux) support. diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index 8b07206873a..be349a490d8 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -46,7 +46,7 @@ public FlutterError(@NonNull String code, @Nullable String message, @Nullable Ob @NonNull protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); + ArrayList errorList = new ArrayList<>(3); if (exception instanceof FlutterError) { FlutterError error = (FlutterError) exception; errorList.add(error.code); @@ -77,7 +77,7 @@ public enum Code { final int index; - private Code(final int index) { + Code(final int index) { this.index = index; } } @@ -199,7 +199,7 @@ public static final class Builder { @NonNull ArrayList toList() { - ArrayList toListResult = new ArrayList(4); + ArrayList toListResult = new ArrayList<>(4); toListResult.add(name); toListResult.add(description); toListResult.add(code); @@ -230,10 +230,12 @@ private PigeonCodec() {} protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { switch (type) { case (byte) 129: - return MessageData.fromList((ArrayList) readValue(buffer)); + { + Object value = readValue(buffer); + return value == null ? null : Code.values()[(int) value]; + } case (byte) 130: - Object value = readValue(buffer); - return value == null ? null : Code.values()[(int) value]; + return MessageData.fromList((ArrayList) readValue(buffer)); default: return super.readValueOfType(type, buffer); } @@ -241,12 +243,12 @@ protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { @Override protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { - if (value instanceof MessageData) { + if (value instanceof Code) { stream.write(129); - writeValue(stream, ((MessageData) value).toList()); - } else if (value instanceof Code) { - stream.write(130); writeValue(stream, value == null ? null : ((Code) value).index); + } else if (value instanceof MessageData) { + stream.write(130); + writeValue(stream, ((MessageData) value).toList()); } else { super.writeValue(stream, value); } @@ -312,13 +314,12 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); try { String output = api.getHostLanguage(); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -336,7 +337,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number aArg = (Number) args.get(0); Number bArg = (Number) args.get(1); @@ -347,8 +348,7 @@ static void setUp( (bArg == null) ? null : bArg.longValue()); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -366,7 +366,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; MessageData messageArg = (MessageData) args.get(0); Result resultCallback = @@ -405,8 +405,7 @@ public MessageFlutterApi( this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** Public interface for sending reply. */ - /** The codec used by MessageFlutterApi. */ + /** Public interface for sending reply. The codec used by MessageFlutterApi. */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } @@ -418,16 +417,14 @@ public void flutterMethod(@Nullable String aStringArg, @NonNull Result r BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aStringArg)), + new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index 6542e190e78..9cccd953795 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -89,10 +89,10 @@ private object MessagesPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as? List)?.let { MessageData.fromList(it) } + return (readValue(buffer) as Int?)?.let { Code.ofRaw(it) } } 130.toByte() -> { - return (readValue(buffer) as Int?)?.let { Code.ofRaw(it) } + return (readValue(buffer) as? List)?.let { MessageData.fromList(it) } } else -> super.readValueOfType(type, buffer) } @@ -100,13 +100,13 @@ private object MessagesPigeonCodec : StandardMessageCodec() { override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { - is MessageData -> { + is Code -> { stream.write(129) - writeValue(stream, value.toList()) + writeValue(stream, value.raw) } - is Code -> { + is MessageData -> { stream.write(130) - writeValue(stream, value.raw) + writeValue(stream, value.toList()) } else -> super.writeValue(stream, value) } diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index 3d5362cc4f1..ef27b50cb39 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -108,18 +108,21 @@ struct MessageData { ] } } + private class MessagesPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - return MessageData.fromList(self.readValue() as! [Any?]) - case 130: var enumResult: Code? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { enumResult = Code(rawValue: enumResultAsInt) } return enumResult + case 130: + return MessageData.fromList(self.readValue() as! [Any?]) + case 255: + return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } @@ -128,12 +131,12 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { private class MessagesPigeonCodecWriter: FlutterStandardWriter { override func writeValue(_ value: Any) { - if let value = value as? MessageData { + if let value = value as? Code { super.writeByte(129) - super.writeValue(value.toList()) - } else if let value = value as? Code { - super.writeByte(130) super.writeValue(value.rawValue) + } else if let value = value as? MessageData { + super.writeByte(130) + super.writeValue(value.toList()) } else { super.writeValue(value) } diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index d8d4fde551c..3694211d472 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -74,12 +74,12 @@ class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is MessageData) { + if (value is Code) { buffer.putUint8(129); - writeValue(buffer, value.encode()); - } else if (value is Code) { - buffer.putUint8(130); writeValue(buffer, value.index); + } else if (value is MessageData) { + buffer.putUint8(130); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -89,10 +89,10 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: - return MessageData.decode(readValue(buffer)!); - case 130: final int? value = readValue(buffer) as int?; return value == null ? null : Code.values[value]; + case 130: + return MessageData.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/example/app/linux/messages.g.cc b/packages/pigeon/example/app/linux/messages.g.cc index 2d9ede7877d..a9ee2105989 100644 --- a/packages/pigeon/example/app/linux/messages.g.cc +++ b/packages/pigeon/example/app/linux/messages.g.cc @@ -91,7 +91,7 @@ static FlValue* pigeon_example_package_message_data_to_list( ? fl_value_new_string(self->description) : fl_value_new_null()); fl_value_append_take(values, - fl_value_new_custom(130, fl_value_new_int(self->code), + fl_value_new_custom(129, fl_value_new_int(self->code), (GDestroyNotify)fl_value_unref)); fl_value_append_take(values, fl_value_ref(self->data)); return values; @@ -132,23 +132,23 @@ G_DEFINE_TYPE(PigeonExamplePackageMessageCodec, fl_standard_message_codec_get_type()) static gboolean -pigeon_example_package_message_codec_write_pigeon_example_package_message_data( - FlStandardMessageCodec* codec, GByteArray* buffer, - PigeonExamplePackageMessageData* value, GError** error) { +pigeon_example_package_message_codec_write_pigeon_example_package_code( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { uint8_t type = 129; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - pigeon_example_package_message_data_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); + return fl_standard_message_codec_write_value(codec, buffer, value, error); } static gboolean -pigeon_example_package_message_codec_write_pigeon_example_package_code( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { +pigeon_example_package_message_codec_write_pigeon_example_package_message_data( + FlStandardMessageCodec* codec, GByteArray* buffer, + PigeonExamplePackageMessageData* value, GError** error) { uint8_t type = 130; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); + g_autoptr(FlValue) values = + pigeon_example_package_message_data_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); } static gboolean pigeon_example_package_message_codec_write_value( @@ -157,17 +157,17 @@ static gboolean pigeon_example_package_message_codec_write_value( if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { switch (fl_value_get_custom_type(value)) { case 129: - return pigeon_example_package_message_codec_write_pigeon_example_package_message_data( - codec, buffer, - PIGEON_EXAMPLE_PACKAGE_MESSAGE_DATA( - fl_value_get_custom_value_object(value)), - error); - case 130: return pigeon_example_package_message_codec_write_pigeon_example_package_code( codec, buffer, reinterpret_cast( const_cast(fl_value_get_custom_value(value))), error); + case 130: + return pigeon_example_package_message_codec_write_pigeon_example_package_message_data( + codec, buffer, + PIGEON_EXAMPLE_PACKAGE_MESSAGE_DATA( + fl_value_get_custom_value_object(value)), + error); } } @@ -176,6 +176,15 @@ static gboolean pigeon_example_package_message_codec_write_value( ->write_value(codec, buffer, value, error); } +static FlValue* +pigeon_example_package_message_codec_read_pigeon_example_package_code( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 129, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + static FlValue* pigeon_example_package_message_codec_read_pigeon_example_package_message_data( FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, @@ -194,16 +203,7 @@ pigeon_example_package_message_codec_read_pigeon_example_package_message_data( return nullptr; } - return fl_value_new_custom_object(129, G_OBJECT(value)); -} - -static FlValue* -pigeon_example_package_message_codec_read_pigeon_example_package_code( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 130, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); + return fl_value_new_custom_object(130, G_OBJECT(value)); } static FlValue* pigeon_example_package_message_codec_read_value_of_type( @@ -211,10 +211,10 @@ static FlValue* pigeon_example_package_message_codec_read_value_of_type( GError** error) { switch (type) { case 129: - return pigeon_example_package_message_codec_read_pigeon_example_package_message_data( + return pigeon_example_package_message_codec_read_pigeon_example_package_code( codec, buffer, offset, error); case 130: - return pigeon_example_package_message_codec_read_pigeon_example_package_code( + return pigeon_example_package_message_codec_read_pigeon_example_package_message_data( codec, buffer, offset, error); default: return FL_STANDARD_MESSAGE_CODEC_CLASS( diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index 1471345b880..382db2a62dd 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -94,13 +94,13 @@ @interface PGNMessagesPigeonCodecReader : FlutterStandardReader @implementation PGNMessagesPigeonCodecReader - (nullable id)readValueOfType:(UInt8)type { switch (type) { - case 129: - return [PGNMessageData fromList:[self readValue]]; - case 130: { + case 129: { NSNumber *enumAsNumber = [self readValue]; return enumAsNumber == nil ? nil : [[PGNCodeBox alloc] initWithValue:[enumAsNumber integerValue]]; } + case 130: + return [PGNMessageData fromList:[self readValue]]; default: return [super readValueOfType:type]; } @@ -111,13 +111,13 @@ @interface PGNMessagesPigeonCodecWriter : FlutterStandardWriter @end @implementation PGNMessagesPigeonCodecWriter - (void)writeValue:(id)value { - if ([value isKindOfClass:[PGNMessageData class]]) { - [self writeByte:129]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[PGNCodeBox class]]) { + if ([value isKindOfClass:[PGNCodeBox class]]) { PGNCodeBox *box = (PGNCodeBox *)value; - [self writeByte:130]; + [self writeByte:129]; [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[PGNMessageData class]]) { + [self writeByte:130]; + [self writeValue:[value toList]]; } else { [super writeValue:value]; } diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index 7a43ec397a3..d18434a97f2 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -107,10 +107,7 @@ PigeonCodecSerializer::PigeonCodecSerializer() {} EncodableValue PigeonCodecSerializer::ReadValueOfType( uint8_t type, flutter::ByteStreamReader* stream) const { switch (type) { - case 129: - return CustomEncodableValue(MessageData::FromEncodableList( - std::get(ReadValue(stream)))); - case 130: { + case 129: { const auto& encodable_enum_arg = ReadValue(stream); const int64_t enum_arg_value = encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); @@ -118,6 +115,10 @@ EncodableValue PigeonCodecSerializer::ReadValueOfType( ? EncodableValue() : CustomEncodableValue(static_cast(enum_arg_value)); } + case 130: { + return CustomEncodableValue(MessageData::FromEncodableList( + std::get(ReadValue(stream)))); + } default: return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); } @@ -127,18 +128,18 @@ void PigeonCodecSerializer::WriteValue( const EncodableValue& value, flutter::ByteStreamWriter* stream) const { if (const CustomEncodableValue* custom_value = std::get_if(&value)) { - if (custom_value->type() == typeid(MessageData)) { + if (custom_value->type() == typeid(Code)) { stream->WriteByte(129); WriteValue( - EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), + EncodableValue(static_cast(std::any_cast(*custom_value))), stream); return; } - if (custom_value->type() == typeid(Code)) { + if (custom_value->type() == typeid(MessageData)) { stream->WriteByte(130); WriteValue( - EncodableValue(static_cast(std::any_cast(*custom_value))), + EncodableValue( + std::any_cast(*custom_value).ToEncodableList()), stream); return; } diff --git a/packages/pigeon/lib/cpp_generator.dart b/packages/pigeon/lib/cpp_generator.dart index b8d1fbb5d23..b6db742b5ed 100644 --- a/packages/pigeon/lib/cpp_generator.dart +++ b/packages/pigeon/lib/cpp_generator.dart @@ -23,6 +23,24 @@ const String _standardCodecSerializer = 'flutter::StandardCodecSerializer'; /// The name of the codec serializer. const String _codecSerializerName = 'PigeonCodecSerializer'; +const String _overflowClassName = '${varNamePrefix}CodecOverflow'; + +final NamedType _overflowType = NamedType( + name: 'type', + type: const TypeDeclaration(baseName: 'int', isNullable: false)); +final NamedType _overflowObject = NamedType( + name: 'wrapped', + type: const TypeDeclaration(baseName: 'Object', isNullable: false)); +final List _overflowFields = [ + _overflowType, + _overflowObject, +]; +final Class _overflowClass = + Class(name: _overflowClassName, fields: _overflowFields); +final EnumeratedType _enumeratedOverflow = EnumeratedType( + _overflowClassName, 255, CustomTypes.customClass, + associatedClass: _overflowClass); + /// Options that control how C++ code will be generated. class CppOptions { /// Creates a [CppOptions] object @@ -216,6 +234,32 @@ class CppHeaderGenerator extends StructuredGenerator { } } + @override + void writeDataClasses( + CppOptions generatorOptions, + Root root, + Indent indent, { + required String dartPackageName, + }) { + indent.newln(); + super.writeDataClasses( + generatorOptions, + root, + indent, + dartPackageName: dartPackageName, + ); + if (getEnumeratedTypes(root).length >= totalCustomCodecKeysAllowed) { + writeDataClass( + generatorOptions, + root, + indent, + _overflowClass, + dartPackageName: dartPackageName, + overflow: true, + ); + } + } + @override void writeDataClass( CppOptions generatorOptions, @@ -223,6 +267,7 @@ class CppHeaderGenerator extends StructuredGenerator { Indent indent, Class classDefinition, { required String dartPackageName, + bool overflow = false, }) { // When generating for a Pigeon unit test, add a test fixture friend class to // allow unit testing private methods, since testing serialization via public @@ -319,11 +364,21 @@ class CppHeaderGenerator extends StructuredGenerator { _writeAccessBlock(indent, _ClassAccess.private, () { _writeFunctionDeclaration(indent, 'FromEncodableList', - returnType: classDefinition.name, + returnType: + overflow ? 'flutter::EncodableValue' : classDefinition.name, parameters: ['const flutter::EncodableList& list'], isStatic: true); _writeFunctionDeclaration(indent, 'ToEncodableList', returnType: 'flutter::EncodableList', isConst: true); + if (overflow) { + _writeFunctionDeclaration(indent, 'Unwrap', + returnType: 'flutter::EncodableValue'); + } + if (!overflow && + root.classes.length + root.enums.length >= + totalCustomCodecKeysAllowed) { + indent.writeln('friend class $_overflowClassName;'); + } for (final Class friend in root.classes) { if (friend != classDefinition && friend.fields.any((NamedType element) => @@ -360,6 +415,7 @@ class CppHeaderGenerator extends StructuredGenerator { Indent indent, { required String dartPackageName, }) { + indent.newln(); indent.write( 'class $_codecSerializerName : public $_standardCodecSerializer '); indent.addScoped('{', '};', () { @@ -875,6 +931,74 @@ class CppSourceGenerator extends StructuredGenerator { }); } + void _writeCodecOverflowUtilities( + CppOptions generatorOptions, + Root root, + Indent indent, + List types, { + required String dartPackageName, + }) { + _writeClassConstructor(root, indent, _overflowClass, _overflowFields); + // Getters and setters. + for (final NamedType field in _overflowFields) { + _writeCppSourceClassField( + generatorOptions, root, indent, _overflowClass, field); + } + // Serialization. + writeClassEncode( + generatorOptions, + root, + indent, + _overflowClass, + dartPackageName: dartPackageName, + ); + + indent.format(''' +EncodableValue __pigeon_CodecOverflow::FromEncodableList( + const EncodableList& list) { + return __pigeon_CodecOverflow(list[0].LongValue(), + list[1].IsNull() ? EncodableValue() : list[1]) + .Unwrap(); +}'''); + + indent.writeScoped('EncodableValue __pigeon_CodecOverflow::Unwrap() {', '}', + () { + indent.writeScoped('if (wrapped_.IsNull()) {', '}', () { + indent.writeln('return EncodableValue();'); + }); + indent.writeScoped('switch(type_) {', '}', () { + for (final EnumeratedType type in types) { + if (type.enumeration >= maximumCodecFieldKey) { + indent.write('case ${type.enumeration - maximumCodecFieldKey}: '); + _writeCodecDecode(indent, type, 'wrapped_'); + } + } + }); + indent.writeln('return EncodableValue();'); + }); + } + + void _writeCodecDecode( + Indent indent, EnumeratedType customType, String value) { + indent.addScoped('{', '}', () { + if (customType.type == CustomTypes.customClass) { + if (customType.enumeration == maximumCodecFieldKey) { + indent.writeln( + 'return ${customType.name}::FromEncodableList(std::get($value));'); + } else { + indent.writeln( + 'return CustomEncodableValue(${customType.name}::FromEncodableList(std::get($value)));'); + } + } else if (customType.type == CustomTypes.customEnum) { + indent.writeln('const auto& encodable_enum_arg = $value;'); + indent.writeln( + 'const int64_t enum_arg_value = encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue();'); + indent.writeln( + 'return encodable_enum_arg.IsNull() ? EncodableValue() : CustomEncodableValue(static_cast<${customType.name}>(enum_arg_value));'); + } + }); + } + @override void writeGeneralCodec( CppOptions generatorOptions, @@ -882,8 +1006,14 @@ class CppSourceGenerator extends StructuredGenerator { Indent indent, { required String dartPackageName, }) { - final Iterable customTypes = getEnumeratedTypes(root); + final List enumeratedTypes = + getEnumeratedTypes(root).toList(); indent.newln(); + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + _writeCodecOverflowUtilities( + generatorOptions, root, indent, enumeratedTypes, + dartPackageName: dartPackageName); + } _writeFunctionDefinition(indent, _codecSerializerName, scope: _codecSerializerName); _writeFunctionDefinition(indent, 'ReadValueOfType', @@ -894,33 +1024,27 @@ class CppSourceGenerator extends StructuredGenerator { 'flutter::ByteStreamReader* stream', ], isConst: true, body: () { - if (customTypes.isNotEmpty) { + if (enumeratedTypes.isNotEmpty) { indent.writeln('switch (type) {'); indent.inc(); - for (final EnumeratedType customType in customTypes) { - indent.writeln('case ${customType.enumeration}:'); - indent.nest(1, () { - if (customType.type == CustomTypes.customClass) { - indent.writeln( - 'return CustomEncodableValue(${customType.name}::FromEncodableList(std::get(ReadValue(stream))));'); - } else if (customType.type == CustomTypes.customEnum) { - indent.writeScoped('{', '}', () { - indent.writeln( - 'const auto& encodable_enum_arg = ReadValue(stream);'); - indent.writeln( - 'const int64_t enum_arg_value = encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue();'); - indent.writeln( - 'return encodable_enum_arg.IsNull() ? EncodableValue() : CustomEncodableValue(static_cast<${customType.name}>(enum_arg_value));'); - }); - } - }); + for (final EnumeratedType customType in enumeratedTypes) { + if (customType.enumeration < maximumCodecFieldKey) { + indent.write('case ${customType.enumeration}: '); + indent.nest(1, () { + _writeCodecDecode(indent, customType, 'ReadValue(stream)'); + }); + } + } + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + indent.write('case 255:'); + _writeCodecDecode(indent, _enumeratedOverflow, 'ReadValue(stream)'); } indent.writeln('default:'); indent.inc(); } indent.writeln( 'return $_standardCodecSerializer::ReadValueOfType(type, stream);'); - if (customTypes.isNotEmpty) { + if (enumeratedTypes.isNotEmpty) { indent.dec(); indent.writeln('}'); indent.dec(); @@ -934,22 +1058,33 @@ class CppSourceGenerator extends StructuredGenerator { 'flutter::ByteStreamWriter* stream', ], isConst: true, body: () { - if (customTypes.isNotEmpty) { + if (enumeratedTypes.isNotEmpty) { indent.write( 'if (const CustomEncodableValue* custom_value = std::get_if(&value)) '); indent.addScoped('{', '}', () { - for (final EnumeratedType customType in customTypes) { + for (final EnumeratedType customType in enumeratedTypes) { + final String encodeString = customType.type == + CustomTypes.customClass + ? 'std::any_cast<${customType.name}>(*custom_value).ToEncodableList()' + : 'static_cast(std::any_cast<${customType.name}>(*custom_value))'; + final String valueString = customType.enumeration < + maximumCodecFieldKey + ? encodeString + : 'std::any_cast<$_overflowClassName>(wrap).ToEncodableList()'; + final int enumeration = + customType.enumeration < maximumCodecFieldKey + ? customType.enumeration + : maximumCodecFieldKey; indent.write( 'if (custom_value->type() == typeid(${customType.name})) '); indent.addScoped('{', '}', () { - indent.writeln('stream->WriteByte(${customType.enumeration});'); - if (customType.type == CustomTypes.customClass) { - indent.writeln( - 'WriteValue(EncodableValue(std::any_cast<${customType.name}>(*custom_value).ToEncodableList()), stream);'); - } else if (customType.type == CustomTypes.customEnum) { + indent.writeln('stream->WriteByte($enumeration);'); + if (enumeration == maximumCodecFieldKey) { indent.writeln( - 'WriteValue(EncodableValue(static_cast(std::any_cast<${customType.name}>(*custom_value))), stream);'); + 'const auto& wrap = $_overflowClassName(${customType.enumeration - maximumCodecFieldKey}, $encodeString);'); } + indent + .writeln('WriteValue(EncodableValue($valueString), stream);'); indent.writeln('return;'); }); } diff --git a/packages/pigeon/lib/dart_generator.dart b/packages/pigeon/lib/dart_generator.dart index b5c0e42d365..ce9076da53a 100644 --- a/packages/pigeon/lib/dart_generator.dart +++ b/packages/pigeon/lib/dart_generator.dart @@ -283,8 +283,58 @@ class DartGenerator extends StructuredGenerator { Indent indent, { required String dartPackageName, }) { + void writeEncodeLogic(EnumeratedType customType) { + indent.writeScoped('if (value is ${customType.name}) {', '} else ', () { + if (customType.enumeration < maximumCodecFieldKey) { + indent.writeln('buffer.putUint8(${customType.enumeration});'); + if (customType.type == CustomTypes.customClass) { + indent.writeln('writeValue(buffer, value.encode());'); + } else if (customType.type == CustomTypes.customEnum) { + indent.writeln('writeValue(buffer, value.index);'); + } + } else { + final String encodeString = customType.type == CustomTypes.customClass + ? '.encode()' + : '.index'; + indent.writeln( + 'final ${varNamePrefix}CodecOverflow wrap = ${varNamePrefix}CodecOverflow(type: ${customType.enumeration - maximumCodecFieldKey}, wrapped: value$encodeString);'); + indent.writeln('buffer.putUint8($maximumCodecFieldKey);'); + indent.writeln('writeValue(buffer, wrap.encode());'); + } + }, addTrailingNewline: false); + } + + void writeDecodeLogic(EnumeratedType customType) { + indent.writeln('case ${customType.enumeration}: '); + indent.nest(1, () { + if (customType.type == CustomTypes.customClass) { + if (customType.enumeration == maximumCodecFieldKey) { + indent.writeln( + 'final ${customType.name} wrapper = ${customType.name}.decode(readValue(buffer)!);'); + indent.writeln('return wrapper.unwrap();'); + } else { + indent.writeln( + 'return ${customType.name}.decode(readValue(buffer)!);'); + } + } else if (customType.type == CustomTypes.customEnum) { + indent.writeln('final int? value = readValue(buffer) as int?;'); + indent.writeln( + 'return value == null ? null : ${customType.name}.values[value];'); + } + }); + } + + final EnumeratedType overflowClass = EnumeratedType( + '${varNamePrefix}CodecOverflow', + maximumCodecFieldKey, + CustomTypes.customClass); + indent.newln(); - final Iterable enumeratedTypes = getEnumeratedTypes(root); + final List enumeratedTypes = + getEnumeratedTypes(root).toList(); + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + _writeCodecOverflowUtilities(indent, enumeratedTypes); + } indent.newln(); indent.write('class $_pigeonCodec extends StandardMessageCodec'); indent.addScoped(' {', '}', () { @@ -295,15 +345,7 @@ class DartGenerator extends StructuredGenerator { indent.addScoped('{', '}', () { enumerate(enumeratedTypes, (int index, final EnumeratedType customType) { - indent.writeScoped('if (value is ${customType.name}) {', '} else ', - () { - indent.writeln('buffer.putUint8(${customType.enumeration});'); - if (customType.type == CustomTypes.customClass) { - indent.writeln('writeValue(buffer, value.encode());'); - } else if (customType.type == CustomTypes.customEnum) { - indent.writeln('writeValue(buffer, value.index);'); - } - }, addTrailingNewline: false); + writeEncodeLogic(customType); }); indent.addScoped('{', '}', () { indent.writeln('super.writeValue(buffer, value);'); @@ -316,18 +358,12 @@ class DartGenerator extends StructuredGenerator { indent.write('switch (type) '); indent.addScoped('{', '}', () { for (final EnumeratedType customType in enumeratedTypes) { - indent.writeln('case ${customType.enumeration}: '); - indent.nest(1, () { - if (customType.type == CustomTypes.customClass) { - indent.writeln( - 'return ${customType.name}.decode(readValue(buffer)!);'); - } else if (customType.type == CustomTypes.customEnum) { - indent - .writeln('final int? value = readValue(buffer) as int?;'); - indent.writeln( - 'return value == null ? null : ${customType.name}.values[value];'); - } - }); + if (customType.enumeration < maximumCodecFieldKey) { + writeDecodeLogic(customType); + } + } + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + writeDecodeLogic(overflowClass); } indent.writeln('default:'); indent.nest(1, () { @@ -955,6 +991,52 @@ PlatformException _createConnectionError(String channelName) { }'''); } + void _writeCodecOverflowUtilities(Indent indent, List types) { + indent.newln(); + indent.writeln('// ignore: camel_case_types'); + indent.writeScoped('class ${varNamePrefix}CodecOverflow {', '}', () { + indent.format(''' +${varNamePrefix}CodecOverflow({required this.type, required this.wrapped}); + +int type; +Object? wrapped; + +Object encode() { + return [type, wrapped]; +} + +static ${varNamePrefix}CodecOverflow decode(Object result) { + result as List; + return ${varNamePrefix}CodecOverflow( + type: result[0]! as int, + wrapped: result[1], + ); +} +'''); + indent.writeScoped('Object? unwrap() {', '}', () { + indent.format(''' +if (wrapped == null) { + return null; +} +'''); + indent.writeScoped('switch (type) {', '}', () { + for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { + indent.writeScoped('case ${i - totalCustomCodecKeysAllowed}:', '', + () { + if (types[i].type == CustomTypes.customClass) { + indent.writeln('return ${types[i].name}.decode(wrapped!);'); + } else if (types[i].type == CustomTypes.customEnum) { + indent.writeln( + 'return ${types[i].name}.values[wrapped! as int];'); + } + }); + } + }); + indent.writeln('return null;'); + }); + }); + } + void _writeHostMethod( Indent indent, { required String name, diff --git a/packages/pigeon/lib/generator_tools.dart b/packages/pigeon/lib/generator_tools.dart index 8771001ca6a..54e3288af4c 100644 --- a/packages/pigeon/lib/generator_tools.dart +++ b/packages/pigeon/lib/generator_tools.dart @@ -13,7 +13,7 @@ import 'ast.dart'; /// The current version of pigeon. /// /// This must match the version in pubspec.yaml. -const String pigeonVersion = '21.1.0'; +const String pigeonVersion = '21.2.0'; /// Prefix for all local variables in methods. /// @@ -102,8 +102,6 @@ class Indent { bool addTrailingNewline = true, int nestCount = 1, }) { - assert(begin != '' || end != '', - 'Use nest for indentation without any decoration'); if (begin != null) { _sink.write(begin + newline); } @@ -123,8 +121,6 @@ class Indent { Function func, { bool addTrailingNewline = true, }) { - assert(begin != '' || end != '', - 'Use nest for indentation without any decoration'); addScoped(str() + (begin ?? ''), end, func, addTrailingNewline: addTrailingNewline); } @@ -418,9 +414,16 @@ const List validTypes = [ 'Object', ]; -/// Custom codecs' custom types are enumerated from 255 down to this number to +/// Custom codecs' custom types are enumerations begin at this number to /// avoid collisions with the StandardMessageCodec. -const int _minimumCodecFieldKey = 129; +const int minimumCodecFieldKey = 129; + +/// The maximum codec enumeration allowed. +const int maximumCodecFieldKey = 255; + +/// The total number of keys allowed in the custom codec. +const int totalCustomCodecKeysAllowed = + maximumCodecFieldKey - minimumCodecFieldKey; Iterable _getTypeArguments(TypeDeclaration type) sync* { for (final TypeDeclaration typeArg in type.typeArguments) { @@ -516,31 +519,33 @@ enum CustomTypes { /// Return the enumerated types that must exist in the codec /// where the enumeration should be the key used in the buffer. Iterable getEnumeratedTypes(Root root) sync* { - const int maxCustomClassesPerApi = 255 - _minimumCodecFieldKey; - if (root.classes.length + root.enums.length > maxCustomClassesPerApi) { - throw Exception( - "Pigeon doesn't currently support more than $maxCustomClassesPerApi referenced custom classes per file."); - } int index = 0; - for (final Class customClass in root.classes) { - yield EnumeratedType( - customClass.name, - index + _minimumCodecFieldKey, - CustomTypes.customClass, - associatedClass: customClass, - ); - index += 1; - } for (final Enum customEnum in root.enums) { yield EnumeratedType( customEnum.name, - index + _minimumCodecFieldKey, + index + minimumCodecFieldKey, CustomTypes.customEnum, associatedEnum: customEnum, ); index += 1; } + + for (final Class customClass in root.classes) { + yield EnumeratedType( + customClass.name, + index + minimumCodecFieldKey, + CustomTypes.customClass, + associatedClass: customClass, + ); + index += 1; + } +} + +/// Checks if [root] contains enough custom types to require overflow codec tools. +bool customTypeOverflowCheck(Root root) { + return root.classes.length + root.enums.length > + maximumCodecFieldKey - minimumCodecFieldKey; } /// Describes how to format a document comment. @@ -708,3 +713,11 @@ String toUpperCamelCase(String text) { : word.substring(0, 1).toUpperCase() + word.substring(1); }).join(); } + +/// Converts string to SCREAMING_SNAKE_CASE. +String toScreamingSnakeCase(String string) { + return string + .replaceAllMapped( + RegExp(r'(?<=[a-z])[A-Z]'), (Match m) => '_${m.group(0)}') + .toUpperCase(); +} diff --git a/packages/pigeon/lib/java_generator.dart b/packages/pigeon/lib/java_generator.dart index 329bf37dab0..15db7fb513b 100644 --- a/packages/pigeon/lib/java_generator.dart +++ b/packages/pigeon/lib/java_generator.dart @@ -28,6 +28,10 @@ const DocumentCommentSpecification _docCommentSpec = /// The standard codec for Flutter, used for any non custom codecs and extended for custom codecs. const String _codecName = 'PigeonCodec'; +const String _overflowClassName = '${varNamePrefix}CodecOverflow'; + +const String _forceInt = '${varNamePrefix}forceInt'; + /// Options that control how Java code will be generated. class JavaOptions { /// Creates a [JavaOptions] object @@ -195,7 +199,7 @@ class JavaGenerator extends StructuredGenerator { // SyntheticAccessor warnings in the serialization code. indent.writeln('final int index;'); indent.newln(); - indent.write('private ${anEnum.name}(final int index) '); + indent.write('${anEnum.name}(final int index) '); indent.addScoped('{', '}', () { indent.writeln('this.index = index;'); }); @@ -218,14 +222,7 @@ class JavaGenerator extends StructuredGenerator { indent, classDefinition.documentationComments, _docCommentSpec, generatorComments: generatedMessages); - indent.write('public static final class ${classDefinition.name} '); - indent.addScoped('{', '}', () { - for (final NamedType field - in getFieldsInSerializationOrder(classDefinition)) { - _writeClassField(generatorOptions, root, indent, field); - indent.newln(); - } - + _writeDataClassSignature(generatorOptions, indent, classDefinition, () { if (getFieldsInSerializationOrder(classDefinition) .map((NamedType e) => !e.type.isNullable) .any((bool e) => e)) { @@ -255,26 +252,34 @@ class JavaGenerator extends StructuredGenerator { } void _writeClassField( - JavaOptions generatorOptions, Root root, Indent indent, NamedType field) { + JavaOptions generatorOptions, + Indent indent, + NamedType field, { + bool isPrimitive = false, + }) { final HostDatatype hostDatatype = getFieldHostDatatype( field, (TypeDeclaration x) => _javaTypeForBuiltinDartType(x)); - final String nullability = field.type.isNullable ? '@Nullable' : '@NonNull'; + final String nullability = isPrimitive + ? '' + : field.type.isNullable + ? '@Nullable ' + : '@NonNull '; addDocumentationComments( indent, field.documentationComments, _docCommentSpec); - indent.writeln( - 'private $nullability ${hostDatatype.datatype} ${field.name};'); + indent + .writeln('private $nullability${hostDatatype.datatype} ${field.name};'); indent.newln(); indent.write( - 'public $nullability ${hostDatatype.datatype} ${_makeGetter(field)}() '); + 'public $nullability${hostDatatype.datatype} ${_makeGetter(field)}() '); indent.addScoped('{', '}', () { indent.writeln('return ${field.name};'); }); indent.newln(); indent.writeScoped( - 'public void ${_makeSetter(field)}($nullability ${hostDatatype.datatype} setterArg) {', + 'public void ${_makeSetter(field)}($nullability${hostDatatype.datatype} setterArg) {', '}', () { - if (!field.type.isNullable) { + if (!field.type.isNullable && !isPrimitive) { indent.writeScoped('if (setterArg == null) {', '}', () { indent.writeln( 'throw new IllegalStateException("Nonnull field \\"${field.name}\\" is null.");'); @@ -284,6 +289,28 @@ class JavaGenerator extends StructuredGenerator { }); } + void _writeDataClassSignature( + JavaOptions generatorOptions, + Indent indent, + Class classDefinition, + void Function() dataClassBody, + ) { + indent.write('public static final class ${classDefinition.name} '); + indent.addScoped('{', '}', () { + for (final NamedType field + in getFieldsInSerializationOrder(classDefinition)) { + _writeClassField( + generatorOptions, + indent, + field, + isPrimitive: field.type.baseName == _forceInt, + ); + indent.newln(); + } + dataClassBody(); + }); + } + void _writeEquality(Indent indent, Class classDefinition) { // Implement equals(...). indent.writeln('@Override'); @@ -394,7 +421,7 @@ class JavaGenerator extends StructuredGenerator { indent.write('ArrayList toList() '); indent.addScoped('{', '}', () { indent.writeln( - 'ArrayList toListResult = new ArrayList(${classDefinition.fields.length});'); + 'ArrayList toListResult = new ArrayList<>(${classDefinition.fields.length});'); for (final NamedType field in getFieldsInSerializationOrder(classDefinition)) { indent.writeln('toListResult.add(${field.name});'); @@ -438,7 +465,66 @@ class JavaGenerator extends StructuredGenerator { Indent indent, { required String dartPackageName, }) { - final Iterable enumeratedTypes = getEnumeratedTypes(root); + final List enumeratedTypes = + getEnumeratedTypes(root).toList(); + + void writeEncodeLogic(EnumeratedType customType) { + final String encodeString = + customType.type == CustomTypes.customClass ? 'toList()' : 'index'; + final String nullCheck = customType.type == CustomTypes.customEnum + ? 'value == null ? null : ' + : ''; + final String valueString = customType.enumeration < maximumCodecFieldKey + ? '$nullCheck((${customType.name}) value).$encodeString' + : 'wrap.toList()'; + final int enumeration = customType.enumeration < maximumCodecFieldKey + ? customType.enumeration + : maximumCodecFieldKey; + + indent.add('if (value instanceof ${customType.name}) '); + indent.addScoped('{', '} else ', () { + if (customType.enumeration >= maximumCodecFieldKey) { + indent + .writeln('$_overflowClassName wrap = new $_overflowClassName();'); + indent.writeln( + 'wrap.setType(${customType.enumeration - maximumCodecFieldKey});'); + indent.writeln( + 'wrap.setWrapped($nullCheck((${customType.name}) value).$encodeString);'); + } + indent.writeln('stream.write($enumeration);'); + indent.writeln('writeValue(stream, $valueString);'); + }, addTrailingNewline: false); + } + + void writeDecodeLogic(EnumeratedType customType) { + indent.write('case (byte) ${customType.enumeration}:'); + if (customType.type == CustomTypes.customClass) { + indent.newln(); + indent.nest(1, () { + indent.writeln( + 'return ${customType.name}.fromList((ArrayList) readValue(buffer));'); + }); + } else if (customType.type == CustomTypes.customEnum) { + indent.addScoped(' {', '}', () { + indent.writeln('Object value = readValue(buffer);'); + indent + .writeln('return ${_intToEnum('value', customType.name, true)};'); + }); + } + } + + final EnumeratedType overflowClass = EnumeratedType( + _overflowClassName, maximumCodecFieldKey, CustomTypes.customClass); + + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + _writeCodecOverflowUtilities( + generatorOptions, + root, + indent, + enumeratedTypes, + dartPackageName: dartPackageName, + ); + } indent.newln(); indent.write( 'private static class $_codecName extends StandardMessageCodec '); @@ -449,23 +535,17 @@ class JavaGenerator extends StructuredGenerator { indent.writeln('private $_codecName() {}'); indent.newln(); indent.writeln('@Override'); - indent.write( - 'protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) '); - indent.addScoped('{', '}', () { - indent.write('switch (type) '); - indent.addScoped('{', '}', () { + indent.writeScoped( + 'protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) {', + '}', () { + indent.writeScoped('switch (type) {', '}', () { for (final EnumeratedType customType in enumeratedTypes) { - indent.writeln('case (byte) ${customType.enumeration}:'); - indent.nest(1, () { - if (customType.type == CustomTypes.customClass) { - indent.writeln( - 'return ${customType.name}.fromList((ArrayList) readValue(buffer));'); - } else if (customType.type == CustomTypes.customEnum) { - indent.writeln('Object value = readValue(buffer);'); - indent.writeln( - 'return ${_intToEnum('value', customType.name, true)};'); - } - }); + if (customType.enumeration < maximumCodecFieldKey) { + writeDecodeLogic(customType); + } + } + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + writeDecodeLogic(overflowClass); } indent.writeln('default:'); indent.nest(1, () { @@ -478,24 +558,8 @@ class JavaGenerator extends StructuredGenerator { indent.write( 'protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) '); indent.addScoped('{', '}', () { - bool firstClass = true; - for (final EnumeratedType customType in enumeratedTypes) { - if (firstClass) { - indent.write(''); - firstClass = false; - } - indent.add('if (value instanceof ${customType.name}) '); - indent.addScoped('{', '} else ', () { - indent.writeln('stream.write(${customType.enumeration});'); - if (customType.type == CustomTypes.customClass) { - indent.writeln( - 'writeValue(stream, ((${customType.name}) value).toList());'); - } else { - indent.writeln( - 'writeValue(stream, value == null ? null : ((${customType.name}) value).index);'); - } - }, addTrailingNewline: false); - } + indent.write(''); + enumeratedTypes.forEach(writeEncodeLogic); indent.addScoped('{', '}', () { indent.writeln('super.writeValue(stream, value);'); }); @@ -504,6 +568,71 @@ class JavaGenerator extends StructuredGenerator { indent.newln(); } + void _writeCodecOverflowUtilities( + JavaOptions generatorOptions, + Root root, + Indent indent, + List types, { + required String dartPackageName, + }) { + final NamedType overflowInteration = NamedType( + name: 'type', + type: const TypeDeclaration(baseName: _forceInt, isNullable: false)); + final NamedType overflowObject = NamedType( + name: 'wrapped', + type: const TypeDeclaration(baseName: 'Object', isNullable: true)); + final List overflowFields = [ + overflowInteration, + overflowObject, + ]; + final Class overflowClass = + Class(name: _overflowClassName, fields: overflowFields); + + _writeDataClassSignature(generatorOptions, indent, overflowClass, () { + writeClassEncode( + generatorOptions, + root, + indent, + overflowClass, + dartPackageName: dartPackageName, + ); + + indent.format(''' +static @Nullable Object fromList(@NonNull ArrayList ${varNamePrefix}list) { + $_overflowClassName wrapper = new $_overflowClassName(); + Object type = ${varNamePrefix}list.get(0); + wrapper.setType((int) type); + Object wrapped = ${varNamePrefix}list.get(1); + wrapper.setWrapped(wrapped); + return wrapper.unwrap(); +} +'''); + + indent.writeScoped('@Nullable Object unwrap() {', '}', () { + indent.format(''' +if (wrapped == null) { + return null; +} + '''); + indent.writeScoped('switch (type) {', '}', () { + for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { + indent.writeln('case (${i - totalCustomCodecKeysAllowed}):'); + indent.nest(1, () { + if (types[i].type == CustomTypes.customClass) { + indent.writeln( + 'return ${types[i].name}.fromList((ArrayList) wrapped);'); + } else if (types[i].type == CustomTypes.customEnum) { + indent.writeln( + 'return ${types[i].name}.values()[(int) wrapped];'); + } + }); + } + }); + indent.writeln('return null;'); + }); + }); + } + /// Writes the code for a flutter [Api], [api]. /// Example: /// public static final class Foo { @@ -550,8 +679,11 @@ class JavaGenerator extends StructuredGenerator { 'this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix;'); }); indent.newln(); - indent.writeln('/** Public interface for sending reply. */ '); - indent.writeln('/** The codec used by ${api.name}. */'); + addDocumentationComments(indent, [], _docCommentSpec, + generatorComments: [ + 'Public interface for sending reply.', + 'The codec used by ${api.name}.' + ]); indent.write('static @NonNull MessageCodec getCodec() '); indent.addScoped('{', '}', () { indent.writeln('return $_codecName.INSTANCE;'); @@ -578,10 +710,10 @@ class JavaGenerator extends StructuredGenerator { indexMap(func.parameters, getSafeArgumentExpression); if (func.parameters.length == 1) { sendArgument = - 'new ArrayList(Collections.singletonList(${enumSafeArgNames.first}))'; + 'new ArrayList<>(Collections.singletonList(${enumSafeArgNames.first}))'; } else { sendArgument = - 'new ArrayList(Arrays.asList(${enumSafeArgNames.join(', ')}))'; + 'new ArrayList<>(Arrays.asList(${enumSafeArgNames.join(', ')}))'; } final String argsSignature = map2(argTypes, argNames, (String x, String y) => '$x $y') @@ -611,7 +743,7 @@ class JavaGenerator extends StructuredGenerator { 'List listReply = (List) channelReply;'); indent.writeScoped('if (listReply.size() > 1) {', '} ', () { indent.writeln( - 'result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), (String) listReply.get(2)));'); + 'result.error(new FlutterError((String) listReply.get(0), (String) listReply.get(1), listReply.get(2)));'); }, addTrailingNewline: false); if (!func.returnType.isNullable && !func.returnType.isVoid) { indent.addScoped('else if (listReply.get(0) == null) {', '} ', @@ -806,8 +938,7 @@ class JavaGenerator extends StructuredGenerator { final String returnType = method.returnType.isVoid ? 'Void' : _javaTypeForDartType(method.returnType); - indent.writeln( - 'ArrayList wrapped = new ArrayList();'); + indent.writeln('ArrayList wrapped = new ArrayList<>();'); final List methodArgument = []; if (method.parameters.isNotEmpty) { indent.writeln( @@ -873,12 +1004,10 @@ $resultType $resultName = }); indent.add(' catch (Throwable exception) '); indent.addScoped('{', '}', () { - indent.writeln( - 'ArrayList wrappedError = wrapError(exception);'); if (method.isAsynchronous) { - indent.writeln('reply.reply(wrappedError);'); + indent.writeln('reply.reply(wrapError(exception));'); } else { - indent.writeln('wrapped = wrappedError;'); + indent.writeln('wrapped = wrapError(exception);'); } }); indent.writeln('reply.reply(wrapped);'); @@ -960,7 +1089,7 @@ $resultType $resultName = indent.format(''' @NonNull protected static ArrayList wrapError(@NonNull Throwable exception) { -\tArrayList errorList = new ArrayList(3); +\tArrayList errorList = new ArrayList<>(3); \tif (exception instanceof FlutterError) { \t\tFlutterError error = (FlutterError) exception; \t\terrorList.add(error.code); @@ -1095,6 +1224,8 @@ String? _javaTypeForBuiltinDartType(TypeDeclaration type) { 'Int64List': 'long[]', 'Float64List': 'double[]', 'Object': 'Object', + // This is used to allow the creation of true `int`s for the codec overflow class. + _forceInt: 'int', }; if (javaTypeForDartTypeMap.containsKey(type.baseName)) { return javaTypeForDartTypeMap[type.baseName]; diff --git a/packages/pigeon/lib/kotlin_generator.dart b/packages/pigeon/lib/kotlin_generator.dart index 1d827aff164..842e06c5731 100644 --- a/packages/pigeon/lib/kotlin_generator.dart +++ b/packages/pigeon/lib/kotlin_generator.dart @@ -27,6 +27,8 @@ const DocumentCommentSpecification _docCommentSpec = String _codecName = 'PigeonCodec'; +const String _overflowClassName = '${varNamePrefix}CodecOverflow'; + /// Options that control how Kotlin code will be generated. class KotlinOptions { /// Creates a [KotlinOptions] object @@ -147,10 +149,7 @@ class KotlinGenerator extends StructuredGenerator { enumerate(anEnum.members, (int index, final EnumMember member) { addDocumentationComments( indent, member.documentationComments, _docCommentSpec); - final String nameScreamingSnakeCase = member.name - .replaceAllMapped( - RegExp(r'(?<=[a-z])[A-Z]'), (Match m) => '_${m.group(0)}') - .toUpperCase(); + final String nameScreamingSnakeCase = toScreamingSnakeCase(member.name); indent.write('$nameScreamingSnakeCase($index)'); if (index != anEnum.members.length - 1) { indent.addln(','); @@ -185,20 +184,8 @@ class KotlinGenerator extends StructuredGenerator { addDocumentationComments( indent, classDefinition.documentationComments, _docCommentSpec, generatorComments: generatedMessages); - indent.write('data class ${classDefinition.name} '); - indent.addScoped('(', '', () { - for (final NamedType element - in getFieldsInSerializationOrder(classDefinition)) { - _writeClassField(indent, element); - if (getFieldsInSerializationOrder(classDefinition).last != element) { - indent.addln(','); - } else { - indent.newln(); - } - } - }); - - indent.addScoped(') {', '}', () { + _writeDataClassSignature(indent, classDefinition); + indent.addScoped(' {', '}', () { writeClassDecode( generatorOptions, root, @@ -216,6 +203,21 @@ class KotlinGenerator extends StructuredGenerator { }); } + void _writeDataClassSignature(Indent indent, Class classDefinition) { + indent.write('data class ${classDefinition.name} '); + indent.addScoped('(', ')', () { + for (final NamedType element + in getFieldsInSerializationOrder(classDefinition)) { + _writeClassField(indent, element); + if (getFieldsInSerializationOrder(classDefinition).last != element) { + indent.addln(','); + } else { + indent.newln(); + } + } + }); + } + @override void writeClassEncode( KotlinOptions generatorOptions, @@ -307,7 +309,60 @@ class KotlinGenerator extends StructuredGenerator { Indent indent, { required String dartPackageName, }) { - final Iterable enumeratedTypes = getEnumeratedTypes(root); + final List enumeratedTypes = + getEnumeratedTypes(root).toList(); + + void writeEncodeLogic(EnumeratedType customType) { + final String encodeString = + customType.type == CustomTypes.customClass ? 'toList()' : 'raw'; + final String valueString = customType.enumeration < maximumCodecFieldKey + ? 'value.$encodeString' + : 'wrap.toList()'; + final int enumeration = customType.enumeration < maximumCodecFieldKey + ? customType.enumeration + : maximumCodecFieldKey; + indent.writeScoped('is ${customType.name} -> {', '}', () { + if (customType.enumeration >= maximumCodecFieldKey) { + indent.writeln( + 'val wrap = ${generatorOptions.fileSpecificClassNameComponent}$_overflowClassName(type = ${customType.enumeration - maximumCodecFieldKey}, wrapped = value.$encodeString)'); + } + indent.writeln('stream.write($enumeration)'); + indent.writeln('writeValue(stream, $valueString)'); + }); + } + + void writeDecodeLogic(EnumeratedType customType) { + indent.write('${customType.enumeration}.toByte() -> '); + indent.addScoped('{', '}', () { + if (customType.type == CustomTypes.customClass) { + indent.write('return (readValue(buffer) as? List)?.let '); + indent.addScoped('{', '}', () { + indent.writeln('${customType.name}.fromList(it)'); + }); + } else if (customType.type == CustomTypes.customEnum) { + indent.write('return (readValue(buffer) as Int?)?.let '); + indent.addScoped('{', '}', () { + indent.writeln('${customType.name}.ofRaw(it)'); + }); + } + }); + } + + final EnumeratedType overflowClass = EnumeratedType( + '${generatorOptions.fileSpecificClassNameComponent}$_overflowClassName', + maximumCodecFieldKey, + CustomTypes.customClass); + + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + _writeCodecOverflowUtilities( + generatorOptions, + root, + indent, + enumeratedTypes, + dartPackageName: dartPackageName, + ); + } + indent.write( 'private object ${generatorOptions.fileSpecificClassNameComponent}$_codecName : StandardMessageCodec() '); indent.addScoped('{', '}', () { @@ -319,21 +374,12 @@ class KotlinGenerator extends StructuredGenerator { indent.add('when (type) '); indent.addScoped('{', '}', () { for (final EnumeratedType customType in enumeratedTypes) { - indent.write('${customType.enumeration}.toByte() -> '); - indent.addScoped('{', '}', () { - if (customType.type == CustomTypes.customClass) { - indent - .write('return (readValue(buffer) as? List)?.let '); - indent.addScoped('{', '}', () { - indent.writeln('${customType.name}.fromList(it)'); - }); - } else if (customType.type == CustomTypes.customEnum) { - indent.write('return (readValue(buffer) as Int?)?.let '); - indent.addScoped('{', '}', () { - indent.writeln('${customType.name}.ofRaw(it)'); - }); - } - }); + if (customType.enumeration < maximumCodecFieldKey) { + writeDecodeLogic(customType); + } + } + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + writeDecodeLogic(overflowClass); } indent.writeln('else -> super.readValueOfType(type, buffer)'); }); @@ -348,17 +394,7 @@ class KotlinGenerator extends StructuredGenerator { if (root.classes.isNotEmpty || root.enums.isNotEmpty) { indent.write('when (value) '); indent.addScoped('{', '}', () { - for (final EnumeratedType customType in enumeratedTypes) { - indent.write('is ${customType.name} -> '); - indent.addScoped('{', '}', () { - indent.writeln('stream.write(${customType.enumeration})'); - if (customType.type == CustomTypes.customClass) { - indent.writeln('writeValue(stream, value.toList())'); - } else if (customType.type == CustomTypes.customEnum) { - indent.writeln('writeValue(stream, value.raw)'); - } - }); - } + enumeratedTypes.forEach(writeEncodeLogic); indent.writeln('else -> super.writeValue(stream, value)'); }); } else { @@ -369,6 +405,76 @@ class KotlinGenerator extends StructuredGenerator { indent.newln(); } + void _writeCodecOverflowUtilities( + KotlinOptions generatorOptions, + Root root, + Indent indent, + List types, { + required String dartPackageName, + }) { + final NamedType overflowInt = NamedType( + name: 'type', + type: const TypeDeclaration(baseName: 'Int', isNullable: false)); + final NamedType overflowObject = NamedType( + name: 'wrapped', + type: const TypeDeclaration(baseName: 'Object', isNullable: true)); + final List overflowFields = [ + overflowInt, + overflowObject, + ]; + final Class overflowClass = Class( + name: + '${generatorOptions.fileSpecificClassNameComponent}$_overflowClassName', + fields: overflowFields); + + indent.writeln('@Suppress("ClassName")'); + _writeDataClassSignature(indent, overflowClass); + indent.addScoped(' {', '}', () { + writeClassEncode( + generatorOptions, + root, + indent, + overflowClass, + dartPackageName: dartPackageName, + ); + + indent.format(''' +companion object { + @Suppress("LocalVariableName") + fun fromList(${varNamePrefix}list: List): Any? { + val wrapper = ${generatorOptions.fileSpecificClassNameComponent}$_overflowClassName( + type = ${varNamePrefix}list[0] as Int, + wrapped = ${varNamePrefix}list[1], + ); + return wrapper.unwrap() + } +} +'''); + + indent.writeScoped('fun unwrap(): Any? {', '}', () { + indent.format(''' +if (wrapped == null) { + return null +} + '''); + indent.writeScoped('when (type) {', '}', () { + for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { + indent.writeScoped('${i - totalCustomCodecKeysAllowed} -> {', '}', + () { + if (types[i].type == CustomTypes.customClass) { + indent.writeln( + 'return ${types[i].name}.fromList(wrapped as List)'); + } else if (types[i].type == CustomTypes.customEnum) { + indent.writeln('return ${types[i].name}.ofRaw(wrapped as Int)'); + } + }); + } + }); + indent.writeln('return null'); + }); + }); + } + /// Writes the code for a flutter [Api], [api]. /// Example: /// class Foo(private val binaryMessenger: BinaryMessenger) { diff --git a/packages/pigeon/lib/objc_generator.dart b/packages/pigeon/lib/objc_generator.dart index e378fbac1c2..0cba6162f22 100644 --- a/packages/pigeon/lib/objc_generator.dart +++ b/packages/pigeon/lib/objc_generator.dart @@ -15,6 +15,24 @@ const String _docCommentPrefix = '///'; const DocumentCommentSpecification _docCommentSpec = DocumentCommentSpecification(_docCommentPrefix); +const String _overflowClassName = '${varNamePrefix}CodecOverflow'; + +final NamedType _overflowInt = NamedType( + name: 'type', + type: const TypeDeclaration(baseName: 'int', isNullable: false)); +final NamedType _overflowObject = NamedType( + name: 'wrapped', + type: const TypeDeclaration(baseName: 'Object', isNullable: true)); +final List _overflowFields = [ + _overflowInt, + _overflowObject, +]; +final Class _overflowClass = + Class(name: _overflowClassName, fields: _overflowFields); +final EnumeratedType _enumeratedOverflow = EnumeratedType( + _overflowClassName, 255, CustomTypes.customClass, + associatedClass: _overflowClass); + /// Options that control how Objective-C code will be generated. class ObjcOptions { /// Parametric constructor for ObjcOptions. @@ -197,6 +215,15 @@ class ObjcHeaderGenerator extends StructuredGenerator { indent, dartPackageName: dartPackageName, ); + if (getEnumeratedTypes(root).length >= totalCustomCodecKeysAllowed) { + writeDataClass( + generatorOptions, + root, + indent, + _overflowClass, + dartPackageName: dartPackageName, + ); + } } @override @@ -505,7 +532,10 @@ class ObjcSourceGenerator extends StructuredGenerator { }) { for (final Class classDefinition in root.classes) { _writeObjcSourceDataClassExtension( - generatorOptions, indent, classDefinition); + generatorOptions, + indent, + classDefinition, + ); } indent.newln(); super.writeDataClasses( @@ -524,16 +554,12 @@ class ObjcSourceGenerator extends StructuredGenerator { Class classDefinition, { required String dartPackageName, }) { - final Set customClassNames = - root.classes.map((Class x) => x.name).toSet(); - final Set customEnumNames = - root.enums.map((Enum x) => x.name).toSet(); final String className = _className(generatorOptions.prefix, classDefinition.name); indent.writeln('@implementation $className'); - _writeObjcSourceClassInitializer(generatorOptions, root, indent, - classDefinition, customClassNames, customEnumNames, className); + _writeObjcSourceClassInitializer( + generatorOptions, root, indent, classDefinition, className); writeClassDecode( generatorOptions, root, @@ -616,6 +642,99 @@ class ObjcSourceGenerator extends StructuredGenerator { }); } + void _writeCodecOverflowUtilities( + ObjcOptions generatorOptions, + Root root, + Indent indent, + List types, { + required String dartPackageName, + }) { + _writeObjcSourceDataClassExtension( + generatorOptions, + indent, + _overflowClass, + returnType: 'id', + overflow: true, + ); + indent.newln(); + indent.writeln( + '@implementation ${_className(generatorOptions.prefix, _overflowClassName)}'); + + _writeObjcSourceClassInitializer( + generatorOptions, + root, + indent, + _overflowClass, + _className(generatorOptions.prefix, _overflowClassName)); + writeClassEncode( + generatorOptions, + root, + indent, + _overflowClass, + dartPackageName: dartPackageName, + ); + + indent.format(''' ++ (id)fromList:(NSArray *)list { + ${_className(generatorOptions.prefix, _overflowClassName)} *wrapper = [[${_className(generatorOptions.prefix, _overflowClassName)} alloc] init]; + wrapper.type = [GetNullableObjectAtIndex(list, 0) integerValue]; + wrapper.wrapped = GetNullableObjectAtIndex(list, 1); + return [wrapper unwrap]; +} +'''); + + indent.writeScoped('- (id) unwrap {', '}', () { + indent.format(''' +if (self.wrapped == nil) { + return nil; +} + '''); + indent.writeScoped('switch (self.type) {', '}', () { + for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { + indent.write('case ${i - totalCustomCodecKeysAllowed}:'); + _writeCodecDecode( + indent, + types[i], + generatorOptions.prefix ?? '', + overflow: true, + ); + } + indent.writeScoped('default: ', '', () { + indent.writeln('return nil;'); + }, addTrailingNewline: false); + }); + }); + indent.writeln('@end'); + } + + void _writeCodecDecode( + Indent indent, EnumeratedType customType, String? prefix, + {bool overflow = false}) { + String readValue = '[self readValue]'; + if (overflow) { + readValue = 'self.wrapped'; + } + if (customType.type == CustomTypes.customClass) { + indent.addScoped('', null, () { + indent.writeln( + 'return [${_className(prefix, customType.name)} fromList:$readValue];'); + }, addTrailingNewline: false); + } else if (customType.type == CustomTypes.customEnum) { + indent.addScoped(!overflow ? '{' : '', !overflow ? '}' : null, () { + String enumAsNumber = 'enumAsNumber'; + if (!overflow) { + indent.writeln('NSNumber *$enumAsNumber = $readValue;'); + indent.write('return $enumAsNumber == nil ? nil : '); + } else { + enumAsNumber = 'self.wrapped'; + indent.write('return '); + } + indent.addln( + '[[${_enumName(customType.name, prefix: prefix, box: true)} alloc] initWithValue:[$enumAsNumber integerValue]];'); + }, addTrailingNewline: !overflow); + } + } + @override void writeGeneralCodec( ObjcOptions generatorOptions, @@ -624,34 +743,41 @@ class ObjcSourceGenerator extends StructuredGenerator { required String dartPackageName, }) { const String codecName = 'PigeonCodec'; - final Iterable codecClasses = getEnumeratedTypes(root); + final List enumeratedTypes = + getEnumeratedTypes(root).toList(); final String readerWriterName = '${generatorOptions.prefix}${toUpperCamelCase(generatorOptions.fileSpecificClassNameComponent ?? '')}${codecName}ReaderWriter'; final String readerName = '${generatorOptions.prefix}${toUpperCamelCase(generatorOptions.fileSpecificClassNameComponent ?? '')}${codecName}Reader'; final String writerName = '${generatorOptions.prefix}${toUpperCamelCase(generatorOptions.fileSpecificClassNameComponent ?? '')}${codecName}Writer'; + + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + _writeCodecOverflowUtilities( + generatorOptions, root, indent, enumeratedTypes, + dartPackageName: dartPackageName); + } + indent.writeln('@interface $readerName : FlutterStandardReader'); indent.writeln('@end'); indent.writeln('@implementation $readerName'); indent.write('- (nullable id)readValueOfType:(UInt8)type '); indent.addScoped('{', '}', () { - indent.write('switch (type) '); - indent.addScoped('{', '}', () { - for (final EnumeratedType customType in codecClasses) { - indent.writeln('case ${customType.enumeration}: '); - indent.nest(1, () { - if (customType.type == CustomTypes.customClass) { - indent.writeln( - 'return [${_className(generatorOptions.prefix, customType.name)} fromList:[self readValue]];'); - } else if (customType.type == CustomTypes.customEnum) { - indent.writeScoped('{', '}', () { - indent.writeln('NSNumber *enumAsNumber = [self readValue];'); - indent.writeln( - 'return enumAsNumber == nil ? nil : [[${_enumName(customType.name, prefix: generatorOptions.prefix, box: true)} alloc] initWithValue:[enumAsNumber integerValue]];'); - }); - } - }); + indent.writeScoped('switch (type) {', '}', () { + for (final EnumeratedType customType in enumeratedTypes) { + if (customType.enumeration < maximumCodecFieldKey) { + indent.write('case ${customType.enumeration}: '); + _writeCodecDecode( + indent, customType, generatorOptions.prefix ?? ''); + } + } + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + indent.write('case 255: '); + _writeCodecDecode( + indent, + _enumeratedOverflow, + generatorOptions.prefix, + ); } indent.writeln('default:'); indent.nest(1, () { @@ -666,30 +792,33 @@ class ObjcSourceGenerator extends StructuredGenerator { indent.writeln('@implementation $writerName'); indent.write('- (void)writeValue:(id)value '); indent.addScoped('{', '}', () { - bool firstClass = true; - for (final EnumeratedType customClass in codecClasses) { - if (firstClass) { - indent.write(''); - firstClass = false; - } - if (customClass.type == CustomTypes.customClass) { - indent.add( - 'if ([value isKindOfClass:[${_className(generatorOptions.prefix, customClass.name)} class]]) '); - indent.addScoped('{', '} else ', () { - indent.writeln('[self writeByte:${customClass.enumeration}];'); - indent.writeln('[self writeValue:[value toList]];'); - }, addTrailingNewline: false); - } else if (customClass.type == CustomTypes.customEnum) { - final String boxName = _enumName(customClass.name, - prefix: generatorOptions.prefix, box: true); - indent.add('if ([value isKindOfClass:[$boxName class]]) '); - indent.addScoped('{', '} else ', () { - indent.writeln('$boxName * box = ($boxName *)value;'); - indent.writeln('[self writeByte:${customClass.enumeration}];'); + indent.write(''); + for (final EnumeratedType customType in enumeratedTypes) { + final String encodeString = customType.type == CustomTypes.customClass + ? '[value toList]' + : '(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])'; + final String valueString = customType.enumeration < maximumCodecFieldKey + ? encodeString + : '[wrap toList]'; + final String className = customType.type == CustomTypes.customClass + ? _className(generatorOptions.prefix, customType.name) + : _enumName(customType.name, + prefix: generatorOptions.prefix, box: true); + indent.addScoped( + 'if ([value isKindOfClass:[$className class]]) {', '} else ', () { + if (customType.type == CustomTypes.customEnum) { + indent.writeln('$className *box = ($className *)value;'); + } + final int enumeration = customType.enumeration < maximumCodecFieldKey + ? customType.enumeration + : maximumCodecFieldKey; + if (customType.enumeration >= maximumCodecFieldKey) { indent.writeln( - '[self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])];'); - }, addTrailingNewline: false); - } + '${_className(generatorOptions.prefix, _overflowClassName)} *wrap = [${_className(generatorOptions.prefix, _overflowClassName)} makeWithType:${customType.enumeration - maximumCodecFieldKey} wrapped:$encodeString];'); + } + indent.writeln('[self writeByte:$enumeration];'); + indent.writeln('[self writeValue:$valueString];'); + }, addTrailingNewline: false); } indent.addScoped('{', '}', () { indent.writeln('[super writeValue:value];'); @@ -1036,14 +1165,19 @@ static FlutterError *createConnectionError(NSString *channelName) { } void _writeObjcSourceDataClassExtension( - ObjcOptions languageOptions, Indent indent, Class classDefinition) { + ObjcOptions languageOptions, Indent indent, Class classDefinition, + {String? returnType, bool overflow = false}) { final String className = _className(languageOptions.prefix, classDefinition.name); + returnType = returnType ?? className; indent.newln(); indent.writeln('@interface $className ()'); - indent.writeln('+ ($className *)fromList:(NSArray *)list;'); indent.writeln( - '+ (nullable $className *)nullableFromList:(NSArray *)list;'); + '+ ($returnType${overflow ? '' : ' *'})fromList:(NSArray *)list;'); + if (!overflow) { + indent.writeln( + '+ (nullable $returnType *)nullableFromList:(NSArray *)list;'); + } indent.writeln('- (NSArray *)toList;'); indent.writeln('@end'); } @@ -1053,8 +1187,6 @@ static FlutterError *createConnectionError(NSString *channelName) { Root root, Indent indent, Class classDefinition, - Set customClassNames, - Set customEnumNames, String className, ) { _writeObjcSourceClassInitializerDeclaration( diff --git a/packages/pigeon/lib/pigeon_lib.dart b/packages/pigeon/lib/pigeon_lib.dart index af2618e47e6..16ea91f415d 100644 --- a/packages/pigeon/lib/pigeon_lib.dart +++ b/packages/pigeon/lib/pigeon_lib.dart @@ -843,7 +843,15 @@ class GObjectGeneratorAdapter implements GeneratorAdapter { } @override - List validate(PigeonOptions options, Root root) => []; + List validate(PigeonOptions options, Root root) { + final List errors = []; + if (root.classes.length + root.enums.length > totalCustomCodecKeysAllowed) { + errors.add(Error( + message: + 'GObject generator does not yet support more than $totalCustomCodecKeysAllowed custom types.')); + } + return errors; + } } /// A [GeneratorAdapter] that generates Kotlin source code. @@ -2284,8 +2292,12 @@ ${_argParser.usage}'''; /// used when running the code generator. The optional parameter [adapters] allows you to /// customize the generators that pigeon will use. The optional parameter /// [sdkPath] allows you to specify the Dart SDK path. - static Future runWithOptions(PigeonOptions options, - {List? adapters, String? sdkPath}) async { + static Future runWithOptions( + PigeonOptions options, { + List? adapters, + String? sdkPath, + bool injectOverflowTypes = false, + }) async { final Pigeon pigeon = Pigeon.setup(); if (options.debugGenerators ?? false) { generator_tools.debugGenerators = true; @@ -2312,6 +2324,19 @@ ${_argParser.usage}'''; final ParseResults parseResults = pigeon.parseFile(options.input!, sdkPath: sdkPath); + if (injectOverflowTypes) { + final List addedEnums = List.generate( + totalCustomCodecKeysAllowed - 1, + (final int tag) { + return Enum( + name: 'FillerEnum$tag', + members: [EnumMember(name: 'FillerMember$tag')]); + }, + ); + addedEnums.addAll(parseResults.root.enums); + parseResults.root.enums = addedEnums; + } + final List errors = []; errors.addAll(parseResults.errors); @@ -2323,6 +2348,9 @@ ${_argParser.usage}'''; } for (final GeneratorAdapter adapter in safeGeneratorAdapters) { + if (injectOverflowTypes && adapter is GObjectGeneratorAdapter) { + continue; + } final IOSink? sink = adapter.shouldGenerate(options, FileType.source); if (sink != null) { final List adapterErrors = diff --git a/packages/pigeon/lib/swift_generator.dart b/packages/pigeon/lib/swift_generator.dart index 99ad77f39e7..f8344eca66c 100644 --- a/packages/pigeon/lib/swift_generator.dart +++ b/packages/pigeon/lib/swift_generator.dart @@ -14,6 +14,8 @@ const String _docCommentPrefix = '///'; const DocumentCommentSpecification _docCommentSpec = DocumentCommentSpecification(_docCommentPrefix); +const String _overflowClassName = '${varNamePrefix}CodecOverflow'; + /// Options that control how Swift code will be generated. class SwiftOptions { /// Creates a [SwiftOptions] object @@ -135,34 +137,54 @@ class SwiftGenerator extends StructuredGenerator { final String readerName = '${codecName}Reader'; final String writerName = '${codecName}Writer'; - final Iterable allTypes = getEnumeratedTypes(root); + final List enumeratedTypes = + getEnumeratedTypes(root).toList(); + + void writeDecodeLogic(EnumeratedType customType) { + indent.writeln('case ${customType.enumeration}:'); + indent.nest(1, () { + if (customType.type == CustomTypes.customEnum) { + indent.writeln('var enumResult: ${customType.name}? = nil'); + indent.writeln( + 'let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int)'); + indent.writeScoped('if let enumResultAsInt = enumResultAsInt {', '}', + () { + indent.writeln( + 'enumResult = ${customType.name}(rawValue: enumResultAsInt)'); + }); + indent.writeln('return enumResult'); + } else { + indent.writeln( + 'return ${customType.name}.fromList(self.readValue() as! [Any?])'); + } + }); + } + + final EnumeratedType overflowClass = EnumeratedType( + _overflowClassName, maximumCodecFieldKey, CustomTypes.customClass); + + if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + indent.newln(); + _writeCodecOverflowUtilities( + generatorOptions, root, indent, enumeratedTypes, + dartPackageName: dartPackageName); + } + + indent.newln(); // Generate Reader indent.write('private class $readerName: FlutterStandardReader '); indent.addScoped('{', '}', () { - if (allTypes.isNotEmpty) { + if (enumeratedTypes.isNotEmpty) { indent.write('override func readValue(ofType type: UInt8) -> Any? '); indent.addScoped('{', '}', () { indent.write('switch type '); indent.addScoped('{', '}', nestCount: 0, () { - for (final EnumeratedType customType in allTypes) { - indent.writeln('case ${customType.enumeration}:'); - indent.nest(1, () { - if (customType.type == CustomTypes.customEnum) { - indent.writeln('var enumResult: ${customType.name}? = nil'); - indent.writeln( - 'let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int)'); - indent.writeScoped( - 'if let enumResultAsInt = enumResultAsInt {', '}', () { - indent.writeln( - 'enumResult = ${customType.name}(rawValue: enumResultAsInt)'); - }); - indent.writeln('return enumResult'); - } else { - indent.writeln( - 'return ${customType.name}.fromList(self.readValue() as! [Any?])'); - } - }); + for (final EnumeratedType customType in enumeratedTypes) { + if (customType.enumeration < maximumCodecFieldKey) { + writeDecodeLogic(customType); + } } + writeDecodeLogic(overflowClass); indent.writeln('default:'); indent.nest(1, () { indent.writeln('return super.readValue(ofType: type)'); @@ -176,19 +198,31 @@ class SwiftGenerator extends StructuredGenerator { indent.newln(); indent.write('private class $writerName: FlutterStandardWriter '); indent.addScoped('{', '}', () { - if (allTypes.isNotEmpty) { + if (enumeratedTypes.isNotEmpty) { indent.write('override func writeValue(_ value: Any) '); indent.addScoped('{', '}', () { indent.write(''); - for (final EnumeratedType customType in allTypes) { + for (final EnumeratedType customType in enumeratedTypes) { indent.add('if let value = value as? ${customType.name} '); indent.addScoped('{', '} else ', () { - indent.writeln('super.writeByte(${customType.enumeration})'); - if (customType.type == CustomTypes.customEnum) { - indent.writeln('super.writeValue(value.rawValue)'); - } else if (customType.type == CustomTypes.customClass) { - indent.writeln('super.writeValue(value.toList())'); + final String encodeString = + customType.type == CustomTypes.customClass + ? 'toList()' + : 'rawValue'; + final String valueString = + customType.enumeration < maximumCodecFieldKey + ? 'value.$encodeString' + : 'wrap.toList()'; + final int enumeration = + customType.enumeration < maximumCodecFieldKey + ? customType.enumeration + : maximumCodecFieldKey; + if (customType.enumeration >= maximumCodecFieldKey) { + indent.writeln( + 'let wrap = $_overflowClassName(type: ${customType.enumeration - maximumCodecFieldKey}, wrapped: value.$encodeString)'); } + indent.writeln('super.writeByte($enumeration)'); + indent.writeln('super.writeValue($valueString)'); }, addTrailingNewline: false); } indent.addScoped('{', '}', () { @@ -227,28 +261,14 @@ class SwiftGenerator extends StructuredGenerator { indent.newln(); } - @override - void writeDataClass( - SwiftOptions generatorOptions, - Root root, - Indent indent, - Class classDefinition, { - required String dartPackageName, - }) { - const List generatedComments = [ - ' Generated class from Pigeon that represents data sent in messages.' - ]; - indent.newln(); - addDocumentationComments( - indent, classDefinition.documentationComments, _docCommentSpec, - generatorComments: generatedComments); - + void _writeDataClassSignature(Indent indent, Class classDefinition) { if (classDefinition.isSwiftClass) { indent.write('class ${classDefinition.name} '); } else { indent.write('struct ${classDefinition.name} '); } - indent.addScoped('{', '}', () { + + indent.addScoped('{', '', () { final Iterable fields = getFieldsInSerializationOrder(classDefinition); @@ -263,7 +283,99 @@ class SwiftGenerator extends StructuredGenerator { _writeClassField(indent, field, addNil: !classDefinition.isSwiftClass); indent.newln(); } + }); + } + + void _writeCodecOverflowUtilities( + SwiftOptions generatorOptions, + Root root, + Indent indent, + List types, { + required String dartPackageName, + }) { + final NamedType overflowInt = NamedType( + name: 'type', + type: const TypeDeclaration(baseName: 'Int', isNullable: false)); + final NamedType overflowObject = NamedType( + name: 'wrapped', + type: const TypeDeclaration(baseName: 'Object', isNullable: true)); + final List overflowFields = [ + overflowInt, + overflowObject, + ]; + final Class overflowClass = + Class(name: _overflowClassName, fields: overflowFields); + indent.newln(); + indent.writeln('// swift-format-ignore: TypeNamesShouldBeCapitalized'); + _writeDataClassSignature(indent, overflowClass); + indent.addScoped('', '}', () { + writeClassEncode( + generatorOptions, + root, + indent, + overflowClass, + dartPackageName: dartPackageName, + ); + + indent.format(''' +// swift-format-ignore: AlwaysUseLowerCamelCase +static func fromList(_ ${varNamePrefix}list: [Any?]) -> Any? { + let type = ${varNamePrefix}list[0] as! Int + let wrapped: Any? = ${varNamePrefix}list[1] + + let wrapper = $_overflowClassName( + type: type, + wrapped: wrapped + ) + + return wrapper.unwrap() +} +'''); + + indent.writeScoped('func unwrap() -> Any? {', '}', () { + indent.format(''' +if (wrapped == nil) { + return nil; +} + '''); + indent.writeScoped('switch type {', '}', () { + for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { + indent.writeScoped('case ${i - totalCustomCodecKeysAllowed}:', '', + () { + if (types[i].type == CustomTypes.customClass) { + indent.writeln( + 'return ${types[i].name}.fromList(wrapped as! [Any?]);'); + } else if (types[i].type == CustomTypes.customEnum) { + indent.writeln( + 'return ${types[i].name}(rawValue: wrapped as! Int);'); + } + }, addTrailingNewline: false); + } + indent.writeScoped('default: ', '', () { + indent.writeln('return nil'); + }, addTrailingNewline: false); + }); + }); + }); + } + @override + void writeDataClass( + SwiftOptions generatorOptions, + Root root, + Indent indent, + Class classDefinition, { + required String dartPackageName, + }) { + const List generatedComments = [ + ' Generated class from Pigeon that represents data sent in messages.' + ]; + indent.newln(); + addDocumentationComments( + indent, classDefinition.documentationComments, _docCommentSpec, + generatorComments: generatedComments); + _writeDataClassSignature(indent, classDefinition); + indent.writeScoped('', '}', () { indent.newln(); writeClassDecode( generatorOptions, diff --git a/packages/pigeon/pigeons/core_tests.dart b/packages/pigeon/pigeons/core_tests.dart index b4dc3fdfb02..497a4571dd8 100644 --- a/packages/pigeon/pigeons/core_tests.dart +++ b/packages/pigeon/pigeons/core_tests.dart @@ -12,6 +12,16 @@ enum AnEnum { fourHundredTwentyTwo, } +class SimpleClass { + SimpleClass({ + this.aString, + this.aBool = true, + }); + + String? aString; + bool aBool; +} + /// A class containing all supported types. class AllTypes { AllTypes({ diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index d7c5ea64ff1..5f87181c6ba 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -50,7 +50,7 @@ public FlutterError(@NonNull String code, @Nullable String message, @Nullable Ob @NonNull protected static ArrayList wrapError(@NonNull Throwable exception) { - ArrayList errorList = new ArrayList(3); + ArrayList errorList = new ArrayList<>(3); if (exception instanceof FlutterError) { FlutterError error = (FlutterError) exception; errorList.add(error.code); @@ -84,7 +84,7 @@ public enum AnEnum { final int index; - private AnEnum(final int index) { + AnEnum(final int index) { this.index = index; } } @@ -534,7 +534,7 @@ public static final class Builder { @NonNull ArrayList toList() { - ArrayList toListResult = new ArrayList(17); + ArrayList toListResult = new ArrayList<>(17); toListResult.add(aBool); toListResult.add(anInt); toListResult.add(anInt64); @@ -1096,7 +1096,7 @@ public static final class Builder { @NonNull ArrayList toList() { - ArrayList toListResult = new ArrayList(22); + ArrayList toListResult = new ArrayList<>(22); toListResult.add(aNullableBool); toListResult.add(aNullableInt); toListResult.add(aNullableInt64); @@ -1636,7 +1636,7 @@ public static final class Builder { @NonNull ArrayList toList() { - ArrayList toListResult = new ArrayList(20); + ArrayList toListResult = new ArrayList<>(20); toListResult.add(aNullableBool); toListResult.add(aNullableInt); toListResult.add(aNullableInt64); @@ -1819,7 +1819,7 @@ public static final class Builder { @NonNull ArrayList toList() { - ArrayList toListResult = new ArrayList(3); + ArrayList toListResult = new ArrayList<>(3); toListResult.add(allNullableTypes); toListResult.add(allNullableTypesWithoutRecursion); toListResult.add(allTypes); @@ -1891,7 +1891,7 @@ public static final class Builder { @NonNull ArrayList toList() { - ArrayList toListResult = new ArrayList(1); + ArrayList toListResult = new ArrayList<>(1); toListResult.add(testList); return toListResult; } @@ -1913,18 +1913,20 @@ private PigeonCodec() {} protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { switch (type) { case (byte) 129: - return AllTypes.fromList((ArrayList) readValue(buffer)); + { + Object value = readValue(buffer); + return value == null ? null : AnEnum.values()[(int) value]; + } case (byte) 130: - return AllNullableTypes.fromList((ArrayList) readValue(buffer)); + return AllTypes.fromList((ArrayList) readValue(buffer)); case (byte) 131: - return AllNullableTypesWithoutRecursion.fromList((ArrayList) readValue(buffer)); + return AllNullableTypes.fromList((ArrayList) readValue(buffer)); case (byte) 132: - return AllClassesWrapper.fromList((ArrayList) readValue(buffer)); + return AllNullableTypesWithoutRecursion.fromList((ArrayList) readValue(buffer)); case (byte) 133: - return TestMessage.fromList((ArrayList) readValue(buffer)); + return AllClassesWrapper.fromList((ArrayList) readValue(buffer)); case (byte) 134: - Object value = readValue(buffer); - return value == null ? null : AnEnum.values()[(int) value]; + return TestMessage.fromList((ArrayList) readValue(buffer)); default: return super.readValueOfType(type, buffer); } @@ -1932,24 +1934,24 @@ protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { @Override protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { - if (value instanceof AllTypes) { + if (value instanceof AnEnum) { stream.write(129); + writeValue(stream, value == null ? null : ((AnEnum) value).index); + } else if (value instanceof AllTypes) { + stream.write(130); writeValue(stream, ((AllTypes) value).toList()); } else if (value instanceof AllNullableTypes) { - stream.write(130); + stream.write(131); writeValue(stream, ((AllNullableTypes) value).toList()); } else if (value instanceof AllNullableTypesWithoutRecursion) { - stream.write(131); + stream.write(132); writeValue(stream, ((AllNullableTypesWithoutRecursion) value).toList()); } else if (value instanceof AllClassesWrapper) { - stream.write(132); + stream.write(133); writeValue(stream, ((AllClassesWrapper) value).toList()); } else if (value instanceof TestMessage) { - stream.write(133); - writeValue(stream, ((TestMessage) value).toList()); - } else if (value instanceof AnEnum) { stream.write(134); - writeValue(stream, value == null ? null : ((AnEnum) value).index); + writeValue(stream, ((TestMessage) value).toList()); } else { super.writeValue(stream, value); } @@ -2261,13 +2263,12 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); try { api.noop(); wrapped.add(0, null); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2285,15 +2286,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllTypes everythingArg = (AllTypes) args.get(0); try { AllTypes output = api.echoAllTypes(everythingArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2311,13 +2311,12 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); try { Object output = api.throwError(); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2335,13 +2334,12 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); try { api.throwErrorFromVoid(); wrapped.add(0, null); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2359,13 +2357,12 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); try { Object output = api.throwFlutterError(); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2383,15 +2380,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number anIntArg = (Number) args.get(0); try { Long output = api.echoInt((anIntArg == null) ? null : anIntArg.longValue()); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2409,15 +2405,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Double aDoubleArg = (Double) args.get(0); try { Double output = api.echoDouble(aDoubleArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2435,15 +2430,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aBoolArg = (Boolean) args.get(0); try { Boolean output = api.echoBool(aBoolArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2461,15 +2455,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); try { String output = api.echoString(aStringArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2487,15 +2480,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; byte[] aUint8ListArg = (byte[]) args.get(0); try { byte[] output = api.echoUint8List(aUint8ListArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2513,15 +2505,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Object anObjectArg = args.get(0); try { Object output = api.echoObject(anObjectArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2539,15 +2530,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; List listArg = (List) args.get(0); try { List output = api.echoList(listArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2565,15 +2555,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Map aMapArg = (Map) args.get(0); try { Map output = api.echoMap(aMapArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2591,15 +2580,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllClassesWrapper wrapperArg = (AllClassesWrapper) args.get(0); try { AllClassesWrapper output = api.echoClassWrapper(wrapperArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2617,15 +2605,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AnEnum anEnumArg = (AnEnum) args.get(0); try { AnEnum output = api.echoEnum(anEnumArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2643,15 +2630,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); try { String output = api.echoNamedDefaultString(aStringArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2669,15 +2655,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Double aDoubleArg = (Double) args.get(0); try { Double output = api.echoOptionalDefaultDouble(aDoubleArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2695,7 +2680,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number anIntArg = (Number) args.get(0); try { @@ -2703,8 +2688,7 @@ static void setUp( api.echoRequiredInt((anIntArg == null) ? null : anIntArg.longValue()); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2722,15 +2706,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); try { AllNullableTypes output = api.echoAllNullableTypes(everythingArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2748,7 +2731,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); @@ -2757,8 +2740,7 @@ static void setUp( api.echoAllNullableTypesWithoutRecursion(everythingArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2776,15 +2758,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllClassesWrapper wrapperArg = (AllClassesWrapper) args.get(0); try { String output = api.extractNestedNullableString(wrapperArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2802,15 +2783,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String nullableStringArg = (String) args.get(0); try { AllClassesWrapper output = api.createNestedNullableString(nullableStringArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2828,7 +2808,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aNullableBoolArg = (Boolean) args.get(0); Number aNullableIntArg = (Number) args.get(1); @@ -2841,8 +2821,7 @@ static void setUp( aNullableStringArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2860,7 +2839,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aNullableBoolArg = (Boolean) args.get(0); Number aNullableIntArg = (Number) args.get(1); @@ -2873,8 +2852,7 @@ static void setUp( aNullableStringArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2892,7 +2870,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number aNullableIntArg = (Number) args.get(0); try { @@ -2901,8 +2879,7 @@ static void setUp( (aNullableIntArg == null) ? null : aNullableIntArg.longValue()); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2920,15 +2897,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Double aNullableDoubleArg = (Double) args.get(0); try { Double output = api.echoNullableDouble(aNullableDoubleArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2946,15 +2922,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aNullableBoolArg = (Boolean) args.get(0); try { Boolean output = api.echoNullableBool(aNullableBoolArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2972,15 +2947,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aNullableStringArg = (String) args.get(0); try { String output = api.echoNullableString(aNullableStringArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -2998,15 +2972,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; byte[] aNullableUint8ListArg = (byte[]) args.get(0); try { byte[] output = api.echoNullableUint8List(aNullableUint8ListArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -3024,15 +2997,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Object aNullableObjectArg = args.get(0); try { Object output = api.echoNullableObject(aNullableObjectArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -3050,15 +3022,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; List aNullableListArg = (List) args.get(0); try { List output = api.echoNullableList(aNullableListArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -3076,15 +3047,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Map aNullableMapArg = (Map) args.get(0); try { Map output = api.echoNullableMap(aNullableMapArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -3102,15 +3072,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AnEnum anEnumArg = (AnEnum) args.get(0); try { AnEnum output = api.echoNullableEnum(anEnumArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -3128,7 +3097,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number aNullableIntArg = (Number) args.get(0); try { @@ -3137,8 +3106,7 @@ static void setUp( (aNullableIntArg == null) ? null : aNullableIntArg.longValue()); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -3156,15 +3124,14 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aNullableStringArg = (String) args.get(0); try { String output = api.echoNamedNullableString(aNullableStringArg); wrapped.add(0, output); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -3182,7 +3149,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); VoidResult resultCallback = new VoidResult() { public void success() { @@ -3212,7 +3179,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number anIntArg = (Number) args.get(0); Result resultCallback = @@ -3244,7 +3211,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Double aDoubleArg = (Double) args.get(0); Result resultCallback = @@ -3276,7 +3243,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aBoolArg = (Boolean) args.get(0); Result resultCallback = @@ -3308,7 +3275,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); Result resultCallback = @@ -3340,7 +3307,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; byte[] aUint8ListArg = (byte[]) args.get(0); Result resultCallback = @@ -3372,7 +3339,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Object anObjectArg = args.get(0); Result resultCallback = @@ -3404,7 +3371,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; List listArg = (List) args.get(0); Result> resultCallback = @@ -3436,7 +3403,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Map aMapArg = (Map) args.get(0); Result> resultCallback = @@ -3468,7 +3435,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AnEnum anEnumArg = (AnEnum) args.get(0); Result resultCallback = @@ -3500,7 +3467,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); NullableResult resultCallback = new NullableResult() { public void success(Object result) { @@ -3530,7 +3497,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); VoidResult resultCallback = new VoidResult() { public void success() { @@ -3560,7 +3527,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); NullableResult resultCallback = new NullableResult() { public void success(Object result) { @@ -3590,7 +3557,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllTypes everythingArg = (AllTypes) args.get(0); Result resultCallback = @@ -3622,7 +3589,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); NullableResult resultCallback = @@ -3654,7 +3621,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); @@ -3688,7 +3655,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number anIntArg = (Number) args.get(0); NullableResult resultCallback = @@ -3721,7 +3688,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Double aDoubleArg = (Double) args.get(0); NullableResult resultCallback = @@ -3753,7 +3720,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aBoolArg = (Boolean) args.get(0); NullableResult resultCallback = @@ -3785,7 +3752,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); NullableResult resultCallback = @@ -3817,7 +3784,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; byte[] aUint8ListArg = (byte[]) args.get(0); NullableResult resultCallback = @@ -3849,7 +3816,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Object anObjectArg = args.get(0); NullableResult resultCallback = @@ -3881,7 +3848,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; List listArg = (List) args.get(0); NullableResult> resultCallback = @@ -3913,7 +3880,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Map aMapArg = (Map) args.get(0); NullableResult> resultCallback = @@ -3945,7 +3912,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AnEnum anEnumArg = (AnEnum) args.get(0); NullableResult resultCallback = @@ -3977,7 +3944,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); VoidResult resultCallback = new VoidResult() { public void success() { @@ -4007,7 +3974,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); NullableResult resultCallback = new NullableResult() { public void success(Object result) { @@ -4037,7 +4004,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); VoidResult resultCallback = new VoidResult() { public void success() { @@ -4067,7 +4034,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllTypes everythingArg = (AllTypes) args.get(0); Result resultCallback = @@ -4099,7 +4066,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllNullableTypes everythingArg = (AllNullableTypes) args.get(0); NullableResult resultCallback = @@ -4131,7 +4098,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aNullableBoolArg = (Boolean) args.get(0); Number aNullableIntArg = (Number) args.get(1); @@ -4169,7 +4136,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AllNullableTypesWithoutRecursion everythingArg = (AllNullableTypesWithoutRecursion) args.get(0); @@ -4202,7 +4169,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aNullableBoolArg = (Boolean) args.get(0); Number aNullableIntArg = (Number) args.get(1); @@ -4240,7 +4207,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aBoolArg = (Boolean) args.get(0); Result resultCallback = @@ -4272,7 +4239,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number anIntArg = (Number) args.get(0); Result resultCallback = @@ -4305,7 +4272,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Double aDoubleArg = (Double) args.get(0); Result resultCallback = @@ -4337,7 +4304,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); Result resultCallback = @@ -4369,7 +4336,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; byte[] listArg = (byte[]) args.get(0); Result resultCallback = @@ -4401,7 +4368,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; List listArg = (List) args.get(0); Result> resultCallback = @@ -4433,7 +4400,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Map aMapArg = (Map) args.get(0); Result> resultCallback = @@ -4465,7 +4432,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AnEnum anEnumArg = (AnEnum) args.get(0); Result resultCallback = @@ -4497,7 +4464,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Boolean aBoolArg = (Boolean) args.get(0); NullableResult resultCallback = @@ -4529,7 +4496,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Number anIntArg = (Number) args.get(0); NullableResult resultCallback = @@ -4562,7 +4529,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Double aDoubleArg = (Double) args.get(0); NullableResult resultCallback = @@ -4594,7 +4561,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); NullableResult resultCallback = @@ -4626,7 +4593,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; byte[] listArg = (byte[]) args.get(0); NullableResult resultCallback = @@ -4658,7 +4625,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; List listArg = (List) args.get(0); NullableResult> resultCallback = @@ -4690,7 +4657,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; Map aMapArg = (Map) args.get(0); NullableResult> resultCallback = @@ -4722,7 +4689,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; AnEnum anEnumArg = (AnEnum) args.get(0); NullableResult resultCallback = @@ -4754,7 +4721,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); Result resultCallback = @@ -4798,8 +4765,7 @@ public FlutterIntegrationCoreApi( this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** Public interface for sending reply. */ - /** The codec used by FlutterIntegrationCoreApi. */ + /** Public interface for sending reply. The codec used by FlutterIntegrationCoreApi. */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } @@ -4820,9 +4786,7 @@ public void noop(@NonNull VoidResult result) { if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } @@ -4846,9 +4810,7 @@ public void throwError(@NonNull NullableResult result) { if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Object output = listReply.get(0); @@ -4874,9 +4836,7 @@ public void throwErrorFromVoid(@NonNull VoidResult result) { if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } @@ -4893,16 +4853,14 @@ public void echoAllTypes(@NonNull AllTypes everythingArg, @NonNull Result channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(everythingArg)), + new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -4929,16 +4887,14 @@ public void echoAllNullableTypes( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(everythingArg)), + new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AllNullableTypes output = (AllNullableTypes) listReply.get(0); @@ -4965,17 +4921,14 @@ public void sendMultipleNullableTypes( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList( - Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), + new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5002,16 +4955,14 @@ public void echoAllNullableTypesWithoutRecursion( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(everythingArg)), + new ArrayList<>(Collections.singletonList(everythingArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AllNullableTypesWithoutRecursion output = @@ -5039,17 +4990,14 @@ public void sendMultipleNullableTypesWithoutRecursion( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList( - Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), + new ArrayList<>(Arrays.asList(aNullableBoolArg, aNullableIntArg, aNullableStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5075,16 +5023,14 @@ public void echoBool(@NonNull Boolean aBoolArg, @NonNull Result result) BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aBoolArg)), + new ArrayList<>(Collections.singletonList(aBoolArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5109,16 +5055,14 @@ public void echoInt(@NonNull Long anIntArg, @NonNull Result result) { BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(anIntArg)), + new ArrayList<>(Collections.singletonList(anIntArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5144,16 +5088,14 @@ public void echoDouble(@NonNull Double aDoubleArg, @NonNull Result resul BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aDoubleArg)), + new ArrayList<>(Collections.singletonList(aDoubleArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5178,16 +5120,14 @@ public void echoString(@NonNull String aStringArg, @NonNull Result resul BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aStringArg)), + new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5212,16 +5152,14 @@ public void echoUint8List(@NonNull byte[] listArg, @NonNull Result resul BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(listArg)), + new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5246,16 +5184,14 @@ public void echoList(@NonNull List listArg, @NonNull Result BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(listArg)), + new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5281,16 +5217,14 @@ public void echoMap( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aMapArg)), + new ArrayList<>(Collections.singletonList(aMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5315,16 +5249,14 @@ public void echoEnum(@NonNull AnEnum anEnumArg, @NonNull Result result) BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(anEnumArg)), + new ArrayList<>(Collections.singletonList(anEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5350,16 +5282,14 @@ public void echoNullableBool( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aBoolArg)), + new ArrayList<>(Collections.singletonList(aBoolArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Boolean output = (Boolean) listReply.get(0); @@ -5378,16 +5308,14 @@ public void echoNullableInt(@Nullable Long anIntArg, @NonNull NullableResult channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(anIntArg)), + new ArrayList<>(Collections.singletonList(anIntArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Long output = @@ -5408,16 +5336,14 @@ public void echoNullableDouble( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aDoubleArg)), + new ArrayList<>(Collections.singletonList(aDoubleArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Double output = (Double) listReply.get(0); @@ -5437,16 +5363,14 @@ public void echoNullableString( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aStringArg)), + new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") String output = (String) listReply.get(0); @@ -5466,16 +5390,14 @@ public void echoNullableUint8List( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(listArg)), + new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") byte[] output = (byte[]) listReply.get(0); @@ -5495,16 +5417,14 @@ public void echoNullableList( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(listArg)), + new ArrayList<>(Collections.singletonList(listArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") List output = (List) listReply.get(0); @@ -5525,16 +5445,14 @@ public void echoNullableMap( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aMapArg)), + new ArrayList<>(Collections.singletonList(aMapArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") Map output = (Map) listReply.get(0); @@ -5554,16 +5472,14 @@ public void echoNullableEnum( BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(anEnumArg)), + new ArrayList<>(Collections.singletonList(anEnumArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { @SuppressWarnings("ConstantConditions") AnEnum output = (AnEnum) listReply.get(0); @@ -5592,9 +5508,7 @@ public void noopAsync(@NonNull VoidResult result) { if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else { result.success(); } @@ -5611,16 +5525,14 @@ public void echoAsyncString(@NonNull String aStringArg, @NonNull Result BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aStringArg)), + new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5671,13 +5583,12 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); try { api.noop(); wrapped.add(0, null); } catch (Throwable exception) { - ArrayList wrappedError = wrapError(exception); - wrapped = wrappedError; + wrapped = wrapError(exception); } reply.reply(wrapped); }); @@ -5722,7 +5633,7 @@ static void setUp( if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); ArrayList args = (ArrayList) message; String aStringArg = (String) args.get(0); Result resultCallback = @@ -5754,7 +5665,7 @@ public void error(Throwable error) { if (api != null) { channel.setMessageHandler( (message, reply) -> { - ArrayList wrapped = new ArrayList(); + ArrayList wrapped = new ArrayList<>(); VoidResult resultCallback = new VoidResult() { public void success() { @@ -5795,8 +5706,7 @@ public FlutterSmallApi( this.messageChannelSuffix = messageChannelSuffix.isEmpty() ? "" : "." + messageChannelSuffix; } - /** Public interface for sending reply. */ - /** The codec used by FlutterSmallApi. */ + /** Public interface for sending reply. The codec used by FlutterSmallApi. */ static @NonNull MessageCodec getCodec() { return PigeonCodec.INSTANCE; } @@ -5808,16 +5718,14 @@ public void echoWrappedList(@NonNull TestMessage msgArg, @NonNull Result channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(msgArg)), + new ArrayList<>(Collections.singletonList(msgArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( @@ -5842,16 +5750,14 @@ public void echoString(@NonNull String aStringArg, @NonNull Result resul BasicMessageChannel channel = new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); channel.send( - new ArrayList(Collections.singletonList(aStringArg)), + new ArrayList<>(Collections.singletonList(aStringArg)), channelReply -> { if (channelReply instanceof List) { List listReply = (List) channelReply; if (listReply.size() > 1) { result.error( new FlutterError( - (String) listReply.get(0), - (String) listReply.get(1), - (String) listReply.get(2))); + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); } else if (listReply.get(0) == null) { result.error( new FlutterError( diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m index 6dae6ff2abd..a97191102f5 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m @@ -428,21 +428,21 @@ @interface FLTCoreTestsPigeonCodecReader : FlutterStandardReader @implementation FLTCoreTestsPigeonCodecReader - (nullable id)readValueOfType:(UInt8)type { switch (type) { - case 129: - return [FLTAllTypes fromList:[self readValue]]; + case 129: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil ? nil + : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + } case 130: - return [FLTAllNullableTypes fromList:[self readValue]]; + return [FLTAllTypes fromList:[self readValue]]; case 131: - return [FLTAllNullableTypesWithoutRecursion fromList:[self readValue]]; + return [FLTAllNullableTypes fromList:[self readValue]]; case 132: - return [FLTAllClassesWrapper fromList:[self readValue]]; + return [FLTAllNullableTypesWithoutRecursion fromList:[self readValue]]; case 133: + return [FLTAllClassesWrapper fromList:[self readValue]]; + case 134: return [FLTTestMessage fromList:[self readValue]]; - case 134: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } default: return [super readValueOfType:type]; } @@ -453,25 +453,25 @@ @interface FLTCoreTestsPigeonCodecWriter : FlutterStandardWriter @end @implementation FLTCoreTestsPigeonCodecWriter - (void)writeValue:(id)value { - if ([value isKindOfClass:[FLTAllTypes class]]) { + if ([value isKindOfClass:[FLTAnEnumBox class]]) { + FLTAnEnumBox *box = (FLTAnEnumBox *)value; [self writeByte:129]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[FLTAllNullableTypes class]]) { + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTAllTypes class]]) { [self writeByte:130]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[FLTAllNullableTypesWithoutRecursion class]]) { + } else if ([value isKindOfClass:[FLTAllNullableTypes class]]) { [self writeByte:131]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[FLTAllClassesWrapper class]]) { + } else if ([value isKindOfClass:[FLTAllNullableTypesWithoutRecursion class]]) { [self writeByte:132]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[FLTTestMessage class]]) { + } else if ([value isKindOfClass:[FLTAllClassesWrapper class]]) { [self writeByte:133]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[FLTAnEnumBox class]]) { - FLTAnEnumBox *box = (FLTAnEnumBox *)value; + } else if ([value isKindOfClass:[FLTTestMessage class]]) { [self writeByte:134]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + [self writeValue:[value toList]]; } else { [super writeValue:value]; } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m index be3810ceae8..19301cbc418 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m @@ -426,21 +426,21 @@ @interface CoreTestsPigeonCodecReader : FlutterStandardReader @implementation CoreTestsPigeonCodecReader - (nullable id)readValueOfType:(UInt8)type { switch (type) { - case 129: - return [AllTypes fromList:[self readValue]]; + case 129: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil ? nil + : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + } case 130: - return [AllNullableTypes fromList:[self readValue]]; + return [AllTypes fromList:[self readValue]]; case 131: - return [AllNullableTypesWithoutRecursion fromList:[self readValue]]; + return [AllNullableTypes fromList:[self readValue]]; case 132: - return [AllClassesWrapper fromList:[self readValue]]; + return [AllNullableTypesWithoutRecursion fromList:[self readValue]]; case 133: + return [AllClassesWrapper fromList:[self readValue]]; + case 134: return [TestMessage fromList:[self readValue]]; - case 134: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } default: return [super readValueOfType:type]; } @@ -451,25 +451,25 @@ @interface CoreTestsPigeonCodecWriter : FlutterStandardWriter @end @implementation CoreTestsPigeonCodecWriter - (void)writeValue:(id)value { - if ([value isKindOfClass:[AllTypes class]]) { + if ([value isKindOfClass:[AnEnumBox class]]) { + AnEnumBox *box = (AnEnumBox *)value; [self writeByte:129]; - [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AllNullableTypes class]]) { + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[AllTypes class]]) { [self writeByte:130]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AllNullableTypesWithoutRecursion class]]) { + } else if ([value isKindOfClass:[AllNullableTypes class]]) { [self writeByte:131]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AllClassesWrapper class]]) { + } else if ([value isKindOfClass:[AllNullableTypesWithoutRecursion class]]) { [self writeByte:132]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[TestMessage class]]) { + } else if ([value isKindOfClass:[AllClassesWrapper class]]) { [self writeByte:133]; [self writeValue:[value toList]]; - } else if ([value isKindOfClass:[AnEnumBox class]]) { - AnEnumBox *box = (AnEnumBox *)value; + } else if ([value isKindOfClass:[TestMessage class]]) { [self writeByte:134]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + [self writeValue:[value toList]]; } else { [super writeValue:value]; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart index de771318eb6..da8935ec8f7 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart @@ -35,338 +35,328 @@ enum TargetGenerator { swift, } -/// Sets up and runs the integration tests. -void runPigeonIntegrationTests(TargetGenerator targetGenerator) { - IntegrationTestWidgetsFlutterBinding.ensureInitialized(); - - void compareAllTypes(AllTypes? allTypesOne, AllTypes? allTypesTwo) { - expect(allTypesOne == null, allTypesTwo == null); - if (allTypesOne == null || allTypesTwo == null) { - return; - } - expect(allTypesOne.aBool, allTypesTwo.aBool); - expect(allTypesOne.anInt, allTypesTwo.anInt); - expect(allTypesOne.anInt64, allTypesTwo.anInt64); - expect(allTypesOne.aDouble, allTypesTwo.aDouble); - expect(allTypesOne.aString, allTypesTwo.aString); - expect(allTypesOne.aByteArray, allTypesTwo.aByteArray); - expect(allTypesOne.a4ByteArray, allTypesTwo.a4ByteArray); - expect(allTypesOne.a8ByteArray, allTypesTwo.a8ByteArray); - expect(allTypesOne.aFloatArray, allTypesTwo.aFloatArray); - expect(allTypesOne.anEnum, allTypesTwo.anEnum); - expect(allTypesOne.anObject, allTypesTwo.anObject); - expect(listEquals(allTypesOne.list, allTypesTwo.list), true); - expect(listEquals(allTypesOne.stringList, allTypesTwo.stringList), true); - expect(listEquals(allTypesOne.boolList, allTypesTwo.boolList), true); - expect(listEquals(allTypesOne.doubleList, allTypesTwo.doubleList), true); - expect(listEquals(allTypesOne.intList, allTypesTwo.intList), true); - expect(mapEquals(allTypesOne.map, allTypesTwo.map), true); +void _compareAllTypes(AllTypes? allTypesOne, AllTypes? allTypesTwo) { + expect(allTypesOne == null, allTypesTwo == null); + if (allTypesOne == null || allTypesTwo == null) { + return; } + expect(allTypesOne.aBool, allTypesTwo.aBool); + expect(allTypesOne.anInt, allTypesTwo.anInt); + expect(allTypesOne.anInt64, allTypesTwo.anInt64); + expect(allTypesOne.aDouble, allTypesTwo.aDouble); + expect(allTypesOne.aString, allTypesTwo.aString); + expect(allTypesOne.aByteArray, allTypesTwo.aByteArray); + expect(allTypesOne.a4ByteArray, allTypesTwo.a4ByteArray); + expect(allTypesOne.a8ByteArray, allTypesTwo.a8ByteArray); + expect(allTypesOne.aFloatArray, allTypesTwo.aFloatArray); + expect(allTypesOne.anEnum, allTypesTwo.anEnum); + expect(allTypesOne.anObject, allTypesTwo.anObject); + expect(listEquals(allTypesOne.list, allTypesTwo.list), true); + expect(listEquals(allTypesOne.stringList, allTypesTwo.stringList), true); + expect(listEquals(allTypesOne.boolList, allTypesTwo.boolList), true); + expect(listEquals(allTypesOne.doubleList, allTypesTwo.doubleList), true); + expect(listEquals(allTypesOne.intList, allTypesTwo.intList), true); + expect(mapEquals(allTypesOne.map, allTypesTwo.map), true); +} - void compareAllNullableTypes(AllNullableTypes? allNullableTypesOne, - AllNullableTypes? allNullableTypesTwo) { - expect(allNullableTypesOne == null, allNullableTypesTwo == null); - if (allNullableTypesOne == null || allNullableTypesTwo == null) { - return; - } - expect( - allNullableTypesOne.aNullableBool, allNullableTypesTwo.aNullableBool); - expect(allNullableTypesOne.aNullableInt, allNullableTypesTwo.aNullableInt); - expect( - allNullableTypesOne.aNullableInt64, allNullableTypesTwo.aNullableInt64); - expect(allNullableTypesOne.aNullableDouble, - allNullableTypesTwo.aNullableDouble); - expect(allNullableTypesOne.aNullableString, - allNullableTypesTwo.aNullableString); - expect(allNullableTypesOne.aNullableByteArray, - allNullableTypesTwo.aNullableByteArray); - expect(allNullableTypesOne.aNullable4ByteArray, - allNullableTypesTwo.aNullable4ByteArray); - expect(allNullableTypesOne.aNullable8ByteArray, - allNullableTypesTwo.aNullable8ByteArray); - expect(allNullableTypesOne.aNullableFloatArray, - allNullableTypesTwo.aNullableFloatArray); - expect(allNullableTypesOne.nullableNestedList?.length, - allNullableTypesTwo.nullableNestedList?.length); - // TODO(stuartmorgan): Enable this once the Dart types are fixed; see - // https://github.com/flutter/flutter/issues/116117 - //for (int i = 0; i < allNullableTypesOne.nullableNestedList!.length; i++) { - // expect(listEquals(allNullableTypesOne.nullableNestedList![i], allNullableTypesTwo.nullableNestedList![i]), - // true); - //} - expect( - mapEquals(allNullableTypesOne.nullableMapWithAnnotations, - allNullableTypesTwo.nullableMapWithAnnotations), - true); - expect( - mapEquals(allNullableTypesOne.nullableMapWithObject, - allNullableTypesTwo.nullableMapWithObject), - true); - expect(allNullableTypesOne.aNullableObject, - allNullableTypesTwo.aNullableObject); - expect( - allNullableTypesOne.aNullableEnum, allNullableTypesTwo.aNullableEnum); - compareAllNullableTypes(allNullableTypesOne.allNullableTypes, - allNullableTypesTwo.allNullableTypes); - expect( - listEquals(allNullableTypesOne.list, allNullableTypesTwo.list), true); - expect( - listEquals( - allNullableTypesOne.stringList, allNullableTypesTwo.stringList), - true); - expect( - listEquals(allNullableTypesOne.boolList, allNullableTypesTwo.boolList), - true); - expect( - listEquals( - allNullableTypesOne.doubleList, allNullableTypesTwo.doubleList), - true); - expect(listEquals(allNullableTypesOne.intList, allNullableTypesTwo.intList), - true); - expect(allNullableTypesOne.nestedClassList?.length, - allNullableTypesTwo.nestedClassList?.length); - for (int i = 0; - i < (allNullableTypesOne.nestedClassList?.length ?? 0); - i++) { - compareAllNullableTypes(allNullableTypesOne.nestedClassList?[i], - allNullableTypesTwo.nestedClassList?[i]); - } - expect(mapEquals(allNullableTypesOne.map, allNullableTypesTwo.map), true); +void _compareAllNullableTypes(AllNullableTypes? allNullableTypesOne, + AllNullableTypes? allNullableTypesTwo) { + expect(allNullableTypesOne == null, allNullableTypesTwo == null); + if (allNullableTypesOne == null || allNullableTypesTwo == null) { + return; } - - void compareAllNullableTypesWithoutRecursion( - AllNullableTypesWithoutRecursion? allNullableTypesOne, - AllNullableTypesWithoutRecursion? allNullableTypesTwo) { - expect(allNullableTypesOne == null, allNullableTypesTwo == null); - if (allNullableTypesOne == null || allNullableTypesTwo == null) { - return; - } - expect( - allNullableTypesOne.aNullableBool, allNullableTypesTwo.aNullableBool); - expect(allNullableTypesOne.aNullableInt, allNullableTypesTwo.aNullableInt); - expect( - allNullableTypesOne.aNullableInt64, allNullableTypesTwo.aNullableInt64); - expect(allNullableTypesOne.aNullableDouble, - allNullableTypesTwo.aNullableDouble); - expect(allNullableTypesOne.aNullableString, - allNullableTypesTwo.aNullableString); - expect(allNullableTypesOne.aNullableByteArray, - allNullableTypesTwo.aNullableByteArray); - expect(allNullableTypesOne.aNullable4ByteArray, - allNullableTypesTwo.aNullable4ByteArray); - expect(allNullableTypesOne.aNullable8ByteArray, - allNullableTypesTwo.aNullable8ByteArray); - expect(allNullableTypesOne.aNullableFloatArray, - allNullableTypesTwo.aNullableFloatArray); - expect(allNullableTypesOne.nullableNestedList?.length, - allNullableTypesTwo.nullableNestedList?.length); - // TODO(stuartmorgan): Enable this once the Dart types are fixed; see - // https://github.com/flutter/flutter/issues/116117 - //for (int i = 0; i < allNullableTypesOne.nullableNestedList!.length; i++) { - // expect(listEquals(allNullableTypesOne.nullableNestedList![i], allNullableTypesTwo.nullableNestedList![i]), - // true); - //} - expect( - mapEquals(allNullableTypesOne.nullableMapWithAnnotations, - allNullableTypesTwo.nullableMapWithAnnotations), - true); - expect( - mapEquals(allNullableTypesOne.nullableMapWithObject, - allNullableTypesTwo.nullableMapWithObject), - true); - expect(allNullableTypesOne.aNullableObject, - allNullableTypesTwo.aNullableObject); - expect( - allNullableTypesOne.aNullableEnum, allNullableTypesTwo.aNullableEnum); - expect( - listEquals(allNullableTypesOne.list, allNullableTypesTwo.list), true); - expect( - listEquals( - allNullableTypesOne.stringList, allNullableTypesTwo.stringList), - true); - expect( - listEquals(allNullableTypesOne.boolList, allNullableTypesTwo.boolList), - true); - expect( - listEquals( - allNullableTypesOne.doubleList, allNullableTypesTwo.doubleList), - true); - expect(listEquals(allNullableTypesOne.intList, allNullableTypesTwo.intList), - true); - expect(mapEquals(allNullableTypesOne.map, allNullableTypesTwo.map), true); + expect(allNullableTypesOne.aNullableBool, allNullableTypesTwo.aNullableBool); + expect(allNullableTypesOne.aNullableInt, allNullableTypesTwo.aNullableInt); + expect( + allNullableTypesOne.aNullableInt64, allNullableTypesTwo.aNullableInt64); + expect( + allNullableTypesOne.aNullableDouble, allNullableTypesTwo.aNullableDouble); + expect( + allNullableTypesOne.aNullableString, allNullableTypesTwo.aNullableString); + expect(allNullableTypesOne.aNullableByteArray, + allNullableTypesTwo.aNullableByteArray); + expect(allNullableTypesOne.aNullable4ByteArray, + allNullableTypesTwo.aNullable4ByteArray); + expect(allNullableTypesOne.aNullable8ByteArray, + allNullableTypesTwo.aNullable8ByteArray); + expect(allNullableTypesOne.aNullableFloatArray, + allNullableTypesTwo.aNullableFloatArray); + expect(allNullableTypesOne.nullableNestedList?.length, + allNullableTypesTwo.nullableNestedList?.length); + // TODO(stuartmorgan): Enable this once the Dart types are fixed; see + // https://github.com/flutter/flutter/issues/116117 + //for (int i = 0; i < allNullableTypesOne.nullableNestedList!.length; i++) { + // expect(listEquals(allNullableTypesOne.nullableNestedList![i], allNullableTypesTwo.nullableNestedList![i]), + // true); + //} + expect( + mapEquals(allNullableTypesOne.nullableMapWithAnnotations, + allNullableTypesTwo.nullableMapWithAnnotations), + true); + expect( + mapEquals(allNullableTypesOne.nullableMapWithObject, + allNullableTypesTwo.nullableMapWithObject), + true); + expect( + allNullableTypesOne.aNullableObject, allNullableTypesTwo.aNullableObject); + expect(allNullableTypesOne.aNullableEnum, allNullableTypesTwo.aNullableEnum); + _compareAllNullableTypes(allNullableTypesOne.allNullableTypes, + allNullableTypesTwo.allNullableTypes); + expect(listEquals(allNullableTypesOne.list, allNullableTypesTwo.list), true); + expect( + listEquals( + allNullableTypesOne.stringList, allNullableTypesTwo.stringList), + true); + expect(listEquals(allNullableTypesOne.boolList, allNullableTypesTwo.boolList), + true); + expect( + listEquals( + allNullableTypesOne.doubleList, allNullableTypesTwo.doubleList), + true); + expect(listEquals(allNullableTypesOne.intList, allNullableTypesTwo.intList), + true); + expect(allNullableTypesOne.nestedClassList?.length, + allNullableTypesTwo.nestedClassList?.length); + for (int i = 0; i < (allNullableTypesOne.nestedClassList?.length ?? 0); i++) { + _compareAllNullableTypes(allNullableTypesOne.nestedClassList?[i], + allNullableTypesTwo.nestedClassList?[i]); } + expect(mapEquals(allNullableTypesOne.map, allNullableTypesTwo.map), true); +} - void compareAllClassesWrapper( - AllClassesWrapper? wrapperOne, AllClassesWrapper? wrapperTwo) { - expect(wrapperOne == null, wrapperTwo == null); - if (wrapperOne == null || wrapperTwo == null) { - return; - } - - compareAllNullableTypes( - wrapperOne.allNullableTypes, wrapperTwo.allNullableTypes); - compareAllNullableTypesWithoutRecursion( - wrapperOne.allNullableTypesWithoutRecursion, - wrapperTwo.allNullableTypesWithoutRecursion, - ); - compareAllTypes(wrapperOne.allTypes, wrapperTwo.allTypes); +void __compareAllNullableTypesWithoutRecursion( + AllNullableTypesWithoutRecursion? allNullableTypesOne, + AllNullableTypesWithoutRecursion? allNullableTypesTwo) { + expect(allNullableTypesOne == null, allNullableTypesTwo == null); + if (allNullableTypesOne == null || allNullableTypesTwo == null) { + return; } + expect(allNullableTypesOne.aNullableBool, allNullableTypesTwo.aNullableBool); + expect(allNullableTypesOne.aNullableInt, allNullableTypesTwo.aNullableInt); + expect( + allNullableTypesOne.aNullableInt64, allNullableTypesTwo.aNullableInt64); + expect( + allNullableTypesOne.aNullableDouble, allNullableTypesTwo.aNullableDouble); + expect( + allNullableTypesOne.aNullableString, allNullableTypesTwo.aNullableString); + expect(allNullableTypesOne.aNullableByteArray, + allNullableTypesTwo.aNullableByteArray); + expect(allNullableTypesOne.aNullable4ByteArray, + allNullableTypesTwo.aNullable4ByteArray); + expect(allNullableTypesOne.aNullable8ByteArray, + allNullableTypesTwo.aNullable8ByteArray); + expect(allNullableTypesOne.aNullableFloatArray, + allNullableTypesTwo.aNullableFloatArray); + expect(allNullableTypesOne.nullableNestedList?.length, + allNullableTypesTwo.nullableNestedList?.length); + // TODO(stuartmorgan): Enable this once the Dart types are fixed; see + // https://github.com/flutter/flutter/issues/116117 + //for (int i = 0; i < allNullableTypesOne.nullableNestedList!.length; i++) { + // expect(listEquals(allNullableTypesOne.nullableNestedList![i], allNullableTypesTwo.nullableNestedList![i]), + // true); + //} + expect( + mapEquals(allNullableTypesOne.nullableMapWithAnnotations, + allNullableTypesTwo.nullableMapWithAnnotations), + true); + expect( + mapEquals(allNullableTypesOne.nullableMapWithObject, + allNullableTypesTwo.nullableMapWithObject), + true); + expect( + allNullableTypesOne.aNullableObject, allNullableTypesTwo.aNullableObject); + expect(allNullableTypesOne.aNullableEnum, allNullableTypesTwo.aNullableEnum); + expect(listEquals(allNullableTypesOne.list, allNullableTypesTwo.list), true); + expect( + listEquals( + allNullableTypesOne.stringList, allNullableTypesTwo.stringList), + true); + expect(listEquals(allNullableTypesOne.boolList, allNullableTypesTwo.boolList), + true); + expect( + listEquals( + allNullableTypesOne.doubleList, allNullableTypesTwo.doubleList), + true); + expect(listEquals(allNullableTypesOne.intList, allNullableTypesTwo.intList), + true); + expect(mapEquals(allNullableTypesOne.map, allNullableTypesTwo.map), true); +} - final Map map = { - 'a': 1, - 'b': 2.0, - 'c': 'three', - 'd': false, - 'e': null - }; - - final List list = [ - 'Thing 1', - 2, - true, - 3.14, - null, - ]; - - final List stringList = [ - 'Thing 1', - '2', - 'true', - '3.14', - null, - ]; - - final List intList = [ - 1, - 2, - 3, - 4, - null, - ]; - - final List doubleList = [ - 1, - 2.99999, - 3, - 3.14, - null, - ]; - - final List boolList = [ - true, - false, - true, - false, - null, - ]; - - final AllTypes genericAllTypes = AllTypes( - aBool: true, - anInt: _regularInt, - anInt64: _biggerThanBigInt, - aDouble: _doublePi, - aString: 'Hello host!', - aByteArray: Uint8List.fromList([1, 2, 3]), - a4ByteArray: Int32List.fromList([4, 5, 6]), - a8ByteArray: Int64List.fromList([7, 8, 9]), - aFloatArray: Float64List.fromList([2.71828, _doublePi]), - anEnum: AnEnum.fortyTwo, - anObject: 1, - list: list, - stringList: stringList, - intList: intList, - doubleList: doubleList, - boolList: boolList, - map: map, - ); +void _compareAllClassesWrapper( + AllClassesWrapper? wrapperOne, AllClassesWrapper? wrapperTwo) { + expect(wrapperOne == null, wrapperTwo == null); + if (wrapperOne == null || wrapperTwo == null) { + return; + } - final AllNullableTypes genericAllNullableTypes = AllNullableTypes( - aNullableBool: true, - aNullableInt: _regularInt, - aNullableInt64: _biggerThanBigInt, - aNullableDouble: _doublePi, - aNullableString: 'Hello host!', - aNullableByteArray: Uint8List.fromList([1, 2, 3]), - aNullable4ByteArray: Int32List.fromList([4, 5, 6]), - aNullable8ByteArray: Int64List.fromList([7, 8, 9]), - aNullableFloatArray: Float64List.fromList([2.71828, _doublePi]), - nullableNestedList: >[ - [true, false], - [false, true] - ], - nullableMapWithAnnotations: {}, - nullableMapWithObject: {}, - aNullableEnum: AnEnum.fourHundredTwentyTwo, - aNullableObject: 0, - list: list, - stringList: stringList, - intList: intList, - doubleList: doubleList, - boolList: boolList, - map: map, + _compareAllNullableTypes( + wrapperOne.allNullableTypes, wrapperTwo.allNullableTypes); + __compareAllNullableTypesWithoutRecursion( + wrapperOne.allNullableTypesWithoutRecursion, + wrapperTwo.allNullableTypesWithoutRecursion, ); + _compareAllTypes(wrapperOne.allTypes, wrapperTwo.allTypes); +} - final List allNullableTypesList = [ - genericAllNullableTypes, - AllNullableTypes(), - null, - ]; - - final AllNullableTypes recursiveAllNullableTypes = AllNullableTypes( - aNullableBool: true, - aNullableInt: _regularInt, - aNullableInt64: _biggerThanBigInt, - aNullableDouble: _doublePi, - aNullableString: 'Hello host!', - aNullableByteArray: Uint8List.fromList([1, 2, 3]), - aNullable4ByteArray: Int32List.fromList([4, 5, 6]), - aNullable8ByteArray: Int64List.fromList([7, 8, 9]), - aNullableFloatArray: Float64List.fromList([2.71828, _doublePi]), - nullableNestedList: >[ - [true, false], - [false, true] - ], - nullableMapWithAnnotations: {}, - nullableMapWithObject: {}, - aNullableEnum: AnEnum.fourHundredTwentyTwo, - aNullableObject: 0, - allNullableTypes: genericAllNullableTypes, - list: list, - stringList: stringList, - intList: intList, - doubleList: doubleList, - boolList: boolList, - nestedClassList: allNullableTypesList, - map: map, - ); +final Map _map = { + 'a': 1, + 'b': 2.0, + 'c': 'three', + 'd': false, + 'e': null +}; + +final List _list = [ + 'Thing 1', + 2, + true, + 3.14, + null, +]; + +final List _stringList = [ + 'Thing 1', + '2', + 'true', + '3.14', + null, +]; + +final List _intList = [ + 1, + 2, + 3, + 4, + null, +]; + +final List _doubleList = [ + 1, + 2.99999, + 3, + 3.14, + null, +]; + +final List _boolList = [ + true, + false, + true, + false, + null, +]; + +final AllTypes _genericAllTypes = AllTypes( + aBool: true, + anInt: _regularInt, + anInt64: _biggerThanBigInt, + aDouble: _doublePi, + aString: 'Hello host!', + aByteArray: Uint8List.fromList([1, 2, 3]), + a4ByteArray: Int32List.fromList([4, 5, 6]), + a8ByteArray: Int64List.fromList([7, 8, 9]), + aFloatArray: Float64List.fromList([2.71828, _doublePi]), + anEnum: AnEnum.fortyTwo, + anObject: 1, + list: _list, + stringList: _stringList, + intList: _intList, + doubleList: _doubleList, + boolList: _boolList, + map: _map, +); + +final AllNullableTypes _genericAllNullableTypes = AllNullableTypes( + aNullableBool: true, + aNullableInt: _regularInt, + aNullableInt64: _biggerThanBigInt, + aNullableDouble: _doublePi, + aNullableString: 'Hello host!', + aNullableByteArray: Uint8List.fromList([1, 2, 3]), + aNullable4ByteArray: Int32List.fromList([4, 5, 6]), + aNullable8ByteArray: Int64List.fromList([7, 8, 9]), + aNullableFloatArray: Float64List.fromList([2.71828, _doublePi]), + nullableNestedList: >[ + [true, false], + [false, true] + ], + nullableMapWithAnnotations: {}, + nullableMapWithObject: {}, + aNullableEnum: AnEnum.fourHundredTwentyTwo, + aNullableObject: 0, + list: _list, + stringList: _stringList, + intList: _intList, + doubleList: _doubleList, + boolList: _boolList, + map: _map, +); + +final List _allNullableTypesList = [ + _genericAllNullableTypes, + AllNullableTypes(), + null, +]; + +final AllNullableTypes _recursiveAllNullableTypes = AllNullableTypes( + aNullableBool: true, + aNullableInt: _regularInt, + aNullableInt64: _biggerThanBigInt, + aNullableDouble: _doublePi, + aNullableString: 'Hello host!', + aNullableByteArray: Uint8List.fromList([1, 2, 3]), + aNullable4ByteArray: Int32List.fromList([4, 5, 6]), + aNullable8ByteArray: Int64List.fromList([7, 8, 9]), + aNullableFloatArray: Float64List.fromList([2.71828, _doublePi]), + nullableNestedList: >[ + [true, false], + [false, true] + ], + nullableMapWithAnnotations: {}, + nullableMapWithObject: {}, + aNullableEnum: AnEnum.fourHundredTwentyTwo, + aNullableObject: 0, + allNullableTypes: _genericAllNullableTypes, + list: _list, + stringList: _stringList, + intList: _intList, + doubleList: _doubleList, + boolList: _boolList, + nestedClassList: _allNullableTypesList, + map: _map, +); + +final AllNullableTypesWithoutRecursion + __genericAllNullableTypesWithoutRecursion = + AllNullableTypesWithoutRecursion( + aNullableBool: true, + aNullableInt: _regularInt, + aNullableInt64: _biggerThanBigInt, + aNullableDouble: _doublePi, + aNullableString: 'Hello host!', + aNullableByteArray: Uint8List.fromList([1, 2, 3]), + aNullable4ByteArray: Int32List.fromList([4, 5, 6]), + aNullable8ByteArray: Int64List.fromList([7, 8, 9]), + aNullableFloatArray: Float64List.fromList([2.71828, _doublePi]), + nullableNestedList: >[ + [true, false], + [false, true] + ], + nullableMapWithAnnotations: {}, + nullableMapWithObject: {}, + aNullableEnum: AnEnum.fourHundredTwentyTwo, + aNullableObject: 0, + list: _list, + stringList: _stringList, + intList: _intList, + doubleList: _doubleList, + boolList: _boolList, + map: _map, +); - final AllNullableTypesWithoutRecursion - genericAllNullableTypesWithoutRecursion = - AllNullableTypesWithoutRecursion( - aNullableBool: true, - aNullableInt: _regularInt, - aNullableInt64: _biggerThanBigInt, - aNullableDouble: _doublePi, - aNullableString: 'Hello host!', - aNullableByteArray: Uint8List.fromList([1, 2, 3]), - aNullable4ByteArray: Int32List.fromList([4, 5, 6]), - aNullable8ByteArray: Int64List.fromList([7, 8, 9]), - aNullableFloatArray: Float64List.fromList([2.71828, _doublePi]), - nullableNestedList: >[ - [true, false], - [false, true] - ], - nullableMapWithAnnotations: {}, - nullableMapWithObject: {}, - aNullableEnum: AnEnum.fourHundredTwentyTwo, - aNullableObject: 0, - list: list, - stringList: stringList, - intList: intList, - doubleList: doubleList, - boolList: boolList, - map: map, - ); +/// Sets up and runs the integration tests. +void runPigeonIntegrationTests(TargetGenerator targetGenerator) { + IntegrationTestWidgetsFlutterBinding.ensureInitialized(); group('Host sync API tests', () { testWidgets('basic void->void call works', (WidgetTester _) async { @@ -379,8 +369,8 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); - final AllTypes echoObject = await api.echoAllTypes(genericAllTypes); - compareAllTypes(echoObject, genericAllTypes); + final AllTypes echoObject = await api.echoAllTypes(_genericAllTypes); + _compareAllTypes(echoObject, _genericAllTypes); }); testWidgets('all nullable datatypes serialize and deserialize correctly', @@ -388,9 +378,9 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); final AllNullableTypes? echoObject = - await api.echoAllNullableTypes(recursiveAllNullableTypes); + await api.echoAllNullableTypes(_recursiveAllNullableTypes); - compareAllNullableTypes(echoObject, recursiveAllNullableTypes); + _compareAllNullableTypes(echoObject, _recursiveAllNullableTypes); }); testWidgets('all null datatypes serialize and deserialize correctly', @@ -401,7 +391,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypes? echoNullFilledClass = await api.echoAllNullableTypes(allTypesNull); - compareAllNullableTypes(allTypesNull, echoNullFilledClass); + _compareAllNullableTypes(allTypesNull, echoNullFilledClass); }); testWidgets('Classes with list of null serialize and deserialize correctly', @@ -414,7 +404,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypes? echoNullFilledClass = await api.echoAllNullableTypes(nullableListTypes); - compareAllNullableTypes(nullableListTypes, echoNullFilledClass); + _compareAllNullableTypes(nullableListTypes, echoNullFilledClass); }); testWidgets('Classes with map of null serialize and deserialize correctly', @@ -427,7 +417,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypes? echoNullFilledClass = await api.echoAllNullableTypes(nullableListTypes); - compareAllNullableTypes(nullableListTypes, echoNullFilledClass); + _compareAllNullableTypes(nullableListTypes, echoNullFilledClass); }); testWidgets( @@ -437,10 +427,10 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypesWithoutRecursion? echoObject = await api.echoAllNullableTypesWithoutRecursion( - genericAllNullableTypesWithoutRecursion); + __genericAllNullableTypesWithoutRecursion); - compareAllNullableTypesWithoutRecursion( - echoObject, genericAllNullableTypesWithoutRecursion); + __compareAllNullableTypesWithoutRecursion( + echoObject, __genericAllNullableTypesWithoutRecursion); }); testWidgets( @@ -453,7 +443,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypesWithoutRecursion? echoNullFilledClass = await api.echoAllNullableTypesWithoutRecursion(allTypesNull); - compareAllNullableTypesWithoutRecursion( + __compareAllNullableTypesWithoutRecursion( allTypesNull, echoNullFilledClass); }); @@ -470,7 +460,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypesWithoutRecursion? echoNullFilledClass = await api.echoAllNullableTypesWithoutRecursion(nullableListTypes); - compareAllNullableTypesWithoutRecursion( + __compareAllNullableTypesWithoutRecursion( nullableListTypes, echoNullFilledClass); }); @@ -487,7 +477,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypesWithoutRecursion? echoNullFilledClass = await api.echoAllNullableTypesWithoutRecursion(nullableListTypes); - compareAllNullableTypesWithoutRecursion( + __compareAllNullableTypesWithoutRecursion( nullableListTypes, echoNullFilledClass); }); @@ -525,10 +515,10 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); final AllClassesWrapper sentObject = AllClassesWrapper( - allNullableTypes: recursiveAllNullableTypes, + allNullableTypes: _recursiveAllNullableTypes, allNullableTypesWithoutRecursion: - genericAllNullableTypesWithoutRecursion, - allTypes: genericAllTypes); + __genericAllNullableTypesWithoutRecursion, + allTypes: _genericAllTypes); final String? receivedString = await api.extractNestedNullableString(sentObject); @@ -552,12 +542,12 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllClassesWrapper sentWrapper = AllClassesWrapper( allNullableTypes: AllNullableTypes(), allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion(), - allTypes: genericAllTypes, + allTypes: _genericAllTypes, ); final AllClassesWrapper receivedClassWrapper = await api.echoClassWrapper(sentWrapper); - compareAllClassesWrapper(sentWrapper, receivedClassWrapper); + _compareAllClassesWrapper(sentWrapper, receivedClassWrapper); }); testWidgets('nested null classes can serialize and deserialize correctly', @@ -571,7 +561,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllClassesWrapper receivedClassWrapper = await api.echoClassWrapper(sentWrapper); - compareAllClassesWrapper(sentWrapper, receivedClassWrapper); + _compareAllClassesWrapper(sentWrapper, receivedClassWrapper); }); testWidgets( @@ -1069,9 +1059,9 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); - final AllTypes echoObject = await api.echoAsyncAllTypes(genericAllTypes); + final AllTypes echoObject = await api.echoAsyncAllTypes(_genericAllTypes); - compareAllTypes(echoObject, genericAllTypes); + _compareAllTypes(echoObject, _genericAllTypes); }); testWidgets( @@ -1080,9 +1070,9 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); final AllNullableTypes? echoObject = await api - .echoAsyncNullableAllNullableTypes(recursiveAllNullableTypes); + .echoAsyncNullableAllNullableTypes(_recursiveAllNullableTypes); - compareAllNullableTypes(echoObject, recursiveAllNullableTypes); + _compareAllNullableTypes(echoObject, _recursiveAllNullableTypes); }); testWidgets('all null datatypes async serialize and deserialize correctly', @@ -1093,7 +1083,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypes? echoNullFilledClass = await api.echoAsyncNullableAllNullableTypes(allTypesNull); - compareAllNullableTypes(echoNullFilledClass, allTypesNull); + _compareAllNullableTypes(echoNullFilledClass, allTypesNull); }); testWidgets( @@ -1103,10 +1093,10 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypesWithoutRecursion? echoObject = await api.echoAsyncNullableAllNullableTypesWithoutRecursion( - genericAllNullableTypesWithoutRecursion); + __genericAllNullableTypesWithoutRecursion); - compareAllNullableTypesWithoutRecursion( - echoObject, genericAllNullableTypesWithoutRecursion); + __compareAllNullableTypesWithoutRecursion( + echoObject, __genericAllNullableTypesWithoutRecursion); }); testWidgets( @@ -1119,7 +1109,7 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AllNullableTypesWithoutRecursion? echoNullFilledClass = await api .echoAsyncNullableAllNullableTypesWithoutRecursion(allTypesNull); - compareAllNullableTypesWithoutRecursion( + __compareAllNullableTypesWithoutRecursion( echoNullFilledClass, allTypesNull); }); @@ -1521,9 +1511,9 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); final AllTypes echoObject = - await api.callFlutterEchoAllTypes(genericAllTypes); + await api.callFlutterEchoAllTypes(_genericAllTypes); - compareAllTypes(echoObject, genericAllTypes); + _compareAllTypes(echoObject, _genericAllTypes); }); testWidgets( diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index e192a84ceea..2e81e18c6e0 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -454,24 +454,24 @@ class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is AllTypes) { + if (value is AnEnum) { buffer.putUint8(129); - writeValue(buffer, value.encode()); - } else if (value is AllNullableTypes) { + writeValue(buffer, value.index); + } else if (value is AllTypes) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is AllNullableTypesWithoutRecursion) { + } else if (value is AllNullableTypes) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is AllClassesWrapper) { + } else if (value is AllNullableTypesWithoutRecursion) { buffer.putUint8(132); writeValue(buffer, value.encode()); - } else if (value is TestMessage) { + } else if (value is AllClassesWrapper) { buffer.putUint8(133); writeValue(buffer, value.encode()); - } else if (value is AnEnum) { + } else if (value is TestMessage) { buffer.putUint8(134); - writeValue(buffer, value.index); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -481,18 +481,18 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: - return AllTypes.decode(readValue(buffer)!); + final int? value = readValue(buffer) as int?; + return value == null ? null : AnEnum.values[value]; case 130: - return AllNullableTypes.decode(readValue(buffer)!); + return AllTypes.decode(readValue(buffer)!); case 131: - return AllNullableTypesWithoutRecursion.decode(readValue(buffer)!); + return AllNullableTypes.decode(readValue(buffer)!); case 132: - return AllClassesWrapper.decode(readValue(buffer)!); + return AllNullableTypesWithoutRecursion.decode(readValue(buffer)!); case 133: - return TestMessage.decode(readValue(buffer)!); + return AllClassesWrapper.decode(readValue(buffer)!); case 134: - final int? value = readValue(buffer) as int?; - return value == null ? null : AnEnum.values[value]; + return TestMessage.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index e2ca92672ed..a39861dd91c 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -72,12 +72,12 @@ class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is DataWithEnum) { + if (value is EnumState) { buffer.putUint8(129); - writeValue(buffer, value.encode()); - } else if (value is EnumState) { - buffer.putUint8(130); writeValue(buffer, value.index); + } else if (value is DataWithEnum) { + buffer.putUint8(130); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -87,10 +87,10 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: - return DataWithEnum.decode(readValue(buffer)!); - case 130: final int? value = readValue(buffer) as int?; return value == null ? null : EnumState.values[value]; + case 130: + return DataWithEnum.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index fb7e65c9483..1ad6988735f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -144,18 +144,18 @@ class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is MessageSearchRequest) { + if (value is MessageRequestState) { buffer.putUint8(129); - writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + writeValue(buffer, value.index); + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageRequestState) { + } else if (value is MessageNested) { buffer.putUint8(132); - writeValue(buffer, value.index); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -165,14 +165,14 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: - return MessageSearchRequest.decode(readValue(buffer)!); + final int? value = readValue(buffer) as int?; + return value == null ? null : MessageRequestState.values[value]; case 130: - return MessageSearchReply.decode(readValue(buffer)!); + return MessageSearchRequest.decode(readValue(buffer)!); case 131: - return MessageNested.decode(readValue(buffer)!); + return MessageSearchReply.decode(readValue(buffer)!); case 132: - final int? value = readValue(buffer) as int?; - return value == null ? null : MessageRequestState.values[value]; + return MessageNested.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index c9c7fe5a638..6ff899f13a0 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -127,18 +127,18 @@ class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is NonNullFieldSearchRequest) { + if (value is ReplyType) { buffer.putUint8(129); - writeValue(buffer, value.encode()); - } else if (value is ExtraData) { + writeValue(buffer, value.index); + } else if (value is NonNullFieldSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is NonNullFieldSearchReply) { + } else if (value is ExtraData) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is ReplyType) { + } else if (value is NonNullFieldSearchReply) { buffer.putUint8(132); - writeValue(buffer, value.index); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -148,14 +148,14 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: - return NonNullFieldSearchRequest.decode(readValue(buffer)!); + final int? value = readValue(buffer) as int?; + return value == null ? null : ReplyType.values[value]; case 130: - return ExtraData.decode(readValue(buffer)!); + return NonNullFieldSearchRequest.decode(readValue(buffer)!); case 131: - return NonNullFieldSearchReply.decode(readValue(buffer)!); + return ExtraData.decode(readValue(buffer)!); case 132: - final int? value = readValue(buffer) as int?; - return value == null ? null : ReplyType.values[value]; + return NonNullFieldSearchReply.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 578a7c28c31..7a97035fdf8 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -106,15 +106,15 @@ class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is NullFieldsSearchRequest) { + if (value is NullFieldsSearchReplyType) { buffer.putUint8(129); - writeValue(buffer, value.encode()); - } else if (value is NullFieldsSearchReply) { + writeValue(buffer, value.index); + } else if (value is NullFieldsSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is NullFieldsSearchReplyType) { + } else if (value is NullFieldsSearchReply) { buffer.putUint8(131); - writeValue(buffer, value.index); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -124,12 +124,12 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: - return NullFieldsSearchRequest.decode(readValue(buffer)!); - case 130: - return NullFieldsSearchReply.decode(readValue(buffer)!); - case 131: final int? value = readValue(buffer) as int?; return value == null ? null : NullFieldsSearchReplyType.values[value]; + case 130: + return NullFieldsSearchRequest.decode(readValue(buffer)!); + case 131: + return NullFieldsSearchReply.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart index 27add325337..d050d9648eb 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart @@ -18,18 +18,18 @@ class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is MessageSearchRequest) { + if (value is MessageRequestState) { buffer.putUint8(129); - writeValue(buffer, value.encode()); - } else if (value is MessageSearchReply) { + writeValue(buffer, value.index); + } else if (value is MessageSearchRequest) { buffer.putUint8(130); writeValue(buffer, value.encode()); - } else if (value is MessageNested) { + } else if (value is MessageSearchReply) { buffer.putUint8(131); writeValue(buffer, value.encode()); - } else if (value is MessageRequestState) { + } else if (value is MessageNested) { buffer.putUint8(132); - writeValue(buffer, value.index); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -39,14 +39,14 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: - return MessageSearchRequest.decode(readValue(buffer)!); + final int? value = readValue(buffer) as int?; + return value == null ? null : MessageRequestState.values[value]; case 130: - return MessageSearchReply.decode(readValue(buffer)!); + return MessageSearchRequest.decode(readValue(buffer)!); case 131: - return MessageNested.decode(readValue(buffer)!); + return MessageSearchReply.decode(readValue(buffer)!); case 132: - final int? value = readValue(buffer) as int?; - return value == null ? null : MessageRequestState.values[value]; + return MessageNested.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index f90b5119611..bb7c03a99bf 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -390,7 +390,6 @@ data class AllClassesWrapper( * Generated class from Pigeon that represents data sent in messages. */ data class TestMessage(val testList: List? = null) { - companion object { @Suppress("LocalVariableName") fun fromList(__pigeon_list: List): TestMessage { @@ -410,24 +409,24 @@ private object CoreTestsPigeonCodec : StandardMessageCodec() { override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { return when (type) { 129.toByte() -> { - return (readValue(buffer) as? List)?.let { AllTypes.fromList(it) } + return (readValue(buffer) as Int?)?.let { AnEnum.ofRaw(it) } } 130.toByte() -> { - return (readValue(buffer) as? List)?.let { AllNullableTypes.fromList(it) } + return (readValue(buffer) as? List)?.let { AllTypes.fromList(it) } } 131.toByte() -> { + return (readValue(buffer) as? List)?.let { AllNullableTypes.fromList(it) } + } + 132.toByte() -> { return (readValue(buffer) as? List)?.let { AllNullableTypesWithoutRecursion.fromList(it) } } - 132.toByte() -> { - return (readValue(buffer) as? List)?.let { AllClassesWrapper.fromList(it) } - } 133.toByte() -> { - return (readValue(buffer) as? List)?.let { TestMessage.fromList(it) } + return (readValue(buffer) as? List)?.let { AllClassesWrapper.fromList(it) } } 134.toByte() -> { - return (readValue(buffer) as Int?)?.let { AnEnum.ofRaw(it) } + return (readValue(buffer) as? List)?.let { TestMessage.fromList(it) } } else -> super.readValueOfType(type, buffer) } @@ -435,29 +434,29 @@ private object CoreTestsPigeonCodec : StandardMessageCodec() { override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { when (value) { - is AllTypes -> { + is AnEnum -> { stream.write(129) - writeValue(stream, value.toList()) + writeValue(stream, value.raw) } - is AllNullableTypes -> { + is AllTypes -> { stream.write(130) writeValue(stream, value.toList()) } - is AllNullableTypesWithoutRecursion -> { + is AllNullableTypes -> { stream.write(131) writeValue(stream, value.toList()) } - is AllClassesWrapper -> { + is AllNullableTypesWithoutRecursion -> { stream.write(132) writeValue(stream, value.toList()) } - is TestMessage -> { + is AllClassesWrapper -> { stream.write(133) writeValue(stream, value.toList()) } - is AnEnum -> { + is TestMessage -> { stream.write(134) - writeValue(stream, value.raw) + writeValue(stream, value.toList()) } else -> super.writeValue(stream, value) } diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index 2b95f040b48..a4f373741b2 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -490,26 +490,29 @@ struct TestMessage { ] } } + private class CoreTestsPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - return AllTypes.fromList(self.readValue() as! [Any?]) - case 130: - return AllNullableTypes.fromList(self.readValue() as! [Any?]) - case 131: - return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) - case 132: - return AllClassesWrapper.fromList(self.readValue() as! [Any?]) - case 133: - return TestMessage.fromList(self.readValue() as! [Any?]) - case 134: var enumResult: AnEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { enumResult = AnEnum(rawValue: enumResultAsInt) } return enumResult + case 130: + return AllTypes.fromList(self.readValue() as! [Any?]) + case 131: + return AllNullableTypes.fromList(self.readValue() as! [Any?]) + case 132: + return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) + case 133: + return AllClassesWrapper.fromList(self.readValue() as! [Any?]) + case 134: + return TestMessage.fromList(self.readValue() as! [Any?]) + case 255: + return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } @@ -518,24 +521,24 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { override func writeValue(_ value: Any) { - if let value = value as? AllTypes { + if let value = value as? AnEnum { super.writeByte(129) - super.writeValue(value.toList()) - } else if let value = value as? AllNullableTypes { + super.writeValue(value.rawValue) + } else if let value = value as? AllTypes { super.writeByte(130) super.writeValue(value.toList()) - } else if let value = value as? AllNullableTypesWithoutRecursion { + } else if let value = value as? AllNullableTypes { super.writeByte(131) super.writeValue(value.toList()) - } else if let value = value as? AllClassesWrapper { + } else if let value = value as? AllNullableTypesWithoutRecursion { super.writeByte(132) super.writeValue(value.toList()) - } else if let value = value as? TestMessage { + } else if let value = value as? AllClassesWrapper { super.writeByte(133) super.writeValue(value.toList()) - } else if let value = value as? AnEnum { + } else if let value = value as? TestMessage { super.writeByte(134) - super.writeValue(value.rawValue) + super.writeValue(value.toList()) } else { super.writeValue(value) } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index fddf46a03a8..65a3f797eb5 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -227,7 +227,7 @@ static FlValue* core_tests_pigeon_test_all_types_to_list( values, fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); fl_value_append_take(values, - fl_value_new_custom(134, fl_value_new_int(self->an_enum), + fl_value_new_custom(129, fl_value_new_int(self->an_enum), (GDestroyNotify)fl_value_unref)); fl_value_append_take(values, fl_value_new_string(self->a_string)); fl_value_append_take(values, fl_value_ref(self->an_object)); @@ -730,7 +730,7 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( fl_value_append_take( values, self->a_nullable_enum != nullptr - ? fl_value_new_custom(134, fl_value_new_int(*self->a_nullable_enum), + ? fl_value_new_custom(129, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); fl_value_append_take(values, @@ -743,7 +743,7 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( fl_value_append_take( values, self->all_nullable_types != nullptr - ? fl_value_new_custom_object(130, G_OBJECT(self->all_nullable_types)) + ? fl_value_new_custom_object(131, G_OBJECT(self->all_nullable_types)) : fl_value_new_null()); fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) : fl_value_new_null()); @@ -1359,7 +1359,7 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( fl_value_append_take( values, self->a_nullable_enum != nullptr - ? fl_value_new_custom(134, fl_value_new_int(*self->a_nullable_enum), + ? fl_value_new_custom(129, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); fl_value_append_take(values, @@ -1609,16 +1609,16 @@ static FlValue* core_tests_pigeon_test_all_classes_wrapper_to_list( CoreTestsPigeonTestAllClassesWrapper* self) { FlValue* values = fl_value_new_list(); fl_value_append_take(values, fl_value_new_custom_object( - 130, G_OBJECT(self->all_nullable_types))); + 131, G_OBJECT(self->all_nullable_types))); fl_value_append_take( values, self->all_nullable_types_without_recursion != nullptr ? fl_value_new_custom_object( - 131, G_OBJECT(self->all_nullable_types_without_recursion)) + 132, G_OBJECT(self->all_nullable_types_without_recursion)) : fl_value_new_null()); fl_value_append_take( values, self->all_types != nullptr - ? fl_value_new_custom_object(129, G_OBJECT(self->all_types)) + ? fl_value_new_custom_object(130, G_OBJECT(self->all_types)) : fl_value_new_null()); return values; } @@ -1722,11 +1722,20 @@ G_DEFINE_TYPE(CoreTestsPigeonTestMessageCodec, core_tests_pigeon_test_message_codec, fl_standard_message_codec_get_type()) +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 129; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllTypes* value, GError** error) { - uint8_t type = 129; + uint8_t type = 130; g_byte_array_append(buffer, &type, sizeof(uint8_t)); g_autoptr(FlValue) values = core_tests_pigeon_test_all_types_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); @@ -1736,7 +1745,7 @@ static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllNullableTypes* value, GError** error) { - uint8_t type = 130; + uint8_t type = 131; g_byte_array_append(buffer, &type, sizeof(uint8_t)); g_autoptr(FlValue) values = core_tests_pigeon_test_all_nullable_types_to_list(value); @@ -1748,7 +1757,7 @@ core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_t FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, GError** error) { - uint8_t type = 131; + uint8_t type = 132; g_byte_array_append(buffer, &type, sizeof(uint8_t)); g_autoptr(FlValue) values = core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( @@ -1760,7 +1769,7 @@ static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { - uint8_t type = 132; + uint8_t type = 133; g_byte_array_append(buffer, &type, sizeof(uint8_t)); g_autoptr(FlValue) values = core_tests_pigeon_test_all_classes_wrapper_to_list(value); @@ -1771,63 +1780,54 @@ static gboolean core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( FlStandardMessageCodec* codec, GByteArray* buffer, CoreTestsPigeonTestTestMessage* value, GError** error) { - uint8_t type = 133; + uint8_t type = 134; g_byte_array_append(buffer, &type, sizeof(uint8_t)); g_autoptr(FlValue) values = core_tests_pigeon_test_test_message_to_list(value); return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 134; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - static gboolean core_tests_pigeon_test_message_codec_write_value( FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { switch (fl_value_get_custom_type(value)) { case 129: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 130: return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_TYPES( fl_value_get_custom_value_object(value)), error); - case 130: + case 131: return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( fl_value_get_custom_value_object(value)), error); - case 131: + case 132: return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( fl_value_get_custom_value_object(value)), error); - case 132: + case 133: return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( codec, buffer, CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( fl_value_get_custom_value_object(value)), error); - case 133: + case 134: return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( codec, buffer, CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( fl_value_get_custom_value_object(value)), error); - case 134: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); } } @@ -1836,6 +1836,15 @@ static gboolean core_tests_pigeon_test_message_codec_write_value( ->write_value(codec, buffer, value, error); } +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 129, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + static FlValue* core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, @@ -1854,7 +1863,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( return nullptr; } - return fl_value_new_custom_object(129, G_OBJECT(value)); + return fl_value_new_custom_object(130, G_OBJECT(value)); } static FlValue* @@ -1875,7 +1884,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_ty return nullptr; } - return fl_value_new_custom_object(130, G_OBJECT(value)); + return fl_value_new_custom_object(131, G_OBJECT(value)); } static FlValue* @@ -1897,7 +1906,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_ty return nullptr; } - return fl_value_new_custom_object(131, G_OBJECT(value)); + return fl_value_new_custom_object(132, G_OBJECT(value)); } static FlValue* @@ -1918,7 +1927,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wra return nullptr; } - return fl_value_new_custom_object(132, G_OBJECT(value)); + return fl_value_new_custom_object(133, G_OBJECT(value)); } static FlValue* @@ -1939,16 +1948,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( return nullptr; } - return fl_value_new_custom_object(133, G_OBJECT(value)); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 134, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); + return fl_value_new_custom_object(134, G_OBJECT(value)); } static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( @@ -1956,22 +1956,22 @@ static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( GError** error) { switch (type) { case 129: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( codec, buffer, offset, error); case 130: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( codec, buffer, offset, error); case 131: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( codec, buffer, offset, error); case 132: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( codec, buffer, offset, error); case 133: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( codec, buffer, offset, error); case 134: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( codec, buffer, offset, error); default: return FL_STANDARD_MESSAGE_CODEC_CLASS( @@ -2148,7 +2148,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(129, G_OBJECT(return_value))); + fl_value_new_custom_object(130, G_OBJECT(return_value))); return self; } @@ -2918,7 +2918,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(132, G_OBJECT(return_value))); + fl_value_new_custom_object(133, G_OBJECT(return_value))); return self; } @@ -2982,7 +2982,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(134, fl_value_new_int(return_value), + fl_value_new_custom(129, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -3249,7 +3249,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_respons self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(130, G_OBJECT(return_value)) + ? fl_value_new_custom_object(131, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -3320,7 +3320,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(return_value)) + ? fl_value_new_custom_object(132, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -3459,7 +3459,7 @@ core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_r nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(132, G_OBJECT(return_value))); + fl_value_new_custom_object(133, G_OBJECT(return_value))); return self; } @@ -3527,7 +3527,7 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_re nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(130, G_OBJECT(return_value))); + fl_value_new_custom_object(131, G_OBJECT(return_value))); return self; } @@ -3596,7 +3596,7 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_wi nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(131, G_OBJECT(return_value))); + fl_value_new_custom_object(132, G_OBJECT(return_value))); return self; } @@ -4205,7 +4205,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(134, fl_value_new_int(*return_value), + ? fl_value_new_custom(129, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -5052,7 +5052,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(134, fl_value_new_int(return_value), + fl_value_new_custom(129, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -5345,7 +5345,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_n nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(129, G_OBJECT(return_value))); + fl_value_new_custom_object(130, G_OBJECT(return_value))); return self; } @@ -5422,7 +5422,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullabl self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(130, G_OBJECT(return_value)) + ? fl_value_new_custom_object(131, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -5500,7 +5500,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullabl self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(return_value)) + ? fl_value_new_custom_object(132, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -6173,7 +6173,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_respon fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(134, fl_value_new_int(*return_value), + ? fl_value_new_custom(129, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -6467,7 +6467,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_res nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(129, G_OBJECT(return_value))); + fl_value_new_custom_object(130, G_OBJECT(return_value))); return self; } @@ -6544,7 +6544,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_ self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(130, G_OBJECT(return_value)) + ? fl_value_new_custom_object(131, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -6621,7 +6621,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(130, G_OBJECT(return_value))); + fl_value_new_custom_object(131, G_OBJECT(return_value))); return self; } @@ -6698,7 +6698,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_ self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(return_value)) + ? fl_value_new_custom_object(132, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -6775,7 +6775,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(131, G_OBJECT(return_value))); + fl_value_new_custom_object(132, G_OBJECT(return_value))); return self; } @@ -7354,7 +7354,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(134, fl_value_new_int(return_value), + fl_value_new_custom(129, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -7966,7 +7966,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(134, fl_value_new_int(*return_value), + ? fl_value_new_custom(129, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -14503,7 +14503,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types( GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, - fl_value_new_custom_object(129, G_OBJECT(everything))); + fl_value_new_custom_object(130, G_OBJECT(everything))); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." "echoAllTypes%s", @@ -14678,7 +14678,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, everything != nullptr - ? fl_value_new_custom_object(130, G_OBJECT(everything)) + ? fl_value_new_custom_object(131, G_OBJECT(everything)) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -15036,7 +15036,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, everything != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(everything)) + ? fl_value_new_custom_object(132, G_OBJECT(everything)) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -16502,7 +16502,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_enum( GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, - fl_value_new_custom(134, fl_value_new_int(an_enum), + fl_value_new_custom(129, fl_value_new_int(an_enum), (GDestroyNotify)fl_value_unref)); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -17885,7 +17885,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum( g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, an_enum != nullptr - ? fl_value_new_custom(134, fl_value_new_int(*an_enum), + ? fl_value_new_custom(129, fl_value_new_int(*an_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( @@ -18918,7 +18918,7 @@ void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list( CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, fl_value_new_custom_object(133, G_OBJECT(msg))); + fl_value_append_take(args, fl_value_new_custom_object(134, G_OBJECT(msg))); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi." "echoWrappedList%s", diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index 2b95f040b48..a4f373741b2 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -490,26 +490,29 @@ struct TestMessage { ] } } + private class CoreTestsPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - return AllTypes.fromList(self.readValue() as! [Any?]) - case 130: - return AllNullableTypes.fromList(self.readValue() as! [Any?]) - case 131: - return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) - case 132: - return AllClassesWrapper.fromList(self.readValue() as! [Any?]) - case 133: - return TestMessage.fromList(self.readValue() as! [Any?]) - case 134: var enumResult: AnEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { enumResult = AnEnum(rawValue: enumResultAsInt) } return enumResult + case 130: + return AllTypes.fromList(self.readValue() as! [Any?]) + case 131: + return AllNullableTypes.fromList(self.readValue() as! [Any?]) + case 132: + return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) + case 133: + return AllClassesWrapper.fromList(self.readValue() as! [Any?]) + case 134: + return TestMessage.fromList(self.readValue() as! [Any?]) + case 255: + return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } @@ -518,24 +521,24 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { override func writeValue(_ value: Any) { - if let value = value as? AllTypes { + if let value = value as? AnEnum { super.writeByte(129) - super.writeValue(value.toList()) - } else if let value = value as? AllNullableTypes { + super.writeValue(value.rawValue) + } else if let value = value as? AllTypes { super.writeByte(130) super.writeValue(value.toList()) - } else if let value = value as? AllNullableTypesWithoutRecursion { + } else if let value = value as? AllNullableTypes { super.writeByte(131) super.writeValue(value.toList()) - } else if let value = value as? AllClassesWrapper { + } else if let value = value as? AllNullableTypesWithoutRecursion { super.writeByte(132) super.writeValue(value.toList()) - } else if let value = value as? TestMessage { + } else if let value = value as? AllClassesWrapper { super.writeByte(133) super.writeValue(value.toList()) - } else if let value = value as? AnEnum { + } else if let value = value as? TestMessage { super.writeByte(134) - super.writeValue(value.rawValue) + super.writeValue(value.toList()) } else { super.writeValue(value) } diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index c97dc064a96..bc0f9f0b1f6 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -1528,29 +1528,34 @@ PigeonCodecSerializer::PigeonCodecSerializer() {} EncodableValue PigeonCodecSerializer::ReadValueOfType( uint8_t type, flutter::ByteStreamReader* stream) const { switch (type) { - case 129: + case 129: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue(static_cast(enum_arg_value)); + } + case 130: { return CustomEncodableValue(AllTypes::FromEncodableList( std::get(ReadValue(stream)))); - case 130: + } + case 131: { return CustomEncodableValue(AllNullableTypes::FromEncodableList( std::get(ReadValue(stream)))); - case 131: + } + case 132: { return CustomEncodableValue( AllNullableTypesWithoutRecursion::FromEncodableList( std::get(ReadValue(stream)))); - case 132: + } + case 133: { return CustomEncodableValue(AllClassesWrapper::FromEncodableList( std::get(ReadValue(stream)))); - case 133: + } + case 134: { return CustomEncodableValue(TestMessage::FromEncodableList( std::get(ReadValue(stream)))); - case 134: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue(static_cast(enum_arg_value)); } default: return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); @@ -1561,15 +1566,22 @@ void PigeonCodecSerializer::WriteValue( const EncodableValue& value, flutter::ByteStreamWriter* stream) const { if (const CustomEncodableValue* custom_value = std::get_if(&value)) { - if (custom_value->type() == typeid(AllTypes)) { + if (custom_value->type() == typeid(AnEnum)) { stream->WriteByte(129); + WriteValue(EncodableValue( + static_cast(std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(AllTypes)) { + stream->WriteByte(130); WriteValue(EncodableValue( std::any_cast(*custom_value).ToEncodableList()), stream); return; } if (custom_value->type() == typeid(AllNullableTypes)) { - stream->WriteByte(130); + stream->WriteByte(131); WriteValue( EncodableValue( std::any_cast(*custom_value).ToEncodableList()), @@ -1577,7 +1589,7 @@ void PigeonCodecSerializer::WriteValue( return; } if (custom_value->type() == typeid(AllNullableTypesWithoutRecursion)) { - stream->WriteByte(131); + stream->WriteByte(132); WriteValue(EncodableValue(std::any_cast( *custom_value) .ToEncodableList()), @@ -1585,27 +1597,20 @@ void PigeonCodecSerializer::WriteValue( return; } if (custom_value->type() == typeid(AllClassesWrapper)) { - stream->WriteByte(132); + stream->WriteByte(133); WriteValue(EncodableValue(std::any_cast(*custom_value) .ToEncodableList()), stream); return; } if (custom_value->type() == typeid(TestMessage)) { - stream->WriteByte(133); + stream->WriteByte(134); WriteValue( EncodableValue( std::any_cast(*custom_value).ToEncodableList()), stream); return; } - if (custom_value->type() == typeid(AnEnum)) { - stream->WriteByte(134); - WriteValue(EncodableValue( - static_cast(std::any_cast(*custom_value))), - stream); - return; - } } flutter::StandardCodecSerializer::WriteValue(value, stream); } diff --git a/packages/pigeon/pubspec.yaml b/packages/pigeon/pubspec.yaml index 31832931d45..e7a708d2e92 100644 --- a/packages/pigeon/pubspec.yaml +++ b/packages/pigeon/pubspec.yaml @@ -2,7 +2,7 @@ name: pigeon description: Code generator tool to make communication between Flutter and the host platform type-safe and easier. repository: https://github.com/flutter/packages/tree/main/packages/pigeon issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+pigeon%22 -version: 21.1.0 # This must match the version in lib/generator_tools.dart +version: 21.2.0 # This must match the version in lib/generator_tools.dart environment: sdk: ^3.2.0 diff --git a/packages/pigeon/test/java_generator_test.dart b/packages/pigeon/test/java_generator_test.dart index 3982c25150b..b58fe1ef739 100644 --- a/packages/pigeon/test/java_generator_test.dart +++ b/packages/pigeon/test/java_generator_test.dart @@ -85,7 +85,7 @@ void main() { expect(code, contains(' TWO_THREE_FOUR(1),')); expect(code, contains(' REMOTE_DB(2);')); expect(code, contains('final int index;')); - expect(code, contains('private Foobar(final int index) {')); + expect(code, contains('Foobar(final int index) {')); expect(code, contains(' this.index = index;')); }); @@ -118,7 +118,6 @@ void main() { ); final String code = sink.toString(); expect(code, contains('package com.google.foobar;')); - expect(code, contains('ArrayList toList()')); }); test('gen one host api', () { @@ -187,7 +186,6 @@ void main() { contains(RegExp( r'@NonNull\s*protected static ArrayList wrapError\(@NonNull Throwable exception\)'))); expect(code, isNot(contains('ArrayList '))); - expect(code, isNot(contains('ArrayList<>'))); }); test('all the simple datatypes header', () { @@ -736,7 +734,7 @@ void main() { expect(code, contains(' TWO_THREE_FOUR(1),')); expect(code, contains(' REMOTE_DB(2);')); expect(code, contains('final int index;')); - expect(code, contains('private Enum1(final int index) {')); + expect(code, contains('Enum1(final int index) {')); expect(code, contains(' this.index = index;')); expect(code, contains('toListResult.add(enum1);')); @@ -1159,7 +1157,7 @@ void main() { expect( code, contains(RegExp( - r'channel.send\(\s*new ArrayList\(Arrays.asList\(xArg, yArg\)\),\s*channelReply ->'))); + r'channel.send\(\s*new ArrayList<>\(Arrays.asList\(xArg, yArg\)\),\s*channelReply ->'))); }); test('flutter single args', () { @@ -1191,7 +1189,7 @@ void main() { expect( code, contains(RegExp( - r'channel.send\(\s*new ArrayList\(Collections.singletonList\(xArg\)\),\s*channelReply ->'))); + r'channel.send\(\s*new ArrayList<>\(Collections.singletonList\(xArg\)\),\s*channelReply ->'))); }); test('return nullable host', () { diff --git a/packages/pigeon/test/objc_generator_test.dart b/packages/pigeon/test/objc_generator_test.dart index 84146be42db..734145e2c24 100644 --- a/packages/pigeon/test/objc_generator_test.dart +++ b/packages/pigeon/test/objc_generator_test.dart @@ -248,7 +248,7 @@ void main() { contains( 'return enumAsNumber == nil ? nil : [[ACFooBox alloc] initWithValue:[enumAsNumber integerValue]];')); - expect(code, contains('ACFooBox * box = (ACFooBox *)value;')); + expect(code, contains('ACFooBox *box = (ACFooBox *)value;')); } }); diff --git a/packages/pigeon/tool/generate.dart b/packages/pigeon/tool/generate.dart index ecb465c1394..883cd2003a3 100644 --- a/packages/pigeon/tool/generate.dart +++ b/packages/pigeon/tool/generate.dart @@ -23,6 +23,7 @@ const String _noFormatFlag = 'no-format'; const String _files = 'files'; const String _test = 'test'; const String _example = 'example'; +const String _overflowFiller = 'overflow'; const List _fileGroups = [_test, _example]; @@ -43,6 +44,13 @@ Future main(List args) async { ) ..addFlag(_helpFlag, negatable: false, abbr: 'h', help: 'Print this reference.') + ..addFlag( + _overflowFiller, + abbr: 'o', + help: + 'Injects 120 Enums into the pigeon ast, used for testing overflow utilities.', + hide: true, + ) ..addMultiOption(_files, help: 'Select specific groups of files to generate; $_test or $_example. Defaults to both.', @@ -59,13 +67,16 @@ ${parser.usage}'''); final String baseDir = p.dirname(p.dirname(Platform.script.toFilePath())); + final bool overflow = argResults.wasParsed(_overflowFiller); + final List toGenerate = argResults.wasParsed(_files) ? argResults[_files] as List : _fileGroups; if (toGenerate.contains(_test)) { print('Generating platform_test/ output...'); - final int generateExitCode = await generateTestPigeons(baseDir: baseDir); + final int generateExitCode = + await generateTestPigeons(baseDir: baseDir, overflow: overflow); if (generateExitCode == 0) { print('Generation complete!'); } else { diff --git a/packages/pigeon/tool/run_tests.dart b/packages/pigeon/tool/run_tests.dart index ec5487b49e3..3306bcb29cc 100644 --- a/packages/pigeon/tool/run_tests.dart +++ b/packages/pigeon/tool/run_tests.dart @@ -238,5 +238,5 @@ Future main(List args) async { exit(2); } - await runTests(testsToRun, ciMode: true); + await runTests(testsToRun, ciMode: true, overflow: true); } diff --git a/packages/pigeon/tool/shared/generation.dart b/packages/pigeon/tool/shared/generation.dart index fe3c85b7fc7..70d85da0d06 100644 --- a/packages/pigeon/tool/shared/generation.dart +++ b/packages/pigeon/tool/shared/generation.dart @@ -55,7 +55,8 @@ Future generateExamplePigeons() async { ); } -Future generateTestPigeons({required String baseDir}) async { +Future generateTestPigeons( + {required String baseDir, bool overflow = false}) async { // TODO(stuartmorgan): Make this dynamic rather than hard-coded. Or eliminate // it entirely; see https://github.com/flutter/flutter/issues/115169. const List inputs = [ @@ -132,6 +133,7 @@ Future generateTestPigeons({required String baseDir}) async { ? null : '$outputBase/windows/pigeon/$input.gen.cpp', cppNamespace: '${input}_pigeontest', + injectOverflowTypes: overflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; @@ -148,6 +150,7 @@ Future generateTestPigeons({required String baseDir}) async { swiftErrorClassName: swiftErrorClassName, suppressVersion: true, dartPackageName: 'pigeon_integration_tests', + injectOverflowTypes: overflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; @@ -174,6 +177,7 @@ Future generateTestPigeons({required String baseDir}) async { objcPrefix: input == 'core_tests' ? 'FLT' : '', suppressVersion: true, dartPackageName: 'pigeon_integration_tests', + injectOverflowTypes: overflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; @@ -192,6 +196,7 @@ Future generateTestPigeons({required String baseDir}) async { : '$alternateOutputBase/macos/Classes/$pascalCaseName.gen.m', suppressVersion: true, dartPackageName: 'pigeon_integration_tests', + injectOverflowTypes: overflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; @@ -225,6 +230,7 @@ Future runPigeon({ String copyrightHeader = './copyright_header.txt', String? basePath, String? dartPackageName, + bool injectOverflowTypes = false, }) async { // Temporarily suppress the version output via the global flag if requested. // This is done because having the version in all the generated test output @@ -238,36 +244,39 @@ Future runPigeon({ if (suppressVersion) { includeVersionInGeneratedWarning = false; } - final int result = await Pigeon.runWithOptions(PigeonOptions( - input: input, - copyrightHeader: copyrightHeader, - dartOut: dartOut, - dartTestOut: dartTestOut, - dartOptions: const DartOptions(), - cppHeaderOut: cppHeaderOut, - cppSourceOut: cppSourceOut, - cppOptions: CppOptions(namespace: cppNamespace), - gobjectHeaderOut: gobjectHeaderOut, - gobjectSourceOut: gobjectSourceOut, - gobjectOptions: GObjectOptions(module: gobjectModule), - javaOut: javaOut, - javaOptions: JavaOptions(package: javaPackage), - kotlinOut: kotlinOut, - kotlinOptions: KotlinOptions( - package: kotlinPackage, - errorClassName: kotlinErrorClassName, - includeErrorClass: kotlinIncludeErrorClass, + final int result = await Pigeon.runWithOptions( + PigeonOptions( + input: input, + copyrightHeader: copyrightHeader, + dartOut: dartOut, + dartTestOut: dartTestOut, + dartOptions: const DartOptions(), + cppHeaderOut: cppHeaderOut, + cppSourceOut: cppSourceOut, + cppOptions: CppOptions(namespace: cppNamespace), + gobjectHeaderOut: gobjectHeaderOut, + gobjectSourceOut: gobjectSourceOut, + gobjectOptions: GObjectOptions(module: gobjectModule), + javaOut: javaOut, + javaOptions: JavaOptions(package: javaPackage), + kotlinOut: kotlinOut, + kotlinOptions: KotlinOptions( + package: kotlinPackage, + errorClassName: kotlinErrorClassName, + includeErrorClass: kotlinIncludeErrorClass, + ), + objcHeaderOut: objcHeaderOut, + objcSourceOut: objcSourceOut, + objcOptions: ObjcOptions(prefix: objcPrefix), + swiftOut: swiftOut, + swiftOptions: SwiftOptions( + errorClassName: swiftErrorClassName, + ), + basePath: basePath, + dartPackageName: dartPackageName, ), - objcHeaderOut: objcHeaderOut, - objcSourceOut: objcSourceOut, - objcOptions: ObjcOptions(prefix: objcPrefix), - swiftOut: swiftOut, - swiftOptions: SwiftOptions( - errorClassName: swiftErrorClassName, - ), - basePath: basePath, - dartPackageName: dartPackageName, - )); + injectOverflowTypes: injectOverflowTypes, + ); includeVersionInGeneratedWarning = originalWarningSetting; return result; } diff --git a/packages/pigeon/tool/shared/test_runner.dart b/packages/pigeon/tool/shared/test_runner.dart index f222bf74c5b..0d2eafd378f 100644 --- a/packages/pigeon/tool/shared/test_runner.dart +++ b/packages/pigeon/tool/shared/test_runner.dart @@ -18,31 +18,67 @@ Future runTests( bool runFormat = false, bool runGeneration = true, bool ciMode = false, + bool overflow = false, }) async { final String baseDir = p.dirname(p.dirname(Platform.script.toFilePath())); if (runGeneration) { - // Pre-generate the necessary common output files. - // TODO(stuartmorgan): Consider making this conditional on the specific - // tests being run, as not all of them need these files. - print('# Generating platform_test/ output...'); - final int generateExitCode = await generateTestPigeons(baseDir: baseDir); - if (generateExitCode == 0) { - print('Generation complete!'); - } else { - print('Generation failed; see above for errors.'); - } + await _runGenerate(baseDir); } if (runFormat) { - print('Formatting generated output...'); - final int formatExitCode = - await formatAllFiles(repositoryRoot: p.dirname(p.dirname(baseDir))); - if (formatExitCode != 0) { - print('Formatting failed; see above for errors.'); - exit(formatExitCode); + await _runFormat(baseDir); + } + + await _runTests(testsToRun, ciMode: ciMode); + + if (overflow) { + await _runGenerate(baseDir, overflow: true); + + await _runTests(testsToRun + .where((String test) => + test.contains('integration') && !test.contains('linux')) + .toList()); + + if (!ciMode) { + await _runGenerate(baseDir); + } + + if (!ciMode && (runFormat || !runGeneration)) { + await _runFormat(baseDir); } } +} +// Pre-generate the necessary common output files. +Future _runGenerate(String baseDir, {bool overflow = false}) async { + // TODO(stuartmorgan): Consider making this conditional on the specific + // tests being run, as not all of them need these files. + print('# Generating platform_test/ output...'); + final int generateExitCode = await generateTestPigeons( + baseDir: baseDir, + overflow: overflow, + ); + if (generateExitCode == 0) { + print('Generation complete!'); + } else { + print('Generation failed; see above for errors.'); + } +} + +Future _runFormat(String baseDir) async { + print('Formatting generated output...'); + final int formatExitCode = + await formatAllFiles(repositoryRoot: p.dirname(p.dirname(baseDir))); + if (formatExitCode != 0) { + print('Formatting failed; see above for errors.'); + exit(formatExitCode); + } +} + +Future _runTests( + List testsToRun, { + bool ciMode = true, +}) async { for (final String test in testsToRun) { final TestInfo? info = testSuites[test]; if (info != null) { diff --git a/packages/pigeon/tool/test.dart b/packages/pigeon/tool/test.dart index 4dea945fef7..641d8246d9d 100644 --- a/packages/pigeon/tool/test.dart +++ b/packages/pigeon/tool/test.dart @@ -23,6 +23,7 @@ const String _testFlag = 'test'; const String _noGen = 'no-generation'; const String _listFlag = 'list'; const String _format = 'format'; +const String _overflow = 'overflow'; Future main(List args) async { final ArgParser parser = ArgParser() @@ -31,6 +32,10 @@ Future main(List args) async { abbr: 'g', help: 'Skips the generation step.', negatable: false) ..addFlag(_format, abbr: 'f', help: 'Formats generated test files before running tests.') + ..addFlag(_overflow, + help: + 'Generates overflow files for integration tests, runs tests with and without overflow files.', + abbr: 'o') ..addFlag(_listFlag, negatable: false, abbr: 'l', help: 'List available tests.') ..addFlag('help', @@ -122,5 +127,6 @@ ${parser.usage}'''); testsToRun, runGeneration: !argResults.wasParsed(_noGen), runFormat: argResults.wasParsed(_format), + overflow: argResults.wasParsed(_overflow), ); } From 832a7ccad3b94a54b1308c927573347eced8751b Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Fri, 2 Aug 2024 21:03:50 -0700 Subject: [PATCH 02/14] fix swift and windows bugs, more add overflow logic to ast --- .../example/app/ios/Runner/Messages.g.swift | 2 -- packages/pigeon/lib/ast.dart | 6 ++++++ packages/pigeon/lib/cpp_generator.dart | 20 ++++++++----------- packages/pigeon/lib/dart_generator.dart | 4 ++-- packages/pigeon/lib/java_generator.dart | 4 ++-- packages/pigeon/lib/kotlin_generator.dart | 4 ++-- packages/pigeon/lib/objc_generator.dart | 6 +++--- packages/pigeon/lib/swift_generator.dart | 6 ++++-- .../ios/Classes/CoreTests.gen.swift | 2 -- .../macos/Classes/CoreTests.gen.swift | 2 -- 10 files changed, 27 insertions(+), 29 deletions(-) diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index ef27b50cb39..db2a3a47a02 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -121,8 +121,6 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { return enumResult case 130: return MessageData.fromList(self.readValue() as! [Any?]) - case 255: - return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } diff --git a/packages/pigeon/lib/ast.dart b/packages/pigeon/lib/ast.dart index b3469b03295..8151ef9f092 100644 --- a/packages/pigeon/lib/ast.dart +++ b/packages/pigeon/lib/ast.dart @@ -4,6 +4,7 @@ import 'package:collection/collection.dart' show ListEquality; import 'package:meta/meta.dart'; +import 'generator_tools.dart'; import 'pigeon_lib.dart'; typedef _ListEquals = bool Function(List, List); @@ -755,6 +756,11 @@ class Root extends Node { /// All of the enums contained in the AST. List enums; + /// Returns true if the number of custom types would exceed the available enumerations + /// on the standard codec. + bool get requiresOverflowClass => + classes.length + enums.length >= totalCustomCodecKeysAllowed; + @override String toString() { return '(Root classes:$classes apis:$apis enums:$enums)'; diff --git a/packages/pigeon/lib/cpp_generator.dart b/packages/pigeon/lib/cpp_generator.dart index b6db742b5ed..80b7432937a 100644 --- a/packages/pigeon/lib/cpp_generator.dart +++ b/packages/pigeon/lib/cpp_generator.dart @@ -248,7 +248,7 @@ class CppHeaderGenerator extends StructuredGenerator { indent, dartPackageName: dartPackageName, ); - if (getEnumeratedTypes(root).length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { writeDataClass( generatorOptions, root, @@ -374,9 +374,7 @@ class CppHeaderGenerator extends StructuredGenerator { _writeFunctionDeclaration(indent, 'Unwrap', returnType: 'flutter::EncodableValue'); } - if (!overflow && - root.classes.length + root.enums.length >= - totalCustomCodecKeysAllowed) { + if (!overflow && root.requiresOverflowClass) { indent.writeln('friend class $_overflowClassName;'); } for (final Class friend in root.classes) { @@ -967,11 +965,9 @@ EncodableValue __pigeon_CodecOverflow::FromEncodableList( indent.writeln('return EncodableValue();'); }); indent.writeScoped('switch(type_) {', '}', () { - for (final EnumeratedType type in types) { - if (type.enumeration >= maximumCodecFieldKey) { - indent.write('case ${type.enumeration - maximumCodecFieldKey}: '); - _writeCodecDecode(indent, type, 'wrapped_'); - } + for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { + indent.write('case ${types[i].enumeration - maximumCodecFieldKey}: '); + _writeCodecDecode(indent, types[i], 'wrapped_'); } }); indent.writeln('return EncodableValue();'); @@ -982,7 +978,7 @@ EncodableValue __pigeon_CodecOverflow::FromEncodableList( Indent indent, EnumeratedType customType, String value) { indent.addScoped('{', '}', () { if (customType.type == CustomTypes.customClass) { - if (customType.enumeration == maximumCodecFieldKey) { + if (customType.name == _overflowClassName) { indent.writeln( 'return ${customType.name}::FromEncodableList(std::get($value));'); } else { @@ -1009,7 +1005,7 @@ EncodableValue __pigeon_CodecOverflow::FromEncodableList( final List enumeratedTypes = getEnumeratedTypes(root).toList(); indent.newln(); - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { _writeCodecOverflowUtilities( generatorOptions, root, indent, enumeratedTypes, dartPackageName: dartPackageName); @@ -1035,7 +1031,7 @@ EncodableValue __pigeon_CodecOverflow::FromEncodableList( }); } } - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { indent.write('case 255:'); _writeCodecDecode(indent, _enumeratedOverflow, 'ReadValue(stream)'); } diff --git a/packages/pigeon/lib/dart_generator.dart b/packages/pigeon/lib/dart_generator.dart index ce9076da53a..136c4771bae 100644 --- a/packages/pigeon/lib/dart_generator.dart +++ b/packages/pigeon/lib/dart_generator.dart @@ -332,7 +332,7 @@ class DartGenerator extends StructuredGenerator { indent.newln(); final List enumeratedTypes = getEnumeratedTypes(root).toList(); - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { _writeCodecOverflowUtilities(indent, enumeratedTypes); } indent.newln(); @@ -362,7 +362,7 @@ class DartGenerator extends StructuredGenerator { writeDecodeLogic(customType); } } - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { writeDecodeLogic(overflowClass); } indent.writeln('default:'); diff --git a/packages/pigeon/lib/java_generator.dart b/packages/pigeon/lib/java_generator.dart index 15db7fb513b..980ca14e93b 100644 --- a/packages/pigeon/lib/java_generator.dart +++ b/packages/pigeon/lib/java_generator.dart @@ -516,7 +516,7 @@ class JavaGenerator extends StructuredGenerator { final EnumeratedType overflowClass = EnumeratedType( _overflowClassName, maximumCodecFieldKey, CustomTypes.customClass); - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { _writeCodecOverflowUtilities( generatorOptions, root, @@ -544,7 +544,7 @@ class JavaGenerator extends StructuredGenerator { writeDecodeLogic(customType); } } - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { writeDecodeLogic(overflowClass); } indent.writeln('default:'); diff --git a/packages/pigeon/lib/kotlin_generator.dart b/packages/pigeon/lib/kotlin_generator.dart index 842e06c5731..57057e3405b 100644 --- a/packages/pigeon/lib/kotlin_generator.dart +++ b/packages/pigeon/lib/kotlin_generator.dart @@ -353,7 +353,7 @@ class KotlinGenerator extends StructuredGenerator { maximumCodecFieldKey, CustomTypes.customClass); - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { _writeCodecOverflowUtilities( generatorOptions, root, @@ -378,7 +378,7 @@ class KotlinGenerator extends StructuredGenerator { writeDecodeLogic(customType); } } - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { writeDecodeLogic(overflowClass); } indent.writeln('else -> super.readValueOfType(type, buffer)'); diff --git a/packages/pigeon/lib/objc_generator.dart b/packages/pigeon/lib/objc_generator.dart index 0cba6162f22..a42d0b921ee 100644 --- a/packages/pigeon/lib/objc_generator.dart +++ b/packages/pigeon/lib/objc_generator.dart @@ -215,7 +215,7 @@ class ObjcHeaderGenerator extends StructuredGenerator { indent, dartPackageName: dartPackageName, ); - if (getEnumeratedTypes(root).length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { writeDataClass( generatorOptions, root, @@ -752,7 +752,7 @@ if (self.wrapped == nil) { final String writerName = '${generatorOptions.prefix}${toUpperCamelCase(generatorOptions.fileSpecificClassNameComponent ?? '')}${codecName}Writer'; - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { _writeCodecOverflowUtilities( generatorOptions, root, indent, enumeratedTypes, dartPackageName: dartPackageName); @@ -771,7 +771,7 @@ if (self.wrapped == nil) { indent, customType, generatorOptions.prefix ?? ''); } } - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { indent.write('case 255: '); _writeCodecDecode( indent, diff --git a/packages/pigeon/lib/swift_generator.dart b/packages/pigeon/lib/swift_generator.dart index f8344eca66c..b8af1fabd8b 100644 --- a/packages/pigeon/lib/swift_generator.dart +++ b/packages/pigeon/lib/swift_generator.dart @@ -163,7 +163,7 @@ class SwiftGenerator extends StructuredGenerator { final EnumeratedType overflowClass = EnumeratedType( _overflowClassName, maximumCodecFieldKey, CustomTypes.customClass); - if (enumeratedTypes.length >= totalCustomCodecKeysAllowed) { + if (root.requiresOverflowClass) { indent.newln(); _writeCodecOverflowUtilities( generatorOptions, root, indent, enumeratedTypes, @@ -184,7 +184,9 @@ class SwiftGenerator extends StructuredGenerator { writeDecodeLogic(customType); } } - writeDecodeLogic(overflowClass); + if (root.requiresOverflowClass) { + writeDecodeLogic(overflowClass); + } indent.writeln('default:'); indent.nest(1, () { indent.writeln('return super.readValue(ofType: type)'); diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index a4f373741b2..6e53369d01c 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -511,8 +511,6 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { return AllClassesWrapper.fromList(self.readValue() as! [Any?]) case 134: return TestMessage.fromList(self.readValue() as! [Any?]) - case 255: - return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index a4f373741b2..6e53369d01c 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -511,8 +511,6 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { return AllClassesWrapper.fromList(self.readValue() as! [Any?]) case 134: return TestMessage.fromList(self.readValue() as! [Any?]) - case 255: - return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } From 0f87cacdfc430870e7a0cce5a56422546e08417e Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Sat, 3 Aug 2024 05:28:23 -0700 Subject: [PATCH 03/14] add another enum to integration tests, fix ios bug --- .../example/app/macos/Runner/messages.g.m | 4 +- packages/pigeon/lib/objc_generator.dart | 8 +- packages/pigeon/pigeons/core_tests.dart | 53 +- .../AlternateLanguageTestPlugin.java | 37 + .../CoreTests.java | 5416 ++++++++++++----- .../AllDatatypesTest.java | 2 + .../ios/Classes/AlternateLanguageTestPlugin.m | 41 + .../ios/Classes/CoreTests.gen.h | 1303 ++++ .../ios/Classes/CoreTests.gen.m | 3558 +++++++++-- .../Classes/AlternateLanguageTestPlugin.m | 42 +- .../macos/Classes/CoreTests.gen.h | 1302 ++++ .../macos/Classes/CoreTests.gen.m | 3548 +++++++++-- .../lib/integration_tests.dart | 97 + .../lib/src/generated/core_tests.gen.dart | 1645 ++++- .../com/example/test_plugin/CoreTests.gen.kt | 3129 ++++++++-- .../com/example/test_plugin/TestPlugin.kt | 37 +- .../example/test_plugin/AllDatatypesTest.kt | 4 + .../ios/Classes/CoreTests.gen.swift | 2121 ++++++- .../test_plugin/ios/Classes/TestPlugin.swift | 57 +- .../linux/pigeon/core_tests.gen.cc | 5117 +++++++++++++++- .../test_plugin/linux/pigeon/core_tests.gen.h | 1601 ++++- .../test_plugin/linux/test_plugin.cc | 105 +- .../macos/Classes/CoreTests.gen.swift | 2121 ++++++- .../macos/Classes/TestPlugin.swift | 48 +- .../windows/pigeon/core_tests.gen.cpp | 2858 ++++++++- .../windows/pigeon/core_tests.gen.h | 341 +- .../test_plugin/windows/test_plugin.cpp | 46 + .../test_plugin/windows/test_plugin.h | 31 + 28 files changed, 31607 insertions(+), 3065 deletions(-) diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index 382db2a62dd..aacd7d146d1 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -71,8 +71,8 @@ + (PGNMessageData *)fromList:(NSArray *)list { PGNMessageData *pigeonResult = [[PGNMessageData alloc] init]; pigeonResult.name = GetNullableObjectAtIndex(list, 0); pigeonResult.description = GetNullableObjectAtIndex(list, 1); - PGNCodeBox *enumBox = GetNullableObjectAtIndex(list, 2); - pigeonResult.code = enumBox.value; + PGNCodeBox *anPGNCodeBox = GetNullableObjectAtIndex(list, 2); + pigeonResult.code = anPGNCodeBox.value; pigeonResult.data = GetNullableObjectAtIndex(list, 3); return pigeonResult; } diff --git a/packages/pigeon/lib/objc_generator.dart b/packages/pigeon/lib/objc_generator.dart index a42d0b921ee..1fa54531adb 100644 --- a/packages/pigeon/lib/objc_generator.dart +++ b/packages/pigeon/lib/objc_generator.dart @@ -624,7 +624,8 @@ class ObjcSourceGenerator extends StructuredGenerator { valueGetter, prefix: generatorOptions.prefix, ); - ivarValueExpression = 'enumBox.value'; + ivarValueExpression = + 'an${_enumName(field.type.baseName, prefix: generatorOptions.prefix, box: true)}.value'; } else if (primitiveExtractionMethod != null) { ivarValueExpression = '[$valueGetter $primitiveExtractionMethod]'; } else { @@ -1021,7 +1022,8 @@ static FlutterError *createConnectionError(NSString *channelName) { valueGetter, prefix: generatorOptions.prefix, ); - ivarValueExpression = 'enumBox.value'; + ivarValueExpression = + 'an${_enumName(arg.type.baseName, prefix: generatorOptions.prefix, box: true)}.value'; } else if (primitiveExtractionMethod != null) { ivarValueExpression = '[$valueGetter $primitiveExtractionMethod]'; } else { @@ -1708,7 +1710,7 @@ void _writeEnumBoxToEnum( String? prefix = '', }) { indent.writeln( - '${_enumName(field.type.baseName, prefix: prefix, box: true, suffix: ' *')}enumBox = $valueGetter;'); + '${_enumName(field.type.baseName, prefix: prefix, box: true, suffix: ' *')}an${_enumName(field.type.baseName, prefix: prefix, box: true)} = $valueGetter;'); } String _getEnumToEnumBox( diff --git a/packages/pigeon/pigeons/core_tests.dart b/packages/pigeon/pigeons/core_tests.dart index 497a4571dd8..6f3344d460d 100644 --- a/packages/pigeon/pigeons/core_tests.dart +++ b/packages/pigeon/pigeons/core_tests.dart @@ -12,6 +12,10 @@ enum AnEnum { fourHundredTwentyTwo, } +enum AnotherEnum { + justInCase, +} + class SimpleClass { SimpleClass({ this.aString, @@ -34,6 +38,7 @@ class AllTypes { required this.a8ByteArray, required this.aFloatArray, this.anEnum = AnEnum.one, + this.anotherEnum = AnotherEnum.justInCase, this.aString = '', this.anObject = 0, @@ -59,6 +64,7 @@ class AllTypes { Int64List a8ByteArray; Float64List aFloatArray; AnEnum anEnum; + AnotherEnum anotherEnum; String aString; Object anObject; @@ -91,6 +97,7 @@ class AllNullableTypes { this.nullableMapWithAnnotations, this.nullableMapWithObject, this.aNullableEnum, + this.anotherNullableEnum, this.aNullableString, this.aNullableObject, this.allNullableTypes, @@ -119,6 +126,7 @@ class AllNullableTypes { Map? nullableMapWithAnnotations; Map? nullableMapWithObject; AnEnum? aNullableEnum; + AnotherEnum? anotherNullableEnum; String? aNullableString; Object? aNullableObject; AllNullableTypes? allNullableTypes; @@ -154,6 +162,7 @@ class AllNullableTypesWithoutRecursion { this.nullableMapWithAnnotations, this.nullableMapWithObject, this.aNullableEnum, + this.anotherNullableEnum, this.aNullableString, this.aNullableObject, @@ -180,6 +189,7 @@ class AllNullableTypesWithoutRecursion { Map? nullableMapWithAnnotations; Map? nullableMapWithObject; AnEnum? aNullableEnum; + AnotherEnum? anotherNullableEnum; String? aNullableString; Object? aNullableObject; @@ -283,6 +293,11 @@ abstract class HostIntegrationCoreApi { @SwiftFunction('echo(_:)') AnEnum echoEnum(AnEnum anEnum); + /// Returns the passed enum to test serialization and deserialization. + @ObjCSelector('echoAnotherEnum:') + @SwiftFunction('echo(_:)') + AnotherEnum echoAnotherEnum(AnotherEnum anotherEnum); + /// Returns the default string. @ObjCSelector('echoNamedDefaultString:') @SwiftFunction('echoNamedDefault(_:)') @@ -380,6 +395,10 @@ abstract class HostIntegrationCoreApi { @SwiftFunction('echoNullable(_:)') AnEnum? echoNullableEnum(AnEnum? anEnum); + @ObjCSelector('echoAnotherNullableEnum:') + @SwiftFunction('echoNullable(_:)') + AnotherEnum? echoAnotherNullableEnum(AnotherEnum? anotherEnum); + /// Returns passed in int. @ObjCSelector('echoOptionalNullableInt:') @SwiftFunction('echoOptional(_:)') @@ -451,6 +470,12 @@ abstract class HostIntegrationCoreApi { @SwiftFunction('echoAsync(_:)') AnEnum echoAsyncEnum(AnEnum anEnum); + /// Returns the passed enum, to test asynchronous serialization and deserialization. + @async + @ObjCSelector('echoAnotherAsyncEnum:') + @SwiftFunction('echoAsync(_:)') + AnotherEnum echoAnotherAsyncEnum(AnotherEnum anotherEnum); + /// Responds with an error from an async function returning a value. @async Object? throwAsyncError(); @@ -538,6 +563,12 @@ abstract class HostIntegrationCoreApi { @SwiftFunction('echoAsyncNullable(_:)') AnEnum? echoAsyncNullableEnum(AnEnum? anEnum); + /// Returns the passed enum, to test asynchronous serialization and deserialization. + @async + @ObjCSelector('echoAnotherAsyncNullableEnum:') + @SwiftFunction('echoAsyncNullable(_:)') + AnotherEnum? echoAnotherAsyncNullableEnum(AnotherEnum? anotherEnum); + // ========== Flutter API test wrappers ========== @async @@ -622,6 +653,11 @@ abstract class HostIntegrationCoreApi { @SwiftFunction('callFlutterEcho(_:)') AnEnum callFlutterEchoEnum(AnEnum anEnum); + @async + @ObjCSelector('callFlutterEchoAnotherEnum:') + @SwiftFunction('callFlutterEcho(_:)') + AnotherEnum callFlutterEchoAnotherEnum(AnotherEnum anotherEnum); + @async @ObjCSelector('callFlutterEchoNullableBool:') @SwiftFunction('callFlutterEchoNullable(_:)') @@ -660,9 +696,14 @@ abstract class HostIntegrationCoreApi { @async @ObjCSelector('callFlutterEchoNullableEnum:') - @SwiftFunction('callFlutterNullableEcho(_:)') + @SwiftFunction('callFlutterEchoNullable(_:)') AnEnum? callFlutterEchoNullableEnum(AnEnum? anEnum); + @async + @ObjCSelector('callFlutterEchoAnotherNullableEnum:') + @SwiftFunction('callFlutterEchoNullable(_:)') + AnotherEnum? callFlutterEchoAnotherNullableEnum(AnotherEnum? anotherEnum); + @async @ObjCSelector('callFlutterSmallApiEchoString:') @SwiftFunction('callFlutterSmallApiEcho(_:)') @@ -758,6 +799,11 @@ abstract class FlutterIntegrationCoreApi { @SwiftFunction('echo(_:)') AnEnum echoEnum(AnEnum anEnum); + /// Returns the passed enum to test serialization and deserialization. + @ObjCSelector('echoAnotherEnum:') + @SwiftFunction('echo(_:)') + AnotherEnum echoAnotherEnum(AnotherEnum anotherEnum); + // ========== Nullable argument/return type tests ========== /// Returns the passed boolean, to test serialization and deserialization. @@ -800,6 +846,11 @@ abstract class FlutterIntegrationCoreApi { @SwiftFunction('echoNullable(_:)') AnEnum? echoNullableEnum(AnEnum? anEnum); + /// Returns the passed enum to test serialization and deserialization. + @ObjCSelector('echoAnotherNullableEnum:') + @SwiftFunction('echoNullable(_:)') + AnotherEnum? echoAnotherNullableEnum(AnotherEnum? anotherEnum); + // ========== Async tests ========== // These are minimal since async FlutterApi only changes Dart generation. // Currently they aren't integration tested, but having them here ensures diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java index ef8c5787338..9f5b079fa33 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/AlternateLanguageTestPlugin.java @@ -11,6 +11,7 @@ import com.example.alternate_language_test_plugin.CoreTests.AllNullableTypesWithoutRecursion; import com.example.alternate_language_test_plugin.CoreTests.AllTypes; import com.example.alternate_language_test_plugin.CoreTests.AnEnum; +import com.example.alternate_language_test_plugin.CoreTests.AnotherEnum; import com.example.alternate_language_test_plugin.CoreTests.FlutterIntegrationCoreApi; import com.example.alternate_language_test_plugin.CoreTests.FlutterSmallApi; import com.example.alternate_language_test_plugin.CoreTests.HostIntegrationCoreApi; @@ -128,6 +129,11 @@ public void throwErrorFromVoid() { return anEnum; } + @Override + public @NonNull AnotherEnum echoAnotherEnum(@NonNull AnotherEnum anotherEnum) { + return anotherEnum; + } + @Override public @NonNull String echoNamedDefaultString(@NonNull String aString) { return aString; @@ -224,6 +230,11 @@ public void throwErrorFromVoid() { return anEnum; } + @Override + public @Nullable AnotherEnum echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum) { + return anotherEnum; + } + @Override public @Nullable Long echoOptionalNullableInt(@Nullable Long aNullableInt) { return aNullableInt; @@ -318,6 +329,12 @@ public void echoAsyncEnum(@NonNull AnEnum anEnum, @NonNull Result result result.success(anEnum); } + @Override + public void echoAnotherAsyncEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result) { + result.success(anotherEnum); + } + @Override public void echoAsyncNullableInt(@Nullable Long anInt, @NonNull NullableResult result) { result.success(anInt); @@ -371,6 +388,12 @@ public void echoAsyncNullableEnum( result.success(anEnum); } + @Override + public void echoAnotherAsyncNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result) { + result.success(anotherEnum); + } + @Override public void callFlutterNoop(@NonNull VoidResult result) { assert flutterApi != null; @@ -482,6 +505,13 @@ public void callFlutterEchoEnum(@NonNull AnEnum anEnum, @NonNull Result flutterApi.echoEnum(anEnum, result); } + @Override + public void callFlutterEchoAnotherEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result) { + assert flutterApi != null; + flutterApi.echoAnotherEnum(anotherEnum, result); + } + @Override public void callFlutterEchoNullableBool( @Nullable Boolean aBool, @NonNull NullableResult result) { @@ -538,6 +568,13 @@ public void callFlutterEchoNullableEnum( flutterApi.echoNullableEnum(anEnum, result); } + @Override + public void callFlutterEchoAnotherNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result) { + assert flutterApi != null; + flutterApi.echoAnotherNullableEnum(anotherEnum, result); + } + @Override public void callFlutterSmallApiEchoString( @NonNull String aString, @NonNull Result result) { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index 5f87181c6ba..eabc41a05be 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -75,1786 +75,1523 @@ protected static FlutterError createConnectionError(@NonNull String channelName) @Retention(CLASS) @interface CanIgnoreReturnValue {} - public enum AnEnum { - ONE(0), - TWO(1), - THREE(2), - FORTY_TWO(3), - FOUR_HUNDRED_TWENTY_TWO(4); + public enum FillerEnum0 { + FILLER_MEMBER0(0); final int index; - AnEnum(final int index) { + FillerEnum0(final int index) { this.index = index; } } - /** - * A class containing all supported types. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllTypes { - private @NonNull Boolean aBool; + public enum FillerEnum1 { + FILLER_MEMBER1(0); - public @NonNull Boolean getABool() { - return aBool; - } + final int index; - public void setABool(@NonNull Boolean setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aBool\" is null."); - } - this.aBool = setterArg; + FillerEnum1(final int index) { + this.index = index; } + } - private @NonNull Long anInt; + public enum FillerEnum2 { + FILLER_MEMBER2(0); - public @NonNull Long getAnInt() { - return anInt; - } + final int index; - public void setAnInt(@NonNull Long setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anInt\" is null."); - } - this.anInt = setterArg; + FillerEnum2(final int index) { + this.index = index; } + } - private @NonNull Long anInt64; + public enum FillerEnum3 { + FILLER_MEMBER3(0); - public @NonNull Long getAnInt64() { - return anInt64; - } + final int index; - public void setAnInt64(@NonNull Long setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anInt64\" is null."); - } - this.anInt64 = setterArg; + FillerEnum3(final int index) { + this.index = index; } + } - private @NonNull Double aDouble; + public enum FillerEnum4 { + FILLER_MEMBER4(0); - public @NonNull Double getADouble() { - return aDouble; - } + final int index; - public void setADouble(@NonNull Double setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aDouble\" is null."); - } - this.aDouble = setterArg; + FillerEnum4(final int index) { + this.index = index; } + } - private @NonNull byte[] aByteArray; + public enum FillerEnum5 { + FILLER_MEMBER5(0); - public @NonNull byte[] getAByteArray() { - return aByteArray; - } + final int index; - public void setAByteArray(@NonNull byte[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aByteArray\" is null."); - } - this.aByteArray = setterArg; + FillerEnum5(final int index) { + this.index = index; } + } - private @NonNull int[] a4ByteArray; + public enum FillerEnum6 { + FILLER_MEMBER6(0); - public @NonNull int[] getA4ByteArray() { - return a4ByteArray; - } + final int index; - public void setA4ByteArray(@NonNull int[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"a4ByteArray\" is null."); - } - this.a4ByteArray = setterArg; + FillerEnum6(final int index) { + this.index = index; } + } - private @NonNull long[] a8ByteArray; + public enum FillerEnum7 { + FILLER_MEMBER7(0); - public @NonNull long[] getA8ByteArray() { - return a8ByteArray; - } + final int index; - public void setA8ByteArray(@NonNull long[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"a8ByteArray\" is null."); - } - this.a8ByteArray = setterArg; + FillerEnum7(final int index) { + this.index = index; } + } - private @NonNull double[] aFloatArray; + public enum FillerEnum8 { + FILLER_MEMBER8(0); - public @NonNull double[] getAFloatArray() { - return aFloatArray; - } + final int index; - public void setAFloatArray(@NonNull double[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aFloatArray\" is null."); - } - this.aFloatArray = setterArg; + FillerEnum8(final int index) { + this.index = index; } + } - private @NonNull AnEnum anEnum; + public enum FillerEnum9 { + FILLER_MEMBER9(0); - public @NonNull AnEnum getAnEnum() { - return anEnum; - } + final int index; - public void setAnEnum(@NonNull AnEnum setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anEnum\" is null."); - } - this.anEnum = setterArg; + FillerEnum9(final int index) { + this.index = index; } + } - private @NonNull String aString; + public enum FillerEnum10 { + FILLER_MEMBER10(0); - public @NonNull String getAString() { - return aString; - } + final int index; - public void setAString(@NonNull String setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aString\" is null."); - } - this.aString = setterArg; + FillerEnum10(final int index) { + this.index = index; } + } - private @NonNull Object anObject; + public enum FillerEnum11 { + FILLER_MEMBER11(0); - public @NonNull Object getAnObject() { - return anObject; + final int index; + + FillerEnum11(final int index) { + this.index = index; } + } - public void setAnObject(@NonNull Object setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anObject\" is null."); - } - this.anObject = setterArg; + public enum FillerEnum12 { + FILLER_MEMBER12(0); + + final int index; + + FillerEnum12(final int index) { + this.index = index; } + } - private @NonNull List list; + public enum FillerEnum13 { + FILLER_MEMBER13(0); - public @NonNull List getList() { - return list; + final int index; + + FillerEnum13(final int index) { + this.index = index; } + } - public void setList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"list\" is null."); - } - this.list = setterArg; + public enum FillerEnum14 { + FILLER_MEMBER14(0); + + final int index; + + FillerEnum14(final int index) { + this.index = index; } + } - private @NonNull List stringList; + public enum FillerEnum15 { + FILLER_MEMBER15(0); - public @NonNull List getStringList() { - return stringList; + final int index; + + FillerEnum15(final int index) { + this.index = index; } + } - public void setStringList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"stringList\" is null."); - } - this.stringList = setterArg; + public enum FillerEnum16 { + FILLER_MEMBER16(0); + + final int index; + + FillerEnum16(final int index) { + this.index = index; } + } - private @NonNull List intList; + public enum FillerEnum17 { + FILLER_MEMBER17(0); - public @NonNull List getIntList() { - return intList; + final int index; + + FillerEnum17(final int index) { + this.index = index; } + } - public void setIntList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"intList\" is null."); - } - this.intList = setterArg; + public enum FillerEnum18 { + FILLER_MEMBER18(0); + + final int index; + + FillerEnum18(final int index) { + this.index = index; } + } - private @NonNull List doubleList; + public enum FillerEnum19 { + FILLER_MEMBER19(0); - public @NonNull List getDoubleList() { - return doubleList; + final int index; + + FillerEnum19(final int index) { + this.index = index; } + } - public void setDoubleList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"doubleList\" is null."); - } - this.doubleList = setterArg; + public enum FillerEnum20 { + FILLER_MEMBER20(0); + + final int index; + + FillerEnum20(final int index) { + this.index = index; } + } - private @NonNull List boolList; + public enum FillerEnum21 { + FILLER_MEMBER21(0); - public @NonNull List getBoolList() { - return boolList; + final int index; + + FillerEnum21(final int index) { + this.index = index; } + } - public void setBoolList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"boolList\" is null."); - } - this.boolList = setterArg; + public enum FillerEnum22 { + FILLER_MEMBER22(0); + + final int index; + + FillerEnum22(final int index) { + this.index = index; } + } - private @NonNull Map map; + public enum FillerEnum23 { + FILLER_MEMBER23(0); - public @NonNull Map getMap() { - return map; + final int index; + + FillerEnum23(final int index) { + this.index = index; } + } - public void setMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"map\" is null."); - } - this.map = setterArg; + public enum FillerEnum24 { + FILLER_MEMBER24(0); + + final int index; + + FillerEnum24(final int index) { + this.index = index; } + } - /** Constructor is non-public to enforce null safety; use Builder. */ - AllTypes() {} + public enum FillerEnum25 { + FILLER_MEMBER25(0); - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllTypes that = (AllTypes) o; - return aBool.equals(that.aBool) - && anInt.equals(that.anInt) - && anInt64.equals(that.anInt64) - && aDouble.equals(that.aDouble) - && Arrays.equals(aByteArray, that.aByteArray) - && Arrays.equals(a4ByteArray, that.a4ByteArray) - && Arrays.equals(a8ByteArray, that.a8ByteArray) - && Arrays.equals(aFloatArray, that.aFloatArray) - && anEnum.equals(that.anEnum) - && aString.equals(that.aString) - && anObject.equals(that.anObject) - && list.equals(that.list) - && stringList.equals(that.stringList) - && intList.equals(that.intList) - && doubleList.equals(that.doubleList) - && boolList.equals(that.boolList) - && map.equals(that.map); + final int index; + + FillerEnum25(final int index) { + this.index = index; } + } - @Override - public int hashCode() { - int __pigeon_result = - Objects.hash( - aBool, - anInt, - anInt64, - aDouble, - anEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aFloatArray); - return __pigeon_result; + public enum FillerEnum26 { + FILLER_MEMBER26(0); + + final int index; + + FillerEnum26(final int index) { + this.index = index; } + } - public static final class Builder { + public enum FillerEnum27 { + FILLER_MEMBER27(0); - private @Nullable Boolean aBool; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setABool(@NonNull Boolean setterArg) { - this.aBool = setterArg; - return this; - } + FillerEnum27(final int index) { + this.index = index; + } + } - private @Nullable Long anInt; + public enum FillerEnum28 { + FILLER_MEMBER28(0); - @CanIgnoreReturnValue - public @NonNull Builder setAnInt(@NonNull Long setterArg) { - this.anInt = setterArg; - return this; - } + final int index; - private @Nullable Long anInt64; + FillerEnum28(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setAnInt64(@NonNull Long setterArg) { - this.anInt64 = setterArg; - return this; - } + public enum FillerEnum29 { + FILLER_MEMBER29(0); - private @Nullable Double aDouble; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setADouble(@NonNull Double setterArg) { - this.aDouble = setterArg; - return this; - } + FillerEnum29(final int index) { + this.index = index; + } + } - private @Nullable byte[] aByteArray; + public enum FillerEnum30 { + FILLER_MEMBER30(0); - @CanIgnoreReturnValue - public @NonNull Builder setAByteArray(@NonNull byte[] setterArg) { - this.aByteArray = setterArg; - return this; - } + final int index; - private @Nullable int[] a4ByteArray; + FillerEnum30(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setA4ByteArray(@NonNull int[] setterArg) { - this.a4ByteArray = setterArg; - return this; - } + public enum FillerEnum31 { + FILLER_MEMBER31(0); - private @Nullable long[] a8ByteArray; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setA8ByteArray(@NonNull long[] setterArg) { - this.a8ByteArray = setterArg; - return this; - } + FillerEnum31(final int index) { + this.index = index; + } + } - private @Nullable double[] aFloatArray; + public enum FillerEnum32 { + FILLER_MEMBER32(0); - @CanIgnoreReturnValue - public @NonNull Builder setAFloatArray(@NonNull double[] setterArg) { - this.aFloatArray = setterArg; - return this; - } + final int index; - private @Nullable AnEnum anEnum; + FillerEnum32(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setAnEnum(@NonNull AnEnum setterArg) { - this.anEnum = setterArg; - return this; - } + public enum FillerEnum33 { + FILLER_MEMBER33(0); - private @Nullable String aString; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setAString(@NonNull String setterArg) { - this.aString = setterArg; - return this; - } + FillerEnum33(final int index) { + this.index = index; + } + } - private @Nullable Object anObject; + public enum FillerEnum34 { + FILLER_MEMBER34(0); - @CanIgnoreReturnValue - public @NonNull Builder setAnObject(@NonNull Object setterArg) { - this.anObject = setterArg; - return this; - } + final int index; - private @Nullable List list; + FillerEnum34(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setList(@NonNull List setterArg) { - this.list = setterArg; - return this; - } + public enum FillerEnum35 { + FILLER_MEMBER35(0); - private @Nullable List stringList; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@NonNull List setterArg) { - this.stringList = setterArg; - return this; - } + FillerEnum35(final int index) { + this.index = index; + } + } - private @Nullable List intList; + public enum FillerEnum36 { + FILLER_MEMBER36(0); - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@NonNull List setterArg) { - this.intList = setterArg; - return this; - } + final int index; - private @Nullable List doubleList; + FillerEnum36(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@NonNull List setterArg) { - this.doubleList = setterArg; - return this; - } + public enum FillerEnum37 { + FILLER_MEMBER37(0); - private @Nullable List boolList; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@NonNull List setterArg) { - this.boolList = setterArg; - return this; - } + FillerEnum37(final int index) { + this.index = index; + } + } - private @Nullable Map map; + public enum FillerEnum38 { + FILLER_MEMBER38(0); - @CanIgnoreReturnValue - public @NonNull Builder setMap(@NonNull Map setterArg) { - this.map = setterArg; - return this; - } + final int index; - public @NonNull AllTypes build() { - AllTypes pigeonReturn = new AllTypes(); - pigeonReturn.setABool(aBool); - pigeonReturn.setAnInt(anInt); - pigeonReturn.setAnInt64(anInt64); - pigeonReturn.setADouble(aDouble); - pigeonReturn.setAByteArray(aByteArray); - pigeonReturn.setA4ByteArray(a4ByteArray); - pigeonReturn.setA8ByteArray(a8ByteArray); - pigeonReturn.setAFloatArray(aFloatArray); - pigeonReturn.setAnEnum(anEnum); - pigeonReturn.setAString(aString); - pigeonReturn.setAnObject(anObject); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setMap(map); - return pigeonReturn; - } + FillerEnum38(final int index) { + this.index = index; } + } - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(17); - toListResult.add(aBool); - toListResult.add(anInt); - toListResult.add(anInt64); - toListResult.add(aDouble); - toListResult.add(aByteArray); - toListResult.add(a4ByteArray); - toListResult.add(a8ByteArray); - toListResult.add(aFloatArray); - toListResult.add(anEnum); - toListResult.add(aString); - toListResult.add(anObject); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(map); - return toListResult; + public enum FillerEnum39 { + FILLER_MEMBER39(0); + + final int index; + + FillerEnum39(final int index) { + this.index = index; } + } - static @NonNull AllTypes fromList(@NonNull ArrayList __pigeon_list) { - AllTypes pigeonResult = new AllTypes(); - Object aBool = __pigeon_list.get(0); - pigeonResult.setABool((Boolean) aBool); - Object anInt = __pigeon_list.get(1); - pigeonResult.setAnInt( - (anInt == null) ? null : ((anInt instanceof Integer) ? (Integer) anInt : (Long) anInt)); - Object anInt64 = __pigeon_list.get(2); - pigeonResult.setAnInt64( - (anInt64 == null) - ? null - : ((anInt64 instanceof Integer) ? (Integer) anInt64 : (Long) anInt64)); - Object aDouble = __pigeon_list.get(3); - pigeonResult.setADouble((Double) aDouble); - Object aByteArray = __pigeon_list.get(4); - pigeonResult.setAByteArray((byte[]) aByteArray); - Object a4ByteArray = __pigeon_list.get(5); - pigeonResult.setA4ByteArray((int[]) a4ByteArray); - Object a8ByteArray = __pigeon_list.get(6); - pigeonResult.setA8ByteArray((long[]) a8ByteArray); - Object aFloatArray = __pigeon_list.get(7); - pigeonResult.setAFloatArray((double[]) aFloatArray); - Object anEnum = __pigeon_list.get(8); - pigeonResult.setAnEnum((AnEnum) anEnum); - Object aString = __pigeon_list.get(9); - pigeonResult.setAString((String) aString); - Object anObject = __pigeon_list.get(10); - pigeonResult.setAnObject(anObject); - Object list = __pigeon_list.get(11); - pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(12); - pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(13); - pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(14); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(15); - pigeonResult.setBoolList((List) boolList); - Object map = __pigeon_list.get(16); - pigeonResult.setMap((Map) map); - return pigeonResult; + public enum FillerEnum40 { + FILLER_MEMBER40(0); + + final int index; + + FillerEnum40(final int index) { + this.index = index; } } - /** - * A class containing all supported nullable types. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllNullableTypes { - private @Nullable Boolean aNullableBool; + public enum FillerEnum41 { + FILLER_MEMBER41(0); - public @Nullable Boolean getANullableBool() { - return aNullableBool; - } + final int index; - public void setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; + FillerEnum41(final int index) { + this.index = index; } + } - private @Nullable Long aNullableInt; + public enum FillerEnum42 { + FILLER_MEMBER42(0); - public @Nullable Long getANullableInt() { - return aNullableInt; - } + final int index; - public void setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; + FillerEnum42(final int index) { + this.index = index; } + } - private @Nullable Long aNullableInt64; + public enum FillerEnum43 { + FILLER_MEMBER43(0); - public @Nullable Long getANullableInt64() { - return aNullableInt64; - } + final int index; - public void setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; + FillerEnum43(final int index) { + this.index = index; } + } - private @Nullable Double aNullableDouble; + public enum FillerEnum44 { + FILLER_MEMBER44(0); - public @Nullable Double getANullableDouble() { - return aNullableDouble; - } + final int index; - public void setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; + FillerEnum44(final int index) { + this.index = index; } + } - private @Nullable byte[] aNullableByteArray; + public enum FillerEnum45 { + FILLER_MEMBER45(0); - public @Nullable byte[] getANullableByteArray() { - return aNullableByteArray; - } + final int index; - public void setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; + FillerEnum45(final int index) { + this.index = index; } + } - private @Nullable int[] aNullable4ByteArray; + public enum FillerEnum46 { + FILLER_MEMBER46(0); - public @Nullable int[] getANullable4ByteArray() { - return aNullable4ByteArray; - } + final int index; - public void setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; + FillerEnum46(final int index) { + this.index = index; } + } - private @Nullable long[] aNullable8ByteArray; + public enum FillerEnum47 { + FILLER_MEMBER47(0); - public @Nullable long[] getANullable8ByteArray() { - return aNullable8ByteArray; - } + final int index; - public void setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; + FillerEnum47(final int index) { + this.index = index; } + } - private @Nullable double[] aNullableFloatArray; + public enum FillerEnum48 { + FILLER_MEMBER48(0); - public @Nullable double[] getANullableFloatArray() { - return aNullableFloatArray; - } + final int index; - public void setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; + FillerEnum48(final int index) { + this.index = index; } + } - private @Nullable List> nullableNestedList; + public enum FillerEnum49 { + FILLER_MEMBER49(0); - public @Nullable List> getNullableNestedList() { - return nullableNestedList; - } + final int index; - public void setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; + FillerEnum49(final int index) { + this.index = index; } + } - private @Nullable Map nullableMapWithAnnotations; + public enum FillerEnum50 { + FILLER_MEMBER50(0); - public @Nullable Map getNullableMapWithAnnotations() { - return nullableMapWithAnnotations; - } + final int index; - public void setNullableMapWithAnnotations(@Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; + FillerEnum50(final int index) { + this.index = index; } + } - private @Nullable Map nullableMapWithObject; + public enum FillerEnum51 { + FILLER_MEMBER51(0); - public @Nullable Map getNullableMapWithObject() { - return nullableMapWithObject; - } + final int index; - public void setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; + FillerEnum51(final int index) { + this.index = index; } + } - private @Nullable AnEnum aNullableEnum; + public enum FillerEnum52 { + FILLER_MEMBER52(0); - public @Nullable AnEnum getANullableEnum() { - return aNullableEnum; - } + final int index; - public void setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; + FillerEnum52(final int index) { + this.index = index; } + } - private @Nullable String aNullableString; + public enum FillerEnum53 { + FILLER_MEMBER53(0); - public @Nullable String getANullableString() { - return aNullableString; - } + final int index; - public void setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; + FillerEnum53(final int index) { + this.index = index; } + } - private @Nullable Object aNullableObject; + public enum FillerEnum54 { + FILLER_MEMBER54(0); - public @Nullable Object getANullableObject() { - return aNullableObject; - } + final int index; - public void setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; + FillerEnum54(final int index) { + this.index = index; } + } - private @Nullable AllNullableTypes allNullableTypes; + public enum FillerEnum55 { + FILLER_MEMBER55(0); - public @Nullable AllNullableTypes getAllNullableTypes() { - return allNullableTypes; - } + final int index; - public void setAllNullableTypes(@Nullable AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; + FillerEnum55(final int index) { + this.index = index; } + } - private @Nullable List list; + public enum FillerEnum56 { + FILLER_MEMBER56(0); - public @Nullable List getList() { - return list; - } + final int index; - public void setList(@Nullable List setterArg) { - this.list = setterArg; + FillerEnum56(final int index) { + this.index = index; } + } - private @Nullable List stringList; + public enum FillerEnum57 { + FILLER_MEMBER57(0); - public @Nullable List getStringList() { - return stringList; - } + final int index; - public void setStringList(@Nullable List setterArg) { - this.stringList = setterArg; + FillerEnum57(final int index) { + this.index = index; } + } - private @Nullable List intList; + public enum FillerEnum58 { + FILLER_MEMBER58(0); - public @Nullable List getIntList() { - return intList; - } + final int index; - public void setIntList(@Nullable List setterArg) { - this.intList = setterArg; + FillerEnum58(final int index) { + this.index = index; } + } - private @Nullable List doubleList; + public enum FillerEnum59 { + FILLER_MEMBER59(0); - public @Nullable List getDoubleList() { - return doubleList; + final int index; + + FillerEnum59(final int index) { + this.index = index; } + } - public void setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; + public enum FillerEnum60 { + FILLER_MEMBER60(0); + + final int index; + + FillerEnum60(final int index) { + this.index = index; } + } - private @Nullable List boolList; + public enum FillerEnum61 { + FILLER_MEMBER61(0); - public @Nullable List getBoolList() { - return boolList; + final int index; + + FillerEnum61(final int index) { + this.index = index; } + } - public void setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; + public enum FillerEnum62 { + FILLER_MEMBER62(0); + + final int index; + + FillerEnum62(final int index) { + this.index = index; } + } - private @Nullable List nestedClassList; + public enum FillerEnum63 { + FILLER_MEMBER63(0); - public @Nullable List getNestedClassList() { - return nestedClassList; + final int index; + + FillerEnum63(final int index) { + this.index = index; } + } - public void setNestedClassList(@Nullable List setterArg) { - this.nestedClassList = setterArg; + public enum FillerEnum64 { + FILLER_MEMBER64(0); + + final int index; + + FillerEnum64(final int index) { + this.index = index; } + } - private @Nullable Map map; + public enum FillerEnum65 { + FILLER_MEMBER65(0); - public @Nullable Map getMap() { - return map; + final int index; + + FillerEnum65(final int index) { + this.index = index; } + } - public void setMap(@Nullable Map setterArg) { - this.map = setterArg; + public enum FillerEnum66 { + FILLER_MEMBER66(0); + + final int index; + + FillerEnum66(final int index) { + this.index = index; } + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllNullableTypes that = (AllNullableTypes) o; - return Objects.equals(aNullableBool, that.aNullableBool) - && Objects.equals(aNullableInt, that.aNullableInt) - && Objects.equals(aNullableInt64, that.aNullableInt64) - && Objects.equals(aNullableDouble, that.aNullableDouble) - && Arrays.equals(aNullableByteArray, that.aNullableByteArray) - && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) - && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) - && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) - && Objects.equals(nullableNestedList, that.nullableNestedList) - && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) - && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) - && Objects.equals(aNullableEnum, that.aNullableEnum) - && Objects.equals(aNullableString, that.aNullableString) - && Objects.equals(aNullableObject, that.aNullableObject) - && Objects.equals(allNullableTypes, that.allNullableTypes) - && Objects.equals(list, that.list) - && Objects.equals(stringList, that.stringList) - && Objects.equals(intList, that.intList) - && Objects.equals(doubleList, that.doubleList) - && Objects.equals(boolList, that.boolList) - && Objects.equals(nestedClassList, that.nestedClassList) - && Objects.equals(map, that.map); + public enum FillerEnum67 { + FILLER_MEMBER67(0); + + final int index; + + FillerEnum67(final int index) { + this.index = index; } + } - @Override - public int hashCode() { - int __pigeon_result = - Objects.hash( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - nestedClassList, - map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); - return __pigeon_result; + public enum FillerEnum68 { + FILLER_MEMBER68(0); + + final int index; + + FillerEnum68(final int index) { + this.index = index; } + } - public static final class Builder { + public enum FillerEnum69 { + FILLER_MEMBER69(0); - private @Nullable Boolean aNullableBool; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - return this; - } + FillerEnum69(final int index) { + this.index = index; + } + } - private @Nullable Long aNullableInt; + public enum FillerEnum70 { + FILLER_MEMBER70(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - return this; - } + final int index; - private @Nullable Long aNullableInt64; + FillerEnum70(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - return this; - } + public enum FillerEnum71 { + FILLER_MEMBER71(0); - private @Nullable Double aNullableDouble; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - return this; - } + FillerEnum71(final int index) { + this.index = index; + } + } - private @Nullable byte[] aNullableByteArray; + public enum FillerEnum72 { + FILLER_MEMBER72(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - return this; - } + final int index; - private @Nullable int[] aNullable4ByteArray; + FillerEnum72(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - return this; - } + public enum FillerEnum73 { + FILLER_MEMBER73(0); - private @Nullable long[] aNullable8ByteArray; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - return this; - } + FillerEnum73(final int index) { + this.index = index; + } + } - private @Nullable double[] aNullableFloatArray; + public enum FillerEnum74 { + FILLER_MEMBER74(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - return this; - } + final int index; - private @Nullable List> nullableNestedList; + FillerEnum74(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; - return this; - } + public enum FillerEnum75 { + FILLER_MEMBER75(0); - private @Nullable Map nullableMapWithAnnotations; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithAnnotations( - @Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; - return this; - } + FillerEnum75(final int index) { + this.index = index; + } + } - private @Nullable Map nullableMapWithObject; + public enum FillerEnum76 { + FILLER_MEMBER76(0); - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; - return this; - } + final int index; - private @Nullable AnEnum aNullableEnum; + FillerEnum76(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - return this; - } + public enum FillerEnum77 { + FILLER_MEMBER77(0); - private @Nullable String aNullableString; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - return this; - } + FillerEnum77(final int index) { + this.index = index; + } + } - private @Nullable Object aNullableObject; + public enum FillerEnum78 { + FILLER_MEMBER78(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - return this; - } + final int index; - private @Nullable AllNullableTypes allNullableTypes; + FillerEnum78(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypes(@Nullable AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - return this; - } + public enum FillerEnum79 { + FILLER_MEMBER79(0); - private @Nullable List list; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setList(@Nullable List setterArg) { - this.list = setterArg; - return this; - } + FillerEnum79(final int index) { + this.index = index; + } + } - private @Nullable List stringList; + public enum FillerEnum80 { + FILLER_MEMBER80(0); - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - return this; - } + final int index; - private @Nullable List intList; + FillerEnum80(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@Nullable List setterArg) { - this.intList = setterArg; - return this; - } + public enum FillerEnum81 { + FILLER_MEMBER81(0); - private @Nullable List doubleList; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - return this; - } + FillerEnum81(final int index) { + this.index = index; + } + } - private @Nullable List boolList; + public enum FillerEnum82 { + FILLER_MEMBER82(0); - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - return this; - } + final int index; - private @Nullable List nestedClassList; + FillerEnum82(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setNestedClassList(@Nullable List setterArg) { - this.nestedClassList = setterArg; - return this; - } + public enum FillerEnum83 { + FILLER_MEMBER83(0); - private @Nullable Map map; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setMap(@Nullable Map setterArg) { - this.map = setterArg; - return this; - } - - public @NonNull AllNullableTypes build() { - AllNullableTypes pigeonReturn = new AllNullableTypes(); - pigeonReturn.setANullableBool(aNullableBool); - pigeonReturn.setANullableInt(aNullableInt); - pigeonReturn.setANullableInt64(aNullableInt64); - pigeonReturn.setANullableDouble(aNullableDouble); - pigeonReturn.setANullableByteArray(aNullableByteArray); - pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); - pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); - pigeonReturn.setANullableFloatArray(aNullableFloatArray); - pigeonReturn.setNullableNestedList(nullableNestedList); - pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); - pigeonReturn.setNullableMapWithObject(nullableMapWithObject); - pigeonReturn.setANullableEnum(aNullableEnum); - pigeonReturn.setANullableString(aNullableString); - pigeonReturn.setANullableObject(aNullableObject); - pigeonReturn.setAllNullableTypes(allNullableTypes); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setNestedClassList(nestedClassList); - pigeonReturn.setMap(map); - return pigeonReturn; - } + FillerEnum83(final int index) { + this.index = index; } + } - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(22); - toListResult.add(aNullableBool); - toListResult.add(aNullableInt); - toListResult.add(aNullableInt64); - toListResult.add(aNullableDouble); - toListResult.add(aNullableByteArray); - toListResult.add(aNullable4ByteArray); - toListResult.add(aNullable8ByteArray); - toListResult.add(aNullableFloatArray); - toListResult.add(nullableNestedList); - toListResult.add(nullableMapWithAnnotations); - toListResult.add(nullableMapWithObject); - toListResult.add(aNullableEnum); - toListResult.add(aNullableString); - toListResult.add(aNullableObject); - toListResult.add(allNullableTypes); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(nestedClassList); - toListResult.add(map); - return toListResult; - } + public enum FillerEnum84 { + FILLER_MEMBER84(0); - static @NonNull AllNullableTypes fromList(@NonNull ArrayList __pigeon_list) { - AllNullableTypes pigeonResult = new AllNullableTypes(); - Object aNullableBool = __pigeon_list.get(0); - pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = __pigeon_list.get(1); - pigeonResult.setANullableInt( - (aNullableInt == null) - ? null - : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = __pigeon_list.get(2); - pigeonResult.setANullableInt64( - (aNullableInt64 == null) - ? null - : ((aNullableInt64 instanceof Integer) - ? (Integer) aNullableInt64 - : (Long) aNullableInt64)); - Object aNullableDouble = __pigeon_list.get(3); - pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = __pigeon_list.get(4); - pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = __pigeon_list.get(5); - pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = __pigeon_list.get(6); - pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = __pigeon_list.get(7); - pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = __pigeon_list.get(8); - pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = __pigeon_list.get(9); - pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = __pigeon_list.get(10); - pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = __pigeon_list.get(11); - pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object aNullableString = __pigeon_list.get(12); - pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = __pigeon_list.get(13); - pigeonResult.setANullableObject(aNullableObject); - Object allNullableTypes = __pigeon_list.get(14); - pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object list = __pigeon_list.get(15); - pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(16); - pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(17); - pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(18); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(19); - pigeonResult.setBoolList((List) boolList); - Object nestedClassList = __pigeon_list.get(20); - pigeonResult.setNestedClassList((List) nestedClassList); - Object map = __pigeon_list.get(21); - pigeonResult.setMap((Map) map); - return pigeonResult; + final int index; + + FillerEnum84(final int index) { + this.index = index; } } - /** - * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, - * as the primary [AllNullableTypes] class is being used to test Swift classes. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllNullableTypesWithoutRecursion { - private @Nullable Boolean aNullableBool; + public enum FillerEnum85 { + FILLER_MEMBER85(0); - public @Nullable Boolean getANullableBool() { - return aNullableBool; - } + final int index; - public void setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; + FillerEnum85(final int index) { + this.index = index; } + } - private @Nullable Long aNullableInt; + public enum FillerEnum86 { + FILLER_MEMBER86(0); - public @Nullable Long getANullableInt() { - return aNullableInt; - } + final int index; - public void setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; + FillerEnum86(final int index) { + this.index = index; } + } - private @Nullable Long aNullableInt64; + public enum FillerEnum87 { + FILLER_MEMBER87(0); - public @Nullable Long getANullableInt64() { - return aNullableInt64; - } + final int index; - public void setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; + FillerEnum87(final int index) { + this.index = index; } + } - private @Nullable Double aNullableDouble; + public enum FillerEnum88 { + FILLER_MEMBER88(0); - public @Nullable Double getANullableDouble() { - return aNullableDouble; - } + final int index; - public void setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; + FillerEnum88(final int index) { + this.index = index; } + } - private @Nullable byte[] aNullableByteArray; + public enum FillerEnum89 { + FILLER_MEMBER89(0); - public @Nullable byte[] getANullableByteArray() { - return aNullableByteArray; - } + final int index; - public void setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; + FillerEnum89(final int index) { + this.index = index; } + } - private @Nullable int[] aNullable4ByteArray; + public enum FillerEnum90 { + FILLER_MEMBER90(0); - public @Nullable int[] getANullable4ByteArray() { - return aNullable4ByteArray; - } + final int index; - public void setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; + FillerEnum90(final int index) { + this.index = index; } + } - private @Nullable long[] aNullable8ByteArray; + public enum FillerEnum91 { + FILLER_MEMBER91(0); - public @Nullable long[] getANullable8ByteArray() { - return aNullable8ByteArray; - } + final int index; - public void setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; + FillerEnum91(final int index) { + this.index = index; } + } - private @Nullable double[] aNullableFloatArray; + public enum FillerEnum92 { + FILLER_MEMBER92(0); - public @Nullable double[] getANullableFloatArray() { - return aNullableFloatArray; - } + final int index; - public void setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; + FillerEnum92(final int index) { + this.index = index; } + } - private @Nullable List> nullableNestedList; + public enum FillerEnum93 { + FILLER_MEMBER93(0); - public @Nullable List> getNullableNestedList() { - return nullableNestedList; - } + final int index; - public void setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; + FillerEnum93(final int index) { + this.index = index; } + } - private @Nullable Map nullableMapWithAnnotations; + public enum FillerEnum94 { + FILLER_MEMBER94(0); - public @Nullable Map getNullableMapWithAnnotations() { - return nullableMapWithAnnotations; - } + final int index; - public void setNullableMapWithAnnotations(@Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; + FillerEnum94(final int index) { + this.index = index; } + } - private @Nullable Map nullableMapWithObject; + public enum FillerEnum95 { + FILLER_MEMBER95(0); - public @Nullable Map getNullableMapWithObject() { - return nullableMapWithObject; - } + final int index; - public void setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; + FillerEnum95(final int index) { + this.index = index; } + } - private @Nullable AnEnum aNullableEnum; + public enum FillerEnum96 { + FILLER_MEMBER96(0); - public @Nullable AnEnum getANullableEnum() { - return aNullableEnum; - } + final int index; - public void setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; + FillerEnum96(final int index) { + this.index = index; } + } - private @Nullable String aNullableString; + public enum FillerEnum97 { + FILLER_MEMBER97(0); - public @Nullable String getANullableString() { - return aNullableString; - } + final int index; - public void setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; + FillerEnum97(final int index) { + this.index = index; } + } - private @Nullable Object aNullableObject; + public enum FillerEnum98 { + FILLER_MEMBER98(0); - public @Nullable Object getANullableObject() { - return aNullableObject; - } + final int index; - public void setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; + FillerEnum98(final int index) { + this.index = index; } + } - private @Nullable List list; + public enum FillerEnum99 { + FILLER_MEMBER99(0); - public @Nullable List getList() { - return list; - } + final int index; - public void setList(@Nullable List setterArg) { - this.list = setterArg; + FillerEnum99(final int index) { + this.index = index; } + } - private @Nullable List stringList; + public enum FillerEnum100 { + FILLER_MEMBER100(0); - public @Nullable List getStringList() { - return stringList; - } + final int index; - public void setStringList(@Nullable List setterArg) { - this.stringList = setterArg; + FillerEnum100(final int index) { + this.index = index; } + } - private @Nullable List intList; + public enum FillerEnum101 { + FILLER_MEMBER101(0); - public @Nullable List getIntList() { - return intList; - } + final int index; - public void setIntList(@Nullable List setterArg) { - this.intList = setterArg; + FillerEnum101(final int index) { + this.index = index; } + } - private @Nullable List doubleList; + public enum FillerEnum102 { + FILLER_MEMBER102(0); - public @Nullable List getDoubleList() { - return doubleList; - } + final int index; - public void setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; + FillerEnum102(final int index) { + this.index = index; } + } - private @Nullable List boolList; + public enum FillerEnum103 { + FILLER_MEMBER103(0); - public @Nullable List getBoolList() { - return boolList; - } + final int index; - public void setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; + FillerEnum103(final int index) { + this.index = index; } + } - private @Nullable Map map; + public enum FillerEnum104 { + FILLER_MEMBER104(0); - public @Nullable Map getMap() { - return map; - } + final int index; - public void setMap(@Nullable Map setterArg) { - this.map = setterArg; + FillerEnum104(final int index) { + this.index = index; } + } - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; - return Objects.equals(aNullableBool, that.aNullableBool) - && Objects.equals(aNullableInt, that.aNullableInt) - && Objects.equals(aNullableInt64, that.aNullableInt64) - && Objects.equals(aNullableDouble, that.aNullableDouble) - && Arrays.equals(aNullableByteArray, that.aNullableByteArray) - && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) - && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) - && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) - && Objects.equals(nullableNestedList, that.nullableNestedList) - && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) - && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) - && Objects.equals(aNullableEnum, that.aNullableEnum) - && Objects.equals(aNullableString, that.aNullableString) - && Objects.equals(aNullableObject, that.aNullableObject) - && Objects.equals(list, that.list) - && Objects.equals(stringList, that.stringList) - && Objects.equals(intList, that.intList) - && Objects.equals(doubleList, that.doubleList) - && Objects.equals(boolList, that.boolList) - && Objects.equals(map, that.map); - } + public enum FillerEnum105 { + FILLER_MEMBER105(0); - @Override - public int hashCode() { - int __pigeon_result = - Objects.hash( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); - return __pigeon_result; + final int index; + + FillerEnum105(final int index) { + this.index = index; } + } - public static final class Builder { + public enum FillerEnum106 { + FILLER_MEMBER106(0); - private @Nullable Boolean aNullableBool; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - return this; - } + FillerEnum106(final int index) { + this.index = index; + } + } - private @Nullable Long aNullableInt; + public enum FillerEnum107 { + FILLER_MEMBER107(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - return this; - } + final int index; - private @Nullable Long aNullableInt64; + FillerEnum107(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - return this; - } + public enum FillerEnum108 { + FILLER_MEMBER108(0); - private @Nullable Double aNullableDouble; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - return this; - } + FillerEnum108(final int index) { + this.index = index; + } + } - private @Nullable byte[] aNullableByteArray; + public enum FillerEnum109 { + FILLER_MEMBER109(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - return this; - } + final int index; - private @Nullable int[] aNullable4ByteArray; + FillerEnum109(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - return this; - } + public enum FillerEnum110 { + FILLER_MEMBER110(0); - private @Nullable long[] aNullable8ByteArray; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - return this; - } + FillerEnum110(final int index) { + this.index = index; + } + } - private @Nullable double[] aNullableFloatArray; + public enum FillerEnum111 { + FILLER_MEMBER111(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - return this; - } + final int index; - private @Nullable List> nullableNestedList; + FillerEnum111(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; - return this; - } + public enum FillerEnum112 { + FILLER_MEMBER112(0); - private @Nullable Map nullableMapWithAnnotations; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithAnnotations( - @Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; - return this; - } + FillerEnum112(final int index) { + this.index = index; + } + } - private @Nullable Map nullableMapWithObject; + public enum FillerEnum113 { + FILLER_MEMBER113(0); - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; - return this; - } + final int index; - private @Nullable AnEnum aNullableEnum; + FillerEnum113(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - return this; - } + public enum FillerEnum114 { + FILLER_MEMBER114(0); - private @Nullable String aNullableString; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - return this; - } + FillerEnum114(final int index) { + this.index = index; + } + } - private @Nullable Object aNullableObject; + public enum FillerEnum115 { + FILLER_MEMBER115(0); - @CanIgnoreReturnValue - public @NonNull Builder setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - return this; - } + final int index; - private @Nullable List list; + FillerEnum115(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setList(@Nullable List setterArg) { - this.list = setterArg; - return this; - } + public enum FillerEnum116 { + FILLER_MEMBER116(0); - private @Nullable List stringList; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - return this; - } + FillerEnum116(final int index) { + this.index = index; + } + } - private @Nullable List intList; + public enum FillerEnum117 { + FILLER_MEMBER117(0); - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@Nullable List setterArg) { - this.intList = setterArg; - return this; - } + final int index; - private @Nullable List doubleList; + FillerEnum117(final int index) { + this.index = index; + } + } - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - return this; - } + public enum FillerEnum118 { + FILLER_MEMBER118(0); - private @Nullable List boolList; + final int index; - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - return this; - } + FillerEnum118(final int index) { + this.index = index; + } + } - private @Nullable Map map; + public enum FillerEnum119 { + FILLER_MEMBER119(0); - @CanIgnoreReturnValue - public @NonNull Builder setMap(@Nullable Map setterArg) { - this.map = setterArg; - return this; - } + final int index; - public @NonNull AllNullableTypesWithoutRecursion build() { - AllNullableTypesWithoutRecursion pigeonReturn = new AllNullableTypesWithoutRecursion(); - pigeonReturn.setANullableBool(aNullableBool); - pigeonReturn.setANullableInt(aNullableInt); - pigeonReturn.setANullableInt64(aNullableInt64); - pigeonReturn.setANullableDouble(aNullableDouble); - pigeonReturn.setANullableByteArray(aNullableByteArray); - pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); - pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); - pigeonReturn.setANullableFloatArray(aNullableFloatArray); - pigeonReturn.setNullableNestedList(nullableNestedList); - pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); - pigeonReturn.setNullableMapWithObject(nullableMapWithObject); - pigeonReturn.setANullableEnum(aNullableEnum); - pigeonReturn.setANullableString(aNullableString); - pigeonReturn.setANullableObject(aNullableObject); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setMap(map); - return pigeonReturn; - } + FillerEnum119(final int index) { + this.index = index; } + } - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(20); - toListResult.add(aNullableBool); - toListResult.add(aNullableInt); - toListResult.add(aNullableInt64); - toListResult.add(aNullableDouble); - toListResult.add(aNullableByteArray); - toListResult.add(aNullable4ByteArray); - toListResult.add(aNullable8ByteArray); - toListResult.add(aNullableFloatArray); - toListResult.add(nullableNestedList); - toListResult.add(nullableMapWithAnnotations); - toListResult.add(nullableMapWithObject); - toListResult.add(aNullableEnum); - toListResult.add(aNullableString); - toListResult.add(aNullableObject); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(map); - return toListResult; + public enum FillerEnum120 { + FILLER_MEMBER120(0); + + final int index; + + FillerEnum120(final int index) { + this.index = index; } + } - static @NonNull AllNullableTypesWithoutRecursion fromList( - @NonNull ArrayList __pigeon_list) { - AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); - Object aNullableBool = __pigeon_list.get(0); - pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = __pigeon_list.get(1); - pigeonResult.setANullableInt( - (aNullableInt == null) - ? null - : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = __pigeon_list.get(2); - pigeonResult.setANullableInt64( - (aNullableInt64 == null) - ? null - : ((aNullableInt64 instanceof Integer) - ? (Integer) aNullableInt64 - : (Long) aNullableInt64)); - Object aNullableDouble = __pigeon_list.get(3); - pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = __pigeon_list.get(4); - pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = __pigeon_list.get(5); - pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = __pigeon_list.get(6); - pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = __pigeon_list.get(7); - pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = __pigeon_list.get(8); - pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = __pigeon_list.get(9); - pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = __pigeon_list.get(10); - pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = __pigeon_list.get(11); - pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object aNullableString = __pigeon_list.get(12); - pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = __pigeon_list.get(13); - pigeonResult.setANullableObject(aNullableObject); - Object list = __pigeon_list.get(14); - pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(15); - pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(16); - pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(17); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(18); - pigeonResult.setBoolList((List) boolList); - Object map = __pigeon_list.get(19); - pigeonResult.setMap((Map) map); - return pigeonResult; + public enum FillerEnum121 { + FILLER_MEMBER121(0); + + final int index; + + FillerEnum121(final int index) { + this.index = index; + } + } + + public enum FillerEnum122 { + FILLER_MEMBER122(0); + + final int index; + + FillerEnum122(final int index) { + this.index = index; + } + } + + public enum FillerEnum123 { + FILLER_MEMBER123(0); + + final int index; + + FillerEnum123(final int index) { + this.index = index; + } + } + + public enum FillerEnum124 { + FILLER_MEMBER124(0); + + final int index; + + FillerEnum124(final int index) { + this.index = index; + } + } + + public enum AnEnum { + ONE(0), + TWO(1), + THREE(2), + FORTY_TWO(3), + FOUR_HUNDRED_TWENTY_TWO(4); + + final int index; + + AnEnum(final int index) { + this.index = index; + } + } + + public enum AnotherEnum { + JUST_IN_CASE(0); + + final int index; + + AnotherEnum(final int index) { + this.index = index; } } /** - * A class for testing nested class handling. - * - *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is - * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require - * both (ie. testing null classes). + * A class containing all supported types. * *

Generated class from Pigeon that represents data sent in messages. */ - public static final class AllClassesWrapper { - private @NonNull AllNullableTypes allNullableTypes; + public static final class AllTypes { + private @NonNull Boolean aBool; - public @NonNull AllNullableTypes getAllNullableTypes() { - return allNullableTypes; + public @NonNull Boolean getABool() { + return aBool; } - public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { + public void setABool(@NonNull Boolean setterArg) { if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"allNullableTypes\" is null."); + throw new IllegalStateException("Nonnull field \"aBool\" is null."); } - this.allNullableTypes = setterArg; + this.aBool = setterArg; } - private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; + private @NonNull Long anInt; - public @Nullable AllNullableTypesWithoutRecursion getAllNullableTypesWithoutRecursion() { - return allNullableTypesWithoutRecursion; + public @NonNull Long getAnInt() { + return anInt; } - public void setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { - this.allNullableTypesWithoutRecursion = setterArg; + public void setAnInt(@NonNull Long setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anInt\" is null."); + } + this.anInt = setterArg; } - private @Nullable AllTypes allTypes; + private @NonNull Long anInt64; - public @Nullable AllTypes getAllTypes() { - return allTypes; + public @NonNull Long getAnInt64() { + return anInt64; } - public void setAllTypes(@Nullable AllTypes setterArg) { - this.allTypes = setterArg; + public void setAnInt64(@NonNull Long setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anInt64\" is null."); + } + this.anInt64 = setterArg; } - /** Constructor is non-public to enforce null safety; use Builder. */ - AllClassesWrapper() {} + private @NonNull Double aDouble; - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllClassesWrapper that = (AllClassesWrapper) o; - return allNullableTypes.equals(that.allNullableTypes) - && Objects.equals(allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) - && Objects.equals(allTypes, that.allTypes); + public @NonNull Double getADouble() { + return aDouble; } - @Override - public int hashCode() { - return Objects.hash(allNullableTypes, allNullableTypesWithoutRecursion, allTypes); + public void setADouble(@NonNull Double setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aDouble\" is null."); + } + this.aDouble = setterArg; } - public static final class Builder { + private @NonNull byte[] aByteArray; - private @Nullable AllNullableTypes allNullableTypes; + public @NonNull byte[] getAByteArray() { + return aByteArray; + } - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypes(@NonNull AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - return this; + public void setAByteArray(@NonNull byte[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aByteArray\" is null."); } + this.aByteArray = setterArg; + } - private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; + private @NonNull int[] a4ByteArray; - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { - this.allNullableTypesWithoutRecursion = setterArg; - return this; + public @NonNull int[] getA4ByteArray() { + return a4ByteArray; + } + + public void setA4ByteArray(@NonNull int[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"a4ByteArray\" is null."); } + this.a4ByteArray = setterArg; + } - private @Nullable AllTypes allTypes; + private @NonNull long[] a8ByteArray; - @CanIgnoreReturnValue - public @NonNull Builder setAllTypes(@Nullable AllTypes setterArg) { - this.allTypes = setterArg; - return this; + public @NonNull long[] getA8ByteArray() { + return a8ByteArray; + } + + public void setA8ByteArray(@NonNull long[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"a8ByteArray\" is null."); } + this.a8ByteArray = setterArg; + } - public @NonNull AllClassesWrapper build() { - AllClassesWrapper pigeonReturn = new AllClassesWrapper(); - pigeonReturn.setAllNullableTypes(allNullableTypes); - pigeonReturn.setAllNullableTypesWithoutRecursion(allNullableTypesWithoutRecursion); - pigeonReturn.setAllTypes(allTypes); - return pigeonReturn; + private @NonNull double[] aFloatArray; + + public @NonNull double[] getAFloatArray() { + return aFloatArray; + } + + public void setAFloatArray(@NonNull double[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aFloatArray\" is null."); } + this.aFloatArray = setterArg; } - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(3); - toListResult.add(allNullableTypes); - toListResult.add(allNullableTypesWithoutRecursion); - toListResult.add(allTypes); - return toListResult; + private @NonNull AnEnum anEnum; + + public @NonNull AnEnum getAnEnum() { + return anEnum; } - static @NonNull AllClassesWrapper fromList(@NonNull ArrayList __pigeon_list) { - AllClassesWrapper pigeonResult = new AllClassesWrapper(); - Object allNullableTypes = __pigeon_list.get(0); - pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object allNullableTypesWithoutRecursion = __pigeon_list.get(1); - pigeonResult.setAllNullableTypesWithoutRecursion( - (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); - Object allTypes = __pigeon_list.get(2); - pigeonResult.setAllTypes((AllTypes) allTypes); - return pigeonResult; + public void setAnEnum(@NonNull AnEnum setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anEnum\" is null."); + } + this.anEnum = setterArg; } - } - /** - * A data class containing a List, used in unit tests. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class TestMessage { - private @Nullable List testList; + private @NonNull AnotherEnum anotherEnum; - public @Nullable List getTestList() { - return testList; + public @NonNull AnotherEnum getAnotherEnum() { + return anotherEnum; } - public void setTestList(@Nullable List setterArg) { - this.testList = setterArg; + public void setAnotherEnum(@NonNull AnotherEnum setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anotherEnum\" is null."); + } + this.anotherEnum = setterArg; + } + + private @NonNull String aString; + + public @NonNull String getAString() { + return aString; + } + + public void setAString(@NonNull String setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aString\" is null."); + } + this.aString = setterArg; + } + + private @NonNull Object anObject; + + public @NonNull Object getAnObject() { + return anObject; + } + + public void setAnObject(@NonNull Object setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anObject\" is null."); + } + this.anObject = setterArg; + } + + private @NonNull List list; + + public @NonNull List getList() { + return list; + } + + public void setList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"list\" is null."); + } + this.list = setterArg; + } + + private @NonNull List stringList; + + public @NonNull List getStringList() { + return stringList; + } + + public void setStringList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"stringList\" is null."); + } + this.stringList = setterArg; + } + + private @NonNull List intList; + + public @NonNull List getIntList() { + return intList; + } + + public void setIntList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"intList\" is null."); + } + this.intList = setterArg; + } + + private @NonNull List doubleList; + + public @NonNull List getDoubleList() { + return doubleList; + } + + public void setDoubleList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"doubleList\" is null."); + } + this.doubleList = setterArg; } + private @NonNull List boolList; + + public @NonNull List getBoolList() { + return boolList; + } + + public void setBoolList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"boolList\" is null."); + } + this.boolList = setterArg; + } + + private @NonNull Map map; + + public @NonNull Map getMap() { + return map; + } + + public void setMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"map\" is null."); + } + this.map = setterArg; + } + + /** Constructor is non-public to enforce null safety; use Builder. */ + AllTypes() {} + @Override public boolean equals(Object o) { if (this == o) { @@ -1863,70 +1600,2347 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - TestMessage that = (TestMessage) o; - return Objects.equals(testList, that.testList); + AllTypes that = (AllTypes) o; + return aBool.equals(that.aBool) + && anInt.equals(that.anInt) + && anInt64.equals(that.anInt64) + && aDouble.equals(that.aDouble) + && Arrays.equals(aByteArray, that.aByteArray) + && Arrays.equals(a4ByteArray, that.a4ByteArray) + && Arrays.equals(a8ByteArray, that.a8ByteArray) + && Arrays.equals(aFloatArray, that.aFloatArray) + && anEnum.equals(that.anEnum) + && anotherEnum.equals(that.anotherEnum) + && aString.equals(that.aString) + && anObject.equals(that.anObject) + && list.equals(that.list) + && stringList.equals(that.stringList) + && intList.equals(that.intList) + && doubleList.equals(that.doubleList) + && boolList.equals(that.boolList) + && map.equals(that.map); } @Override public int hashCode() { - return Objects.hash(testList); + int __pigeon_result = + Objects.hash( + aBool, + anInt, + anInt64, + aDouble, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + map); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a4ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a8ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aFloatArray); + return __pigeon_result; } public static final class Builder { - private @Nullable List testList; + private @Nullable Boolean aBool; @CanIgnoreReturnValue - public @NonNull Builder setTestList(@Nullable List setterArg) { - this.testList = setterArg; + public @NonNull Builder setABool(@NonNull Boolean setterArg) { + this.aBool = setterArg; return this; } - public @NonNull TestMessage build() { - TestMessage pigeonReturn = new TestMessage(); - pigeonReturn.setTestList(testList); - return pigeonReturn; + private @Nullable Long anInt; + + @CanIgnoreReturnValue + public @NonNull Builder setAnInt(@NonNull Long setterArg) { + this.anInt = setterArg; + return this; } - } - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(1); - toListResult.add(testList); - return toListResult; - } + private @Nullable Long anInt64; - static @NonNull TestMessage fromList(@NonNull ArrayList __pigeon_list) { - TestMessage pigeonResult = new TestMessage(); - Object testList = __pigeon_list.get(0); - pigeonResult.setTestList((List) testList); + @CanIgnoreReturnValue + public @NonNull Builder setAnInt64(@NonNull Long setterArg) { + this.anInt64 = setterArg; + return this; + } + + private @Nullable Double aDouble; + + @CanIgnoreReturnValue + public @NonNull Builder setADouble(@NonNull Double setterArg) { + this.aDouble = setterArg; + return this; + } + + private @Nullable byte[] aByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setAByteArray(@NonNull byte[] setterArg) { + this.aByteArray = setterArg; + return this; + } + + private @Nullable int[] a4ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setA4ByteArray(@NonNull int[] setterArg) { + this.a4ByteArray = setterArg; + return this; + } + + private @Nullable long[] a8ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setA8ByteArray(@NonNull long[] setterArg) { + this.a8ByteArray = setterArg; + return this; + } + + private @Nullable double[] aFloatArray; + + @CanIgnoreReturnValue + public @NonNull Builder setAFloatArray(@NonNull double[] setterArg) { + this.aFloatArray = setterArg; + return this; + } + + private @Nullable AnEnum anEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnEnum(@NonNull AnEnum setterArg) { + this.anEnum = setterArg; + return this; + } + + private @Nullable AnotherEnum anotherEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnotherEnum(@NonNull AnotherEnum setterArg) { + this.anotherEnum = setterArg; + return this; + } + + private @Nullable String aString; + + @CanIgnoreReturnValue + public @NonNull Builder setAString(@NonNull String setterArg) { + this.aString = setterArg; + return this; + } + + private @Nullable Object anObject; + + @CanIgnoreReturnValue + public @NonNull Builder setAnObject(@NonNull Object setterArg) { + this.anObject = setterArg; + return this; + } + + private @Nullable List list; + + @CanIgnoreReturnValue + public @NonNull Builder setList(@NonNull List setterArg) { + this.list = setterArg; + return this; + } + + private @Nullable List stringList; + + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@NonNull List setterArg) { + this.stringList = setterArg; + return this; + } + + private @Nullable List intList; + + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@NonNull List setterArg) { + this.intList = setterArg; + return this; + } + + private @Nullable List doubleList; + + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@NonNull List setterArg) { + this.doubleList = setterArg; + return this; + } + + private @Nullable List boolList; + + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@NonNull List setterArg) { + this.boolList = setterArg; + return this; + } + + private @Nullable Map map; + + @CanIgnoreReturnValue + public @NonNull Builder setMap(@NonNull Map setterArg) { + this.map = setterArg; + return this; + } + + public @NonNull AllTypes build() { + AllTypes pigeonReturn = new AllTypes(); + pigeonReturn.setABool(aBool); + pigeonReturn.setAnInt(anInt); + pigeonReturn.setAnInt64(anInt64); + pigeonReturn.setADouble(aDouble); + pigeonReturn.setAByteArray(aByteArray); + pigeonReturn.setA4ByteArray(a4ByteArray); + pigeonReturn.setA8ByteArray(a8ByteArray); + pigeonReturn.setAFloatArray(aFloatArray); + pigeonReturn.setAnEnum(anEnum); + pigeonReturn.setAnotherEnum(anotherEnum); + pigeonReturn.setAString(aString); + pigeonReturn.setAnObject(anObject); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setMap(map); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(18); + toListResult.add(aBool); + toListResult.add(anInt); + toListResult.add(anInt64); + toListResult.add(aDouble); + toListResult.add(aByteArray); + toListResult.add(a4ByteArray); + toListResult.add(a8ByteArray); + toListResult.add(aFloatArray); + toListResult.add(anEnum); + toListResult.add(anotherEnum); + toListResult.add(aString); + toListResult.add(anObject); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(map); + return toListResult; + } + + static @NonNull AllTypes fromList(@NonNull ArrayList __pigeon_list) { + AllTypes pigeonResult = new AllTypes(); + Object aBool = __pigeon_list.get(0); + pigeonResult.setABool((Boolean) aBool); + Object anInt = __pigeon_list.get(1); + pigeonResult.setAnInt( + (anInt == null) ? null : ((anInt instanceof Integer) ? (Integer) anInt : (Long) anInt)); + Object anInt64 = __pigeon_list.get(2); + pigeonResult.setAnInt64( + (anInt64 == null) + ? null + : ((anInt64 instanceof Integer) ? (Integer) anInt64 : (Long) anInt64)); + Object aDouble = __pigeon_list.get(3); + pigeonResult.setADouble((Double) aDouble); + Object aByteArray = __pigeon_list.get(4); + pigeonResult.setAByteArray((byte[]) aByteArray); + Object a4ByteArray = __pigeon_list.get(5); + pigeonResult.setA4ByteArray((int[]) a4ByteArray); + Object a8ByteArray = __pigeon_list.get(6); + pigeonResult.setA8ByteArray((long[]) a8ByteArray); + Object aFloatArray = __pigeon_list.get(7); + pigeonResult.setAFloatArray((double[]) aFloatArray); + Object anEnum = __pigeon_list.get(8); + pigeonResult.setAnEnum((AnEnum) anEnum); + Object anotherEnum = __pigeon_list.get(9); + pigeonResult.setAnotherEnum((AnotherEnum) anotherEnum); + Object aString = __pigeon_list.get(10); + pigeonResult.setAString((String) aString); + Object anObject = __pigeon_list.get(11); + pigeonResult.setAnObject(anObject); + Object list = __pigeon_list.get(12); + pigeonResult.setList((List) list); + Object stringList = __pigeon_list.get(13); + pigeonResult.setStringList((List) stringList); + Object intList = __pigeon_list.get(14); + pigeonResult.setIntList((List) intList); + Object doubleList = __pigeon_list.get(15); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = __pigeon_list.get(16); + pigeonResult.setBoolList((List) boolList); + Object map = __pigeon_list.get(17); + pigeonResult.setMap((Map) map); return pigeonResult; } } - private static class PigeonCodec extends StandardMessageCodec { - public static final PigeonCodec INSTANCE = new PigeonCodec(); + /** + * A class containing all supported nullable types. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllNullableTypes { + private @Nullable Boolean aNullableBool; - private PigeonCodec() {} + public @Nullable Boolean getANullableBool() { + return aNullableBool; + } - @Override - protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { - switch (type) { - case (byte) 129: + public void setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + } + + private @Nullable Long aNullableInt; + + public @Nullable Long getANullableInt() { + return aNullableInt; + } + + public void setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + } + + private @Nullable Long aNullableInt64; + + public @Nullable Long getANullableInt64() { + return aNullableInt64; + } + + public void setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + } + + private @Nullable Double aNullableDouble; + + public @Nullable Double getANullableDouble() { + return aNullableDouble; + } + + public void setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + } + + private @Nullable byte[] aNullableByteArray; + + public @Nullable byte[] getANullableByteArray() { + return aNullableByteArray; + } + + public void setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + } + + private @Nullable int[] aNullable4ByteArray; + + public @Nullable int[] getANullable4ByteArray() { + return aNullable4ByteArray; + } + + public void setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + } + + private @Nullable long[] aNullable8ByteArray; + + public @Nullable long[] getANullable8ByteArray() { + return aNullable8ByteArray; + } + + public void setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + } + + private @Nullable double[] aNullableFloatArray; + + public @Nullable double[] getANullableFloatArray() { + return aNullableFloatArray; + } + + public void setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + } + + private @Nullable List> nullableNestedList; + + public @Nullable List> getNullableNestedList() { + return nullableNestedList; + } + + public void setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + } + + private @Nullable Map nullableMapWithAnnotations; + + public @Nullable Map getNullableMapWithAnnotations() { + return nullableMapWithAnnotations; + } + + public void setNullableMapWithAnnotations(@Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + } + + private @Nullable Map nullableMapWithObject; + + public @Nullable Map getNullableMapWithObject() { + return nullableMapWithObject; + } + + public void setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; + } + + private @Nullable AnEnum aNullableEnum; + + public @Nullable AnEnum getANullableEnum() { + return aNullableEnum; + } + + public void setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + public @Nullable AnotherEnum getAnotherNullableEnum() { + return anotherNullableEnum; + } + + public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + } + + private @Nullable String aNullableString; + + public @Nullable String getANullableString() { + return aNullableString; + } + + public void setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + } + + private @Nullable Object aNullableObject; + + public @Nullable Object getANullableObject() { + return aNullableObject; + } + + public void setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + } + + private @Nullable AllNullableTypes allNullableTypes; + + public @Nullable AllNullableTypes getAllNullableTypes() { + return allNullableTypes; + } + + public void setAllNullableTypes(@Nullable AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + } + + private @Nullable List list; + + public @Nullable List getList() { + return list; + } + + public void setList(@Nullable List setterArg) { + this.list = setterArg; + } + + private @Nullable List stringList; + + public @Nullable List getStringList() { + return stringList; + } + + public void setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + } + + private @Nullable List intList; + + public @Nullable List getIntList() { + return intList; + } + + public void setIntList(@Nullable List setterArg) { + this.intList = setterArg; + } + + private @Nullable List doubleList; + + public @Nullable List getDoubleList() { + return doubleList; + } + + public void setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + } + + private @Nullable List boolList; + + public @Nullable List getBoolList() { + return boolList; + } + + public void setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + } + + private @Nullable List nestedClassList; + + public @Nullable List getNestedClassList() { + return nestedClassList; + } + + public void setNestedClassList(@Nullable List setterArg) { + this.nestedClassList = setterArg; + } + + private @Nullable Map map; + + public @Nullable Map getMap() { + return map; + } + + public void setMap(@Nullable Map setterArg) { + this.map = setterArg; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllNullableTypes that = (AllNullableTypes) o; + return Objects.equals(aNullableBool, that.aNullableBool) + && Objects.equals(aNullableInt, that.aNullableInt) + && Objects.equals(aNullableInt64, that.aNullableInt64) + && Objects.equals(aNullableDouble, that.aNullableDouble) + && Arrays.equals(aNullableByteArray, that.aNullableByteArray) + && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) + && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) + && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) + && Objects.equals(nullableNestedList, that.nullableNestedList) + && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) + && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) + && Objects.equals(aNullableEnum, that.aNullableEnum) + && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) + && Objects.equals(aNullableString, that.aNullableString) + && Objects.equals(aNullableObject, that.aNullableObject) + && Objects.equals(allNullableTypes, that.allNullableTypes) + && Objects.equals(list, that.list) + && Objects.equals(stringList, that.stringList) + && Objects.equals(intList, that.intList) + && Objects.equals(doubleList, that.doubleList) + && Objects.equals(boolList, that.boolList) + && Objects.equals(nestedClassList, that.nestedClassList) + && Objects.equals(map, that.map); + } + + @Override + public int hashCode() { + int __pigeon_result = + Objects.hash( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + nestedClassList, + map); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); + return __pigeon_result; + } + + public static final class Builder { + + private @Nullable Boolean aNullableBool; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + return this; + } + + private @Nullable Long aNullableInt; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + return this; + } + + private @Nullable Long aNullableInt64; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + return this; + } + + private @Nullable Double aNullableDouble; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + return this; + } + + private @Nullable byte[] aNullableByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + return this; + } + + private @Nullable int[] aNullable4ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + return this; + } + + private @Nullable long[] aNullable8ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + return this; + } + + private @Nullable double[] aNullableFloatArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + return this; + } + + private @Nullable List> nullableNestedList; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + return this; + } + + private @Nullable Map nullableMapWithAnnotations; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithAnnotations( + @Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + return this; + } + + private @Nullable Map nullableMapWithObject; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; + return this; + } + + private @Nullable AnEnum aNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + return this; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + return this; + } + + private @Nullable String aNullableString; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + return this; + } + + private @Nullable Object aNullableObject; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + return this; + } + + private @Nullable AllNullableTypes allNullableTypes; + + @CanIgnoreReturnValue + public @NonNull Builder setAllNullableTypes(@Nullable AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + return this; + } + + private @Nullable List list; + + @CanIgnoreReturnValue + public @NonNull Builder setList(@Nullable List setterArg) { + this.list = setterArg; + return this; + } + + private @Nullable List stringList; + + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + return this; + } + + private @Nullable List intList; + + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@Nullable List setterArg) { + this.intList = setterArg; + return this; + } + + private @Nullable List doubleList; + + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + return this; + } + + private @Nullable List boolList; + + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + return this; + } + + private @Nullable List nestedClassList; + + @CanIgnoreReturnValue + public @NonNull Builder setNestedClassList(@Nullable List setterArg) { + this.nestedClassList = setterArg; + return this; + } + + private @Nullable Map map; + + @CanIgnoreReturnValue + public @NonNull Builder setMap(@Nullable Map setterArg) { + this.map = setterArg; + return this; + } + + public @NonNull AllNullableTypes build() { + AllNullableTypes pigeonReturn = new AllNullableTypes(); + pigeonReturn.setANullableBool(aNullableBool); + pigeonReturn.setANullableInt(aNullableInt); + pigeonReturn.setANullableInt64(aNullableInt64); + pigeonReturn.setANullableDouble(aNullableDouble); + pigeonReturn.setANullableByteArray(aNullableByteArray); + pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); + pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); + pigeonReturn.setANullableFloatArray(aNullableFloatArray); + pigeonReturn.setNullableNestedList(nullableNestedList); + pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); + pigeonReturn.setNullableMapWithObject(nullableMapWithObject); + pigeonReturn.setANullableEnum(aNullableEnum); + pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); + pigeonReturn.setANullableString(aNullableString); + pigeonReturn.setANullableObject(aNullableObject); + pigeonReturn.setAllNullableTypes(allNullableTypes); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setNestedClassList(nestedClassList); + pigeonReturn.setMap(map); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(23); + toListResult.add(aNullableBool); + toListResult.add(aNullableInt); + toListResult.add(aNullableInt64); + toListResult.add(aNullableDouble); + toListResult.add(aNullableByteArray); + toListResult.add(aNullable4ByteArray); + toListResult.add(aNullable8ByteArray); + toListResult.add(aNullableFloatArray); + toListResult.add(nullableNestedList); + toListResult.add(nullableMapWithAnnotations); + toListResult.add(nullableMapWithObject); + toListResult.add(aNullableEnum); + toListResult.add(anotherNullableEnum); + toListResult.add(aNullableString); + toListResult.add(aNullableObject); + toListResult.add(allNullableTypes); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(nestedClassList); + toListResult.add(map); + return toListResult; + } + + static @NonNull AllNullableTypes fromList(@NonNull ArrayList __pigeon_list) { + AllNullableTypes pigeonResult = new AllNullableTypes(); + Object aNullableBool = __pigeon_list.get(0); + pigeonResult.setANullableBool((Boolean) aNullableBool); + Object aNullableInt = __pigeon_list.get(1); + pigeonResult.setANullableInt( + (aNullableInt == null) + ? null + : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); + Object aNullableInt64 = __pigeon_list.get(2); + pigeonResult.setANullableInt64( + (aNullableInt64 == null) + ? null + : ((aNullableInt64 instanceof Integer) + ? (Integer) aNullableInt64 + : (Long) aNullableInt64)); + Object aNullableDouble = __pigeon_list.get(3); + pigeonResult.setANullableDouble((Double) aNullableDouble); + Object aNullableByteArray = __pigeon_list.get(4); + pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); + Object aNullable4ByteArray = __pigeon_list.get(5); + pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); + Object aNullable8ByteArray = __pigeon_list.get(6); + pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); + Object aNullableFloatArray = __pigeon_list.get(7); + pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); + Object nullableNestedList = __pigeon_list.get(8); + pigeonResult.setNullableNestedList((List>) nullableNestedList); + Object nullableMapWithAnnotations = __pigeon_list.get(9); + pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); + Object nullableMapWithObject = __pigeon_list.get(10); + pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); + Object aNullableEnum = __pigeon_list.get(11); + pigeonResult.setANullableEnum((AnEnum) aNullableEnum); + Object anotherNullableEnum = __pigeon_list.get(12); + pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); + Object aNullableString = __pigeon_list.get(13); + pigeonResult.setANullableString((String) aNullableString); + Object aNullableObject = __pigeon_list.get(14); + pigeonResult.setANullableObject(aNullableObject); + Object allNullableTypes = __pigeon_list.get(15); + pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); + Object list = __pigeon_list.get(16); + pigeonResult.setList((List) list); + Object stringList = __pigeon_list.get(17); + pigeonResult.setStringList((List) stringList); + Object intList = __pigeon_list.get(18); + pigeonResult.setIntList((List) intList); + Object doubleList = __pigeon_list.get(19); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = __pigeon_list.get(20); + pigeonResult.setBoolList((List) boolList); + Object nestedClassList = __pigeon_list.get(21); + pigeonResult.setNestedClassList((List) nestedClassList); + Object map = __pigeon_list.get(22); + pigeonResult.setMap((Map) map); + return pigeonResult; + } + } + + /** + * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, + * as the primary [AllNullableTypes] class is being used to test Swift classes. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllNullableTypesWithoutRecursion { + private @Nullable Boolean aNullableBool; + + public @Nullable Boolean getANullableBool() { + return aNullableBool; + } + + public void setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + } + + private @Nullable Long aNullableInt; + + public @Nullable Long getANullableInt() { + return aNullableInt; + } + + public void setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + } + + private @Nullable Long aNullableInt64; + + public @Nullable Long getANullableInt64() { + return aNullableInt64; + } + + public void setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + } + + private @Nullable Double aNullableDouble; + + public @Nullable Double getANullableDouble() { + return aNullableDouble; + } + + public void setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + } + + private @Nullable byte[] aNullableByteArray; + + public @Nullable byte[] getANullableByteArray() { + return aNullableByteArray; + } + + public void setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + } + + private @Nullable int[] aNullable4ByteArray; + + public @Nullable int[] getANullable4ByteArray() { + return aNullable4ByteArray; + } + + public void setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + } + + private @Nullable long[] aNullable8ByteArray; + + public @Nullable long[] getANullable8ByteArray() { + return aNullable8ByteArray; + } + + public void setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + } + + private @Nullable double[] aNullableFloatArray; + + public @Nullable double[] getANullableFloatArray() { + return aNullableFloatArray; + } + + public void setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + } + + private @Nullable List> nullableNestedList; + + public @Nullable List> getNullableNestedList() { + return nullableNestedList; + } + + public void setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + } + + private @Nullable Map nullableMapWithAnnotations; + + public @Nullable Map getNullableMapWithAnnotations() { + return nullableMapWithAnnotations; + } + + public void setNullableMapWithAnnotations(@Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + } + + private @Nullable Map nullableMapWithObject; + + public @Nullable Map getNullableMapWithObject() { + return nullableMapWithObject; + } + + public void setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; + } + + private @Nullable AnEnum aNullableEnum; + + public @Nullable AnEnum getANullableEnum() { + return aNullableEnum; + } + + public void setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + public @Nullable AnotherEnum getAnotherNullableEnum() { + return anotherNullableEnum; + } + + public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + } + + private @Nullable String aNullableString; + + public @Nullable String getANullableString() { + return aNullableString; + } + + public void setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + } + + private @Nullable Object aNullableObject; + + public @Nullable Object getANullableObject() { + return aNullableObject; + } + + public void setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + } + + private @Nullable List list; + + public @Nullable List getList() { + return list; + } + + public void setList(@Nullable List setterArg) { + this.list = setterArg; + } + + private @Nullable List stringList; + + public @Nullable List getStringList() { + return stringList; + } + + public void setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + } + + private @Nullable List intList; + + public @Nullable List getIntList() { + return intList; + } + + public void setIntList(@Nullable List setterArg) { + this.intList = setterArg; + } + + private @Nullable List doubleList; + + public @Nullable List getDoubleList() { + return doubleList; + } + + public void setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + } + + private @Nullable List boolList; + + public @Nullable List getBoolList() { + return boolList; + } + + public void setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + } + + private @Nullable Map map; + + public @Nullable Map getMap() { + return map; + } + + public void setMap(@Nullable Map setterArg) { + this.map = setterArg; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; + return Objects.equals(aNullableBool, that.aNullableBool) + && Objects.equals(aNullableInt, that.aNullableInt) + && Objects.equals(aNullableInt64, that.aNullableInt64) + && Objects.equals(aNullableDouble, that.aNullableDouble) + && Arrays.equals(aNullableByteArray, that.aNullableByteArray) + && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) + && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) + && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) + && Objects.equals(nullableNestedList, that.nullableNestedList) + && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) + && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) + && Objects.equals(aNullableEnum, that.aNullableEnum) + && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) + && Objects.equals(aNullableString, that.aNullableString) + && Objects.equals(aNullableObject, that.aNullableObject) + && Objects.equals(list, that.list) + && Objects.equals(stringList, that.stringList) + && Objects.equals(intList, that.intList) + && Objects.equals(doubleList, that.doubleList) + && Objects.equals(boolList, that.boolList) + && Objects.equals(map, that.map); + } + + @Override + public int hashCode() { + int __pigeon_result = + Objects.hash( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + map); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); + return __pigeon_result; + } + + public static final class Builder { + + private @Nullable Boolean aNullableBool; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + return this; + } + + private @Nullable Long aNullableInt; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + return this; + } + + private @Nullable Long aNullableInt64; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + return this; + } + + private @Nullable Double aNullableDouble; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + return this; + } + + private @Nullable byte[] aNullableByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + return this; + } + + private @Nullable int[] aNullable4ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + return this; + } + + private @Nullable long[] aNullable8ByteArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + return this; + } + + private @Nullable double[] aNullableFloatArray; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + return this; + } + + private @Nullable List> nullableNestedList; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + return this; + } + + private @Nullable Map nullableMapWithAnnotations; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithAnnotations( + @Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + return this; + } + + private @Nullable Map nullableMapWithObject; + + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; + return this; + } + + private @Nullable AnEnum aNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + return this; + } + + private @Nullable AnotherEnum anotherNullableEnum; + + @CanIgnoreReturnValue + public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + return this; + } + + private @Nullable String aNullableString; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + return this; + } + + private @Nullable Object aNullableObject; + + @CanIgnoreReturnValue + public @NonNull Builder setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + return this; + } + + private @Nullable List list; + + @CanIgnoreReturnValue + public @NonNull Builder setList(@Nullable List setterArg) { + this.list = setterArg; + return this; + } + + private @Nullable List stringList; + + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + return this; + } + + private @Nullable List intList; + + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@Nullable List setterArg) { + this.intList = setterArg; + return this; + } + + private @Nullable List doubleList; + + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + return this; + } + + private @Nullable List boolList; + + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + return this; + } + + private @Nullable Map map; + + @CanIgnoreReturnValue + public @NonNull Builder setMap(@Nullable Map setterArg) { + this.map = setterArg; + return this; + } + + public @NonNull AllNullableTypesWithoutRecursion build() { + AllNullableTypesWithoutRecursion pigeonReturn = new AllNullableTypesWithoutRecursion(); + pigeonReturn.setANullableBool(aNullableBool); + pigeonReturn.setANullableInt(aNullableInt); + pigeonReturn.setANullableInt64(aNullableInt64); + pigeonReturn.setANullableDouble(aNullableDouble); + pigeonReturn.setANullableByteArray(aNullableByteArray); + pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); + pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); + pigeonReturn.setANullableFloatArray(aNullableFloatArray); + pigeonReturn.setNullableNestedList(nullableNestedList); + pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); + pigeonReturn.setNullableMapWithObject(nullableMapWithObject); + pigeonReturn.setANullableEnum(aNullableEnum); + pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); + pigeonReturn.setANullableString(aNullableString); + pigeonReturn.setANullableObject(aNullableObject); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setMap(map); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(21); + toListResult.add(aNullableBool); + toListResult.add(aNullableInt); + toListResult.add(aNullableInt64); + toListResult.add(aNullableDouble); + toListResult.add(aNullableByteArray); + toListResult.add(aNullable4ByteArray); + toListResult.add(aNullable8ByteArray); + toListResult.add(aNullableFloatArray); + toListResult.add(nullableNestedList); + toListResult.add(nullableMapWithAnnotations); + toListResult.add(nullableMapWithObject); + toListResult.add(aNullableEnum); + toListResult.add(anotherNullableEnum); + toListResult.add(aNullableString); + toListResult.add(aNullableObject); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(map); + return toListResult; + } + + static @NonNull AllNullableTypesWithoutRecursion fromList( + @NonNull ArrayList __pigeon_list) { + AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); + Object aNullableBool = __pigeon_list.get(0); + pigeonResult.setANullableBool((Boolean) aNullableBool); + Object aNullableInt = __pigeon_list.get(1); + pigeonResult.setANullableInt( + (aNullableInt == null) + ? null + : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); + Object aNullableInt64 = __pigeon_list.get(2); + pigeonResult.setANullableInt64( + (aNullableInt64 == null) + ? null + : ((aNullableInt64 instanceof Integer) + ? (Integer) aNullableInt64 + : (Long) aNullableInt64)); + Object aNullableDouble = __pigeon_list.get(3); + pigeonResult.setANullableDouble((Double) aNullableDouble); + Object aNullableByteArray = __pigeon_list.get(4); + pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); + Object aNullable4ByteArray = __pigeon_list.get(5); + pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); + Object aNullable8ByteArray = __pigeon_list.get(6); + pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); + Object aNullableFloatArray = __pigeon_list.get(7); + pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); + Object nullableNestedList = __pigeon_list.get(8); + pigeonResult.setNullableNestedList((List>) nullableNestedList); + Object nullableMapWithAnnotations = __pigeon_list.get(9); + pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); + Object nullableMapWithObject = __pigeon_list.get(10); + pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); + Object aNullableEnum = __pigeon_list.get(11); + pigeonResult.setANullableEnum((AnEnum) aNullableEnum); + Object anotherNullableEnum = __pigeon_list.get(12); + pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); + Object aNullableString = __pigeon_list.get(13); + pigeonResult.setANullableString((String) aNullableString); + Object aNullableObject = __pigeon_list.get(14); + pigeonResult.setANullableObject(aNullableObject); + Object list = __pigeon_list.get(15); + pigeonResult.setList((List) list); + Object stringList = __pigeon_list.get(16); + pigeonResult.setStringList((List) stringList); + Object intList = __pigeon_list.get(17); + pigeonResult.setIntList((List) intList); + Object doubleList = __pigeon_list.get(18); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = __pigeon_list.get(19); + pigeonResult.setBoolList((List) boolList); + Object map = __pigeon_list.get(20); + pigeonResult.setMap((Map) map); + return pigeonResult; + } + } + + /** + * A class for testing nested class handling. + * + *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is + * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require + * both (ie. testing null classes). + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllClassesWrapper { + private @NonNull AllNullableTypes allNullableTypes; + + public @NonNull AllNullableTypes getAllNullableTypes() { + return allNullableTypes; + } + + public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"allNullableTypes\" is null."); + } + this.allNullableTypes = setterArg; + } + + private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; + + public @Nullable AllNullableTypesWithoutRecursion getAllNullableTypesWithoutRecursion() { + return allNullableTypesWithoutRecursion; + } + + public void setAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion setterArg) { + this.allNullableTypesWithoutRecursion = setterArg; + } + + private @Nullable AllTypes allTypes; + + public @Nullable AllTypes getAllTypes() { + return allTypes; + } + + public void setAllTypes(@Nullable AllTypes setterArg) { + this.allTypes = setterArg; + } + + /** Constructor is non-public to enforce null safety; use Builder. */ + AllClassesWrapper() {} + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllClassesWrapper that = (AllClassesWrapper) o; + return allNullableTypes.equals(that.allNullableTypes) + && Objects.equals(allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) + && Objects.equals(allTypes, that.allTypes); + } + + @Override + public int hashCode() { + return Objects.hash(allNullableTypes, allNullableTypesWithoutRecursion, allTypes); + } + + public static final class Builder { + + private @Nullable AllNullableTypes allNullableTypes; + + @CanIgnoreReturnValue + public @NonNull Builder setAllNullableTypes(@NonNull AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + return this; + } + + private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; + + @CanIgnoreReturnValue + public @NonNull Builder setAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion setterArg) { + this.allNullableTypesWithoutRecursion = setterArg; + return this; + } + + private @Nullable AllTypes allTypes; + + @CanIgnoreReturnValue + public @NonNull Builder setAllTypes(@Nullable AllTypes setterArg) { + this.allTypes = setterArg; + return this; + } + + public @NonNull AllClassesWrapper build() { + AllClassesWrapper pigeonReturn = new AllClassesWrapper(); + pigeonReturn.setAllNullableTypes(allNullableTypes); + pigeonReturn.setAllNullableTypesWithoutRecursion(allNullableTypesWithoutRecursion); + pigeonReturn.setAllTypes(allTypes); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(3); + toListResult.add(allNullableTypes); + toListResult.add(allNullableTypesWithoutRecursion); + toListResult.add(allTypes); + return toListResult; + } + + static @NonNull AllClassesWrapper fromList(@NonNull ArrayList __pigeon_list) { + AllClassesWrapper pigeonResult = new AllClassesWrapper(); + Object allNullableTypes = __pigeon_list.get(0); + pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); + Object allNullableTypesWithoutRecursion = __pigeon_list.get(1); + pigeonResult.setAllNullableTypesWithoutRecursion( + (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); + Object allTypes = __pigeon_list.get(2); + pigeonResult.setAllTypes((AllTypes) allTypes); + return pigeonResult; + } + } + + /** + * A data class containing a List, used in unit tests. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class TestMessage { + private @Nullable List testList; + + public @Nullable List getTestList() { + return testList; + } + + public void setTestList(@Nullable List setterArg) { + this.testList = setterArg; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TestMessage that = (TestMessage) o; + return Objects.equals(testList, that.testList); + } + + @Override + public int hashCode() { + return Objects.hash(testList); + } + + public static final class Builder { + + private @Nullable List testList; + + @CanIgnoreReturnValue + public @NonNull Builder setTestList(@Nullable List setterArg) { + this.testList = setterArg; + return this; + } + + public @NonNull TestMessage build() { + TestMessage pigeonReturn = new TestMessage(); + pigeonReturn.setTestList(testList); + return pigeonReturn; + } + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(1); + toListResult.add(testList); + return toListResult; + } + + static @NonNull TestMessage fromList(@NonNull ArrayList __pigeon_list) { + TestMessage pigeonResult = new TestMessage(); + Object testList = __pigeon_list.get(0); + pigeonResult.setTestList((List) testList); + return pigeonResult; + } + } + + public static final class __pigeon_CodecOverflow { + private int type; + + public int getType() { + return type; + } + + public void setType(int setterArg) { + this.type = setterArg; + } + + private @Nullable Object wrapped; + + public @Nullable Object getWrapped() { + return wrapped; + } + + public void setWrapped(@Nullable Object setterArg) { + this.wrapped = setterArg; + } + + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(2); + toListResult.add(type); + toListResult.add(wrapped); + return toListResult; + } + + static @Nullable Object fromList(@NonNull ArrayList __pigeon_list) { + __pigeon_CodecOverflow wrapper = new __pigeon_CodecOverflow(); + Object type = __pigeon_list.get(0); + wrapper.setType((int) type); + Object wrapped = __pigeon_list.get(1); + wrapper.setWrapped(wrapped); + return wrapper.unwrap(); + } + + @Nullable + Object unwrap() { + if (wrapped == null) { + return null; + } + + switch (type) { + case (0): + return AnotherEnum.values()[(int) wrapped]; + case (1): + return AllTypes.fromList((ArrayList) wrapped); + case (2): + return AllNullableTypes.fromList((ArrayList) wrapped); + case (3): + return AllNullableTypesWithoutRecursion.fromList((ArrayList) wrapped); + case (4): + return AllClassesWrapper.fromList((ArrayList) wrapped); + case (5): + return TestMessage.fromList((ArrayList) wrapped); + } + return null; + } + } + + private static class PigeonCodec extends StandardMessageCodec { + public static final PigeonCodec INSTANCE = new PigeonCodec(); + + private PigeonCodec() {} + + @Override + protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { + switch (type) { + case (byte) 129: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum0.values()[(int) value]; + } + case (byte) 130: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum1.values()[(int) value]; + } + case (byte) 131: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum2.values()[(int) value]; + } + case (byte) 132: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum3.values()[(int) value]; + } + case (byte) 133: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum4.values()[(int) value]; + } + case (byte) 134: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum5.values()[(int) value]; + } + case (byte) 135: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum6.values()[(int) value]; + } + case (byte) 136: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum7.values()[(int) value]; + } + case (byte) 137: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum8.values()[(int) value]; + } + case (byte) 138: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum9.values()[(int) value]; + } + case (byte) 139: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum10.values()[(int) value]; + } + case (byte) 140: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum11.values()[(int) value]; + } + case (byte) 141: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum12.values()[(int) value]; + } + case (byte) 142: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum13.values()[(int) value]; + } + case (byte) 143: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum14.values()[(int) value]; + } + case (byte) 144: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum15.values()[(int) value]; + } + case (byte) 145: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum16.values()[(int) value]; + } + case (byte) 146: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum17.values()[(int) value]; + } + case (byte) 147: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum18.values()[(int) value]; + } + case (byte) 148: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum19.values()[(int) value]; + } + case (byte) 149: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum20.values()[(int) value]; + } + case (byte) 150: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum21.values()[(int) value]; + } + case (byte) 151: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum22.values()[(int) value]; + } + case (byte) 152: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum23.values()[(int) value]; + } + case (byte) 153: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum24.values()[(int) value]; + } + case (byte) 154: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum25.values()[(int) value]; + } + case (byte) 155: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum26.values()[(int) value]; + } + case (byte) 156: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum27.values()[(int) value]; + } + case (byte) 157: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum28.values()[(int) value]; + } + case (byte) 158: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum29.values()[(int) value]; + } + case (byte) 159: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum30.values()[(int) value]; + } + case (byte) 160: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum31.values()[(int) value]; + } + case (byte) 161: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum32.values()[(int) value]; + } + case (byte) 162: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum33.values()[(int) value]; + } + case (byte) 163: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum34.values()[(int) value]; + } + case (byte) 164: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum35.values()[(int) value]; + } + case (byte) 165: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum36.values()[(int) value]; + } + case (byte) 166: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum37.values()[(int) value]; + } + case (byte) 167: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum38.values()[(int) value]; + } + case (byte) 168: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum39.values()[(int) value]; + } + case (byte) 169: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum40.values()[(int) value]; + } + case (byte) 170: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum41.values()[(int) value]; + } + case (byte) 171: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum42.values()[(int) value]; + } + case (byte) 172: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum43.values()[(int) value]; + } + case (byte) 173: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum44.values()[(int) value]; + } + case (byte) 174: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum45.values()[(int) value]; + } + case (byte) 175: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum46.values()[(int) value]; + } + case (byte) 176: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum47.values()[(int) value]; + } + case (byte) 177: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum48.values()[(int) value]; + } + case (byte) 178: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum49.values()[(int) value]; + } + case (byte) 179: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum50.values()[(int) value]; + } + case (byte) 180: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum51.values()[(int) value]; + } + case (byte) 181: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum52.values()[(int) value]; + } + case (byte) 182: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum53.values()[(int) value]; + } + case (byte) 183: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum54.values()[(int) value]; + } + case (byte) 184: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum55.values()[(int) value]; + } + case (byte) 185: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum56.values()[(int) value]; + } + case (byte) 186: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum57.values()[(int) value]; + } + case (byte) 187: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum58.values()[(int) value]; + } + case (byte) 188: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum59.values()[(int) value]; + } + case (byte) 189: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum60.values()[(int) value]; + } + case (byte) 190: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum61.values()[(int) value]; + } + case (byte) 191: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum62.values()[(int) value]; + } + case (byte) 192: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum63.values()[(int) value]; + } + case (byte) 193: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum64.values()[(int) value]; + } + case (byte) 194: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum65.values()[(int) value]; + } + case (byte) 195: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum66.values()[(int) value]; + } + case (byte) 196: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum67.values()[(int) value]; + } + case (byte) 197: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum68.values()[(int) value]; + } + case (byte) 198: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum69.values()[(int) value]; + } + case (byte) 199: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum70.values()[(int) value]; + } + case (byte) 200: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum71.values()[(int) value]; + } + case (byte) 201: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum72.values()[(int) value]; + } + case (byte) 202: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum73.values()[(int) value]; + } + case (byte) 203: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum74.values()[(int) value]; + } + case (byte) 204: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum75.values()[(int) value]; + } + case (byte) 205: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum76.values()[(int) value]; + } + case (byte) 206: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum77.values()[(int) value]; + } + case (byte) 207: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum78.values()[(int) value]; + } + case (byte) 208: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum79.values()[(int) value]; + } + case (byte) 209: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum80.values()[(int) value]; + } + case (byte) 210: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum81.values()[(int) value]; + } + case (byte) 211: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum82.values()[(int) value]; + } + case (byte) 212: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum83.values()[(int) value]; + } + case (byte) 213: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum84.values()[(int) value]; + } + case (byte) 214: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum85.values()[(int) value]; + } + case (byte) 215: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum86.values()[(int) value]; + } + case (byte) 216: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum87.values()[(int) value]; + } + case (byte) 217: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum88.values()[(int) value]; + } + case (byte) 218: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum89.values()[(int) value]; + } + case (byte) 219: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum90.values()[(int) value]; + } + case (byte) 220: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum91.values()[(int) value]; + } + case (byte) 221: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum92.values()[(int) value]; + } + case (byte) 222: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum93.values()[(int) value]; + } + case (byte) 223: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum94.values()[(int) value]; + } + case (byte) 224: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum95.values()[(int) value]; + } + case (byte) 225: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum96.values()[(int) value]; + } + case (byte) 226: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum97.values()[(int) value]; + } + case (byte) 227: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum98.values()[(int) value]; + } + case (byte) 228: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum99.values()[(int) value]; + } + case (byte) 229: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum100.values()[(int) value]; + } + case (byte) 230: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum101.values()[(int) value]; + } + case (byte) 231: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum102.values()[(int) value]; + } + case (byte) 232: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum103.values()[(int) value]; + } + case (byte) 233: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum104.values()[(int) value]; + } + case (byte) 234: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum105.values()[(int) value]; + } + case (byte) 235: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum106.values()[(int) value]; + } + case (byte) 236: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum107.values()[(int) value]; + } + case (byte) 237: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum108.values()[(int) value]; + } + case (byte) 238: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum109.values()[(int) value]; + } + case (byte) 239: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum110.values()[(int) value]; + } + case (byte) 240: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum111.values()[(int) value]; + } + case (byte) 241: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum112.values()[(int) value]; + } + case (byte) 242: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum113.values()[(int) value]; + } + case (byte) 243: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum114.values()[(int) value]; + } + case (byte) 244: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum115.values()[(int) value]; + } + case (byte) 245: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum116.values()[(int) value]; + } + case (byte) 246: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum117.values()[(int) value]; + } + case (byte) 247: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum118.values()[(int) value]; + } + case (byte) 248: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum119.values()[(int) value]; + } + case (byte) 249: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum120.values()[(int) value]; + } + case (byte) 250: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum121.values()[(int) value]; + } + case (byte) 251: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum122.values()[(int) value]; + } + case (byte) 252: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum123.values()[(int) value]; + } + case (byte) 253: + { + Object value = readValue(buffer); + return value == null ? null : FillerEnum124.values()[(int) value]; + } + case (byte) 254: { Object value = readValue(buffer); return value == null ? null : AnEnum.values()[(int) value]; } - case (byte) 130: - return AllTypes.fromList((ArrayList) readValue(buffer)); - case (byte) 131: - return AllNullableTypes.fromList((ArrayList) readValue(buffer)); - case (byte) 132: - return AllNullableTypesWithoutRecursion.fromList((ArrayList) readValue(buffer)); - case (byte) 133: - return AllClassesWrapper.fromList((ArrayList) readValue(buffer)); - case (byte) 134: - return TestMessage.fromList((ArrayList) readValue(buffer)); + case (byte) 255: + return __pigeon_CodecOverflow.fromList((ArrayList) readValue(buffer)); default: return super.readValueOfType(type, buffer); } @@ -1934,24 +3948,420 @@ protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { @Override protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { - if (value instanceof AnEnum) { + if (value instanceof FillerEnum0) { stream.write(129); + writeValue(stream, value == null ? null : ((FillerEnum0) value).index); + } else if (value instanceof FillerEnum1) { + stream.write(130); + writeValue(stream, value == null ? null : ((FillerEnum1) value).index); + } else if (value instanceof FillerEnum2) { + stream.write(131); + writeValue(stream, value == null ? null : ((FillerEnum2) value).index); + } else if (value instanceof FillerEnum3) { + stream.write(132); + writeValue(stream, value == null ? null : ((FillerEnum3) value).index); + } else if (value instanceof FillerEnum4) { + stream.write(133); + writeValue(stream, value == null ? null : ((FillerEnum4) value).index); + } else if (value instanceof FillerEnum5) { + stream.write(134); + writeValue(stream, value == null ? null : ((FillerEnum5) value).index); + } else if (value instanceof FillerEnum6) { + stream.write(135); + writeValue(stream, value == null ? null : ((FillerEnum6) value).index); + } else if (value instanceof FillerEnum7) { + stream.write(136); + writeValue(stream, value == null ? null : ((FillerEnum7) value).index); + } else if (value instanceof FillerEnum8) { + stream.write(137); + writeValue(stream, value == null ? null : ((FillerEnum8) value).index); + } else if (value instanceof FillerEnum9) { + stream.write(138); + writeValue(stream, value == null ? null : ((FillerEnum9) value).index); + } else if (value instanceof FillerEnum10) { + stream.write(139); + writeValue(stream, value == null ? null : ((FillerEnum10) value).index); + } else if (value instanceof FillerEnum11) { + stream.write(140); + writeValue(stream, value == null ? null : ((FillerEnum11) value).index); + } else if (value instanceof FillerEnum12) { + stream.write(141); + writeValue(stream, value == null ? null : ((FillerEnum12) value).index); + } else if (value instanceof FillerEnum13) { + stream.write(142); + writeValue(stream, value == null ? null : ((FillerEnum13) value).index); + } else if (value instanceof FillerEnum14) { + stream.write(143); + writeValue(stream, value == null ? null : ((FillerEnum14) value).index); + } else if (value instanceof FillerEnum15) { + stream.write(144); + writeValue(stream, value == null ? null : ((FillerEnum15) value).index); + } else if (value instanceof FillerEnum16) { + stream.write(145); + writeValue(stream, value == null ? null : ((FillerEnum16) value).index); + } else if (value instanceof FillerEnum17) { + stream.write(146); + writeValue(stream, value == null ? null : ((FillerEnum17) value).index); + } else if (value instanceof FillerEnum18) { + stream.write(147); + writeValue(stream, value == null ? null : ((FillerEnum18) value).index); + } else if (value instanceof FillerEnum19) { + stream.write(148); + writeValue(stream, value == null ? null : ((FillerEnum19) value).index); + } else if (value instanceof FillerEnum20) { + stream.write(149); + writeValue(stream, value == null ? null : ((FillerEnum20) value).index); + } else if (value instanceof FillerEnum21) { + stream.write(150); + writeValue(stream, value == null ? null : ((FillerEnum21) value).index); + } else if (value instanceof FillerEnum22) { + stream.write(151); + writeValue(stream, value == null ? null : ((FillerEnum22) value).index); + } else if (value instanceof FillerEnum23) { + stream.write(152); + writeValue(stream, value == null ? null : ((FillerEnum23) value).index); + } else if (value instanceof FillerEnum24) { + stream.write(153); + writeValue(stream, value == null ? null : ((FillerEnum24) value).index); + } else if (value instanceof FillerEnum25) { + stream.write(154); + writeValue(stream, value == null ? null : ((FillerEnum25) value).index); + } else if (value instanceof FillerEnum26) { + stream.write(155); + writeValue(stream, value == null ? null : ((FillerEnum26) value).index); + } else if (value instanceof FillerEnum27) { + stream.write(156); + writeValue(stream, value == null ? null : ((FillerEnum27) value).index); + } else if (value instanceof FillerEnum28) { + stream.write(157); + writeValue(stream, value == null ? null : ((FillerEnum28) value).index); + } else if (value instanceof FillerEnum29) { + stream.write(158); + writeValue(stream, value == null ? null : ((FillerEnum29) value).index); + } else if (value instanceof FillerEnum30) { + stream.write(159); + writeValue(stream, value == null ? null : ((FillerEnum30) value).index); + } else if (value instanceof FillerEnum31) { + stream.write(160); + writeValue(stream, value == null ? null : ((FillerEnum31) value).index); + } else if (value instanceof FillerEnum32) { + stream.write(161); + writeValue(stream, value == null ? null : ((FillerEnum32) value).index); + } else if (value instanceof FillerEnum33) { + stream.write(162); + writeValue(stream, value == null ? null : ((FillerEnum33) value).index); + } else if (value instanceof FillerEnum34) { + stream.write(163); + writeValue(stream, value == null ? null : ((FillerEnum34) value).index); + } else if (value instanceof FillerEnum35) { + stream.write(164); + writeValue(stream, value == null ? null : ((FillerEnum35) value).index); + } else if (value instanceof FillerEnum36) { + stream.write(165); + writeValue(stream, value == null ? null : ((FillerEnum36) value).index); + } else if (value instanceof FillerEnum37) { + stream.write(166); + writeValue(stream, value == null ? null : ((FillerEnum37) value).index); + } else if (value instanceof FillerEnum38) { + stream.write(167); + writeValue(stream, value == null ? null : ((FillerEnum38) value).index); + } else if (value instanceof FillerEnum39) { + stream.write(168); + writeValue(stream, value == null ? null : ((FillerEnum39) value).index); + } else if (value instanceof FillerEnum40) { + stream.write(169); + writeValue(stream, value == null ? null : ((FillerEnum40) value).index); + } else if (value instanceof FillerEnum41) { + stream.write(170); + writeValue(stream, value == null ? null : ((FillerEnum41) value).index); + } else if (value instanceof FillerEnum42) { + stream.write(171); + writeValue(stream, value == null ? null : ((FillerEnum42) value).index); + } else if (value instanceof FillerEnum43) { + stream.write(172); + writeValue(stream, value == null ? null : ((FillerEnum43) value).index); + } else if (value instanceof FillerEnum44) { + stream.write(173); + writeValue(stream, value == null ? null : ((FillerEnum44) value).index); + } else if (value instanceof FillerEnum45) { + stream.write(174); + writeValue(stream, value == null ? null : ((FillerEnum45) value).index); + } else if (value instanceof FillerEnum46) { + stream.write(175); + writeValue(stream, value == null ? null : ((FillerEnum46) value).index); + } else if (value instanceof FillerEnum47) { + stream.write(176); + writeValue(stream, value == null ? null : ((FillerEnum47) value).index); + } else if (value instanceof FillerEnum48) { + stream.write(177); + writeValue(stream, value == null ? null : ((FillerEnum48) value).index); + } else if (value instanceof FillerEnum49) { + stream.write(178); + writeValue(stream, value == null ? null : ((FillerEnum49) value).index); + } else if (value instanceof FillerEnum50) { + stream.write(179); + writeValue(stream, value == null ? null : ((FillerEnum50) value).index); + } else if (value instanceof FillerEnum51) { + stream.write(180); + writeValue(stream, value == null ? null : ((FillerEnum51) value).index); + } else if (value instanceof FillerEnum52) { + stream.write(181); + writeValue(stream, value == null ? null : ((FillerEnum52) value).index); + } else if (value instanceof FillerEnum53) { + stream.write(182); + writeValue(stream, value == null ? null : ((FillerEnum53) value).index); + } else if (value instanceof FillerEnum54) { + stream.write(183); + writeValue(stream, value == null ? null : ((FillerEnum54) value).index); + } else if (value instanceof FillerEnum55) { + stream.write(184); + writeValue(stream, value == null ? null : ((FillerEnum55) value).index); + } else if (value instanceof FillerEnum56) { + stream.write(185); + writeValue(stream, value == null ? null : ((FillerEnum56) value).index); + } else if (value instanceof FillerEnum57) { + stream.write(186); + writeValue(stream, value == null ? null : ((FillerEnum57) value).index); + } else if (value instanceof FillerEnum58) { + stream.write(187); + writeValue(stream, value == null ? null : ((FillerEnum58) value).index); + } else if (value instanceof FillerEnum59) { + stream.write(188); + writeValue(stream, value == null ? null : ((FillerEnum59) value).index); + } else if (value instanceof FillerEnum60) { + stream.write(189); + writeValue(stream, value == null ? null : ((FillerEnum60) value).index); + } else if (value instanceof FillerEnum61) { + stream.write(190); + writeValue(stream, value == null ? null : ((FillerEnum61) value).index); + } else if (value instanceof FillerEnum62) { + stream.write(191); + writeValue(stream, value == null ? null : ((FillerEnum62) value).index); + } else if (value instanceof FillerEnum63) { + stream.write(192); + writeValue(stream, value == null ? null : ((FillerEnum63) value).index); + } else if (value instanceof FillerEnum64) { + stream.write(193); + writeValue(stream, value == null ? null : ((FillerEnum64) value).index); + } else if (value instanceof FillerEnum65) { + stream.write(194); + writeValue(stream, value == null ? null : ((FillerEnum65) value).index); + } else if (value instanceof FillerEnum66) { + stream.write(195); + writeValue(stream, value == null ? null : ((FillerEnum66) value).index); + } else if (value instanceof FillerEnum67) { + stream.write(196); + writeValue(stream, value == null ? null : ((FillerEnum67) value).index); + } else if (value instanceof FillerEnum68) { + stream.write(197); + writeValue(stream, value == null ? null : ((FillerEnum68) value).index); + } else if (value instanceof FillerEnum69) { + stream.write(198); + writeValue(stream, value == null ? null : ((FillerEnum69) value).index); + } else if (value instanceof FillerEnum70) { + stream.write(199); + writeValue(stream, value == null ? null : ((FillerEnum70) value).index); + } else if (value instanceof FillerEnum71) { + stream.write(200); + writeValue(stream, value == null ? null : ((FillerEnum71) value).index); + } else if (value instanceof FillerEnum72) { + stream.write(201); + writeValue(stream, value == null ? null : ((FillerEnum72) value).index); + } else if (value instanceof FillerEnum73) { + stream.write(202); + writeValue(stream, value == null ? null : ((FillerEnum73) value).index); + } else if (value instanceof FillerEnum74) { + stream.write(203); + writeValue(stream, value == null ? null : ((FillerEnum74) value).index); + } else if (value instanceof FillerEnum75) { + stream.write(204); + writeValue(stream, value == null ? null : ((FillerEnum75) value).index); + } else if (value instanceof FillerEnum76) { + stream.write(205); + writeValue(stream, value == null ? null : ((FillerEnum76) value).index); + } else if (value instanceof FillerEnum77) { + stream.write(206); + writeValue(stream, value == null ? null : ((FillerEnum77) value).index); + } else if (value instanceof FillerEnum78) { + stream.write(207); + writeValue(stream, value == null ? null : ((FillerEnum78) value).index); + } else if (value instanceof FillerEnum79) { + stream.write(208); + writeValue(stream, value == null ? null : ((FillerEnum79) value).index); + } else if (value instanceof FillerEnum80) { + stream.write(209); + writeValue(stream, value == null ? null : ((FillerEnum80) value).index); + } else if (value instanceof FillerEnum81) { + stream.write(210); + writeValue(stream, value == null ? null : ((FillerEnum81) value).index); + } else if (value instanceof FillerEnum82) { + stream.write(211); + writeValue(stream, value == null ? null : ((FillerEnum82) value).index); + } else if (value instanceof FillerEnum83) { + stream.write(212); + writeValue(stream, value == null ? null : ((FillerEnum83) value).index); + } else if (value instanceof FillerEnum84) { + stream.write(213); + writeValue(stream, value == null ? null : ((FillerEnum84) value).index); + } else if (value instanceof FillerEnum85) { + stream.write(214); + writeValue(stream, value == null ? null : ((FillerEnum85) value).index); + } else if (value instanceof FillerEnum86) { + stream.write(215); + writeValue(stream, value == null ? null : ((FillerEnum86) value).index); + } else if (value instanceof FillerEnum87) { + stream.write(216); + writeValue(stream, value == null ? null : ((FillerEnum87) value).index); + } else if (value instanceof FillerEnum88) { + stream.write(217); + writeValue(stream, value == null ? null : ((FillerEnum88) value).index); + } else if (value instanceof FillerEnum89) { + stream.write(218); + writeValue(stream, value == null ? null : ((FillerEnum89) value).index); + } else if (value instanceof FillerEnum90) { + stream.write(219); + writeValue(stream, value == null ? null : ((FillerEnum90) value).index); + } else if (value instanceof FillerEnum91) { + stream.write(220); + writeValue(stream, value == null ? null : ((FillerEnum91) value).index); + } else if (value instanceof FillerEnum92) { + stream.write(221); + writeValue(stream, value == null ? null : ((FillerEnum92) value).index); + } else if (value instanceof FillerEnum93) { + stream.write(222); + writeValue(stream, value == null ? null : ((FillerEnum93) value).index); + } else if (value instanceof FillerEnum94) { + stream.write(223); + writeValue(stream, value == null ? null : ((FillerEnum94) value).index); + } else if (value instanceof FillerEnum95) { + stream.write(224); + writeValue(stream, value == null ? null : ((FillerEnum95) value).index); + } else if (value instanceof FillerEnum96) { + stream.write(225); + writeValue(stream, value == null ? null : ((FillerEnum96) value).index); + } else if (value instanceof FillerEnum97) { + stream.write(226); + writeValue(stream, value == null ? null : ((FillerEnum97) value).index); + } else if (value instanceof FillerEnum98) { + stream.write(227); + writeValue(stream, value == null ? null : ((FillerEnum98) value).index); + } else if (value instanceof FillerEnum99) { + stream.write(228); + writeValue(stream, value == null ? null : ((FillerEnum99) value).index); + } else if (value instanceof FillerEnum100) { + stream.write(229); + writeValue(stream, value == null ? null : ((FillerEnum100) value).index); + } else if (value instanceof FillerEnum101) { + stream.write(230); + writeValue(stream, value == null ? null : ((FillerEnum101) value).index); + } else if (value instanceof FillerEnum102) { + stream.write(231); + writeValue(stream, value == null ? null : ((FillerEnum102) value).index); + } else if (value instanceof FillerEnum103) { + stream.write(232); + writeValue(stream, value == null ? null : ((FillerEnum103) value).index); + } else if (value instanceof FillerEnum104) { + stream.write(233); + writeValue(stream, value == null ? null : ((FillerEnum104) value).index); + } else if (value instanceof FillerEnum105) { + stream.write(234); + writeValue(stream, value == null ? null : ((FillerEnum105) value).index); + } else if (value instanceof FillerEnum106) { + stream.write(235); + writeValue(stream, value == null ? null : ((FillerEnum106) value).index); + } else if (value instanceof FillerEnum107) { + stream.write(236); + writeValue(stream, value == null ? null : ((FillerEnum107) value).index); + } else if (value instanceof FillerEnum108) { + stream.write(237); + writeValue(stream, value == null ? null : ((FillerEnum108) value).index); + } else if (value instanceof FillerEnum109) { + stream.write(238); + writeValue(stream, value == null ? null : ((FillerEnum109) value).index); + } else if (value instanceof FillerEnum110) { + stream.write(239); + writeValue(stream, value == null ? null : ((FillerEnum110) value).index); + } else if (value instanceof FillerEnum111) { + stream.write(240); + writeValue(stream, value == null ? null : ((FillerEnum111) value).index); + } else if (value instanceof FillerEnum112) { + stream.write(241); + writeValue(stream, value == null ? null : ((FillerEnum112) value).index); + } else if (value instanceof FillerEnum113) { + stream.write(242); + writeValue(stream, value == null ? null : ((FillerEnum113) value).index); + } else if (value instanceof FillerEnum114) { + stream.write(243); + writeValue(stream, value == null ? null : ((FillerEnum114) value).index); + } else if (value instanceof FillerEnum115) { + stream.write(244); + writeValue(stream, value == null ? null : ((FillerEnum115) value).index); + } else if (value instanceof FillerEnum116) { + stream.write(245); + writeValue(stream, value == null ? null : ((FillerEnum116) value).index); + } else if (value instanceof FillerEnum117) { + stream.write(246); + writeValue(stream, value == null ? null : ((FillerEnum117) value).index); + } else if (value instanceof FillerEnum118) { + stream.write(247); + writeValue(stream, value == null ? null : ((FillerEnum118) value).index); + } else if (value instanceof FillerEnum119) { + stream.write(248); + writeValue(stream, value == null ? null : ((FillerEnum119) value).index); + } else if (value instanceof FillerEnum120) { + stream.write(249); + writeValue(stream, value == null ? null : ((FillerEnum120) value).index); + } else if (value instanceof FillerEnum121) { + stream.write(250); + writeValue(stream, value == null ? null : ((FillerEnum121) value).index); + } else if (value instanceof FillerEnum122) { + stream.write(251); + writeValue(stream, value == null ? null : ((FillerEnum122) value).index); + } else if (value instanceof FillerEnum123) { + stream.write(252); + writeValue(stream, value == null ? null : ((FillerEnum123) value).index); + } else if (value instanceof FillerEnum124) { + stream.write(253); + writeValue(stream, value == null ? null : ((FillerEnum124) value).index); + } else if (value instanceof AnEnum) { + stream.write(254); writeValue(stream, value == null ? null : ((AnEnum) value).index); + } else if (value instanceof AnotherEnum) { + __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); + wrap.setType(0); + wrap.setWrapped(value == null ? null : ((AnotherEnum) value).index); + stream.write(255); + writeValue(stream, wrap.toList()); } else if (value instanceof AllTypes) { - stream.write(130); - writeValue(stream, ((AllTypes) value).toList()); + __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); + wrap.setType(1); + wrap.setWrapped(((AllTypes) value).toList()); + stream.write(255); + writeValue(stream, wrap.toList()); } else if (value instanceof AllNullableTypes) { - stream.write(131); - writeValue(stream, ((AllNullableTypes) value).toList()); + __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); + wrap.setType(2); + wrap.setWrapped(((AllNullableTypes) value).toList()); + stream.write(255); + writeValue(stream, wrap.toList()); } else if (value instanceof AllNullableTypesWithoutRecursion) { - stream.write(132); - writeValue(stream, ((AllNullableTypesWithoutRecursion) value).toList()); + __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); + wrap.setType(3); + wrap.setWrapped(((AllNullableTypesWithoutRecursion) value).toList()); + stream.write(255); + writeValue(stream, wrap.toList()); } else if (value instanceof AllClassesWrapper) { - stream.write(133); - writeValue(stream, ((AllClassesWrapper) value).toList()); + __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); + wrap.setType(4); + wrap.setWrapped(((AllClassesWrapper) value).toList()); + stream.write(255); + writeValue(stream, wrap.toList()); } else if (value instanceof TestMessage) { - stream.write(134); - writeValue(stream, ((TestMessage) value).toList()); + __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); + wrap.setType(5); + wrap.setWrapped(((TestMessage) value).toList()); + stream.write(255); + writeValue(stream, wrap.toList()); } else { super.writeValue(stream, value); } @@ -2034,6 +4444,9 @@ public interface HostIntegrationCoreApi { /** Returns the passed enum to test serialization and deserialization. */ @NonNull AnEnum echoEnum(@NonNull AnEnum anEnum); + /** Returns the passed enum to test serialization and deserialization. */ + @NonNull + AnotherEnum echoAnotherEnum(@NonNull AnotherEnum anotherEnum); /** Returns the default string. */ @NonNull String echoNamedDefaultString(@NonNull String aString); @@ -2099,6 +4512,9 @@ AllNullableTypesWithoutRecursion sendMultipleNullableTypesWithoutRecursion( @Nullable AnEnum echoNullableEnum(@Nullable AnEnum anEnum); + + @Nullable + AnotherEnum echoAnotherNullableEnum(@Nullable AnotherEnum anotherEnum); /** Returns passed in int. */ @Nullable Long echoOptionalNullableInt(@Nullable Long aNullableInt); @@ -2129,6 +4545,9 @@ void echoAsyncMap( @NonNull Map aMap, @NonNull Result> result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ void echoAsyncEnum(@NonNull AnEnum anEnum, @NonNull Result result); + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + void echoAnotherAsyncEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result); /** Responds with an error from an async function returning a value. */ void throwAsyncError(@NonNull NullableResult result); /** Responds with an error from an async void function. */ @@ -2165,6 +4584,9 @@ void echoAsyncNullableMap( @Nullable Map aMap, @NonNull NullableResult> result); /** Returns the passed enum, to test asynchronous serialization and deserialization. */ void echoAsyncNullableEnum(@Nullable AnEnum anEnum, @NonNull NullableResult result); + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + void echoAnotherAsyncNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); void callFlutterNoop(@NonNull VoidResult result); @@ -2210,6 +4632,9 @@ void callFlutterEchoMap( void callFlutterEchoEnum(@NonNull AnEnum anEnum, @NonNull Result result); + void callFlutterEchoAnotherEnum( + @NonNull AnotherEnum anotherEnum, @NonNull Result result); + void callFlutterEchoNullableBool( @Nullable Boolean aBool, @NonNull NullableResult result); @@ -2233,6 +4658,9 @@ void callFlutterEchoNullableMap( void callFlutterEchoNullableEnum( @Nullable AnEnum anEnum, @NonNull NullableResult result); + void callFlutterEchoAnotherNullableEnum( + @Nullable AnotherEnum anotherEnum, @NonNull NullableResult result); + void callFlutterSmallApiEchoString(@NonNull String aString, @NonNull Result result); /** The codec used by HostIntegrationCoreApi. */ @@ -2620,6 +5048,31 @@ static void setUp( channel.setMessageHandler(null); } } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + try { + AnotherEnum output = api.echoAnotherEnum(anotherEnumArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } { BasicMessageChannel channel = new BasicMessageChannel<>( @@ -3087,6 +5540,31 @@ static void setUp( channel.setMessageHandler(null); } } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + try { + AnotherEnum output = api.echoAnotherNullableEnum(anotherEnumArg); + wrapped.add(0, output); + } catch (Throwable exception) { + wrapped = wrapError(exception); + } + reply.reply(wrapped); + }); + } else { + channel.setMessageHandler(null); + } + } { BasicMessageChannel channel = new BasicMessageChannel<>( @@ -3457,6 +5935,38 @@ public void error(Throwable error) { channel.setMessageHandler(null); } } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + Result resultCallback = + new Result() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAnotherAsyncEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } { BasicMessageChannel channel = new BasicMessageChannel<>( @@ -3934,6 +6444,38 @@ public void error(Throwable error) { channel.setMessageHandler(null); } } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.echoAnotherAsyncNullableEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } { BasicMessageChannel channel = new BasicMessageChannel<>( @@ -4454,6 +6996,38 @@ public void error(Throwable error) { channel.setMessageHandler(null); } } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + Result resultCallback = + new Result() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoAnotherEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } { BasicMessageChannel channel = new BasicMessageChannel<>( @@ -4711,6 +7285,38 @@ public void error(Throwable error) { channel.setMessageHandler(null); } } + { + BasicMessageChannel channel = + new BasicMessageChannel<>( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum" + + messageChannelSuffix, + getCodec()); + if (api != null) { + channel.setMessageHandler( + (message, reply) -> { + ArrayList wrapped = new ArrayList<>(); + ArrayList args = (ArrayList) message; + AnotherEnum anotherEnumArg = (AnotherEnum) args.get(0); + NullableResult resultCallback = + new NullableResult() { + public void success(AnotherEnum result) { + wrapped.add(0, result); + reply.reply(wrapped); + } + + public void error(Throwable error) { + ArrayList wrappedError = wrapError(error); + reply.reply(wrappedError); + } + }; + + api.callFlutterEchoAnotherNullableEnum(anotherEnumArg, resultCallback); + }); + } else { + channel.setMessageHandler(null); + } + } { BasicMessageChannel channel = new BasicMessageChannel<>( @@ -5273,6 +7879,39 @@ public void echoEnum(@NonNull AnEnum anEnumArg, @NonNull Result result) } }); } + /** Returns the passed enum to test serialization and deserialization. */ + public void echoAnotherEnum( + @NonNull AnotherEnum anotherEnumArg, @NonNull Result result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anotherEnumArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else if (listReply.get(0) == null) { + result.error( + new FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + "")); + } else { + @SuppressWarnings("ConstantConditions") + AnotherEnum output = (AnotherEnum) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } /** Returns the passed boolean, to test serialization and deserialization. */ public void echoNullableBool( @Nullable Boolean aBoolArg, @NonNull NullableResult result) { @@ -5490,6 +8129,33 @@ public void echoNullableEnum( } }); } + /** Returns the passed enum to test serialization and deserialization. */ + public void echoAnotherNullableEnum( + @Nullable AnotherEnum anotherEnumArg, @NonNull NullableResult result) { + final String channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum" + + messageChannelSuffix; + BasicMessageChannel channel = + new BasicMessageChannel<>(binaryMessenger, channelName, getCodec()); + channel.send( + new ArrayList<>(Collections.singletonList(anotherEnumArg)), + channelReply -> { + if (channelReply instanceof List) { + List listReply = (List) channelReply; + if (listReply.size() > 1) { + result.error( + new FlutterError( + (String) listReply.get(0), (String) listReply.get(1), listReply.get(2))); + } else { + @SuppressWarnings("ConstantConditions") + AnotherEnum output = (AnotherEnum) listReply.get(0); + result.success(output); + } + } else { + result.error(createConnectionError(channelName)); + } + }); + } /** * A no-op function taking no arguments and returning no value, to sanity test basic * asynchronous calling. diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java index 20146fdc0e0..99bbb49c7ec 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/test/java/com/example/alternate_language_test_plugin/AllDatatypesTest.java @@ -34,6 +34,7 @@ void compareAllTypes(AllTypes firstTypes, AllTypes secondTypes) { assertArrayEquals(firstTypes.getA8ByteArray(), secondTypes.getA8ByteArray()); assertTrue(floatArraysEqual(firstTypes.getAFloatArray(), secondTypes.getAFloatArray())); assertEquals(firstTypes.getAnEnum(), secondTypes.getAnEnum()); + assertEquals(firstTypes.getAnotherEnum(), secondTypes.getAnotherEnum()); assertEquals(firstTypes.getAnObject(), secondTypes.getAnObject()); assertArrayEquals(firstTypes.getList().toArray(), secondTypes.getList().toArray()); assertArrayEquals(firstTypes.getStringList().toArray(), secondTypes.getStringList().toArray()); @@ -175,6 +176,7 @@ public void hasValues() { .setA8ByteArray(new long[] {1, 2, 3, 4}) .setAFloatArray(new double[] {0.5, 0.25, 1.5, 1.25}) .setAnEnum(CoreTests.AnEnum.ONE) + .setAnotherEnum(CoreTests.AnotherEnum.JUST_IN_CASE) .setAnObject(0) .setBoolList(Arrays.asList(new Boolean[] {true, false})) .setDoubleList(Arrays.asList(new Double[] {0.5, 0.25, 1.5, 1.25})) diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/AlternateLanguageTestPlugin.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/AlternateLanguageTestPlugin.m index 4ea9519033c..ef45caaf12e 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/AlternateLanguageTestPlugin.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/AlternateLanguageTestPlugin.m @@ -110,6 +110,11 @@ - (FLTAnEnumBox *_Nullable)echoEnum:(FLTAnEnum)anEnum return [[FLTAnEnumBox alloc] initWithValue:anEnum]; } +- (FLTAnotherEnumBox *_Nullable)echoAnotherEnum:(FLTAnotherEnum)anotherEnum + error:(FlutterError *_Nullable *_Nonnull)error { + return [[FLTAnotherEnumBox alloc] initWithValue:anotherEnum]; +} + - (nullable NSString *)echoNamedDefaultString:(NSString *)aString error:(FlutterError *_Nullable *_Nonnull)error { return aString; @@ -214,6 +219,12 @@ - (FLTAnEnumBox *_Nullable)echoNullableEnum:(nullable FLTAnEnumBox *)AnEnumBoxed return AnEnumBoxed; } +- (FLTAnotherEnumBox *_Nullable)echoAnotherNullableEnum: + (nullable FLTAnotherEnumBox *)AnotherEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error { + return AnotherEnumBoxed; +} + - (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error { return aNullableInt; @@ -309,6 +320,12 @@ - (void)echoAsyncEnum:(FLTAnEnum)anEnum completion([[FLTAnEnumBox alloc] initWithValue:anEnum], nil); } +- (void)echoAnotherAsyncEnum:(FLTAnotherEnum)anotherEnum + completion: + (void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + completion([[FLTAnotherEnumBox alloc] initWithValue:anotherEnum], nil); +} + - (void)echoAsyncNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { completion(anInt, nil); @@ -358,6 +375,12 @@ - (void)echoAsyncNullableEnum:(nullable FLTAnEnumBox *)AnEnumBoxed completion(AnEnumBoxed, nil); } +- (void)echoAnotherAsyncNullableEnum:(nullable FLTAnotherEnumBox *)AnotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + completion(AnotherEnumBoxed, nil); +} + - (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion { [self.flutterAPI noopWithCompletion:^(FlutterError *error) { completion(error); @@ -485,6 +508,15 @@ - (void)callFlutterEchoEnum:(FLTAnEnum)anEnum }]; } +- (void)callFlutterEchoAnotherEnum:(FLTAnotherEnum)anotherEnum + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + [self.flutterAPI echoAnotherEnum:anotherEnum + completion:^(FLTAnotherEnumBox *value, FlutterError *error) { + completion(value, error); + }]; +} + - (void)callFlutterEchoAllNullableTypes:(nullable FLTAllNullableTypes *)everything completion:(void (^)(FLTAllNullableTypes *_Nullable, FlutterError *_Nullable))completion { @@ -580,6 +612,15 @@ - (void)callFlutterEchoNullableEnum:(nullable FLTAnEnumBox *)AnEnumBoxed }]; } +- (void)callFlutterEchoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)AnotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + [self.flutterAPI echoAnotherNullableEnum:AnotherEnumBoxed + completion:^(FLTAnotherEnumBox *value, FlutterError *error) { + completion(value, error); + }]; +} + - (void)callFlutterSmallApiEchoString:(nonnull NSString *)aString completion:(nonnull void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h index 2bf7bbf26be..ad76df49974 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h @@ -14,6 +14,1256 @@ NS_ASSUME_NONNULL_BEGIN +typedef NS_ENUM(NSUInteger, FLTFillerEnum0) { + FLTFillerEnum0FillerMember0 = 0, +}; + +/// Wrapper for FLTFillerEnum0 to allow for nullability. +@interface FLTFillerEnum0Box : NSObject +@property(nonatomic, assign) FLTFillerEnum0 value; +- (instancetype)initWithValue:(FLTFillerEnum0)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum1) { + FLTFillerEnum1FillerMember1 = 0, +}; + +/// Wrapper for FLTFillerEnum1 to allow for nullability. +@interface FLTFillerEnum1Box : NSObject +@property(nonatomic, assign) FLTFillerEnum1 value; +- (instancetype)initWithValue:(FLTFillerEnum1)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum2) { + FLTFillerEnum2FillerMember2 = 0, +}; + +/// Wrapper for FLTFillerEnum2 to allow for nullability. +@interface FLTFillerEnum2Box : NSObject +@property(nonatomic, assign) FLTFillerEnum2 value; +- (instancetype)initWithValue:(FLTFillerEnum2)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum3) { + FLTFillerEnum3FillerMember3 = 0, +}; + +/// Wrapper for FLTFillerEnum3 to allow for nullability. +@interface FLTFillerEnum3Box : NSObject +@property(nonatomic, assign) FLTFillerEnum3 value; +- (instancetype)initWithValue:(FLTFillerEnum3)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum4) { + FLTFillerEnum4FillerMember4 = 0, +}; + +/// Wrapper for FLTFillerEnum4 to allow for nullability. +@interface FLTFillerEnum4Box : NSObject +@property(nonatomic, assign) FLTFillerEnum4 value; +- (instancetype)initWithValue:(FLTFillerEnum4)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum5) { + FLTFillerEnum5FillerMember5 = 0, +}; + +/// Wrapper for FLTFillerEnum5 to allow for nullability. +@interface FLTFillerEnum5Box : NSObject +@property(nonatomic, assign) FLTFillerEnum5 value; +- (instancetype)initWithValue:(FLTFillerEnum5)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum6) { + FLTFillerEnum6FillerMember6 = 0, +}; + +/// Wrapper for FLTFillerEnum6 to allow for nullability. +@interface FLTFillerEnum6Box : NSObject +@property(nonatomic, assign) FLTFillerEnum6 value; +- (instancetype)initWithValue:(FLTFillerEnum6)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum7) { + FLTFillerEnum7FillerMember7 = 0, +}; + +/// Wrapper for FLTFillerEnum7 to allow for nullability. +@interface FLTFillerEnum7Box : NSObject +@property(nonatomic, assign) FLTFillerEnum7 value; +- (instancetype)initWithValue:(FLTFillerEnum7)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum8) { + FLTFillerEnum8FillerMember8 = 0, +}; + +/// Wrapper for FLTFillerEnum8 to allow for nullability. +@interface FLTFillerEnum8Box : NSObject +@property(nonatomic, assign) FLTFillerEnum8 value; +- (instancetype)initWithValue:(FLTFillerEnum8)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum9) { + FLTFillerEnum9FillerMember9 = 0, +}; + +/// Wrapper for FLTFillerEnum9 to allow for nullability. +@interface FLTFillerEnum9Box : NSObject +@property(nonatomic, assign) FLTFillerEnum9 value; +- (instancetype)initWithValue:(FLTFillerEnum9)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum10) { + FLTFillerEnum10FillerMember10 = 0, +}; + +/// Wrapper for FLTFillerEnum10 to allow for nullability. +@interface FLTFillerEnum10Box : NSObject +@property(nonatomic, assign) FLTFillerEnum10 value; +- (instancetype)initWithValue:(FLTFillerEnum10)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum11) { + FLTFillerEnum11FillerMember11 = 0, +}; + +/// Wrapper for FLTFillerEnum11 to allow for nullability. +@interface FLTFillerEnum11Box : NSObject +@property(nonatomic, assign) FLTFillerEnum11 value; +- (instancetype)initWithValue:(FLTFillerEnum11)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum12) { + FLTFillerEnum12FillerMember12 = 0, +}; + +/// Wrapper for FLTFillerEnum12 to allow for nullability. +@interface FLTFillerEnum12Box : NSObject +@property(nonatomic, assign) FLTFillerEnum12 value; +- (instancetype)initWithValue:(FLTFillerEnum12)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum13) { + FLTFillerEnum13FillerMember13 = 0, +}; + +/// Wrapper for FLTFillerEnum13 to allow for nullability. +@interface FLTFillerEnum13Box : NSObject +@property(nonatomic, assign) FLTFillerEnum13 value; +- (instancetype)initWithValue:(FLTFillerEnum13)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum14) { + FLTFillerEnum14FillerMember14 = 0, +}; + +/// Wrapper for FLTFillerEnum14 to allow for nullability. +@interface FLTFillerEnum14Box : NSObject +@property(nonatomic, assign) FLTFillerEnum14 value; +- (instancetype)initWithValue:(FLTFillerEnum14)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum15) { + FLTFillerEnum15FillerMember15 = 0, +}; + +/// Wrapper for FLTFillerEnum15 to allow for nullability. +@interface FLTFillerEnum15Box : NSObject +@property(nonatomic, assign) FLTFillerEnum15 value; +- (instancetype)initWithValue:(FLTFillerEnum15)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum16) { + FLTFillerEnum16FillerMember16 = 0, +}; + +/// Wrapper for FLTFillerEnum16 to allow for nullability. +@interface FLTFillerEnum16Box : NSObject +@property(nonatomic, assign) FLTFillerEnum16 value; +- (instancetype)initWithValue:(FLTFillerEnum16)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum17) { + FLTFillerEnum17FillerMember17 = 0, +}; + +/// Wrapper for FLTFillerEnum17 to allow for nullability. +@interface FLTFillerEnum17Box : NSObject +@property(nonatomic, assign) FLTFillerEnum17 value; +- (instancetype)initWithValue:(FLTFillerEnum17)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum18) { + FLTFillerEnum18FillerMember18 = 0, +}; + +/// Wrapper for FLTFillerEnum18 to allow for nullability. +@interface FLTFillerEnum18Box : NSObject +@property(nonatomic, assign) FLTFillerEnum18 value; +- (instancetype)initWithValue:(FLTFillerEnum18)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum19) { + FLTFillerEnum19FillerMember19 = 0, +}; + +/// Wrapper for FLTFillerEnum19 to allow for nullability. +@interface FLTFillerEnum19Box : NSObject +@property(nonatomic, assign) FLTFillerEnum19 value; +- (instancetype)initWithValue:(FLTFillerEnum19)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum20) { + FLTFillerEnum20FillerMember20 = 0, +}; + +/// Wrapper for FLTFillerEnum20 to allow for nullability. +@interface FLTFillerEnum20Box : NSObject +@property(nonatomic, assign) FLTFillerEnum20 value; +- (instancetype)initWithValue:(FLTFillerEnum20)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum21) { + FLTFillerEnum21FillerMember21 = 0, +}; + +/// Wrapper for FLTFillerEnum21 to allow for nullability. +@interface FLTFillerEnum21Box : NSObject +@property(nonatomic, assign) FLTFillerEnum21 value; +- (instancetype)initWithValue:(FLTFillerEnum21)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum22) { + FLTFillerEnum22FillerMember22 = 0, +}; + +/// Wrapper for FLTFillerEnum22 to allow for nullability. +@interface FLTFillerEnum22Box : NSObject +@property(nonatomic, assign) FLTFillerEnum22 value; +- (instancetype)initWithValue:(FLTFillerEnum22)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum23) { + FLTFillerEnum23FillerMember23 = 0, +}; + +/// Wrapper for FLTFillerEnum23 to allow for nullability. +@interface FLTFillerEnum23Box : NSObject +@property(nonatomic, assign) FLTFillerEnum23 value; +- (instancetype)initWithValue:(FLTFillerEnum23)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum24) { + FLTFillerEnum24FillerMember24 = 0, +}; + +/// Wrapper for FLTFillerEnum24 to allow for nullability. +@interface FLTFillerEnum24Box : NSObject +@property(nonatomic, assign) FLTFillerEnum24 value; +- (instancetype)initWithValue:(FLTFillerEnum24)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum25) { + FLTFillerEnum25FillerMember25 = 0, +}; + +/// Wrapper for FLTFillerEnum25 to allow for nullability. +@interface FLTFillerEnum25Box : NSObject +@property(nonatomic, assign) FLTFillerEnum25 value; +- (instancetype)initWithValue:(FLTFillerEnum25)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum26) { + FLTFillerEnum26FillerMember26 = 0, +}; + +/// Wrapper for FLTFillerEnum26 to allow for nullability. +@interface FLTFillerEnum26Box : NSObject +@property(nonatomic, assign) FLTFillerEnum26 value; +- (instancetype)initWithValue:(FLTFillerEnum26)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum27) { + FLTFillerEnum27FillerMember27 = 0, +}; + +/// Wrapper for FLTFillerEnum27 to allow for nullability. +@interface FLTFillerEnum27Box : NSObject +@property(nonatomic, assign) FLTFillerEnum27 value; +- (instancetype)initWithValue:(FLTFillerEnum27)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum28) { + FLTFillerEnum28FillerMember28 = 0, +}; + +/// Wrapper for FLTFillerEnum28 to allow for nullability. +@interface FLTFillerEnum28Box : NSObject +@property(nonatomic, assign) FLTFillerEnum28 value; +- (instancetype)initWithValue:(FLTFillerEnum28)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum29) { + FLTFillerEnum29FillerMember29 = 0, +}; + +/// Wrapper for FLTFillerEnum29 to allow for nullability. +@interface FLTFillerEnum29Box : NSObject +@property(nonatomic, assign) FLTFillerEnum29 value; +- (instancetype)initWithValue:(FLTFillerEnum29)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum30) { + FLTFillerEnum30FillerMember30 = 0, +}; + +/// Wrapper for FLTFillerEnum30 to allow for nullability. +@interface FLTFillerEnum30Box : NSObject +@property(nonatomic, assign) FLTFillerEnum30 value; +- (instancetype)initWithValue:(FLTFillerEnum30)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum31) { + FLTFillerEnum31FillerMember31 = 0, +}; + +/// Wrapper for FLTFillerEnum31 to allow for nullability. +@interface FLTFillerEnum31Box : NSObject +@property(nonatomic, assign) FLTFillerEnum31 value; +- (instancetype)initWithValue:(FLTFillerEnum31)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum32) { + FLTFillerEnum32FillerMember32 = 0, +}; + +/// Wrapper for FLTFillerEnum32 to allow for nullability. +@interface FLTFillerEnum32Box : NSObject +@property(nonatomic, assign) FLTFillerEnum32 value; +- (instancetype)initWithValue:(FLTFillerEnum32)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum33) { + FLTFillerEnum33FillerMember33 = 0, +}; + +/// Wrapper for FLTFillerEnum33 to allow for nullability. +@interface FLTFillerEnum33Box : NSObject +@property(nonatomic, assign) FLTFillerEnum33 value; +- (instancetype)initWithValue:(FLTFillerEnum33)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum34) { + FLTFillerEnum34FillerMember34 = 0, +}; + +/// Wrapper for FLTFillerEnum34 to allow for nullability. +@interface FLTFillerEnum34Box : NSObject +@property(nonatomic, assign) FLTFillerEnum34 value; +- (instancetype)initWithValue:(FLTFillerEnum34)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum35) { + FLTFillerEnum35FillerMember35 = 0, +}; + +/// Wrapper for FLTFillerEnum35 to allow for nullability. +@interface FLTFillerEnum35Box : NSObject +@property(nonatomic, assign) FLTFillerEnum35 value; +- (instancetype)initWithValue:(FLTFillerEnum35)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum36) { + FLTFillerEnum36FillerMember36 = 0, +}; + +/// Wrapper for FLTFillerEnum36 to allow for nullability. +@interface FLTFillerEnum36Box : NSObject +@property(nonatomic, assign) FLTFillerEnum36 value; +- (instancetype)initWithValue:(FLTFillerEnum36)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum37) { + FLTFillerEnum37FillerMember37 = 0, +}; + +/// Wrapper for FLTFillerEnum37 to allow for nullability. +@interface FLTFillerEnum37Box : NSObject +@property(nonatomic, assign) FLTFillerEnum37 value; +- (instancetype)initWithValue:(FLTFillerEnum37)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum38) { + FLTFillerEnum38FillerMember38 = 0, +}; + +/// Wrapper for FLTFillerEnum38 to allow for nullability. +@interface FLTFillerEnum38Box : NSObject +@property(nonatomic, assign) FLTFillerEnum38 value; +- (instancetype)initWithValue:(FLTFillerEnum38)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum39) { + FLTFillerEnum39FillerMember39 = 0, +}; + +/// Wrapper for FLTFillerEnum39 to allow for nullability. +@interface FLTFillerEnum39Box : NSObject +@property(nonatomic, assign) FLTFillerEnum39 value; +- (instancetype)initWithValue:(FLTFillerEnum39)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum40) { + FLTFillerEnum40FillerMember40 = 0, +}; + +/// Wrapper for FLTFillerEnum40 to allow for nullability. +@interface FLTFillerEnum40Box : NSObject +@property(nonatomic, assign) FLTFillerEnum40 value; +- (instancetype)initWithValue:(FLTFillerEnum40)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum41) { + FLTFillerEnum41FillerMember41 = 0, +}; + +/// Wrapper for FLTFillerEnum41 to allow for nullability. +@interface FLTFillerEnum41Box : NSObject +@property(nonatomic, assign) FLTFillerEnum41 value; +- (instancetype)initWithValue:(FLTFillerEnum41)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum42) { + FLTFillerEnum42FillerMember42 = 0, +}; + +/// Wrapper for FLTFillerEnum42 to allow for nullability. +@interface FLTFillerEnum42Box : NSObject +@property(nonatomic, assign) FLTFillerEnum42 value; +- (instancetype)initWithValue:(FLTFillerEnum42)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum43) { + FLTFillerEnum43FillerMember43 = 0, +}; + +/// Wrapper for FLTFillerEnum43 to allow for nullability. +@interface FLTFillerEnum43Box : NSObject +@property(nonatomic, assign) FLTFillerEnum43 value; +- (instancetype)initWithValue:(FLTFillerEnum43)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum44) { + FLTFillerEnum44FillerMember44 = 0, +}; + +/// Wrapper for FLTFillerEnum44 to allow for nullability. +@interface FLTFillerEnum44Box : NSObject +@property(nonatomic, assign) FLTFillerEnum44 value; +- (instancetype)initWithValue:(FLTFillerEnum44)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum45) { + FLTFillerEnum45FillerMember45 = 0, +}; + +/// Wrapper for FLTFillerEnum45 to allow for nullability. +@interface FLTFillerEnum45Box : NSObject +@property(nonatomic, assign) FLTFillerEnum45 value; +- (instancetype)initWithValue:(FLTFillerEnum45)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum46) { + FLTFillerEnum46FillerMember46 = 0, +}; + +/// Wrapper for FLTFillerEnum46 to allow for nullability. +@interface FLTFillerEnum46Box : NSObject +@property(nonatomic, assign) FLTFillerEnum46 value; +- (instancetype)initWithValue:(FLTFillerEnum46)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum47) { + FLTFillerEnum47FillerMember47 = 0, +}; + +/// Wrapper for FLTFillerEnum47 to allow for nullability. +@interface FLTFillerEnum47Box : NSObject +@property(nonatomic, assign) FLTFillerEnum47 value; +- (instancetype)initWithValue:(FLTFillerEnum47)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum48) { + FLTFillerEnum48FillerMember48 = 0, +}; + +/// Wrapper for FLTFillerEnum48 to allow for nullability. +@interface FLTFillerEnum48Box : NSObject +@property(nonatomic, assign) FLTFillerEnum48 value; +- (instancetype)initWithValue:(FLTFillerEnum48)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum49) { + FLTFillerEnum49FillerMember49 = 0, +}; + +/// Wrapper for FLTFillerEnum49 to allow for nullability. +@interface FLTFillerEnum49Box : NSObject +@property(nonatomic, assign) FLTFillerEnum49 value; +- (instancetype)initWithValue:(FLTFillerEnum49)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum50) { + FLTFillerEnum50FillerMember50 = 0, +}; + +/// Wrapper for FLTFillerEnum50 to allow for nullability. +@interface FLTFillerEnum50Box : NSObject +@property(nonatomic, assign) FLTFillerEnum50 value; +- (instancetype)initWithValue:(FLTFillerEnum50)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum51) { + FLTFillerEnum51FillerMember51 = 0, +}; + +/// Wrapper for FLTFillerEnum51 to allow for nullability. +@interface FLTFillerEnum51Box : NSObject +@property(nonatomic, assign) FLTFillerEnum51 value; +- (instancetype)initWithValue:(FLTFillerEnum51)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum52) { + FLTFillerEnum52FillerMember52 = 0, +}; + +/// Wrapper for FLTFillerEnum52 to allow for nullability. +@interface FLTFillerEnum52Box : NSObject +@property(nonatomic, assign) FLTFillerEnum52 value; +- (instancetype)initWithValue:(FLTFillerEnum52)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum53) { + FLTFillerEnum53FillerMember53 = 0, +}; + +/// Wrapper for FLTFillerEnum53 to allow for nullability. +@interface FLTFillerEnum53Box : NSObject +@property(nonatomic, assign) FLTFillerEnum53 value; +- (instancetype)initWithValue:(FLTFillerEnum53)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum54) { + FLTFillerEnum54FillerMember54 = 0, +}; + +/// Wrapper for FLTFillerEnum54 to allow for nullability. +@interface FLTFillerEnum54Box : NSObject +@property(nonatomic, assign) FLTFillerEnum54 value; +- (instancetype)initWithValue:(FLTFillerEnum54)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum55) { + FLTFillerEnum55FillerMember55 = 0, +}; + +/// Wrapper for FLTFillerEnum55 to allow for nullability. +@interface FLTFillerEnum55Box : NSObject +@property(nonatomic, assign) FLTFillerEnum55 value; +- (instancetype)initWithValue:(FLTFillerEnum55)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum56) { + FLTFillerEnum56FillerMember56 = 0, +}; + +/// Wrapper for FLTFillerEnum56 to allow for nullability. +@interface FLTFillerEnum56Box : NSObject +@property(nonatomic, assign) FLTFillerEnum56 value; +- (instancetype)initWithValue:(FLTFillerEnum56)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum57) { + FLTFillerEnum57FillerMember57 = 0, +}; + +/// Wrapper for FLTFillerEnum57 to allow for nullability. +@interface FLTFillerEnum57Box : NSObject +@property(nonatomic, assign) FLTFillerEnum57 value; +- (instancetype)initWithValue:(FLTFillerEnum57)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum58) { + FLTFillerEnum58FillerMember58 = 0, +}; + +/// Wrapper for FLTFillerEnum58 to allow for nullability. +@interface FLTFillerEnum58Box : NSObject +@property(nonatomic, assign) FLTFillerEnum58 value; +- (instancetype)initWithValue:(FLTFillerEnum58)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum59) { + FLTFillerEnum59FillerMember59 = 0, +}; + +/// Wrapper for FLTFillerEnum59 to allow for nullability. +@interface FLTFillerEnum59Box : NSObject +@property(nonatomic, assign) FLTFillerEnum59 value; +- (instancetype)initWithValue:(FLTFillerEnum59)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum60) { + FLTFillerEnum60FillerMember60 = 0, +}; + +/// Wrapper for FLTFillerEnum60 to allow for nullability. +@interface FLTFillerEnum60Box : NSObject +@property(nonatomic, assign) FLTFillerEnum60 value; +- (instancetype)initWithValue:(FLTFillerEnum60)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum61) { + FLTFillerEnum61FillerMember61 = 0, +}; + +/// Wrapper for FLTFillerEnum61 to allow for nullability. +@interface FLTFillerEnum61Box : NSObject +@property(nonatomic, assign) FLTFillerEnum61 value; +- (instancetype)initWithValue:(FLTFillerEnum61)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum62) { + FLTFillerEnum62FillerMember62 = 0, +}; + +/// Wrapper for FLTFillerEnum62 to allow for nullability. +@interface FLTFillerEnum62Box : NSObject +@property(nonatomic, assign) FLTFillerEnum62 value; +- (instancetype)initWithValue:(FLTFillerEnum62)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum63) { + FLTFillerEnum63FillerMember63 = 0, +}; + +/// Wrapper for FLTFillerEnum63 to allow for nullability. +@interface FLTFillerEnum63Box : NSObject +@property(nonatomic, assign) FLTFillerEnum63 value; +- (instancetype)initWithValue:(FLTFillerEnum63)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum64) { + FLTFillerEnum64FillerMember64 = 0, +}; + +/// Wrapper for FLTFillerEnum64 to allow for nullability. +@interface FLTFillerEnum64Box : NSObject +@property(nonatomic, assign) FLTFillerEnum64 value; +- (instancetype)initWithValue:(FLTFillerEnum64)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum65) { + FLTFillerEnum65FillerMember65 = 0, +}; + +/// Wrapper for FLTFillerEnum65 to allow for nullability. +@interface FLTFillerEnum65Box : NSObject +@property(nonatomic, assign) FLTFillerEnum65 value; +- (instancetype)initWithValue:(FLTFillerEnum65)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum66) { + FLTFillerEnum66FillerMember66 = 0, +}; + +/// Wrapper for FLTFillerEnum66 to allow for nullability. +@interface FLTFillerEnum66Box : NSObject +@property(nonatomic, assign) FLTFillerEnum66 value; +- (instancetype)initWithValue:(FLTFillerEnum66)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum67) { + FLTFillerEnum67FillerMember67 = 0, +}; + +/// Wrapper for FLTFillerEnum67 to allow for nullability. +@interface FLTFillerEnum67Box : NSObject +@property(nonatomic, assign) FLTFillerEnum67 value; +- (instancetype)initWithValue:(FLTFillerEnum67)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum68) { + FLTFillerEnum68FillerMember68 = 0, +}; + +/// Wrapper for FLTFillerEnum68 to allow for nullability. +@interface FLTFillerEnum68Box : NSObject +@property(nonatomic, assign) FLTFillerEnum68 value; +- (instancetype)initWithValue:(FLTFillerEnum68)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum69) { + FLTFillerEnum69FillerMember69 = 0, +}; + +/// Wrapper for FLTFillerEnum69 to allow for nullability. +@interface FLTFillerEnum69Box : NSObject +@property(nonatomic, assign) FLTFillerEnum69 value; +- (instancetype)initWithValue:(FLTFillerEnum69)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum70) { + FLTFillerEnum70FillerMember70 = 0, +}; + +/// Wrapper for FLTFillerEnum70 to allow for nullability. +@interface FLTFillerEnum70Box : NSObject +@property(nonatomic, assign) FLTFillerEnum70 value; +- (instancetype)initWithValue:(FLTFillerEnum70)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum71) { + FLTFillerEnum71FillerMember71 = 0, +}; + +/// Wrapper for FLTFillerEnum71 to allow for nullability. +@interface FLTFillerEnum71Box : NSObject +@property(nonatomic, assign) FLTFillerEnum71 value; +- (instancetype)initWithValue:(FLTFillerEnum71)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum72) { + FLTFillerEnum72FillerMember72 = 0, +}; + +/// Wrapper for FLTFillerEnum72 to allow for nullability. +@interface FLTFillerEnum72Box : NSObject +@property(nonatomic, assign) FLTFillerEnum72 value; +- (instancetype)initWithValue:(FLTFillerEnum72)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum73) { + FLTFillerEnum73FillerMember73 = 0, +}; + +/// Wrapper for FLTFillerEnum73 to allow for nullability. +@interface FLTFillerEnum73Box : NSObject +@property(nonatomic, assign) FLTFillerEnum73 value; +- (instancetype)initWithValue:(FLTFillerEnum73)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum74) { + FLTFillerEnum74FillerMember74 = 0, +}; + +/// Wrapper for FLTFillerEnum74 to allow for nullability. +@interface FLTFillerEnum74Box : NSObject +@property(nonatomic, assign) FLTFillerEnum74 value; +- (instancetype)initWithValue:(FLTFillerEnum74)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum75) { + FLTFillerEnum75FillerMember75 = 0, +}; + +/// Wrapper for FLTFillerEnum75 to allow for nullability. +@interface FLTFillerEnum75Box : NSObject +@property(nonatomic, assign) FLTFillerEnum75 value; +- (instancetype)initWithValue:(FLTFillerEnum75)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum76) { + FLTFillerEnum76FillerMember76 = 0, +}; + +/// Wrapper for FLTFillerEnum76 to allow for nullability. +@interface FLTFillerEnum76Box : NSObject +@property(nonatomic, assign) FLTFillerEnum76 value; +- (instancetype)initWithValue:(FLTFillerEnum76)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum77) { + FLTFillerEnum77FillerMember77 = 0, +}; + +/// Wrapper for FLTFillerEnum77 to allow for nullability. +@interface FLTFillerEnum77Box : NSObject +@property(nonatomic, assign) FLTFillerEnum77 value; +- (instancetype)initWithValue:(FLTFillerEnum77)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum78) { + FLTFillerEnum78FillerMember78 = 0, +}; + +/// Wrapper for FLTFillerEnum78 to allow for nullability. +@interface FLTFillerEnum78Box : NSObject +@property(nonatomic, assign) FLTFillerEnum78 value; +- (instancetype)initWithValue:(FLTFillerEnum78)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum79) { + FLTFillerEnum79FillerMember79 = 0, +}; + +/// Wrapper for FLTFillerEnum79 to allow for nullability. +@interface FLTFillerEnum79Box : NSObject +@property(nonatomic, assign) FLTFillerEnum79 value; +- (instancetype)initWithValue:(FLTFillerEnum79)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum80) { + FLTFillerEnum80FillerMember80 = 0, +}; + +/// Wrapper for FLTFillerEnum80 to allow for nullability. +@interface FLTFillerEnum80Box : NSObject +@property(nonatomic, assign) FLTFillerEnum80 value; +- (instancetype)initWithValue:(FLTFillerEnum80)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum81) { + FLTFillerEnum81FillerMember81 = 0, +}; + +/// Wrapper for FLTFillerEnum81 to allow for nullability. +@interface FLTFillerEnum81Box : NSObject +@property(nonatomic, assign) FLTFillerEnum81 value; +- (instancetype)initWithValue:(FLTFillerEnum81)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum82) { + FLTFillerEnum82FillerMember82 = 0, +}; + +/// Wrapper for FLTFillerEnum82 to allow for nullability. +@interface FLTFillerEnum82Box : NSObject +@property(nonatomic, assign) FLTFillerEnum82 value; +- (instancetype)initWithValue:(FLTFillerEnum82)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum83) { + FLTFillerEnum83FillerMember83 = 0, +}; + +/// Wrapper for FLTFillerEnum83 to allow for nullability. +@interface FLTFillerEnum83Box : NSObject +@property(nonatomic, assign) FLTFillerEnum83 value; +- (instancetype)initWithValue:(FLTFillerEnum83)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum84) { + FLTFillerEnum84FillerMember84 = 0, +}; + +/// Wrapper for FLTFillerEnum84 to allow for nullability. +@interface FLTFillerEnum84Box : NSObject +@property(nonatomic, assign) FLTFillerEnum84 value; +- (instancetype)initWithValue:(FLTFillerEnum84)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum85) { + FLTFillerEnum85FillerMember85 = 0, +}; + +/// Wrapper for FLTFillerEnum85 to allow for nullability. +@interface FLTFillerEnum85Box : NSObject +@property(nonatomic, assign) FLTFillerEnum85 value; +- (instancetype)initWithValue:(FLTFillerEnum85)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum86) { + FLTFillerEnum86FillerMember86 = 0, +}; + +/// Wrapper for FLTFillerEnum86 to allow for nullability. +@interface FLTFillerEnum86Box : NSObject +@property(nonatomic, assign) FLTFillerEnum86 value; +- (instancetype)initWithValue:(FLTFillerEnum86)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum87) { + FLTFillerEnum87FillerMember87 = 0, +}; + +/// Wrapper for FLTFillerEnum87 to allow for nullability. +@interface FLTFillerEnum87Box : NSObject +@property(nonatomic, assign) FLTFillerEnum87 value; +- (instancetype)initWithValue:(FLTFillerEnum87)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum88) { + FLTFillerEnum88FillerMember88 = 0, +}; + +/// Wrapper for FLTFillerEnum88 to allow for nullability. +@interface FLTFillerEnum88Box : NSObject +@property(nonatomic, assign) FLTFillerEnum88 value; +- (instancetype)initWithValue:(FLTFillerEnum88)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum89) { + FLTFillerEnum89FillerMember89 = 0, +}; + +/// Wrapper for FLTFillerEnum89 to allow for nullability. +@interface FLTFillerEnum89Box : NSObject +@property(nonatomic, assign) FLTFillerEnum89 value; +- (instancetype)initWithValue:(FLTFillerEnum89)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum90) { + FLTFillerEnum90FillerMember90 = 0, +}; + +/// Wrapper for FLTFillerEnum90 to allow for nullability. +@interface FLTFillerEnum90Box : NSObject +@property(nonatomic, assign) FLTFillerEnum90 value; +- (instancetype)initWithValue:(FLTFillerEnum90)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum91) { + FLTFillerEnum91FillerMember91 = 0, +}; + +/// Wrapper for FLTFillerEnum91 to allow for nullability. +@interface FLTFillerEnum91Box : NSObject +@property(nonatomic, assign) FLTFillerEnum91 value; +- (instancetype)initWithValue:(FLTFillerEnum91)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum92) { + FLTFillerEnum92FillerMember92 = 0, +}; + +/// Wrapper for FLTFillerEnum92 to allow for nullability. +@interface FLTFillerEnum92Box : NSObject +@property(nonatomic, assign) FLTFillerEnum92 value; +- (instancetype)initWithValue:(FLTFillerEnum92)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum93) { + FLTFillerEnum93FillerMember93 = 0, +}; + +/// Wrapper for FLTFillerEnum93 to allow for nullability. +@interface FLTFillerEnum93Box : NSObject +@property(nonatomic, assign) FLTFillerEnum93 value; +- (instancetype)initWithValue:(FLTFillerEnum93)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum94) { + FLTFillerEnum94FillerMember94 = 0, +}; + +/// Wrapper for FLTFillerEnum94 to allow for nullability. +@interface FLTFillerEnum94Box : NSObject +@property(nonatomic, assign) FLTFillerEnum94 value; +- (instancetype)initWithValue:(FLTFillerEnum94)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum95) { + FLTFillerEnum95FillerMember95 = 0, +}; + +/// Wrapper for FLTFillerEnum95 to allow for nullability. +@interface FLTFillerEnum95Box : NSObject +@property(nonatomic, assign) FLTFillerEnum95 value; +- (instancetype)initWithValue:(FLTFillerEnum95)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum96) { + FLTFillerEnum96FillerMember96 = 0, +}; + +/// Wrapper for FLTFillerEnum96 to allow for nullability. +@interface FLTFillerEnum96Box : NSObject +@property(nonatomic, assign) FLTFillerEnum96 value; +- (instancetype)initWithValue:(FLTFillerEnum96)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum97) { + FLTFillerEnum97FillerMember97 = 0, +}; + +/// Wrapper for FLTFillerEnum97 to allow for nullability. +@interface FLTFillerEnum97Box : NSObject +@property(nonatomic, assign) FLTFillerEnum97 value; +- (instancetype)initWithValue:(FLTFillerEnum97)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum98) { + FLTFillerEnum98FillerMember98 = 0, +}; + +/// Wrapper for FLTFillerEnum98 to allow for nullability. +@interface FLTFillerEnum98Box : NSObject +@property(nonatomic, assign) FLTFillerEnum98 value; +- (instancetype)initWithValue:(FLTFillerEnum98)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum99) { + FLTFillerEnum99FillerMember99 = 0, +}; + +/// Wrapper for FLTFillerEnum99 to allow for nullability. +@interface FLTFillerEnum99Box : NSObject +@property(nonatomic, assign) FLTFillerEnum99 value; +- (instancetype)initWithValue:(FLTFillerEnum99)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum100) { + FLTFillerEnum100FillerMember100 = 0, +}; + +/// Wrapper for FLTFillerEnum100 to allow for nullability. +@interface FLTFillerEnum100Box : NSObject +@property(nonatomic, assign) FLTFillerEnum100 value; +- (instancetype)initWithValue:(FLTFillerEnum100)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum101) { + FLTFillerEnum101FillerMember101 = 0, +}; + +/// Wrapper for FLTFillerEnum101 to allow for nullability. +@interface FLTFillerEnum101Box : NSObject +@property(nonatomic, assign) FLTFillerEnum101 value; +- (instancetype)initWithValue:(FLTFillerEnum101)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum102) { + FLTFillerEnum102FillerMember102 = 0, +}; + +/// Wrapper for FLTFillerEnum102 to allow for nullability. +@interface FLTFillerEnum102Box : NSObject +@property(nonatomic, assign) FLTFillerEnum102 value; +- (instancetype)initWithValue:(FLTFillerEnum102)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum103) { + FLTFillerEnum103FillerMember103 = 0, +}; + +/// Wrapper for FLTFillerEnum103 to allow for nullability. +@interface FLTFillerEnum103Box : NSObject +@property(nonatomic, assign) FLTFillerEnum103 value; +- (instancetype)initWithValue:(FLTFillerEnum103)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum104) { + FLTFillerEnum104FillerMember104 = 0, +}; + +/// Wrapper for FLTFillerEnum104 to allow for nullability. +@interface FLTFillerEnum104Box : NSObject +@property(nonatomic, assign) FLTFillerEnum104 value; +- (instancetype)initWithValue:(FLTFillerEnum104)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum105) { + FLTFillerEnum105FillerMember105 = 0, +}; + +/// Wrapper for FLTFillerEnum105 to allow for nullability. +@interface FLTFillerEnum105Box : NSObject +@property(nonatomic, assign) FLTFillerEnum105 value; +- (instancetype)initWithValue:(FLTFillerEnum105)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum106) { + FLTFillerEnum106FillerMember106 = 0, +}; + +/// Wrapper for FLTFillerEnum106 to allow for nullability. +@interface FLTFillerEnum106Box : NSObject +@property(nonatomic, assign) FLTFillerEnum106 value; +- (instancetype)initWithValue:(FLTFillerEnum106)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum107) { + FLTFillerEnum107FillerMember107 = 0, +}; + +/// Wrapper for FLTFillerEnum107 to allow for nullability. +@interface FLTFillerEnum107Box : NSObject +@property(nonatomic, assign) FLTFillerEnum107 value; +- (instancetype)initWithValue:(FLTFillerEnum107)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum108) { + FLTFillerEnum108FillerMember108 = 0, +}; + +/// Wrapper for FLTFillerEnum108 to allow for nullability. +@interface FLTFillerEnum108Box : NSObject +@property(nonatomic, assign) FLTFillerEnum108 value; +- (instancetype)initWithValue:(FLTFillerEnum108)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum109) { + FLTFillerEnum109FillerMember109 = 0, +}; + +/// Wrapper for FLTFillerEnum109 to allow for nullability. +@interface FLTFillerEnum109Box : NSObject +@property(nonatomic, assign) FLTFillerEnum109 value; +- (instancetype)initWithValue:(FLTFillerEnum109)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum110) { + FLTFillerEnum110FillerMember110 = 0, +}; + +/// Wrapper for FLTFillerEnum110 to allow for nullability. +@interface FLTFillerEnum110Box : NSObject +@property(nonatomic, assign) FLTFillerEnum110 value; +- (instancetype)initWithValue:(FLTFillerEnum110)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum111) { + FLTFillerEnum111FillerMember111 = 0, +}; + +/// Wrapper for FLTFillerEnum111 to allow for nullability. +@interface FLTFillerEnum111Box : NSObject +@property(nonatomic, assign) FLTFillerEnum111 value; +- (instancetype)initWithValue:(FLTFillerEnum111)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum112) { + FLTFillerEnum112FillerMember112 = 0, +}; + +/// Wrapper for FLTFillerEnum112 to allow for nullability. +@interface FLTFillerEnum112Box : NSObject +@property(nonatomic, assign) FLTFillerEnum112 value; +- (instancetype)initWithValue:(FLTFillerEnum112)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum113) { + FLTFillerEnum113FillerMember113 = 0, +}; + +/// Wrapper for FLTFillerEnum113 to allow for nullability. +@interface FLTFillerEnum113Box : NSObject +@property(nonatomic, assign) FLTFillerEnum113 value; +- (instancetype)initWithValue:(FLTFillerEnum113)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum114) { + FLTFillerEnum114FillerMember114 = 0, +}; + +/// Wrapper for FLTFillerEnum114 to allow for nullability. +@interface FLTFillerEnum114Box : NSObject +@property(nonatomic, assign) FLTFillerEnum114 value; +- (instancetype)initWithValue:(FLTFillerEnum114)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum115) { + FLTFillerEnum115FillerMember115 = 0, +}; + +/// Wrapper for FLTFillerEnum115 to allow for nullability. +@interface FLTFillerEnum115Box : NSObject +@property(nonatomic, assign) FLTFillerEnum115 value; +- (instancetype)initWithValue:(FLTFillerEnum115)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum116) { + FLTFillerEnum116FillerMember116 = 0, +}; + +/// Wrapper for FLTFillerEnum116 to allow for nullability. +@interface FLTFillerEnum116Box : NSObject +@property(nonatomic, assign) FLTFillerEnum116 value; +- (instancetype)initWithValue:(FLTFillerEnum116)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum117) { + FLTFillerEnum117FillerMember117 = 0, +}; + +/// Wrapper for FLTFillerEnum117 to allow for nullability. +@interface FLTFillerEnum117Box : NSObject +@property(nonatomic, assign) FLTFillerEnum117 value; +- (instancetype)initWithValue:(FLTFillerEnum117)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum118) { + FLTFillerEnum118FillerMember118 = 0, +}; + +/// Wrapper for FLTFillerEnum118 to allow for nullability. +@interface FLTFillerEnum118Box : NSObject +@property(nonatomic, assign) FLTFillerEnum118 value; +- (instancetype)initWithValue:(FLTFillerEnum118)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum119) { + FLTFillerEnum119FillerMember119 = 0, +}; + +/// Wrapper for FLTFillerEnum119 to allow for nullability. +@interface FLTFillerEnum119Box : NSObject +@property(nonatomic, assign) FLTFillerEnum119 value; +- (instancetype)initWithValue:(FLTFillerEnum119)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum120) { + FLTFillerEnum120FillerMember120 = 0, +}; + +/// Wrapper for FLTFillerEnum120 to allow for nullability. +@interface FLTFillerEnum120Box : NSObject +@property(nonatomic, assign) FLTFillerEnum120 value; +- (instancetype)initWithValue:(FLTFillerEnum120)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum121) { + FLTFillerEnum121FillerMember121 = 0, +}; + +/// Wrapper for FLTFillerEnum121 to allow for nullability. +@interface FLTFillerEnum121Box : NSObject +@property(nonatomic, assign) FLTFillerEnum121 value; +- (instancetype)initWithValue:(FLTFillerEnum121)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum122) { + FLTFillerEnum122FillerMember122 = 0, +}; + +/// Wrapper for FLTFillerEnum122 to allow for nullability. +@interface FLTFillerEnum122Box : NSObject +@property(nonatomic, assign) FLTFillerEnum122 value; +- (instancetype)initWithValue:(FLTFillerEnum122)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum123) { + FLTFillerEnum123FillerMember123 = 0, +}; + +/// Wrapper for FLTFillerEnum123 to allow for nullability. +@interface FLTFillerEnum123Box : NSObject +@property(nonatomic, assign) FLTFillerEnum123 value; +- (instancetype)initWithValue:(FLTFillerEnum123)value; +@end + +typedef NS_ENUM(NSUInteger, FLTFillerEnum124) { + FLTFillerEnum124FillerMember124 = 0, +}; + +/// Wrapper for FLTFillerEnum124 to allow for nullability. +@interface FLTFillerEnum124Box : NSObject +@property(nonatomic, assign) FLTFillerEnum124 value; +- (instancetype)initWithValue:(FLTFillerEnum124)value; +@end + typedef NS_ENUM(NSUInteger, FLTAnEnum) { FLTAnEnumOne = 0, FLTAnEnumTwo = 1, @@ -28,6 +1278,16 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { - (instancetype)initWithValue:(FLTAnEnum)value; @end +typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { + FLTAnotherEnumJustInCase = 0, +}; + +/// Wrapper for FLTAnotherEnum to allow for nullability. +@interface FLTAnotherEnumBox : NSObject +@property(nonatomic, assign) FLTAnotherEnum value; +- (instancetype)initWithValue:(FLTAnotherEnum)value; +@end + @class FLTAllTypes; @class FLTAllNullableTypes; @class FLTAllNullableTypesWithoutRecursion; @@ -47,6 +1307,7 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { a8ByteArray:(FlutterStandardTypedData *)a8ByteArray aFloatArray:(FlutterStandardTypedData *)aFloatArray anEnum:(FLTAnEnum)anEnum + anotherEnum:(FLTAnotherEnum)anotherEnum aString:(NSString *)aString anObject:(id)anObject list:(NSArray *)list @@ -64,6 +1325,7 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { @property(nonatomic, strong) FlutterStandardTypedData *a8ByteArray; @property(nonatomic, strong) FlutterStandardTypedData *aFloatArray; @property(nonatomic, assign) FLTAnEnum anEnum; +@property(nonatomic, assign) FLTAnotherEnum anotherEnum; @property(nonatomic, copy) NSString *aString; @property(nonatomic, strong) id anObject; @property(nonatomic, copy) NSArray *list; @@ -89,6 +1351,7 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { (nullable NSDictionary *)nullableMapWithAnnotations nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum aNullableString:(nullable NSString *)aNullableString aNullableObject:(nullable id)aNullableObject allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes @@ -112,6 +1375,7 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { NSDictionary *nullableMapWithAnnotations; @property(nonatomic, copy, nullable) NSDictionary *nullableMapWithObject; @property(nonatomic, strong, nullable) FLTAnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) FLTAnotherEnumBox *anotherNullableEnum; @property(nonatomic, copy, nullable) NSString *aNullableString; @property(nonatomic, strong, nullable) id aNullableObject; @property(nonatomic, strong, nullable) FLTAllNullableTypes *allNullableTypes; @@ -141,6 +1405,7 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { (nullable NSDictionary *)nullableMapWithAnnotations nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum aNullableString:(nullable NSString *)aNullableString aNullableObject:(nullable id)aNullableObject list:(nullable NSArray *)list @@ -162,6 +1427,7 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { NSDictionary *nullableMapWithAnnotations; @property(nonatomic, copy, nullable) NSDictionary *nullableMapWithObject; @property(nonatomic, strong, nullable) FLTAnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) FLTAnotherEnumBox *anotherNullableEnum; @property(nonatomic, copy, nullable) NSString *aNullableString; @property(nonatomic, strong, nullable) id aNullableObject; @property(nonatomic, copy, nullable) NSArray *list; @@ -196,6 +1462,14 @@ typedef NS_ENUM(NSUInteger, FLTAnEnum) { @property(nonatomic, copy, nullable) NSArray *testList; @end +@interface FLT__pigeon_CodecOverflow : NSObject +/// `init` unavailable to enforce nonnull fields, see the `make` class method. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped; +@property(nonatomic, assign) NSInteger type; +@property(nonatomic, strong, nullable) id wrapped; +@end + /// The codec used by all APIs. NSObject *FLTGetCoreTestsCodec(void); @@ -262,6 +1536,11 @@ NSObject *FLTGetCoreTestsCodec(void); /// @return `nil` only when `error != nil`. - (FLTAnEnumBox *_Nullable)echoEnum:(FLTAnEnum)anEnum error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed enum to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (FLTAnotherEnumBox *_Nullable)echoAnotherEnum:(FLTAnotherEnum)anotherEnum + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the default string. /// /// @return `nil` only when `error != nil`. @@ -339,6 +1618,9 @@ NSObject *FLTGetCoreTestsCodec(void); error:(FlutterError *_Nullable *_Nonnull)error; - (FLTAnEnumBox *_Nullable)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed error:(FlutterError *_Nullable *_Nonnull)error; +- (FLTAnotherEnumBox *_Nullable)echoAnotherNullableEnum: + (nullable FLTAnotherEnumBox *)anotherEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. - (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error; @@ -377,6 +1659,10 @@ NSObject *FLTGetCoreTestsCodec(void); /// Returns the passed enum, to test asynchronous serialization and deserialization. - (void)echoAsyncEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAnotherAsyncEnum:(FLTAnotherEnum)anotherEnum + completion: + (void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async function returning a value. - (void)throwAsyncErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async void function. @@ -428,6 +1714,10 @@ NSObject *FLTGetCoreTestsCodec(void); - (void)echoAsyncNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion: (void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAnotherAsyncNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; - (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion; - (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; @@ -476,6 +1766,9 @@ NSObject *FLTGetCoreTestsCodec(void); FlutterError *_Nullable))completion; - (void)callFlutterEchoEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherEnum:(FLTAnotherEnum)anotherEnum + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; - (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool completion: (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; @@ -500,6 +1793,9 @@ NSObject *FLTGetCoreTestsCodec(void); - (void)callFlutterEchoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion: (void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; - (void)callFlutterSmallApiEchoString:(NSString *)aString completion: (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @@ -581,6 +1877,9 @@ extern void SetUpFLTHostIntegrationCoreApiWithSuffix( /// Returns the passed enum to test serialization and deserialization. - (void)echoEnum:(FLTAnEnum)anEnum completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoAnotherEnum:(FLTAnotherEnum)anotherEnum + completion:(void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed boolean, to test serialization and deserialization. - (void)echoNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; @@ -607,6 +1906,10 @@ extern void SetUpFLTHostIntegrationCoreApiWithSuffix( /// Returns the passed enum to test serialization and deserialization. - (void)echoNullableEnum:(nullable FLTAnEnumBox *)anEnumBoxed completion:(void (^)(FLTAnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m index a97191102f5..ef544babdf3 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m @@ -40,8 +40,8 @@ static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { return (result == [NSNull null]) ? nil : result; } -@implementation FLTAnEnumBox -- (instancetype)initWithValue:(FLTAnEnum)value { +@implementation FLTFillerEnum0Box +- (instancetype)initWithValue:(FLTFillerEnum0)value { self = [super init]; if (self) { _value = value; @@ -50,428 +50,3008 @@ - (instancetype)initWithValue:(FLTAnEnum)value { } @end -@interface FLTAllTypes () -+ (FLTAllTypes *)fromList:(NSArray *)list; -+ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FLTFillerEnum1Box +- (instancetype)initWithValue:(FLTFillerEnum1)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface FLTAllNullableTypes () -+ (FLTAllNullableTypes *)fromList:(NSArray *)list; -+ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FLTFillerEnum2Box +- (instancetype)initWithValue:(FLTFillerEnum2)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface FLTAllNullableTypesWithoutRecursion () -+ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; -+ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FLTFillerEnum3Box +- (instancetype)initWithValue:(FLTFillerEnum3)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface FLTAllClassesWrapper () -+ (FLTAllClassesWrapper *)fromList:(NSArray *)list; -+ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FLTFillerEnum4Box +- (instancetype)initWithValue:(FLTFillerEnum4)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface FLTTestMessage () -+ (FLTTestMessage *)fromList:(NSArray *)list; -+ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FLTFillerEnum5Box +- (instancetype)initWithValue:(FLTFillerEnum5)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@implementation FLTAllTypes -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(FLTAnEnum)anEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - map:(NSDictionary *)map { - FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; - pigeonResult.aBool = aBool; - pigeonResult.anInt = anInt; - pigeonResult.anInt64 = anInt64; - pigeonResult.aDouble = aDouble; - pigeonResult.aByteArray = aByteArray; - pigeonResult.a4ByteArray = a4ByteArray; - pigeonResult.a8ByteArray = a8ByteArray; - pigeonResult.aFloatArray = aFloatArray; - pigeonResult.anEnum = anEnum; - pigeonResult.aString = aString; - pigeonResult.anObject = anObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; -} -+ (FLTAllTypes *)fromList:(NSArray *)list { - FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; - pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; - pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; - pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; - pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; - pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); - FLTAnEnumBox *enumBox = GetNullableObjectAtIndex(list, 8); - pigeonResult.anEnum = enumBox.value; - pigeonResult.aString = GetNullableObjectAtIndex(list, 9); - pigeonResult.anObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.list = GetNullableObjectAtIndex(list, 11); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 12); - pigeonResult.intList = GetNullableObjectAtIndex(list, 13); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 14); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 15); - pigeonResult.map = GetNullableObjectAtIndex(list, 16); - return pigeonResult; -} -+ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - @(self.aBool), - @(self.anInt), - @(self.anInt64), - @(self.aDouble), - self.aByteArray ?: [NSNull null], - self.a4ByteArray ?: [NSNull null], - self.a8ByteArray ?: [NSNull null], - self.aFloatArray ?: [NSNull null], - [[FLTAnEnumBox alloc] initWithValue:self.anEnum], - self.aString ?: [NSNull null], - self.anObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; +@implementation FLTFillerEnum6Box +- (instancetype)initWithValue:(FLTFillerEnum6)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation FLTAllNullableTypes -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - nestedClassList:(nullable NSArray *)nestedClassList - map:(nullable NSDictionary *)map { - FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.nestedClassList = nestedClassList; - pigeonResult.map = map; - return pigeonResult; +@implementation FLTFillerEnum7Box +- (instancetype)initWithValue:(FLTFillerEnum7)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (FLTAllNullableTypes *)fromList:(NSArray *)list { - FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 13); - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 14); - pigeonResult.list = GetNullableObjectAtIndex(list, 15); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); - pigeonResult.intList = GetNullableObjectAtIndex(list, 17); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); - pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 20); - pigeonResult.map = GetNullableObjectAtIndex(list, 21); - return pigeonResult; +@end + +@implementation FLTFillerEnum8Box +- (instancetype)initWithValue:(FLTFillerEnum8)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllNullableTypes fromList:list] : nil; +@end + +@implementation FLTFillerEnum9Box +- (instancetype)initWithValue:(FLTFillerEnum9)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.allNullableTypes ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.nestedClassList ?: [NSNull null], - self.map ?: [NSNull null], - ]; +@end + +@implementation FLTFillerEnum10Box +- (instancetype)initWithValue:(FLTFillerEnum10)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation FLTAllNullableTypesWithoutRecursion -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - map:(nullable NSDictionary *)map { - FLTAllNullableTypesWithoutRecursion *pigeonResult = - [[FLTAllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; +@implementation FLTFillerEnum11Box +- (instancetype)initWithValue:(FLTFillerEnum11)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { - FLTAllNullableTypesWithoutRecursion *pigeonResult = - [[FLTAllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 13); - pigeonResult.list = GetNullableObjectAtIndex(list, 14); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 15); - pigeonResult.intList = GetNullableObjectAtIndex(list, 16); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 17); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 18); - pigeonResult.map = GetNullableObjectAtIndex(list, 19); - return pigeonResult; +@end + +@implementation FLTFillerEnum12Box +- (instancetype)initWithValue:(FLTFillerEnum12)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllNullableTypesWithoutRecursion fromList:list] : nil; +@end + +@implementation FLTFillerEnum13Box +- (instancetype)initWithValue:(FLTFillerEnum13)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; +@end + +@implementation FLTFillerEnum14Box +- (instancetype)initWithValue:(FLTFillerEnum14)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation FLTAllClassesWrapper -+ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable FLTAllTypes *)allTypes { - FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; - pigeonResult.allTypes = allTypes; - return pigeonResult; +@implementation FLTFillerEnum15Box +- (instancetype)initWithValue:(FLTFillerEnum15)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (FLTAllClassesWrapper *)fromList:(NSArray *)list { - FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); - pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); - pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); - return pigeonResult; +@end + +@implementation FLTFillerEnum16Box +- (instancetype)initWithValue:(FLTFillerEnum16)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllClassesWrapper fromList:list] : nil; +@end + +@implementation FLTFillerEnum17Box +- (instancetype)initWithValue:(FLTFillerEnum17)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.allNullableTypes ?: [NSNull null], - self.allNullableTypesWithoutRecursion ?: [NSNull null], - self.allTypes ?: [NSNull null], - ]; +@end + +@implementation FLTFillerEnum18Box +- (instancetype)initWithValue:(FLTFillerEnum18)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation FLTTestMessage -+ (instancetype)makeWithTestList:(nullable NSArray *)testList { - FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; - pigeonResult.testList = testList; - return pigeonResult; +@implementation FLTFillerEnum19Box +- (instancetype)initWithValue:(FLTFillerEnum19)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (FLTTestMessage *)fromList:(NSArray *)list { - FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; - pigeonResult.testList = GetNullableObjectAtIndex(list, 0); - return pigeonResult; +@end + +@implementation FLTFillerEnum20Box +- (instancetype)initWithValue:(FLTFillerEnum20)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list { - return (list) ? [FLTTestMessage fromList:list] : nil; +@end + +@implementation FLTFillerEnum21Box +- (instancetype)initWithValue:(FLTFillerEnum21)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.testList ?: [NSNull null], - ]; +@end + +@implementation FLTFillerEnum22Box +- (instancetype)initWithValue:(FLTFillerEnum22)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@interface FLTCoreTestsPigeonCodecReader : FlutterStandardReader +@implementation FLTFillerEnum23Box +- (instancetype)initWithValue:(FLTFillerEnum23)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@implementation FLTCoreTestsPigeonCodecReader -- (nullable id)readValueOfType:(UInt8)type { - switch (type) { - case 129: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 130: - return [FLTAllTypes fromList:[self readValue]]; - case 131: - return [FLTAllNullableTypes fromList:[self readValue]]; - case 132: - return [FLTAllNullableTypesWithoutRecursion fromList:[self readValue]]; - case 133: - return [FLTAllClassesWrapper fromList:[self readValue]]; - case 134: - return [FLTTestMessage fromList:[self readValue]]; - default: - return [super readValueOfType:type]; + +@implementation FLTFillerEnum24Box +- (instancetype)initWithValue:(FLTFillerEnum24)value { + self = [super init]; + if (self) { + _value = value; } + return self; } @end -@interface FLTCoreTestsPigeonCodecWriter : FlutterStandardWriter +@implementation FLTFillerEnum25Box +- (instancetype)initWithValue:(FLTFillerEnum25)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@implementation FLTCoreTestsPigeonCodecWriter -- (void)writeValue:(id)value { - if ([value isKindOfClass:[FLTAnEnumBox class]]) { + +@implementation FLTFillerEnum26Box +- (instancetype)initWithValue:(FLTFillerEnum26)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum27Box +- (instancetype)initWithValue:(FLTFillerEnum27)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum28Box +- (instancetype)initWithValue:(FLTFillerEnum28)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum29Box +- (instancetype)initWithValue:(FLTFillerEnum29)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum30Box +- (instancetype)initWithValue:(FLTFillerEnum30)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum31Box +- (instancetype)initWithValue:(FLTFillerEnum31)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum32Box +- (instancetype)initWithValue:(FLTFillerEnum32)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum33Box +- (instancetype)initWithValue:(FLTFillerEnum33)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum34Box +- (instancetype)initWithValue:(FLTFillerEnum34)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum35Box +- (instancetype)initWithValue:(FLTFillerEnum35)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum36Box +- (instancetype)initWithValue:(FLTFillerEnum36)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum37Box +- (instancetype)initWithValue:(FLTFillerEnum37)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum38Box +- (instancetype)initWithValue:(FLTFillerEnum38)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum39Box +- (instancetype)initWithValue:(FLTFillerEnum39)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum40Box +- (instancetype)initWithValue:(FLTFillerEnum40)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum41Box +- (instancetype)initWithValue:(FLTFillerEnum41)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum42Box +- (instancetype)initWithValue:(FLTFillerEnum42)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum43Box +- (instancetype)initWithValue:(FLTFillerEnum43)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum44Box +- (instancetype)initWithValue:(FLTFillerEnum44)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum45Box +- (instancetype)initWithValue:(FLTFillerEnum45)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum46Box +- (instancetype)initWithValue:(FLTFillerEnum46)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum47Box +- (instancetype)initWithValue:(FLTFillerEnum47)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum48Box +- (instancetype)initWithValue:(FLTFillerEnum48)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum49Box +- (instancetype)initWithValue:(FLTFillerEnum49)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum50Box +- (instancetype)initWithValue:(FLTFillerEnum50)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum51Box +- (instancetype)initWithValue:(FLTFillerEnum51)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum52Box +- (instancetype)initWithValue:(FLTFillerEnum52)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum53Box +- (instancetype)initWithValue:(FLTFillerEnum53)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum54Box +- (instancetype)initWithValue:(FLTFillerEnum54)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum55Box +- (instancetype)initWithValue:(FLTFillerEnum55)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum56Box +- (instancetype)initWithValue:(FLTFillerEnum56)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum57Box +- (instancetype)initWithValue:(FLTFillerEnum57)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum58Box +- (instancetype)initWithValue:(FLTFillerEnum58)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum59Box +- (instancetype)initWithValue:(FLTFillerEnum59)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum60Box +- (instancetype)initWithValue:(FLTFillerEnum60)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum61Box +- (instancetype)initWithValue:(FLTFillerEnum61)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum62Box +- (instancetype)initWithValue:(FLTFillerEnum62)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum63Box +- (instancetype)initWithValue:(FLTFillerEnum63)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum64Box +- (instancetype)initWithValue:(FLTFillerEnum64)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum65Box +- (instancetype)initWithValue:(FLTFillerEnum65)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum66Box +- (instancetype)initWithValue:(FLTFillerEnum66)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum67Box +- (instancetype)initWithValue:(FLTFillerEnum67)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum68Box +- (instancetype)initWithValue:(FLTFillerEnum68)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum69Box +- (instancetype)initWithValue:(FLTFillerEnum69)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum70Box +- (instancetype)initWithValue:(FLTFillerEnum70)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum71Box +- (instancetype)initWithValue:(FLTFillerEnum71)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum72Box +- (instancetype)initWithValue:(FLTFillerEnum72)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum73Box +- (instancetype)initWithValue:(FLTFillerEnum73)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum74Box +- (instancetype)initWithValue:(FLTFillerEnum74)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum75Box +- (instancetype)initWithValue:(FLTFillerEnum75)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum76Box +- (instancetype)initWithValue:(FLTFillerEnum76)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum77Box +- (instancetype)initWithValue:(FLTFillerEnum77)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum78Box +- (instancetype)initWithValue:(FLTFillerEnum78)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum79Box +- (instancetype)initWithValue:(FLTFillerEnum79)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum80Box +- (instancetype)initWithValue:(FLTFillerEnum80)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum81Box +- (instancetype)initWithValue:(FLTFillerEnum81)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum82Box +- (instancetype)initWithValue:(FLTFillerEnum82)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum83Box +- (instancetype)initWithValue:(FLTFillerEnum83)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum84Box +- (instancetype)initWithValue:(FLTFillerEnum84)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum85Box +- (instancetype)initWithValue:(FLTFillerEnum85)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum86Box +- (instancetype)initWithValue:(FLTFillerEnum86)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum87Box +- (instancetype)initWithValue:(FLTFillerEnum87)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum88Box +- (instancetype)initWithValue:(FLTFillerEnum88)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum89Box +- (instancetype)initWithValue:(FLTFillerEnum89)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum90Box +- (instancetype)initWithValue:(FLTFillerEnum90)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum91Box +- (instancetype)initWithValue:(FLTFillerEnum91)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum92Box +- (instancetype)initWithValue:(FLTFillerEnum92)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum93Box +- (instancetype)initWithValue:(FLTFillerEnum93)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum94Box +- (instancetype)initWithValue:(FLTFillerEnum94)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum95Box +- (instancetype)initWithValue:(FLTFillerEnum95)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum96Box +- (instancetype)initWithValue:(FLTFillerEnum96)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum97Box +- (instancetype)initWithValue:(FLTFillerEnum97)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum98Box +- (instancetype)initWithValue:(FLTFillerEnum98)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum99Box +- (instancetype)initWithValue:(FLTFillerEnum99)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum100Box +- (instancetype)initWithValue:(FLTFillerEnum100)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum101Box +- (instancetype)initWithValue:(FLTFillerEnum101)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum102Box +- (instancetype)initWithValue:(FLTFillerEnum102)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum103Box +- (instancetype)initWithValue:(FLTFillerEnum103)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum104Box +- (instancetype)initWithValue:(FLTFillerEnum104)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum105Box +- (instancetype)initWithValue:(FLTFillerEnum105)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum106Box +- (instancetype)initWithValue:(FLTFillerEnum106)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum107Box +- (instancetype)initWithValue:(FLTFillerEnum107)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum108Box +- (instancetype)initWithValue:(FLTFillerEnum108)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum109Box +- (instancetype)initWithValue:(FLTFillerEnum109)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum110Box +- (instancetype)initWithValue:(FLTFillerEnum110)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum111Box +- (instancetype)initWithValue:(FLTFillerEnum111)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum112Box +- (instancetype)initWithValue:(FLTFillerEnum112)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum113Box +- (instancetype)initWithValue:(FLTFillerEnum113)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum114Box +- (instancetype)initWithValue:(FLTFillerEnum114)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum115Box +- (instancetype)initWithValue:(FLTFillerEnum115)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum116Box +- (instancetype)initWithValue:(FLTFillerEnum116)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum117Box +- (instancetype)initWithValue:(FLTFillerEnum117)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum118Box +- (instancetype)initWithValue:(FLTFillerEnum118)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum119Box +- (instancetype)initWithValue:(FLTFillerEnum119)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum120Box +- (instancetype)initWithValue:(FLTFillerEnum120)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum121Box +- (instancetype)initWithValue:(FLTFillerEnum121)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum122Box +- (instancetype)initWithValue:(FLTFillerEnum122)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum123Box +- (instancetype)initWithValue:(FLTFillerEnum123)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTFillerEnum124Box +- (instancetype)initWithValue:(FLTFillerEnum124)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTAnEnumBox +- (instancetype)initWithValue:(FLTAnEnum)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FLTAnotherEnumBox +- (instancetype)initWithValue:(FLTAnotherEnum)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@interface FLTAllTypes () ++ (FLTAllTypes *)fromList:(NSArray *)list; ++ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface FLTAllNullableTypes () ++ (FLTAllNullableTypes *)fromList:(NSArray *)list; ++ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface FLTAllNullableTypesWithoutRecursion () ++ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; ++ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface FLTAllClassesWrapper () ++ (FLTAllClassesWrapper *)fromList:(NSArray *)list; ++ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface FLTTestMessage () ++ (FLTTestMessage *)fromList:(NSArray *)list; ++ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@implementation FLTAllTypes ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(FLTAnEnum)anEnum + anotherEnum:(FLTAnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + map:(NSDictionary *)map { + FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; + pigeonResult.aBool = aBool; + pigeonResult.anInt = anInt; + pigeonResult.anInt64 = anInt64; + pigeonResult.aDouble = aDouble; + pigeonResult.aByteArray = aByteArray; + pigeonResult.a4ByteArray = a4ByteArray; + pigeonResult.a8ByteArray = a8ByteArray; + pigeonResult.aFloatArray = aFloatArray; + pigeonResult.anEnum = anEnum; + pigeonResult.anotherEnum = anotherEnum; + pigeonResult.aString = aString; + pigeonResult.anObject = anObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; +} ++ (FLTAllTypes *)fromList:(NSArray *)list { + FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; + pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; + pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; + pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; + pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; + pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); + FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(list, 8); + pigeonResult.anEnum = anFLTAnEnumBox.value; + FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(list, 9); + pigeonResult.anotherEnum = anFLTAnotherEnumBox.value; + pigeonResult.aString = GetNullableObjectAtIndex(list, 10); + pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); + pigeonResult.list = GetNullableObjectAtIndex(list, 12); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); + pigeonResult.intList = GetNullableObjectAtIndex(list, 14); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); + pigeonResult.map = GetNullableObjectAtIndex(list, 17); + return pigeonResult; +} ++ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllTypes fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + @(self.aBool), + @(self.anInt), + @(self.anInt64), + @(self.aDouble), + self.aByteArray ?: [NSNull null], + self.a4ByteArray ?: [NSNull null], + self.a8ByteArray ?: [NSNull null], + self.aFloatArray ?: [NSNull null], + [[FLTAnEnumBox alloc] initWithValue:self.anEnum], + [[FLTAnotherEnumBox alloc] initWithValue:self.anotherEnum], + self.aString ?: [NSNull null], + self.anObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation FLTAllNullableTypes ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + nestedClassList:(nullable NSArray *)nestedClassList + map:(nullable NSDictionary *)map { + FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.nestedClassList = nestedClassList; + pigeonResult.map = map; + return pigeonResult; +} ++ (FLTAllNullableTypes *)fromList:(NSArray *)list { + FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 15); + pigeonResult.list = GetNullableObjectAtIndex(list, 16); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 17); + pigeonResult.intList = GetNullableObjectAtIndex(list, 18); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 19); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 20); + pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 21); + pigeonResult.map = GetNullableObjectAtIndex(list, 22); + return pigeonResult; +} ++ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllNullableTypes fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.allNullableTypes ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.nestedClassList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation FLTAllNullableTypesWithoutRecursion ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + map:(nullable NSDictionary *)map { + FLTAllNullableTypesWithoutRecursion *pigeonResult = + [[FLTAllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; +} ++ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { + FLTAllNullableTypesWithoutRecursion *pigeonResult = + [[FLTAllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.list = GetNullableObjectAtIndex(list, 15); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); + pigeonResult.intList = GetNullableObjectAtIndex(list, 17); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); + pigeonResult.map = GetNullableObjectAtIndex(list, 20); + return pigeonResult; +} ++ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllNullableTypesWithoutRecursion fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation FLTAllClassesWrapper ++ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable FLTAllTypes *)allTypes { + FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; + pigeonResult.allTypes = allTypes; + return pigeonResult; +} ++ (FLTAllClassesWrapper *)fromList:(NSArray *)list { + FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); + pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); + pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); + return pigeonResult; +} ++ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllClassesWrapper fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.allNullableTypes ?: [NSNull null], + self.allNullableTypesWithoutRecursion ?: [NSNull null], + self.allTypes ?: [NSNull null], + ]; +} +@end + +@implementation FLTTestMessage ++ (instancetype)makeWithTestList:(nullable NSArray *)testList { + FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; + pigeonResult.testList = testList; + return pigeonResult; +} ++ (FLTTestMessage *)fromList:(NSArray *)list { + FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; + pigeonResult.testList = GetNullableObjectAtIndex(list, 0); + return pigeonResult; +} ++ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list { + return (list) ? [FLTTestMessage fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.testList ?: [NSNull null], + ]; +} +@end + +@interface FLT__pigeon_CodecOverflow () ++ (id)fromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@implementation FLT__pigeon_CodecOverflow ++ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped { + FLT__pigeon_CodecOverflow *pigeonResult = [[FLT__pigeon_CodecOverflow alloc] init]; + pigeonResult.type = type; + pigeonResult.wrapped = wrapped; + return pigeonResult; +} +- (NSArray *)toList { + return @[ + @(self.type), + self.wrapped ?: [NSNull null], + ]; +} ++ (id)fromList:(NSArray *)list { + FLT__pigeon_CodecOverflow *wrapper = [[FLT__pigeon_CodecOverflow alloc] init]; + wrapper.type = [GetNullableObjectAtIndex(list, 0) integerValue]; + wrapper.wrapped = GetNullableObjectAtIndex(list, 1); + return [wrapper unwrap]; +} + +- (id)unwrap { + if (self.wrapped == nil) { + return nil; + } + + switch (self.type) { + case 0: + return [[FLTAnotherEnumBox alloc] initWithValue:[self.wrapped integerValue]]; + case 1: + return [FLTAllTypes fromList:self.wrapped]; + case 2: + return [FLTAllNullableTypes fromList:self.wrapped]; + case 3: + return [FLTAllNullableTypesWithoutRecursion fromList:self.wrapped]; + case 4: + return [FLTAllClassesWrapper fromList:self.wrapped]; + case 5: + return [FLTTestMessage fromList:self.wrapped]; + default: + return nil; + } +} +@end +@interface FLTCoreTestsPigeonCodecReader : FlutterStandardReader +@end +@implementation FLTCoreTestsPigeonCodecReader +- (nullable id)readValueOfType:(UInt8)type { + switch (type) { + case 129: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum0Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 130: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum1Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 131: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum2Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 132: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum3Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 133: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum4Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 134: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum5Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 135: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum6Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 136: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum7Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 137: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum8Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 138: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum9Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 139: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum10Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 140: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum11Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 141: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum12Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 142: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum13Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 143: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum14Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 144: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum15Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 145: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum16Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 146: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum17Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 147: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum18Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 148: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum19Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 149: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum20Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 150: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum21Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 151: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum22Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 152: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum23Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 153: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum24Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 154: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum25Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 155: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum26Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 156: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum27Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 157: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum28Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 158: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum29Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 159: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum30Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 160: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum31Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 161: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum32Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 162: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum33Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 163: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum34Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 164: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum35Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 165: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum36Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 166: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum37Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 167: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum38Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 168: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum39Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 169: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum40Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 170: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum41Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 171: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum42Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 172: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum43Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 173: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum44Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 174: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum45Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 175: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum46Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 176: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum47Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 177: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum48Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 178: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum49Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 179: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum50Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 180: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum51Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 181: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum52Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 182: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum53Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 183: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum54Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 184: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum55Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 185: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum56Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 186: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum57Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 187: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum58Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 188: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum59Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 189: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum60Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 190: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum61Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 191: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum62Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 192: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum63Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 193: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum64Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 194: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum65Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 195: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum66Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 196: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum67Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 197: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum68Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 198: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum69Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 199: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum70Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 200: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum71Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 201: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum72Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 202: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum73Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 203: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum74Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 204: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum75Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 205: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum76Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 206: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum77Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 207: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum78Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 208: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum79Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 209: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum80Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 210: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum81Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 211: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum82Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 212: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum83Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 213: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum84Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 214: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum85Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 215: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum86Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 216: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum87Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 217: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum88Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 218: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum89Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 219: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum90Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 220: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum91Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 221: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum92Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 222: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum93Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 223: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum94Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 224: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum95Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 225: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum96Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 226: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum97Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 227: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum98Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 228: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum99Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 229: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum100Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 230: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum101Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 231: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum102Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 232: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum103Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 233: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum104Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 234: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum105Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 235: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum106Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 236: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum107Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 237: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum108Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 238: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum109Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 239: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum110Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 240: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum111Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 241: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum112Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 242: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum113Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 243: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum114Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 244: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum115Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 245: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum116Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 246: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum117Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 247: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum118Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 248: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum119Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 249: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum120Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 250: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum121Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 251: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum122Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 252: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum123Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 253: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FLTFillerEnum124Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 254: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil ? nil + : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 255: + return [FLT__pigeon_CodecOverflow fromList:[self readValue]]; + default: + return [super readValueOfType:type]; + } +} +@end + +@interface FLTCoreTestsPigeonCodecWriter : FlutterStandardWriter +@end +@implementation FLTCoreTestsPigeonCodecWriter +- (void)writeValue:(id)value { + if ([value isKindOfClass:[FLTFillerEnum0Box class]]) { + FLTFillerEnum0Box *box = (FLTFillerEnum0Box *)value; + [self writeByte:129]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum1Box class]]) { + FLTFillerEnum1Box *box = (FLTFillerEnum1Box *)value; + [self writeByte:130]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum2Box class]]) { + FLTFillerEnum2Box *box = (FLTFillerEnum2Box *)value; + [self writeByte:131]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum3Box class]]) { + FLTFillerEnum3Box *box = (FLTFillerEnum3Box *)value; + [self writeByte:132]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum4Box class]]) { + FLTFillerEnum4Box *box = (FLTFillerEnum4Box *)value; + [self writeByte:133]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum5Box class]]) { + FLTFillerEnum5Box *box = (FLTFillerEnum5Box *)value; + [self writeByte:134]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum6Box class]]) { + FLTFillerEnum6Box *box = (FLTFillerEnum6Box *)value; + [self writeByte:135]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum7Box class]]) { + FLTFillerEnum7Box *box = (FLTFillerEnum7Box *)value; + [self writeByte:136]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum8Box class]]) { + FLTFillerEnum8Box *box = (FLTFillerEnum8Box *)value; + [self writeByte:137]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum9Box class]]) { + FLTFillerEnum9Box *box = (FLTFillerEnum9Box *)value; + [self writeByte:138]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum10Box class]]) { + FLTFillerEnum10Box *box = (FLTFillerEnum10Box *)value; + [self writeByte:139]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum11Box class]]) { + FLTFillerEnum11Box *box = (FLTFillerEnum11Box *)value; + [self writeByte:140]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum12Box class]]) { + FLTFillerEnum12Box *box = (FLTFillerEnum12Box *)value; + [self writeByte:141]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum13Box class]]) { + FLTFillerEnum13Box *box = (FLTFillerEnum13Box *)value; + [self writeByte:142]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum14Box class]]) { + FLTFillerEnum14Box *box = (FLTFillerEnum14Box *)value; + [self writeByte:143]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum15Box class]]) { + FLTFillerEnum15Box *box = (FLTFillerEnum15Box *)value; + [self writeByte:144]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum16Box class]]) { + FLTFillerEnum16Box *box = (FLTFillerEnum16Box *)value; + [self writeByte:145]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum17Box class]]) { + FLTFillerEnum17Box *box = (FLTFillerEnum17Box *)value; + [self writeByte:146]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum18Box class]]) { + FLTFillerEnum18Box *box = (FLTFillerEnum18Box *)value; + [self writeByte:147]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum19Box class]]) { + FLTFillerEnum19Box *box = (FLTFillerEnum19Box *)value; + [self writeByte:148]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum20Box class]]) { + FLTFillerEnum20Box *box = (FLTFillerEnum20Box *)value; + [self writeByte:149]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum21Box class]]) { + FLTFillerEnum21Box *box = (FLTFillerEnum21Box *)value; + [self writeByte:150]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum22Box class]]) { + FLTFillerEnum22Box *box = (FLTFillerEnum22Box *)value; + [self writeByte:151]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum23Box class]]) { + FLTFillerEnum23Box *box = (FLTFillerEnum23Box *)value; + [self writeByte:152]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum24Box class]]) { + FLTFillerEnum24Box *box = (FLTFillerEnum24Box *)value; + [self writeByte:153]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum25Box class]]) { + FLTFillerEnum25Box *box = (FLTFillerEnum25Box *)value; + [self writeByte:154]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum26Box class]]) { + FLTFillerEnum26Box *box = (FLTFillerEnum26Box *)value; + [self writeByte:155]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum27Box class]]) { + FLTFillerEnum27Box *box = (FLTFillerEnum27Box *)value; + [self writeByte:156]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum28Box class]]) { + FLTFillerEnum28Box *box = (FLTFillerEnum28Box *)value; + [self writeByte:157]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum29Box class]]) { + FLTFillerEnum29Box *box = (FLTFillerEnum29Box *)value; + [self writeByte:158]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum30Box class]]) { + FLTFillerEnum30Box *box = (FLTFillerEnum30Box *)value; + [self writeByte:159]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum31Box class]]) { + FLTFillerEnum31Box *box = (FLTFillerEnum31Box *)value; + [self writeByte:160]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum32Box class]]) { + FLTFillerEnum32Box *box = (FLTFillerEnum32Box *)value; + [self writeByte:161]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum33Box class]]) { + FLTFillerEnum33Box *box = (FLTFillerEnum33Box *)value; + [self writeByte:162]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum34Box class]]) { + FLTFillerEnum34Box *box = (FLTFillerEnum34Box *)value; + [self writeByte:163]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum35Box class]]) { + FLTFillerEnum35Box *box = (FLTFillerEnum35Box *)value; + [self writeByte:164]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum36Box class]]) { + FLTFillerEnum36Box *box = (FLTFillerEnum36Box *)value; + [self writeByte:165]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum37Box class]]) { + FLTFillerEnum37Box *box = (FLTFillerEnum37Box *)value; + [self writeByte:166]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum38Box class]]) { + FLTFillerEnum38Box *box = (FLTFillerEnum38Box *)value; + [self writeByte:167]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum39Box class]]) { + FLTFillerEnum39Box *box = (FLTFillerEnum39Box *)value; + [self writeByte:168]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum40Box class]]) { + FLTFillerEnum40Box *box = (FLTFillerEnum40Box *)value; + [self writeByte:169]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum41Box class]]) { + FLTFillerEnum41Box *box = (FLTFillerEnum41Box *)value; + [self writeByte:170]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum42Box class]]) { + FLTFillerEnum42Box *box = (FLTFillerEnum42Box *)value; + [self writeByte:171]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum43Box class]]) { + FLTFillerEnum43Box *box = (FLTFillerEnum43Box *)value; + [self writeByte:172]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum44Box class]]) { + FLTFillerEnum44Box *box = (FLTFillerEnum44Box *)value; + [self writeByte:173]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum45Box class]]) { + FLTFillerEnum45Box *box = (FLTFillerEnum45Box *)value; + [self writeByte:174]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum46Box class]]) { + FLTFillerEnum46Box *box = (FLTFillerEnum46Box *)value; + [self writeByte:175]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum47Box class]]) { + FLTFillerEnum47Box *box = (FLTFillerEnum47Box *)value; + [self writeByte:176]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum48Box class]]) { + FLTFillerEnum48Box *box = (FLTFillerEnum48Box *)value; + [self writeByte:177]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum49Box class]]) { + FLTFillerEnum49Box *box = (FLTFillerEnum49Box *)value; + [self writeByte:178]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum50Box class]]) { + FLTFillerEnum50Box *box = (FLTFillerEnum50Box *)value; + [self writeByte:179]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum51Box class]]) { + FLTFillerEnum51Box *box = (FLTFillerEnum51Box *)value; + [self writeByte:180]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum52Box class]]) { + FLTFillerEnum52Box *box = (FLTFillerEnum52Box *)value; + [self writeByte:181]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum53Box class]]) { + FLTFillerEnum53Box *box = (FLTFillerEnum53Box *)value; + [self writeByte:182]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum54Box class]]) { + FLTFillerEnum54Box *box = (FLTFillerEnum54Box *)value; + [self writeByte:183]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum55Box class]]) { + FLTFillerEnum55Box *box = (FLTFillerEnum55Box *)value; + [self writeByte:184]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum56Box class]]) { + FLTFillerEnum56Box *box = (FLTFillerEnum56Box *)value; + [self writeByte:185]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum57Box class]]) { + FLTFillerEnum57Box *box = (FLTFillerEnum57Box *)value; + [self writeByte:186]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum58Box class]]) { + FLTFillerEnum58Box *box = (FLTFillerEnum58Box *)value; + [self writeByte:187]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum59Box class]]) { + FLTFillerEnum59Box *box = (FLTFillerEnum59Box *)value; + [self writeByte:188]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum60Box class]]) { + FLTFillerEnum60Box *box = (FLTFillerEnum60Box *)value; + [self writeByte:189]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum61Box class]]) { + FLTFillerEnum61Box *box = (FLTFillerEnum61Box *)value; + [self writeByte:190]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum62Box class]]) { + FLTFillerEnum62Box *box = (FLTFillerEnum62Box *)value; + [self writeByte:191]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum63Box class]]) { + FLTFillerEnum63Box *box = (FLTFillerEnum63Box *)value; + [self writeByte:192]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum64Box class]]) { + FLTFillerEnum64Box *box = (FLTFillerEnum64Box *)value; + [self writeByte:193]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum65Box class]]) { + FLTFillerEnum65Box *box = (FLTFillerEnum65Box *)value; + [self writeByte:194]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum66Box class]]) { + FLTFillerEnum66Box *box = (FLTFillerEnum66Box *)value; + [self writeByte:195]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum67Box class]]) { + FLTFillerEnum67Box *box = (FLTFillerEnum67Box *)value; + [self writeByte:196]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum68Box class]]) { + FLTFillerEnum68Box *box = (FLTFillerEnum68Box *)value; + [self writeByte:197]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum69Box class]]) { + FLTFillerEnum69Box *box = (FLTFillerEnum69Box *)value; + [self writeByte:198]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum70Box class]]) { + FLTFillerEnum70Box *box = (FLTFillerEnum70Box *)value; + [self writeByte:199]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum71Box class]]) { + FLTFillerEnum71Box *box = (FLTFillerEnum71Box *)value; + [self writeByte:200]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum72Box class]]) { + FLTFillerEnum72Box *box = (FLTFillerEnum72Box *)value; + [self writeByte:201]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum73Box class]]) { + FLTFillerEnum73Box *box = (FLTFillerEnum73Box *)value; + [self writeByte:202]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum74Box class]]) { + FLTFillerEnum74Box *box = (FLTFillerEnum74Box *)value; + [self writeByte:203]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum75Box class]]) { + FLTFillerEnum75Box *box = (FLTFillerEnum75Box *)value; + [self writeByte:204]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum76Box class]]) { + FLTFillerEnum76Box *box = (FLTFillerEnum76Box *)value; + [self writeByte:205]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum77Box class]]) { + FLTFillerEnum77Box *box = (FLTFillerEnum77Box *)value; + [self writeByte:206]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum78Box class]]) { + FLTFillerEnum78Box *box = (FLTFillerEnum78Box *)value; + [self writeByte:207]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum79Box class]]) { + FLTFillerEnum79Box *box = (FLTFillerEnum79Box *)value; + [self writeByte:208]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum80Box class]]) { + FLTFillerEnum80Box *box = (FLTFillerEnum80Box *)value; + [self writeByte:209]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum81Box class]]) { + FLTFillerEnum81Box *box = (FLTFillerEnum81Box *)value; + [self writeByte:210]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum82Box class]]) { + FLTFillerEnum82Box *box = (FLTFillerEnum82Box *)value; + [self writeByte:211]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum83Box class]]) { + FLTFillerEnum83Box *box = (FLTFillerEnum83Box *)value; + [self writeByte:212]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum84Box class]]) { + FLTFillerEnum84Box *box = (FLTFillerEnum84Box *)value; + [self writeByte:213]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum85Box class]]) { + FLTFillerEnum85Box *box = (FLTFillerEnum85Box *)value; + [self writeByte:214]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum86Box class]]) { + FLTFillerEnum86Box *box = (FLTFillerEnum86Box *)value; + [self writeByte:215]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum87Box class]]) { + FLTFillerEnum87Box *box = (FLTFillerEnum87Box *)value; + [self writeByte:216]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum88Box class]]) { + FLTFillerEnum88Box *box = (FLTFillerEnum88Box *)value; + [self writeByte:217]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum89Box class]]) { + FLTFillerEnum89Box *box = (FLTFillerEnum89Box *)value; + [self writeByte:218]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum90Box class]]) { + FLTFillerEnum90Box *box = (FLTFillerEnum90Box *)value; + [self writeByte:219]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum91Box class]]) { + FLTFillerEnum91Box *box = (FLTFillerEnum91Box *)value; + [self writeByte:220]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum92Box class]]) { + FLTFillerEnum92Box *box = (FLTFillerEnum92Box *)value; + [self writeByte:221]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum93Box class]]) { + FLTFillerEnum93Box *box = (FLTFillerEnum93Box *)value; + [self writeByte:222]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum94Box class]]) { + FLTFillerEnum94Box *box = (FLTFillerEnum94Box *)value; + [self writeByte:223]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum95Box class]]) { + FLTFillerEnum95Box *box = (FLTFillerEnum95Box *)value; + [self writeByte:224]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum96Box class]]) { + FLTFillerEnum96Box *box = (FLTFillerEnum96Box *)value; + [self writeByte:225]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum97Box class]]) { + FLTFillerEnum97Box *box = (FLTFillerEnum97Box *)value; + [self writeByte:226]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum98Box class]]) { + FLTFillerEnum98Box *box = (FLTFillerEnum98Box *)value; + [self writeByte:227]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum99Box class]]) { + FLTFillerEnum99Box *box = (FLTFillerEnum99Box *)value; + [self writeByte:228]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum100Box class]]) { + FLTFillerEnum100Box *box = (FLTFillerEnum100Box *)value; + [self writeByte:229]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum101Box class]]) { + FLTFillerEnum101Box *box = (FLTFillerEnum101Box *)value; + [self writeByte:230]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum102Box class]]) { + FLTFillerEnum102Box *box = (FLTFillerEnum102Box *)value; + [self writeByte:231]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum103Box class]]) { + FLTFillerEnum103Box *box = (FLTFillerEnum103Box *)value; + [self writeByte:232]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum104Box class]]) { + FLTFillerEnum104Box *box = (FLTFillerEnum104Box *)value; + [self writeByte:233]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum105Box class]]) { + FLTFillerEnum105Box *box = (FLTFillerEnum105Box *)value; + [self writeByte:234]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum106Box class]]) { + FLTFillerEnum106Box *box = (FLTFillerEnum106Box *)value; + [self writeByte:235]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum107Box class]]) { + FLTFillerEnum107Box *box = (FLTFillerEnum107Box *)value; + [self writeByte:236]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum108Box class]]) { + FLTFillerEnum108Box *box = (FLTFillerEnum108Box *)value; + [self writeByte:237]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum109Box class]]) { + FLTFillerEnum109Box *box = (FLTFillerEnum109Box *)value; + [self writeByte:238]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum110Box class]]) { + FLTFillerEnum110Box *box = (FLTFillerEnum110Box *)value; + [self writeByte:239]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum111Box class]]) { + FLTFillerEnum111Box *box = (FLTFillerEnum111Box *)value; + [self writeByte:240]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum112Box class]]) { + FLTFillerEnum112Box *box = (FLTFillerEnum112Box *)value; + [self writeByte:241]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum113Box class]]) { + FLTFillerEnum113Box *box = (FLTFillerEnum113Box *)value; + [self writeByte:242]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum114Box class]]) { + FLTFillerEnum114Box *box = (FLTFillerEnum114Box *)value; + [self writeByte:243]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum115Box class]]) { + FLTFillerEnum115Box *box = (FLTFillerEnum115Box *)value; + [self writeByte:244]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum116Box class]]) { + FLTFillerEnum116Box *box = (FLTFillerEnum116Box *)value; + [self writeByte:245]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum117Box class]]) { + FLTFillerEnum117Box *box = (FLTFillerEnum117Box *)value; + [self writeByte:246]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum118Box class]]) { + FLTFillerEnum118Box *box = (FLTFillerEnum118Box *)value; + [self writeByte:247]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum119Box class]]) { + FLTFillerEnum119Box *box = (FLTFillerEnum119Box *)value; + [self writeByte:248]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum120Box class]]) { + FLTFillerEnum120Box *box = (FLTFillerEnum120Box *)value; + [self writeByte:249]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum121Box class]]) { + FLTFillerEnum121Box *box = (FLTFillerEnum121Box *)value; + [self writeByte:250]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum122Box class]]) { + FLTFillerEnum122Box *box = (FLTFillerEnum122Box *)value; + [self writeByte:251]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum123Box class]]) { + FLTFillerEnum123Box *box = (FLTFillerEnum123Box *)value; + [self writeByte:252]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTFillerEnum124Box class]]) { + FLTFillerEnum124Box *box = (FLTFillerEnum124Box *)value; + [self writeByte:253]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTAnEnumBox class]]) { FLTAnEnumBox *box = (FLTAnEnumBox *)value; - [self writeByte:129]; + [self writeByte:254]; [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FLTAnotherEnumBox class]]) { + FLTAnotherEnumBox *box = (FLTAnotherEnumBox *)value; + FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow + makeWithType:0 + wrapped:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[FLTAllTypes class]]) { - [self writeByte:130]; - [self writeValue:[value toList]]; + FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:1 + wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[FLTAllNullableTypes class]]) { - [self writeByte:131]; - [self writeValue:[value toList]]; + FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:2 + wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[FLTAllNullableTypesWithoutRecursion class]]) { - [self writeByte:132]; - [self writeValue:[value toList]]; + FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:3 + wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[FLTAllClassesWrapper class]]) { - [self writeByte:133]; - [self writeValue:[value toList]]; + FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:4 + wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[FLTTestMessage class]]) { - [self writeByte:134]; - [self writeValue:[value toList]]; + FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:5 + wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else { [super writeValue:value]; } @@ -863,8 +3443,8 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnEnumBox *enumBox = GetNullableObjectAtIndex(args, 0); - FLTAnEnum arg_anEnum = enumBox.value; + FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; FlutterError *error; FLTAnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); @@ -873,6 +3453,32 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + /// Returns the passed enum to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherEnum:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; + FlutterError *error; + FLTAnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Returns the default string. { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] @@ -1348,6 +3954,31 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherNullableEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + FLTAnotherEnumBox *output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Returns passed in int. { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] @@ -1650,8 +4281,8 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnEnumBox *enumBox = GetNullableObjectAtIndex(args, 0); - FLTAnEnum arg_anEnum = enumBox.value; + FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; [api echoAsyncEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -1661,6 +4292,34 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherAsyncEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; + [api echoAnotherAsyncEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Responds with an error from an async function returning a value. { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] @@ -2058,6 +4717,34 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherAsyncNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + [api echoAnotherAsyncNullableEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] initWithName:[NSString stringWithFormat:@"%@%@", @@ -2474,8 +5161,8 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnEnumBox *enumBox = GetNullableObjectAtIndex(args, 0); - FLTAnEnum arg_anEnum = enumBox.value; + FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; [api callFlutterEchoEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -2485,6 +5172,34 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAnotherEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; + [api callFlutterEchoAnotherEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] initWithName:[NSString @@ -2701,6 +5416,33 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:nil]; } } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:FLTGetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], + @"FLTHostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + FLTAnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum + completion:^(FLTAnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] initWithName: @@ -3198,6 +5940,34 @@ - (void)echoEnum:(FLTAnEnum)arg_anEnum } }]; } +- (void)echoAnotherEnum:(FLTAnotherEnum)arg_anotherEnum + completion: + (void (^)(FLTAnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ [[FLTAnotherEnumBox alloc] initWithValue:arg_anotherEnum] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} - (void)echoNullableBool:(nullable NSNumber *)arg_aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { NSString *channelName = [NSString @@ -3418,6 +6188,34 @@ - (void)echoNullableEnum:(nullable FLTAnEnumBox *)arg_anEnum } }]; } +- (void)echoAnotherNullableEnum:(nullable FLTAnotherEnumBox *)arg_anotherEnum + completion:(void (^)(FLTAnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoAnotherNullableEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:FLTGetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + FLTAnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion { NSString *channelName = [NSString stringWithFormat: diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/AlternateLanguageTestPlugin.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/AlternateLanguageTestPlugin.m index 0cdec98b9ed..25324dab809 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/AlternateLanguageTestPlugin.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/AlternateLanguageTestPlugin.m @@ -7,9 +7,9 @@ #import "CoreTests.gen.h" @interface AlternateLanguageTestPlugin () -@property(nonatomic) FlutterIntegrationCoreApi *flutterAPI; @property(nonatomic) FlutterSmallApi *flutterSmallApiOne; @property(nonatomic) FlutterSmallApi *flutterSmallApiTwo; +@property(nonatomic) FlutterIntegrationCoreApi *flutterAPI; @end /// This plugin handles the native side of the integration tests in example/integration_test/. @@ -107,6 +107,11 @@ - (AnEnumBox *_Nullable)echoEnum:(AnEnum)anEnum error:(FlutterError *_Nullable * return [[AnEnumBox alloc] initWithValue:anEnum]; } +- (AnotherEnumBox *_Nullable)echoAnotherEnum:(AnotherEnum)anotherEnum + error:(FlutterError *_Nullable *_Nonnull)error { + return [[AnotherEnumBox alloc] initWithValue:anotherEnum]; +} + - (nullable NSString *)echoNamedDefaultString:(NSString *)aString error:(FlutterError *_Nullable *_Nonnull)error { return aString; @@ -210,6 +215,11 @@ - (AnEnumBox *_Nullable)echoNullableEnum:(nullable AnEnumBox *)AnEnumBoxed return AnEnumBoxed; } +- (AnotherEnumBox *_Nullable)echoAnotherNullableEnum:(nullable AnotherEnumBox *)AnotherEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error { + return AnotherEnumBoxed; +} + - (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error { return aNullableInt; @@ -304,6 +314,12 @@ - (void)echoAsyncEnum:(AnEnum)anEnum completion([[AnEnumBox alloc] initWithValue:anEnum], nil); } +- (void)echoAnotherAsyncEnum:(AnotherEnum)anotherEnum + completion: + (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + completion([[AnotherEnumBox alloc] initWithValue:anotherEnum], nil); +} + - (void)echoAsyncNullableInt:(nullable NSNumber *)anInt completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { completion(anInt, nil); @@ -352,6 +368,12 @@ - (void)echoAsyncNullableEnum:(nullable AnEnumBox *)AnEnumBoxed completion(AnEnumBoxed, nil); } +- (void)echoAnotherAsyncNullableEnum:(nullable AnotherEnumBox *)AnotherEnumBoxed + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + completion(AnotherEnumBoxed, nil); +} + - (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion { [self.flutterAPI noopWithCompletion:^(FlutterError *error) { completion(error); @@ -477,6 +499,15 @@ - (void)callFlutterEchoEnum:(AnEnum)anEnum }]; } +- (void)callFlutterEchoAnotherEnum:(AnotherEnum)anotherEnum + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + [self.flutterAPI echoAnotherEnum:anotherEnum + completion:^(AnotherEnumBox *value, FlutterError *error) { + completion(value, error); + }]; +} + - (void)callFlutterEchoAllNullableTypes:(nullable AllNullableTypes *)everything completion:(void (^)(AllNullableTypes *_Nullable, FlutterError *_Nullable))completion { @@ -571,6 +602,15 @@ - (void)callFlutterEchoNullableEnum:(nullable AnEnumBox *)AnEnumBoxed }]; } +- (void)callFlutterEchoAnotherNullableEnum:(nullable AnotherEnumBox *)AnotherEnumBoxed + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion { + [self.flutterAPI echoAnotherNullableEnum:AnotherEnumBoxed + completion:^(AnotherEnumBox *value, FlutterError *error) { + completion(value, error); + }]; +} + - (void)callFlutterSmallApiEchoString:(nonnull NSString *)aString completion:(nonnull void (^)(NSString *_Nullable, FlutterError *_Nullable))completion { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h index f2b2c074755..0760bff374c 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h @@ -14,6 +14,1256 @@ NS_ASSUME_NONNULL_BEGIN +typedef NS_ENUM(NSUInteger, FillerEnum0) { + FillerEnum0FillerMember0 = 0, +}; + +/// Wrapper for FillerEnum0 to allow for nullability. +@interface FillerEnum0Box : NSObject +@property(nonatomic, assign) FillerEnum0 value; +- (instancetype)initWithValue:(FillerEnum0)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum1) { + FillerEnum1FillerMember1 = 0, +}; + +/// Wrapper for FillerEnum1 to allow for nullability. +@interface FillerEnum1Box : NSObject +@property(nonatomic, assign) FillerEnum1 value; +- (instancetype)initWithValue:(FillerEnum1)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum2) { + FillerEnum2FillerMember2 = 0, +}; + +/// Wrapper for FillerEnum2 to allow for nullability. +@interface FillerEnum2Box : NSObject +@property(nonatomic, assign) FillerEnum2 value; +- (instancetype)initWithValue:(FillerEnum2)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum3) { + FillerEnum3FillerMember3 = 0, +}; + +/// Wrapper for FillerEnum3 to allow for nullability. +@interface FillerEnum3Box : NSObject +@property(nonatomic, assign) FillerEnum3 value; +- (instancetype)initWithValue:(FillerEnum3)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum4) { + FillerEnum4FillerMember4 = 0, +}; + +/// Wrapper for FillerEnum4 to allow for nullability. +@interface FillerEnum4Box : NSObject +@property(nonatomic, assign) FillerEnum4 value; +- (instancetype)initWithValue:(FillerEnum4)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum5) { + FillerEnum5FillerMember5 = 0, +}; + +/// Wrapper for FillerEnum5 to allow for nullability. +@interface FillerEnum5Box : NSObject +@property(nonatomic, assign) FillerEnum5 value; +- (instancetype)initWithValue:(FillerEnum5)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum6) { + FillerEnum6FillerMember6 = 0, +}; + +/// Wrapper for FillerEnum6 to allow for nullability. +@interface FillerEnum6Box : NSObject +@property(nonatomic, assign) FillerEnum6 value; +- (instancetype)initWithValue:(FillerEnum6)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum7) { + FillerEnum7FillerMember7 = 0, +}; + +/// Wrapper for FillerEnum7 to allow for nullability. +@interface FillerEnum7Box : NSObject +@property(nonatomic, assign) FillerEnum7 value; +- (instancetype)initWithValue:(FillerEnum7)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum8) { + FillerEnum8FillerMember8 = 0, +}; + +/// Wrapper for FillerEnum8 to allow for nullability. +@interface FillerEnum8Box : NSObject +@property(nonatomic, assign) FillerEnum8 value; +- (instancetype)initWithValue:(FillerEnum8)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum9) { + FillerEnum9FillerMember9 = 0, +}; + +/// Wrapper for FillerEnum9 to allow for nullability. +@interface FillerEnum9Box : NSObject +@property(nonatomic, assign) FillerEnum9 value; +- (instancetype)initWithValue:(FillerEnum9)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum10) { + FillerEnum10FillerMember10 = 0, +}; + +/// Wrapper for FillerEnum10 to allow for nullability. +@interface FillerEnum10Box : NSObject +@property(nonatomic, assign) FillerEnum10 value; +- (instancetype)initWithValue:(FillerEnum10)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum11) { + FillerEnum11FillerMember11 = 0, +}; + +/// Wrapper for FillerEnum11 to allow for nullability. +@interface FillerEnum11Box : NSObject +@property(nonatomic, assign) FillerEnum11 value; +- (instancetype)initWithValue:(FillerEnum11)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum12) { + FillerEnum12FillerMember12 = 0, +}; + +/// Wrapper for FillerEnum12 to allow for nullability. +@interface FillerEnum12Box : NSObject +@property(nonatomic, assign) FillerEnum12 value; +- (instancetype)initWithValue:(FillerEnum12)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum13) { + FillerEnum13FillerMember13 = 0, +}; + +/// Wrapper for FillerEnum13 to allow for nullability. +@interface FillerEnum13Box : NSObject +@property(nonatomic, assign) FillerEnum13 value; +- (instancetype)initWithValue:(FillerEnum13)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum14) { + FillerEnum14FillerMember14 = 0, +}; + +/// Wrapper for FillerEnum14 to allow for nullability. +@interface FillerEnum14Box : NSObject +@property(nonatomic, assign) FillerEnum14 value; +- (instancetype)initWithValue:(FillerEnum14)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum15) { + FillerEnum15FillerMember15 = 0, +}; + +/// Wrapper for FillerEnum15 to allow for nullability. +@interface FillerEnum15Box : NSObject +@property(nonatomic, assign) FillerEnum15 value; +- (instancetype)initWithValue:(FillerEnum15)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum16) { + FillerEnum16FillerMember16 = 0, +}; + +/// Wrapper for FillerEnum16 to allow for nullability. +@interface FillerEnum16Box : NSObject +@property(nonatomic, assign) FillerEnum16 value; +- (instancetype)initWithValue:(FillerEnum16)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum17) { + FillerEnum17FillerMember17 = 0, +}; + +/// Wrapper for FillerEnum17 to allow for nullability. +@interface FillerEnum17Box : NSObject +@property(nonatomic, assign) FillerEnum17 value; +- (instancetype)initWithValue:(FillerEnum17)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum18) { + FillerEnum18FillerMember18 = 0, +}; + +/// Wrapper for FillerEnum18 to allow for nullability. +@interface FillerEnum18Box : NSObject +@property(nonatomic, assign) FillerEnum18 value; +- (instancetype)initWithValue:(FillerEnum18)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum19) { + FillerEnum19FillerMember19 = 0, +}; + +/// Wrapper for FillerEnum19 to allow for nullability. +@interface FillerEnum19Box : NSObject +@property(nonatomic, assign) FillerEnum19 value; +- (instancetype)initWithValue:(FillerEnum19)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum20) { + FillerEnum20FillerMember20 = 0, +}; + +/// Wrapper for FillerEnum20 to allow for nullability. +@interface FillerEnum20Box : NSObject +@property(nonatomic, assign) FillerEnum20 value; +- (instancetype)initWithValue:(FillerEnum20)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum21) { + FillerEnum21FillerMember21 = 0, +}; + +/// Wrapper for FillerEnum21 to allow for nullability. +@interface FillerEnum21Box : NSObject +@property(nonatomic, assign) FillerEnum21 value; +- (instancetype)initWithValue:(FillerEnum21)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum22) { + FillerEnum22FillerMember22 = 0, +}; + +/// Wrapper for FillerEnum22 to allow for nullability. +@interface FillerEnum22Box : NSObject +@property(nonatomic, assign) FillerEnum22 value; +- (instancetype)initWithValue:(FillerEnum22)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum23) { + FillerEnum23FillerMember23 = 0, +}; + +/// Wrapper for FillerEnum23 to allow for nullability. +@interface FillerEnum23Box : NSObject +@property(nonatomic, assign) FillerEnum23 value; +- (instancetype)initWithValue:(FillerEnum23)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum24) { + FillerEnum24FillerMember24 = 0, +}; + +/// Wrapper for FillerEnum24 to allow for nullability. +@interface FillerEnum24Box : NSObject +@property(nonatomic, assign) FillerEnum24 value; +- (instancetype)initWithValue:(FillerEnum24)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum25) { + FillerEnum25FillerMember25 = 0, +}; + +/// Wrapper for FillerEnum25 to allow for nullability. +@interface FillerEnum25Box : NSObject +@property(nonatomic, assign) FillerEnum25 value; +- (instancetype)initWithValue:(FillerEnum25)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum26) { + FillerEnum26FillerMember26 = 0, +}; + +/// Wrapper for FillerEnum26 to allow for nullability. +@interface FillerEnum26Box : NSObject +@property(nonatomic, assign) FillerEnum26 value; +- (instancetype)initWithValue:(FillerEnum26)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum27) { + FillerEnum27FillerMember27 = 0, +}; + +/// Wrapper for FillerEnum27 to allow for nullability. +@interface FillerEnum27Box : NSObject +@property(nonatomic, assign) FillerEnum27 value; +- (instancetype)initWithValue:(FillerEnum27)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum28) { + FillerEnum28FillerMember28 = 0, +}; + +/// Wrapper for FillerEnum28 to allow for nullability. +@interface FillerEnum28Box : NSObject +@property(nonatomic, assign) FillerEnum28 value; +- (instancetype)initWithValue:(FillerEnum28)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum29) { + FillerEnum29FillerMember29 = 0, +}; + +/// Wrapper for FillerEnum29 to allow for nullability. +@interface FillerEnum29Box : NSObject +@property(nonatomic, assign) FillerEnum29 value; +- (instancetype)initWithValue:(FillerEnum29)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum30) { + FillerEnum30FillerMember30 = 0, +}; + +/// Wrapper for FillerEnum30 to allow for nullability. +@interface FillerEnum30Box : NSObject +@property(nonatomic, assign) FillerEnum30 value; +- (instancetype)initWithValue:(FillerEnum30)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum31) { + FillerEnum31FillerMember31 = 0, +}; + +/// Wrapper for FillerEnum31 to allow for nullability. +@interface FillerEnum31Box : NSObject +@property(nonatomic, assign) FillerEnum31 value; +- (instancetype)initWithValue:(FillerEnum31)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum32) { + FillerEnum32FillerMember32 = 0, +}; + +/// Wrapper for FillerEnum32 to allow for nullability. +@interface FillerEnum32Box : NSObject +@property(nonatomic, assign) FillerEnum32 value; +- (instancetype)initWithValue:(FillerEnum32)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum33) { + FillerEnum33FillerMember33 = 0, +}; + +/// Wrapper for FillerEnum33 to allow for nullability. +@interface FillerEnum33Box : NSObject +@property(nonatomic, assign) FillerEnum33 value; +- (instancetype)initWithValue:(FillerEnum33)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum34) { + FillerEnum34FillerMember34 = 0, +}; + +/// Wrapper for FillerEnum34 to allow for nullability. +@interface FillerEnum34Box : NSObject +@property(nonatomic, assign) FillerEnum34 value; +- (instancetype)initWithValue:(FillerEnum34)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum35) { + FillerEnum35FillerMember35 = 0, +}; + +/// Wrapper for FillerEnum35 to allow for nullability. +@interface FillerEnum35Box : NSObject +@property(nonatomic, assign) FillerEnum35 value; +- (instancetype)initWithValue:(FillerEnum35)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum36) { + FillerEnum36FillerMember36 = 0, +}; + +/// Wrapper for FillerEnum36 to allow for nullability. +@interface FillerEnum36Box : NSObject +@property(nonatomic, assign) FillerEnum36 value; +- (instancetype)initWithValue:(FillerEnum36)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum37) { + FillerEnum37FillerMember37 = 0, +}; + +/// Wrapper for FillerEnum37 to allow for nullability. +@interface FillerEnum37Box : NSObject +@property(nonatomic, assign) FillerEnum37 value; +- (instancetype)initWithValue:(FillerEnum37)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum38) { + FillerEnum38FillerMember38 = 0, +}; + +/// Wrapper for FillerEnum38 to allow for nullability. +@interface FillerEnum38Box : NSObject +@property(nonatomic, assign) FillerEnum38 value; +- (instancetype)initWithValue:(FillerEnum38)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum39) { + FillerEnum39FillerMember39 = 0, +}; + +/// Wrapper for FillerEnum39 to allow for nullability. +@interface FillerEnum39Box : NSObject +@property(nonatomic, assign) FillerEnum39 value; +- (instancetype)initWithValue:(FillerEnum39)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum40) { + FillerEnum40FillerMember40 = 0, +}; + +/// Wrapper for FillerEnum40 to allow for nullability. +@interface FillerEnum40Box : NSObject +@property(nonatomic, assign) FillerEnum40 value; +- (instancetype)initWithValue:(FillerEnum40)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum41) { + FillerEnum41FillerMember41 = 0, +}; + +/// Wrapper for FillerEnum41 to allow for nullability. +@interface FillerEnum41Box : NSObject +@property(nonatomic, assign) FillerEnum41 value; +- (instancetype)initWithValue:(FillerEnum41)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum42) { + FillerEnum42FillerMember42 = 0, +}; + +/// Wrapper for FillerEnum42 to allow for nullability. +@interface FillerEnum42Box : NSObject +@property(nonatomic, assign) FillerEnum42 value; +- (instancetype)initWithValue:(FillerEnum42)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum43) { + FillerEnum43FillerMember43 = 0, +}; + +/// Wrapper for FillerEnum43 to allow for nullability. +@interface FillerEnum43Box : NSObject +@property(nonatomic, assign) FillerEnum43 value; +- (instancetype)initWithValue:(FillerEnum43)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum44) { + FillerEnum44FillerMember44 = 0, +}; + +/// Wrapper for FillerEnum44 to allow for nullability. +@interface FillerEnum44Box : NSObject +@property(nonatomic, assign) FillerEnum44 value; +- (instancetype)initWithValue:(FillerEnum44)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum45) { + FillerEnum45FillerMember45 = 0, +}; + +/// Wrapper for FillerEnum45 to allow for nullability. +@interface FillerEnum45Box : NSObject +@property(nonatomic, assign) FillerEnum45 value; +- (instancetype)initWithValue:(FillerEnum45)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum46) { + FillerEnum46FillerMember46 = 0, +}; + +/// Wrapper for FillerEnum46 to allow for nullability. +@interface FillerEnum46Box : NSObject +@property(nonatomic, assign) FillerEnum46 value; +- (instancetype)initWithValue:(FillerEnum46)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum47) { + FillerEnum47FillerMember47 = 0, +}; + +/// Wrapper for FillerEnum47 to allow for nullability. +@interface FillerEnum47Box : NSObject +@property(nonatomic, assign) FillerEnum47 value; +- (instancetype)initWithValue:(FillerEnum47)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum48) { + FillerEnum48FillerMember48 = 0, +}; + +/// Wrapper for FillerEnum48 to allow for nullability. +@interface FillerEnum48Box : NSObject +@property(nonatomic, assign) FillerEnum48 value; +- (instancetype)initWithValue:(FillerEnum48)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum49) { + FillerEnum49FillerMember49 = 0, +}; + +/// Wrapper for FillerEnum49 to allow for nullability. +@interface FillerEnum49Box : NSObject +@property(nonatomic, assign) FillerEnum49 value; +- (instancetype)initWithValue:(FillerEnum49)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum50) { + FillerEnum50FillerMember50 = 0, +}; + +/// Wrapper for FillerEnum50 to allow for nullability. +@interface FillerEnum50Box : NSObject +@property(nonatomic, assign) FillerEnum50 value; +- (instancetype)initWithValue:(FillerEnum50)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum51) { + FillerEnum51FillerMember51 = 0, +}; + +/// Wrapper for FillerEnum51 to allow for nullability. +@interface FillerEnum51Box : NSObject +@property(nonatomic, assign) FillerEnum51 value; +- (instancetype)initWithValue:(FillerEnum51)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum52) { + FillerEnum52FillerMember52 = 0, +}; + +/// Wrapper for FillerEnum52 to allow for nullability. +@interface FillerEnum52Box : NSObject +@property(nonatomic, assign) FillerEnum52 value; +- (instancetype)initWithValue:(FillerEnum52)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum53) { + FillerEnum53FillerMember53 = 0, +}; + +/// Wrapper for FillerEnum53 to allow for nullability. +@interface FillerEnum53Box : NSObject +@property(nonatomic, assign) FillerEnum53 value; +- (instancetype)initWithValue:(FillerEnum53)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum54) { + FillerEnum54FillerMember54 = 0, +}; + +/// Wrapper for FillerEnum54 to allow for nullability. +@interface FillerEnum54Box : NSObject +@property(nonatomic, assign) FillerEnum54 value; +- (instancetype)initWithValue:(FillerEnum54)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum55) { + FillerEnum55FillerMember55 = 0, +}; + +/// Wrapper for FillerEnum55 to allow for nullability. +@interface FillerEnum55Box : NSObject +@property(nonatomic, assign) FillerEnum55 value; +- (instancetype)initWithValue:(FillerEnum55)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum56) { + FillerEnum56FillerMember56 = 0, +}; + +/// Wrapper for FillerEnum56 to allow for nullability. +@interface FillerEnum56Box : NSObject +@property(nonatomic, assign) FillerEnum56 value; +- (instancetype)initWithValue:(FillerEnum56)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum57) { + FillerEnum57FillerMember57 = 0, +}; + +/// Wrapper for FillerEnum57 to allow for nullability. +@interface FillerEnum57Box : NSObject +@property(nonatomic, assign) FillerEnum57 value; +- (instancetype)initWithValue:(FillerEnum57)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum58) { + FillerEnum58FillerMember58 = 0, +}; + +/// Wrapper for FillerEnum58 to allow for nullability. +@interface FillerEnum58Box : NSObject +@property(nonatomic, assign) FillerEnum58 value; +- (instancetype)initWithValue:(FillerEnum58)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum59) { + FillerEnum59FillerMember59 = 0, +}; + +/// Wrapper for FillerEnum59 to allow for nullability. +@interface FillerEnum59Box : NSObject +@property(nonatomic, assign) FillerEnum59 value; +- (instancetype)initWithValue:(FillerEnum59)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum60) { + FillerEnum60FillerMember60 = 0, +}; + +/// Wrapper for FillerEnum60 to allow for nullability. +@interface FillerEnum60Box : NSObject +@property(nonatomic, assign) FillerEnum60 value; +- (instancetype)initWithValue:(FillerEnum60)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum61) { + FillerEnum61FillerMember61 = 0, +}; + +/// Wrapper for FillerEnum61 to allow for nullability. +@interface FillerEnum61Box : NSObject +@property(nonatomic, assign) FillerEnum61 value; +- (instancetype)initWithValue:(FillerEnum61)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum62) { + FillerEnum62FillerMember62 = 0, +}; + +/// Wrapper for FillerEnum62 to allow for nullability. +@interface FillerEnum62Box : NSObject +@property(nonatomic, assign) FillerEnum62 value; +- (instancetype)initWithValue:(FillerEnum62)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum63) { + FillerEnum63FillerMember63 = 0, +}; + +/// Wrapper for FillerEnum63 to allow for nullability. +@interface FillerEnum63Box : NSObject +@property(nonatomic, assign) FillerEnum63 value; +- (instancetype)initWithValue:(FillerEnum63)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum64) { + FillerEnum64FillerMember64 = 0, +}; + +/// Wrapper for FillerEnum64 to allow for nullability. +@interface FillerEnum64Box : NSObject +@property(nonatomic, assign) FillerEnum64 value; +- (instancetype)initWithValue:(FillerEnum64)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum65) { + FillerEnum65FillerMember65 = 0, +}; + +/// Wrapper for FillerEnum65 to allow for nullability. +@interface FillerEnum65Box : NSObject +@property(nonatomic, assign) FillerEnum65 value; +- (instancetype)initWithValue:(FillerEnum65)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum66) { + FillerEnum66FillerMember66 = 0, +}; + +/// Wrapper for FillerEnum66 to allow for nullability. +@interface FillerEnum66Box : NSObject +@property(nonatomic, assign) FillerEnum66 value; +- (instancetype)initWithValue:(FillerEnum66)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum67) { + FillerEnum67FillerMember67 = 0, +}; + +/// Wrapper for FillerEnum67 to allow for nullability. +@interface FillerEnum67Box : NSObject +@property(nonatomic, assign) FillerEnum67 value; +- (instancetype)initWithValue:(FillerEnum67)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum68) { + FillerEnum68FillerMember68 = 0, +}; + +/// Wrapper for FillerEnum68 to allow for nullability. +@interface FillerEnum68Box : NSObject +@property(nonatomic, assign) FillerEnum68 value; +- (instancetype)initWithValue:(FillerEnum68)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum69) { + FillerEnum69FillerMember69 = 0, +}; + +/// Wrapper for FillerEnum69 to allow for nullability. +@interface FillerEnum69Box : NSObject +@property(nonatomic, assign) FillerEnum69 value; +- (instancetype)initWithValue:(FillerEnum69)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum70) { + FillerEnum70FillerMember70 = 0, +}; + +/// Wrapper for FillerEnum70 to allow for nullability. +@interface FillerEnum70Box : NSObject +@property(nonatomic, assign) FillerEnum70 value; +- (instancetype)initWithValue:(FillerEnum70)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum71) { + FillerEnum71FillerMember71 = 0, +}; + +/// Wrapper for FillerEnum71 to allow for nullability. +@interface FillerEnum71Box : NSObject +@property(nonatomic, assign) FillerEnum71 value; +- (instancetype)initWithValue:(FillerEnum71)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum72) { + FillerEnum72FillerMember72 = 0, +}; + +/// Wrapper for FillerEnum72 to allow for nullability. +@interface FillerEnum72Box : NSObject +@property(nonatomic, assign) FillerEnum72 value; +- (instancetype)initWithValue:(FillerEnum72)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum73) { + FillerEnum73FillerMember73 = 0, +}; + +/// Wrapper for FillerEnum73 to allow for nullability. +@interface FillerEnum73Box : NSObject +@property(nonatomic, assign) FillerEnum73 value; +- (instancetype)initWithValue:(FillerEnum73)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum74) { + FillerEnum74FillerMember74 = 0, +}; + +/// Wrapper for FillerEnum74 to allow for nullability. +@interface FillerEnum74Box : NSObject +@property(nonatomic, assign) FillerEnum74 value; +- (instancetype)initWithValue:(FillerEnum74)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum75) { + FillerEnum75FillerMember75 = 0, +}; + +/// Wrapper for FillerEnum75 to allow for nullability. +@interface FillerEnum75Box : NSObject +@property(nonatomic, assign) FillerEnum75 value; +- (instancetype)initWithValue:(FillerEnum75)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum76) { + FillerEnum76FillerMember76 = 0, +}; + +/// Wrapper for FillerEnum76 to allow for nullability. +@interface FillerEnum76Box : NSObject +@property(nonatomic, assign) FillerEnum76 value; +- (instancetype)initWithValue:(FillerEnum76)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum77) { + FillerEnum77FillerMember77 = 0, +}; + +/// Wrapper for FillerEnum77 to allow for nullability. +@interface FillerEnum77Box : NSObject +@property(nonatomic, assign) FillerEnum77 value; +- (instancetype)initWithValue:(FillerEnum77)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum78) { + FillerEnum78FillerMember78 = 0, +}; + +/// Wrapper for FillerEnum78 to allow for nullability. +@interface FillerEnum78Box : NSObject +@property(nonatomic, assign) FillerEnum78 value; +- (instancetype)initWithValue:(FillerEnum78)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum79) { + FillerEnum79FillerMember79 = 0, +}; + +/// Wrapper for FillerEnum79 to allow for nullability. +@interface FillerEnum79Box : NSObject +@property(nonatomic, assign) FillerEnum79 value; +- (instancetype)initWithValue:(FillerEnum79)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum80) { + FillerEnum80FillerMember80 = 0, +}; + +/// Wrapper for FillerEnum80 to allow for nullability. +@interface FillerEnum80Box : NSObject +@property(nonatomic, assign) FillerEnum80 value; +- (instancetype)initWithValue:(FillerEnum80)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum81) { + FillerEnum81FillerMember81 = 0, +}; + +/// Wrapper for FillerEnum81 to allow for nullability. +@interface FillerEnum81Box : NSObject +@property(nonatomic, assign) FillerEnum81 value; +- (instancetype)initWithValue:(FillerEnum81)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum82) { + FillerEnum82FillerMember82 = 0, +}; + +/// Wrapper for FillerEnum82 to allow for nullability. +@interface FillerEnum82Box : NSObject +@property(nonatomic, assign) FillerEnum82 value; +- (instancetype)initWithValue:(FillerEnum82)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum83) { + FillerEnum83FillerMember83 = 0, +}; + +/// Wrapper for FillerEnum83 to allow for nullability. +@interface FillerEnum83Box : NSObject +@property(nonatomic, assign) FillerEnum83 value; +- (instancetype)initWithValue:(FillerEnum83)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum84) { + FillerEnum84FillerMember84 = 0, +}; + +/// Wrapper for FillerEnum84 to allow for nullability. +@interface FillerEnum84Box : NSObject +@property(nonatomic, assign) FillerEnum84 value; +- (instancetype)initWithValue:(FillerEnum84)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum85) { + FillerEnum85FillerMember85 = 0, +}; + +/// Wrapper for FillerEnum85 to allow for nullability. +@interface FillerEnum85Box : NSObject +@property(nonatomic, assign) FillerEnum85 value; +- (instancetype)initWithValue:(FillerEnum85)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum86) { + FillerEnum86FillerMember86 = 0, +}; + +/// Wrapper for FillerEnum86 to allow for nullability. +@interface FillerEnum86Box : NSObject +@property(nonatomic, assign) FillerEnum86 value; +- (instancetype)initWithValue:(FillerEnum86)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum87) { + FillerEnum87FillerMember87 = 0, +}; + +/// Wrapper for FillerEnum87 to allow for nullability. +@interface FillerEnum87Box : NSObject +@property(nonatomic, assign) FillerEnum87 value; +- (instancetype)initWithValue:(FillerEnum87)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum88) { + FillerEnum88FillerMember88 = 0, +}; + +/// Wrapper for FillerEnum88 to allow for nullability. +@interface FillerEnum88Box : NSObject +@property(nonatomic, assign) FillerEnum88 value; +- (instancetype)initWithValue:(FillerEnum88)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum89) { + FillerEnum89FillerMember89 = 0, +}; + +/// Wrapper for FillerEnum89 to allow for nullability. +@interface FillerEnum89Box : NSObject +@property(nonatomic, assign) FillerEnum89 value; +- (instancetype)initWithValue:(FillerEnum89)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum90) { + FillerEnum90FillerMember90 = 0, +}; + +/// Wrapper for FillerEnum90 to allow for nullability. +@interface FillerEnum90Box : NSObject +@property(nonatomic, assign) FillerEnum90 value; +- (instancetype)initWithValue:(FillerEnum90)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum91) { + FillerEnum91FillerMember91 = 0, +}; + +/// Wrapper for FillerEnum91 to allow for nullability. +@interface FillerEnum91Box : NSObject +@property(nonatomic, assign) FillerEnum91 value; +- (instancetype)initWithValue:(FillerEnum91)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum92) { + FillerEnum92FillerMember92 = 0, +}; + +/// Wrapper for FillerEnum92 to allow for nullability. +@interface FillerEnum92Box : NSObject +@property(nonatomic, assign) FillerEnum92 value; +- (instancetype)initWithValue:(FillerEnum92)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum93) { + FillerEnum93FillerMember93 = 0, +}; + +/// Wrapper for FillerEnum93 to allow for nullability. +@interface FillerEnum93Box : NSObject +@property(nonatomic, assign) FillerEnum93 value; +- (instancetype)initWithValue:(FillerEnum93)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum94) { + FillerEnum94FillerMember94 = 0, +}; + +/// Wrapper for FillerEnum94 to allow for nullability. +@interface FillerEnum94Box : NSObject +@property(nonatomic, assign) FillerEnum94 value; +- (instancetype)initWithValue:(FillerEnum94)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum95) { + FillerEnum95FillerMember95 = 0, +}; + +/// Wrapper for FillerEnum95 to allow for nullability. +@interface FillerEnum95Box : NSObject +@property(nonatomic, assign) FillerEnum95 value; +- (instancetype)initWithValue:(FillerEnum95)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum96) { + FillerEnum96FillerMember96 = 0, +}; + +/// Wrapper for FillerEnum96 to allow for nullability. +@interface FillerEnum96Box : NSObject +@property(nonatomic, assign) FillerEnum96 value; +- (instancetype)initWithValue:(FillerEnum96)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum97) { + FillerEnum97FillerMember97 = 0, +}; + +/// Wrapper for FillerEnum97 to allow for nullability. +@interface FillerEnum97Box : NSObject +@property(nonatomic, assign) FillerEnum97 value; +- (instancetype)initWithValue:(FillerEnum97)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum98) { + FillerEnum98FillerMember98 = 0, +}; + +/// Wrapper for FillerEnum98 to allow for nullability. +@interface FillerEnum98Box : NSObject +@property(nonatomic, assign) FillerEnum98 value; +- (instancetype)initWithValue:(FillerEnum98)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum99) { + FillerEnum99FillerMember99 = 0, +}; + +/// Wrapper for FillerEnum99 to allow for nullability. +@interface FillerEnum99Box : NSObject +@property(nonatomic, assign) FillerEnum99 value; +- (instancetype)initWithValue:(FillerEnum99)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum100) { + FillerEnum100FillerMember100 = 0, +}; + +/// Wrapper for FillerEnum100 to allow for nullability. +@interface FillerEnum100Box : NSObject +@property(nonatomic, assign) FillerEnum100 value; +- (instancetype)initWithValue:(FillerEnum100)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum101) { + FillerEnum101FillerMember101 = 0, +}; + +/// Wrapper for FillerEnum101 to allow for nullability. +@interface FillerEnum101Box : NSObject +@property(nonatomic, assign) FillerEnum101 value; +- (instancetype)initWithValue:(FillerEnum101)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum102) { + FillerEnum102FillerMember102 = 0, +}; + +/// Wrapper for FillerEnum102 to allow for nullability. +@interface FillerEnum102Box : NSObject +@property(nonatomic, assign) FillerEnum102 value; +- (instancetype)initWithValue:(FillerEnum102)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum103) { + FillerEnum103FillerMember103 = 0, +}; + +/// Wrapper for FillerEnum103 to allow for nullability. +@interface FillerEnum103Box : NSObject +@property(nonatomic, assign) FillerEnum103 value; +- (instancetype)initWithValue:(FillerEnum103)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum104) { + FillerEnum104FillerMember104 = 0, +}; + +/// Wrapper for FillerEnum104 to allow for nullability. +@interface FillerEnum104Box : NSObject +@property(nonatomic, assign) FillerEnum104 value; +- (instancetype)initWithValue:(FillerEnum104)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum105) { + FillerEnum105FillerMember105 = 0, +}; + +/// Wrapper for FillerEnum105 to allow for nullability. +@interface FillerEnum105Box : NSObject +@property(nonatomic, assign) FillerEnum105 value; +- (instancetype)initWithValue:(FillerEnum105)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum106) { + FillerEnum106FillerMember106 = 0, +}; + +/// Wrapper for FillerEnum106 to allow for nullability. +@interface FillerEnum106Box : NSObject +@property(nonatomic, assign) FillerEnum106 value; +- (instancetype)initWithValue:(FillerEnum106)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum107) { + FillerEnum107FillerMember107 = 0, +}; + +/// Wrapper for FillerEnum107 to allow for nullability. +@interface FillerEnum107Box : NSObject +@property(nonatomic, assign) FillerEnum107 value; +- (instancetype)initWithValue:(FillerEnum107)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum108) { + FillerEnum108FillerMember108 = 0, +}; + +/// Wrapper for FillerEnum108 to allow for nullability. +@interface FillerEnum108Box : NSObject +@property(nonatomic, assign) FillerEnum108 value; +- (instancetype)initWithValue:(FillerEnum108)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum109) { + FillerEnum109FillerMember109 = 0, +}; + +/// Wrapper for FillerEnum109 to allow for nullability. +@interface FillerEnum109Box : NSObject +@property(nonatomic, assign) FillerEnum109 value; +- (instancetype)initWithValue:(FillerEnum109)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum110) { + FillerEnum110FillerMember110 = 0, +}; + +/// Wrapper for FillerEnum110 to allow for nullability. +@interface FillerEnum110Box : NSObject +@property(nonatomic, assign) FillerEnum110 value; +- (instancetype)initWithValue:(FillerEnum110)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum111) { + FillerEnum111FillerMember111 = 0, +}; + +/// Wrapper for FillerEnum111 to allow for nullability. +@interface FillerEnum111Box : NSObject +@property(nonatomic, assign) FillerEnum111 value; +- (instancetype)initWithValue:(FillerEnum111)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum112) { + FillerEnum112FillerMember112 = 0, +}; + +/// Wrapper for FillerEnum112 to allow for nullability. +@interface FillerEnum112Box : NSObject +@property(nonatomic, assign) FillerEnum112 value; +- (instancetype)initWithValue:(FillerEnum112)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum113) { + FillerEnum113FillerMember113 = 0, +}; + +/// Wrapper for FillerEnum113 to allow for nullability. +@interface FillerEnum113Box : NSObject +@property(nonatomic, assign) FillerEnum113 value; +- (instancetype)initWithValue:(FillerEnum113)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum114) { + FillerEnum114FillerMember114 = 0, +}; + +/// Wrapper for FillerEnum114 to allow for nullability. +@interface FillerEnum114Box : NSObject +@property(nonatomic, assign) FillerEnum114 value; +- (instancetype)initWithValue:(FillerEnum114)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum115) { + FillerEnum115FillerMember115 = 0, +}; + +/// Wrapper for FillerEnum115 to allow for nullability. +@interface FillerEnum115Box : NSObject +@property(nonatomic, assign) FillerEnum115 value; +- (instancetype)initWithValue:(FillerEnum115)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum116) { + FillerEnum116FillerMember116 = 0, +}; + +/// Wrapper for FillerEnum116 to allow for nullability. +@interface FillerEnum116Box : NSObject +@property(nonatomic, assign) FillerEnum116 value; +- (instancetype)initWithValue:(FillerEnum116)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum117) { + FillerEnum117FillerMember117 = 0, +}; + +/// Wrapper for FillerEnum117 to allow for nullability. +@interface FillerEnum117Box : NSObject +@property(nonatomic, assign) FillerEnum117 value; +- (instancetype)initWithValue:(FillerEnum117)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum118) { + FillerEnum118FillerMember118 = 0, +}; + +/// Wrapper for FillerEnum118 to allow for nullability. +@interface FillerEnum118Box : NSObject +@property(nonatomic, assign) FillerEnum118 value; +- (instancetype)initWithValue:(FillerEnum118)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum119) { + FillerEnum119FillerMember119 = 0, +}; + +/// Wrapper for FillerEnum119 to allow for nullability. +@interface FillerEnum119Box : NSObject +@property(nonatomic, assign) FillerEnum119 value; +- (instancetype)initWithValue:(FillerEnum119)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum120) { + FillerEnum120FillerMember120 = 0, +}; + +/// Wrapper for FillerEnum120 to allow for nullability. +@interface FillerEnum120Box : NSObject +@property(nonatomic, assign) FillerEnum120 value; +- (instancetype)initWithValue:(FillerEnum120)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum121) { + FillerEnum121FillerMember121 = 0, +}; + +/// Wrapper for FillerEnum121 to allow for nullability. +@interface FillerEnum121Box : NSObject +@property(nonatomic, assign) FillerEnum121 value; +- (instancetype)initWithValue:(FillerEnum121)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum122) { + FillerEnum122FillerMember122 = 0, +}; + +/// Wrapper for FillerEnum122 to allow for nullability. +@interface FillerEnum122Box : NSObject +@property(nonatomic, assign) FillerEnum122 value; +- (instancetype)initWithValue:(FillerEnum122)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum123) { + FillerEnum123FillerMember123 = 0, +}; + +/// Wrapper for FillerEnum123 to allow for nullability. +@interface FillerEnum123Box : NSObject +@property(nonatomic, assign) FillerEnum123 value; +- (instancetype)initWithValue:(FillerEnum123)value; +@end + +typedef NS_ENUM(NSUInteger, FillerEnum124) { + FillerEnum124FillerMember124 = 0, +}; + +/// Wrapper for FillerEnum124 to allow for nullability. +@interface FillerEnum124Box : NSObject +@property(nonatomic, assign) FillerEnum124 value; +- (instancetype)initWithValue:(FillerEnum124)value; +@end + typedef NS_ENUM(NSUInteger, AnEnum) { AnEnumOne = 0, AnEnumTwo = 1, @@ -28,6 +1278,16 @@ typedef NS_ENUM(NSUInteger, AnEnum) { - (instancetype)initWithValue:(AnEnum)value; @end +typedef NS_ENUM(NSUInteger, AnotherEnum) { + AnotherEnumJustInCase = 0, +}; + +/// Wrapper for AnotherEnum to allow for nullability. +@interface AnotherEnumBox : NSObject +@property(nonatomic, assign) AnotherEnum value; +- (instancetype)initWithValue:(AnotherEnum)value; +@end + @class AllTypes; @class AllNullableTypes; @class AllNullableTypesWithoutRecursion; @@ -47,6 +1307,7 @@ typedef NS_ENUM(NSUInteger, AnEnum) { a8ByteArray:(FlutterStandardTypedData *)a8ByteArray aFloatArray:(FlutterStandardTypedData *)aFloatArray anEnum:(AnEnum)anEnum + anotherEnum:(AnotherEnum)anotherEnum aString:(NSString *)aString anObject:(id)anObject list:(NSArray *)list @@ -64,6 +1325,7 @@ typedef NS_ENUM(NSUInteger, AnEnum) { @property(nonatomic, strong) FlutterStandardTypedData *a8ByteArray; @property(nonatomic, strong) FlutterStandardTypedData *aFloatArray; @property(nonatomic, assign) AnEnum anEnum; +@property(nonatomic, assign) AnotherEnum anotherEnum; @property(nonatomic, copy) NSString *aString; @property(nonatomic, strong) id anObject; @property(nonatomic, copy) NSArray *list; @@ -89,6 +1351,7 @@ typedef NS_ENUM(NSUInteger, AnEnum) { (nullable NSDictionary *)nullableMapWithAnnotations nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum aNullableString:(nullable NSString *)aNullableString aNullableObject:(nullable id)aNullableObject allNullableTypes:(nullable AllNullableTypes *)allNullableTypes @@ -112,6 +1375,7 @@ typedef NS_ENUM(NSUInteger, AnEnum) { NSDictionary *nullableMapWithAnnotations; @property(nonatomic, copy, nullable) NSDictionary *nullableMapWithObject; @property(nonatomic, strong, nullable) AnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) AnotherEnumBox *anotherNullableEnum; @property(nonatomic, copy, nullable) NSString *aNullableString; @property(nonatomic, strong, nullable) id aNullableObject; @property(nonatomic, strong, nullable) AllNullableTypes *allNullableTypes; @@ -141,6 +1405,7 @@ typedef NS_ENUM(NSUInteger, AnEnum) { (nullable NSDictionary *)nullableMapWithAnnotations nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum aNullableString:(nullable NSString *)aNullableString aNullableObject:(nullable id)aNullableObject list:(nullable NSArray *)list @@ -162,6 +1427,7 @@ typedef NS_ENUM(NSUInteger, AnEnum) { NSDictionary *nullableMapWithAnnotations; @property(nonatomic, copy, nullable) NSDictionary *nullableMapWithObject; @property(nonatomic, strong, nullable) AnEnumBox *aNullableEnum; +@property(nonatomic, strong, nullable) AnotherEnumBox *anotherNullableEnum; @property(nonatomic, copy, nullable) NSString *aNullableString; @property(nonatomic, strong, nullable) id aNullableObject; @property(nonatomic, copy, nullable) NSArray *list; @@ -196,6 +1462,14 @@ typedef NS_ENUM(NSUInteger, AnEnum) { @property(nonatomic, copy, nullable) NSArray *testList; @end +@interface __pigeon_CodecOverflow : NSObject +/// `init` unavailable to enforce nonnull fields, see the `make` class method. +- (instancetype)init NS_UNAVAILABLE; ++ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped; +@property(nonatomic, assign) NSInteger type; +@property(nonatomic, strong, nullable) id wrapped; +@end + /// The codec used by all APIs. NSObject *GetCoreTestsCodec(void); @@ -261,6 +1535,11 @@ NSObject *GetCoreTestsCodec(void); /// /// @return `nil` only when `error != nil`. - (AnEnumBox *_Nullable)echoEnum:(AnEnum)anEnum error:(FlutterError *_Nullable *_Nonnull)error; +/// Returns the passed enum to test serialization and deserialization. +/// +/// @return `nil` only when `error != nil`. +- (AnotherEnumBox *_Nullable)echoAnotherEnum:(AnotherEnum)anotherEnum + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns the default string. /// /// @return `nil` only when `error != nil`. @@ -338,6 +1617,8 @@ NSObject *GetCoreTestsCodec(void); error:(FlutterError *_Nullable *_Nonnull)error; - (AnEnumBox *_Nullable)echoNullableEnum:(nullable AnEnumBox *)anEnumBoxed error:(FlutterError *_Nullable *_Nonnull)error; +- (AnotherEnumBox *_Nullable)echoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + error:(FlutterError *_Nullable *_Nonnull)error; /// Returns passed in int. - (nullable NSNumber *)echoOptionalNullableInt:(nullable NSNumber *)aNullableInt error:(FlutterError *_Nullable *_Nonnull)error; @@ -376,6 +1657,10 @@ NSObject *GetCoreTestsCodec(void); /// Returns the passed enum, to test asynchronous serialization and deserialization. - (void)echoAsyncEnum:(AnEnum)anEnum completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAnotherAsyncEnum:(AnotherEnum)anotherEnum + completion: + (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async function returning a value. - (void)throwAsyncErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; /// Responds with an error from an async void function. @@ -426,6 +1711,10 @@ NSObject *GetCoreTestsCodec(void); /// Returns the passed enum, to test asynchronous serialization and deserialization. - (void)echoAsyncNullableEnum:(nullable AnEnumBox *)anEnumBoxed completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum, to test asynchronous serialization and deserialization. +- (void)echoAnotherAsyncNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; - (void)callFlutterNoopWithCompletion:(void (^)(FlutterError *_Nullable))completion; - (void)callFlutterThrowErrorWithCompletion:(void (^)(id _Nullable, FlutterError *_Nullable))completion; @@ -473,6 +1762,9 @@ NSObject *GetCoreTestsCodec(void); FlutterError *_Nullable))completion; - (void)callFlutterEchoEnum:(AnEnum)anEnum completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherEnum:(AnotherEnum)anotherEnum + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; - (void)callFlutterEchoNullableBool:(nullable NSNumber *)aBool completion: (void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; @@ -497,6 +1789,9 @@ NSObject *GetCoreTestsCodec(void); - (void)callFlutterEchoNullableEnum:(nullable AnEnumBox *)anEnumBoxed completion: (void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +- (void)callFlutterEchoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + completion:(void (^)(AnotherEnumBox *_Nullable, + FlutterError *_Nullable))completion; - (void)callFlutterSmallApiEchoString:(NSString *)aString completion: (void (^)(NSString *_Nullable, FlutterError *_Nullable))completion; @@ -577,6 +1872,9 @@ extern void SetUpHostIntegrationCoreApiWithSuffix(id bin /// Returns the passed enum to test serialization and deserialization. - (void)echoEnum:(AnEnum)anEnum completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoAnotherEnum:(AnotherEnum)anotherEnum + completion:(void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// Returns the passed boolean, to test serialization and deserialization. - (void)echoNullableBool:(nullable NSNumber *)aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion; @@ -603,6 +1901,10 @@ extern void SetUpHostIntegrationCoreApiWithSuffix(id bin /// Returns the passed enum to test serialization and deserialization. - (void)echoNullableEnum:(nullable AnEnumBox *)anEnumBoxed completion:(void (^)(AnEnumBox *_Nullable, FlutterError *_Nullable))completion; +/// Returns the passed enum to test serialization and deserialization. +- (void)echoAnotherNullableEnum:(nullable AnotherEnumBox *)anotherEnumBoxed + completion: + (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion; /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion; diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m index 19301cbc418..a8fcda96091 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m @@ -40,8 +40,8 @@ static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { return (result == [NSNull null]) ? nil : result; } -@implementation AnEnumBox -- (instancetype)initWithValue:(AnEnum)value { +@implementation FillerEnum0Box +- (instancetype)initWithValue:(FillerEnum0)value { self = [super init]; if (self) { _value = value; @@ -50,426 +50,3001 @@ - (instancetype)initWithValue:(AnEnum)value { } @end -@interface AllTypes () -+ (AllTypes *)fromList:(NSArray *)list; -+ (nullable AllTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FillerEnum1Box +- (instancetype)initWithValue:(FillerEnum1)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface AllNullableTypes () -+ (AllNullableTypes *)fromList:(NSArray *)list; -+ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FillerEnum2Box +- (instancetype)initWithValue:(FillerEnum2)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface AllNullableTypesWithoutRecursion () -+ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; -+ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FillerEnum3Box +- (instancetype)initWithValue:(FillerEnum3)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface AllClassesWrapper () -+ (AllClassesWrapper *)fromList:(NSArray *)list; -+ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FillerEnum4Box +- (instancetype)initWithValue:(FillerEnum4)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@interface TestMessage () -+ (TestMessage *)fromList:(NSArray *)list; -+ (nullable TestMessage *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; +@implementation FillerEnum5Box +- (instancetype)initWithValue:(FillerEnum5)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@implementation AllTypes -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(AnEnum)anEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - map:(NSDictionary *)map { - AllTypes *pigeonResult = [[AllTypes alloc] init]; - pigeonResult.aBool = aBool; - pigeonResult.anInt = anInt; - pigeonResult.anInt64 = anInt64; - pigeonResult.aDouble = aDouble; - pigeonResult.aByteArray = aByteArray; - pigeonResult.a4ByteArray = a4ByteArray; - pigeonResult.a8ByteArray = a8ByteArray; - pigeonResult.aFloatArray = aFloatArray; - pigeonResult.anEnum = anEnum; - pigeonResult.aString = aString; - pigeonResult.anObject = anObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; -} -+ (AllTypes *)fromList:(NSArray *)list { - AllTypes *pigeonResult = [[AllTypes alloc] init]; - pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; - pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; - pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; - pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; - pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); - AnEnumBox *enumBox = GetNullableObjectAtIndex(list, 8); - pigeonResult.anEnum = enumBox.value; - pigeonResult.aString = GetNullableObjectAtIndex(list, 9); - pigeonResult.anObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.list = GetNullableObjectAtIndex(list, 11); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 12); - pigeonResult.intList = GetNullableObjectAtIndex(list, 13); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 14); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 15); - pigeonResult.map = GetNullableObjectAtIndex(list, 16); - return pigeonResult; -} -+ (nullable AllTypes *)nullableFromList:(NSArray *)list { - return (list) ? [AllTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - @(self.aBool), - @(self.anInt), - @(self.anInt64), - @(self.aDouble), - self.aByteArray ?: [NSNull null], - self.a4ByteArray ?: [NSNull null], - self.a8ByteArray ?: [NSNull null], - self.aFloatArray ?: [NSNull null], - [[AnEnumBox alloc] initWithValue:self.anEnum], - self.aString ?: [NSNull null], - self.anObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; +@implementation FillerEnum6Box +- (instancetype)initWithValue:(FillerEnum6)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation AllNullableTypes -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable AllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - nestedClassList:(nullable NSArray *)nestedClassList - map:(nullable NSDictionary *)map { - AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.nestedClassList = nestedClassList; - pigeonResult.map = map; - return pigeonResult; +@implementation FillerEnum7Box +- (instancetype)initWithValue:(FillerEnum7)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (AllNullableTypes *)fromList:(NSArray *)list { - AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 13); - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 14); - pigeonResult.list = GetNullableObjectAtIndex(list, 15); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); - pigeonResult.intList = GetNullableObjectAtIndex(list, 17); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); - pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 20); - pigeonResult.map = GetNullableObjectAtIndex(list, 21); - return pigeonResult; +@end + +@implementation FillerEnum8Box +- (instancetype)initWithValue:(FillerEnum8)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list { - return (list) ? [AllNullableTypes fromList:list] : nil; +@end + +@implementation FillerEnum9Box +- (instancetype)initWithValue:(FillerEnum9)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.allNullableTypes ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.nestedClassList ?: [NSNull null], - self.map ?: [NSNull null], - ]; +@end + +@implementation FillerEnum10Box +- (instancetype)initWithValue:(FillerEnum10)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation AllNullableTypesWithoutRecursion -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - map:(nullable NSDictionary *)map { - AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; +@implementation FillerEnum11Box +- (instancetype)initWithValue:(FillerEnum11)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { - AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 13); - pigeonResult.list = GetNullableObjectAtIndex(list, 14); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 15); - pigeonResult.intList = GetNullableObjectAtIndex(list, 16); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 17); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 18); - pigeonResult.map = GetNullableObjectAtIndex(list, 19); - return pigeonResult; +@end + +@implementation FillerEnum12Box +- (instancetype)initWithValue:(FillerEnum12)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { - return (list) ? [AllNullableTypesWithoutRecursion fromList:list] : nil; +@end + +@implementation FillerEnum13Box +- (instancetype)initWithValue:(FillerEnum13)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; +@end + +@implementation FillerEnum14Box +- (instancetype)initWithValue:(FillerEnum14)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation AllClassesWrapper -+ (instancetype)makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable AllTypes *)allTypes { - AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; - pigeonResult.allTypes = allTypes; - return pigeonResult; +@implementation FillerEnum15Box +- (instancetype)initWithValue:(FillerEnum15)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (AllClassesWrapper *)fromList:(NSArray *)list { - AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); - pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); - pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); - return pigeonResult; +@end + +@implementation FillerEnum16Box +- (instancetype)initWithValue:(FillerEnum16)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list { - return (list) ? [AllClassesWrapper fromList:list] : nil; +@end + +@implementation FillerEnum17Box +- (instancetype)initWithValue:(FillerEnum17)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.allNullableTypes ?: [NSNull null], - self.allNullableTypesWithoutRecursion ?: [NSNull null], - self.allTypes ?: [NSNull null], - ]; +@end + +@implementation FillerEnum18Box +- (instancetype)initWithValue:(FillerEnum18)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@implementation TestMessage -+ (instancetype)makeWithTestList:(nullable NSArray *)testList { - TestMessage *pigeonResult = [[TestMessage alloc] init]; - pigeonResult.testList = testList; - return pigeonResult; +@implementation FillerEnum19Box +- (instancetype)initWithValue:(FillerEnum19)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (TestMessage *)fromList:(NSArray *)list { - TestMessage *pigeonResult = [[TestMessage alloc] init]; - pigeonResult.testList = GetNullableObjectAtIndex(list, 0); - return pigeonResult; +@end + +@implementation FillerEnum20Box +- (instancetype)initWithValue:(FillerEnum20)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -+ (nullable TestMessage *)nullableFromList:(NSArray *)list { - return (list) ? [TestMessage fromList:list] : nil; +@end + +@implementation FillerEnum21Box +- (instancetype)initWithValue:(FillerEnum21)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } -- (NSArray *)toList { - return @[ - self.testList ?: [NSNull null], - ]; +@end + +@implementation FillerEnum22Box +- (instancetype)initWithValue:(FillerEnum22)value { + self = [super init]; + if (self) { + _value = value; + } + return self; } @end -@interface CoreTestsPigeonCodecReader : FlutterStandardReader +@implementation FillerEnum23Box +- (instancetype)initWithValue:(FillerEnum23)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@implementation CoreTestsPigeonCodecReader -- (nullable id)readValueOfType:(UInt8)type { - switch (type) { - case 129: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 130: - return [AllTypes fromList:[self readValue]]; - case 131: - return [AllNullableTypes fromList:[self readValue]]; - case 132: - return [AllNullableTypesWithoutRecursion fromList:[self readValue]]; - case 133: - return [AllClassesWrapper fromList:[self readValue]]; - case 134: - return [TestMessage fromList:[self readValue]]; - default: - return [super readValueOfType:type]; + +@implementation FillerEnum24Box +- (instancetype)initWithValue:(FillerEnum24)value { + self = [super init]; + if (self) { + _value = value; } + return self; } @end -@interface CoreTestsPigeonCodecWriter : FlutterStandardWriter +@implementation FillerEnum25Box +- (instancetype)initWithValue:(FillerEnum25)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} @end -@implementation CoreTestsPigeonCodecWriter -- (void)writeValue:(id)value { - if ([value isKindOfClass:[AnEnumBox class]]) { + +@implementation FillerEnum26Box +- (instancetype)initWithValue:(FillerEnum26)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum27Box +- (instancetype)initWithValue:(FillerEnum27)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum28Box +- (instancetype)initWithValue:(FillerEnum28)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum29Box +- (instancetype)initWithValue:(FillerEnum29)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum30Box +- (instancetype)initWithValue:(FillerEnum30)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum31Box +- (instancetype)initWithValue:(FillerEnum31)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum32Box +- (instancetype)initWithValue:(FillerEnum32)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum33Box +- (instancetype)initWithValue:(FillerEnum33)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum34Box +- (instancetype)initWithValue:(FillerEnum34)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum35Box +- (instancetype)initWithValue:(FillerEnum35)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum36Box +- (instancetype)initWithValue:(FillerEnum36)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum37Box +- (instancetype)initWithValue:(FillerEnum37)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum38Box +- (instancetype)initWithValue:(FillerEnum38)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum39Box +- (instancetype)initWithValue:(FillerEnum39)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum40Box +- (instancetype)initWithValue:(FillerEnum40)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum41Box +- (instancetype)initWithValue:(FillerEnum41)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum42Box +- (instancetype)initWithValue:(FillerEnum42)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum43Box +- (instancetype)initWithValue:(FillerEnum43)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum44Box +- (instancetype)initWithValue:(FillerEnum44)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum45Box +- (instancetype)initWithValue:(FillerEnum45)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum46Box +- (instancetype)initWithValue:(FillerEnum46)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum47Box +- (instancetype)initWithValue:(FillerEnum47)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum48Box +- (instancetype)initWithValue:(FillerEnum48)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum49Box +- (instancetype)initWithValue:(FillerEnum49)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum50Box +- (instancetype)initWithValue:(FillerEnum50)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum51Box +- (instancetype)initWithValue:(FillerEnum51)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum52Box +- (instancetype)initWithValue:(FillerEnum52)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum53Box +- (instancetype)initWithValue:(FillerEnum53)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum54Box +- (instancetype)initWithValue:(FillerEnum54)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum55Box +- (instancetype)initWithValue:(FillerEnum55)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum56Box +- (instancetype)initWithValue:(FillerEnum56)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum57Box +- (instancetype)initWithValue:(FillerEnum57)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum58Box +- (instancetype)initWithValue:(FillerEnum58)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum59Box +- (instancetype)initWithValue:(FillerEnum59)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum60Box +- (instancetype)initWithValue:(FillerEnum60)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum61Box +- (instancetype)initWithValue:(FillerEnum61)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum62Box +- (instancetype)initWithValue:(FillerEnum62)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum63Box +- (instancetype)initWithValue:(FillerEnum63)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum64Box +- (instancetype)initWithValue:(FillerEnum64)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum65Box +- (instancetype)initWithValue:(FillerEnum65)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum66Box +- (instancetype)initWithValue:(FillerEnum66)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum67Box +- (instancetype)initWithValue:(FillerEnum67)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum68Box +- (instancetype)initWithValue:(FillerEnum68)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum69Box +- (instancetype)initWithValue:(FillerEnum69)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum70Box +- (instancetype)initWithValue:(FillerEnum70)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum71Box +- (instancetype)initWithValue:(FillerEnum71)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum72Box +- (instancetype)initWithValue:(FillerEnum72)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum73Box +- (instancetype)initWithValue:(FillerEnum73)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum74Box +- (instancetype)initWithValue:(FillerEnum74)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum75Box +- (instancetype)initWithValue:(FillerEnum75)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum76Box +- (instancetype)initWithValue:(FillerEnum76)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum77Box +- (instancetype)initWithValue:(FillerEnum77)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum78Box +- (instancetype)initWithValue:(FillerEnum78)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum79Box +- (instancetype)initWithValue:(FillerEnum79)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum80Box +- (instancetype)initWithValue:(FillerEnum80)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum81Box +- (instancetype)initWithValue:(FillerEnum81)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum82Box +- (instancetype)initWithValue:(FillerEnum82)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum83Box +- (instancetype)initWithValue:(FillerEnum83)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum84Box +- (instancetype)initWithValue:(FillerEnum84)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum85Box +- (instancetype)initWithValue:(FillerEnum85)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum86Box +- (instancetype)initWithValue:(FillerEnum86)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum87Box +- (instancetype)initWithValue:(FillerEnum87)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum88Box +- (instancetype)initWithValue:(FillerEnum88)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum89Box +- (instancetype)initWithValue:(FillerEnum89)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum90Box +- (instancetype)initWithValue:(FillerEnum90)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum91Box +- (instancetype)initWithValue:(FillerEnum91)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum92Box +- (instancetype)initWithValue:(FillerEnum92)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum93Box +- (instancetype)initWithValue:(FillerEnum93)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum94Box +- (instancetype)initWithValue:(FillerEnum94)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum95Box +- (instancetype)initWithValue:(FillerEnum95)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum96Box +- (instancetype)initWithValue:(FillerEnum96)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum97Box +- (instancetype)initWithValue:(FillerEnum97)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum98Box +- (instancetype)initWithValue:(FillerEnum98)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum99Box +- (instancetype)initWithValue:(FillerEnum99)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum100Box +- (instancetype)initWithValue:(FillerEnum100)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum101Box +- (instancetype)initWithValue:(FillerEnum101)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum102Box +- (instancetype)initWithValue:(FillerEnum102)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum103Box +- (instancetype)initWithValue:(FillerEnum103)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum104Box +- (instancetype)initWithValue:(FillerEnum104)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum105Box +- (instancetype)initWithValue:(FillerEnum105)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum106Box +- (instancetype)initWithValue:(FillerEnum106)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum107Box +- (instancetype)initWithValue:(FillerEnum107)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum108Box +- (instancetype)initWithValue:(FillerEnum108)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum109Box +- (instancetype)initWithValue:(FillerEnum109)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum110Box +- (instancetype)initWithValue:(FillerEnum110)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum111Box +- (instancetype)initWithValue:(FillerEnum111)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum112Box +- (instancetype)initWithValue:(FillerEnum112)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum113Box +- (instancetype)initWithValue:(FillerEnum113)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum114Box +- (instancetype)initWithValue:(FillerEnum114)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum115Box +- (instancetype)initWithValue:(FillerEnum115)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum116Box +- (instancetype)initWithValue:(FillerEnum116)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum117Box +- (instancetype)initWithValue:(FillerEnum117)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum118Box +- (instancetype)initWithValue:(FillerEnum118)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum119Box +- (instancetype)initWithValue:(FillerEnum119)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum120Box +- (instancetype)initWithValue:(FillerEnum120)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum121Box +- (instancetype)initWithValue:(FillerEnum121)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum122Box +- (instancetype)initWithValue:(FillerEnum122)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum123Box +- (instancetype)initWithValue:(FillerEnum123)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation FillerEnum124Box +- (instancetype)initWithValue:(FillerEnum124)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation AnEnumBox +- (instancetype)initWithValue:(AnEnum)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@implementation AnotherEnumBox +- (instancetype)initWithValue:(AnotherEnum)value { + self = [super init]; + if (self) { + _value = value; + } + return self; +} +@end + +@interface AllTypes () ++ (AllTypes *)fromList:(NSArray *)list; ++ (nullable AllTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface AllNullableTypes () ++ (AllNullableTypes *)fromList:(NSArray *)list; ++ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface AllNullableTypesWithoutRecursion () ++ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; ++ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface AllClassesWrapper () ++ (AllClassesWrapper *)fromList:(NSArray *)list; ++ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@interface TestMessage () ++ (TestMessage *)fromList:(NSArray *)list; ++ (nullable TestMessage *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@implementation AllTypes ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(AnEnum)anEnum + anotherEnum:(AnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + map:(NSDictionary *)map { + AllTypes *pigeonResult = [[AllTypes alloc] init]; + pigeonResult.aBool = aBool; + pigeonResult.anInt = anInt; + pigeonResult.anInt64 = anInt64; + pigeonResult.aDouble = aDouble; + pigeonResult.aByteArray = aByteArray; + pigeonResult.a4ByteArray = a4ByteArray; + pigeonResult.a8ByteArray = a8ByteArray; + pigeonResult.aFloatArray = aFloatArray; + pigeonResult.anEnum = anEnum; + pigeonResult.anotherEnum = anotherEnum; + pigeonResult.aString = aString; + pigeonResult.anObject = anObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; +} ++ (AllTypes *)fromList:(NSArray *)list { + AllTypes *pigeonResult = [[AllTypes alloc] init]; + pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; + pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; + pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; + pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; + pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); + AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(list, 8); + pigeonResult.anEnum = anAnEnumBox.value; + AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(list, 9); + pigeonResult.anotherEnum = anAnotherEnumBox.value; + pigeonResult.aString = GetNullableObjectAtIndex(list, 10); + pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); + pigeonResult.list = GetNullableObjectAtIndex(list, 12); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); + pigeonResult.intList = GetNullableObjectAtIndex(list, 14); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); + pigeonResult.map = GetNullableObjectAtIndex(list, 17); + return pigeonResult; +} ++ (nullable AllTypes *)nullableFromList:(NSArray *)list { + return (list) ? [AllTypes fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + @(self.aBool), + @(self.anInt), + @(self.anInt64), + @(self.aDouble), + self.aByteArray ?: [NSNull null], + self.a4ByteArray ?: [NSNull null], + self.a8ByteArray ?: [NSNull null], + self.aFloatArray ?: [NSNull null], + [[AnEnumBox alloc] initWithValue:self.anEnum], + [[AnotherEnumBox alloc] initWithValue:self.anotherEnum], + self.aString ?: [NSNull null], + self.anObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation AllNullableTypes ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable AllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + nestedClassList:(nullable NSArray *)nestedClassList + map:(nullable NSDictionary *)map { + AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.nestedClassList = nestedClassList; + pigeonResult.map = map; + return pigeonResult; +} ++ (AllNullableTypes *)fromList:(NSArray *)list { + AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 15); + pigeonResult.list = GetNullableObjectAtIndex(list, 16); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 17); + pigeonResult.intList = GetNullableObjectAtIndex(list, 18); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 19); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 20); + pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 21); + pigeonResult.map = GetNullableObjectAtIndex(list, 22); + return pigeonResult; +} ++ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list { + return (list) ? [AllNullableTypes fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.allNullableTypes ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.nestedClassList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation AllNullableTypesWithoutRecursion ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + map:(nullable NSDictionary *)map { + AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; +} ++ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { + AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.list = GetNullableObjectAtIndex(list, 15); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); + pigeonResult.intList = GetNullableObjectAtIndex(list, 17); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); + pigeonResult.map = GetNullableObjectAtIndex(list, 20); + return pigeonResult; +} ++ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { + return (list) ? [AllNullableTypesWithoutRecursion fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation AllClassesWrapper ++ (instancetype)makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable AllTypes *)allTypes { + AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; + pigeonResult.allTypes = allTypes; + return pigeonResult; +} ++ (AllClassesWrapper *)fromList:(NSArray *)list { + AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); + pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); + pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); + return pigeonResult; +} ++ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list { + return (list) ? [AllClassesWrapper fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.allNullableTypes ?: [NSNull null], + self.allNullableTypesWithoutRecursion ?: [NSNull null], + self.allTypes ?: [NSNull null], + ]; +} +@end + +@implementation TestMessage ++ (instancetype)makeWithTestList:(nullable NSArray *)testList { + TestMessage *pigeonResult = [[TestMessage alloc] init]; + pigeonResult.testList = testList; + return pigeonResult; +} ++ (TestMessage *)fromList:(NSArray *)list { + TestMessage *pigeonResult = [[TestMessage alloc] init]; + pigeonResult.testList = GetNullableObjectAtIndex(list, 0); + return pigeonResult; +} ++ (nullable TestMessage *)nullableFromList:(NSArray *)list { + return (list) ? [TestMessage fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.testList ?: [NSNull null], + ]; +} +@end + +@interface __pigeon_CodecOverflow () ++ (id)fromList:(NSArray *)list; +- (NSArray *)toList; +@end + +@implementation __pigeon_CodecOverflow ++ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped { + __pigeon_CodecOverflow *pigeonResult = [[__pigeon_CodecOverflow alloc] init]; + pigeonResult.type = type; + pigeonResult.wrapped = wrapped; + return pigeonResult; +} +- (NSArray *)toList { + return @[ + @(self.type), + self.wrapped ?: [NSNull null], + ]; +} ++ (id)fromList:(NSArray *)list { + __pigeon_CodecOverflow *wrapper = [[__pigeon_CodecOverflow alloc] init]; + wrapper.type = [GetNullableObjectAtIndex(list, 0) integerValue]; + wrapper.wrapped = GetNullableObjectAtIndex(list, 1); + return [wrapper unwrap]; +} + +- (id)unwrap { + if (self.wrapped == nil) { + return nil; + } + + switch (self.type) { + case 0: + return [[AnotherEnumBox alloc] initWithValue:[self.wrapped integerValue]]; + case 1: + return [AllTypes fromList:self.wrapped]; + case 2: + return [AllNullableTypes fromList:self.wrapped]; + case 3: + return [AllNullableTypesWithoutRecursion fromList:self.wrapped]; + case 4: + return [AllClassesWrapper fromList:self.wrapped]; + case 5: + return [TestMessage fromList:self.wrapped]; + default: + return nil; + } +} +@end +@interface CoreTestsPigeonCodecReader : FlutterStandardReader +@end +@implementation CoreTestsPigeonCodecReader +- (nullable id)readValueOfType:(UInt8)type { + switch (type) { + case 129: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum0Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 130: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum1Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 131: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum2Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 132: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum3Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 133: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum4Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 134: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum5Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 135: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum6Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 136: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum7Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 137: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum8Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 138: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum9Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 139: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum10Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 140: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum11Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 141: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum12Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 142: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum13Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 143: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum14Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 144: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum15Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 145: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum16Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 146: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum17Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 147: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum18Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 148: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum19Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 149: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum20Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 150: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum21Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 151: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum22Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 152: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum23Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 153: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum24Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 154: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum25Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 155: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum26Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 156: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum27Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 157: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum28Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 158: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum29Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 159: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum30Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 160: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum31Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 161: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum32Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 162: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum33Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 163: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum34Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 164: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum35Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 165: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum36Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 166: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum37Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 167: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum38Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 168: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum39Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 169: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum40Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 170: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum41Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 171: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum42Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 172: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum43Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 173: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum44Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 174: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum45Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 175: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum46Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 176: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum47Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 177: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum48Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 178: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum49Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 179: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum50Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 180: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum51Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 181: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum52Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 182: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum53Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 183: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum54Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 184: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum55Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 185: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum56Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 186: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum57Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 187: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum58Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 188: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum59Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 189: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum60Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 190: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum61Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 191: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum62Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 192: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum63Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 193: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum64Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 194: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum65Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 195: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum66Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 196: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum67Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 197: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum68Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 198: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum69Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 199: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum70Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 200: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum71Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 201: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum72Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 202: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum73Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 203: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum74Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 204: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum75Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 205: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum76Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 206: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum77Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 207: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum78Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 208: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum79Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 209: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum80Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 210: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum81Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 211: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum82Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 212: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum83Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 213: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum84Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 214: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum85Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 215: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum86Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 216: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum87Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 217: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum88Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 218: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum89Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 219: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum90Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 220: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum91Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 221: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum92Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 222: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum93Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 223: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum94Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 224: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum95Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 225: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum96Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 226: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum97Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 227: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum98Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 228: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum99Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 229: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum100Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 230: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum101Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 231: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum102Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 232: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum103Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 233: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum104Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 234: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum105Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 235: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum106Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 236: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum107Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 237: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum108Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 238: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum109Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 239: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum110Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 240: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum111Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 241: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum112Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 242: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum113Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 243: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum114Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 244: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum115Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 245: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum116Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 246: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum117Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 247: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum118Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 248: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum119Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 249: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum120Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 250: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum121Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 251: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum122Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 252: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum123Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 253: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil + ? nil + : [[FillerEnum124Box alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 254: { + NSNumber *enumAsNumber = [self readValue]; + return enumAsNumber == nil ? nil + : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; + } + case 255: + return [__pigeon_CodecOverflow fromList:[self readValue]]; + default: + return [super readValueOfType:type]; + } +} +@end + +@interface CoreTestsPigeonCodecWriter : FlutterStandardWriter +@end +@implementation CoreTestsPigeonCodecWriter +- (void)writeValue:(id)value { + if ([value isKindOfClass:[FillerEnum0Box class]]) { + FillerEnum0Box *box = (FillerEnum0Box *)value; + [self writeByte:129]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum1Box class]]) { + FillerEnum1Box *box = (FillerEnum1Box *)value; + [self writeByte:130]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum2Box class]]) { + FillerEnum2Box *box = (FillerEnum2Box *)value; + [self writeByte:131]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum3Box class]]) { + FillerEnum3Box *box = (FillerEnum3Box *)value; + [self writeByte:132]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum4Box class]]) { + FillerEnum4Box *box = (FillerEnum4Box *)value; + [self writeByte:133]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum5Box class]]) { + FillerEnum5Box *box = (FillerEnum5Box *)value; + [self writeByte:134]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum6Box class]]) { + FillerEnum6Box *box = (FillerEnum6Box *)value; + [self writeByte:135]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum7Box class]]) { + FillerEnum7Box *box = (FillerEnum7Box *)value; + [self writeByte:136]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum8Box class]]) { + FillerEnum8Box *box = (FillerEnum8Box *)value; + [self writeByte:137]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum9Box class]]) { + FillerEnum9Box *box = (FillerEnum9Box *)value; + [self writeByte:138]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum10Box class]]) { + FillerEnum10Box *box = (FillerEnum10Box *)value; + [self writeByte:139]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum11Box class]]) { + FillerEnum11Box *box = (FillerEnum11Box *)value; + [self writeByte:140]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum12Box class]]) { + FillerEnum12Box *box = (FillerEnum12Box *)value; + [self writeByte:141]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum13Box class]]) { + FillerEnum13Box *box = (FillerEnum13Box *)value; + [self writeByte:142]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum14Box class]]) { + FillerEnum14Box *box = (FillerEnum14Box *)value; + [self writeByte:143]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum15Box class]]) { + FillerEnum15Box *box = (FillerEnum15Box *)value; + [self writeByte:144]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum16Box class]]) { + FillerEnum16Box *box = (FillerEnum16Box *)value; + [self writeByte:145]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum17Box class]]) { + FillerEnum17Box *box = (FillerEnum17Box *)value; + [self writeByte:146]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum18Box class]]) { + FillerEnum18Box *box = (FillerEnum18Box *)value; + [self writeByte:147]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum19Box class]]) { + FillerEnum19Box *box = (FillerEnum19Box *)value; + [self writeByte:148]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum20Box class]]) { + FillerEnum20Box *box = (FillerEnum20Box *)value; + [self writeByte:149]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum21Box class]]) { + FillerEnum21Box *box = (FillerEnum21Box *)value; + [self writeByte:150]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum22Box class]]) { + FillerEnum22Box *box = (FillerEnum22Box *)value; + [self writeByte:151]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum23Box class]]) { + FillerEnum23Box *box = (FillerEnum23Box *)value; + [self writeByte:152]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum24Box class]]) { + FillerEnum24Box *box = (FillerEnum24Box *)value; + [self writeByte:153]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum25Box class]]) { + FillerEnum25Box *box = (FillerEnum25Box *)value; + [self writeByte:154]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum26Box class]]) { + FillerEnum26Box *box = (FillerEnum26Box *)value; + [self writeByte:155]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum27Box class]]) { + FillerEnum27Box *box = (FillerEnum27Box *)value; + [self writeByte:156]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum28Box class]]) { + FillerEnum28Box *box = (FillerEnum28Box *)value; + [self writeByte:157]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum29Box class]]) { + FillerEnum29Box *box = (FillerEnum29Box *)value; + [self writeByte:158]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum30Box class]]) { + FillerEnum30Box *box = (FillerEnum30Box *)value; + [self writeByte:159]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum31Box class]]) { + FillerEnum31Box *box = (FillerEnum31Box *)value; + [self writeByte:160]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum32Box class]]) { + FillerEnum32Box *box = (FillerEnum32Box *)value; + [self writeByte:161]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum33Box class]]) { + FillerEnum33Box *box = (FillerEnum33Box *)value; + [self writeByte:162]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum34Box class]]) { + FillerEnum34Box *box = (FillerEnum34Box *)value; + [self writeByte:163]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum35Box class]]) { + FillerEnum35Box *box = (FillerEnum35Box *)value; + [self writeByte:164]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum36Box class]]) { + FillerEnum36Box *box = (FillerEnum36Box *)value; + [self writeByte:165]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum37Box class]]) { + FillerEnum37Box *box = (FillerEnum37Box *)value; + [self writeByte:166]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum38Box class]]) { + FillerEnum38Box *box = (FillerEnum38Box *)value; + [self writeByte:167]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum39Box class]]) { + FillerEnum39Box *box = (FillerEnum39Box *)value; + [self writeByte:168]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum40Box class]]) { + FillerEnum40Box *box = (FillerEnum40Box *)value; + [self writeByte:169]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum41Box class]]) { + FillerEnum41Box *box = (FillerEnum41Box *)value; + [self writeByte:170]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum42Box class]]) { + FillerEnum42Box *box = (FillerEnum42Box *)value; + [self writeByte:171]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum43Box class]]) { + FillerEnum43Box *box = (FillerEnum43Box *)value; + [self writeByte:172]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum44Box class]]) { + FillerEnum44Box *box = (FillerEnum44Box *)value; + [self writeByte:173]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum45Box class]]) { + FillerEnum45Box *box = (FillerEnum45Box *)value; + [self writeByte:174]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum46Box class]]) { + FillerEnum46Box *box = (FillerEnum46Box *)value; + [self writeByte:175]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum47Box class]]) { + FillerEnum47Box *box = (FillerEnum47Box *)value; + [self writeByte:176]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum48Box class]]) { + FillerEnum48Box *box = (FillerEnum48Box *)value; + [self writeByte:177]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum49Box class]]) { + FillerEnum49Box *box = (FillerEnum49Box *)value; + [self writeByte:178]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum50Box class]]) { + FillerEnum50Box *box = (FillerEnum50Box *)value; + [self writeByte:179]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum51Box class]]) { + FillerEnum51Box *box = (FillerEnum51Box *)value; + [self writeByte:180]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum52Box class]]) { + FillerEnum52Box *box = (FillerEnum52Box *)value; + [self writeByte:181]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum53Box class]]) { + FillerEnum53Box *box = (FillerEnum53Box *)value; + [self writeByte:182]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum54Box class]]) { + FillerEnum54Box *box = (FillerEnum54Box *)value; + [self writeByte:183]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum55Box class]]) { + FillerEnum55Box *box = (FillerEnum55Box *)value; + [self writeByte:184]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum56Box class]]) { + FillerEnum56Box *box = (FillerEnum56Box *)value; + [self writeByte:185]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum57Box class]]) { + FillerEnum57Box *box = (FillerEnum57Box *)value; + [self writeByte:186]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum58Box class]]) { + FillerEnum58Box *box = (FillerEnum58Box *)value; + [self writeByte:187]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum59Box class]]) { + FillerEnum59Box *box = (FillerEnum59Box *)value; + [self writeByte:188]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum60Box class]]) { + FillerEnum60Box *box = (FillerEnum60Box *)value; + [self writeByte:189]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum61Box class]]) { + FillerEnum61Box *box = (FillerEnum61Box *)value; + [self writeByte:190]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum62Box class]]) { + FillerEnum62Box *box = (FillerEnum62Box *)value; + [self writeByte:191]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum63Box class]]) { + FillerEnum63Box *box = (FillerEnum63Box *)value; + [self writeByte:192]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum64Box class]]) { + FillerEnum64Box *box = (FillerEnum64Box *)value; + [self writeByte:193]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum65Box class]]) { + FillerEnum65Box *box = (FillerEnum65Box *)value; + [self writeByte:194]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum66Box class]]) { + FillerEnum66Box *box = (FillerEnum66Box *)value; + [self writeByte:195]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum67Box class]]) { + FillerEnum67Box *box = (FillerEnum67Box *)value; + [self writeByte:196]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum68Box class]]) { + FillerEnum68Box *box = (FillerEnum68Box *)value; + [self writeByte:197]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum69Box class]]) { + FillerEnum69Box *box = (FillerEnum69Box *)value; + [self writeByte:198]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum70Box class]]) { + FillerEnum70Box *box = (FillerEnum70Box *)value; + [self writeByte:199]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum71Box class]]) { + FillerEnum71Box *box = (FillerEnum71Box *)value; + [self writeByte:200]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum72Box class]]) { + FillerEnum72Box *box = (FillerEnum72Box *)value; + [self writeByte:201]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum73Box class]]) { + FillerEnum73Box *box = (FillerEnum73Box *)value; + [self writeByte:202]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum74Box class]]) { + FillerEnum74Box *box = (FillerEnum74Box *)value; + [self writeByte:203]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum75Box class]]) { + FillerEnum75Box *box = (FillerEnum75Box *)value; + [self writeByte:204]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum76Box class]]) { + FillerEnum76Box *box = (FillerEnum76Box *)value; + [self writeByte:205]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum77Box class]]) { + FillerEnum77Box *box = (FillerEnum77Box *)value; + [self writeByte:206]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum78Box class]]) { + FillerEnum78Box *box = (FillerEnum78Box *)value; + [self writeByte:207]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum79Box class]]) { + FillerEnum79Box *box = (FillerEnum79Box *)value; + [self writeByte:208]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum80Box class]]) { + FillerEnum80Box *box = (FillerEnum80Box *)value; + [self writeByte:209]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum81Box class]]) { + FillerEnum81Box *box = (FillerEnum81Box *)value; + [self writeByte:210]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum82Box class]]) { + FillerEnum82Box *box = (FillerEnum82Box *)value; + [self writeByte:211]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum83Box class]]) { + FillerEnum83Box *box = (FillerEnum83Box *)value; + [self writeByte:212]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum84Box class]]) { + FillerEnum84Box *box = (FillerEnum84Box *)value; + [self writeByte:213]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum85Box class]]) { + FillerEnum85Box *box = (FillerEnum85Box *)value; + [self writeByte:214]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum86Box class]]) { + FillerEnum86Box *box = (FillerEnum86Box *)value; + [self writeByte:215]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum87Box class]]) { + FillerEnum87Box *box = (FillerEnum87Box *)value; + [self writeByte:216]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum88Box class]]) { + FillerEnum88Box *box = (FillerEnum88Box *)value; + [self writeByte:217]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum89Box class]]) { + FillerEnum89Box *box = (FillerEnum89Box *)value; + [self writeByte:218]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum90Box class]]) { + FillerEnum90Box *box = (FillerEnum90Box *)value; + [self writeByte:219]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum91Box class]]) { + FillerEnum91Box *box = (FillerEnum91Box *)value; + [self writeByte:220]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum92Box class]]) { + FillerEnum92Box *box = (FillerEnum92Box *)value; + [self writeByte:221]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum93Box class]]) { + FillerEnum93Box *box = (FillerEnum93Box *)value; + [self writeByte:222]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum94Box class]]) { + FillerEnum94Box *box = (FillerEnum94Box *)value; + [self writeByte:223]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum95Box class]]) { + FillerEnum95Box *box = (FillerEnum95Box *)value; + [self writeByte:224]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum96Box class]]) { + FillerEnum96Box *box = (FillerEnum96Box *)value; + [self writeByte:225]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum97Box class]]) { + FillerEnum97Box *box = (FillerEnum97Box *)value; + [self writeByte:226]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum98Box class]]) { + FillerEnum98Box *box = (FillerEnum98Box *)value; + [self writeByte:227]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum99Box class]]) { + FillerEnum99Box *box = (FillerEnum99Box *)value; + [self writeByte:228]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum100Box class]]) { + FillerEnum100Box *box = (FillerEnum100Box *)value; + [self writeByte:229]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum101Box class]]) { + FillerEnum101Box *box = (FillerEnum101Box *)value; + [self writeByte:230]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum102Box class]]) { + FillerEnum102Box *box = (FillerEnum102Box *)value; + [self writeByte:231]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum103Box class]]) { + FillerEnum103Box *box = (FillerEnum103Box *)value; + [self writeByte:232]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum104Box class]]) { + FillerEnum104Box *box = (FillerEnum104Box *)value; + [self writeByte:233]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum105Box class]]) { + FillerEnum105Box *box = (FillerEnum105Box *)value; + [self writeByte:234]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum106Box class]]) { + FillerEnum106Box *box = (FillerEnum106Box *)value; + [self writeByte:235]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum107Box class]]) { + FillerEnum107Box *box = (FillerEnum107Box *)value; + [self writeByte:236]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum108Box class]]) { + FillerEnum108Box *box = (FillerEnum108Box *)value; + [self writeByte:237]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum109Box class]]) { + FillerEnum109Box *box = (FillerEnum109Box *)value; + [self writeByte:238]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum110Box class]]) { + FillerEnum110Box *box = (FillerEnum110Box *)value; + [self writeByte:239]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum111Box class]]) { + FillerEnum111Box *box = (FillerEnum111Box *)value; + [self writeByte:240]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum112Box class]]) { + FillerEnum112Box *box = (FillerEnum112Box *)value; + [self writeByte:241]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum113Box class]]) { + FillerEnum113Box *box = (FillerEnum113Box *)value; + [self writeByte:242]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum114Box class]]) { + FillerEnum114Box *box = (FillerEnum114Box *)value; + [self writeByte:243]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum115Box class]]) { + FillerEnum115Box *box = (FillerEnum115Box *)value; + [self writeByte:244]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum116Box class]]) { + FillerEnum116Box *box = (FillerEnum116Box *)value; + [self writeByte:245]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum117Box class]]) { + FillerEnum117Box *box = (FillerEnum117Box *)value; + [self writeByte:246]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum118Box class]]) { + FillerEnum118Box *box = (FillerEnum118Box *)value; + [self writeByte:247]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum119Box class]]) { + FillerEnum119Box *box = (FillerEnum119Box *)value; + [self writeByte:248]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum120Box class]]) { + FillerEnum120Box *box = (FillerEnum120Box *)value; + [self writeByte:249]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum121Box class]]) { + FillerEnum121Box *box = (FillerEnum121Box *)value; + [self writeByte:250]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum122Box class]]) { + FillerEnum122Box *box = (FillerEnum122Box *)value; + [self writeByte:251]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum123Box class]]) { + FillerEnum123Box *box = (FillerEnum123Box *)value; + [self writeByte:252]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[FillerEnum124Box class]]) { + FillerEnum124Box *box = (FillerEnum124Box *)value; + [self writeByte:253]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[AnEnumBox class]]) { AnEnumBox *box = (AnEnumBox *)value; - [self writeByte:129]; + [self writeByte:254]; [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + } else if ([value isKindOfClass:[AnotherEnumBox class]]) { + AnotherEnumBox *box = (AnotherEnumBox *)value; + __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow + makeWithType:0 + wrapped:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[AllTypes class]]) { - [self writeByte:130]; - [self writeValue:[value toList]]; + __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:1 wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[AllNullableTypes class]]) { - [self writeByte:131]; - [self writeValue:[value toList]]; + __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:2 wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[AllNullableTypesWithoutRecursion class]]) { - [self writeByte:132]; - [self writeValue:[value toList]]; + __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:3 wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[AllClassesWrapper class]]) { - [self writeByte:133]; - [self writeValue:[value toList]]; + __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:4 wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else if ([value isKindOfClass:[TestMessage class]]) { - [self writeByte:134]; - [self writeValue:[value toList]]; + __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:5 wrapped:[value toList]]; + [self writeByte:255]; + [self writeValue:[wrap toList]]; } else { [super writeValue:value]; } @@ -858,8 +3433,8 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnEnumBox *enumBox = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = enumBox.value; + AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(args, 0); + AnEnum arg_anEnum = anAnEnumBox.value; FlutterError *error; AnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); @@ -868,6 +3443,32 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:nil]; } } + /// Returns the passed enum to test serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:GetCoreTestsCodec()]; + if (api) { + NSCAssert( + [api respondsToSelector:@selector(echoAnotherEnum:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to @selector(echoAnotherEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; + FlutterError *error; + AnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Returns the default string. { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] @@ -1343,6 +3944,31 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:nil]; } } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:GetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherNullableEnum:error:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherNullableEnum:error:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + FlutterError *error; + AnotherEnumBox *output = [api echoAnotherNullableEnum:arg_anotherEnum error:&error]; + callback(wrapResult(output, error)); + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Returns passed in int. { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] @@ -1645,8 +4271,8 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnEnumBox *enumBox = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = enumBox.value; + AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(args, 0); + AnEnum arg_anEnum = anAnEnumBox.value; [api echoAsyncEnum:arg_anEnum completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -1656,6 +4282,34 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:nil]; } } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherAsyncEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:GetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; + [api echoAnotherAsyncEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } /// Responds with an error from an async function returning a value. { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] @@ -2052,6 +4706,34 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:nil]; } } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.echoAnotherAsyncNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:GetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(echoAnotherAsyncNullableEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(echoAnotherAsyncNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + [api echoAnotherAsyncNullableEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] initWithName:[NSString stringWithFormat:@"%@%@", @@ -2467,8 +5149,8 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnEnumBox *enumBox = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = enumBox.value; + AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(args, 0); + AnEnum arg_anEnum = anAnEnumBox.value; [api callFlutterEchoEnum:arg_anEnum completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -2478,6 +5160,34 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:nil]; } } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString + stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAnotherEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:GetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; + [api callFlutterEchoAnotherEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] initWithName:[NSString @@ -2694,6 +5404,33 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:nil]; } } + { + FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] + initWithName:[NSString stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum", + messageChannelSuffix] + binaryMessenger:binaryMessenger + codec:GetCoreTestsCodec()]; + if (api) { + NSCAssert([api respondsToSelector:@selector(callFlutterEchoAnotherNullableEnum:completion:)], + @"HostIntegrationCoreApi api (%@) doesn't respond to " + @"@selector(callFlutterEchoAnotherNullableEnum:completion:)", + api); + [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { + NSArray *args = message; + AnotherEnumBox *arg_anotherEnum = GetNullableObjectAtIndex(args, 0); + [api callFlutterEchoAnotherNullableEnum:arg_anotherEnum + completion:^(AnotherEnumBox *_Nullable output, + FlutterError *_Nullable error) { + callback(wrapResult(output, error)); + }]; + }]; + } else { + [channel setMessageHandler:nil]; + } + } { FlutterBasicMessageChannel *channel = [[FlutterBasicMessageChannel alloc] initWithName: @@ -3190,6 +5927,33 @@ - (void)echoEnum:(AnEnum)arg_anEnum } }]; } +- (void)echoAnotherEnum:(AnotherEnum)arg_anotherEnum + completion:(void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = [NSString + stringWithFormat: + @"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:GetCoreTestsCodec()]; + [channel sendMessage:@[ [[AnotherEnumBox alloc] initWithValue:arg_anotherEnum] ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} - (void)echoNullableBool:(nullable NSNumber *)arg_aBool completion:(void (^)(NSNumber *_Nullable, FlutterError *_Nullable))completion { NSString *channelName = [NSString @@ -3410,6 +6174,34 @@ - (void)echoNullableEnum:(nullable AnEnumBox *)arg_anEnum } }]; } +- (void)echoAnotherNullableEnum:(nullable AnotherEnumBox *)arg_anotherEnum + completion: + (void (^)(AnotherEnumBox *_Nullable, FlutterError *_Nullable))completion { + NSString *channelName = + [NSString stringWithFormat:@"%@%@", + @"dev.flutter.pigeon.pigeon_integration_tests." + @"FlutterIntegrationCoreApi.echoAnotherNullableEnum", + _messageChannelSuffix]; + FlutterBasicMessageChannel *channel = + [FlutterBasicMessageChannel messageChannelWithName:channelName + binaryMessenger:self.binaryMessenger + codec:GetCoreTestsCodec()]; + [channel sendMessage:@[ arg_anotherEnum == nil ? [NSNull null] : arg_anotherEnum ] + reply:^(NSArray *reply) { + if (reply != nil) { + if (reply.count > 1) { + completion(nil, [FlutterError errorWithCode:reply[0] + message:reply[1] + details:reply[2]]); + } else { + AnotherEnumBox *output = reply[0] == [NSNull null] ? nil : reply[0]; + completion(output, nil); + } + } else { + completion(nil, createConnectionError(channelName)); + } + }]; +} - (void)noopAsyncWithCompletion:(void (^)(FlutterError *_Nullable))completion { NSString *channelName = [NSString stringWithFormat: diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart index da8935ec8f7..40221efda70 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart @@ -257,6 +257,8 @@ final AllTypes _genericAllTypes = AllTypes( a8ByteArray: Int64List.fromList([7, 8, 9]), aFloatArray: Float64List.fromList([2.71828, _doublePi]), anEnum: AnEnum.fortyTwo, + // ignore: avoid_redundant_argument_values + anotherEnum: AnotherEnum.justInCase, anObject: 1, list: _list, stringList: _stringList, @@ -283,6 +285,7 @@ final AllNullableTypes _genericAllNullableTypes = AllNullableTypes( nullableMapWithAnnotations: {}, nullableMapWithObject: {}, aNullableEnum: AnEnum.fourHundredTwentyTwo, + anotherNullableEnum: AnotherEnum.justInCase, aNullableObject: 0, list: _list, stringList: _stringList, @@ -315,6 +318,7 @@ final AllNullableTypes _recursiveAllNullableTypes = AllNullableTypes( nullableMapWithAnnotations: {}, nullableMapWithObject: {}, aNullableEnum: AnEnum.fourHundredTwentyTwo, + anotherNullableEnum: AnotherEnum.justInCase, aNullableObject: 0, allNullableTypes: _genericAllNullableTypes, list: _list, @@ -345,6 +349,7 @@ final AllNullableTypesWithoutRecursion nullableMapWithAnnotations: {}, nullableMapWithObject: {}, aNullableEnum: AnEnum.fourHundredTwentyTwo, + anotherNullableEnum: AnotherEnum.justInCase, aNullableObject: 0, list: _list, stringList: _stringList, @@ -728,6 +733,15 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(receivedEnum, sentEnum); }); + testWidgets('enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum sentEnum = AnotherEnum.justInCase; + final AnotherEnum receivedEnum = await api.echoAnotherEnum(sentEnum); + expect(receivedEnum, sentEnum); + }); + testWidgets('multi word enums serialize and deserialize correctly', (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); @@ -942,6 +956,15 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(echoEnum, sentEnum); }); + testWidgets('nullable enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum sentEnum = AnotherEnum.justInCase; + final AnotherEnum? echoEnum = await api.echoAnotherNullableEnum(sentEnum); + expect(echoEnum, sentEnum); + }); + testWidgets('multi word nullable enums serialize and deserialize correctly', (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); @@ -976,6 +999,15 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(echoEnum, sentEnum); }); + testWidgets('null enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum? sentEnum = null; + final AnotherEnum? echoEnum = await api.echoAnotherNullableEnum(sentEnum); + expect(echoEnum, sentEnum); + }); + testWidgets('null classes serialize and deserialize correctly', (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); @@ -1226,6 +1258,15 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(echoEnum, sentEnum); }); + testWidgets('enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum sentEnum = AnotherEnum.justInCase; + final AnotherEnum echoEnum = await api.echoAnotherAsyncEnum(sentEnum); + expect(echoEnum, sentEnum); + }); + testWidgets('multi word enums serialize and deserialize correctly', (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); @@ -1352,6 +1393,16 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(echoEnum, sentEnum); }); + testWidgets('nullable enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum sentEnum = AnotherEnum.justInCase; + final AnotherEnum? echoEnum = + await api.echoAnotherAsyncNullableEnum(sentEnum); + expect(echoEnum, sentEnum); + }); + testWidgets('nullable enums serialize and deserialize correctly', (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); @@ -1435,6 +1486,16 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AnEnum? echoEnum = await api.echoAsyncNullableEnum(null); expect(echoEnum, sentEnum); }); + + testWidgets('null enums serialize and deserialize correctly', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum? sentEnum = null; + final AnotherEnum? echoEnum = + await api.echoAnotherAsyncNullableEnum(null); + expect(echoEnum, sentEnum); + }); }); group('Host API with suffix', () { @@ -1665,6 +1726,16 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(echoEnum, sentEnum); }); + testWidgets('enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum sentEnum = AnotherEnum.justInCase; + final AnotherEnum echoEnum = + await api.callFlutterEchoAnotherEnum(sentEnum); + expect(echoEnum, sentEnum); + }); + testWidgets('multi word enums serialize and deserialize correctly', (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); @@ -1838,6 +1909,16 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { expect(echoEnum, sentEnum); }); + testWidgets('nullable enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum sentEnum = AnotherEnum.justInCase; + final AnotherEnum? echoEnum = + await api.callFlutterEchoAnotherNullableEnum(sentEnum); + expect(echoEnum, sentEnum); + }); + testWidgets('multi word nullable enums serialize and deserialize correctly', (WidgetTester _) async { final HostIntegrationCoreApi api = HostIntegrationCoreApi(); @@ -1855,6 +1936,16 @@ void runPigeonIntegrationTests(TargetGenerator targetGenerator) { final AnEnum? echoEnum = await api.callFlutterEchoNullableEnum(sentEnum); expect(echoEnum, sentEnum); }); + + testWidgets('null enums serialize and deserialize correctly (again)', + (WidgetTester _) async { + final HostIntegrationCoreApi api = HostIntegrationCoreApi(); + + const AnotherEnum? sentEnum = null; + final AnotherEnum? echoEnum = + await api.callFlutterEchoAnotherNullableEnum(sentEnum); + expect(echoEnum, sentEnum); + }); }); group('Flutter API with suffix', () { @@ -1952,6 +2043,9 @@ class _FlutterApiTestImplementation implements FlutterIntegrationCoreApi { @override AnEnum echoEnum(AnEnum anEnum) => anEnum; + @override + AnotherEnum echoAnotherEnum(AnotherEnum anotherEnum) => anotherEnum; + @override bool? echoNullableBool(bool? aBool) => aBool; @@ -1976,6 +2070,9 @@ class _FlutterApiTestImplementation implements FlutterIntegrationCoreApi { @override AnEnum? echoNullableEnum(AnEnum? anEnum) => anEnum; + @override + AnotherEnum? echoAnotherNullableEnum(AnotherEnum? anotherEnum) => anotherEnum; + @override Future noopAsync() async {} diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 2e81e18c6e0..ff01047c862 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -30,6 +30,506 @@ List wrapResponse( return [error.code, error.message, error.details]; } +enum FillerEnum0 { + FillerMember0, +} + +enum FillerEnum1 { + FillerMember1, +} + +enum FillerEnum2 { + FillerMember2, +} + +enum FillerEnum3 { + FillerMember3, +} + +enum FillerEnum4 { + FillerMember4, +} + +enum FillerEnum5 { + FillerMember5, +} + +enum FillerEnum6 { + FillerMember6, +} + +enum FillerEnum7 { + FillerMember7, +} + +enum FillerEnum8 { + FillerMember8, +} + +enum FillerEnum9 { + FillerMember9, +} + +enum FillerEnum10 { + FillerMember10, +} + +enum FillerEnum11 { + FillerMember11, +} + +enum FillerEnum12 { + FillerMember12, +} + +enum FillerEnum13 { + FillerMember13, +} + +enum FillerEnum14 { + FillerMember14, +} + +enum FillerEnum15 { + FillerMember15, +} + +enum FillerEnum16 { + FillerMember16, +} + +enum FillerEnum17 { + FillerMember17, +} + +enum FillerEnum18 { + FillerMember18, +} + +enum FillerEnum19 { + FillerMember19, +} + +enum FillerEnum20 { + FillerMember20, +} + +enum FillerEnum21 { + FillerMember21, +} + +enum FillerEnum22 { + FillerMember22, +} + +enum FillerEnum23 { + FillerMember23, +} + +enum FillerEnum24 { + FillerMember24, +} + +enum FillerEnum25 { + FillerMember25, +} + +enum FillerEnum26 { + FillerMember26, +} + +enum FillerEnum27 { + FillerMember27, +} + +enum FillerEnum28 { + FillerMember28, +} + +enum FillerEnum29 { + FillerMember29, +} + +enum FillerEnum30 { + FillerMember30, +} + +enum FillerEnum31 { + FillerMember31, +} + +enum FillerEnum32 { + FillerMember32, +} + +enum FillerEnum33 { + FillerMember33, +} + +enum FillerEnum34 { + FillerMember34, +} + +enum FillerEnum35 { + FillerMember35, +} + +enum FillerEnum36 { + FillerMember36, +} + +enum FillerEnum37 { + FillerMember37, +} + +enum FillerEnum38 { + FillerMember38, +} + +enum FillerEnum39 { + FillerMember39, +} + +enum FillerEnum40 { + FillerMember40, +} + +enum FillerEnum41 { + FillerMember41, +} + +enum FillerEnum42 { + FillerMember42, +} + +enum FillerEnum43 { + FillerMember43, +} + +enum FillerEnum44 { + FillerMember44, +} + +enum FillerEnum45 { + FillerMember45, +} + +enum FillerEnum46 { + FillerMember46, +} + +enum FillerEnum47 { + FillerMember47, +} + +enum FillerEnum48 { + FillerMember48, +} + +enum FillerEnum49 { + FillerMember49, +} + +enum FillerEnum50 { + FillerMember50, +} + +enum FillerEnum51 { + FillerMember51, +} + +enum FillerEnum52 { + FillerMember52, +} + +enum FillerEnum53 { + FillerMember53, +} + +enum FillerEnum54 { + FillerMember54, +} + +enum FillerEnum55 { + FillerMember55, +} + +enum FillerEnum56 { + FillerMember56, +} + +enum FillerEnum57 { + FillerMember57, +} + +enum FillerEnum58 { + FillerMember58, +} + +enum FillerEnum59 { + FillerMember59, +} + +enum FillerEnum60 { + FillerMember60, +} + +enum FillerEnum61 { + FillerMember61, +} + +enum FillerEnum62 { + FillerMember62, +} + +enum FillerEnum63 { + FillerMember63, +} + +enum FillerEnum64 { + FillerMember64, +} + +enum FillerEnum65 { + FillerMember65, +} + +enum FillerEnum66 { + FillerMember66, +} + +enum FillerEnum67 { + FillerMember67, +} + +enum FillerEnum68 { + FillerMember68, +} + +enum FillerEnum69 { + FillerMember69, +} + +enum FillerEnum70 { + FillerMember70, +} + +enum FillerEnum71 { + FillerMember71, +} + +enum FillerEnum72 { + FillerMember72, +} + +enum FillerEnum73 { + FillerMember73, +} + +enum FillerEnum74 { + FillerMember74, +} + +enum FillerEnum75 { + FillerMember75, +} + +enum FillerEnum76 { + FillerMember76, +} + +enum FillerEnum77 { + FillerMember77, +} + +enum FillerEnum78 { + FillerMember78, +} + +enum FillerEnum79 { + FillerMember79, +} + +enum FillerEnum80 { + FillerMember80, +} + +enum FillerEnum81 { + FillerMember81, +} + +enum FillerEnum82 { + FillerMember82, +} + +enum FillerEnum83 { + FillerMember83, +} + +enum FillerEnum84 { + FillerMember84, +} + +enum FillerEnum85 { + FillerMember85, +} + +enum FillerEnum86 { + FillerMember86, +} + +enum FillerEnum87 { + FillerMember87, +} + +enum FillerEnum88 { + FillerMember88, +} + +enum FillerEnum89 { + FillerMember89, +} + +enum FillerEnum90 { + FillerMember90, +} + +enum FillerEnum91 { + FillerMember91, +} + +enum FillerEnum92 { + FillerMember92, +} + +enum FillerEnum93 { + FillerMember93, +} + +enum FillerEnum94 { + FillerMember94, +} + +enum FillerEnum95 { + FillerMember95, +} + +enum FillerEnum96 { + FillerMember96, +} + +enum FillerEnum97 { + FillerMember97, +} + +enum FillerEnum98 { + FillerMember98, +} + +enum FillerEnum99 { + FillerMember99, +} + +enum FillerEnum100 { + FillerMember100, +} + +enum FillerEnum101 { + FillerMember101, +} + +enum FillerEnum102 { + FillerMember102, +} + +enum FillerEnum103 { + FillerMember103, +} + +enum FillerEnum104 { + FillerMember104, +} + +enum FillerEnum105 { + FillerMember105, +} + +enum FillerEnum106 { + FillerMember106, +} + +enum FillerEnum107 { + FillerMember107, +} + +enum FillerEnum108 { + FillerMember108, +} + +enum FillerEnum109 { + FillerMember109, +} + +enum FillerEnum110 { + FillerMember110, +} + +enum FillerEnum111 { + FillerMember111, +} + +enum FillerEnum112 { + FillerMember112, +} + +enum FillerEnum113 { + FillerMember113, +} + +enum FillerEnum114 { + FillerMember114, +} + +enum FillerEnum115 { + FillerMember115, +} + +enum FillerEnum116 { + FillerMember116, +} + +enum FillerEnum117 { + FillerMember117, +} + +enum FillerEnum118 { + FillerMember118, +} + +enum FillerEnum119 { + FillerMember119, +} + +enum FillerEnum120 { + FillerMember120, +} + +enum FillerEnum121 { + FillerMember121, +} + +enum FillerEnum122 { + FillerMember122, +} + +enum FillerEnum123 { + FillerMember123, +} + +enum FillerEnum124 { + FillerMember124, +} + enum AnEnum { one, two, @@ -38,6 +538,10 @@ enum AnEnum { fourHundredTwentyTwo, } +enum AnotherEnum { + justInCase, +} + /// A class containing all supported types. class AllTypes { AllTypes({ @@ -50,6 +554,7 @@ class AllTypes { required this.a8ByteArray, required this.aFloatArray, this.anEnum = AnEnum.one, + this.anotherEnum = AnotherEnum.justInCase, this.aString = '', this.anObject = 0, required this.list, @@ -78,6 +583,8 @@ class AllTypes { AnEnum anEnum; + AnotherEnum anotherEnum; + String aString; Object anObject; @@ -105,6 +612,7 @@ class AllTypes { a8ByteArray, aFloatArray, anEnum, + anotherEnum, aString, anObject, list, @@ -128,14 +636,15 @@ class AllTypes { a8ByteArray: result[6]! as Int64List, aFloatArray: result[7]! as Float64List, anEnum: result[8]! as AnEnum, - aString: result[9]! as String, - anObject: result[10]!, - list: result[11]! as List, - stringList: (result[12] as List?)!.cast(), - intList: (result[13] as List?)!.cast(), - doubleList: (result[14] as List?)!.cast(), - boolList: (result[15] as List?)!.cast(), - map: result[16]! as Map, + anotherEnum: result[9]! as AnotherEnum, + aString: result[10]! as String, + anObject: result[11]!, + list: result[12]! as List, + stringList: (result[13] as List?)!.cast(), + intList: (result[14] as List?)!.cast(), + doubleList: (result[15] as List?)!.cast(), + boolList: (result[16] as List?)!.cast(), + map: result[17]! as Map, ); } } @@ -155,6 +664,7 @@ class AllNullableTypes { this.nullableMapWithAnnotations, this.nullableMapWithObject, this.aNullableEnum, + this.anotherNullableEnum, this.aNullableString, this.aNullableObject, this.allNullableTypes, @@ -191,6 +701,8 @@ class AllNullableTypes { AnEnum? aNullableEnum; + AnotherEnum? anotherNullableEnum; + String? aNullableString; Object? aNullableObject; @@ -225,6 +737,7 @@ class AllNullableTypes { nullableMapWithAnnotations, nullableMapWithObject, aNullableEnum, + anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, @@ -255,17 +768,18 @@ class AllNullableTypes { nullableMapWithObject: (result[10] as Map?)?.cast(), aNullableEnum: result[11] as AnEnum?, - aNullableString: result[12] as String?, - aNullableObject: result[13], - allNullableTypes: result[14] as AllNullableTypes?, - list: result[15] as List?, - stringList: (result[16] as List?)?.cast(), - intList: (result[17] as List?)?.cast(), - doubleList: (result[18] as List?)?.cast(), - boolList: (result[19] as List?)?.cast(), + anotherNullableEnum: result[12] as AnotherEnum?, + aNullableString: result[13] as String?, + aNullableObject: result[14], + allNullableTypes: result[15] as AllNullableTypes?, + list: result[16] as List?, + stringList: (result[17] as List?)?.cast(), + intList: (result[18] as List?)?.cast(), + doubleList: (result[19] as List?)?.cast(), + boolList: (result[20] as List?)?.cast(), nestedClassList: - (result[20] as List?)?.cast(), - map: result[21] as Map?, + (result[21] as List?)?.cast(), + map: result[22] as Map?, ); } } @@ -287,6 +801,7 @@ class AllNullableTypesWithoutRecursion { this.nullableMapWithAnnotations, this.nullableMapWithObject, this.aNullableEnum, + this.anotherNullableEnum, this.aNullableString, this.aNullableObject, this.list, @@ -321,6 +836,8 @@ class AllNullableTypesWithoutRecursion { AnEnum? aNullableEnum; + AnotherEnum? anotherNullableEnum; + String? aNullableString; Object? aNullableObject; @@ -351,6 +868,7 @@ class AllNullableTypesWithoutRecursion { nullableMapWithAnnotations, nullableMapWithObject, aNullableEnum, + anotherNullableEnum, aNullableString, aNullableObject, list, @@ -379,14 +897,15 @@ class AllNullableTypesWithoutRecursion { nullableMapWithObject: (result[10] as Map?)?.cast(), aNullableEnum: result[11] as AnEnum?, - aNullableString: result[12] as String?, - aNullableObject: result[13], - list: result[14] as List?, - stringList: (result[15] as List?)?.cast(), - intList: (result[16] as List?)?.cast(), - doubleList: (result[17] as List?)?.cast(), - boolList: (result[18] as List?)?.cast(), - map: result[19] as Map?, + anotherNullableEnum: result[12] as AnotherEnum?, + aNullableString: result[13] as String?, + aNullableObject: result[14], + list: result[15] as List?, + stringList: (result[16] as List?)?.cast(), + intList: (result[17] as List?)?.cast(), + doubleList: (result[18] as List?)?.cast(), + boolList: (result[19] as List?)?.cast(), + map: result[20] as Map?, ); } } @@ -450,28 +969,465 @@ class TestMessage { } } +// ignore: camel_case_types +class __pigeon_CodecOverflow { + __pigeon_CodecOverflow({required this.type, required this.wrapped}); + + int type; + Object? wrapped; + + Object encode() { + return [type, wrapped]; + } + + static __pigeon_CodecOverflow decode(Object result) { + result as List; + return __pigeon_CodecOverflow( + type: result[0]! as int, + wrapped: result[1], + ); + } + + Object? unwrap() { + if (wrapped == null) { + return null; + } + + switch (type) { + case 0: + return AnotherEnum.values[wrapped! as int]; + + case 1: + return AllTypes.decode(wrapped!); + + case 2: + return AllNullableTypes.decode(wrapped!); + + case 3: + return AllNullableTypesWithoutRecursion.decode(wrapped!); + + case 4: + return AllClassesWrapper.decode(wrapped!); + + case 5: + return TestMessage.decode(wrapped!); + } + return null; + } +} + class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is AnEnum) { + if (value is FillerEnum0) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is AllTypes) { + } else if (value is FillerEnum1) { buffer.putUint8(130); - writeValue(buffer, value.encode()); - } else if (value is AllNullableTypes) { + writeValue(buffer, value.index); + } else if (value is FillerEnum2) { buffer.putUint8(131); - writeValue(buffer, value.encode()); - } else if (value is AllNullableTypesWithoutRecursion) { + writeValue(buffer, value.index); + } else if (value is FillerEnum3) { buffer.putUint8(132); - writeValue(buffer, value.encode()); - } else if (value is AllClassesWrapper) { + writeValue(buffer, value.index); + } else if (value is FillerEnum4) { buffer.putUint8(133); - writeValue(buffer, value.encode()); - } else if (value is TestMessage) { + writeValue(buffer, value.index); + } else if (value is FillerEnum5) { buffer.putUint8(134); - writeValue(buffer, value.encode()); + writeValue(buffer, value.index); + } else if (value is FillerEnum6) { + buffer.putUint8(135); + writeValue(buffer, value.index); + } else if (value is FillerEnum7) { + buffer.putUint8(136); + writeValue(buffer, value.index); + } else if (value is FillerEnum8) { + buffer.putUint8(137); + writeValue(buffer, value.index); + } else if (value is FillerEnum9) { + buffer.putUint8(138); + writeValue(buffer, value.index); + } else if (value is FillerEnum10) { + buffer.putUint8(139); + writeValue(buffer, value.index); + } else if (value is FillerEnum11) { + buffer.putUint8(140); + writeValue(buffer, value.index); + } else if (value is FillerEnum12) { + buffer.putUint8(141); + writeValue(buffer, value.index); + } else if (value is FillerEnum13) { + buffer.putUint8(142); + writeValue(buffer, value.index); + } else if (value is FillerEnum14) { + buffer.putUint8(143); + writeValue(buffer, value.index); + } else if (value is FillerEnum15) { + buffer.putUint8(144); + writeValue(buffer, value.index); + } else if (value is FillerEnum16) { + buffer.putUint8(145); + writeValue(buffer, value.index); + } else if (value is FillerEnum17) { + buffer.putUint8(146); + writeValue(buffer, value.index); + } else if (value is FillerEnum18) { + buffer.putUint8(147); + writeValue(buffer, value.index); + } else if (value is FillerEnum19) { + buffer.putUint8(148); + writeValue(buffer, value.index); + } else if (value is FillerEnum20) { + buffer.putUint8(149); + writeValue(buffer, value.index); + } else if (value is FillerEnum21) { + buffer.putUint8(150); + writeValue(buffer, value.index); + } else if (value is FillerEnum22) { + buffer.putUint8(151); + writeValue(buffer, value.index); + } else if (value is FillerEnum23) { + buffer.putUint8(152); + writeValue(buffer, value.index); + } else if (value is FillerEnum24) { + buffer.putUint8(153); + writeValue(buffer, value.index); + } else if (value is FillerEnum25) { + buffer.putUint8(154); + writeValue(buffer, value.index); + } else if (value is FillerEnum26) { + buffer.putUint8(155); + writeValue(buffer, value.index); + } else if (value is FillerEnum27) { + buffer.putUint8(156); + writeValue(buffer, value.index); + } else if (value is FillerEnum28) { + buffer.putUint8(157); + writeValue(buffer, value.index); + } else if (value is FillerEnum29) { + buffer.putUint8(158); + writeValue(buffer, value.index); + } else if (value is FillerEnum30) { + buffer.putUint8(159); + writeValue(buffer, value.index); + } else if (value is FillerEnum31) { + buffer.putUint8(160); + writeValue(buffer, value.index); + } else if (value is FillerEnum32) { + buffer.putUint8(161); + writeValue(buffer, value.index); + } else if (value is FillerEnum33) { + buffer.putUint8(162); + writeValue(buffer, value.index); + } else if (value is FillerEnum34) { + buffer.putUint8(163); + writeValue(buffer, value.index); + } else if (value is FillerEnum35) { + buffer.putUint8(164); + writeValue(buffer, value.index); + } else if (value is FillerEnum36) { + buffer.putUint8(165); + writeValue(buffer, value.index); + } else if (value is FillerEnum37) { + buffer.putUint8(166); + writeValue(buffer, value.index); + } else if (value is FillerEnum38) { + buffer.putUint8(167); + writeValue(buffer, value.index); + } else if (value is FillerEnum39) { + buffer.putUint8(168); + writeValue(buffer, value.index); + } else if (value is FillerEnum40) { + buffer.putUint8(169); + writeValue(buffer, value.index); + } else if (value is FillerEnum41) { + buffer.putUint8(170); + writeValue(buffer, value.index); + } else if (value is FillerEnum42) { + buffer.putUint8(171); + writeValue(buffer, value.index); + } else if (value is FillerEnum43) { + buffer.putUint8(172); + writeValue(buffer, value.index); + } else if (value is FillerEnum44) { + buffer.putUint8(173); + writeValue(buffer, value.index); + } else if (value is FillerEnum45) { + buffer.putUint8(174); + writeValue(buffer, value.index); + } else if (value is FillerEnum46) { + buffer.putUint8(175); + writeValue(buffer, value.index); + } else if (value is FillerEnum47) { + buffer.putUint8(176); + writeValue(buffer, value.index); + } else if (value is FillerEnum48) { + buffer.putUint8(177); + writeValue(buffer, value.index); + } else if (value is FillerEnum49) { + buffer.putUint8(178); + writeValue(buffer, value.index); + } else if (value is FillerEnum50) { + buffer.putUint8(179); + writeValue(buffer, value.index); + } else if (value is FillerEnum51) { + buffer.putUint8(180); + writeValue(buffer, value.index); + } else if (value is FillerEnum52) { + buffer.putUint8(181); + writeValue(buffer, value.index); + } else if (value is FillerEnum53) { + buffer.putUint8(182); + writeValue(buffer, value.index); + } else if (value is FillerEnum54) { + buffer.putUint8(183); + writeValue(buffer, value.index); + } else if (value is FillerEnum55) { + buffer.putUint8(184); + writeValue(buffer, value.index); + } else if (value is FillerEnum56) { + buffer.putUint8(185); + writeValue(buffer, value.index); + } else if (value is FillerEnum57) { + buffer.putUint8(186); + writeValue(buffer, value.index); + } else if (value is FillerEnum58) { + buffer.putUint8(187); + writeValue(buffer, value.index); + } else if (value is FillerEnum59) { + buffer.putUint8(188); + writeValue(buffer, value.index); + } else if (value is FillerEnum60) { + buffer.putUint8(189); + writeValue(buffer, value.index); + } else if (value is FillerEnum61) { + buffer.putUint8(190); + writeValue(buffer, value.index); + } else if (value is FillerEnum62) { + buffer.putUint8(191); + writeValue(buffer, value.index); + } else if (value is FillerEnum63) { + buffer.putUint8(192); + writeValue(buffer, value.index); + } else if (value is FillerEnum64) { + buffer.putUint8(193); + writeValue(buffer, value.index); + } else if (value is FillerEnum65) { + buffer.putUint8(194); + writeValue(buffer, value.index); + } else if (value is FillerEnum66) { + buffer.putUint8(195); + writeValue(buffer, value.index); + } else if (value is FillerEnum67) { + buffer.putUint8(196); + writeValue(buffer, value.index); + } else if (value is FillerEnum68) { + buffer.putUint8(197); + writeValue(buffer, value.index); + } else if (value is FillerEnum69) { + buffer.putUint8(198); + writeValue(buffer, value.index); + } else if (value is FillerEnum70) { + buffer.putUint8(199); + writeValue(buffer, value.index); + } else if (value is FillerEnum71) { + buffer.putUint8(200); + writeValue(buffer, value.index); + } else if (value is FillerEnum72) { + buffer.putUint8(201); + writeValue(buffer, value.index); + } else if (value is FillerEnum73) { + buffer.putUint8(202); + writeValue(buffer, value.index); + } else if (value is FillerEnum74) { + buffer.putUint8(203); + writeValue(buffer, value.index); + } else if (value is FillerEnum75) { + buffer.putUint8(204); + writeValue(buffer, value.index); + } else if (value is FillerEnum76) { + buffer.putUint8(205); + writeValue(buffer, value.index); + } else if (value is FillerEnum77) { + buffer.putUint8(206); + writeValue(buffer, value.index); + } else if (value is FillerEnum78) { + buffer.putUint8(207); + writeValue(buffer, value.index); + } else if (value is FillerEnum79) { + buffer.putUint8(208); + writeValue(buffer, value.index); + } else if (value is FillerEnum80) { + buffer.putUint8(209); + writeValue(buffer, value.index); + } else if (value is FillerEnum81) { + buffer.putUint8(210); + writeValue(buffer, value.index); + } else if (value is FillerEnum82) { + buffer.putUint8(211); + writeValue(buffer, value.index); + } else if (value is FillerEnum83) { + buffer.putUint8(212); + writeValue(buffer, value.index); + } else if (value is FillerEnum84) { + buffer.putUint8(213); + writeValue(buffer, value.index); + } else if (value is FillerEnum85) { + buffer.putUint8(214); + writeValue(buffer, value.index); + } else if (value is FillerEnum86) { + buffer.putUint8(215); + writeValue(buffer, value.index); + } else if (value is FillerEnum87) { + buffer.putUint8(216); + writeValue(buffer, value.index); + } else if (value is FillerEnum88) { + buffer.putUint8(217); + writeValue(buffer, value.index); + } else if (value is FillerEnum89) { + buffer.putUint8(218); + writeValue(buffer, value.index); + } else if (value is FillerEnum90) { + buffer.putUint8(219); + writeValue(buffer, value.index); + } else if (value is FillerEnum91) { + buffer.putUint8(220); + writeValue(buffer, value.index); + } else if (value is FillerEnum92) { + buffer.putUint8(221); + writeValue(buffer, value.index); + } else if (value is FillerEnum93) { + buffer.putUint8(222); + writeValue(buffer, value.index); + } else if (value is FillerEnum94) { + buffer.putUint8(223); + writeValue(buffer, value.index); + } else if (value is FillerEnum95) { + buffer.putUint8(224); + writeValue(buffer, value.index); + } else if (value is FillerEnum96) { + buffer.putUint8(225); + writeValue(buffer, value.index); + } else if (value is FillerEnum97) { + buffer.putUint8(226); + writeValue(buffer, value.index); + } else if (value is FillerEnum98) { + buffer.putUint8(227); + writeValue(buffer, value.index); + } else if (value is FillerEnum99) { + buffer.putUint8(228); + writeValue(buffer, value.index); + } else if (value is FillerEnum100) { + buffer.putUint8(229); + writeValue(buffer, value.index); + } else if (value is FillerEnum101) { + buffer.putUint8(230); + writeValue(buffer, value.index); + } else if (value is FillerEnum102) { + buffer.putUint8(231); + writeValue(buffer, value.index); + } else if (value is FillerEnum103) { + buffer.putUint8(232); + writeValue(buffer, value.index); + } else if (value is FillerEnum104) { + buffer.putUint8(233); + writeValue(buffer, value.index); + } else if (value is FillerEnum105) { + buffer.putUint8(234); + writeValue(buffer, value.index); + } else if (value is FillerEnum106) { + buffer.putUint8(235); + writeValue(buffer, value.index); + } else if (value is FillerEnum107) { + buffer.putUint8(236); + writeValue(buffer, value.index); + } else if (value is FillerEnum108) { + buffer.putUint8(237); + writeValue(buffer, value.index); + } else if (value is FillerEnum109) { + buffer.putUint8(238); + writeValue(buffer, value.index); + } else if (value is FillerEnum110) { + buffer.putUint8(239); + writeValue(buffer, value.index); + } else if (value is FillerEnum111) { + buffer.putUint8(240); + writeValue(buffer, value.index); + } else if (value is FillerEnum112) { + buffer.putUint8(241); + writeValue(buffer, value.index); + } else if (value is FillerEnum113) { + buffer.putUint8(242); + writeValue(buffer, value.index); + } else if (value is FillerEnum114) { + buffer.putUint8(243); + writeValue(buffer, value.index); + } else if (value is FillerEnum115) { + buffer.putUint8(244); + writeValue(buffer, value.index); + } else if (value is FillerEnum116) { + buffer.putUint8(245); + writeValue(buffer, value.index); + } else if (value is FillerEnum117) { + buffer.putUint8(246); + writeValue(buffer, value.index); + } else if (value is FillerEnum118) { + buffer.putUint8(247); + writeValue(buffer, value.index); + } else if (value is FillerEnum119) { + buffer.putUint8(248); + writeValue(buffer, value.index); + } else if (value is FillerEnum120) { + buffer.putUint8(249); + writeValue(buffer, value.index); + } else if (value is FillerEnum121) { + buffer.putUint8(250); + writeValue(buffer, value.index); + } else if (value is FillerEnum122) { + buffer.putUint8(251); + writeValue(buffer, value.index); + } else if (value is FillerEnum123) { + buffer.putUint8(252); + writeValue(buffer, value.index); + } else if (value is FillerEnum124) { + buffer.putUint8(253); + writeValue(buffer, value.index); + } else if (value is AnEnum) { + buffer.putUint8(254); + writeValue(buffer, value.index); + } else if (value is AnotherEnum) { + final __pigeon_CodecOverflow wrap = + __pigeon_CodecOverflow(type: 0, wrapped: value.index); + buffer.putUint8(255); + writeValue(buffer, wrap.encode()); + } else if (value is AllTypes) { + final __pigeon_CodecOverflow wrap = + __pigeon_CodecOverflow(type: 1, wrapped: value.encode()); + buffer.putUint8(255); + writeValue(buffer, wrap.encode()); + } else if (value is AllNullableTypes) { + final __pigeon_CodecOverflow wrap = + __pigeon_CodecOverflow(type: 2, wrapped: value.encode()); + buffer.putUint8(255); + writeValue(buffer, wrap.encode()); + } else if (value is AllNullableTypesWithoutRecursion) { + final __pigeon_CodecOverflow wrap = + __pigeon_CodecOverflow(type: 3, wrapped: value.encode()); + buffer.putUint8(255); + writeValue(buffer, wrap.encode()); + } else if (value is AllClassesWrapper) { + final __pigeon_CodecOverflow wrap = + __pigeon_CodecOverflow(type: 4, wrapped: value.encode()); + buffer.putUint8(255); + writeValue(buffer, wrap.encode()); + } else if (value is TestMessage) { + final __pigeon_CodecOverflow wrap = + __pigeon_CodecOverflow(type: 5, wrapped: value.encode()); + buffer.putUint8(255); + writeValue(buffer, wrap.encode()); } else { super.writeValue(buffer, value); } @@ -481,18 +1437,387 @@ class _PigeonCodec extends StandardMessageCodec { Object? readValueOfType(int type, ReadBuffer buffer) { switch (type) { case 129: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum0.values[value]; + case 130: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum1.values[value]; + case 131: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum2.values[value]; + case 132: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum3.values[value]; + case 133: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum4.values[value]; + case 134: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum5.values[value]; + case 135: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum6.values[value]; + case 136: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum7.values[value]; + case 137: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum8.values[value]; + case 138: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum9.values[value]; + case 139: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum10.values[value]; + case 140: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum11.values[value]; + case 141: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum12.values[value]; + case 142: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum13.values[value]; + case 143: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum14.values[value]; + case 144: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum15.values[value]; + case 145: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum16.values[value]; + case 146: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum17.values[value]; + case 147: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum18.values[value]; + case 148: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum19.values[value]; + case 149: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum20.values[value]; + case 150: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum21.values[value]; + case 151: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum22.values[value]; + case 152: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum23.values[value]; + case 153: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum24.values[value]; + case 154: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum25.values[value]; + case 155: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum26.values[value]; + case 156: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum27.values[value]; + case 157: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum28.values[value]; + case 158: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum29.values[value]; + case 159: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum30.values[value]; + case 160: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum31.values[value]; + case 161: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum32.values[value]; + case 162: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum33.values[value]; + case 163: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum34.values[value]; + case 164: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum35.values[value]; + case 165: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum36.values[value]; + case 166: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum37.values[value]; + case 167: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum38.values[value]; + case 168: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum39.values[value]; + case 169: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum40.values[value]; + case 170: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum41.values[value]; + case 171: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum42.values[value]; + case 172: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum43.values[value]; + case 173: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum44.values[value]; + case 174: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum45.values[value]; + case 175: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum46.values[value]; + case 176: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum47.values[value]; + case 177: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum48.values[value]; + case 178: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum49.values[value]; + case 179: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum50.values[value]; + case 180: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum51.values[value]; + case 181: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum52.values[value]; + case 182: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum53.values[value]; + case 183: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum54.values[value]; + case 184: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum55.values[value]; + case 185: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum56.values[value]; + case 186: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum57.values[value]; + case 187: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum58.values[value]; + case 188: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum59.values[value]; + case 189: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum60.values[value]; + case 190: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum61.values[value]; + case 191: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum62.values[value]; + case 192: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum63.values[value]; + case 193: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum64.values[value]; + case 194: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum65.values[value]; + case 195: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum66.values[value]; + case 196: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum67.values[value]; + case 197: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum68.values[value]; + case 198: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum69.values[value]; + case 199: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum70.values[value]; + case 200: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum71.values[value]; + case 201: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum72.values[value]; + case 202: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum73.values[value]; + case 203: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum74.values[value]; + case 204: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum75.values[value]; + case 205: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum76.values[value]; + case 206: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum77.values[value]; + case 207: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum78.values[value]; + case 208: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum79.values[value]; + case 209: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum80.values[value]; + case 210: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum81.values[value]; + case 211: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum82.values[value]; + case 212: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum83.values[value]; + case 213: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum84.values[value]; + case 214: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum85.values[value]; + case 215: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum86.values[value]; + case 216: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum87.values[value]; + case 217: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum88.values[value]; + case 218: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum89.values[value]; + case 219: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum90.values[value]; + case 220: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum91.values[value]; + case 221: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum92.values[value]; + case 222: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum93.values[value]; + case 223: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum94.values[value]; + case 224: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum95.values[value]; + case 225: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum96.values[value]; + case 226: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum97.values[value]; + case 227: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum98.values[value]; + case 228: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum99.values[value]; + case 229: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum100.values[value]; + case 230: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum101.values[value]; + case 231: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum102.values[value]; + case 232: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum103.values[value]; + case 233: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum104.values[value]; + case 234: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum105.values[value]; + case 235: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum106.values[value]; + case 236: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum107.values[value]; + case 237: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum108.values[value]; + case 238: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum109.values[value]; + case 239: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum110.values[value]; + case 240: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum111.values[value]; + case 241: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum112.values[value]; + case 242: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum113.values[value]; + case 243: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum114.values[value]; + case 244: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum115.values[value]; + case 245: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum116.values[value]; + case 246: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum117.values[value]; + case 247: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum118.values[value]; + case 248: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum119.values[value]; + case 249: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum120.values[value]; + case 250: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum121.values[value]; + case 251: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum122.values[value]; + case 252: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum123.values[value]; + case 253: + final int? value = readValue(buffer) as int?; + return value == null ? null : FillerEnum124.values[value]; + case 254: final int? value = readValue(buffer) as int?; return value == null ? null : AnEnum.values[value]; - case 130: - return AllTypes.decode(readValue(buffer)!); - case 131: - return AllNullableTypes.decode(readValue(buffer)!); - case 132: - return AllNullableTypesWithoutRecursion.decode(readValue(buffer)!); - case 133: - return AllClassesWrapper.decode(readValue(buffer)!); - case 134: - return TestMessage.decode(readValue(buffer)!); + case 255: + final __pigeon_CodecOverflow wrapper = + __pigeon_CodecOverflow.decode(readValue(buffer)!); + return wrapper.unwrap(); default: return super.readValueOfType(type, buffer); } @@ -948,6 +2273,36 @@ class HostIntegrationCoreApi { } } + /// Returns the passed enum to test serialization and deserialization. + Future echoAnotherEnum(AnotherEnum anotherEnum) async { + final String __pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$__pigeon_messageChannelSuffix'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( + __pigeon_channelName, + pigeonChannelCodec, + binaryMessenger: __pigeon_binaryMessenger, + ); + final List? __pigeon_replyList = + await __pigeon_channel.send([anotherEnum]) as List?; + if (__pigeon_replyList == null) { + throw _createConnectionError(__pigeon_channelName); + } else if (__pigeon_replyList.length > 1) { + throw PlatformException( + code: __pigeon_replyList[0]! as String, + message: __pigeon_replyList[1] as String?, + details: __pigeon_replyList[2], + ); + } else if (__pigeon_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (__pigeon_replyList[0] as AnotherEnum?)!; + } + } + /// Returns the default string. Future echoNamedDefaultString({String aString = 'default'}) async { final String __pigeon_channelName = @@ -1441,6 +2796,30 @@ class HostIntegrationCoreApi { } } + Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { + final String __pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$__pigeon_messageChannelSuffix'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( + __pigeon_channelName, + pigeonChannelCodec, + binaryMessenger: __pigeon_binaryMessenger, + ); + final List? __pigeon_replyList = + await __pigeon_channel.send([anotherEnum]) as List?; + if (__pigeon_replyList == null) { + throw _createConnectionError(__pigeon_channelName); + } else if (__pigeon_replyList.length > 1) { + throw PlatformException( + code: __pigeon_replyList[0]! as String, + message: __pigeon_replyList[1] as String?, + details: __pigeon_replyList[2], + ); + } else { + return (__pigeon_replyList[0] as AnotherEnum?); + } + } + /// Returns passed in int. Future echoOptionalNullableInt([int? aNullableInt]) async { final String __pigeon_channelName = @@ -1788,6 +3167,36 @@ class HostIntegrationCoreApi { } } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { + final String __pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$__pigeon_messageChannelSuffix'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( + __pigeon_channelName, + pigeonChannelCodec, + binaryMessenger: __pigeon_binaryMessenger, + ); + final List? __pigeon_replyList = + await __pigeon_channel.send([anotherEnum]) as List?; + if (__pigeon_replyList == null) { + throw _createConnectionError(__pigeon_channelName); + } else if (__pigeon_replyList.length > 1) { + throw PlatformException( + code: __pigeon_replyList[0]! as String, + message: __pigeon_replyList[1] as String?, + details: __pigeon_replyList[2], + ); + } else if (__pigeon_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (__pigeon_replyList[0] as AnotherEnum?)!; + } + } + /// Responds with an error from an async function returning a value. Future throwAsyncError() async { final String __pigeon_channelName = @@ -2173,6 +3582,32 @@ class HostIntegrationCoreApi { } } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + Future echoAnotherAsyncNullableEnum( + AnotherEnum? anotherEnum) async { + final String __pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$__pigeon_messageChannelSuffix'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( + __pigeon_channelName, + pigeonChannelCodec, + binaryMessenger: __pigeon_binaryMessenger, + ); + final List? __pigeon_replyList = + await __pigeon_channel.send([anotherEnum]) as List?; + if (__pigeon_replyList == null) { + throw _createConnectionError(__pigeon_channelName); + } else if (__pigeon_replyList.length > 1) { + throw PlatformException( + code: __pigeon_replyList[0]! as String, + message: __pigeon_replyList[1] as String?, + details: __pigeon_replyList[2], + ); + } else { + return (__pigeon_replyList[0] as AnotherEnum?); + } + } + Future callFlutterNoop() async { final String __pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$__pigeon_messageChannelSuffix'; @@ -2622,6 +4057,36 @@ class HostIntegrationCoreApi { } } + Future callFlutterEchoAnotherEnum( + AnotherEnum anotherEnum) async { + final String __pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$__pigeon_messageChannelSuffix'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( + __pigeon_channelName, + pigeonChannelCodec, + binaryMessenger: __pigeon_binaryMessenger, + ); + final List? __pigeon_replyList = + await __pigeon_channel.send([anotherEnum]) as List?; + if (__pigeon_replyList == null) { + throw _createConnectionError(__pigeon_channelName); + } else if (__pigeon_replyList.length > 1) { + throw PlatformException( + code: __pigeon_replyList[0]! as String, + message: __pigeon_replyList[1] as String?, + details: __pigeon_replyList[2], + ); + } else if (__pigeon_replyList[0] == null) { + throw PlatformException( + code: 'null-error', + message: 'Host platform returned null value for non-null return value.', + ); + } else { + return (__pigeon_replyList[0] as AnotherEnum?)!; + } + } + Future callFlutterEchoNullableBool(bool? aBool) async { final String __pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$__pigeon_messageChannelSuffix'; @@ -2817,6 +4282,31 @@ class HostIntegrationCoreApi { } } + Future callFlutterEchoAnotherNullableEnum( + AnotherEnum? anotherEnum) async { + final String __pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$__pigeon_messageChannelSuffix'; + final BasicMessageChannel __pigeon_channel = + BasicMessageChannel( + __pigeon_channelName, + pigeonChannelCodec, + binaryMessenger: __pigeon_binaryMessenger, + ); + final List? __pigeon_replyList = + await __pigeon_channel.send([anotherEnum]) as List?; + if (__pigeon_replyList == null) { + throw _createConnectionError(__pigeon_channelName); + } else if (__pigeon_replyList.length > 1) { + throw PlatformException( + code: __pigeon_replyList[0]! as String, + message: __pigeon_replyList[1] as String?, + details: __pigeon_replyList[2], + ); + } else { + return (__pigeon_replyList[0] as AnotherEnum?); + } + } + Future callFlutterSmallApiEchoString(String aString) async { final String __pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$__pigeon_messageChannelSuffix'; @@ -2908,6 +4398,9 @@ abstract class FlutterIntegrationCoreApi { /// Returns the passed enum to test serialization and deserialization. AnEnum echoEnum(AnEnum anEnum); + /// Returns the passed enum to test serialization and deserialization. + AnotherEnum echoAnotherEnum(AnotherEnum anotherEnum); + /// Returns the passed boolean, to test serialization and deserialization. bool? echoNullableBool(bool? aBool); @@ -2932,6 +4425,9 @@ abstract class FlutterIntegrationCoreApi { /// Returns the passed enum to test serialization and deserialization. AnEnum? echoNullableEnum(AnEnum? anEnum); + /// Returns the passed enum to test serialization and deserialization. + AnotherEnum? echoAnotherNullableEnum(AnotherEnum? anotherEnum); + /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. Future noopAsync(); @@ -3381,6 +4877,34 @@ abstract class FlutterIntegrationCoreApi { }); } } + { + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + __pigeon_channel.setMessageHandler(null); + } else { + __pigeon_channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.'); + final List args = (message as List?)!; + final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); + assert(arg_anotherEnum != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null, expected non-null AnotherEnum.'); + try { + final AnotherEnum output = api.echoAnotherEnum(arg_anotherEnum!); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } { final BasicMessageChannel __pigeon_channel = BasicMessageChannel< Object?>( @@ -3591,6 +5115,33 @@ abstract class FlutterIntegrationCoreApi { }); } } + { + final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (api == null) { + __pigeon_channel.setMessageHandler(null); + } else { + __pigeon_channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.'); + final List args = (message as List?)!; + final AnotherEnum? arg_anotherEnum = (args[0] as AnotherEnum?); + try { + final AnotherEnum? output = + api.echoAnotherNullableEnum(arg_anotherEnum); + return wrapResponse(result: output); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } { final BasicMessageChannel __pigeon_channel = BasicMessageChannel< Object?>( diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index bb7c03a99bf..273507e2c61 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -36,427 +36,2622 @@ private fun createConnectionError(channelName: String): FlutterError { "channel-error", "Unable to establish connection on channel: '$channelName'.", "") } -enum class AnEnum(val raw: Int) { - ONE(0), - TWO(1), - THREE(2), - FORTY_TWO(3), - FOUR_HUNDRED_TWENTY_TWO(4); +enum class FillerEnum0(val raw: Int) { + FILLER_MEMBER0(0); companion object { - fun ofRaw(raw: Int): AnEnum? { + fun ofRaw(raw: Int): FillerEnum0? { return values().firstOrNull { it.raw == raw } } } } -/** - * A class containing all supported types. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllTypes( - val aBool: Boolean, - val anInt: Long, - val anInt64: Long, - val aDouble: Double, - val aByteArray: ByteArray, - val a4ByteArray: IntArray, - val a8ByteArray: LongArray, - val aFloatArray: DoubleArray, - val anEnum: AnEnum, - val aString: String, - val anObject: Any, - val list: List, - val stringList: List, - val intList: List, - val doubleList: List, - val boolList: List, - val map: Map -) { +enum class FillerEnum1(val raw: Int) { + FILLER_MEMBER1(0); + companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllTypes { - val aBool = __pigeon_list[0] as Boolean - val anInt = __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long } - val anInt64 = __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long } - val aDouble = __pigeon_list[3] as Double - val aByteArray = __pigeon_list[4] as ByteArray - val a4ByteArray = __pigeon_list[5] as IntArray - val a8ByteArray = __pigeon_list[6] as LongArray - val aFloatArray = __pigeon_list[7] as DoubleArray - val anEnum = __pigeon_list[8] as AnEnum - val aString = __pigeon_list[9] as String - val anObject = __pigeon_list[10] as Any - val list = __pigeon_list[11] as List - val stringList = __pigeon_list[12] as List - val intList = __pigeon_list[13] as List - val doubleList = __pigeon_list[14] as List - val boolList = __pigeon_list[15] as List - val map = __pigeon_list[16] as Map - return AllTypes( - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - map) + fun ofRaw(raw: Int): FillerEnum1? { + return values().firstOrNull { it.raw == raw } } } - - fun toList(): List { - return listOf( - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - map, - ) - } } -/** - * A class containing all supported nullable types. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllNullableTypes( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val nullableNestedList: List?>? = null, - val nullableMapWithAnnotations: Map? = null, - val nullableMapWithObject: Map? = null, - val aNullableEnum: AnEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val allNullableTypes: AllNullableTypes? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val nestedClassList: List? = null, - val map: Map? = null -) { +enum class FillerEnum2(val raw: Int) { + FILLER_MEMBER2(0); + companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllNullableTypes { - val aNullableBool = __pigeon_list[0] as Boolean? - val aNullableInt = - __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableInt64 = - __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = __pigeon_list[3] as Double? - val aNullableByteArray = __pigeon_list[4] as ByteArray? - val aNullable4ByteArray = __pigeon_list[5] as IntArray? - val aNullable8ByteArray = __pigeon_list[6] as LongArray? - val aNullableFloatArray = __pigeon_list[7] as DoubleArray? - val nullableNestedList = __pigeon_list[8] as List?>? - val nullableMapWithAnnotations = __pigeon_list[9] as Map? - val nullableMapWithObject = __pigeon_list[10] as Map? - val aNullableEnum = __pigeon_list[11] as AnEnum? - val aNullableString = __pigeon_list[12] as String? - val aNullableObject = __pigeon_list[13] - val allNullableTypes = __pigeon_list[14] as AllNullableTypes? - val list = __pigeon_list[15] as List? - val stringList = __pigeon_list[16] as List? - val intList = __pigeon_list[17] as List? - val doubleList = __pigeon_list[18] as List? - val boolList = __pigeon_list[19] as List? - val nestedClassList = __pigeon_list[20] as List? - val map = __pigeon_list[21] as Map? - return AllNullableTypes( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - nestedClassList, - map) + fun ofRaw(raw: Int): FillerEnum2? { + return values().firstOrNull { it.raw == raw } } } +} - fun toList(): List { - return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - nestedClassList, - map, - ) +enum class FillerEnum3(val raw: Int) { + FILLER_MEMBER3(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum3? { + return values().firstOrNull { it.raw == raw } + } } } -/** - * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, as - * the primary [AllNullableTypes] class is being used to test Swift classes. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllNullableTypesWithoutRecursion( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val nullableNestedList: List?>? = null, - val nullableMapWithAnnotations: Map? = null, - val nullableMapWithObject: Map? = null, - val aNullableEnum: AnEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val map: Map? = null -) { +enum class FillerEnum4(val raw: Int) { + FILLER_MEMBER4(0); + companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllNullableTypesWithoutRecursion { - val aNullableBool = __pigeon_list[0] as Boolean? - val aNullableInt = - __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableInt64 = - __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = __pigeon_list[3] as Double? - val aNullableByteArray = __pigeon_list[4] as ByteArray? - val aNullable4ByteArray = __pigeon_list[5] as IntArray? - val aNullable8ByteArray = __pigeon_list[6] as LongArray? - val aNullableFloatArray = __pigeon_list[7] as DoubleArray? - val nullableNestedList = __pigeon_list[8] as List?>? - val nullableMapWithAnnotations = __pigeon_list[9] as Map? - val nullableMapWithObject = __pigeon_list[10] as Map? - val aNullableEnum = __pigeon_list[11] as AnEnum? - val aNullableString = __pigeon_list[12] as String? - val aNullableObject = __pigeon_list[13] - val list = __pigeon_list[14] as List? - val stringList = __pigeon_list[15] as List? - val intList = __pigeon_list[16] as List? - val doubleList = __pigeon_list[17] as List? - val boolList = __pigeon_list[18] as List? - val map = __pigeon_list[19] as Map? - return AllNullableTypesWithoutRecursion( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - map) + fun ofRaw(raw: Int): FillerEnum4? { + return values().firstOrNull { it.raw == raw } } } +} - fun toList(): List { - return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - map, - ) +enum class FillerEnum5(val raw: Int) { + FILLER_MEMBER5(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum5? { + return values().firstOrNull { it.raw == raw } + } } } -/** - * A class for testing nested class handling. - * - * This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is - * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require - * both (ie. testing null classes). - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllClassesWrapper( - val allNullableTypes: AllNullableTypes, - val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, - val allTypes: AllTypes? = null -) { +enum class FillerEnum6(val raw: Int) { + FILLER_MEMBER6(0); + companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllClassesWrapper { - val allNullableTypes = __pigeon_list[0] as AllNullableTypes - val allNullableTypesWithoutRecursion = __pigeon_list[1] as AllNullableTypesWithoutRecursion? - val allTypes = __pigeon_list[2] as AllTypes? - return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes) + fun ofRaw(raw: Int): FillerEnum6? { + return values().firstOrNull { it.raw == raw } } } +} - fun toList(): List { - return listOf( - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - ) +enum class FillerEnum7(val raw: Int) { + FILLER_MEMBER7(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum7? { + return values().firstOrNull { it.raw == raw } + } } } -/** - * A data class containing a List, used in unit tests. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class TestMessage(val testList: List? = null) { +enum class FillerEnum8(val raw: Int) { + FILLER_MEMBER8(0); + companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): TestMessage { - val testList = __pigeon_list[0] as List? - return TestMessage(testList) + fun ofRaw(raw: Int): FillerEnum8? { + return values().firstOrNull { it.raw == raw } } } +} - fun toList(): List { - return listOf( - testList, - ) +enum class FillerEnum9(val raw: Int) { + FILLER_MEMBER9(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum9? { + return values().firstOrNull { it.raw == raw } + } } } -private object CoreTestsPigeonCodec : StandardMessageCodec() { - override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { - return when (type) { - 129.toByte() -> { - return (readValue(buffer) as Int?)?.let { AnEnum.ofRaw(it) } +enum class FillerEnum10(val raw: Int) { + FILLER_MEMBER10(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum10? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum11(val raw: Int) { + FILLER_MEMBER11(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum11? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum12(val raw: Int) { + FILLER_MEMBER12(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum12? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum13(val raw: Int) { + FILLER_MEMBER13(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum13? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum14(val raw: Int) { + FILLER_MEMBER14(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum14? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum15(val raw: Int) { + FILLER_MEMBER15(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum15? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum16(val raw: Int) { + FILLER_MEMBER16(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum16? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum17(val raw: Int) { + FILLER_MEMBER17(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum17? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum18(val raw: Int) { + FILLER_MEMBER18(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum18? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum19(val raw: Int) { + FILLER_MEMBER19(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum19? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum20(val raw: Int) { + FILLER_MEMBER20(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum20? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum21(val raw: Int) { + FILLER_MEMBER21(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum21? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum22(val raw: Int) { + FILLER_MEMBER22(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum22? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum23(val raw: Int) { + FILLER_MEMBER23(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum23? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum24(val raw: Int) { + FILLER_MEMBER24(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum24? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum25(val raw: Int) { + FILLER_MEMBER25(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum25? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum26(val raw: Int) { + FILLER_MEMBER26(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum26? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum27(val raw: Int) { + FILLER_MEMBER27(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum27? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum28(val raw: Int) { + FILLER_MEMBER28(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum28? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum29(val raw: Int) { + FILLER_MEMBER29(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum29? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum30(val raw: Int) { + FILLER_MEMBER30(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum30? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum31(val raw: Int) { + FILLER_MEMBER31(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum31? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum32(val raw: Int) { + FILLER_MEMBER32(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum32? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum33(val raw: Int) { + FILLER_MEMBER33(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum33? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum34(val raw: Int) { + FILLER_MEMBER34(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum34? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum35(val raw: Int) { + FILLER_MEMBER35(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum35? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum36(val raw: Int) { + FILLER_MEMBER36(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum36? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum37(val raw: Int) { + FILLER_MEMBER37(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum37? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum38(val raw: Int) { + FILLER_MEMBER38(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum38? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum39(val raw: Int) { + FILLER_MEMBER39(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum39? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum40(val raw: Int) { + FILLER_MEMBER40(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum40? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum41(val raw: Int) { + FILLER_MEMBER41(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum41? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum42(val raw: Int) { + FILLER_MEMBER42(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum42? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum43(val raw: Int) { + FILLER_MEMBER43(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum43? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum44(val raw: Int) { + FILLER_MEMBER44(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum44? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum45(val raw: Int) { + FILLER_MEMBER45(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum45? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum46(val raw: Int) { + FILLER_MEMBER46(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum46? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum47(val raw: Int) { + FILLER_MEMBER47(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum47? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum48(val raw: Int) { + FILLER_MEMBER48(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum48? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum49(val raw: Int) { + FILLER_MEMBER49(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum49? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum50(val raw: Int) { + FILLER_MEMBER50(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum50? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum51(val raw: Int) { + FILLER_MEMBER51(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum51? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum52(val raw: Int) { + FILLER_MEMBER52(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum52? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum53(val raw: Int) { + FILLER_MEMBER53(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum53? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum54(val raw: Int) { + FILLER_MEMBER54(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum54? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum55(val raw: Int) { + FILLER_MEMBER55(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum55? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum56(val raw: Int) { + FILLER_MEMBER56(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum56? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum57(val raw: Int) { + FILLER_MEMBER57(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum57? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum58(val raw: Int) { + FILLER_MEMBER58(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum58? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum59(val raw: Int) { + FILLER_MEMBER59(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum59? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum60(val raw: Int) { + FILLER_MEMBER60(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum60? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum61(val raw: Int) { + FILLER_MEMBER61(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum61? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum62(val raw: Int) { + FILLER_MEMBER62(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum62? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum63(val raw: Int) { + FILLER_MEMBER63(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum63? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum64(val raw: Int) { + FILLER_MEMBER64(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum64? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum65(val raw: Int) { + FILLER_MEMBER65(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum65? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum66(val raw: Int) { + FILLER_MEMBER66(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum66? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum67(val raw: Int) { + FILLER_MEMBER67(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum67? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum68(val raw: Int) { + FILLER_MEMBER68(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum68? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum69(val raw: Int) { + FILLER_MEMBER69(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum69? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum70(val raw: Int) { + FILLER_MEMBER70(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum70? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum71(val raw: Int) { + FILLER_MEMBER71(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum71? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum72(val raw: Int) { + FILLER_MEMBER72(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum72? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum73(val raw: Int) { + FILLER_MEMBER73(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum73? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum74(val raw: Int) { + FILLER_MEMBER74(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum74? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum75(val raw: Int) { + FILLER_MEMBER75(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum75? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum76(val raw: Int) { + FILLER_MEMBER76(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum76? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum77(val raw: Int) { + FILLER_MEMBER77(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum77? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum78(val raw: Int) { + FILLER_MEMBER78(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum78? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum79(val raw: Int) { + FILLER_MEMBER79(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum79? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum80(val raw: Int) { + FILLER_MEMBER80(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum80? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum81(val raw: Int) { + FILLER_MEMBER81(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum81? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum82(val raw: Int) { + FILLER_MEMBER82(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum82? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum83(val raw: Int) { + FILLER_MEMBER83(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum83? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum84(val raw: Int) { + FILLER_MEMBER84(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum84? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum85(val raw: Int) { + FILLER_MEMBER85(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum85? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum86(val raw: Int) { + FILLER_MEMBER86(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum86? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum87(val raw: Int) { + FILLER_MEMBER87(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum87? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum88(val raw: Int) { + FILLER_MEMBER88(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum88? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum89(val raw: Int) { + FILLER_MEMBER89(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum89? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum90(val raw: Int) { + FILLER_MEMBER90(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum90? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum91(val raw: Int) { + FILLER_MEMBER91(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum91? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum92(val raw: Int) { + FILLER_MEMBER92(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum92? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum93(val raw: Int) { + FILLER_MEMBER93(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum93? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum94(val raw: Int) { + FILLER_MEMBER94(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum94? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum95(val raw: Int) { + FILLER_MEMBER95(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum95? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum96(val raw: Int) { + FILLER_MEMBER96(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum96? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum97(val raw: Int) { + FILLER_MEMBER97(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum97? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum98(val raw: Int) { + FILLER_MEMBER98(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum98? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum99(val raw: Int) { + FILLER_MEMBER99(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum99? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum100(val raw: Int) { + FILLER_MEMBER100(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum100? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum101(val raw: Int) { + FILLER_MEMBER101(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum101? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum102(val raw: Int) { + FILLER_MEMBER102(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum102? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum103(val raw: Int) { + FILLER_MEMBER103(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum103? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum104(val raw: Int) { + FILLER_MEMBER104(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum104? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum105(val raw: Int) { + FILLER_MEMBER105(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum105? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum106(val raw: Int) { + FILLER_MEMBER106(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum106? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum107(val raw: Int) { + FILLER_MEMBER107(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum107? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum108(val raw: Int) { + FILLER_MEMBER108(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum108? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum109(val raw: Int) { + FILLER_MEMBER109(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum109? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum110(val raw: Int) { + FILLER_MEMBER110(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum110? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum111(val raw: Int) { + FILLER_MEMBER111(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum111? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum112(val raw: Int) { + FILLER_MEMBER112(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum112? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum113(val raw: Int) { + FILLER_MEMBER113(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum113? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum114(val raw: Int) { + FILLER_MEMBER114(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum114? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum115(val raw: Int) { + FILLER_MEMBER115(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum115? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum116(val raw: Int) { + FILLER_MEMBER116(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum116? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum117(val raw: Int) { + FILLER_MEMBER117(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum117? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum118(val raw: Int) { + FILLER_MEMBER118(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum118? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum119(val raw: Int) { + FILLER_MEMBER119(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum119? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum120(val raw: Int) { + FILLER_MEMBER120(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum120? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum121(val raw: Int) { + FILLER_MEMBER121(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum121? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum122(val raw: Int) { + FILLER_MEMBER122(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum122? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum123(val raw: Int) { + FILLER_MEMBER123(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum123? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class FillerEnum124(val raw: Int) { + FILLER_MEMBER124(0); + + companion object { + fun ofRaw(raw: Int): FillerEnum124? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class AnEnum(val raw: Int) { + ONE(0), + TWO(1), + THREE(2), + FORTY_TWO(3), + FOUR_HUNDRED_TWENTY_TWO(4); + + companion object { + fun ofRaw(raw: Int): AnEnum? { + return values().firstOrNull { it.raw == raw } + } + } +} + +enum class AnotherEnum(val raw: Int) { + JUST_IN_CASE(0); + + companion object { + fun ofRaw(raw: Int): AnotherEnum? { + return values().firstOrNull { it.raw == raw } + } + } +} + +/** + * A class containing all supported types. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllTypes( + val aBool: Boolean, + val anInt: Long, + val anInt64: Long, + val aDouble: Double, + val aByteArray: ByteArray, + val a4ByteArray: IntArray, + val a8ByteArray: LongArray, + val aFloatArray: DoubleArray, + val anEnum: AnEnum, + val anotherEnum: AnotherEnum, + val aString: String, + val anObject: Any, + val list: List, + val stringList: List, + val intList: List, + val doubleList: List, + val boolList: List, + val map: Map +) { + companion object { + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllTypes { + val aBool = __pigeon_list[0] as Boolean + val anInt = __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long } + val anInt64 = __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long } + val aDouble = __pigeon_list[3] as Double + val aByteArray = __pigeon_list[4] as ByteArray + val a4ByteArray = __pigeon_list[5] as IntArray + val a8ByteArray = __pigeon_list[6] as LongArray + val aFloatArray = __pigeon_list[7] as DoubleArray + val anEnum = __pigeon_list[8] as AnEnum + val anotherEnum = __pigeon_list[9] as AnotherEnum + val aString = __pigeon_list[10] as String + val anObject = __pigeon_list[11] as Any + val list = __pigeon_list[12] as List + val stringList = __pigeon_list[13] as List + val intList = __pigeon_list[14] as List + val doubleList = __pigeon_list[15] as List + val boolList = __pigeon_list[16] as List + val map = __pigeon_list[17] as Map + return AllTypes( + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + map) + } + } + + fun toList(): List { + return listOf( + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + map, + ) + } +} + +/** + * A class containing all supported nullable types. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllNullableTypes( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val nullableNestedList: List?>? = null, + val nullableMapWithAnnotations: Map? = null, + val nullableMapWithObject: Map? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val allNullableTypes: AllNullableTypes? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val nestedClassList: List? = null, + val map: Map? = null +) { + companion object { + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllNullableTypes { + val aNullableBool = __pigeon_list[0] as Boolean? + val aNullableInt = + __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableInt64 = + __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = __pigeon_list[3] as Double? + val aNullableByteArray = __pigeon_list[4] as ByteArray? + val aNullable4ByteArray = __pigeon_list[5] as IntArray? + val aNullable8ByteArray = __pigeon_list[6] as LongArray? + val aNullableFloatArray = __pigeon_list[7] as DoubleArray? + val nullableNestedList = __pigeon_list[8] as List?>? + val nullableMapWithAnnotations = __pigeon_list[9] as Map? + val nullableMapWithObject = __pigeon_list[10] as Map? + val aNullableEnum = __pigeon_list[11] as AnEnum? + val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? + val aNullableString = __pigeon_list[13] as String? + val aNullableObject = __pigeon_list[14] + val allNullableTypes = __pigeon_list[15] as AllNullableTypes? + val list = __pigeon_list[16] as List? + val stringList = __pigeon_list[17] as List? + val intList = __pigeon_list[18] as List? + val doubleList = __pigeon_list[19] as List? + val boolList = __pigeon_list[20] as List? + val nestedClassList = __pigeon_list[21] as List? + val map = __pigeon_list[22] as Map? + return AllNullableTypes( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + nestedClassList, + map) + } + } + + fun toList(): List { + return listOf( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + nestedClassList, + map, + ) + } +} + +/** + * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, as + * the primary [AllNullableTypes] class is being used to test Swift classes. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllNullableTypesWithoutRecursion( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val nullableNestedList: List?>? = null, + val nullableMapWithAnnotations: Map? = null, + val nullableMapWithObject: Map? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val map: Map? = null +) { + companion object { + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllNullableTypesWithoutRecursion { + val aNullableBool = __pigeon_list[0] as Boolean? + val aNullableInt = + __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableInt64 = + __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = __pigeon_list[3] as Double? + val aNullableByteArray = __pigeon_list[4] as ByteArray? + val aNullable4ByteArray = __pigeon_list[5] as IntArray? + val aNullable8ByteArray = __pigeon_list[6] as LongArray? + val aNullableFloatArray = __pigeon_list[7] as DoubleArray? + val nullableNestedList = __pigeon_list[8] as List?>? + val nullableMapWithAnnotations = __pigeon_list[9] as Map? + val nullableMapWithObject = __pigeon_list[10] as Map? + val aNullableEnum = __pigeon_list[11] as AnEnum? + val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? + val aNullableString = __pigeon_list[13] as String? + val aNullableObject = __pigeon_list[14] + val list = __pigeon_list[15] as List? + val stringList = __pigeon_list[16] as List? + val intList = __pigeon_list[17] as List? + val doubleList = __pigeon_list[18] as List? + val boolList = __pigeon_list[19] as List? + val map = __pigeon_list[20] as Map? + return AllNullableTypesWithoutRecursion( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + map) + } + } + + fun toList(): List { + return listOf( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + map, + ) + } +} + +/** + * A class for testing nested class handling. + * + * This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is + * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require + * both (ie. testing null classes). + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllClassesWrapper( + val allNullableTypes: AllNullableTypes, + val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, + val allTypes: AllTypes? = null +) { + companion object { + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllClassesWrapper { + val allNullableTypes = __pigeon_list[0] as AllNullableTypes + val allNullableTypesWithoutRecursion = __pigeon_list[1] as AllNullableTypesWithoutRecursion? + val allTypes = __pigeon_list[2] as AllTypes? + return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes) + } + } + + fun toList(): List { + return listOf( + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + ) + } +} + +/** + * A data class containing a List, used in unit tests. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class TestMessage(val testList: List? = null) { + companion object { + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): TestMessage { + val testList = __pigeon_list[0] as List? + return TestMessage(testList) + } + } + + fun toList(): List { + return listOf( + testList, + ) + } +} + +@Suppress("ClassName") +data class CoreTests__pigeon_CodecOverflow(val type: Int, val wrapped: Any? = null) { + fun toList(): List { + return listOf( + type, + wrapped, + ) + } + + companion object { + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): Any? { + val wrapper = + CoreTests__pigeon_CodecOverflow( + type = __pigeon_list[0] as Int, + wrapped = __pigeon_list[1], + ) + return wrapper.unwrap() + } + } + + fun unwrap(): Any? { + if (wrapped == null) { + return null + } + + when (type) { + 0 -> { + return AnotherEnum.ofRaw(wrapped as Int) + } + 1 -> { + return AllTypes.fromList(wrapped as List) + } + 2 -> { + return AllNullableTypes.fromList(wrapped as List) + } + 3 -> { + return AllNullableTypesWithoutRecursion.fromList(wrapped as List) + } + 4 -> { + return AllClassesWrapper.fromList(wrapped as List) + } + 5 -> { + return TestMessage.fromList(wrapped as List) + } + } + return null + } +} + +private object CoreTestsPigeonCodec : StandardMessageCodec() { + override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { + return when (type) { + 129.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum0.ofRaw(it) } + } + 130.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum1.ofRaw(it) } + } + 131.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum2.ofRaw(it) } + } + 132.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum3.ofRaw(it) } + } + 133.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum4.ofRaw(it) } + } + 134.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum5.ofRaw(it) } + } + 135.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum6.ofRaw(it) } + } + 136.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum7.ofRaw(it) } + } + 137.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum8.ofRaw(it) } + } + 138.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum9.ofRaw(it) } + } + 139.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum10.ofRaw(it) } + } + 140.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum11.ofRaw(it) } + } + 141.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum12.ofRaw(it) } + } + 142.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum13.ofRaw(it) } + } + 143.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum14.ofRaw(it) } + } + 144.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum15.ofRaw(it) } + } + 145.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum16.ofRaw(it) } + } + 146.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum17.ofRaw(it) } + } + 147.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum18.ofRaw(it) } + } + 148.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum19.ofRaw(it) } + } + 149.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum20.ofRaw(it) } + } + 150.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum21.ofRaw(it) } + } + 151.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum22.ofRaw(it) } + } + 152.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum23.ofRaw(it) } + } + 153.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum24.ofRaw(it) } + } + 154.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum25.ofRaw(it) } + } + 155.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum26.ofRaw(it) } + } + 156.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum27.ofRaw(it) } + } + 157.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum28.ofRaw(it) } + } + 158.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum29.ofRaw(it) } + } + 159.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum30.ofRaw(it) } + } + 160.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum31.ofRaw(it) } + } + 161.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum32.ofRaw(it) } + } + 162.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum33.ofRaw(it) } + } + 163.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum34.ofRaw(it) } + } + 164.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum35.ofRaw(it) } + } + 165.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum36.ofRaw(it) } + } + 166.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum37.ofRaw(it) } + } + 167.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum38.ofRaw(it) } + } + 168.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum39.ofRaw(it) } + } + 169.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum40.ofRaw(it) } + } + 170.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum41.ofRaw(it) } + } + 171.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum42.ofRaw(it) } + } + 172.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum43.ofRaw(it) } + } + 173.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum44.ofRaw(it) } + } + 174.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum45.ofRaw(it) } + } + 175.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum46.ofRaw(it) } + } + 176.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum47.ofRaw(it) } + } + 177.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum48.ofRaw(it) } + } + 178.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum49.ofRaw(it) } + } + 179.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum50.ofRaw(it) } + } + 180.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum51.ofRaw(it) } + } + 181.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum52.ofRaw(it) } + } + 182.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum53.ofRaw(it) } + } + 183.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum54.ofRaw(it) } + } + 184.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum55.ofRaw(it) } + } + 185.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum56.ofRaw(it) } + } + 186.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum57.ofRaw(it) } + } + 187.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum58.ofRaw(it) } + } + 188.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum59.ofRaw(it) } + } + 189.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum60.ofRaw(it) } + } + 190.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum61.ofRaw(it) } + } + 191.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum62.ofRaw(it) } + } + 192.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum63.ofRaw(it) } + } + 193.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum64.ofRaw(it) } + } + 194.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum65.ofRaw(it) } + } + 195.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum66.ofRaw(it) } + } + 196.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum67.ofRaw(it) } + } + 197.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum68.ofRaw(it) } + } + 198.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum69.ofRaw(it) } + } + 199.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum70.ofRaw(it) } + } + 200.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum71.ofRaw(it) } + } + 201.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum72.ofRaw(it) } + } + 202.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum73.ofRaw(it) } + } + 203.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum74.ofRaw(it) } + } + 204.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum75.ofRaw(it) } + } + 205.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum76.ofRaw(it) } + } + 206.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum77.ofRaw(it) } + } + 207.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum78.ofRaw(it) } + } + 208.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum79.ofRaw(it) } + } + 209.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum80.ofRaw(it) } + } + 210.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum81.ofRaw(it) } + } + 211.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum82.ofRaw(it) } + } + 212.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum83.ofRaw(it) } + } + 213.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum84.ofRaw(it) } + } + 214.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum85.ofRaw(it) } + } + 215.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum86.ofRaw(it) } + } + 216.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum87.ofRaw(it) } + } + 217.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum88.ofRaw(it) } + } + 218.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum89.ofRaw(it) } + } + 219.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum90.ofRaw(it) } + } + 220.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum91.ofRaw(it) } + } + 221.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum92.ofRaw(it) } + } + 222.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum93.ofRaw(it) } + } + 223.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum94.ofRaw(it) } + } + 224.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum95.ofRaw(it) } + } + 225.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum96.ofRaw(it) } + } + 226.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum97.ofRaw(it) } + } + 227.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum98.ofRaw(it) } + } + 228.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum99.ofRaw(it) } + } + 229.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum100.ofRaw(it) } + } + 230.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum101.ofRaw(it) } + } + 231.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum102.ofRaw(it) } + } + 232.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum103.ofRaw(it) } + } + 233.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum104.ofRaw(it) } + } + 234.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum105.ofRaw(it) } + } + 235.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum106.ofRaw(it) } + } + 236.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum107.ofRaw(it) } + } + 237.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum108.ofRaw(it) } + } + 238.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum109.ofRaw(it) } + } + 239.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum110.ofRaw(it) } + } + 240.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum111.ofRaw(it) } + } + 241.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum112.ofRaw(it) } + } + 242.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum113.ofRaw(it) } + } + 243.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum114.ofRaw(it) } + } + 244.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum115.ofRaw(it) } + } + 245.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum116.ofRaw(it) } + } + 246.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum117.ofRaw(it) } + } + 247.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum118.ofRaw(it) } + } + 248.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum119.ofRaw(it) } + } + 249.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum120.ofRaw(it) } + } + 250.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum121.ofRaw(it) } + } + 251.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum122.ofRaw(it) } + } + 252.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum123.ofRaw(it) } + } + 253.toByte() -> { + return (readValue(buffer) as Int?)?.let { FillerEnum124.ofRaw(it) } + } + 254.toByte() -> { + return (readValue(buffer) as Int?)?.let { AnEnum.ofRaw(it) } + } + 255.toByte() -> { + return (readValue(buffer) as? List)?.let { + CoreTests__pigeon_CodecOverflow.fromList(it) + } + } + else -> super.readValueOfType(type, buffer) + } + } + + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + when (value) { + is FillerEnum0 -> { + stream.write(129) + writeValue(stream, value.raw) + } + is FillerEnum1 -> { + stream.write(130) + writeValue(stream, value.raw) + } + is FillerEnum2 -> { + stream.write(131) + writeValue(stream, value.raw) + } + is FillerEnum3 -> { + stream.write(132) + writeValue(stream, value.raw) + } + is FillerEnum4 -> { + stream.write(133) + writeValue(stream, value.raw) + } + is FillerEnum5 -> { + stream.write(134) + writeValue(stream, value.raw) + } + is FillerEnum6 -> { + stream.write(135) + writeValue(stream, value.raw) + } + is FillerEnum7 -> { + stream.write(136) + writeValue(stream, value.raw) + } + is FillerEnum8 -> { + stream.write(137) + writeValue(stream, value.raw) + } + is FillerEnum9 -> { + stream.write(138) + writeValue(stream, value.raw) + } + is FillerEnum10 -> { + stream.write(139) + writeValue(stream, value.raw) + } + is FillerEnum11 -> { + stream.write(140) + writeValue(stream, value.raw) + } + is FillerEnum12 -> { + stream.write(141) + writeValue(stream, value.raw) + } + is FillerEnum13 -> { + stream.write(142) + writeValue(stream, value.raw) + } + is FillerEnum14 -> { + stream.write(143) + writeValue(stream, value.raw) + } + is FillerEnum15 -> { + stream.write(144) + writeValue(stream, value.raw) + } + is FillerEnum16 -> { + stream.write(145) + writeValue(stream, value.raw) + } + is FillerEnum17 -> { + stream.write(146) + writeValue(stream, value.raw) + } + is FillerEnum18 -> { + stream.write(147) + writeValue(stream, value.raw) + } + is FillerEnum19 -> { + stream.write(148) + writeValue(stream, value.raw) + } + is FillerEnum20 -> { + stream.write(149) + writeValue(stream, value.raw) + } + is FillerEnum21 -> { + stream.write(150) + writeValue(stream, value.raw) + } + is FillerEnum22 -> { + stream.write(151) + writeValue(stream, value.raw) + } + is FillerEnum23 -> { + stream.write(152) + writeValue(stream, value.raw) + } + is FillerEnum24 -> { + stream.write(153) + writeValue(stream, value.raw) + } + is FillerEnum25 -> { + stream.write(154) + writeValue(stream, value.raw) + } + is FillerEnum26 -> { + stream.write(155) + writeValue(stream, value.raw) + } + is FillerEnum27 -> { + stream.write(156) + writeValue(stream, value.raw) + } + is FillerEnum28 -> { + stream.write(157) + writeValue(stream, value.raw) + } + is FillerEnum29 -> { + stream.write(158) + writeValue(stream, value.raw) + } + is FillerEnum30 -> { + stream.write(159) + writeValue(stream, value.raw) + } + is FillerEnum31 -> { + stream.write(160) + writeValue(stream, value.raw) + } + is FillerEnum32 -> { + stream.write(161) + writeValue(stream, value.raw) + } + is FillerEnum33 -> { + stream.write(162) + writeValue(stream, value.raw) + } + is FillerEnum34 -> { + stream.write(163) + writeValue(stream, value.raw) + } + is FillerEnum35 -> { + stream.write(164) + writeValue(stream, value.raw) + } + is FillerEnum36 -> { + stream.write(165) + writeValue(stream, value.raw) + } + is FillerEnum37 -> { + stream.write(166) + writeValue(stream, value.raw) + } + is FillerEnum38 -> { + stream.write(167) + writeValue(stream, value.raw) + } + is FillerEnum39 -> { + stream.write(168) + writeValue(stream, value.raw) + } + is FillerEnum40 -> { + stream.write(169) + writeValue(stream, value.raw) + } + is FillerEnum41 -> { + stream.write(170) + writeValue(stream, value.raw) + } + is FillerEnum42 -> { + stream.write(171) + writeValue(stream, value.raw) + } + is FillerEnum43 -> { + stream.write(172) + writeValue(stream, value.raw) + } + is FillerEnum44 -> { + stream.write(173) + writeValue(stream, value.raw) + } + is FillerEnum45 -> { + stream.write(174) + writeValue(stream, value.raw) + } + is FillerEnum46 -> { + stream.write(175) + writeValue(stream, value.raw) + } + is FillerEnum47 -> { + stream.write(176) + writeValue(stream, value.raw) + } + is FillerEnum48 -> { + stream.write(177) + writeValue(stream, value.raw) + } + is FillerEnum49 -> { + stream.write(178) + writeValue(stream, value.raw) + } + is FillerEnum50 -> { + stream.write(179) + writeValue(stream, value.raw) + } + is FillerEnum51 -> { + stream.write(180) + writeValue(stream, value.raw) + } + is FillerEnum52 -> { + stream.write(181) + writeValue(stream, value.raw) + } + is FillerEnum53 -> { + stream.write(182) + writeValue(stream, value.raw) + } + is FillerEnum54 -> { + stream.write(183) + writeValue(stream, value.raw) + } + is FillerEnum55 -> { + stream.write(184) + writeValue(stream, value.raw) + } + is FillerEnum56 -> { + stream.write(185) + writeValue(stream, value.raw) + } + is FillerEnum57 -> { + stream.write(186) + writeValue(stream, value.raw) + } + is FillerEnum58 -> { + stream.write(187) + writeValue(stream, value.raw) + } + is FillerEnum59 -> { + stream.write(188) + writeValue(stream, value.raw) + } + is FillerEnum60 -> { + stream.write(189) + writeValue(stream, value.raw) + } + is FillerEnum61 -> { + stream.write(190) + writeValue(stream, value.raw) + } + is FillerEnum62 -> { + stream.write(191) + writeValue(stream, value.raw) + } + is FillerEnum63 -> { + stream.write(192) + writeValue(stream, value.raw) + } + is FillerEnum64 -> { + stream.write(193) + writeValue(stream, value.raw) + } + is FillerEnum65 -> { + stream.write(194) + writeValue(stream, value.raw) + } + is FillerEnum66 -> { + stream.write(195) + writeValue(stream, value.raw) + } + is FillerEnum67 -> { + stream.write(196) + writeValue(stream, value.raw) + } + is FillerEnum68 -> { + stream.write(197) + writeValue(stream, value.raw) + } + is FillerEnum69 -> { + stream.write(198) + writeValue(stream, value.raw) + } + is FillerEnum70 -> { + stream.write(199) + writeValue(stream, value.raw) + } + is FillerEnum71 -> { + stream.write(200) + writeValue(stream, value.raw) + } + is FillerEnum72 -> { + stream.write(201) + writeValue(stream, value.raw) + } + is FillerEnum73 -> { + stream.write(202) + writeValue(stream, value.raw) + } + is FillerEnum74 -> { + stream.write(203) + writeValue(stream, value.raw) + } + is FillerEnum75 -> { + stream.write(204) + writeValue(stream, value.raw) + } + is FillerEnum76 -> { + stream.write(205) + writeValue(stream, value.raw) + } + is FillerEnum77 -> { + stream.write(206) + writeValue(stream, value.raw) + } + is FillerEnum78 -> { + stream.write(207) + writeValue(stream, value.raw) + } + is FillerEnum79 -> { + stream.write(208) + writeValue(stream, value.raw) + } + is FillerEnum80 -> { + stream.write(209) + writeValue(stream, value.raw) + } + is FillerEnum81 -> { + stream.write(210) + writeValue(stream, value.raw) + } + is FillerEnum82 -> { + stream.write(211) + writeValue(stream, value.raw) + } + is FillerEnum83 -> { + stream.write(212) + writeValue(stream, value.raw) + } + is FillerEnum84 -> { + stream.write(213) + writeValue(stream, value.raw) + } + is FillerEnum85 -> { + stream.write(214) + writeValue(stream, value.raw) + } + is FillerEnum86 -> { + stream.write(215) + writeValue(stream, value.raw) + } + is FillerEnum87 -> { + stream.write(216) + writeValue(stream, value.raw) + } + is FillerEnum88 -> { + stream.write(217) + writeValue(stream, value.raw) + } + is FillerEnum89 -> { + stream.write(218) + writeValue(stream, value.raw) } - 130.toByte() -> { - return (readValue(buffer) as? List)?.let { AllTypes.fromList(it) } + is FillerEnum90 -> { + stream.write(219) + writeValue(stream, value.raw) } - 131.toByte() -> { - return (readValue(buffer) as? List)?.let { AllNullableTypes.fromList(it) } + is FillerEnum91 -> { + stream.write(220) + writeValue(stream, value.raw) } - 132.toByte() -> { - return (readValue(buffer) as? List)?.let { - AllNullableTypesWithoutRecursion.fromList(it) - } + is FillerEnum92 -> { + stream.write(221) + writeValue(stream, value.raw) } - 133.toByte() -> { - return (readValue(buffer) as? List)?.let { AllClassesWrapper.fromList(it) } + is FillerEnum93 -> { + stream.write(222) + writeValue(stream, value.raw) } - 134.toByte() -> { - return (readValue(buffer) as? List)?.let { TestMessage.fromList(it) } + is FillerEnum94 -> { + stream.write(223) + writeValue(stream, value.raw) + } + is FillerEnum95 -> { + stream.write(224) + writeValue(stream, value.raw) + } + is FillerEnum96 -> { + stream.write(225) + writeValue(stream, value.raw) + } + is FillerEnum97 -> { + stream.write(226) + writeValue(stream, value.raw) + } + is FillerEnum98 -> { + stream.write(227) + writeValue(stream, value.raw) + } + is FillerEnum99 -> { + stream.write(228) + writeValue(stream, value.raw) + } + is FillerEnum100 -> { + stream.write(229) + writeValue(stream, value.raw) + } + is FillerEnum101 -> { + stream.write(230) + writeValue(stream, value.raw) + } + is FillerEnum102 -> { + stream.write(231) + writeValue(stream, value.raw) + } + is FillerEnum103 -> { + stream.write(232) + writeValue(stream, value.raw) + } + is FillerEnum104 -> { + stream.write(233) + writeValue(stream, value.raw) + } + is FillerEnum105 -> { + stream.write(234) + writeValue(stream, value.raw) + } + is FillerEnum106 -> { + stream.write(235) + writeValue(stream, value.raw) + } + is FillerEnum107 -> { + stream.write(236) + writeValue(stream, value.raw) + } + is FillerEnum108 -> { + stream.write(237) + writeValue(stream, value.raw) + } + is FillerEnum109 -> { + stream.write(238) + writeValue(stream, value.raw) + } + is FillerEnum110 -> { + stream.write(239) + writeValue(stream, value.raw) + } + is FillerEnum111 -> { + stream.write(240) + writeValue(stream, value.raw) + } + is FillerEnum112 -> { + stream.write(241) + writeValue(stream, value.raw) + } + is FillerEnum113 -> { + stream.write(242) + writeValue(stream, value.raw) + } + is FillerEnum114 -> { + stream.write(243) + writeValue(stream, value.raw) + } + is FillerEnum115 -> { + stream.write(244) + writeValue(stream, value.raw) + } + is FillerEnum116 -> { + stream.write(245) + writeValue(stream, value.raw) + } + is FillerEnum117 -> { + stream.write(246) + writeValue(stream, value.raw) + } + is FillerEnum118 -> { + stream.write(247) + writeValue(stream, value.raw) + } + is FillerEnum119 -> { + stream.write(248) + writeValue(stream, value.raw) + } + is FillerEnum120 -> { + stream.write(249) + writeValue(stream, value.raw) + } + is FillerEnum121 -> { + stream.write(250) + writeValue(stream, value.raw) + } + is FillerEnum122 -> { + stream.write(251) + writeValue(stream, value.raw) + } + is FillerEnum123 -> { + stream.write(252) + writeValue(stream, value.raw) + } + is FillerEnum124 -> { + stream.write(253) + writeValue(stream, value.raw) } - else -> super.readValueOfType(type, buffer) - } - } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - when (value) { is AnEnum -> { - stream.write(129) + stream.write(254) writeValue(stream, value.raw) } + is AnotherEnum -> { + val wrap = CoreTests__pigeon_CodecOverflow(type = 0, wrapped = value.raw) + stream.write(255) + writeValue(stream, wrap.toList()) + } is AllTypes -> { - stream.write(130) - writeValue(stream, value.toList()) + val wrap = CoreTests__pigeon_CodecOverflow(type = 1, wrapped = value.toList()) + stream.write(255) + writeValue(stream, wrap.toList()) } is AllNullableTypes -> { - stream.write(131) - writeValue(stream, value.toList()) + val wrap = CoreTests__pigeon_CodecOverflow(type = 2, wrapped = value.toList()) + stream.write(255) + writeValue(stream, wrap.toList()) } is AllNullableTypesWithoutRecursion -> { - stream.write(132) - writeValue(stream, value.toList()) + val wrap = CoreTests__pigeon_CodecOverflow(type = 3, wrapped = value.toList()) + stream.write(255) + writeValue(stream, wrap.toList()) } is AllClassesWrapper -> { - stream.write(133) - writeValue(stream, value.toList()) + val wrap = CoreTests__pigeon_CodecOverflow(type = 4, wrapped = value.toList()) + stream.write(255) + writeValue(stream, wrap.toList()) } is TestMessage -> { - stream.write(134) - writeValue(stream, value.toList()) + val wrap = CoreTests__pigeon_CodecOverflow(type = 5, wrapped = value.toList()) + stream.write(255) + writeValue(stream, wrap.toList()) } else -> super.writeValue(stream, value) } @@ -500,6 +2695,8 @@ interface HostIntegrationCoreApi { fun echoClassWrapper(wrapper: AllClassesWrapper): AllClassesWrapper /** Returns the passed enum to test serialization and deserialization. */ fun echoEnum(anEnum: AnEnum): AnEnum + /** Returns the passed enum to test serialization and deserialization. */ + fun echoAnotherEnum(anotherEnum: AnotherEnum): AnotherEnum /** Returns the default string. */ fun echoNamedDefaultString(aString: String): String /** Returns passed in double. */ @@ -550,6 +2747,8 @@ interface HostIntegrationCoreApi { fun echoNullableMap(aNullableMap: Map?): Map? fun echoNullableEnum(anEnum: AnEnum?): AnEnum? + + fun echoAnotherNullableEnum(anotherEnum: AnotherEnum?): AnotherEnum? /** Returns passed in int. */ fun echoOptionalNullableInt(aNullableInt: Long?): Long? /** Returns the passed in string. */ @@ -577,6 +2776,8 @@ interface HostIntegrationCoreApi { fun echoAsyncMap(aMap: Map, callback: (Result>) -> Unit) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ fun echoAsyncEnum(anEnum: AnEnum, callback: (Result) -> Unit) + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + fun echoAnotherAsyncEnum(anotherEnum: AnotherEnum, callback: (Result) -> Unit) /** Responds with an error from an async function returning a value. */ fun throwAsyncError(callback: (Result) -> Unit) /** Responds with an error from an async void function. */ @@ -616,6 +2817,11 @@ interface HostIntegrationCoreApi { ) /** Returns the passed enum, to test asynchronous serialization and deserialization. */ fun echoAsyncNullableEnum(anEnum: AnEnum?, callback: (Result) -> Unit) + /** Returns the passed enum, to test asynchronous serialization and deserialization. */ + fun echoAnotherAsyncNullableEnum( + anotherEnum: AnotherEnum?, + callback: (Result) -> Unit + ) fun callFlutterNoop(callback: (Result) -> Unit) @@ -665,6 +2871,8 @@ interface HostIntegrationCoreApi { fun callFlutterEchoEnum(anEnum: AnEnum, callback: (Result) -> Unit) + fun callFlutterEchoAnotherEnum(anotherEnum: AnotherEnum, callback: (Result) -> Unit) + fun callFlutterEchoNullableBool(aBool: Boolean?, callback: (Result) -> Unit) fun callFlutterEchoNullableInt(anInt: Long?, callback: (Result) -> Unit) @@ -684,6 +2892,11 @@ interface HostIntegrationCoreApi { fun callFlutterEchoNullableEnum(anEnum: AnEnum?, callback: (Result) -> Unit) + fun callFlutterEchoAnotherNullableEnum( + anotherEnum: AnotherEnum?, + callback: (Result) -> Unit + ) + fun callFlutterSmallApiEchoString(aString: String, callback: (Result) -> Unit) companion object { @@ -1025,6 +3238,28 @@ interface HostIntegrationCoreApi { channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val anotherEnumArg = args[0] as AnotherEnum + val wrapped: List = + try { + listOf(api.echoAnotherEnum(anotherEnumArg)) + } catch (exception: Throwable) { + wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } run { val channel = BasicMessageChannel( @@ -1432,6 +3667,28 @@ interface HostIntegrationCoreApi { channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val anotherEnumArg = args[0] as AnotherEnum? + val wrapped: List = + try { + listOf(api.echoAnotherNullableEnum(anotherEnumArg)) + } catch (exception: Throwable) { + wrapError(exception) + } + reply.reply(wrapped) + } + } else { + channel.setMessageHandler(null) + } + } run { val channel = BasicMessageChannel( @@ -1714,6 +3971,30 @@ interface HostIntegrationCoreApi { channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$separatedMessageChannelSuffix", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val anotherEnumArg = args[0] as AnotherEnum + api.echoAnotherAsyncEnum(anotherEnumArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } + } run { val channel = BasicMessageChannel( @@ -2069,6 +4350,30 @@ interface HostIntegrationCoreApi { channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$separatedMessageChannelSuffix", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val anotherEnumArg = args[0] as AnotherEnum? + api.echoAnotherAsyncNullableEnum(anotherEnumArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } + } run { val channel = BasicMessageChannel( @@ -2457,6 +4762,30 @@ interface HostIntegrationCoreApi { channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$separatedMessageChannelSuffix", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val anotherEnumArg = args[0] as AnotherEnum + api.callFlutterEchoAnotherEnum(anotherEnumArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } + } run { val channel = BasicMessageChannel( @@ -2649,6 +4978,30 @@ interface HostIntegrationCoreApi { channel.setMessageHandler(null) } } + run { + val channel = + BasicMessageChannel( + binaryMessenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$separatedMessageChannelSuffix", + codec) + if (api != null) { + channel.setMessageHandler { message, reply -> + val args = message as List + val anotherEnumArg = args[0] as AnotherEnum? + api.callFlutterEchoAnotherNullableEnum(anotherEnumArg) { result: Result -> + val error = result.exceptionOrNull() + if (error != null) { + reply.reply(wrapError(error)) + } else { + val data = result.getOrNull() + reply.reply(wrapResult(data)) + } + } + } + } else { + channel.setMessageHandler(null) + } + } run { val channel = BasicMessageChannel( @@ -3109,6 +5462,33 @@ class FlutterIntegrationCoreApi( } } } + /** Returns the passed enum to test serialization and deserialization. */ + fun echoAnotherEnum(anotherEnumArg: AnotherEnum, callback: (Result) -> Unit) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(anotherEnumArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else if (it[0] == null) { + callback( + Result.failure( + FlutterError( + "null-error", + "Flutter api returned null value for non-null return value.", + ""))) + } else { + val output = it[0] as AnotherEnum + callback(Result.success(output)) + } + } else { + callback(Result.failure(createConnectionError(channelName))) + } + } + } /** Returns the passed boolean, to test serialization and deserialization. */ fun echoNullableBool(aBoolArg: Boolean?, callback: (Result) -> Unit) { val separatedMessageChannelSuffix = @@ -3272,6 +5652,29 @@ class FlutterIntegrationCoreApi( } } } + /** Returns the passed enum to test serialization and deserialization. */ + fun echoAnotherNullableEnum( + anotherEnumArg: AnotherEnum?, + callback: (Result) -> Unit + ) { + val separatedMessageChannelSuffix = + if (messageChannelSuffix.isNotEmpty()) ".$messageChannelSuffix" else "" + val channelName = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$separatedMessageChannelSuffix" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send(listOf(anotherEnumArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback(Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + val output = it[0] as AnotherEnum? + callback(Result.success(output)) + } + } else { + callback(Result.failure(createConnectionError(channelName))) + } + } + } /** * A no-op function taking no arguments and returning no value, to sanity test basic asynchronous * calling. diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt index 43ed1282d12..4c5a1f983b9 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/TestPlugin.kt @@ -96,6 +96,10 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { return anEnum } + override fun echoAnotherEnum(anotherEnum: AnotherEnum): AnotherEnum { + return anotherEnum + } + override fun echoNamedDefaultString(aString: String): String { return aString } @@ -174,6 +178,10 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { return anEnum } + override fun echoAnotherNullableEnum(anotherEnum: AnotherEnum?): AnotherEnum? { + return anotherEnum + } + override fun echoOptionalNullableInt(aNullableInt: Long?): Long? { return aNullableInt } @@ -255,6 +263,13 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { callback(Result.success(anEnum)) } + override fun echoAnotherAsyncEnum( + anotherEnum: AnotherEnum, + callback: (Result) -> Unit + ) { + callback(Result.success(anotherEnum)) + } + override fun echoAsyncNullableInt(anInt: Long?, callback: (Result) -> Unit) { callback(Result.success(anInt)) } @@ -297,6 +312,13 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { callback(Result.success(anEnum)) } + override fun echoAnotherAsyncNullableEnum( + anotherEnum: AnotherEnum?, + callback: (Result) -> Unit + ) { + callback(Result.success(anotherEnum)) + } + override fun callFlutterNoop(callback: (Result) -> Unit) { flutterApi!!.noop { callback(Result.success(Unit)) } } @@ -375,10 +397,16 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { } override fun callFlutterEchoEnum(anEnum: AnEnum, callback: (Result) -> Unit) { - // callback(Result.success(anEnum)) flutterApi!!.echoEnum(anEnum) { echo -> callback(echo) } } + override fun callFlutterEchoAnotherEnum( + anotherEnum: AnotherEnum, + callback: (Result) -> Unit + ) { + flutterApi!!.echoAnotherEnum(anotherEnum) { echo -> callback(echo) } + } + override fun callFlutterEchoAllNullableTypes( everything: AllNullableTypes?, callback: (Result) -> Unit @@ -433,6 +461,13 @@ class TestPlugin : FlutterPlugin, HostIntegrationCoreApi { flutterApi!!.echoNullableEnum(anEnum) { echo -> callback(echo) } } + override fun callFlutterEchoAnotherNullableEnum( + anotherEnum: AnotherEnum?, + callback: (Result) -> Unit + ) { + flutterApi!!.echoAnotherNullableEnum(anotherEnum) { echo -> callback(echo) } + } + override fun callFlutterSmallApiEchoString(aString: String, callback: (Result) -> Unit) { flutterSmallApiOne!!.echoString(aString) { echoOne -> flutterSmallApiTwo!!.echoString(aString) { echoTwo -> diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt index 56e0111d63f..5834f34310a 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/test/kotlin/com/example/test_plugin/AllDatatypesTest.kt @@ -32,6 +32,7 @@ internal class AllDatatypesTest { assertTrue(firstTypes.a8ByteArray.contentEquals(secondTypes.a8ByteArray)) assertTrue(firstTypes.aFloatArray.contentEquals(secondTypes.aFloatArray)) assertEquals(firstTypes.anEnum, secondTypes.anEnum) + assertEquals(firstTypes.anotherEnum, secondTypes.anotherEnum) assertEquals(firstTypes.anObject, secondTypes.anObject) assertEquals(firstTypes.list, secondTypes.list) assertEquals(firstTypes.boolList, secondTypes.boolList) @@ -59,6 +60,8 @@ internal class AllDatatypesTest { assertTrue(firstTypes.aNullableFloatArray.contentEquals(secondTypes.aNullableFloatArray)) assertEquals(firstTypes.nullableMapWithObject, secondTypes.nullableMapWithObject) assertEquals(firstTypes.aNullableObject, secondTypes.aNullableObject) + assertEquals(firstTypes.aNullableEnum, secondTypes.aNullableEnum) + assertEquals(firstTypes.anotherNullableEnum, secondTypes.anotherNullableEnum) assertEquals(firstTypes.list, secondTypes.list) assertEquals(firstTypes.boolList, secondTypes.boolList) assertEquals(firstTypes.doubleList, secondTypes.doubleList) @@ -171,6 +174,7 @@ internal class AllDatatypesTest { null, null, null, + null, null) val everything2 = AllNullableTypes.fromList(list2) diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index 6e53369d01c..5b350e29cea 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -74,6 +74,506 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } +enum FillerEnum0: Int { + case fillerMember0 = 0 +} + +enum FillerEnum1: Int { + case fillerMember1 = 0 +} + +enum FillerEnum2: Int { + case fillerMember2 = 0 +} + +enum FillerEnum3: Int { + case fillerMember3 = 0 +} + +enum FillerEnum4: Int { + case fillerMember4 = 0 +} + +enum FillerEnum5: Int { + case fillerMember5 = 0 +} + +enum FillerEnum6: Int { + case fillerMember6 = 0 +} + +enum FillerEnum7: Int { + case fillerMember7 = 0 +} + +enum FillerEnum8: Int { + case fillerMember8 = 0 +} + +enum FillerEnum9: Int { + case fillerMember9 = 0 +} + +enum FillerEnum10: Int { + case fillerMember10 = 0 +} + +enum FillerEnum11: Int { + case fillerMember11 = 0 +} + +enum FillerEnum12: Int { + case fillerMember12 = 0 +} + +enum FillerEnum13: Int { + case fillerMember13 = 0 +} + +enum FillerEnum14: Int { + case fillerMember14 = 0 +} + +enum FillerEnum15: Int { + case fillerMember15 = 0 +} + +enum FillerEnum16: Int { + case fillerMember16 = 0 +} + +enum FillerEnum17: Int { + case fillerMember17 = 0 +} + +enum FillerEnum18: Int { + case fillerMember18 = 0 +} + +enum FillerEnum19: Int { + case fillerMember19 = 0 +} + +enum FillerEnum20: Int { + case fillerMember20 = 0 +} + +enum FillerEnum21: Int { + case fillerMember21 = 0 +} + +enum FillerEnum22: Int { + case fillerMember22 = 0 +} + +enum FillerEnum23: Int { + case fillerMember23 = 0 +} + +enum FillerEnum24: Int { + case fillerMember24 = 0 +} + +enum FillerEnum25: Int { + case fillerMember25 = 0 +} + +enum FillerEnum26: Int { + case fillerMember26 = 0 +} + +enum FillerEnum27: Int { + case fillerMember27 = 0 +} + +enum FillerEnum28: Int { + case fillerMember28 = 0 +} + +enum FillerEnum29: Int { + case fillerMember29 = 0 +} + +enum FillerEnum30: Int { + case fillerMember30 = 0 +} + +enum FillerEnum31: Int { + case fillerMember31 = 0 +} + +enum FillerEnum32: Int { + case fillerMember32 = 0 +} + +enum FillerEnum33: Int { + case fillerMember33 = 0 +} + +enum FillerEnum34: Int { + case fillerMember34 = 0 +} + +enum FillerEnum35: Int { + case fillerMember35 = 0 +} + +enum FillerEnum36: Int { + case fillerMember36 = 0 +} + +enum FillerEnum37: Int { + case fillerMember37 = 0 +} + +enum FillerEnum38: Int { + case fillerMember38 = 0 +} + +enum FillerEnum39: Int { + case fillerMember39 = 0 +} + +enum FillerEnum40: Int { + case fillerMember40 = 0 +} + +enum FillerEnum41: Int { + case fillerMember41 = 0 +} + +enum FillerEnum42: Int { + case fillerMember42 = 0 +} + +enum FillerEnum43: Int { + case fillerMember43 = 0 +} + +enum FillerEnum44: Int { + case fillerMember44 = 0 +} + +enum FillerEnum45: Int { + case fillerMember45 = 0 +} + +enum FillerEnum46: Int { + case fillerMember46 = 0 +} + +enum FillerEnum47: Int { + case fillerMember47 = 0 +} + +enum FillerEnum48: Int { + case fillerMember48 = 0 +} + +enum FillerEnum49: Int { + case fillerMember49 = 0 +} + +enum FillerEnum50: Int { + case fillerMember50 = 0 +} + +enum FillerEnum51: Int { + case fillerMember51 = 0 +} + +enum FillerEnum52: Int { + case fillerMember52 = 0 +} + +enum FillerEnum53: Int { + case fillerMember53 = 0 +} + +enum FillerEnum54: Int { + case fillerMember54 = 0 +} + +enum FillerEnum55: Int { + case fillerMember55 = 0 +} + +enum FillerEnum56: Int { + case fillerMember56 = 0 +} + +enum FillerEnum57: Int { + case fillerMember57 = 0 +} + +enum FillerEnum58: Int { + case fillerMember58 = 0 +} + +enum FillerEnum59: Int { + case fillerMember59 = 0 +} + +enum FillerEnum60: Int { + case fillerMember60 = 0 +} + +enum FillerEnum61: Int { + case fillerMember61 = 0 +} + +enum FillerEnum62: Int { + case fillerMember62 = 0 +} + +enum FillerEnum63: Int { + case fillerMember63 = 0 +} + +enum FillerEnum64: Int { + case fillerMember64 = 0 +} + +enum FillerEnum65: Int { + case fillerMember65 = 0 +} + +enum FillerEnum66: Int { + case fillerMember66 = 0 +} + +enum FillerEnum67: Int { + case fillerMember67 = 0 +} + +enum FillerEnum68: Int { + case fillerMember68 = 0 +} + +enum FillerEnum69: Int { + case fillerMember69 = 0 +} + +enum FillerEnum70: Int { + case fillerMember70 = 0 +} + +enum FillerEnum71: Int { + case fillerMember71 = 0 +} + +enum FillerEnum72: Int { + case fillerMember72 = 0 +} + +enum FillerEnum73: Int { + case fillerMember73 = 0 +} + +enum FillerEnum74: Int { + case fillerMember74 = 0 +} + +enum FillerEnum75: Int { + case fillerMember75 = 0 +} + +enum FillerEnum76: Int { + case fillerMember76 = 0 +} + +enum FillerEnum77: Int { + case fillerMember77 = 0 +} + +enum FillerEnum78: Int { + case fillerMember78 = 0 +} + +enum FillerEnum79: Int { + case fillerMember79 = 0 +} + +enum FillerEnum80: Int { + case fillerMember80 = 0 +} + +enum FillerEnum81: Int { + case fillerMember81 = 0 +} + +enum FillerEnum82: Int { + case fillerMember82 = 0 +} + +enum FillerEnum83: Int { + case fillerMember83 = 0 +} + +enum FillerEnum84: Int { + case fillerMember84 = 0 +} + +enum FillerEnum85: Int { + case fillerMember85 = 0 +} + +enum FillerEnum86: Int { + case fillerMember86 = 0 +} + +enum FillerEnum87: Int { + case fillerMember87 = 0 +} + +enum FillerEnum88: Int { + case fillerMember88 = 0 +} + +enum FillerEnum89: Int { + case fillerMember89 = 0 +} + +enum FillerEnum90: Int { + case fillerMember90 = 0 +} + +enum FillerEnum91: Int { + case fillerMember91 = 0 +} + +enum FillerEnum92: Int { + case fillerMember92 = 0 +} + +enum FillerEnum93: Int { + case fillerMember93 = 0 +} + +enum FillerEnum94: Int { + case fillerMember94 = 0 +} + +enum FillerEnum95: Int { + case fillerMember95 = 0 +} + +enum FillerEnum96: Int { + case fillerMember96 = 0 +} + +enum FillerEnum97: Int { + case fillerMember97 = 0 +} + +enum FillerEnum98: Int { + case fillerMember98 = 0 +} + +enum FillerEnum99: Int { + case fillerMember99 = 0 +} + +enum FillerEnum100: Int { + case fillerMember100 = 0 +} + +enum FillerEnum101: Int { + case fillerMember101 = 0 +} + +enum FillerEnum102: Int { + case fillerMember102 = 0 +} + +enum FillerEnum103: Int { + case fillerMember103 = 0 +} + +enum FillerEnum104: Int { + case fillerMember104 = 0 +} + +enum FillerEnum105: Int { + case fillerMember105 = 0 +} + +enum FillerEnum106: Int { + case fillerMember106 = 0 +} + +enum FillerEnum107: Int { + case fillerMember107 = 0 +} + +enum FillerEnum108: Int { + case fillerMember108 = 0 +} + +enum FillerEnum109: Int { + case fillerMember109 = 0 +} + +enum FillerEnum110: Int { + case fillerMember110 = 0 +} + +enum FillerEnum111: Int { + case fillerMember111 = 0 +} + +enum FillerEnum112: Int { + case fillerMember112 = 0 +} + +enum FillerEnum113: Int { + case fillerMember113 = 0 +} + +enum FillerEnum114: Int { + case fillerMember114 = 0 +} + +enum FillerEnum115: Int { + case fillerMember115 = 0 +} + +enum FillerEnum116: Int { + case fillerMember116 = 0 +} + +enum FillerEnum117: Int { + case fillerMember117 = 0 +} + +enum FillerEnum118: Int { + case fillerMember118 = 0 +} + +enum FillerEnum119: Int { + case fillerMember119 = 0 +} + +enum FillerEnum120: Int { + case fillerMember120 = 0 +} + +enum FillerEnum121: Int { + case fillerMember121 = 0 +} + +enum FillerEnum122: Int { + case fillerMember122 = 0 +} + +enum FillerEnum123: Int { + case fillerMember123 = 0 +} + +enum FillerEnum124: Int { + case fillerMember124 = 0 +} + enum AnEnum: Int { case one = 0 case two = 1 @@ -82,6 +582,10 @@ enum AnEnum: Int { case fourHundredTwentyTwo = 4 } +enum AnotherEnum: Int { + case justInCase = 0 +} + /// A class containing all supported types. /// /// Generated class from Pigeon that represents data sent in messages. @@ -95,6 +599,7 @@ struct AllTypes { var a8ByteArray: FlutterStandardTypedData var aFloatArray: FlutterStandardTypedData var anEnum: AnEnum + var anotherEnum: AnotherEnum var aString: String var anObject: Any var list: [Any?] @@ -117,14 +622,15 @@ struct AllTypes { let a8ByteArray = __pigeon_list[6] as! FlutterStandardTypedData let aFloatArray = __pigeon_list[7] as! FlutterStandardTypedData let anEnum = __pigeon_list[8] as! AnEnum - let aString = __pigeon_list[9] as! String - let anObject = __pigeon_list[10]! - let list = __pigeon_list[11] as! [Any?] - let stringList = __pigeon_list[12] as! [String?] - let intList = __pigeon_list[13] as! [Int64?] - let doubleList = __pigeon_list[14] as! [Double?] - let boolList = __pigeon_list[15] as! [Bool?] - let map = __pigeon_list[16] as! [AnyHashable: Any?] + let anotherEnum = __pigeon_list[9] as! AnotherEnum + let aString = __pigeon_list[10] as! String + let anObject = __pigeon_list[11]! + let list = __pigeon_list[12] as! [Any?] + let stringList = __pigeon_list[13] as! [String?] + let intList = __pigeon_list[14] as! [Int64?] + let doubleList = __pigeon_list[15] as! [Double?] + let boolList = __pigeon_list[16] as! [Bool?] + let map = __pigeon_list[17] as! [AnyHashable: Any?] return AllTypes( aBool: aBool, @@ -136,6 +642,7 @@ struct AllTypes { a8ByteArray: a8ByteArray, aFloatArray: aFloatArray, anEnum: anEnum, + anotherEnum: anotherEnum, aString: aString, anObject: anObject, list: list, @@ -157,6 +664,7 @@ struct AllTypes { a8ByteArray, aFloatArray, anEnum, + anotherEnum, aString, anObject, list, @@ -186,6 +694,7 @@ class AllNullableTypes { nullableMapWithAnnotations: [String?: String?]? = nil, nullableMapWithObject: [String?: Any?]? = nil, aNullableEnum: AnEnum? = nil, + anotherNullableEnum: AnotherEnum? = nil, aNullableString: String? = nil, aNullableObject: Any? = nil, allNullableTypes: AllNullableTypes? = nil, @@ -209,6 +718,7 @@ class AllNullableTypes { self.nullableMapWithAnnotations = nullableMapWithAnnotations self.nullableMapWithObject = nullableMapWithObject self.aNullableEnum = aNullableEnum + self.anotherNullableEnum = anotherNullableEnum self.aNullableString = aNullableString self.aNullableObject = aNullableObject self.allNullableTypes = allNullableTypes @@ -232,6 +742,7 @@ class AllNullableTypes { var nullableMapWithAnnotations: [String?: String?]? var nullableMapWithObject: [String?: Any?]? var aNullableEnum: AnEnum? + var anotherNullableEnum: AnotherEnum? var aNullableString: String? var aNullableObject: Any? var allNullableTypes: AllNullableTypes? @@ -265,16 +776,17 @@ class AllNullableTypes { let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let aNullableString: String? = nilOrValue(__pigeon_list[12]) - let aNullableObject: Any? = __pigeon_list[13] - let allNullableTypes: AllNullableTypes? = nilOrValue(__pigeon_list[14]) - let list: [Any?]? = nilOrValue(__pigeon_list[15]) - let stringList: [String?]? = nilOrValue(__pigeon_list[16]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[17]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[18]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[19]) - let nestedClassList: [AllNullableTypes?]? = nilOrValue(__pigeon_list[20]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[21]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) + let aNullableString: String? = nilOrValue(__pigeon_list[13]) + let aNullableObject: Any? = __pigeon_list[14] + let allNullableTypes: AllNullableTypes? = nilOrValue(__pigeon_list[15]) + let list: [Any?]? = nilOrValue(__pigeon_list[16]) + let stringList: [String?]? = nilOrValue(__pigeon_list[17]) + let intList: [Int64?]? = nilOrValue(__pigeon_list[18]) + let doubleList: [Double?]? = nilOrValue(__pigeon_list[19]) + let boolList: [Bool?]? = nilOrValue(__pigeon_list[20]) + let nestedClassList: [AllNullableTypes?]? = nilOrValue(__pigeon_list[21]) + let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[22]) return AllNullableTypes( aNullableBool: aNullableBool, @@ -289,6 +801,7 @@ class AllNullableTypes { nullableMapWithAnnotations: nullableMapWithAnnotations, nullableMapWithObject: nullableMapWithObject, aNullableEnum: aNullableEnum, + anotherNullableEnum: anotherNullableEnum, aNullableString: aNullableString, aNullableObject: aNullableObject, allNullableTypes: allNullableTypes, @@ -315,6 +828,7 @@ class AllNullableTypes { nullableMapWithAnnotations, nullableMapWithObject, aNullableEnum, + anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, @@ -347,6 +861,7 @@ struct AllNullableTypesWithoutRecursion { var nullableMapWithAnnotations: [String?: String?]? = nil var nullableMapWithObject: [String?: Any?]? = nil var aNullableEnum: AnEnum? = nil + var anotherNullableEnum: AnotherEnum? = nil var aNullableString: String? = nil var aNullableObject: Any? = nil var list: [Any?]? = nil @@ -378,14 +893,15 @@ struct AllNullableTypesWithoutRecursion { let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let aNullableString: String? = nilOrValue(__pigeon_list[12]) - let aNullableObject: Any? = __pigeon_list[13] - let list: [Any?]? = nilOrValue(__pigeon_list[14]) - let stringList: [String?]? = nilOrValue(__pigeon_list[15]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[16]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[17]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[18]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[19]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) + let aNullableString: String? = nilOrValue(__pigeon_list[13]) + let aNullableObject: Any? = __pigeon_list[14] + let list: [Any?]? = nilOrValue(__pigeon_list[15]) + let stringList: [String?]? = nilOrValue(__pigeon_list[16]) + let intList: [Int64?]? = nilOrValue(__pigeon_list[17]) + let doubleList: [Double?]? = nilOrValue(__pigeon_list[18]) + let boolList: [Bool?]? = nilOrValue(__pigeon_list[19]) + let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[20]) return AllNullableTypesWithoutRecursion( aNullableBool: aNullableBool, @@ -400,6 +916,7 @@ struct AllNullableTypesWithoutRecursion { nullableMapWithAnnotations: nullableMapWithAnnotations, nullableMapWithObject: nullableMapWithObject, aNullableEnum: aNullableEnum, + anotherNullableEnum: anotherNullableEnum, aNullableString: aNullableString, aNullableObject: aNullableObject, list: list, @@ -424,6 +941,7 @@ struct AllNullableTypesWithoutRecursion { nullableMapWithAnnotations, nullableMapWithObject, aNullableEnum, + anotherNullableEnum, aNullableString, aNullableObject, list, @@ -491,52 +1009,1351 @@ struct TestMessage { } } +// swift-format-ignore: TypeNamesShouldBeCapitalized +struct __pigeon_CodecOverflow { + var type: Int + var wrapped: Any? = nil + + func toList() -> [Any?] { + return [ + type, + wrapped, + ] + } + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ __pigeon_list: [Any?]) -> Any? { + let type = __pigeon_list[0] as! Int + let wrapped: Any? = __pigeon_list[1] + + let wrapper = __pigeon_CodecOverflow( + type: type, + wrapped: wrapped + ) + + return wrapper.unwrap() + } + + func unwrap() -> Any? { + if wrapped == nil { + return nil + } + + switch type { + case 0: + return AnotherEnum(rawValue: wrapped as! Int) + case 1: + return AllTypes.fromList(wrapped as! [Any?]) + case 2: + return AllNullableTypes.fromList(wrapped as! [Any?]) + case 3: + return AllNullableTypesWithoutRecursion.fromList(wrapped as! [Any?]) + case 4: + return AllClassesWrapper.fromList(wrapped as! [Any?]) + case 5: + return TestMessage.fromList(wrapped as! [Any?]) + default: + return nil + } + } +} + private class CoreTestsPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - var enumResult: AnEnum? = nil + var enumResult: FillerEnum0? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnEnum(rawValue: enumResultAsInt) + enumResult = FillerEnum0(rawValue: enumResultAsInt) } return enumResult case 130: - return AllTypes.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum1? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum1(rawValue: enumResultAsInt) + } + return enumResult case 131: - return AllNullableTypes.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum2? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum2(rawValue: enumResultAsInt) + } + return enumResult case 132: - return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum3? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum3(rawValue: enumResultAsInt) + } + return enumResult case 133: - return AllClassesWrapper.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum4? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum4(rawValue: enumResultAsInt) + } + return enumResult case 134: - return TestMessage.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) - } - } -} - -private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { - override func writeValue(_ value: Any) { - if let value = value as? AnEnum { - super.writeByte(129) + var enumResult: FillerEnum5? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum5(rawValue: enumResultAsInt) + } + return enumResult + case 135: + var enumResult: FillerEnum6? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum6(rawValue: enumResultAsInt) + } + return enumResult + case 136: + var enumResult: FillerEnum7? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum7(rawValue: enumResultAsInt) + } + return enumResult + case 137: + var enumResult: FillerEnum8? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum8(rawValue: enumResultAsInt) + } + return enumResult + case 138: + var enumResult: FillerEnum9? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum9(rawValue: enumResultAsInt) + } + return enumResult + case 139: + var enumResult: FillerEnum10? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum10(rawValue: enumResultAsInt) + } + return enumResult + case 140: + var enumResult: FillerEnum11? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum11(rawValue: enumResultAsInt) + } + return enumResult + case 141: + var enumResult: FillerEnum12? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum12(rawValue: enumResultAsInt) + } + return enumResult + case 142: + var enumResult: FillerEnum13? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum13(rawValue: enumResultAsInt) + } + return enumResult + case 143: + var enumResult: FillerEnum14? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum14(rawValue: enumResultAsInt) + } + return enumResult + case 144: + var enumResult: FillerEnum15? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum15(rawValue: enumResultAsInt) + } + return enumResult + case 145: + var enumResult: FillerEnum16? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum16(rawValue: enumResultAsInt) + } + return enumResult + case 146: + var enumResult: FillerEnum17? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum17(rawValue: enumResultAsInt) + } + return enumResult + case 147: + var enumResult: FillerEnum18? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum18(rawValue: enumResultAsInt) + } + return enumResult + case 148: + var enumResult: FillerEnum19? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum19(rawValue: enumResultAsInt) + } + return enumResult + case 149: + var enumResult: FillerEnum20? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum20(rawValue: enumResultAsInt) + } + return enumResult + case 150: + var enumResult: FillerEnum21? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum21(rawValue: enumResultAsInt) + } + return enumResult + case 151: + var enumResult: FillerEnum22? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum22(rawValue: enumResultAsInt) + } + return enumResult + case 152: + var enumResult: FillerEnum23? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum23(rawValue: enumResultAsInt) + } + return enumResult + case 153: + var enumResult: FillerEnum24? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum24(rawValue: enumResultAsInt) + } + return enumResult + case 154: + var enumResult: FillerEnum25? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum25(rawValue: enumResultAsInt) + } + return enumResult + case 155: + var enumResult: FillerEnum26? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum26(rawValue: enumResultAsInt) + } + return enumResult + case 156: + var enumResult: FillerEnum27? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum27(rawValue: enumResultAsInt) + } + return enumResult + case 157: + var enumResult: FillerEnum28? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum28(rawValue: enumResultAsInt) + } + return enumResult + case 158: + var enumResult: FillerEnum29? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum29(rawValue: enumResultAsInt) + } + return enumResult + case 159: + var enumResult: FillerEnum30? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum30(rawValue: enumResultAsInt) + } + return enumResult + case 160: + var enumResult: FillerEnum31? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum31(rawValue: enumResultAsInt) + } + return enumResult + case 161: + var enumResult: FillerEnum32? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum32(rawValue: enumResultAsInt) + } + return enumResult + case 162: + var enumResult: FillerEnum33? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum33(rawValue: enumResultAsInt) + } + return enumResult + case 163: + var enumResult: FillerEnum34? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum34(rawValue: enumResultAsInt) + } + return enumResult + case 164: + var enumResult: FillerEnum35? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum35(rawValue: enumResultAsInt) + } + return enumResult + case 165: + var enumResult: FillerEnum36? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum36(rawValue: enumResultAsInt) + } + return enumResult + case 166: + var enumResult: FillerEnum37? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum37(rawValue: enumResultAsInt) + } + return enumResult + case 167: + var enumResult: FillerEnum38? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum38(rawValue: enumResultAsInt) + } + return enumResult + case 168: + var enumResult: FillerEnum39? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum39(rawValue: enumResultAsInt) + } + return enumResult + case 169: + var enumResult: FillerEnum40? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum40(rawValue: enumResultAsInt) + } + return enumResult + case 170: + var enumResult: FillerEnum41? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum41(rawValue: enumResultAsInt) + } + return enumResult + case 171: + var enumResult: FillerEnum42? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum42(rawValue: enumResultAsInt) + } + return enumResult + case 172: + var enumResult: FillerEnum43? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum43(rawValue: enumResultAsInt) + } + return enumResult + case 173: + var enumResult: FillerEnum44? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum44(rawValue: enumResultAsInt) + } + return enumResult + case 174: + var enumResult: FillerEnum45? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum45(rawValue: enumResultAsInt) + } + return enumResult + case 175: + var enumResult: FillerEnum46? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum46(rawValue: enumResultAsInt) + } + return enumResult + case 176: + var enumResult: FillerEnum47? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum47(rawValue: enumResultAsInt) + } + return enumResult + case 177: + var enumResult: FillerEnum48? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum48(rawValue: enumResultAsInt) + } + return enumResult + case 178: + var enumResult: FillerEnum49? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum49(rawValue: enumResultAsInt) + } + return enumResult + case 179: + var enumResult: FillerEnum50? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum50(rawValue: enumResultAsInt) + } + return enumResult + case 180: + var enumResult: FillerEnum51? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum51(rawValue: enumResultAsInt) + } + return enumResult + case 181: + var enumResult: FillerEnum52? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum52(rawValue: enumResultAsInt) + } + return enumResult + case 182: + var enumResult: FillerEnum53? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum53(rawValue: enumResultAsInt) + } + return enumResult + case 183: + var enumResult: FillerEnum54? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum54(rawValue: enumResultAsInt) + } + return enumResult + case 184: + var enumResult: FillerEnum55? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum55(rawValue: enumResultAsInt) + } + return enumResult + case 185: + var enumResult: FillerEnum56? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum56(rawValue: enumResultAsInt) + } + return enumResult + case 186: + var enumResult: FillerEnum57? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum57(rawValue: enumResultAsInt) + } + return enumResult + case 187: + var enumResult: FillerEnum58? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum58(rawValue: enumResultAsInt) + } + return enumResult + case 188: + var enumResult: FillerEnum59? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum59(rawValue: enumResultAsInt) + } + return enumResult + case 189: + var enumResult: FillerEnum60? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum60(rawValue: enumResultAsInt) + } + return enumResult + case 190: + var enumResult: FillerEnum61? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum61(rawValue: enumResultAsInt) + } + return enumResult + case 191: + var enumResult: FillerEnum62? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum62(rawValue: enumResultAsInt) + } + return enumResult + case 192: + var enumResult: FillerEnum63? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum63(rawValue: enumResultAsInt) + } + return enumResult + case 193: + var enumResult: FillerEnum64? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum64(rawValue: enumResultAsInt) + } + return enumResult + case 194: + var enumResult: FillerEnum65? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum65(rawValue: enumResultAsInt) + } + return enumResult + case 195: + var enumResult: FillerEnum66? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum66(rawValue: enumResultAsInt) + } + return enumResult + case 196: + var enumResult: FillerEnum67? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum67(rawValue: enumResultAsInt) + } + return enumResult + case 197: + var enumResult: FillerEnum68? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum68(rawValue: enumResultAsInt) + } + return enumResult + case 198: + var enumResult: FillerEnum69? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum69(rawValue: enumResultAsInt) + } + return enumResult + case 199: + var enumResult: FillerEnum70? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum70(rawValue: enumResultAsInt) + } + return enumResult + case 200: + var enumResult: FillerEnum71? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum71(rawValue: enumResultAsInt) + } + return enumResult + case 201: + var enumResult: FillerEnum72? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum72(rawValue: enumResultAsInt) + } + return enumResult + case 202: + var enumResult: FillerEnum73? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum73(rawValue: enumResultAsInt) + } + return enumResult + case 203: + var enumResult: FillerEnum74? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum74(rawValue: enumResultAsInt) + } + return enumResult + case 204: + var enumResult: FillerEnum75? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum75(rawValue: enumResultAsInt) + } + return enumResult + case 205: + var enumResult: FillerEnum76? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum76(rawValue: enumResultAsInt) + } + return enumResult + case 206: + var enumResult: FillerEnum77? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum77(rawValue: enumResultAsInt) + } + return enumResult + case 207: + var enumResult: FillerEnum78? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum78(rawValue: enumResultAsInt) + } + return enumResult + case 208: + var enumResult: FillerEnum79? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum79(rawValue: enumResultAsInt) + } + return enumResult + case 209: + var enumResult: FillerEnum80? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum80(rawValue: enumResultAsInt) + } + return enumResult + case 210: + var enumResult: FillerEnum81? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum81(rawValue: enumResultAsInt) + } + return enumResult + case 211: + var enumResult: FillerEnum82? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum82(rawValue: enumResultAsInt) + } + return enumResult + case 212: + var enumResult: FillerEnum83? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum83(rawValue: enumResultAsInt) + } + return enumResult + case 213: + var enumResult: FillerEnum84? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum84(rawValue: enumResultAsInt) + } + return enumResult + case 214: + var enumResult: FillerEnum85? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum85(rawValue: enumResultAsInt) + } + return enumResult + case 215: + var enumResult: FillerEnum86? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum86(rawValue: enumResultAsInt) + } + return enumResult + case 216: + var enumResult: FillerEnum87? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum87(rawValue: enumResultAsInt) + } + return enumResult + case 217: + var enumResult: FillerEnum88? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum88(rawValue: enumResultAsInt) + } + return enumResult + case 218: + var enumResult: FillerEnum89? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum89(rawValue: enumResultAsInt) + } + return enumResult + case 219: + var enumResult: FillerEnum90? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum90(rawValue: enumResultAsInt) + } + return enumResult + case 220: + var enumResult: FillerEnum91? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum91(rawValue: enumResultAsInt) + } + return enumResult + case 221: + var enumResult: FillerEnum92? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum92(rawValue: enumResultAsInt) + } + return enumResult + case 222: + var enumResult: FillerEnum93? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum93(rawValue: enumResultAsInt) + } + return enumResult + case 223: + var enumResult: FillerEnum94? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum94(rawValue: enumResultAsInt) + } + return enumResult + case 224: + var enumResult: FillerEnum95? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum95(rawValue: enumResultAsInt) + } + return enumResult + case 225: + var enumResult: FillerEnum96? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum96(rawValue: enumResultAsInt) + } + return enumResult + case 226: + var enumResult: FillerEnum97? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum97(rawValue: enumResultAsInt) + } + return enumResult + case 227: + var enumResult: FillerEnum98? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum98(rawValue: enumResultAsInt) + } + return enumResult + case 228: + var enumResult: FillerEnum99? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum99(rawValue: enumResultAsInt) + } + return enumResult + case 229: + var enumResult: FillerEnum100? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum100(rawValue: enumResultAsInt) + } + return enumResult + case 230: + var enumResult: FillerEnum101? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum101(rawValue: enumResultAsInt) + } + return enumResult + case 231: + var enumResult: FillerEnum102? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum102(rawValue: enumResultAsInt) + } + return enumResult + case 232: + var enumResult: FillerEnum103? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum103(rawValue: enumResultAsInt) + } + return enumResult + case 233: + var enumResult: FillerEnum104? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum104(rawValue: enumResultAsInt) + } + return enumResult + case 234: + var enumResult: FillerEnum105? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum105(rawValue: enumResultAsInt) + } + return enumResult + case 235: + var enumResult: FillerEnum106? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum106(rawValue: enumResultAsInt) + } + return enumResult + case 236: + var enumResult: FillerEnum107? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum107(rawValue: enumResultAsInt) + } + return enumResult + case 237: + var enumResult: FillerEnum108? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum108(rawValue: enumResultAsInt) + } + return enumResult + case 238: + var enumResult: FillerEnum109? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum109(rawValue: enumResultAsInt) + } + return enumResult + case 239: + var enumResult: FillerEnum110? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum110(rawValue: enumResultAsInt) + } + return enumResult + case 240: + var enumResult: FillerEnum111? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum111(rawValue: enumResultAsInt) + } + return enumResult + case 241: + var enumResult: FillerEnum112? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum112(rawValue: enumResultAsInt) + } + return enumResult + case 242: + var enumResult: FillerEnum113? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum113(rawValue: enumResultAsInt) + } + return enumResult + case 243: + var enumResult: FillerEnum114? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum114(rawValue: enumResultAsInt) + } + return enumResult + case 244: + var enumResult: FillerEnum115? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum115(rawValue: enumResultAsInt) + } + return enumResult + case 245: + var enumResult: FillerEnum116? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum116(rawValue: enumResultAsInt) + } + return enumResult + case 246: + var enumResult: FillerEnum117? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum117(rawValue: enumResultAsInt) + } + return enumResult + case 247: + var enumResult: FillerEnum118? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum118(rawValue: enumResultAsInt) + } + return enumResult + case 248: + var enumResult: FillerEnum119? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum119(rawValue: enumResultAsInt) + } + return enumResult + case 249: + var enumResult: FillerEnum120? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum120(rawValue: enumResultAsInt) + } + return enumResult + case 250: + var enumResult: FillerEnum121? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum121(rawValue: enumResultAsInt) + } + return enumResult + case 251: + var enumResult: FillerEnum122? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum122(rawValue: enumResultAsInt) + } + return enumResult + case 252: + var enumResult: FillerEnum123? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum123(rawValue: enumResultAsInt) + } + return enumResult + case 253: + var enumResult: FillerEnum124? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum124(rawValue: enumResultAsInt) + } + return enumResult + case 254: + var enumResult: AnEnum? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = AnEnum(rawValue: enumResultAsInt) + } + return enumResult + case 255: + return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) + } + } +} + +private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { + override func writeValue(_ value: Any) { + if let value = value as? FillerEnum0 { + super.writeByte(129) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum1 { + super.writeByte(130) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum2 { + super.writeByte(131) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum3 { + super.writeByte(132) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum4 { + super.writeByte(133) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum5 { + super.writeByte(134) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum6 { + super.writeByte(135) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum7 { + super.writeByte(136) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum8 { + super.writeByte(137) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum9 { + super.writeByte(138) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum10 { + super.writeByte(139) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum11 { + super.writeByte(140) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum12 { + super.writeByte(141) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum13 { + super.writeByte(142) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum14 { + super.writeByte(143) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum15 { + super.writeByte(144) super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum16 { + super.writeByte(145) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum17 { + super.writeByte(146) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum18 { + super.writeByte(147) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum19 { + super.writeByte(148) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum20 { + super.writeByte(149) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum21 { + super.writeByte(150) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum22 { + super.writeByte(151) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum23 { + super.writeByte(152) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum24 { + super.writeByte(153) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum25 { + super.writeByte(154) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum26 { + super.writeByte(155) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum27 { + super.writeByte(156) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum28 { + super.writeByte(157) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum29 { + super.writeByte(158) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum30 { + super.writeByte(159) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum31 { + super.writeByte(160) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum32 { + super.writeByte(161) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum33 { + super.writeByte(162) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum34 { + super.writeByte(163) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum35 { + super.writeByte(164) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum36 { + super.writeByte(165) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum37 { + super.writeByte(166) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum38 { + super.writeByte(167) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum39 { + super.writeByte(168) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum40 { + super.writeByte(169) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum41 { + super.writeByte(170) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum42 { + super.writeByte(171) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum43 { + super.writeByte(172) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum44 { + super.writeByte(173) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum45 { + super.writeByte(174) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum46 { + super.writeByte(175) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum47 { + super.writeByte(176) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum48 { + super.writeByte(177) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum49 { + super.writeByte(178) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum50 { + super.writeByte(179) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum51 { + super.writeByte(180) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum52 { + super.writeByte(181) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum53 { + super.writeByte(182) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum54 { + super.writeByte(183) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum55 { + super.writeByte(184) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum56 { + super.writeByte(185) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum57 { + super.writeByte(186) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum58 { + super.writeByte(187) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum59 { + super.writeByte(188) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum60 { + super.writeByte(189) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum61 { + super.writeByte(190) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum62 { + super.writeByte(191) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum63 { + super.writeByte(192) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum64 { + super.writeByte(193) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum65 { + super.writeByte(194) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum66 { + super.writeByte(195) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum67 { + super.writeByte(196) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum68 { + super.writeByte(197) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum69 { + super.writeByte(198) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum70 { + super.writeByte(199) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum71 { + super.writeByte(200) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum72 { + super.writeByte(201) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum73 { + super.writeByte(202) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum74 { + super.writeByte(203) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum75 { + super.writeByte(204) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum76 { + super.writeByte(205) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum77 { + super.writeByte(206) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum78 { + super.writeByte(207) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum79 { + super.writeByte(208) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum80 { + super.writeByte(209) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum81 { + super.writeByte(210) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum82 { + super.writeByte(211) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum83 { + super.writeByte(212) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum84 { + super.writeByte(213) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum85 { + super.writeByte(214) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum86 { + super.writeByte(215) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum87 { + super.writeByte(216) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum88 { + super.writeByte(217) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum89 { + super.writeByte(218) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum90 { + super.writeByte(219) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum91 { + super.writeByte(220) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum92 { + super.writeByte(221) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum93 { + super.writeByte(222) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum94 { + super.writeByte(223) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum95 { + super.writeByte(224) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum96 { + super.writeByte(225) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum97 { + super.writeByte(226) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum98 { + super.writeByte(227) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum99 { + super.writeByte(228) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum100 { + super.writeByte(229) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum101 { + super.writeByte(230) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum102 { + super.writeByte(231) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum103 { + super.writeByte(232) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum104 { + super.writeByte(233) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum105 { + super.writeByte(234) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum106 { + super.writeByte(235) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum107 { + super.writeByte(236) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum108 { + super.writeByte(237) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum109 { + super.writeByte(238) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum110 { + super.writeByte(239) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum111 { + super.writeByte(240) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum112 { + super.writeByte(241) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum113 { + super.writeByte(242) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum114 { + super.writeByte(243) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum115 { + super.writeByte(244) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum116 { + super.writeByte(245) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum117 { + super.writeByte(246) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum118 { + super.writeByte(247) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum119 { + super.writeByte(248) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum120 { + super.writeByte(249) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum121 { + super.writeByte(250) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum122 { + super.writeByte(251) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum123 { + super.writeByte(252) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum124 { + super.writeByte(253) + super.writeValue(value.rawValue) + } else if let value = value as? AnEnum { + super.writeByte(254) + super.writeValue(value.rawValue) + } else if let value = value as? AnotherEnum { + let wrap = __pigeon_CodecOverflow(type: 0, wrapped: value.rawValue) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllTypes { - super.writeByte(130) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 1, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllNullableTypes { - super.writeByte(131) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 2, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllNullableTypesWithoutRecursion { - super.writeByte(132) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 3, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllClassesWrapper { - super.writeByte(133) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 4, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? TestMessage { - super.writeByte(134) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 5, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else { super.writeValue(value) } @@ -593,6 +2410,8 @@ protocol HostIntegrationCoreApi { func echo(_ wrapper: AllClassesWrapper) throws -> AllClassesWrapper /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnum: AnEnum) throws -> AnEnum + /// Returns the passed enum to test serialization and deserialization. + func echo(_ anotherEnum: AnotherEnum) throws -> AnotherEnum /// Returns the default string. func echoNamedDefault(_ aString: String) throws -> String /// Returns passed in double. @@ -635,6 +2454,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed map, to test serialization and deserialization. func echoNullable(_ aNullableMap: [String?: Any?]?) throws -> [String?: Any?]? func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? + func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? /// Returns passed in int. func echoOptional(_ aNullableInt: Int64?) throws -> Int64? /// Returns the passed in string. @@ -663,6 +2483,9 @@ protocol HostIntegrationCoreApi { _ aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsync( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. func throwAsyncError(completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. @@ -700,6 +2523,9 @@ protocol HostIntegrationCoreApi { _ aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) func callFlutterNoop(completion: @escaping (Result) -> Void) func callFlutterThrowError(completion: @escaping (Result) -> Void) func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) @@ -728,6 +2554,8 @@ protocol HostIntegrationCoreApi { func callFlutterEcho( _ aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) func callFlutterEchoNullable( _ anInt: Int64?, completion: @escaping (Result) -> Void) @@ -742,8 +2570,10 @@ protocol HostIntegrationCoreApi { _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) func callFlutterEchoNullable( _ aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) - func callFlutterNullableEcho( + func callFlutterEchoNullable( _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) func callFlutterSmallApiEcho( _ aString: String, completion: @escaping (Result) -> Void) } @@ -1035,6 +2865,25 @@ class HostIntegrationCoreApiSetup { } else { echoEnumChannel.setMessageHandler(nil) } + /// Returns the passed enum to test serialization and deserialization. + let echoAnotherEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + do { + let result = try api.echo(anotherEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAnotherEnumChannel.setMessageHandler(nil) + } /// Returns the default string. let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( name: @@ -1390,6 +3239,24 @@ class HostIntegrationCoreApiSetup { } else { echoNullableEnumChannel.setMessageHandler(nil) } + let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(anotherEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAnotherNullableEnumChannel.setMessageHandler(nil) + } /// Returns passed in int. let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( name: @@ -1639,6 +3506,27 @@ class HostIntegrationCoreApiSetup { } else { echoAsyncEnumChannel.setMessageHandler(nil) } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + api.echoAsync(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAnotherAsyncEnumChannel.setMessageHandler(nil) + } /// Responds with an error from an async function returning a value. let throwAsyncErrorChannel = FlutterBasicMessageChannel( name: @@ -1950,6 +3838,27 @@ class HostIntegrationCoreApiSetup { } else { echoAsyncNullableEnumChannel.setMessageHandler(nil) } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + api.echoAsyncNullable(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAnotherAsyncNullableEnumChannel.setMessageHandler(nil) + } let callFlutterNoopChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", @@ -2277,6 +4186,26 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } + let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + api.callFlutterEcho(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) + } let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", @@ -2427,7 +4356,7 @@ class HostIntegrationCoreApiSetup { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let anEnumArg: AnEnum? = nilOrValue(args[0]) - api.callFlutterNullableEcho(anEnumArg) { result in + api.callFlutterEchoNullable(anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2439,6 +4368,26 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } + let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + api.callFlutterEchoNullable(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) + } let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", @@ -2518,6 +4467,9 @@ protocol FlutterIntegrationCoreApiProtocol { ) /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. @@ -2542,6 +4494,10 @@ protocol FlutterIntegrationCoreApiProtocol { /// Returns the passed enum to test serialization and deserialization. func echoNullable( _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) @@ -3003,6 +4959,36 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } } + /// Returns the passed enum to test serialization and deserialization. + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anotherEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! AnotherEnum + completion(.success(result)) + } + } + } /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { let channelName: String = @@ -3198,6 +5184,31 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } } + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anotherEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: AnotherEnum? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) { diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/TestPlugin.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/TestPlugin.swift index 36e6a445b53..be07319c7c0 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/TestPlugin.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/TestPlugin.swift @@ -99,6 +99,10 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { return anEnum } + func echo(_ anotherEnum: AnotherEnum) throws -> AnotherEnum { + return anotherEnum + } + func extractNestedNullableString(from wrapper: AllClassesWrapper) -> String? { return wrapper.allNullableTypes.aNullableString } @@ -171,6 +175,10 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { return anEnum } + func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? { + return anotherEnum + } + func echoOptional(_ aNullableInt: Int64?) throws -> Int64? { return aNullableInt } @@ -254,6 +262,12 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { completion(.success(anEnum)) } + func echoAsync( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void + ) { + completion(.success(anotherEnum)) + } + func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) { completion(.success(anInt)) } @@ -293,11 +307,18 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { completion(.success(aMap)) } - func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) - { + func echoAsyncNullable( + _ anEnum: AnEnum?, completion: @escaping (Result) -> Void + ) { completion(.success(anEnum)) } + func echoAsyncNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void + ) { + completion(.success(anotherEnum)) + } + func callFlutterNoop(completion: @escaping (Result) -> Void) { flutterAPI.noop { response in switch response { @@ -492,7 +513,9 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { } } - func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) { + func callFlutterEcho( + _ anEnum: AnEnum, completion: @escaping (Result) -> Void + ) { flutterAPI.echo(anEnum) { response in switch response { case .success(let res): @@ -503,6 +526,19 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { } } + func callFlutterEcho( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void + ) { + flutterAPI.echo(anotherEnum) { response in + switch response { + case .success(let res): + completion(.success(res)) + case .failure(let error): + completion(.failure(error)) + } + } + } + func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) { flutterAPI.echoNullable(aBool) { response in @@ -594,7 +630,7 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { } } - func callFlutterNullableEcho( + func callFlutterEchoNullable( _ anEnum: AnEnum?, completion: @escaping (Result) -> Void ) { flutterAPI.echoNullable(anEnum) { response in @@ -607,6 +643,19 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { } } + func callFlutterEchoNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void + ) { + flutterAPI.echoNullable(anotherEnum) { response in + switch response { + case .success(let res): + completion(.success(res)) + case .failure(let error): + completion(.failure(error)) + } + } + } + func callFlutterSmallApiEcho( _ aString: String, completion: @escaping (Result) -> Void ) { diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index 65a3f797eb5..d5ae4f8b45a 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -23,6 +23,7 @@ struct _CoreTestsPigeonTestAllTypes { double* a_float_array; size_t a_float_array_length; CoreTestsPigeonTestAnEnum an_enum; + CoreTestsPigeonTestAnotherEnum another_enum; gchar* a_string; FlValue* an_object; FlValue* list; @@ -64,7 +65,8 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( const int32_t* a4_byte_array, size_t a4_byte_array_length, const int64_t* a8_byte_array, size_t a8_byte_array_length, const double* a_float_array, size_t a_float_array_length, - CoreTestsPigeonTestAnEnum an_enum, const gchar* a_string, + CoreTestsPigeonTestAnEnum an_enum, + CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* map) { CoreTestsPigeonTestAllTypes* self = CORE_TESTS_PIGEON_TEST_ALL_TYPES( @@ -89,6 +91,7 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( sizeof(double) * a_float_array_length)); self->a_float_array_length = a_float_array_length; self->an_enum = an_enum; + self->another_enum = another_enum; self->a_string = g_strdup(a_string); self->an_object = fl_value_ref(an_object); self->list = fl_value_ref(list); @@ -159,6 +162,14 @@ CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum( return self->an_enum; } +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_all_types_get_another_enum( + CoreTestsPigeonTestAllTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), + static_cast(0)); + return self->another_enum; +} + const gchar* core_tests_pigeon_test_all_types_get_a_string( CoreTestsPigeonTestAllTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_TYPES(self), nullptr); @@ -227,8 +238,11 @@ static FlValue* core_tests_pigeon_test_all_types_to_list( values, fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); fl_value_append_take(values, - fl_value_new_custom(129, fl_value_new_int(self->an_enum), + fl_value_new_custom(254, fl_value_new_int(self->an_enum), (GDestroyNotify)fl_value_unref)); + fl_value_append_take( + values, fl_value_new_custom(255, fl_value_new_int(self->another_enum), + (GDestroyNotify)fl_value_unref)); fl_value_append_take(values, fl_value_new_string(self->a_string)); fl_value_append_take(values, fl_value_ref(self->an_object)); fl_value_append_take(values, fl_value_ref(self->list)); @@ -267,26 +281,31 @@ core_tests_pigeon_test_all_types_new_from_list(FlValue* values) { fl_value_get_int(reinterpret_cast( const_cast(fl_value_get_custom_value(value8))))); FlValue* value9 = fl_value_get_list_value(values, 9); - const gchar* a_string = fl_value_get_string(value9); + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value9))))); FlValue* value10 = fl_value_get_list_value(values, 10); - FlValue* an_object = value10; + const gchar* a_string = fl_value_get_string(value10); FlValue* value11 = fl_value_get_list_value(values, 11); - FlValue* list = value11; + FlValue* an_object = value11; FlValue* value12 = fl_value_get_list_value(values, 12); - FlValue* string_list = value12; + FlValue* list = value12; FlValue* value13 = fl_value_get_list_value(values, 13); - FlValue* int_list = value13; + FlValue* string_list = value13; FlValue* value14 = fl_value_get_list_value(values, 14); - FlValue* double_list = value14; + FlValue* int_list = value14; FlValue* value15 = fl_value_get_list_value(values, 15); - FlValue* bool_list = value15; + FlValue* double_list = value15; FlValue* value16 = fl_value_get_list_value(values, 16); - FlValue* map = value16; + FlValue* bool_list = value16; + FlValue* value17 = fl_value_get_list_value(values, 17); + FlValue* map = value17; return core_tests_pigeon_test_all_types_new( a_bool, an_int, an_int64, a_double, a_byte_array, a_byte_array_length, a4_byte_array, a4_byte_array_length, a8_byte_array, a8_byte_array_length, - a_float_array, a_float_array_length, an_enum, a_string, an_object, list, - string_list, int_list, double_list, bool_list, map); + a_float_array, a_float_array_length, an_enum, another_enum, a_string, + an_object, list, string_list, int_list, double_list, bool_list, map); } struct _CoreTestsPigeonTestAllNullableTypes { @@ -308,6 +327,7 @@ struct _CoreTestsPigeonTestAllNullableTypes { FlValue* nullable_map_with_annotations; FlValue* nullable_map_with_object; CoreTestsPigeonTestAnEnum* a_nullable_enum; + CoreTestsPigeonTestAnotherEnum* another_nullable_enum; gchar* a_nullable_string; FlValue* a_nullable_object; CoreTestsPigeonTestAllNullableTypes* all_nullable_types; @@ -334,6 +354,7 @@ static void core_tests_pigeon_test_all_nullable_types_dispose(GObject* object) { g_clear_pointer(&self->nullable_map_with_annotations, fl_value_unref); g_clear_pointer(&self->nullable_map_with_object, fl_value_unref); g_clear_pointer(&self->a_nullable_enum, g_free); + g_clear_pointer(&self->another_nullable_enum, g_free); g_clear_pointer(&self->a_nullable_string, g_free); g_clear_pointer(&self->a_nullable_object, fl_value_unref); g_clear_object(&self->all_nullable_types); @@ -367,8 +388,9 @@ core_tests_pigeon_test_all_nullable_types_new( const double* a_nullable_float_array, size_t a_nullable_float_array_length, FlValue* nullable_nested_list, FlValue* nullable_map_with_annotations, FlValue* nullable_map_with_object, - CoreTestsPigeonTestAnEnum* a_nullable_enum, const gchar* a_nullable_string, - FlValue* a_nullable_object, + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* nested_class_list, FlValue* map) { @@ -461,6 +483,13 @@ core_tests_pigeon_test_all_nullable_types_new( } else { self->a_nullable_enum = nullptr; } + if (another_nullable_enum != nullptr) { + self->another_nullable_enum = static_cast( + malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); + *self->another_nullable_enum = *another_nullable_enum; + } else { + self->another_nullable_enum = nullptr; + } if (a_nullable_string != nullptr) { self->a_nullable_string = g_strdup(a_nullable_string); } else { @@ -609,6 +638,14 @@ core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum( return self->a_nullable_enum; } +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypes* self) { + g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), + nullptr); + return self->another_nullable_enum; +} + const gchar* core_tests_pigeon_test_all_nullable_types_get_a_nullable_string( CoreTestsPigeonTestAllNullableTypes* self) { g_return_val_if_fail(CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES(self), @@ -730,9 +767,15 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( fl_value_append_take( values, self->a_nullable_enum != nullptr - ? fl_value_new_custom(129, fl_value_new_int(*self->a_nullable_enum), + ? fl_value_new_custom(254, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + fl_value_append_take( + values, self->another_nullable_enum != nullptr + ? fl_value_new_custom( + 255, fl_value_new_int(*self->another_nullable_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); fl_value_append_take(values, self->a_nullable_string != nullptr ? fl_value_new_string(self->a_nullable_string) @@ -743,7 +786,7 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( fl_value_append_take( values, self->all_nullable_types != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(self->all_nullable_types)) + ? fl_value_new_custom_object(257, G_OBJECT(self->all_nullable_types)) : fl_value_new_null()); fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) : fl_value_new_null()); @@ -850,55 +893,64 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { a_nullable_enum = &a_nullable_enum_value; } FlValue* value12 = fl_value_get_list_value(values, 12); - const gchar* a_nullable_string = nullptr; + CoreTestsPigeonTestAnotherEnum* another_nullable_enum = nullptr; + CoreTestsPigeonTestAnotherEnum another_nullable_enum_value; if (fl_value_get_type(value12) != FL_VALUE_TYPE_NULL) { - a_nullable_string = fl_value_get_string(value12); + another_nullable_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value12))))); + another_nullable_enum = &another_nullable_enum_value; } FlValue* value13 = fl_value_get_list_value(values, 13); - FlValue* a_nullable_object = nullptr; + const gchar* a_nullable_string = nullptr; if (fl_value_get_type(value13) != FL_VALUE_TYPE_NULL) { - a_nullable_object = value13; + a_nullable_string = fl_value_get_string(value13); } FlValue* value14 = fl_value_get_list_value(values, 14); - CoreTestsPigeonTestAllNullableTypes* all_nullable_types = nullptr; + FlValue* a_nullable_object = nullptr; if (fl_value_get_type(value14) != FL_VALUE_TYPE_NULL) { - all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value14)); + a_nullable_object = value14; } FlValue* value15 = fl_value_get_list_value(values, 15); - FlValue* list = nullptr; + CoreTestsPigeonTestAllNullableTypes* all_nullable_types = nullptr; if (fl_value_get_type(value15) != FL_VALUE_TYPE_NULL) { - list = value15; + all_nullable_types = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value15)); } FlValue* value16 = fl_value_get_list_value(values, 16); - FlValue* string_list = nullptr; + FlValue* list = nullptr; if (fl_value_get_type(value16) != FL_VALUE_TYPE_NULL) { - string_list = value16; + list = value16; } FlValue* value17 = fl_value_get_list_value(values, 17); - FlValue* int_list = nullptr; + FlValue* string_list = nullptr; if (fl_value_get_type(value17) != FL_VALUE_TYPE_NULL) { - int_list = value17; + string_list = value17; } FlValue* value18 = fl_value_get_list_value(values, 18); - FlValue* double_list = nullptr; + FlValue* int_list = nullptr; if (fl_value_get_type(value18) != FL_VALUE_TYPE_NULL) { - double_list = value18; + int_list = value18; } FlValue* value19 = fl_value_get_list_value(values, 19); - FlValue* bool_list = nullptr; + FlValue* double_list = nullptr; if (fl_value_get_type(value19) != FL_VALUE_TYPE_NULL) { - bool_list = value19; + double_list = value19; } FlValue* value20 = fl_value_get_list_value(values, 20); - FlValue* nested_class_list = nullptr; + FlValue* bool_list = nullptr; if (fl_value_get_type(value20) != FL_VALUE_TYPE_NULL) { - nested_class_list = value20; + bool_list = value20; } FlValue* value21 = fl_value_get_list_value(values, 21); - FlValue* map = nullptr; + FlValue* nested_class_list = nullptr; if (fl_value_get_type(value21) != FL_VALUE_TYPE_NULL) { - map = value21; + nested_class_list = value21; + } + FlValue* value22 = fl_value_get_list_value(values, 22); + FlValue* map = nullptr; + if (fl_value_get_type(value22) != FL_VALUE_TYPE_NULL) { + map = value22; } return core_tests_pigeon_test_all_nullable_types_new( a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, @@ -907,9 +959,9 @@ core_tests_pigeon_test_all_nullable_types_new_from_list(FlValue* values) { a_nullable8_byte_array, a_nullable8_byte_array_length, a_nullable_float_array, a_nullable_float_array_length, nullable_nested_list, nullable_map_with_annotations, - nullable_map_with_object, a_nullable_enum, a_nullable_string, - a_nullable_object, all_nullable_types, list, string_list, int_list, - double_list, bool_list, nested_class_list, map); + nullable_map_with_object, a_nullable_enum, another_nullable_enum, + a_nullable_string, a_nullable_object, all_nullable_types, list, + string_list, int_list, double_list, bool_list, nested_class_list, map); } struct _CoreTestsPigeonTestAllNullableTypesWithoutRecursion { @@ -931,6 +983,7 @@ struct _CoreTestsPigeonTestAllNullableTypesWithoutRecursion { FlValue* nullable_map_with_annotations; FlValue* nullable_map_with_object; CoreTestsPigeonTestAnEnum* a_nullable_enum; + CoreTestsPigeonTestAnotherEnum* another_nullable_enum; gchar* a_nullable_string; FlValue* a_nullable_object; FlValue* list; @@ -957,6 +1010,7 @@ static void core_tests_pigeon_test_all_nullable_types_without_recursion_dispose( g_clear_pointer(&self->nullable_map_with_annotations, fl_value_unref); g_clear_pointer(&self->nullable_map_with_object, fl_value_unref); g_clear_pointer(&self->a_nullable_enum, g_free); + g_clear_pointer(&self->another_nullable_enum, g_free); g_clear_pointer(&self->a_nullable_string, g_free); g_clear_pointer(&self->a_nullable_object, fl_value_unref); g_clear_pointer(&self->list, fl_value_unref); @@ -990,9 +1044,11 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new( const double* a_nullable_float_array, size_t a_nullable_float_array_length, FlValue* nullable_nested_list, FlValue* nullable_map_with_annotations, FlValue* nullable_map_with_object, - CoreTestsPigeonTestAnEnum* a_nullable_enum, const gchar* a_nullable_string, - FlValue* a_nullable_object, FlValue* list, FlValue* string_list, - FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* map) { + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, + FlValue* string_list, FlValue* int_list, FlValue* double_list, + FlValue* bool_list, FlValue* map) { CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self = CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(g_object_new( core_tests_pigeon_test_all_nullable_types_without_recursion_get_type(), @@ -1083,6 +1139,13 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new( } else { self->a_nullable_enum = nullptr; } + if (another_nullable_enum != nullptr) { + self->another_nullable_enum = static_cast( + malloc(sizeof(CoreTestsPigeonTestAnotherEnum))); + *self->another_nullable_enum = *another_nullable_enum; + } else { + self->another_nullable_enum = nullptr; + } if (a_nullable_string != nullptr) { self->a_nullable_string = g_strdup(a_nullable_string); } else { @@ -1238,6 +1301,15 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum( return self->a_nullable_enum; } +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_ALL_NULLABLE_TYPES_WITHOUT_RECURSION(self), + nullptr); + return self->another_nullable_enum; +} + const gchar* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string( CoreTestsPigeonTestAllNullableTypesWithoutRecursion* self) { @@ -1359,9 +1431,15 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( fl_value_append_take( values, self->a_nullable_enum != nullptr - ? fl_value_new_custom(129, fl_value_new_int(*self->a_nullable_enum), + ? fl_value_new_custom(254, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); + fl_value_append_take( + values, self->another_nullable_enum != nullptr + ? fl_value_new_custom( + 255, fl_value_new_int(*self->another_nullable_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); fl_value_append_take(values, self->a_nullable_string != nullptr ? fl_value_new_string(self->a_nullable_string) @@ -1472,44 +1550,53 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( a_nullable_enum = &a_nullable_enum_value; } FlValue* value12 = fl_value_get_list_value(values, 12); - const gchar* a_nullable_string = nullptr; + CoreTestsPigeonTestAnotherEnum* another_nullable_enum = nullptr; + CoreTestsPigeonTestAnotherEnum another_nullable_enum_value; if (fl_value_get_type(value12) != FL_VALUE_TYPE_NULL) { - a_nullable_string = fl_value_get_string(value12); + another_nullable_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value12))))); + another_nullable_enum = &another_nullable_enum_value; } FlValue* value13 = fl_value_get_list_value(values, 13); - FlValue* a_nullable_object = nullptr; + const gchar* a_nullable_string = nullptr; if (fl_value_get_type(value13) != FL_VALUE_TYPE_NULL) { - a_nullable_object = value13; + a_nullable_string = fl_value_get_string(value13); } FlValue* value14 = fl_value_get_list_value(values, 14); - FlValue* list = nullptr; + FlValue* a_nullable_object = nullptr; if (fl_value_get_type(value14) != FL_VALUE_TYPE_NULL) { - list = value14; + a_nullable_object = value14; } FlValue* value15 = fl_value_get_list_value(values, 15); - FlValue* string_list = nullptr; + FlValue* list = nullptr; if (fl_value_get_type(value15) != FL_VALUE_TYPE_NULL) { - string_list = value15; + list = value15; } FlValue* value16 = fl_value_get_list_value(values, 16); - FlValue* int_list = nullptr; + FlValue* string_list = nullptr; if (fl_value_get_type(value16) != FL_VALUE_TYPE_NULL) { - int_list = value16; + string_list = value16; } FlValue* value17 = fl_value_get_list_value(values, 17); - FlValue* double_list = nullptr; + FlValue* int_list = nullptr; if (fl_value_get_type(value17) != FL_VALUE_TYPE_NULL) { - double_list = value17; + int_list = value17; } FlValue* value18 = fl_value_get_list_value(values, 18); - FlValue* bool_list = nullptr; + FlValue* double_list = nullptr; if (fl_value_get_type(value18) != FL_VALUE_TYPE_NULL) { - bool_list = value18; + double_list = value18; } FlValue* value19 = fl_value_get_list_value(values, 19); - FlValue* map = nullptr; + FlValue* bool_list = nullptr; if (fl_value_get_type(value19) != FL_VALUE_TYPE_NULL) { - map = value19; + bool_list = value19; + } + FlValue* value20 = fl_value_get_list_value(values, 20); + FlValue* map = nullptr; + if (fl_value_get_type(value20) != FL_VALUE_TYPE_NULL) { + map = value20; } return core_tests_pigeon_test_all_nullable_types_without_recursion_new( a_nullable_bool, a_nullable_int, a_nullable_int64, a_nullable_double, @@ -1518,9 +1605,9 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new_from_list( a_nullable8_byte_array, a_nullable8_byte_array_length, a_nullable_float_array, a_nullable_float_array_length, nullable_nested_list, nullable_map_with_annotations, - nullable_map_with_object, a_nullable_enum, a_nullable_string, - a_nullable_object, list, string_list, int_list, double_list, bool_list, - map); + nullable_map_with_object, a_nullable_enum, another_nullable_enum, + a_nullable_string, a_nullable_object, list, string_list, int_list, + double_list, bool_list, map); } struct _CoreTestsPigeonTestAllClassesWrapper { @@ -1609,16 +1696,16 @@ static FlValue* core_tests_pigeon_test_all_classes_wrapper_to_list( CoreTestsPigeonTestAllClassesWrapper* self) { FlValue* values = fl_value_new_list(); fl_value_append_take(values, fl_value_new_custom_object( - 131, G_OBJECT(self->all_nullable_types))); + 257, G_OBJECT(self->all_nullable_types))); fl_value_append_take( values, self->all_nullable_types_without_recursion != nullptr ? fl_value_new_custom_object( - 132, G_OBJECT(self->all_nullable_types_without_recursion)) + 258, G_OBJECT(self->all_nullable_types_without_recursion)) : fl_value_new_null()); fl_value_append_take( values, self->all_types != nullptr - ? fl_value_new_custom_object(130, G_OBJECT(self->all_types)) + ? fl_value_new_custom_object(256, G_OBJECT(self->all_types)) : fl_value_new_null()); return values; } @@ -1723,7 +1810,7 @@ G_DEFINE_TYPE(CoreTestsPigeonTestMessageCodec, fl_standard_message_codec_get_type()) static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum0( FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { uint8_t type = 129; @@ -1732,108 +1819,3123 @@ core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( } static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllTypes* value, GError** error) { +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum1( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { uint8_t type = 130; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = core_tests_pigeon_test_all_types_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); + return fl_standard_message_codec_write_value(codec, buffer, value, error); } static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllNullableTypes* value, GError** error) { +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum2( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { uint8_t type = 131; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_nullable_types_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); + return fl_standard_message_codec_write_value(codec, buffer, value, error); } static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum3( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { uint8_t type = 132; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( - value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); + return fl_standard_message_codec_write_value(codec, buffer, value, error); } static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum4( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { uint8_t type = 133; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_classes_wrapper_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); + return fl_standard_message_codec_write_value(codec, buffer, value, error); } static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestTestMessage* value, GError** error) { +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum5( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { uint8_t type = 134; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_test_message_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); + return fl_standard_message_codec_write_value(codec, buffer, value, error); } -static gboolean core_tests_pigeon_test_message_codec_write_value( +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum6( FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { - if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { - switch (fl_value_get_custom_type(value)) { - case 129: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 130: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(value)), - error); - case 131: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value)), - error); - case 132: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(value)), - error); - case 133: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( - fl_value_get_custom_value_object(value)), - error); - case 134: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( - codec, buffer, - CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( - fl_value_get_custom_value_object(value)), - error); - } - } + uint8_t type = 135; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum7( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 136; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum8( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 137; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum9( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 138; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum10( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 139; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum11( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 140; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum12( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 141; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum13( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 142; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum14( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 143; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum15( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 144; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum16( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 145; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum17( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 146; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum18( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 147; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum19( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 148; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum20( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 149; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum21( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 150; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum22( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 151; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum23( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 152; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum24( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 153; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum25( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 154; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum26( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 155; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum27( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 156; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum28( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 157; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum29( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 158; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum30( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 159; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum31( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 160; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum32( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 161; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum33( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 162; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum34( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 163; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum35( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 164; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum36( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 165; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum37( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 166; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum38( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 167; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum39( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 168; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum40( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 169; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum41( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 170; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum42( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 171; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum43( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 172; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum44( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 173; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum45( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 174; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum46( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 175; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum47( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 176; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum48( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 177; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum49( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 178; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum50( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 179; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum51( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 180; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum52( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 181; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum53( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 182; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum54( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 183; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum55( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 184; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum56( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 185; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum57( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 186; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum58( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 187; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum59( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 188; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum60( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 189; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum61( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 190; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum62( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 191; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum63( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 192; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum64( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 193; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum65( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 194; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum66( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 195; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum67( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 196; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum68( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 197; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum69( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 198; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum70( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 199; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum71( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 200; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum72( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 201; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum73( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 202; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum74( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 203; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum75( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 204; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum76( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 205; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum77( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 206; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum78( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 207; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum79( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 208; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum80( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 209; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum81( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 210; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum82( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 211; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum83( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 212; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum84( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 213; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum85( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 214; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum86( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 215; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum87( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 216; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum88( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 217; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum89( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 218; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum90( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 219; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum91( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 220; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum92( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 221; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum93( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 222; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum94( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 223; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum95( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 224; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum96( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 225; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum97( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 226; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum98( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 227; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum99( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 228; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum100( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 229; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum101( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 230; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum102( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 231; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum103( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 232; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum104( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 233; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum105( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 234; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum106( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 235; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum107( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 236; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum108( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 237; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum109( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 238; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum110( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 239; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum111( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 240; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum112( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 241; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum113( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 242; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum114( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 243; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum115( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 244; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum116( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 245; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum117( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 246; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum118( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 247; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum119( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 248; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum120( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 249; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum121( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 250; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum122( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 251; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum123( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 252; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum124( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 253; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 254; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + uint8_t type = 255; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + return fl_standard_message_codec_write_value(codec, buffer, value, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllTypes* value, GError** error) { + uint8_t type = 256; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = core_tests_pigeon_test_all_types_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllNullableTypes* value, GError** error) { + uint8_t type = 257; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_nullable_types_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, + GError** error) { + uint8_t type = 258; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( + value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { + uint8_t type = 259; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_classes_wrapper_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); +} + +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestTestMessage* value, GError** error) { + uint8_t type = 260; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_test_message_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); +} + +static gboolean core_tests_pigeon_test_message_codec_write_value( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, + GError** error) { + if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { + switch (fl_value_get_custom_type(value)) { + case 129: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum0( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 130: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum1( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 131: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum2( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 132: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum3( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 133: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum4( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 134: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum5( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 135: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum6( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 136: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum7( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 137: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum8( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 138: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum9( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 139: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum10( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 140: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum11( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 141: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum12( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 142: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum13( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 143: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum14( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 144: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum15( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 145: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum16( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 146: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum17( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 147: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum18( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 148: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum19( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 149: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum20( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 150: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum21( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 151: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum22( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 152: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum23( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 153: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum24( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 154: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum25( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 155: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum26( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 156: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum27( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 157: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum28( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 158: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum29( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 159: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum30( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 160: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum31( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 161: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum32( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 162: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum33( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 163: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum34( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 164: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum35( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 165: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum36( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 166: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum37( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 167: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum38( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 168: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum39( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 169: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum40( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 170: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum41( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 171: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum42( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 172: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum43( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 173: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum44( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 174: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum45( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 175: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum46( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 176: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum47( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 177: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum48( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 178: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum49( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 179: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum50( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 180: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum51( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 181: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum52( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 182: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum53( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 183: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum54( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 184: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum55( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 185: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum56( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 186: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum57( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 187: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum58( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 188: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum59( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 189: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum60( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 190: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum61( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 191: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum62( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 192: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum63( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 193: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum64( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 194: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum65( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 195: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum66( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 196: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum67( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 197: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum68( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 198: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum69( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 199: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum70( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 200: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum71( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 201: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum72( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 202: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum73( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 203: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum74( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 204: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum75( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 205: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum76( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 206: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum77( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 207: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum78( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 208: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum79( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 209: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum80( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 210: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum81( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 211: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum82( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 212: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum83( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 213: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum84( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 214: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum85( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 215: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum86( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 216: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum87( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 217: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum88( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 218: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum89( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 219: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum90( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 220: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum91( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 221: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum92( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 222: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum93( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 223: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum94( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 224: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum95( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 225: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum96( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 226: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum97( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 227: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum98( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 228: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum99( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 229: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum100( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 230: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum101( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 231: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum102( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 232: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum103( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 233: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum104( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 234: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum105( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 235: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum106( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 236: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum107( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 237: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum108( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 238: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum109( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 239: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum110( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 240: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum111( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 241: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum112( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 242: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum113( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 243: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum114( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 244: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum115( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 245: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum116( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 246: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum117( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 247: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum118( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 248: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum119( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 249: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum120( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 250: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum121( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 251: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum122( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 252: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum123( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 253: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum124( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 254: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 255: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 256: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(value)), + error); + case 257: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value)), + error); + case 258: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value)), + error); + case 259: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( + fl_value_get_custom_value_object(value)), + error); + case 260: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( + codec, buffer, + CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( + fl_value_get_custom_value_object(value)), + error); + } + } + + return FL_STANDARD_MESSAGE_CODEC_CLASS( + core_tests_pigeon_test_message_codec_parent_class) + ->write_value(codec, buffer, value, error); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum0( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 129, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum1( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 130, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum2( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 131, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum3( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 132, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum4( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 133, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum5( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 134, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum6( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 135, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum7( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 136, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum8( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 137, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum9( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 138, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum10( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 139, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum11( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 140, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum12( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 141, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum13( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 142, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum14( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 143, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum15( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 144, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum16( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 145, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum17( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 146, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum18( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 147, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum19( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 148, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum20( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 149, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum21( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 150, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum22( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 151, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum23( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 152, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum24( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 153, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum25( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 154, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum26( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 155, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum27( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 156, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum28( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 157, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum29( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 158, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum30( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 159, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum31( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 160, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum32( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 161, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum33( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 162, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum34( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 163, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum35( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 164, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum36( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 165, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum37( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 166, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum38( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 167, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum39( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 168, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum40( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 169, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum41( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 170, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum42( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 171, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum43( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 172, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum44( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 173, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum45( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 174, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum46( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 175, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum47( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 176, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum48( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 177, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum49( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 178, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum50( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 179, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum51( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 180, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum52( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 181, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum53( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 182, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum54( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 183, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum55( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 184, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum56( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 185, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum57( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 186, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum58( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 187, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum59( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 188, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum60( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 189, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum61( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 190, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum62( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 191, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum63( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 192, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum64( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 193, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum65( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 194, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum66( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 195, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum67( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 196, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum68( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 197, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum69( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 198, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum70( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 199, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum71( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 200, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum72( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 201, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum73( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 202, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum74( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 203, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum75( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 204, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum76( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 205, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum77( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 206, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum78( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 207, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum79( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 208, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum80( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 209, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum81( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 210, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum82( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 211, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum83( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 212, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum84( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 213, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum85( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 214, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum86( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 215, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum87( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 216, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum88( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 217, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum89( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 218, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum90( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 219, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum91( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 220, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum92( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 221, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum93( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 222, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum94( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 223, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum95( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 224, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum96( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 225, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum97( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 226, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum98( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 227, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum99( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 228, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum100( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 229, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum101( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 230, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum102( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 231, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum103( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 232, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum104( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 233, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum105( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 234, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum106( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 235, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum107( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 236, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum108( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 237, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum109( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 238, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum110( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 239, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum111( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 240, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum112( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 241, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum113( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 242, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum114( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 243, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum115( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 244, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum116( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 245, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum117( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 246, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum118( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 247, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum119( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 248, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum120( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 249, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum121( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 250, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum122( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 251, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} - return FL_STANDARD_MESSAGE_CODEC_CLASS( - core_tests_pigeon_test_message_codec_parent_class) - ->write_value(codec, buffer, value, error); +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum123( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 252, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum124( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 253, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); } static FlValue* @@ -1841,7 +4943,16 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { return fl_value_new_custom( - 129, fl_standard_message_codec_read_value(codec, buffer, offset, error), + 254, fl_standard_message_codec_read_value(codec, buffer, offset, error), + (GDestroyNotify)fl_value_unref); +} + +static FlValue* +core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( + FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, + GError** error) { + return fl_value_new_custom( + 255, fl_standard_message_codec_read_value(codec, buffer, offset, error), (GDestroyNotify)fl_value_unref); } @@ -1863,7 +4974,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( return nullptr; } - return fl_value_new_custom_object(130, G_OBJECT(value)); + return fl_value_new_custom_object(256, G_OBJECT(value)); } static FlValue* @@ -1884,7 +4995,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_ty return nullptr; } - return fl_value_new_custom_object(131, G_OBJECT(value)); + return fl_value_new_custom_object(257, G_OBJECT(value)); } static FlValue* @@ -1906,7 +5017,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_ty return nullptr; } - return fl_value_new_custom_object(132, G_OBJECT(value)); + return fl_value_new_custom_object(258, G_OBJECT(value)); } static FlValue* @@ -1927,7 +5038,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wra return nullptr; } - return fl_value_new_custom_object(133, G_OBJECT(value)); + return fl_value_new_custom_object(259, G_OBJECT(value)); } static FlValue* @@ -1948,7 +5059,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( return nullptr; } - return fl_value_new_custom_object(134, G_OBJECT(value)); + return fl_value_new_custom_object(260, G_OBJECT(value)); } static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( @@ -1956,21 +5067,399 @@ static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( GError** error) { switch (type) { case 129: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum0( codec, buffer, offset, error); case 130: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum1( codec, buffer, offset, error); case 131: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum2( codec, buffer, offset, error); case 132: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum3( codec, buffer, offset, error); case 133: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum4( codec, buffer, offset, error); case 134: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum5( + codec, buffer, offset, error); + case 135: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum6( + codec, buffer, offset, error); + case 136: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum7( + codec, buffer, offset, error); + case 137: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum8( + codec, buffer, offset, error); + case 138: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum9( + codec, buffer, offset, error); + case 139: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum10( + codec, buffer, offset, error); + case 140: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum11( + codec, buffer, offset, error); + case 141: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum12( + codec, buffer, offset, error); + case 142: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum13( + codec, buffer, offset, error); + case 143: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum14( + codec, buffer, offset, error); + case 144: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum15( + codec, buffer, offset, error); + case 145: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum16( + codec, buffer, offset, error); + case 146: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum17( + codec, buffer, offset, error); + case 147: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum18( + codec, buffer, offset, error); + case 148: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum19( + codec, buffer, offset, error); + case 149: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum20( + codec, buffer, offset, error); + case 150: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum21( + codec, buffer, offset, error); + case 151: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum22( + codec, buffer, offset, error); + case 152: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum23( + codec, buffer, offset, error); + case 153: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum24( + codec, buffer, offset, error); + case 154: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum25( + codec, buffer, offset, error); + case 155: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum26( + codec, buffer, offset, error); + case 156: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum27( + codec, buffer, offset, error); + case 157: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum28( + codec, buffer, offset, error); + case 158: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum29( + codec, buffer, offset, error); + case 159: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum30( + codec, buffer, offset, error); + case 160: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum31( + codec, buffer, offset, error); + case 161: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum32( + codec, buffer, offset, error); + case 162: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum33( + codec, buffer, offset, error); + case 163: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum34( + codec, buffer, offset, error); + case 164: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum35( + codec, buffer, offset, error); + case 165: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum36( + codec, buffer, offset, error); + case 166: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum37( + codec, buffer, offset, error); + case 167: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum38( + codec, buffer, offset, error); + case 168: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum39( + codec, buffer, offset, error); + case 169: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum40( + codec, buffer, offset, error); + case 170: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum41( + codec, buffer, offset, error); + case 171: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum42( + codec, buffer, offset, error); + case 172: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum43( + codec, buffer, offset, error); + case 173: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum44( + codec, buffer, offset, error); + case 174: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum45( + codec, buffer, offset, error); + case 175: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum46( + codec, buffer, offset, error); + case 176: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum47( + codec, buffer, offset, error); + case 177: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum48( + codec, buffer, offset, error); + case 178: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum49( + codec, buffer, offset, error); + case 179: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum50( + codec, buffer, offset, error); + case 180: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum51( + codec, buffer, offset, error); + case 181: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum52( + codec, buffer, offset, error); + case 182: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum53( + codec, buffer, offset, error); + case 183: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum54( + codec, buffer, offset, error); + case 184: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum55( + codec, buffer, offset, error); + case 185: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum56( + codec, buffer, offset, error); + case 186: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum57( + codec, buffer, offset, error); + case 187: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum58( + codec, buffer, offset, error); + case 188: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum59( + codec, buffer, offset, error); + case 189: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum60( + codec, buffer, offset, error); + case 190: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum61( + codec, buffer, offset, error); + case 191: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum62( + codec, buffer, offset, error); + case 192: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum63( + codec, buffer, offset, error); + case 193: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum64( + codec, buffer, offset, error); + case 194: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum65( + codec, buffer, offset, error); + case 195: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum66( + codec, buffer, offset, error); + case 196: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum67( + codec, buffer, offset, error); + case 197: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum68( + codec, buffer, offset, error); + case 198: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum69( + codec, buffer, offset, error); + case 199: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum70( + codec, buffer, offset, error); + case 200: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum71( + codec, buffer, offset, error); + case 201: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum72( + codec, buffer, offset, error); + case 202: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum73( + codec, buffer, offset, error); + case 203: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum74( + codec, buffer, offset, error); + case 204: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum75( + codec, buffer, offset, error); + case 205: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum76( + codec, buffer, offset, error); + case 206: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum77( + codec, buffer, offset, error); + case 207: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum78( + codec, buffer, offset, error); + case 208: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum79( + codec, buffer, offset, error); + case 209: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum80( + codec, buffer, offset, error); + case 210: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum81( + codec, buffer, offset, error); + case 211: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum82( + codec, buffer, offset, error); + case 212: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum83( + codec, buffer, offset, error); + case 213: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum84( + codec, buffer, offset, error); + case 214: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum85( + codec, buffer, offset, error); + case 215: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum86( + codec, buffer, offset, error); + case 216: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum87( + codec, buffer, offset, error); + case 217: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum88( + codec, buffer, offset, error); + case 218: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum89( + codec, buffer, offset, error); + case 219: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum90( + codec, buffer, offset, error); + case 220: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum91( + codec, buffer, offset, error); + case 221: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum92( + codec, buffer, offset, error); + case 222: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum93( + codec, buffer, offset, error); + case 223: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum94( + codec, buffer, offset, error); + case 224: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum95( + codec, buffer, offset, error); + case 225: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum96( + codec, buffer, offset, error); + case 226: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum97( + codec, buffer, offset, error); + case 227: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum98( + codec, buffer, offset, error); + case 228: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum99( + codec, buffer, offset, error); + case 229: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum100( + codec, buffer, offset, error); + case 230: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum101( + codec, buffer, offset, error); + case 231: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum102( + codec, buffer, offset, error); + case 232: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum103( + codec, buffer, offset, error); + case 233: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum104( + codec, buffer, offset, error); + case 234: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum105( + codec, buffer, offset, error); + case 235: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum106( + codec, buffer, offset, error); + case 236: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum107( + codec, buffer, offset, error); + case 237: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum108( + codec, buffer, offset, error); + case 238: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum109( + codec, buffer, offset, error); + case 239: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum110( + codec, buffer, offset, error); + case 240: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum111( + codec, buffer, offset, error); + case 241: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum112( + codec, buffer, offset, error); + case 242: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum113( + codec, buffer, offset, error); + case 243: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum114( + codec, buffer, offset, error); + case 244: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum115( + codec, buffer, offset, error); + case 245: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum116( + codec, buffer, offset, error); + case 246: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum117( + codec, buffer, offset, error); + case 247: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum118( + codec, buffer, offset, error); + case 248: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum119( + codec, buffer, offset, error); + case 249: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum120( + codec, buffer, offset, error); + case 250: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum121( + codec, buffer, offset, error); + case 251: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum122( + codec, buffer, offset, error); + case 252: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum123( + codec, buffer, offset, error); + case 253: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum124( + codec, buffer, offset, error); + case 254: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( + codec, buffer, offset, error); + case 255: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( + codec, buffer, offset, error); + case 256: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( + codec, buffer, offset, error); + case 257: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( + codec, buffer, offset, error); + case 258: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( + codec, buffer, offset, error); + case 259: + return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( + codec, buffer, offset, error); + case 260: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( codec, buffer, offset, error); default: @@ -2148,7 +5637,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(130, G_OBJECT(return_value))); + fl_value_new_custom_object(256, G_OBJECT(return_value))); return self; } @@ -2918,7 +6407,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(133, G_OBJECT(return_value))); + fl_value_new_custom_object(259, G_OBJECT(return_value))); return self; } @@ -2982,7 +6471,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(129, fl_value_new_int(return_value), + fl_value_new_custom(254, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -3003,6 +6492,73 @@ core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error( return self; } +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, + fl_value_new_custom(255, fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; +} + struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse { GObject parent_instance; @@ -3249,7 +6805,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_respons self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(return_value)) + ? fl_value_new_custom_object(257, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -3320,7 +6876,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(132, G_OBJECT(return_value)) + ? fl_value_new_custom_object(258, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -3459,7 +7015,7 @@ core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_r nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(133, G_OBJECT(return_value))); + fl_value_new_custom_object(259, G_OBJECT(return_value))); return self; } @@ -3527,7 +7083,7 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_re nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(131, G_OBJECT(return_value))); + fl_value_new_custom_object(257, G_OBJECT(return_value))); return self; } @@ -3596,7 +7152,7 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_wi nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(132, G_OBJECT(return_value))); + fl_value_new_custom_object(258, G_OBJECT(return_value))); return self; } @@ -4205,19 +7761,91 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(129, fl_value_new_int(*return_value), + ? fl_value_new_custom(254, fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; +} + +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_dispose; +} + +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(255, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; } -CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* -core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error( +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error( const gchar* code, const gchar* message, FlValue* details) { - CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* self = - CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_NULLABLE_ENUM_RESPONSE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( g_object_new( - core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_get_type(), + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_get_type(), nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, fl_value_new_string(code)); @@ -5052,7 +8680,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(129, fl_value_new_int(return_value), + fl_value_new_custom(254, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -5074,6 +8702,80 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new_er return self; } +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE, GObject) + +struct _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, + fl_value_new_custom(255, fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; +} + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestHostIntegrationCoreApiThrowAsyncErrorResponse, core_tests_pigeon_test_host_integration_core_api_throw_async_error_response, @@ -5345,7 +9047,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_n nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(130, G_OBJECT(return_value))); + fl_value_new_custom_object(256, G_OBJECT(return_value))); return self; } @@ -5422,7 +9124,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullabl self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(return_value)) + ? fl_value_new_custom_object(257, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -5500,7 +9202,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullabl self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(132, G_OBJECT(return_value)) + ? fl_value_new_custom_object(258, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -6173,7 +9875,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_respon fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(129, fl_value_new_int(*return_value), + ? fl_value_new_custom(254, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -6196,6 +9898,86 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_respon return self; } +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE, + GObject) + +struct + _CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(255, fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ASYNC_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; +} + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterNoopResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_response, @@ -6467,7 +10249,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_res nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(130, G_OBJECT(return_value))); + fl_value_new_custom_object(256, G_OBJECT(return_value))); return self; } @@ -6544,7 +10326,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_ self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(return_value)) + ? fl_value_new_custom_object(257, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -6621,7 +10403,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(131, G_OBJECT(return_value))); + fl_value_new_custom_object(257, G_OBJECT(return_value))); return self; } @@ -6698,7 +10480,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_ self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(132, G_OBJECT(return_value)) + ? fl_value_new_custom_object(258, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -6775,7 +10557,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(132, G_OBJECT(return_value))); + fl_value_new_custom_object(258, G_OBJECT(return_value))); return self; } @@ -7354,7 +11136,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(129, fl_value_new_int(return_value), + fl_value_new_custom(254, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -7376,6 +11158,81 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response return self; } +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE, GObject) + +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, + fl_value_new_custom(255, fl_value_new_int(return_value), + (GDestroyNotify)fl_value_unref)); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; +} + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableBoolResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_response, @@ -7966,7 +11823,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(129, fl_value_new_int(*return_value), + ? fl_value_new_custom(254, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -7989,6 +11846,86 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum return self; } +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, + GObject) + +struct + _CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse { + GObject parent_instance; + + FlValue* value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + object); + g_clear_pointer(&self->value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_class_init( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take( + self->value, + return_value != nullptr + ? fl_value_new_custom(255, fl_value_new_int(*return_value), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + return self; +} + +static CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details) { + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse* + self = CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API_CALL_FLUTTER_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_get_type(), + nullptr)); + self->value = fl_value_new_list(); + fl_value_append_take(self->value, fl_value_new_string(code)); + fl_value_append_take(self->value, + fl_value_new_string(message != nullptr ? message : "")); + fl_value_append_take(self->value, details != nullptr ? fl_value_ref(details) + : fl_value_new_null()); + return self; +} + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterSmallApiEchoStringResponse, core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_response, @@ -8537,6 +12474,38 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_enum_cb( } } +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || self->vtable->echo_another_enum == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse) + response = self->vtable->echo_another_enum(another_enum, self->user_data); + if (response == nullptr) { + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoAnotherEnum"); + return; + } + + g_autoptr(GError) error = NULL; + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherEnum", error->message); + } +} + static void core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_cb( FlBasicMessageChannel* channel, FlValue* message_, @@ -9141,7 +13110,46 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb( response = self->vtable->echo_nullable_enum(an_enum, self->user_data); if (response == nullptr) { g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", - "echoNullableEnum"); + "echoNullableEnum"); + return; + } + + g_autoptr(GError) error = NULL; + if (!fl_basic_message_channel_respond(channel, response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoNullableEnum", error->message); + } +} + +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_another_nullable_enum == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; + CoreTestsPigeonTestAnotherEnum another_enum_value; + if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { + another_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + another_enum = &another_enum_value; + } + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse) + response = self->vtable->echo_another_nullable_enum(another_enum, + self->user_data); + if (response == nullptr) { + g_warning("No response returned to %s.%s", "HostIntegrationCoreApi", + "echoAnotherNullableEnum"); return; } @@ -9149,7 +13157,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb( if (!fl_basic_message_channel_respond(channel, response_handle, response->value, &error)) { g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "echoNullableEnum", error->message); + "echoAnotherNullableEnum", error->message); } } @@ -9409,6 +13417,29 @@ static void core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb( self->vtable->echo_async_enum(an_enum, handle, self->user_data); } +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_another_async_enum == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_another_async_enum(another_enum, handle, self->user_data); +} + static void core_tests_pigeon_test_host_integration_core_api_throw_async_error_cb( FlBasicMessageChannel* channel, FlValue* message_, @@ -9734,6 +13765,34 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb( self->vtable->echo_async_nullable_enum(an_enum, handle, self->user_data); } +static void +core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->echo_another_async_nullable_enum == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; + CoreTestsPigeonTestAnotherEnum another_enum_value; + if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { + another_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + another_enum = &another_enum_value; + } + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->echo_another_async_nullable_enum(another_enum, handle, + self->user_data); +} + static void core_tests_pigeon_test_host_integration_core_api_call_flutter_noop_cb( FlBasicMessageChannel* channel, FlValue* message_, @@ -10094,6 +14153,30 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb( self->vtable->call_flutter_echo_enum(an_enum, handle, self->user_data); } +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_another_enum == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAnotherEnum another_enum = + static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_another_enum(another_enum, handle, + self->user_data); +} + static void core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_bool_cb( FlBasicMessageChannel* channel, FlValue* message_, @@ -10282,6 +14365,34 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum self->user_data); } +static void +core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb( + FlBasicMessageChannel* channel, FlValue* message_, + FlBasicMessageChannelResponseHandle* response_handle, gpointer user_data) { + CoreTestsPigeonTestHostIntegrationCoreApi* self = + CORE_TESTS_PIGEON_TEST_HOST_INTEGRATION_CORE_API(user_data); + + if (self->vtable == nullptr || + self->vtable->call_flutter_echo_another_nullable_enum == nullptr) { + return; + } + + FlValue* value0 = fl_value_get_list_value(message_, 0); + CoreTestsPigeonTestAnotherEnum* another_enum = nullptr; + CoreTestsPigeonTestAnotherEnum another_enum_value; + if (fl_value_get_type(value0) != FL_VALUE_TYPE_NULL) { + another_enum_value = static_cast( + fl_value_get_int(reinterpret_cast( + const_cast(fl_value_get_custom_value(value0))))); + another_enum = &another_enum_value; + } + g_autoptr(CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle) handle = + core_tests_pigeon_test_host_integration_core_api_response_handle_new( + channel, response_handle); + self->vtable->call_flutter_echo_another_nullable_enum(another_enum, handle, + self->user_data); +} + static void core_tests_pigeon_test_host_integration_core_api_call_flutter_small_api_echo_string_cb( FlBasicMessageChannel* channel, FlValue* message_, @@ -10479,6 +14590,17 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( echo_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = + fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_cb, + g_object_ref(api_data), g_object_unref); g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "echoNamedDefaultString%s", @@ -10695,6 +14817,18 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( echo_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "echoOptionalNullableInt%s", @@ -10830,6 +14964,18 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( echo_async_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_async_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_async_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_cb, + g_object_ref(api_data), g_object_unref); g_autofree gchar* throw_async_error_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "throwAsyncError%s", @@ -11016,6 +15162,19 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( echo_async_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* echo_another_async_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, echo_another_async_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_async_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "callFlutterNoop%s", @@ -11222,6 +15381,19 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( call_flutter_echo_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_another_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_enum_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_cb, + g_object_ref(api_data), g_object_unref); g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." @@ -11327,6 +15499,20 @@ void core_tests_pigeon_test_host_integration_core_api_set_method_handlers( call_flutter_echo_nullable_enum_channel, core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_cb, g_object_ref(api_data), g_object_unref); + g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_another_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_nullable_enum_channel, + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_cb, + g_object_ref(api_data), g_object_unref); g_autofree gchar* call_flutter_small_api_echo_string_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." @@ -11484,6 +15670,15 @@ void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( FL_MESSAGE_CODEC(codec)); fl_basic_message_channel_set_message_handler(echo_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_enum_channel = + fl_basic_message_channel_new(messenger, echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_enum_channel, + nullptr, nullptr, nullptr); g_autofree gchar* echo_named_default_string_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "echoNamedDefaultString%s", @@ -11666,6 +15861,16 @@ void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( FL_MESSAGE_CODEC(codec)); fl_basic_message_channel_set_message_handler(echo_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_nullable_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_nullable_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_nullable_enum_channel, nullptr, nullptr, nullptr); g_autofree gchar* echo_optional_nullable_int_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "echoOptionalNullableInt%s", @@ -11777,6 +15982,16 @@ void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( FL_MESSAGE_CODEC(codec)); fl_basic_message_channel_set_message_handler(echo_async_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_async_enum_channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_enum_channel = + fl_basic_message_channel_new(messenger, + echo_another_async_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler(echo_another_async_enum_channel, + nullptr, nullptr, nullptr); g_autofree gchar* throw_async_error_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "throwAsyncError%s", @@ -11935,6 +16150,17 @@ void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( FL_MESSAGE_CODEC(codec)); fl_basic_message_channel_set_message_handler(echo_async_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* echo_another_async_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) echo_another_async_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, echo_another_async_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + echo_another_async_nullable_enum_channel, nullptr, nullptr, nullptr); g_autofree gchar* call_flutter_noop_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." "callFlutterNoop%s", @@ -12112,6 +16338,17 @@ void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( FL_MESSAGE_CODEC(codec)); fl_basic_message_channel_set_message_handler(call_flutter_echo_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_another_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) call_flutter_echo_another_enum_channel = + fl_basic_message_channel_new(messenger, + call_flutter_echo_another_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_enum_channel, nullptr, nullptr, nullptr); g_autofree gchar* call_flutter_echo_nullable_bool_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." @@ -12201,6 +16438,19 @@ void core_tests_pigeon_test_host_integration_core_api_clear_method_handlers( FL_MESSAGE_CODEC(codec)); fl_basic_message_channel_set_message_handler( call_flutter_echo_nullable_enum_channel, nullptr, nullptr, nullptr); + g_autofree gchar* call_flutter_echo_another_nullable_enum_channel_name = + g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherNullableEnum%s", + dot_suffix); + g_autoptr(FlBasicMessageChannel) + call_flutter_echo_another_nullable_enum_channel = + fl_basic_message_channel_new( + messenger, call_flutter_echo_another_nullable_enum_channel_name, + FL_MESSAGE_CODEC(codec)); + fl_basic_message_channel_set_message_handler( + call_flutter_echo_another_nullable_enum_channel, nullptr, nullptr, + nullptr); g_autofree gchar* call_flutter_small_api_echo_string_channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." @@ -12532,6 +16782,40 @@ void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_e } } +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new( + return_value); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_response_new_error( + code, message, details); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncEnum", error->message); + } +} + void core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error( CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, FlValue* return_value) { @@ -13038,6 +17322,40 @@ void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_n } } +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new( + return_value); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherAsyncNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enum_response_new_error( + code, message, details); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "echoAnotherAsyncNullableEnum", error->message); + } +} + void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop( CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle) { g_autoptr( @@ -13576,6 +17894,40 @@ void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter } } +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new( + return_value); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAnotherEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_response_new_error( + code, message, details); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoAnotherEnum", error->message); + } +} + void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool( CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gboolean* return_value) { @@ -13820,31 +18172,65 @@ void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_ g_autoptr( CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new( + return_value); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error( + code, message, details); + g_autoptr(GError) error = nullptr; + if (!fl_basic_message_channel_respond(response_handle->channel, + response_handle->response_handle, + response->value, &error)) { + g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", + "callFlutterEchoNullableEnum", error->message); + } +} + +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value) { + g_autoptr( + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) + response = + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new( return_value); g_autoptr(GError) error = nullptr; if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnum", error->message); + "callFlutterEchoAnotherNullableEnum", error->message); } } -void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_nullable_enum( +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum( CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details) { g_autoptr( - CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoNullableEnumResponse) + CoreTestsPigeonTestHostIntegrationCoreApiCallFlutterEchoAnotherNullableEnumResponse) response = - core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum_response_new_error( + core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nullable_enum_response_new_error( code, message, details); g_autoptr(GError) error = nullptr; if (!fl_basic_message_channel_respond(response_handle->channel, response_handle->response_handle, response->value, &error)) { g_warning("Failed to send response to %s.%s: %s", "HostIntegrationCoreApi", - "callFlutterEchoNullableEnum", error->message); + "callFlutterEchoAnotherNullableEnum", error->message); } } @@ -14503,7 +18889,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types( GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, - fl_value_new_custom_object(130, G_OBJECT(everything))); + fl_value_new_custom_object(256, G_OBJECT(everything))); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." "echoAllTypes%s", @@ -14678,7 +19064,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, everything != nullptr - ? fl_value_new_custom_object(131, G_OBJECT(everything)) + ? fl_value_new_custom_object(257, G_OBJECT(everything)) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -15036,7 +19422,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, everything != nullptr - ? fl_value_new_custom_object(132, G_OBJECT(everything)) + ? fl_value_new_custom_object(258, G_OBJECT(everything)) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -16502,7 +20888,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_enum( GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, - fl_value_new_custom(129, fl_value_new_int(an_enum), + fl_value_new_custom(254, fl_value_new_int(an_enum), (GDestroyNotify)fl_value_unref)); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -16536,6 +20922,173 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish( response); } +struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse { + GObject parent_instance; + + FlValue* error; + FlValue* return_value; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + object); + g_clear_pointer(&self->error, fl_value_unref); + g_clear_pointer(&self->return_value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_type(), + nullptr)); + if (fl_value_get_length(response) > 1) { + self->error = fl_value_ref(response); + } else { + FlValue* value = fl_value_get_list_value(response, 0); + self->return_value = fl_value_ref(value); + } + return self; +} + +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + FALSE); + return self->error != nullptr; +} + +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); + return fl_value_get_string(fl_value_get_list_value(self->error, 0)); +} + +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); + return fl_value_get_string(fl_value_get_list_value(self->error, 1)); +} + +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); + return fl_value_get_list_value(self->error, 2); +} + +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE( + self), + static_cast(0)); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + self)); + return static_cast( + fl_value_get_int(reinterpret_cast(const_cast( + fl_value_get_custom_value(self->return_value))))); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { + GTask* task = G_TASK(user_data); + g_task_return_pointer(task, result, g_object_unref); +} + +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { + g_autoptr(FlValue) args = fl_value_new_list(); + fl_value_append_take(args, + fl_value_new_custom(255, fl_value_new_int(another_enum), + (GDestroyNotify)fl_value_unref)); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherEnum%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + GTask* task = g_task_new(self, cancellable, callback, user_data); + g_task_set_task_data(task, channel, g_object_unref); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_cb, + task); +} + +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { + g_autoptr(GTask) task = G_TASK(result); + GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { + return nullptr; + } + return core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_new( + response); +} + struct _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse { GObject parent_instance; @@ -17885,7 +22438,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum( g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, an_enum != nullptr - ? fl_value_new_custom(129, fl_value_new_int(*an_enum), + ? fl_value_new_custom(254, fl_value_new_int(*an_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( @@ -17921,6 +22474,186 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish( response); } +struct + _CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse { + GObject parent_instance; + + FlValue* error; + FlValue* return_value; + CoreTestsPigeonTestAnotherEnum return_value_; +}; + +G_DEFINE_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, + G_TYPE_OBJECT) + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose( + GObject* object) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + object); + g_clear_pointer(&self->error, fl_value_unref); + g_clear_pointer(&self->return_value, fl_value_unref); + G_OBJECT_CLASS( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_parent_class) + ->dispose(object); +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) {} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_class_init( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponseClass* + klass) { + G_OBJECT_CLASS(klass)->dispose = + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_dispose; +} + +static CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new( + FlValue* response) { + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* self = + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + g_object_new( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_type(), + nullptr)); + if (fl_value_get_length(response) > 1) { + self->error = fl_value_ref(response); + } else { + FlValue* value = fl_value_get_list_value(response, 0); + self->return_value = fl_value_ref(value); + } + return self; +} + +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + FALSE); + return self->error != nullptr; +} + +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); + return fl_value_get_string(fl_value_get_list_value(self->error, 0)); +} + +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); + return fl_value_get_string(fl_value_get_list_value(self->error, 1)); +} + +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); + return fl_value_get_list_value(self->error, 2); +} + +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + self) { + g_return_val_if_fail( + CORE_TESTS_PIGEON_TEST_IS_FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE( + self), + nullptr); + g_assert( + !core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + self)); + if (fl_value_get_type(self->return_value) == FL_VALUE_TYPE_NULL) { + return nullptr; + } + self->return_value_ = static_cast( + fl_value_get_int(reinterpret_cast(const_cast( + fl_value_get_custom_value(self->return_value))))); + return &self->return_value_; +} + +static void +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb( + GObject* object, GAsyncResult* result, gpointer user_data) { + GTask* task = G_TASK(user_data); + g_task_return_pointer(task, result, g_object_unref); +} + +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, + CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data) { + g_autoptr(FlValue) args = fl_value_new_list(); + fl_value_append_take( + args, another_enum != nullptr + ? fl_value_new_custom(255, fl_value_new_int(*another_enum), + (GDestroyNotify)fl_value_unref) + : fl_value_new_null()); + g_autofree gchar* channel_name = g_strdup_printf( + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherNullableEnum%s", + self->suffix); + g_autoptr(CoreTestsPigeonTestMessageCodec) codec = + core_tests_pigeon_test_message_codec_new(); + FlBasicMessageChannel* channel = fl_basic_message_channel_new( + self->messenger, channel_name, FL_MESSAGE_CODEC(codec)); + GTask* task = g_task_new(self, cancellable, callback, user_data); + g_task_set_task_data(task, channel, g_object_unref); + fl_basic_message_channel_send( + channel, args, cancellable, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_cb, + task); +} + +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* self, GAsyncResult* result, + GError** error) { + g_autoptr(GTask) task = G_TASK(result); + GAsyncResult* r = G_ASYNC_RESULT(g_task_propagate_pointer(task, nullptr)); + FlBasicMessageChannel* channel = + FL_BASIC_MESSAGE_CHANNEL(g_task_get_task_data(task)); + g_autoptr(FlValue) response = + fl_basic_message_channel_send_finish(channel, r, error); + if (response == nullptr) { + return nullptr; + } + return core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_new( + response); +} + struct _CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse { GObject parent_instance; @@ -18918,7 +23651,7 @@ void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list( CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, fl_value_new_custom_object(134, G_OBJECT(msg))); + fl_value_append_take(args, fl_value_new_custom_object(260, G_OBJECT(msg))); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi." "echoWrappedList%s", diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h index 086101d4b62..f644dc7ccb4 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h @@ -12,6 +12,1131 @@ G_BEGIN_DECLS +/** + * CoreTestsPigeonTestFillerEnum0: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM0_FILLER_MEMBER0: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM0_FILLER_MEMBER0 = 0 +} CoreTestsPigeonTestFillerEnum0; + +/** + * CoreTestsPigeonTestFillerEnum1: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM1_FILLER_MEMBER1: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM1_FILLER_MEMBER1 = 0 +} CoreTestsPigeonTestFillerEnum1; + +/** + * CoreTestsPigeonTestFillerEnum2: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM2_FILLER_MEMBER2: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM2_FILLER_MEMBER2 = 0 +} CoreTestsPigeonTestFillerEnum2; + +/** + * CoreTestsPigeonTestFillerEnum3: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM3_FILLER_MEMBER3: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM3_FILLER_MEMBER3 = 0 +} CoreTestsPigeonTestFillerEnum3; + +/** + * CoreTestsPigeonTestFillerEnum4: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM4_FILLER_MEMBER4: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM4_FILLER_MEMBER4 = 0 +} CoreTestsPigeonTestFillerEnum4; + +/** + * CoreTestsPigeonTestFillerEnum5: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM5_FILLER_MEMBER5: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM5_FILLER_MEMBER5 = 0 +} CoreTestsPigeonTestFillerEnum5; + +/** + * CoreTestsPigeonTestFillerEnum6: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM6_FILLER_MEMBER6: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM6_FILLER_MEMBER6 = 0 +} CoreTestsPigeonTestFillerEnum6; + +/** + * CoreTestsPigeonTestFillerEnum7: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM7_FILLER_MEMBER7: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM7_FILLER_MEMBER7 = 0 +} CoreTestsPigeonTestFillerEnum7; + +/** + * CoreTestsPigeonTestFillerEnum8: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM8_FILLER_MEMBER8: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM8_FILLER_MEMBER8 = 0 +} CoreTestsPigeonTestFillerEnum8; + +/** + * CoreTestsPigeonTestFillerEnum9: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM9_FILLER_MEMBER9: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM9_FILLER_MEMBER9 = 0 +} CoreTestsPigeonTestFillerEnum9; + +/** + * CoreTestsPigeonTestFillerEnum10: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM10_FILLER_MEMBER10: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM10_FILLER_MEMBER10 = 0 +} CoreTestsPigeonTestFillerEnum10; + +/** + * CoreTestsPigeonTestFillerEnum11: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM11_FILLER_MEMBER11: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM11_FILLER_MEMBER11 = 0 +} CoreTestsPigeonTestFillerEnum11; + +/** + * CoreTestsPigeonTestFillerEnum12: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM12_FILLER_MEMBER12: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM12_FILLER_MEMBER12 = 0 +} CoreTestsPigeonTestFillerEnum12; + +/** + * CoreTestsPigeonTestFillerEnum13: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM13_FILLER_MEMBER13: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM13_FILLER_MEMBER13 = 0 +} CoreTestsPigeonTestFillerEnum13; + +/** + * CoreTestsPigeonTestFillerEnum14: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM14_FILLER_MEMBER14: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM14_FILLER_MEMBER14 = 0 +} CoreTestsPigeonTestFillerEnum14; + +/** + * CoreTestsPigeonTestFillerEnum15: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM15_FILLER_MEMBER15: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM15_FILLER_MEMBER15 = 0 +} CoreTestsPigeonTestFillerEnum15; + +/** + * CoreTestsPigeonTestFillerEnum16: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM16_FILLER_MEMBER16: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM16_FILLER_MEMBER16 = 0 +} CoreTestsPigeonTestFillerEnum16; + +/** + * CoreTestsPigeonTestFillerEnum17: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM17_FILLER_MEMBER17: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM17_FILLER_MEMBER17 = 0 +} CoreTestsPigeonTestFillerEnum17; + +/** + * CoreTestsPigeonTestFillerEnum18: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM18_FILLER_MEMBER18: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM18_FILLER_MEMBER18 = 0 +} CoreTestsPigeonTestFillerEnum18; + +/** + * CoreTestsPigeonTestFillerEnum19: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM19_FILLER_MEMBER19: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM19_FILLER_MEMBER19 = 0 +} CoreTestsPigeonTestFillerEnum19; + +/** + * CoreTestsPigeonTestFillerEnum20: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM20_FILLER_MEMBER20: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM20_FILLER_MEMBER20 = 0 +} CoreTestsPigeonTestFillerEnum20; + +/** + * CoreTestsPigeonTestFillerEnum21: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM21_FILLER_MEMBER21: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM21_FILLER_MEMBER21 = 0 +} CoreTestsPigeonTestFillerEnum21; + +/** + * CoreTestsPigeonTestFillerEnum22: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM22_FILLER_MEMBER22: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM22_FILLER_MEMBER22 = 0 +} CoreTestsPigeonTestFillerEnum22; + +/** + * CoreTestsPigeonTestFillerEnum23: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM23_FILLER_MEMBER23: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM23_FILLER_MEMBER23 = 0 +} CoreTestsPigeonTestFillerEnum23; + +/** + * CoreTestsPigeonTestFillerEnum24: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM24_FILLER_MEMBER24: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM24_FILLER_MEMBER24 = 0 +} CoreTestsPigeonTestFillerEnum24; + +/** + * CoreTestsPigeonTestFillerEnum25: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM25_FILLER_MEMBER25: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM25_FILLER_MEMBER25 = 0 +} CoreTestsPigeonTestFillerEnum25; + +/** + * CoreTestsPigeonTestFillerEnum26: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM26_FILLER_MEMBER26: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM26_FILLER_MEMBER26 = 0 +} CoreTestsPigeonTestFillerEnum26; + +/** + * CoreTestsPigeonTestFillerEnum27: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM27_FILLER_MEMBER27: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM27_FILLER_MEMBER27 = 0 +} CoreTestsPigeonTestFillerEnum27; + +/** + * CoreTestsPigeonTestFillerEnum28: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM28_FILLER_MEMBER28: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM28_FILLER_MEMBER28 = 0 +} CoreTestsPigeonTestFillerEnum28; + +/** + * CoreTestsPigeonTestFillerEnum29: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM29_FILLER_MEMBER29: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM29_FILLER_MEMBER29 = 0 +} CoreTestsPigeonTestFillerEnum29; + +/** + * CoreTestsPigeonTestFillerEnum30: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM30_FILLER_MEMBER30: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM30_FILLER_MEMBER30 = 0 +} CoreTestsPigeonTestFillerEnum30; + +/** + * CoreTestsPigeonTestFillerEnum31: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM31_FILLER_MEMBER31: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM31_FILLER_MEMBER31 = 0 +} CoreTestsPigeonTestFillerEnum31; + +/** + * CoreTestsPigeonTestFillerEnum32: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM32_FILLER_MEMBER32: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM32_FILLER_MEMBER32 = 0 +} CoreTestsPigeonTestFillerEnum32; + +/** + * CoreTestsPigeonTestFillerEnum33: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM33_FILLER_MEMBER33: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM33_FILLER_MEMBER33 = 0 +} CoreTestsPigeonTestFillerEnum33; + +/** + * CoreTestsPigeonTestFillerEnum34: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM34_FILLER_MEMBER34: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM34_FILLER_MEMBER34 = 0 +} CoreTestsPigeonTestFillerEnum34; + +/** + * CoreTestsPigeonTestFillerEnum35: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM35_FILLER_MEMBER35: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM35_FILLER_MEMBER35 = 0 +} CoreTestsPigeonTestFillerEnum35; + +/** + * CoreTestsPigeonTestFillerEnum36: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM36_FILLER_MEMBER36: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM36_FILLER_MEMBER36 = 0 +} CoreTestsPigeonTestFillerEnum36; + +/** + * CoreTestsPigeonTestFillerEnum37: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM37_FILLER_MEMBER37: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM37_FILLER_MEMBER37 = 0 +} CoreTestsPigeonTestFillerEnum37; + +/** + * CoreTestsPigeonTestFillerEnum38: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM38_FILLER_MEMBER38: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM38_FILLER_MEMBER38 = 0 +} CoreTestsPigeonTestFillerEnum38; + +/** + * CoreTestsPigeonTestFillerEnum39: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM39_FILLER_MEMBER39: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM39_FILLER_MEMBER39 = 0 +} CoreTestsPigeonTestFillerEnum39; + +/** + * CoreTestsPigeonTestFillerEnum40: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM40_FILLER_MEMBER40: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM40_FILLER_MEMBER40 = 0 +} CoreTestsPigeonTestFillerEnum40; + +/** + * CoreTestsPigeonTestFillerEnum41: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM41_FILLER_MEMBER41: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM41_FILLER_MEMBER41 = 0 +} CoreTestsPigeonTestFillerEnum41; + +/** + * CoreTestsPigeonTestFillerEnum42: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM42_FILLER_MEMBER42: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM42_FILLER_MEMBER42 = 0 +} CoreTestsPigeonTestFillerEnum42; + +/** + * CoreTestsPigeonTestFillerEnum43: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM43_FILLER_MEMBER43: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM43_FILLER_MEMBER43 = 0 +} CoreTestsPigeonTestFillerEnum43; + +/** + * CoreTestsPigeonTestFillerEnum44: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM44_FILLER_MEMBER44: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM44_FILLER_MEMBER44 = 0 +} CoreTestsPigeonTestFillerEnum44; + +/** + * CoreTestsPigeonTestFillerEnum45: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM45_FILLER_MEMBER45: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM45_FILLER_MEMBER45 = 0 +} CoreTestsPigeonTestFillerEnum45; + +/** + * CoreTestsPigeonTestFillerEnum46: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM46_FILLER_MEMBER46: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM46_FILLER_MEMBER46 = 0 +} CoreTestsPigeonTestFillerEnum46; + +/** + * CoreTestsPigeonTestFillerEnum47: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM47_FILLER_MEMBER47: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM47_FILLER_MEMBER47 = 0 +} CoreTestsPigeonTestFillerEnum47; + +/** + * CoreTestsPigeonTestFillerEnum48: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM48_FILLER_MEMBER48: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM48_FILLER_MEMBER48 = 0 +} CoreTestsPigeonTestFillerEnum48; + +/** + * CoreTestsPigeonTestFillerEnum49: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM49_FILLER_MEMBER49: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM49_FILLER_MEMBER49 = 0 +} CoreTestsPigeonTestFillerEnum49; + +/** + * CoreTestsPigeonTestFillerEnum50: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM50_FILLER_MEMBER50: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM50_FILLER_MEMBER50 = 0 +} CoreTestsPigeonTestFillerEnum50; + +/** + * CoreTestsPigeonTestFillerEnum51: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM51_FILLER_MEMBER51: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM51_FILLER_MEMBER51 = 0 +} CoreTestsPigeonTestFillerEnum51; + +/** + * CoreTestsPigeonTestFillerEnum52: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM52_FILLER_MEMBER52: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM52_FILLER_MEMBER52 = 0 +} CoreTestsPigeonTestFillerEnum52; + +/** + * CoreTestsPigeonTestFillerEnum53: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM53_FILLER_MEMBER53: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM53_FILLER_MEMBER53 = 0 +} CoreTestsPigeonTestFillerEnum53; + +/** + * CoreTestsPigeonTestFillerEnum54: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM54_FILLER_MEMBER54: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM54_FILLER_MEMBER54 = 0 +} CoreTestsPigeonTestFillerEnum54; + +/** + * CoreTestsPigeonTestFillerEnum55: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM55_FILLER_MEMBER55: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM55_FILLER_MEMBER55 = 0 +} CoreTestsPigeonTestFillerEnum55; + +/** + * CoreTestsPigeonTestFillerEnum56: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM56_FILLER_MEMBER56: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM56_FILLER_MEMBER56 = 0 +} CoreTestsPigeonTestFillerEnum56; + +/** + * CoreTestsPigeonTestFillerEnum57: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM57_FILLER_MEMBER57: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM57_FILLER_MEMBER57 = 0 +} CoreTestsPigeonTestFillerEnum57; + +/** + * CoreTestsPigeonTestFillerEnum58: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM58_FILLER_MEMBER58: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM58_FILLER_MEMBER58 = 0 +} CoreTestsPigeonTestFillerEnum58; + +/** + * CoreTestsPigeonTestFillerEnum59: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM59_FILLER_MEMBER59: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM59_FILLER_MEMBER59 = 0 +} CoreTestsPigeonTestFillerEnum59; + +/** + * CoreTestsPigeonTestFillerEnum60: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM60_FILLER_MEMBER60: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM60_FILLER_MEMBER60 = 0 +} CoreTestsPigeonTestFillerEnum60; + +/** + * CoreTestsPigeonTestFillerEnum61: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM61_FILLER_MEMBER61: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM61_FILLER_MEMBER61 = 0 +} CoreTestsPigeonTestFillerEnum61; + +/** + * CoreTestsPigeonTestFillerEnum62: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM62_FILLER_MEMBER62: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM62_FILLER_MEMBER62 = 0 +} CoreTestsPigeonTestFillerEnum62; + +/** + * CoreTestsPigeonTestFillerEnum63: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM63_FILLER_MEMBER63: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM63_FILLER_MEMBER63 = 0 +} CoreTestsPigeonTestFillerEnum63; + +/** + * CoreTestsPigeonTestFillerEnum64: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM64_FILLER_MEMBER64: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM64_FILLER_MEMBER64 = 0 +} CoreTestsPigeonTestFillerEnum64; + +/** + * CoreTestsPigeonTestFillerEnum65: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM65_FILLER_MEMBER65: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM65_FILLER_MEMBER65 = 0 +} CoreTestsPigeonTestFillerEnum65; + +/** + * CoreTestsPigeonTestFillerEnum66: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM66_FILLER_MEMBER66: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM66_FILLER_MEMBER66 = 0 +} CoreTestsPigeonTestFillerEnum66; + +/** + * CoreTestsPigeonTestFillerEnum67: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM67_FILLER_MEMBER67: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM67_FILLER_MEMBER67 = 0 +} CoreTestsPigeonTestFillerEnum67; + +/** + * CoreTestsPigeonTestFillerEnum68: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM68_FILLER_MEMBER68: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM68_FILLER_MEMBER68 = 0 +} CoreTestsPigeonTestFillerEnum68; + +/** + * CoreTestsPigeonTestFillerEnum69: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM69_FILLER_MEMBER69: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM69_FILLER_MEMBER69 = 0 +} CoreTestsPigeonTestFillerEnum69; + +/** + * CoreTestsPigeonTestFillerEnum70: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM70_FILLER_MEMBER70: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM70_FILLER_MEMBER70 = 0 +} CoreTestsPigeonTestFillerEnum70; + +/** + * CoreTestsPigeonTestFillerEnum71: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM71_FILLER_MEMBER71: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM71_FILLER_MEMBER71 = 0 +} CoreTestsPigeonTestFillerEnum71; + +/** + * CoreTestsPigeonTestFillerEnum72: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM72_FILLER_MEMBER72: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM72_FILLER_MEMBER72 = 0 +} CoreTestsPigeonTestFillerEnum72; + +/** + * CoreTestsPigeonTestFillerEnum73: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM73_FILLER_MEMBER73: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM73_FILLER_MEMBER73 = 0 +} CoreTestsPigeonTestFillerEnum73; + +/** + * CoreTestsPigeonTestFillerEnum74: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM74_FILLER_MEMBER74: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM74_FILLER_MEMBER74 = 0 +} CoreTestsPigeonTestFillerEnum74; + +/** + * CoreTestsPigeonTestFillerEnum75: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM75_FILLER_MEMBER75: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM75_FILLER_MEMBER75 = 0 +} CoreTestsPigeonTestFillerEnum75; + +/** + * CoreTestsPigeonTestFillerEnum76: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM76_FILLER_MEMBER76: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM76_FILLER_MEMBER76 = 0 +} CoreTestsPigeonTestFillerEnum76; + +/** + * CoreTestsPigeonTestFillerEnum77: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM77_FILLER_MEMBER77: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM77_FILLER_MEMBER77 = 0 +} CoreTestsPigeonTestFillerEnum77; + +/** + * CoreTestsPigeonTestFillerEnum78: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM78_FILLER_MEMBER78: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM78_FILLER_MEMBER78 = 0 +} CoreTestsPigeonTestFillerEnum78; + +/** + * CoreTestsPigeonTestFillerEnum79: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM79_FILLER_MEMBER79: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM79_FILLER_MEMBER79 = 0 +} CoreTestsPigeonTestFillerEnum79; + +/** + * CoreTestsPigeonTestFillerEnum80: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM80_FILLER_MEMBER80: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM80_FILLER_MEMBER80 = 0 +} CoreTestsPigeonTestFillerEnum80; + +/** + * CoreTestsPigeonTestFillerEnum81: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM81_FILLER_MEMBER81: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM81_FILLER_MEMBER81 = 0 +} CoreTestsPigeonTestFillerEnum81; + +/** + * CoreTestsPigeonTestFillerEnum82: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM82_FILLER_MEMBER82: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM82_FILLER_MEMBER82 = 0 +} CoreTestsPigeonTestFillerEnum82; + +/** + * CoreTestsPigeonTestFillerEnum83: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM83_FILLER_MEMBER83: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM83_FILLER_MEMBER83 = 0 +} CoreTestsPigeonTestFillerEnum83; + +/** + * CoreTestsPigeonTestFillerEnum84: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM84_FILLER_MEMBER84: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM84_FILLER_MEMBER84 = 0 +} CoreTestsPigeonTestFillerEnum84; + +/** + * CoreTestsPigeonTestFillerEnum85: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM85_FILLER_MEMBER85: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM85_FILLER_MEMBER85 = 0 +} CoreTestsPigeonTestFillerEnum85; + +/** + * CoreTestsPigeonTestFillerEnum86: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM86_FILLER_MEMBER86: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM86_FILLER_MEMBER86 = 0 +} CoreTestsPigeonTestFillerEnum86; + +/** + * CoreTestsPigeonTestFillerEnum87: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM87_FILLER_MEMBER87: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM87_FILLER_MEMBER87 = 0 +} CoreTestsPigeonTestFillerEnum87; + +/** + * CoreTestsPigeonTestFillerEnum88: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM88_FILLER_MEMBER88: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM88_FILLER_MEMBER88 = 0 +} CoreTestsPigeonTestFillerEnum88; + +/** + * CoreTestsPigeonTestFillerEnum89: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM89_FILLER_MEMBER89: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM89_FILLER_MEMBER89 = 0 +} CoreTestsPigeonTestFillerEnum89; + +/** + * CoreTestsPigeonTestFillerEnum90: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM90_FILLER_MEMBER90: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM90_FILLER_MEMBER90 = 0 +} CoreTestsPigeonTestFillerEnum90; + +/** + * CoreTestsPigeonTestFillerEnum91: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM91_FILLER_MEMBER91: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM91_FILLER_MEMBER91 = 0 +} CoreTestsPigeonTestFillerEnum91; + +/** + * CoreTestsPigeonTestFillerEnum92: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM92_FILLER_MEMBER92: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM92_FILLER_MEMBER92 = 0 +} CoreTestsPigeonTestFillerEnum92; + +/** + * CoreTestsPigeonTestFillerEnum93: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM93_FILLER_MEMBER93: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM93_FILLER_MEMBER93 = 0 +} CoreTestsPigeonTestFillerEnum93; + +/** + * CoreTestsPigeonTestFillerEnum94: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM94_FILLER_MEMBER94: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM94_FILLER_MEMBER94 = 0 +} CoreTestsPigeonTestFillerEnum94; + +/** + * CoreTestsPigeonTestFillerEnum95: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM95_FILLER_MEMBER95: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM95_FILLER_MEMBER95 = 0 +} CoreTestsPigeonTestFillerEnum95; + +/** + * CoreTestsPigeonTestFillerEnum96: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM96_FILLER_MEMBER96: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM96_FILLER_MEMBER96 = 0 +} CoreTestsPigeonTestFillerEnum96; + +/** + * CoreTestsPigeonTestFillerEnum97: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM97_FILLER_MEMBER97: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM97_FILLER_MEMBER97 = 0 +} CoreTestsPigeonTestFillerEnum97; + +/** + * CoreTestsPigeonTestFillerEnum98: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM98_FILLER_MEMBER98: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM98_FILLER_MEMBER98 = 0 +} CoreTestsPigeonTestFillerEnum98; + +/** + * CoreTestsPigeonTestFillerEnum99: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM99_FILLER_MEMBER99: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM99_FILLER_MEMBER99 = 0 +} CoreTestsPigeonTestFillerEnum99; + +/** + * CoreTestsPigeonTestFillerEnum100: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM100_FILLER_MEMBER100: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM100_FILLER_MEMBER100 = 0 +} CoreTestsPigeonTestFillerEnum100; + +/** + * CoreTestsPigeonTestFillerEnum101: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM101_FILLER_MEMBER101: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM101_FILLER_MEMBER101 = 0 +} CoreTestsPigeonTestFillerEnum101; + +/** + * CoreTestsPigeonTestFillerEnum102: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM102_FILLER_MEMBER102: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM102_FILLER_MEMBER102 = 0 +} CoreTestsPigeonTestFillerEnum102; + +/** + * CoreTestsPigeonTestFillerEnum103: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM103_FILLER_MEMBER103: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM103_FILLER_MEMBER103 = 0 +} CoreTestsPigeonTestFillerEnum103; + +/** + * CoreTestsPigeonTestFillerEnum104: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM104_FILLER_MEMBER104: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM104_FILLER_MEMBER104 = 0 +} CoreTestsPigeonTestFillerEnum104; + +/** + * CoreTestsPigeonTestFillerEnum105: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM105_FILLER_MEMBER105: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM105_FILLER_MEMBER105 = 0 +} CoreTestsPigeonTestFillerEnum105; + +/** + * CoreTestsPigeonTestFillerEnum106: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM106_FILLER_MEMBER106: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM106_FILLER_MEMBER106 = 0 +} CoreTestsPigeonTestFillerEnum106; + +/** + * CoreTestsPigeonTestFillerEnum107: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM107_FILLER_MEMBER107: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM107_FILLER_MEMBER107 = 0 +} CoreTestsPigeonTestFillerEnum107; + +/** + * CoreTestsPigeonTestFillerEnum108: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM108_FILLER_MEMBER108: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM108_FILLER_MEMBER108 = 0 +} CoreTestsPigeonTestFillerEnum108; + +/** + * CoreTestsPigeonTestFillerEnum109: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM109_FILLER_MEMBER109: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM109_FILLER_MEMBER109 = 0 +} CoreTestsPigeonTestFillerEnum109; + +/** + * CoreTestsPigeonTestFillerEnum110: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM110_FILLER_MEMBER110: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM110_FILLER_MEMBER110 = 0 +} CoreTestsPigeonTestFillerEnum110; + +/** + * CoreTestsPigeonTestFillerEnum111: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM111_FILLER_MEMBER111: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM111_FILLER_MEMBER111 = 0 +} CoreTestsPigeonTestFillerEnum111; + +/** + * CoreTestsPigeonTestFillerEnum112: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM112_FILLER_MEMBER112: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM112_FILLER_MEMBER112 = 0 +} CoreTestsPigeonTestFillerEnum112; + +/** + * CoreTestsPigeonTestFillerEnum113: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM113_FILLER_MEMBER113: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM113_FILLER_MEMBER113 = 0 +} CoreTestsPigeonTestFillerEnum113; + +/** + * CoreTestsPigeonTestFillerEnum114: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM114_FILLER_MEMBER114: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM114_FILLER_MEMBER114 = 0 +} CoreTestsPigeonTestFillerEnum114; + +/** + * CoreTestsPigeonTestFillerEnum115: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM115_FILLER_MEMBER115: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM115_FILLER_MEMBER115 = 0 +} CoreTestsPigeonTestFillerEnum115; + +/** + * CoreTestsPigeonTestFillerEnum116: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM116_FILLER_MEMBER116: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM116_FILLER_MEMBER116 = 0 +} CoreTestsPigeonTestFillerEnum116; + +/** + * CoreTestsPigeonTestFillerEnum117: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM117_FILLER_MEMBER117: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM117_FILLER_MEMBER117 = 0 +} CoreTestsPigeonTestFillerEnum117; + +/** + * CoreTestsPigeonTestFillerEnum118: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM118_FILLER_MEMBER118: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM118_FILLER_MEMBER118 = 0 +} CoreTestsPigeonTestFillerEnum118; + +/** + * CoreTestsPigeonTestFillerEnum119: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM119_FILLER_MEMBER119: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM119_FILLER_MEMBER119 = 0 +} CoreTestsPigeonTestFillerEnum119; + +/** + * CoreTestsPigeonTestFillerEnum120: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM120_FILLER_MEMBER120: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM120_FILLER_MEMBER120 = 0 +} CoreTestsPigeonTestFillerEnum120; + +/** + * CoreTestsPigeonTestFillerEnum121: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM121_FILLER_MEMBER121: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM121_FILLER_MEMBER121 = 0 +} CoreTestsPigeonTestFillerEnum121; + +/** + * CoreTestsPigeonTestFillerEnum122: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM122_FILLER_MEMBER122: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM122_FILLER_MEMBER122 = 0 +} CoreTestsPigeonTestFillerEnum122; + +/** + * CoreTestsPigeonTestFillerEnum123: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM123_FILLER_MEMBER123: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM123_FILLER_MEMBER123 = 0 +} CoreTestsPigeonTestFillerEnum123; + +/** + * CoreTestsPigeonTestFillerEnum124: + * PIGEON_INTEGRATION_TESTS_FILLER_ENUM124_FILLER_MEMBER124: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_FILLER_ENUM124_FILLER_MEMBER124 = 0 +} CoreTestsPigeonTestFillerEnum124; + /** * CoreTestsPigeonTestAnEnum: * PIGEON_INTEGRATION_TESTS_AN_ENUM_ONE: @@ -29,6 +1154,15 @@ typedef enum { PIGEON_INTEGRATION_TESTS_AN_ENUM_FOUR_HUNDRED_TWENTY_TWO = 4 } CoreTestsPigeonTestAnEnum; +/** + * CoreTestsPigeonTestAnotherEnum: + * PIGEON_INTEGRATION_TESTS_ANOTHER_ENUM_JUST_IN_CASE: + * + */ +typedef enum { + PIGEON_INTEGRATION_TESTS_ANOTHER_ENUM_JUST_IN_CASE = 0 +} CoreTestsPigeonTestAnotherEnum; + /** * CoreTestsPigeonTestAllTypes: * @@ -54,6 +1188,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllTypes, * a_float_array: field in this object. * a_float_array_length: length of @a_float_array. * an_enum: field in this object. + * another_enum: field in this object. * a_string: field in this object. * an_object: field in this object. * list: field in this object. @@ -73,7 +1208,8 @@ CoreTestsPigeonTestAllTypes* core_tests_pigeon_test_all_types_new( const int32_t* a4_byte_array, size_t a4_byte_array_length, const int64_t* a8_byte_array, size_t a8_byte_array_length, const double* a_float_array, size_t a_float_array_length, - CoreTestsPigeonTestAnEnum an_enum, const gchar* a_string, + CoreTestsPigeonTestAnEnum an_enum, + CoreTestsPigeonTestAnotherEnum another_enum, const gchar* a_string, FlValue* an_object, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* map); @@ -180,6 +1316,18 @@ const double* core_tests_pigeon_test_all_types_get_a_float_array( CoreTestsPigeonTestAnEnum core_tests_pigeon_test_all_types_get_an_enum( CoreTestsPigeonTestAllTypes* object); +/** + * core_tests_pigeon_test_all_types_get_another_enum + * @object: a #CoreTestsPigeonTestAllTypes. + * + * Gets the value of the anotherEnum field of @object. + * + * Returns: the field value. + */ +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_all_types_get_another_enum( + CoreTestsPigeonTestAllTypes* object); + /** * core_tests_pigeon_test_all_types_get_a_string * @object: a #CoreTestsPigeonTestAllTypes. @@ -296,6 +1444,7 @@ G_DECLARE_FINAL_TYPE(CoreTestsPigeonTestAllNullableTypes, * nullable_map_with_annotations: field in this object. * nullable_map_with_object: field in this object. * a_nullable_enum: field in this object. + * another_nullable_enum: field in this object. * a_nullable_string: field in this object. * a_nullable_object: field in this object. * all_nullable_types: field in this object. @@ -321,8 +1470,9 @@ core_tests_pigeon_test_all_nullable_types_new( const double* a_nullable_float_array, size_t a_nullable_float_array_length, FlValue* nullable_nested_list, FlValue* nullable_map_with_annotations, FlValue* nullable_map_with_object, - CoreTestsPigeonTestAnEnum* a_nullable_enum, const gchar* a_nullable_string, - FlValue* a_nullable_object, + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, CoreTestsPigeonTestAllNullableTypes* all_nullable_types, FlValue* list, FlValue* string_list, FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* nested_class_list, FlValue* map); @@ -469,6 +1619,18 @@ CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_get_a_nullable_enum( CoreTestsPigeonTestAllNullableTypes* object); +/** + * core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum + * @object: a #CoreTestsPigeonTestAllNullableTypes. + * + * Gets the value of the anotherNullableEnum field of @object. + * + * Returns: the field value. + */ +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypes* object); + /** * core_tests_pigeon_test_all_nullable_types_get_a_nullable_string * @object: a #CoreTestsPigeonTestAllNullableTypes. @@ -611,6 +1773,7 @@ G_DECLARE_FINAL_TYPE( * nullable_map_with_annotations: field in this object. * nullable_map_with_object: field in this object. * a_nullable_enum: field in this object. + * another_nullable_enum: field in this object. * a_nullable_string: field in this object. * a_nullable_object: field in this object. * list: field in this object. @@ -634,9 +1797,11 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_new( const double* a_nullable_float_array, size_t a_nullable_float_array_length, FlValue* nullable_nested_list, FlValue* nullable_map_with_annotations, FlValue* nullable_map_with_object, - CoreTestsPigeonTestAnEnum* a_nullable_enum, const gchar* a_nullable_string, - FlValue* a_nullable_object, FlValue* list, FlValue* string_list, - FlValue* int_list, FlValue* double_list, FlValue* bool_list, FlValue* map); + CoreTestsPigeonTestAnEnum* a_nullable_enum, + CoreTestsPigeonTestAnotherEnum* another_nullable_enum, + const gchar* a_nullable_string, FlValue* a_nullable_object, FlValue* list, + FlValue* string_list, FlValue* int_list, FlValue* double_list, + FlValue* bool_list, FlValue* map); /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_bool @@ -790,6 +1955,18 @@ CoreTestsPigeonTestAnEnum* core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_enum( CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); +/** + * core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum + * @object: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. + * + * Gets the value of the anotherNullableEnum field of @object. + * + * Returns: the field value. + */ +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_all_nullable_types_without_recursion_get_another_nullable_enum( + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* object); + /** * core_tests_pigeon_test_all_nullable_types_without_recursion_get_a_nullable_string * @object: a #CoreTestsPigeonTestAllNullableTypesWithoutRecursion. @@ -1458,6 +2635,39 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new_error( const gchar* code, const gchar* message, FlValue* details); +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) + +/** + * core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new: + * + * Creates a new response to HostIntegrationCoreApi.echoAnotherEnum. + * + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( + CoreTestsPigeonTestAnotherEnum return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error: + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Creates a new error response to HostIntegrationCoreApi.echoAnotherEnum. + * + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details); + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse, core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response, @@ -2063,6 +3273,40 @@ CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new_error( const gchar* code, const gchar* message, FlValue* details); +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + HOST_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) + +/** + * core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new: + * + * Creates a new response to HostIntegrationCoreApi.echoAnotherNullableEnum. + * + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new( + CoreTestsPigeonTestAnotherEnum* return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error: + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Creates a new error response to + * HostIntegrationCoreApi.echoAnotherNullableEnum. + * + * Returns: a new + * #CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse + */ +CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new_error( + const gchar* code, const gchar* message, FlValue* details); + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse, core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response, @@ -2171,6 +3415,9 @@ typedef struct { gpointer user_data); CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* (*echo_enum)( CoreTestsPigeonTestAnEnum an_enum, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* ( + *echo_another_enum)(CoreTestsPigeonTestAnotherEnum another_enum, + gpointer user_data); CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* ( *echo_named_default_string)(const gchar* a_string, gpointer user_data); CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalDefaultDoubleResponse* ( @@ -2221,6 +3468,9 @@ typedef struct { CoreTestsPigeonTestHostIntegrationCoreApiEchoNullableEnumResponse* ( *echo_nullable_enum)(CoreTestsPigeonTestAnEnum* an_enum, gpointer user_data); + CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* ( + *echo_another_nullable_enum)(CoreTestsPigeonTestAnotherEnum* another_enum, + gpointer user_data); CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* ( *echo_optional_nullable_int)(int64_t* a_nullable_int, gpointer user_data); CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedNullableStringResponse* ( @@ -2265,6 +3515,10 @@ typedef struct { CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_another_async_enum)( + CoreTestsPigeonTestAnotherEnum another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); void (*throw_async_error)( CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); @@ -2322,6 +3576,10 @@ typedef struct { CoreTestsPigeonTestAnEnum* an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*echo_another_async_nullable_enum)( + CoreTestsPigeonTestAnotherEnum* another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); void (*call_flutter_noop)( CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); @@ -2385,6 +3643,10 @@ typedef struct { CoreTestsPigeonTestAnEnum an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_another_enum)( + CoreTestsPigeonTestAnotherEnum another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); void (*call_flutter_echo_nullable_bool)( gboolean* a_bool, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, @@ -2417,6 +3679,10 @@ typedef struct { CoreTestsPigeonTestAnEnum* an_enum, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, gpointer user_data); + void (*call_flutter_echo_another_nullable_enum)( + CoreTestsPigeonTestAnotherEnum* another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data); void (*call_flutter_small_api_echo_string)( const gchar* a_string, CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, @@ -2691,6 +3957,30 @@ void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_e CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +/** + * core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @return_value: location to write the value returned by this method. + * + * Responds to HostIntegrationCoreApi.echoAnotherAsyncEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Responds with an error to HostIntegrationCoreApi.echoAnotherAsyncEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); + /** * core_tests_pigeon_test_host_integration_core_api_respond_throw_async_error: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. @@ -3054,6 +4344,31 @@ void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_async_n CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +/** + * core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @return_value: location to write the value returned by this method. + * + * Responds to HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Responds with an error to + * HostIntegrationCoreApi.echoAnotherAsyncNullableEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_error_echo_another_async_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); + /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_noop: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. @@ -3443,6 +4758,30 @@ void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +/** + * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @return_value: location to write the value returned by this method. + * + * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Responds with an error to HostIntegrationCoreApi.callFlutterEchoAnotherEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); + /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_nullable_bool: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. @@ -3640,6 +4979,31 @@ void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, const gchar* code, const gchar* message, FlValue* details); +/** + * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @return_value: location to write the value returned by this method. + * + * Responds to HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + CoreTestsPigeonTestAnotherEnum* return_value); + +/** + * core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum: + * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. + * @code: error code. + * @message: error message. + * @details: (allow-none): error details or %NULL. + * + * Responds with an error to + * HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum. + */ +void core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum( + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + const gchar* code, const gchar* message, FlValue* details); + /** * core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_small_api_echo_string: * @response_handle: a #CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle. @@ -4769,6 +6133,83 @@ CoreTestsPigeonTestAnEnum core_tests_pigeon_test_flutter_integration_core_api_echo_enum_response_get_return_value( CoreTestsPigeonTestFlutterIntegrationCoreApiEchoEnumResponse* response); +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_ENUM_RESPONSE, GObject) + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * + * Checks if a response to FlutterIntegrationCoreApi.echoAnotherEnum is an + * error. + * + * Returns: a %TRUE if this response is an error. + */ +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * + * Get the error code for this response. + * + * Returns: an error code or %NULL if not an error. + */ +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * + * Get the error message for this response. + * + * Returns: an error message. + */ +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * + * Get the error details for this response. + * + * Returns: (allow-none): an error details or %NULL. + */ +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse. + * + * Get the return value for this response. + * + * Returns: a return value. + */ +CoreTestsPigeonTestAnotherEnum +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* + response); + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableBoolResponse, core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool_response, @@ -5388,6 +6829,83 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_response_ CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse* response); +G_DECLARE_FINAL_TYPE( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response, + CORE_TESTS_PIGEON_TEST, + FLUTTER_INTEGRATION_CORE_API_ECHO_ANOTHER_NULLABLE_ENUM_RESPONSE, GObject) + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * + * Checks if a response to FlutterIntegrationCoreApi.echoAnotherNullableEnum is + * an error. + * + * Returns: a %TRUE if this response is an error. + */ +gboolean +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * + * Get the error code for this response. + * + * Returns: an error code or %NULL if not an error. + */ +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * + * Get the error message for this response. + * + * Returns: an error message. + */ +const gchar* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * + * Get the error details for this response. + * + * Returns: (allow-none): an error details or %NULL. + */ +FlValue* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value: + * @response: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse. + * + * Get the return value for this response. + * + * Returns: (allow-none): a return value or %NULL. + */ +CoreTestsPigeonTestAnotherEnum* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* + response); + G_DECLARE_FINAL_TYPE( CoreTestsPigeonTestFlutterIntegrationCoreApiNoopAsyncResponse, core_tests_pigeon_test_flutter_integration_core_api_noop_async_response, @@ -6107,6 +7625,41 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_enum_finish( CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum: + * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. + * @another_enum: parameter for this method. + * @cancellable: (allow-none): a #GCancellable or %NULL. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. + * @user_data: (closure): user data to pass to @callback. + * + * Returns the passed enum to test serialization and deserialization. + */ +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAnotherEnum another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish: + * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. + * @result: a #GAsyncResult. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. + * + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum() call. + * + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse or %NULL + * on error. + */ +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); + /** * core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_bool: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. @@ -6394,6 +7947,42 @@ core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum_finish( CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, GError** error); +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum: + * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. + * @another_enum: (allow-none): parameter for this method. + * @cancellable: (allow-none): a #GCancellable or %NULL. + * @callback: (scope async): (allow-none): a #GAsyncReadyCallback to call when + * the call is complete or %NULL to ignore the response. + * @user_data: (closure): user data to pass to @callback. + * + * Returns the passed enum to test serialization and deserialization. + */ +void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, + CoreTestsPigeonTestAnotherEnum* another_enum, GCancellable* cancellable, + GAsyncReadyCallback callback, gpointer user_data); + +/** + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish: + * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. + * @result: a #GAsyncResult. + * @error: (allow-none): #GError location to store the error occurring, or %NULL + * to ignore. + * + * Completes a + * core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum() + * call. + * + * Returns: a + * #CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse + * or %NULL on error. + */ +CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse* +core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( + CoreTestsPigeonTestFlutterIntegrationCoreApi* api, GAsyncResult* result, + GError** error); + /** * core_tests_pigeon_test_flutter_integration_core_api_noop_async: * @api: a #CoreTestsPigeonTestFlutterIntegrationCoreApi. diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index 98d0dce9593..095104a0b28 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -145,6 +145,14 @@ static CoreTestsPigeonTestHostIntegrationCoreApiEchoEnumResponse* echo_enum( an_enum); } +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherEnumResponse* +echo_another_enum( + + CoreTestsPigeonTestAnotherEnum another_enum, gpointer user_data) { + return core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( + another_enum); +} + static CoreTestsPigeonTestHostIntegrationCoreApiEchoNamedDefaultStringResponse* echo_named_default_string(const gchar* a_string, gpointer user_data) { return core_tests_pigeon_test_host_integration_core_api_echo_named_default_string_response_new( @@ -195,9 +203,9 @@ create_nested_nullable_string(const gchar* nullable_string, g_autoptr(CoreTestsPigeonTestAllNullableTypes) types = core_tests_pigeon_test_all_nullable_types_new( nullptr, nullptr, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, - 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullable_string, - nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, - nullptr, nullptr); + 0, nullptr, 0, nullptr, nullptr, nullptr, nullptr, nullptr, + nullable_string, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr); g_autoptr(CoreTestsPigeonTestAllClassesWrapper) wrapper = core_tests_pigeon_test_all_classes_wrapper_new(types, nullptr, nullptr); return core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_response_new( @@ -212,8 +220,8 @@ send_multiple_nullable_types(gboolean* a_nullable_bool, int64_t* a_nullable_int, core_tests_pigeon_test_all_nullable_types_new( a_nullable_bool, a_nullable_int, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, 0, nullptr, 0, nullptr, nullptr, nullptr, - nullptr, a_nullable_string, nullptr, nullptr, nullptr, nullptr, - nullptr, nullptr, nullptr, nullptr, nullptr); + nullptr, nullptr, a_nullable_string, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr, nullptr, nullptr); return core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_response_new( types); } @@ -227,8 +235,8 @@ send_multiple_nullable_types_without_recursion(gboolean* a_nullable_bool, core_tests_pigeon_test_all_nullable_types_without_recursion_new( a_nullable_bool, a_nullable_int, nullptr, nullptr, nullptr, 0, nullptr, 0, nullptr, 0, nullptr, 0, nullptr, nullptr, nullptr, - nullptr, a_nullable_string, nullptr, nullptr, nullptr, nullptr, - nullptr, nullptr, nullptr); + nullptr, nullptr, a_nullable_string, nullptr, nullptr, nullptr, + nullptr, nullptr, nullptr, nullptr); return core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_without_recursion_response_new( types); } @@ -289,6 +297,13 @@ echo_nullable_enum(CoreTestsPigeonTestAnEnum* an_enum, gpointer user_data) { an_enum); } +static CoreTestsPigeonTestHostIntegrationCoreApiEchoAnotherNullableEnumResponse* +echo_another_nullable_enum(CoreTestsPigeonTestAnotherEnum* another_enum, + gpointer user_data) { + return core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_response_new( + another_enum); +} + static CoreTestsPigeonTestHostIntegrationCoreApiEchoOptionalNullableIntResponse* echo_optional_nullable_int(int64_t* a_nullable_int, gpointer user_data) { return core_tests_pigeon_test_host_integration_core_api_echo_optional_nullable_int_response_new( @@ -382,6 +397,15 @@ static void echo_async_enum( response_handle, an_enum); } +static void echo_another_async_enum( + + CoreTestsPigeonTestAnotherEnum another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data) { + core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_enum( + response_handle, another_enum); +} + static void throw_async_error( CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, @@ -509,6 +533,15 @@ static void echo_async_nullable_enum( response_handle, an_enum); } +static void echo_another_async_nullable_enum( + + CoreTestsPigeonTestAnotherEnum* another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data) { + core_tests_pigeon_test_host_integration_core_api_respond_echo_another_async_nullable_enum( + response_handle, another_enum); +} + static void noop_cb(GObject* object, GAsyncResult* result, gpointer user_data) { g_autoptr(CallbackData) data = static_cast(user_data); @@ -1242,6 +1275,52 @@ static void call_flutter_echo_enum( callback_data_new(self, response_handle)); } +static void echo_another_enum_cb(GObject* object, GAsyncResult* result, + gpointer user_data) { + g_autoptr(CallbackData) data = static_cast(user_data); + + g_autoptr(GError) error = nullptr; + g_autoptr(CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherEnumResponse) + response = + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_finish( + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(object), + result, &error); + if (response == nullptr) { + core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_enum( + data->response_handle, "Internal Error", error->message, nullptr); + return; + } + if (core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_is_error( + response)) { + core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool( + data->response_handle, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_code( + response), + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_message( + response), + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_error_details( + response)); + return; + } + + core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_enum( + data->response_handle, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum_response_get_return_value( + response)); +} + +static void call_flutter_echo_another_enum( + + CoreTestsPigeonTestAnotherEnum another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data) { + TestPlugin* self = TEST_PLUGIN(user_data); + + core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( + self->flutter_core_api, another_enum, self->cancellable, + echo_another_enum_cb, callback_data_new(self, response_handle)); +} + static void echo_nullable_bool_cb(GObject* object, GAsyncResult* result, gpointer user_data) { g_autoptr(CallbackData) data = static_cast(user_data); @@ -1611,6 +1690,18 @@ static void call_flutter_echo_nullable_enum( callback_data_new(self, response_handle)); } +static void call_flutter_echo_another_nullable_enum( + + CoreTestsPigeonTestAnotherEnum* another_enum, + CoreTestsPigeonTestHostIntegrationCoreApiResponseHandle* response_handle, + gpointer user_data) { + TestPlugin* self = TEST_PLUGIN(user_data); + + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( + self->flutter_core_api, another_enum, self->cancellable, + echo_nullable_enum_cb, callback_data_new(self, response_handle)); +} + static void small_api_two_echo_string_cb(GObject* object, GAsyncResult* result, gpointer user_data) { g_autoptr(CallbackData) data = static_cast(user_data); diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index 6e53369d01c..5b350e29cea 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -74,6 +74,506 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } +enum FillerEnum0: Int { + case fillerMember0 = 0 +} + +enum FillerEnum1: Int { + case fillerMember1 = 0 +} + +enum FillerEnum2: Int { + case fillerMember2 = 0 +} + +enum FillerEnum3: Int { + case fillerMember3 = 0 +} + +enum FillerEnum4: Int { + case fillerMember4 = 0 +} + +enum FillerEnum5: Int { + case fillerMember5 = 0 +} + +enum FillerEnum6: Int { + case fillerMember6 = 0 +} + +enum FillerEnum7: Int { + case fillerMember7 = 0 +} + +enum FillerEnum8: Int { + case fillerMember8 = 0 +} + +enum FillerEnum9: Int { + case fillerMember9 = 0 +} + +enum FillerEnum10: Int { + case fillerMember10 = 0 +} + +enum FillerEnum11: Int { + case fillerMember11 = 0 +} + +enum FillerEnum12: Int { + case fillerMember12 = 0 +} + +enum FillerEnum13: Int { + case fillerMember13 = 0 +} + +enum FillerEnum14: Int { + case fillerMember14 = 0 +} + +enum FillerEnum15: Int { + case fillerMember15 = 0 +} + +enum FillerEnum16: Int { + case fillerMember16 = 0 +} + +enum FillerEnum17: Int { + case fillerMember17 = 0 +} + +enum FillerEnum18: Int { + case fillerMember18 = 0 +} + +enum FillerEnum19: Int { + case fillerMember19 = 0 +} + +enum FillerEnum20: Int { + case fillerMember20 = 0 +} + +enum FillerEnum21: Int { + case fillerMember21 = 0 +} + +enum FillerEnum22: Int { + case fillerMember22 = 0 +} + +enum FillerEnum23: Int { + case fillerMember23 = 0 +} + +enum FillerEnum24: Int { + case fillerMember24 = 0 +} + +enum FillerEnum25: Int { + case fillerMember25 = 0 +} + +enum FillerEnum26: Int { + case fillerMember26 = 0 +} + +enum FillerEnum27: Int { + case fillerMember27 = 0 +} + +enum FillerEnum28: Int { + case fillerMember28 = 0 +} + +enum FillerEnum29: Int { + case fillerMember29 = 0 +} + +enum FillerEnum30: Int { + case fillerMember30 = 0 +} + +enum FillerEnum31: Int { + case fillerMember31 = 0 +} + +enum FillerEnum32: Int { + case fillerMember32 = 0 +} + +enum FillerEnum33: Int { + case fillerMember33 = 0 +} + +enum FillerEnum34: Int { + case fillerMember34 = 0 +} + +enum FillerEnum35: Int { + case fillerMember35 = 0 +} + +enum FillerEnum36: Int { + case fillerMember36 = 0 +} + +enum FillerEnum37: Int { + case fillerMember37 = 0 +} + +enum FillerEnum38: Int { + case fillerMember38 = 0 +} + +enum FillerEnum39: Int { + case fillerMember39 = 0 +} + +enum FillerEnum40: Int { + case fillerMember40 = 0 +} + +enum FillerEnum41: Int { + case fillerMember41 = 0 +} + +enum FillerEnum42: Int { + case fillerMember42 = 0 +} + +enum FillerEnum43: Int { + case fillerMember43 = 0 +} + +enum FillerEnum44: Int { + case fillerMember44 = 0 +} + +enum FillerEnum45: Int { + case fillerMember45 = 0 +} + +enum FillerEnum46: Int { + case fillerMember46 = 0 +} + +enum FillerEnum47: Int { + case fillerMember47 = 0 +} + +enum FillerEnum48: Int { + case fillerMember48 = 0 +} + +enum FillerEnum49: Int { + case fillerMember49 = 0 +} + +enum FillerEnum50: Int { + case fillerMember50 = 0 +} + +enum FillerEnum51: Int { + case fillerMember51 = 0 +} + +enum FillerEnum52: Int { + case fillerMember52 = 0 +} + +enum FillerEnum53: Int { + case fillerMember53 = 0 +} + +enum FillerEnum54: Int { + case fillerMember54 = 0 +} + +enum FillerEnum55: Int { + case fillerMember55 = 0 +} + +enum FillerEnum56: Int { + case fillerMember56 = 0 +} + +enum FillerEnum57: Int { + case fillerMember57 = 0 +} + +enum FillerEnum58: Int { + case fillerMember58 = 0 +} + +enum FillerEnum59: Int { + case fillerMember59 = 0 +} + +enum FillerEnum60: Int { + case fillerMember60 = 0 +} + +enum FillerEnum61: Int { + case fillerMember61 = 0 +} + +enum FillerEnum62: Int { + case fillerMember62 = 0 +} + +enum FillerEnum63: Int { + case fillerMember63 = 0 +} + +enum FillerEnum64: Int { + case fillerMember64 = 0 +} + +enum FillerEnum65: Int { + case fillerMember65 = 0 +} + +enum FillerEnum66: Int { + case fillerMember66 = 0 +} + +enum FillerEnum67: Int { + case fillerMember67 = 0 +} + +enum FillerEnum68: Int { + case fillerMember68 = 0 +} + +enum FillerEnum69: Int { + case fillerMember69 = 0 +} + +enum FillerEnum70: Int { + case fillerMember70 = 0 +} + +enum FillerEnum71: Int { + case fillerMember71 = 0 +} + +enum FillerEnum72: Int { + case fillerMember72 = 0 +} + +enum FillerEnum73: Int { + case fillerMember73 = 0 +} + +enum FillerEnum74: Int { + case fillerMember74 = 0 +} + +enum FillerEnum75: Int { + case fillerMember75 = 0 +} + +enum FillerEnum76: Int { + case fillerMember76 = 0 +} + +enum FillerEnum77: Int { + case fillerMember77 = 0 +} + +enum FillerEnum78: Int { + case fillerMember78 = 0 +} + +enum FillerEnum79: Int { + case fillerMember79 = 0 +} + +enum FillerEnum80: Int { + case fillerMember80 = 0 +} + +enum FillerEnum81: Int { + case fillerMember81 = 0 +} + +enum FillerEnum82: Int { + case fillerMember82 = 0 +} + +enum FillerEnum83: Int { + case fillerMember83 = 0 +} + +enum FillerEnum84: Int { + case fillerMember84 = 0 +} + +enum FillerEnum85: Int { + case fillerMember85 = 0 +} + +enum FillerEnum86: Int { + case fillerMember86 = 0 +} + +enum FillerEnum87: Int { + case fillerMember87 = 0 +} + +enum FillerEnum88: Int { + case fillerMember88 = 0 +} + +enum FillerEnum89: Int { + case fillerMember89 = 0 +} + +enum FillerEnum90: Int { + case fillerMember90 = 0 +} + +enum FillerEnum91: Int { + case fillerMember91 = 0 +} + +enum FillerEnum92: Int { + case fillerMember92 = 0 +} + +enum FillerEnum93: Int { + case fillerMember93 = 0 +} + +enum FillerEnum94: Int { + case fillerMember94 = 0 +} + +enum FillerEnum95: Int { + case fillerMember95 = 0 +} + +enum FillerEnum96: Int { + case fillerMember96 = 0 +} + +enum FillerEnum97: Int { + case fillerMember97 = 0 +} + +enum FillerEnum98: Int { + case fillerMember98 = 0 +} + +enum FillerEnum99: Int { + case fillerMember99 = 0 +} + +enum FillerEnum100: Int { + case fillerMember100 = 0 +} + +enum FillerEnum101: Int { + case fillerMember101 = 0 +} + +enum FillerEnum102: Int { + case fillerMember102 = 0 +} + +enum FillerEnum103: Int { + case fillerMember103 = 0 +} + +enum FillerEnum104: Int { + case fillerMember104 = 0 +} + +enum FillerEnum105: Int { + case fillerMember105 = 0 +} + +enum FillerEnum106: Int { + case fillerMember106 = 0 +} + +enum FillerEnum107: Int { + case fillerMember107 = 0 +} + +enum FillerEnum108: Int { + case fillerMember108 = 0 +} + +enum FillerEnum109: Int { + case fillerMember109 = 0 +} + +enum FillerEnum110: Int { + case fillerMember110 = 0 +} + +enum FillerEnum111: Int { + case fillerMember111 = 0 +} + +enum FillerEnum112: Int { + case fillerMember112 = 0 +} + +enum FillerEnum113: Int { + case fillerMember113 = 0 +} + +enum FillerEnum114: Int { + case fillerMember114 = 0 +} + +enum FillerEnum115: Int { + case fillerMember115 = 0 +} + +enum FillerEnum116: Int { + case fillerMember116 = 0 +} + +enum FillerEnum117: Int { + case fillerMember117 = 0 +} + +enum FillerEnum118: Int { + case fillerMember118 = 0 +} + +enum FillerEnum119: Int { + case fillerMember119 = 0 +} + +enum FillerEnum120: Int { + case fillerMember120 = 0 +} + +enum FillerEnum121: Int { + case fillerMember121 = 0 +} + +enum FillerEnum122: Int { + case fillerMember122 = 0 +} + +enum FillerEnum123: Int { + case fillerMember123 = 0 +} + +enum FillerEnum124: Int { + case fillerMember124 = 0 +} + enum AnEnum: Int { case one = 0 case two = 1 @@ -82,6 +582,10 @@ enum AnEnum: Int { case fourHundredTwentyTwo = 4 } +enum AnotherEnum: Int { + case justInCase = 0 +} + /// A class containing all supported types. /// /// Generated class from Pigeon that represents data sent in messages. @@ -95,6 +599,7 @@ struct AllTypes { var a8ByteArray: FlutterStandardTypedData var aFloatArray: FlutterStandardTypedData var anEnum: AnEnum + var anotherEnum: AnotherEnum var aString: String var anObject: Any var list: [Any?] @@ -117,14 +622,15 @@ struct AllTypes { let a8ByteArray = __pigeon_list[6] as! FlutterStandardTypedData let aFloatArray = __pigeon_list[7] as! FlutterStandardTypedData let anEnum = __pigeon_list[8] as! AnEnum - let aString = __pigeon_list[9] as! String - let anObject = __pigeon_list[10]! - let list = __pigeon_list[11] as! [Any?] - let stringList = __pigeon_list[12] as! [String?] - let intList = __pigeon_list[13] as! [Int64?] - let doubleList = __pigeon_list[14] as! [Double?] - let boolList = __pigeon_list[15] as! [Bool?] - let map = __pigeon_list[16] as! [AnyHashable: Any?] + let anotherEnum = __pigeon_list[9] as! AnotherEnum + let aString = __pigeon_list[10] as! String + let anObject = __pigeon_list[11]! + let list = __pigeon_list[12] as! [Any?] + let stringList = __pigeon_list[13] as! [String?] + let intList = __pigeon_list[14] as! [Int64?] + let doubleList = __pigeon_list[15] as! [Double?] + let boolList = __pigeon_list[16] as! [Bool?] + let map = __pigeon_list[17] as! [AnyHashable: Any?] return AllTypes( aBool: aBool, @@ -136,6 +642,7 @@ struct AllTypes { a8ByteArray: a8ByteArray, aFloatArray: aFloatArray, anEnum: anEnum, + anotherEnum: anotherEnum, aString: aString, anObject: anObject, list: list, @@ -157,6 +664,7 @@ struct AllTypes { a8ByteArray, aFloatArray, anEnum, + anotherEnum, aString, anObject, list, @@ -186,6 +694,7 @@ class AllNullableTypes { nullableMapWithAnnotations: [String?: String?]? = nil, nullableMapWithObject: [String?: Any?]? = nil, aNullableEnum: AnEnum? = nil, + anotherNullableEnum: AnotherEnum? = nil, aNullableString: String? = nil, aNullableObject: Any? = nil, allNullableTypes: AllNullableTypes? = nil, @@ -209,6 +718,7 @@ class AllNullableTypes { self.nullableMapWithAnnotations = nullableMapWithAnnotations self.nullableMapWithObject = nullableMapWithObject self.aNullableEnum = aNullableEnum + self.anotherNullableEnum = anotherNullableEnum self.aNullableString = aNullableString self.aNullableObject = aNullableObject self.allNullableTypes = allNullableTypes @@ -232,6 +742,7 @@ class AllNullableTypes { var nullableMapWithAnnotations: [String?: String?]? var nullableMapWithObject: [String?: Any?]? var aNullableEnum: AnEnum? + var anotherNullableEnum: AnotherEnum? var aNullableString: String? var aNullableObject: Any? var allNullableTypes: AllNullableTypes? @@ -265,16 +776,17 @@ class AllNullableTypes { let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let aNullableString: String? = nilOrValue(__pigeon_list[12]) - let aNullableObject: Any? = __pigeon_list[13] - let allNullableTypes: AllNullableTypes? = nilOrValue(__pigeon_list[14]) - let list: [Any?]? = nilOrValue(__pigeon_list[15]) - let stringList: [String?]? = nilOrValue(__pigeon_list[16]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[17]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[18]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[19]) - let nestedClassList: [AllNullableTypes?]? = nilOrValue(__pigeon_list[20]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[21]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) + let aNullableString: String? = nilOrValue(__pigeon_list[13]) + let aNullableObject: Any? = __pigeon_list[14] + let allNullableTypes: AllNullableTypes? = nilOrValue(__pigeon_list[15]) + let list: [Any?]? = nilOrValue(__pigeon_list[16]) + let stringList: [String?]? = nilOrValue(__pigeon_list[17]) + let intList: [Int64?]? = nilOrValue(__pigeon_list[18]) + let doubleList: [Double?]? = nilOrValue(__pigeon_list[19]) + let boolList: [Bool?]? = nilOrValue(__pigeon_list[20]) + let nestedClassList: [AllNullableTypes?]? = nilOrValue(__pigeon_list[21]) + let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[22]) return AllNullableTypes( aNullableBool: aNullableBool, @@ -289,6 +801,7 @@ class AllNullableTypes { nullableMapWithAnnotations: nullableMapWithAnnotations, nullableMapWithObject: nullableMapWithObject, aNullableEnum: aNullableEnum, + anotherNullableEnum: anotherNullableEnum, aNullableString: aNullableString, aNullableObject: aNullableObject, allNullableTypes: allNullableTypes, @@ -315,6 +828,7 @@ class AllNullableTypes { nullableMapWithAnnotations, nullableMapWithObject, aNullableEnum, + anotherNullableEnum, aNullableString, aNullableObject, allNullableTypes, @@ -347,6 +861,7 @@ struct AllNullableTypesWithoutRecursion { var nullableMapWithAnnotations: [String?: String?]? = nil var nullableMapWithObject: [String?: Any?]? = nil var aNullableEnum: AnEnum? = nil + var anotherNullableEnum: AnotherEnum? = nil var aNullableString: String? = nil var aNullableObject: Any? = nil var list: [Any?]? = nil @@ -378,14 +893,15 @@ struct AllNullableTypesWithoutRecursion { let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let aNullableString: String? = nilOrValue(__pigeon_list[12]) - let aNullableObject: Any? = __pigeon_list[13] - let list: [Any?]? = nilOrValue(__pigeon_list[14]) - let stringList: [String?]? = nilOrValue(__pigeon_list[15]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[16]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[17]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[18]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[19]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) + let aNullableString: String? = nilOrValue(__pigeon_list[13]) + let aNullableObject: Any? = __pigeon_list[14] + let list: [Any?]? = nilOrValue(__pigeon_list[15]) + let stringList: [String?]? = nilOrValue(__pigeon_list[16]) + let intList: [Int64?]? = nilOrValue(__pigeon_list[17]) + let doubleList: [Double?]? = nilOrValue(__pigeon_list[18]) + let boolList: [Bool?]? = nilOrValue(__pigeon_list[19]) + let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[20]) return AllNullableTypesWithoutRecursion( aNullableBool: aNullableBool, @@ -400,6 +916,7 @@ struct AllNullableTypesWithoutRecursion { nullableMapWithAnnotations: nullableMapWithAnnotations, nullableMapWithObject: nullableMapWithObject, aNullableEnum: aNullableEnum, + anotherNullableEnum: anotherNullableEnum, aNullableString: aNullableString, aNullableObject: aNullableObject, list: list, @@ -424,6 +941,7 @@ struct AllNullableTypesWithoutRecursion { nullableMapWithAnnotations, nullableMapWithObject, aNullableEnum, + anotherNullableEnum, aNullableString, aNullableObject, list, @@ -491,52 +1009,1351 @@ struct TestMessage { } } +// swift-format-ignore: TypeNamesShouldBeCapitalized +struct __pigeon_CodecOverflow { + var type: Int + var wrapped: Any? = nil + + func toList() -> [Any?] { + return [ + type, + wrapped, + ] + } + // swift-format-ignore: AlwaysUseLowerCamelCase + static func fromList(_ __pigeon_list: [Any?]) -> Any? { + let type = __pigeon_list[0] as! Int + let wrapped: Any? = __pigeon_list[1] + + let wrapper = __pigeon_CodecOverflow( + type: type, + wrapped: wrapped + ) + + return wrapper.unwrap() + } + + func unwrap() -> Any? { + if wrapped == nil { + return nil + } + + switch type { + case 0: + return AnotherEnum(rawValue: wrapped as! Int) + case 1: + return AllTypes.fromList(wrapped as! [Any?]) + case 2: + return AllNullableTypes.fromList(wrapped as! [Any?]) + case 3: + return AllNullableTypesWithoutRecursion.fromList(wrapped as! [Any?]) + case 4: + return AllClassesWrapper.fromList(wrapped as! [Any?]) + case 5: + return TestMessage.fromList(wrapped as! [Any?]) + default: + return nil + } + } +} + private class CoreTestsPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - var enumResult: AnEnum? = nil + var enumResult: FillerEnum0? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnEnum(rawValue: enumResultAsInt) + enumResult = FillerEnum0(rawValue: enumResultAsInt) } return enumResult case 130: - return AllTypes.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum1? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum1(rawValue: enumResultAsInt) + } + return enumResult case 131: - return AllNullableTypes.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum2? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum2(rawValue: enumResultAsInt) + } + return enumResult case 132: - return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum3? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum3(rawValue: enumResultAsInt) + } + return enumResult case 133: - return AllClassesWrapper.fromList(self.readValue() as! [Any?]) + var enumResult: FillerEnum4? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum4(rawValue: enumResultAsInt) + } + return enumResult case 134: - return TestMessage.fromList(self.readValue() as! [Any?]) - default: - return super.readValue(ofType: type) - } - } -} - -private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { - override func writeValue(_ value: Any) { - if let value = value as? AnEnum { - super.writeByte(129) + var enumResult: FillerEnum5? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum5(rawValue: enumResultAsInt) + } + return enumResult + case 135: + var enumResult: FillerEnum6? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum6(rawValue: enumResultAsInt) + } + return enumResult + case 136: + var enumResult: FillerEnum7? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum7(rawValue: enumResultAsInt) + } + return enumResult + case 137: + var enumResult: FillerEnum8? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum8(rawValue: enumResultAsInt) + } + return enumResult + case 138: + var enumResult: FillerEnum9? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum9(rawValue: enumResultAsInt) + } + return enumResult + case 139: + var enumResult: FillerEnum10? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum10(rawValue: enumResultAsInt) + } + return enumResult + case 140: + var enumResult: FillerEnum11? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum11(rawValue: enumResultAsInt) + } + return enumResult + case 141: + var enumResult: FillerEnum12? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum12(rawValue: enumResultAsInt) + } + return enumResult + case 142: + var enumResult: FillerEnum13? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum13(rawValue: enumResultAsInt) + } + return enumResult + case 143: + var enumResult: FillerEnum14? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum14(rawValue: enumResultAsInt) + } + return enumResult + case 144: + var enumResult: FillerEnum15? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum15(rawValue: enumResultAsInt) + } + return enumResult + case 145: + var enumResult: FillerEnum16? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum16(rawValue: enumResultAsInt) + } + return enumResult + case 146: + var enumResult: FillerEnum17? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum17(rawValue: enumResultAsInt) + } + return enumResult + case 147: + var enumResult: FillerEnum18? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum18(rawValue: enumResultAsInt) + } + return enumResult + case 148: + var enumResult: FillerEnum19? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum19(rawValue: enumResultAsInt) + } + return enumResult + case 149: + var enumResult: FillerEnum20? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum20(rawValue: enumResultAsInt) + } + return enumResult + case 150: + var enumResult: FillerEnum21? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum21(rawValue: enumResultAsInt) + } + return enumResult + case 151: + var enumResult: FillerEnum22? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum22(rawValue: enumResultAsInt) + } + return enumResult + case 152: + var enumResult: FillerEnum23? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum23(rawValue: enumResultAsInt) + } + return enumResult + case 153: + var enumResult: FillerEnum24? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum24(rawValue: enumResultAsInt) + } + return enumResult + case 154: + var enumResult: FillerEnum25? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum25(rawValue: enumResultAsInt) + } + return enumResult + case 155: + var enumResult: FillerEnum26? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum26(rawValue: enumResultAsInt) + } + return enumResult + case 156: + var enumResult: FillerEnum27? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum27(rawValue: enumResultAsInt) + } + return enumResult + case 157: + var enumResult: FillerEnum28? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum28(rawValue: enumResultAsInt) + } + return enumResult + case 158: + var enumResult: FillerEnum29? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum29(rawValue: enumResultAsInt) + } + return enumResult + case 159: + var enumResult: FillerEnum30? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum30(rawValue: enumResultAsInt) + } + return enumResult + case 160: + var enumResult: FillerEnum31? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum31(rawValue: enumResultAsInt) + } + return enumResult + case 161: + var enumResult: FillerEnum32? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum32(rawValue: enumResultAsInt) + } + return enumResult + case 162: + var enumResult: FillerEnum33? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum33(rawValue: enumResultAsInt) + } + return enumResult + case 163: + var enumResult: FillerEnum34? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum34(rawValue: enumResultAsInt) + } + return enumResult + case 164: + var enumResult: FillerEnum35? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum35(rawValue: enumResultAsInt) + } + return enumResult + case 165: + var enumResult: FillerEnum36? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum36(rawValue: enumResultAsInt) + } + return enumResult + case 166: + var enumResult: FillerEnum37? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum37(rawValue: enumResultAsInt) + } + return enumResult + case 167: + var enumResult: FillerEnum38? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum38(rawValue: enumResultAsInt) + } + return enumResult + case 168: + var enumResult: FillerEnum39? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum39(rawValue: enumResultAsInt) + } + return enumResult + case 169: + var enumResult: FillerEnum40? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum40(rawValue: enumResultAsInt) + } + return enumResult + case 170: + var enumResult: FillerEnum41? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum41(rawValue: enumResultAsInt) + } + return enumResult + case 171: + var enumResult: FillerEnum42? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum42(rawValue: enumResultAsInt) + } + return enumResult + case 172: + var enumResult: FillerEnum43? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum43(rawValue: enumResultAsInt) + } + return enumResult + case 173: + var enumResult: FillerEnum44? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum44(rawValue: enumResultAsInt) + } + return enumResult + case 174: + var enumResult: FillerEnum45? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum45(rawValue: enumResultAsInt) + } + return enumResult + case 175: + var enumResult: FillerEnum46? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum46(rawValue: enumResultAsInt) + } + return enumResult + case 176: + var enumResult: FillerEnum47? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum47(rawValue: enumResultAsInt) + } + return enumResult + case 177: + var enumResult: FillerEnum48? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum48(rawValue: enumResultAsInt) + } + return enumResult + case 178: + var enumResult: FillerEnum49? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum49(rawValue: enumResultAsInt) + } + return enumResult + case 179: + var enumResult: FillerEnum50? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum50(rawValue: enumResultAsInt) + } + return enumResult + case 180: + var enumResult: FillerEnum51? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum51(rawValue: enumResultAsInt) + } + return enumResult + case 181: + var enumResult: FillerEnum52? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum52(rawValue: enumResultAsInt) + } + return enumResult + case 182: + var enumResult: FillerEnum53? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum53(rawValue: enumResultAsInt) + } + return enumResult + case 183: + var enumResult: FillerEnum54? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum54(rawValue: enumResultAsInt) + } + return enumResult + case 184: + var enumResult: FillerEnum55? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum55(rawValue: enumResultAsInt) + } + return enumResult + case 185: + var enumResult: FillerEnum56? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum56(rawValue: enumResultAsInt) + } + return enumResult + case 186: + var enumResult: FillerEnum57? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum57(rawValue: enumResultAsInt) + } + return enumResult + case 187: + var enumResult: FillerEnum58? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum58(rawValue: enumResultAsInt) + } + return enumResult + case 188: + var enumResult: FillerEnum59? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum59(rawValue: enumResultAsInt) + } + return enumResult + case 189: + var enumResult: FillerEnum60? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum60(rawValue: enumResultAsInt) + } + return enumResult + case 190: + var enumResult: FillerEnum61? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum61(rawValue: enumResultAsInt) + } + return enumResult + case 191: + var enumResult: FillerEnum62? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum62(rawValue: enumResultAsInt) + } + return enumResult + case 192: + var enumResult: FillerEnum63? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum63(rawValue: enumResultAsInt) + } + return enumResult + case 193: + var enumResult: FillerEnum64? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum64(rawValue: enumResultAsInt) + } + return enumResult + case 194: + var enumResult: FillerEnum65? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum65(rawValue: enumResultAsInt) + } + return enumResult + case 195: + var enumResult: FillerEnum66? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum66(rawValue: enumResultAsInt) + } + return enumResult + case 196: + var enumResult: FillerEnum67? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum67(rawValue: enumResultAsInt) + } + return enumResult + case 197: + var enumResult: FillerEnum68? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum68(rawValue: enumResultAsInt) + } + return enumResult + case 198: + var enumResult: FillerEnum69? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum69(rawValue: enumResultAsInt) + } + return enumResult + case 199: + var enumResult: FillerEnum70? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum70(rawValue: enumResultAsInt) + } + return enumResult + case 200: + var enumResult: FillerEnum71? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum71(rawValue: enumResultAsInt) + } + return enumResult + case 201: + var enumResult: FillerEnum72? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum72(rawValue: enumResultAsInt) + } + return enumResult + case 202: + var enumResult: FillerEnum73? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum73(rawValue: enumResultAsInt) + } + return enumResult + case 203: + var enumResult: FillerEnum74? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum74(rawValue: enumResultAsInt) + } + return enumResult + case 204: + var enumResult: FillerEnum75? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum75(rawValue: enumResultAsInt) + } + return enumResult + case 205: + var enumResult: FillerEnum76? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum76(rawValue: enumResultAsInt) + } + return enumResult + case 206: + var enumResult: FillerEnum77? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum77(rawValue: enumResultAsInt) + } + return enumResult + case 207: + var enumResult: FillerEnum78? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum78(rawValue: enumResultAsInt) + } + return enumResult + case 208: + var enumResult: FillerEnum79? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum79(rawValue: enumResultAsInt) + } + return enumResult + case 209: + var enumResult: FillerEnum80? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum80(rawValue: enumResultAsInt) + } + return enumResult + case 210: + var enumResult: FillerEnum81? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum81(rawValue: enumResultAsInt) + } + return enumResult + case 211: + var enumResult: FillerEnum82? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum82(rawValue: enumResultAsInt) + } + return enumResult + case 212: + var enumResult: FillerEnum83? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum83(rawValue: enumResultAsInt) + } + return enumResult + case 213: + var enumResult: FillerEnum84? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum84(rawValue: enumResultAsInt) + } + return enumResult + case 214: + var enumResult: FillerEnum85? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum85(rawValue: enumResultAsInt) + } + return enumResult + case 215: + var enumResult: FillerEnum86? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum86(rawValue: enumResultAsInt) + } + return enumResult + case 216: + var enumResult: FillerEnum87? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum87(rawValue: enumResultAsInt) + } + return enumResult + case 217: + var enumResult: FillerEnum88? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum88(rawValue: enumResultAsInt) + } + return enumResult + case 218: + var enumResult: FillerEnum89? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum89(rawValue: enumResultAsInt) + } + return enumResult + case 219: + var enumResult: FillerEnum90? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum90(rawValue: enumResultAsInt) + } + return enumResult + case 220: + var enumResult: FillerEnum91? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum91(rawValue: enumResultAsInt) + } + return enumResult + case 221: + var enumResult: FillerEnum92? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum92(rawValue: enumResultAsInt) + } + return enumResult + case 222: + var enumResult: FillerEnum93? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum93(rawValue: enumResultAsInt) + } + return enumResult + case 223: + var enumResult: FillerEnum94? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum94(rawValue: enumResultAsInt) + } + return enumResult + case 224: + var enumResult: FillerEnum95? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum95(rawValue: enumResultAsInt) + } + return enumResult + case 225: + var enumResult: FillerEnum96? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum96(rawValue: enumResultAsInt) + } + return enumResult + case 226: + var enumResult: FillerEnum97? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum97(rawValue: enumResultAsInt) + } + return enumResult + case 227: + var enumResult: FillerEnum98? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum98(rawValue: enumResultAsInt) + } + return enumResult + case 228: + var enumResult: FillerEnum99? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum99(rawValue: enumResultAsInt) + } + return enumResult + case 229: + var enumResult: FillerEnum100? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum100(rawValue: enumResultAsInt) + } + return enumResult + case 230: + var enumResult: FillerEnum101? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum101(rawValue: enumResultAsInt) + } + return enumResult + case 231: + var enumResult: FillerEnum102? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum102(rawValue: enumResultAsInt) + } + return enumResult + case 232: + var enumResult: FillerEnum103? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum103(rawValue: enumResultAsInt) + } + return enumResult + case 233: + var enumResult: FillerEnum104? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum104(rawValue: enumResultAsInt) + } + return enumResult + case 234: + var enumResult: FillerEnum105? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum105(rawValue: enumResultAsInt) + } + return enumResult + case 235: + var enumResult: FillerEnum106? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum106(rawValue: enumResultAsInt) + } + return enumResult + case 236: + var enumResult: FillerEnum107? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum107(rawValue: enumResultAsInt) + } + return enumResult + case 237: + var enumResult: FillerEnum108? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum108(rawValue: enumResultAsInt) + } + return enumResult + case 238: + var enumResult: FillerEnum109? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum109(rawValue: enumResultAsInt) + } + return enumResult + case 239: + var enumResult: FillerEnum110? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum110(rawValue: enumResultAsInt) + } + return enumResult + case 240: + var enumResult: FillerEnum111? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum111(rawValue: enumResultAsInt) + } + return enumResult + case 241: + var enumResult: FillerEnum112? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum112(rawValue: enumResultAsInt) + } + return enumResult + case 242: + var enumResult: FillerEnum113? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum113(rawValue: enumResultAsInt) + } + return enumResult + case 243: + var enumResult: FillerEnum114? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum114(rawValue: enumResultAsInt) + } + return enumResult + case 244: + var enumResult: FillerEnum115? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum115(rawValue: enumResultAsInt) + } + return enumResult + case 245: + var enumResult: FillerEnum116? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum116(rawValue: enumResultAsInt) + } + return enumResult + case 246: + var enumResult: FillerEnum117? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum117(rawValue: enumResultAsInt) + } + return enumResult + case 247: + var enumResult: FillerEnum118? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum118(rawValue: enumResultAsInt) + } + return enumResult + case 248: + var enumResult: FillerEnum119? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum119(rawValue: enumResultAsInt) + } + return enumResult + case 249: + var enumResult: FillerEnum120? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum120(rawValue: enumResultAsInt) + } + return enumResult + case 250: + var enumResult: FillerEnum121? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum121(rawValue: enumResultAsInt) + } + return enumResult + case 251: + var enumResult: FillerEnum122? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum122(rawValue: enumResultAsInt) + } + return enumResult + case 252: + var enumResult: FillerEnum123? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum123(rawValue: enumResultAsInt) + } + return enumResult + case 253: + var enumResult: FillerEnum124? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = FillerEnum124(rawValue: enumResultAsInt) + } + return enumResult + case 254: + var enumResult: AnEnum? = nil + let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) + if let enumResultAsInt = enumResultAsInt { + enumResult = AnEnum(rawValue: enumResultAsInt) + } + return enumResult + case 255: + return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) + default: + return super.readValue(ofType: type) + } + } +} + +private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { + override func writeValue(_ value: Any) { + if let value = value as? FillerEnum0 { + super.writeByte(129) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum1 { + super.writeByte(130) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum2 { + super.writeByte(131) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum3 { + super.writeByte(132) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum4 { + super.writeByte(133) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum5 { + super.writeByte(134) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum6 { + super.writeByte(135) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum7 { + super.writeByte(136) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum8 { + super.writeByte(137) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum9 { + super.writeByte(138) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum10 { + super.writeByte(139) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum11 { + super.writeByte(140) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum12 { + super.writeByte(141) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum13 { + super.writeByte(142) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum14 { + super.writeByte(143) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum15 { + super.writeByte(144) super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum16 { + super.writeByte(145) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum17 { + super.writeByte(146) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum18 { + super.writeByte(147) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum19 { + super.writeByte(148) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum20 { + super.writeByte(149) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum21 { + super.writeByte(150) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum22 { + super.writeByte(151) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum23 { + super.writeByte(152) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum24 { + super.writeByte(153) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum25 { + super.writeByte(154) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum26 { + super.writeByte(155) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum27 { + super.writeByte(156) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum28 { + super.writeByte(157) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum29 { + super.writeByte(158) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum30 { + super.writeByte(159) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum31 { + super.writeByte(160) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum32 { + super.writeByte(161) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum33 { + super.writeByte(162) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum34 { + super.writeByte(163) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum35 { + super.writeByte(164) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum36 { + super.writeByte(165) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum37 { + super.writeByte(166) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum38 { + super.writeByte(167) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum39 { + super.writeByte(168) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum40 { + super.writeByte(169) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum41 { + super.writeByte(170) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum42 { + super.writeByte(171) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum43 { + super.writeByte(172) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum44 { + super.writeByte(173) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum45 { + super.writeByte(174) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum46 { + super.writeByte(175) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum47 { + super.writeByte(176) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum48 { + super.writeByte(177) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum49 { + super.writeByte(178) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum50 { + super.writeByte(179) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum51 { + super.writeByte(180) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum52 { + super.writeByte(181) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum53 { + super.writeByte(182) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum54 { + super.writeByte(183) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum55 { + super.writeByte(184) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum56 { + super.writeByte(185) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum57 { + super.writeByte(186) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum58 { + super.writeByte(187) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum59 { + super.writeByte(188) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum60 { + super.writeByte(189) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum61 { + super.writeByte(190) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum62 { + super.writeByte(191) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum63 { + super.writeByte(192) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum64 { + super.writeByte(193) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum65 { + super.writeByte(194) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum66 { + super.writeByte(195) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum67 { + super.writeByte(196) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum68 { + super.writeByte(197) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum69 { + super.writeByte(198) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum70 { + super.writeByte(199) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum71 { + super.writeByte(200) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum72 { + super.writeByte(201) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum73 { + super.writeByte(202) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum74 { + super.writeByte(203) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum75 { + super.writeByte(204) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum76 { + super.writeByte(205) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum77 { + super.writeByte(206) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum78 { + super.writeByte(207) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum79 { + super.writeByte(208) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum80 { + super.writeByte(209) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum81 { + super.writeByte(210) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum82 { + super.writeByte(211) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum83 { + super.writeByte(212) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum84 { + super.writeByte(213) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum85 { + super.writeByte(214) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum86 { + super.writeByte(215) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum87 { + super.writeByte(216) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum88 { + super.writeByte(217) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum89 { + super.writeByte(218) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum90 { + super.writeByte(219) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum91 { + super.writeByte(220) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum92 { + super.writeByte(221) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum93 { + super.writeByte(222) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum94 { + super.writeByte(223) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum95 { + super.writeByte(224) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum96 { + super.writeByte(225) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum97 { + super.writeByte(226) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum98 { + super.writeByte(227) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum99 { + super.writeByte(228) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum100 { + super.writeByte(229) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum101 { + super.writeByte(230) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum102 { + super.writeByte(231) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum103 { + super.writeByte(232) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum104 { + super.writeByte(233) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum105 { + super.writeByte(234) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum106 { + super.writeByte(235) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum107 { + super.writeByte(236) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum108 { + super.writeByte(237) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum109 { + super.writeByte(238) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum110 { + super.writeByte(239) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum111 { + super.writeByte(240) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum112 { + super.writeByte(241) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum113 { + super.writeByte(242) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum114 { + super.writeByte(243) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum115 { + super.writeByte(244) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum116 { + super.writeByte(245) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum117 { + super.writeByte(246) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum118 { + super.writeByte(247) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum119 { + super.writeByte(248) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum120 { + super.writeByte(249) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum121 { + super.writeByte(250) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum122 { + super.writeByte(251) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum123 { + super.writeByte(252) + super.writeValue(value.rawValue) + } else if let value = value as? FillerEnum124 { + super.writeByte(253) + super.writeValue(value.rawValue) + } else if let value = value as? AnEnum { + super.writeByte(254) + super.writeValue(value.rawValue) + } else if let value = value as? AnotherEnum { + let wrap = __pigeon_CodecOverflow(type: 0, wrapped: value.rawValue) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllTypes { - super.writeByte(130) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 1, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllNullableTypes { - super.writeByte(131) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 2, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllNullableTypesWithoutRecursion { - super.writeByte(132) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 3, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? AllClassesWrapper { - super.writeByte(133) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 4, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else if let value = value as? TestMessage { - super.writeByte(134) - super.writeValue(value.toList()) + let wrap = __pigeon_CodecOverflow(type: 5, wrapped: value.toList()) + super.writeByte(255) + super.writeValue(wrap.toList()) } else { super.writeValue(value) } @@ -593,6 +2410,8 @@ protocol HostIntegrationCoreApi { func echo(_ wrapper: AllClassesWrapper) throws -> AllClassesWrapper /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnum: AnEnum) throws -> AnEnum + /// Returns the passed enum to test serialization and deserialization. + func echo(_ anotherEnum: AnotherEnum) throws -> AnotherEnum /// Returns the default string. func echoNamedDefault(_ aString: String) throws -> String /// Returns passed in double. @@ -635,6 +2454,7 @@ protocol HostIntegrationCoreApi { /// Returns the passed map, to test serialization and deserialization. func echoNullable(_ aNullableMap: [String?: Any?]?) throws -> [String?: Any?]? func echoNullable(_ anEnum: AnEnum?) throws -> AnEnum? + func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? /// Returns passed in int. func echoOptional(_ aNullableInt: Int64?) throws -> Int64? /// Returns the passed in string. @@ -663,6 +2483,9 @@ protocol HostIntegrationCoreApi { _ aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsync(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsync( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) /// Responds with an error from an async function returning a value. func throwAsyncError(completion: @escaping (Result) -> Void) /// Responds with an error from an async void function. @@ -700,6 +2523,9 @@ protocol HostIntegrationCoreApi { _ aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) /// Returns the passed enum, to test asynchronous serialization and deserialization. func echoAsyncNullable(_ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + /// Returns the passed enum, to test asynchronous serialization and deserialization. + func echoAsyncNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) func callFlutterNoop(completion: @escaping (Result) -> Void) func callFlutterThrowError(completion: @escaping (Result) -> Void) func callFlutterThrowErrorFromVoid(completion: @escaping (Result) -> Void) @@ -728,6 +2554,8 @@ protocol HostIntegrationCoreApi { func callFlutterEcho( _ aMap: [String?: Any?], completion: @escaping (Result<[String?: Any?], Error>) -> Void) func callFlutterEcho(_ anEnum: AnEnum, completion: @escaping (Result) -> Void) + func callFlutterEcho( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void) func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) func callFlutterEchoNullable( _ anInt: Int64?, completion: @escaping (Result) -> Void) @@ -742,8 +2570,10 @@ protocol HostIntegrationCoreApi { _ list: [Any?]?, completion: @escaping (Result<[Any?]?, Error>) -> Void) func callFlutterEchoNullable( _ aMap: [String?: Any?]?, completion: @escaping (Result<[String?: Any?]?, Error>) -> Void) - func callFlutterNullableEcho( + func callFlutterEchoNullable( _ anEnum: AnEnum?, completion: @escaping (Result) -> Void) + func callFlutterEchoNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void) func callFlutterSmallApiEcho( _ aString: String, completion: @escaping (Result) -> Void) } @@ -1035,6 +2865,25 @@ class HostIntegrationCoreApiSetup { } else { echoEnumChannel.setMessageHandler(nil) } + /// Returns the passed enum to test serialization and deserialization. + let echoAnotherEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + do { + let result = try api.echo(anotherEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAnotherEnumChannel.setMessageHandler(nil) + } /// Returns the default string. let echoNamedDefaultStringChannel = FlutterBasicMessageChannel( name: @@ -1390,6 +3239,24 @@ class HostIntegrationCoreApiSetup { } else { echoNullableEnumChannel.setMessageHandler(nil) } + let echoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + do { + let result = try api.echoNullable(anotherEnumArg) + reply(wrapResult(result)) + } catch { + reply(wrapError(error)) + } + } + } else { + echoAnotherNullableEnumChannel.setMessageHandler(nil) + } /// Returns passed in int. let echoOptionalNullableIntChannel = FlutterBasicMessageChannel( name: @@ -1639,6 +3506,27 @@ class HostIntegrationCoreApiSetup { } else { echoAsyncEnumChannel.setMessageHandler(nil) } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAnotherAsyncEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherAsyncEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + api.echoAsync(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAnotherAsyncEnumChannel.setMessageHandler(nil) + } /// Responds with an error from an async function returning a value. let throwAsyncErrorChannel = FlutterBasicMessageChannel( name: @@ -1950,6 +3838,27 @@ class HostIntegrationCoreApiSetup { } else { echoAsyncNullableEnumChannel.setMessageHandler(nil) } + /// Returns the passed enum, to test asynchronous serialization and deserialization. + let echoAnotherAsyncNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + echoAnotherAsyncNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + api.echoAsyncNullable(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + echoAnotherAsyncNullableEnumChannel.setMessageHandler(nil) + } let callFlutterNoopChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop\(channelSuffix)", @@ -2277,6 +4186,26 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoEnumChannel.setMessageHandler(nil) } + let callFlutterEchoAnotherEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAnotherEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg = args[0] as! AnotherEnum + api.callFlutterEcho(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAnotherEnumChannel.setMessageHandler(nil) + } let callFlutterEchoNullableBoolChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool\(channelSuffix)", @@ -2427,7 +4356,7 @@ class HostIntegrationCoreApiSetup { callFlutterEchoNullableEnumChannel.setMessageHandler { message, reply in let args = message as! [Any?] let anEnumArg: AnEnum? = nilOrValue(args[0]) - api.callFlutterNullableEcho(anEnumArg) { result in + api.callFlutterEchoNullable(anEnumArg) { result in switch result { case .success(let res): reply(wrapResult(res)) @@ -2439,6 +4368,26 @@ class HostIntegrationCoreApiSetup { } else { callFlutterEchoNullableEnumChannel.setMessageHandler(nil) } + let callFlutterEchoAnotherNullableEnumChannel = FlutterBasicMessageChannel( + name: + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum\(channelSuffix)", + binaryMessenger: binaryMessenger, codec: codec) + if let api = api { + callFlutterEchoAnotherNullableEnumChannel.setMessageHandler { message, reply in + let args = message as! [Any?] + let anotherEnumArg: AnotherEnum? = nilOrValue(args[0]) + api.callFlutterEchoNullable(anotherEnumArg) { result in + switch result { + case .success(let res): + reply(wrapResult(res)) + case .failure(let error): + reply(wrapError(error)) + } + } + } + } else { + callFlutterEchoAnotherNullableEnumChannel.setMessageHandler(nil) + } let callFlutterSmallApiEchoStringChannel = FlutterBasicMessageChannel( name: "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString\(channelSuffix)", @@ -2518,6 +4467,9 @@ protocol FlutterIntegrationCoreApiProtocol { ) /// Returns the passed enum to test serialization and deserialization. func echo(_ anEnumArg: AnEnum, completion: @escaping (Result) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void) /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) /// Returns the passed int, to test serialization and deserialization. @@ -2542,6 +4494,10 @@ protocol FlutterIntegrationCoreApiProtocol { /// Returns the passed enum to test serialization and deserialization. func echoNullable( _ anEnumArg: AnEnum?, completion: @escaping (Result) -> Void) + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void) /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) @@ -3003,6 +4959,36 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } } + /// Returns the passed enum to test serialization and deserialization. + func echo( + _ anotherEnumArg: AnotherEnum, completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anotherEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else if listResponse[0] == nil { + completion( + .failure( + PigeonError( + code: "null-error", + message: "Flutter api returned null value for non-null return value.", details: ""))) + } else { + let result = listResponse[0] as! AnotherEnum + completion(.success(result)) + } + } + } /// Returns the passed boolean, to test serialization and deserialization. func echoNullable(_ aBoolArg: Bool?, completion: @escaping (Result) -> Void) { let channelName: String = @@ -3198,6 +5184,31 @@ class FlutterIntegrationCoreApi: FlutterIntegrationCoreApiProtocol { } } } + /// Returns the passed enum to test serialization and deserialization. + func echoNullable( + _ anotherEnumArg: AnotherEnum?, + completion: @escaping (Result) -> Void + ) { + let channelName: String = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum\(messageChannelSuffix)" + let channel = FlutterBasicMessageChannel( + name: channelName, binaryMessenger: binaryMessenger, codec: codec) + channel.sendMessage([anotherEnumArg] as [Any?]) { response in + guard let listResponse = response as? [Any?] else { + completion(.failure(createConnectionError(withChannelName: channelName))) + return + } + if listResponse.count > 1 { + let code: String = listResponse[0] as! String + let message: String? = nilOrValue(listResponse[1]) + let details: String? = nilOrValue(listResponse[2]) + completion(.failure(PigeonError(code: code, message: message, details: details))) + } else { + let result: AnotherEnum? = nilOrValue(listResponse[0]) + completion(.success(result)) + } + } + } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. func noopAsync(completion: @escaping (Result) -> Void) { diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/TestPlugin.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/TestPlugin.swift index 5a649736641..af7a7f89557 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/TestPlugin.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/TestPlugin.swift @@ -98,6 +98,10 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { return anEnum } + func echo(_ anotherEnum: AnotherEnum) throws -> AnotherEnum { + return anotherEnum + } + func extractNestedNullableString(from wrapper: AllClassesWrapper) -> String? { return wrapper.allNullableTypes.aNullableString } @@ -170,6 +174,10 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { return anEnum } + func echoNullable(_ anotherEnum: AnotherEnum?) throws -> AnotherEnum? { + return anotherEnum + } + func echoOptional(_ aNullableInt: Int64?) throws -> Int64? { return aNullableInt } @@ -253,6 +261,12 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { completion(.success(anEnum)) } + func echoAsync( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void + ) { + completion(.success(anotherEnum)) + } + func echoAsyncNullable(_ anInt: Int64?, completion: @escaping (Result) -> Void) { completion(.success(anInt)) } @@ -297,6 +311,12 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { completion(.success(anEnum)) } + func echoAsyncNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void + ) { + completion(.success(anotherEnum)) + } + func callFlutterNoop(completion: @escaping (Result) -> Void) { flutterAPI.noop { response in switch response { @@ -502,6 +522,19 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { } } + func callFlutterEcho( + _ anotherEnum: AnotherEnum, completion: @escaping (Result) -> Void + ) { + flutterAPI.echo(anotherEnum) { response in + switch response { + case .success(let res): + completion(.success(res)) + case .failure(let error): + completion(.failure(error)) + } + } + } + func callFlutterEchoNullable(_ aBool: Bool?, completion: @escaping (Result) -> Void) { flutterAPI.echoNullable(aBool) { response in @@ -593,7 +626,7 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { } } - func callFlutterNullableEcho( + func callFlutterEchoNullable( _ anEnum: AnEnum?, completion: @escaping (Result) -> Void ) { flutterAPI.echoNullable(anEnum) { response in @@ -606,6 +639,19 @@ public class TestPlugin: NSObject, FlutterPlugin, HostIntegrationCoreApi { } } + func callFlutterEchoNullable( + _ anotherEnum: AnotherEnum?, completion: @escaping (Result) -> Void + ) { + flutterAPI.echoNullable(anotherEnum) { response in + switch response { + case .success(let res): + completion(.success(res)) + case .failure(let error): + completion(.failure(error)) + } + } + } + func callFlutterSmallApiEcho( _ aString: String, completion: @escaping (Result) -> Void ) { diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index bc0f9f0b1f6..833f3708e23 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -39,9 +39,9 @@ AllTypes::AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, const std::vector& a4_byte_array, const std::vector& a8_byte_array, const std::vector& a_float_array, - const AnEnum& an_enum, const std::string& a_string, - const EncodableValue& an_object, const EncodableList& list, - const EncodableList& string_list, + const AnEnum& an_enum, const AnotherEnum& another_enum, + const std::string& a_string, const EncodableValue& an_object, + const EncodableList& list, const EncodableList& string_list, const EncodableList& int_list, const EncodableList& double_list, const EncodableList& bool_list, const EncodableMap& map) @@ -54,6 +54,7 @@ AllTypes::AllTypes(bool a_bool, int64_t an_int, int64_t an_int64, a8_byte_array_(a8_byte_array), a_float_array_(a_float_array), an_enum_(an_enum), + another_enum_(another_enum), a_string_(a_string), an_object_(an_object), list_(list), @@ -115,6 +116,12 @@ const AnEnum& AllTypes::an_enum() const { return an_enum_; } void AllTypes::set_an_enum(const AnEnum& value_arg) { an_enum_ = value_arg; } +const AnotherEnum& AllTypes::another_enum() const { return another_enum_; } + +void AllTypes::set_another_enum(const AnotherEnum& value_arg) { + another_enum_ = value_arg; +} + const std::string& AllTypes::a_string() const { return a_string_; } void AllTypes::set_a_string(std::string_view value_arg) { @@ -161,7 +168,7 @@ void AllTypes::set_map(const EncodableMap& value_arg) { map_ = value_arg; } EncodableList AllTypes::ToEncodableList() const { EncodableList list; - list.reserve(17); + list.reserve(18); list.push_back(EncodableValue(a_bool_)); list.push_back(EncodableValue(an_int_)); list.push_back(EncodableValue(an_int64_)); @@ -171,6 +178,7 @@ EncodableList AllTypes::ToEncodableList() const { list.push_back(EncodableValue(a8_byte_array_)); list.push_back(EncodableValue(a_float_array_)); list.push_back(CustomEncodableValue(an_enum_)); + list.push_back(CustomEncodableValue(another_enum_)); list.push_back(EncodableValue(a_string_)); list.push_back(an_object_); list.push_back(EncodableValue(list_)); @@ -190,10 +198,12 @@ AllTypes AllTypes::FromEncodableList(const EncodableList& list) { std::get>(list[6]), std::get>(list[7]), std::any_cast(std::get(list[8])), - std::get(list[9]), list[10], - std::get(list[11]), std::get(list[12]), - std::get(list[13]), std::get(list[14]), - std::get(list[15]), std::get(list[16])); + std::any_cast( + std::get(list[9])), + std::get(list[10]), list[11], + std::get(list[12]), std::get(list[13]), + std::get(list[14]), std::get(list[15]), + std::get(list[16]), std::get(list[17])); return decoded; } @@ -211,6 +221,7 @@ AllNullableTypes::AllNullableTypes( const EncodableList* nullable_nested_list, const EncodableMap* nullable_map_with_annotations, const EncodableMap* nullable_map_with_object, const AnEnum* a_nullable_enum, + const AnotherEnum* another_nullable_enum, const std::string* a_nullable_string, const EncodableValue* a_nullable_object, const AllNullableTypes* all_nullable_types, const EncodableList* list, @@ -256,6 +267,9 @@ AllNullableTypes::AllNullableTypes( : std::nullopt), a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) : std::nullopt), + another_nullable_enum_(another_nullable_enum ? std::optional( + *another_nullable_enum) + : std::nullopt), a_nullable_string_(a_nullable_string ? std::optional(*a_nullable_string) : std::nullopt), @@ -325,6 +339,10 @@ AllNullableTypes::AllNullableTypes(const AllNullableTypes& other) a_nullable_enum_(other.a_nullable_enum_ ? std::optional(*other.a_nullable_enum_) : std::nullopt), + another_nullable_enum_( + other.another_nullable_enum_ + ? std::optional(*other.another_nullable_enum_) + : std::nullopt), a_nullable_string_( other.a_nullable_string_ ? std::optional(*other.a_nullable_string_) @@ -370,6 +388,7 @@ AllNullableTypes& AllNullableTypes::operator=(const AllNullableTypes& other) { nullable_map_with_annotations_ = other.nullable_map_with_annotations_; nullable_map_with_object_ = other.nullable_map_with_object_; a_nullable_enum_ = other.a_nullable_enum_; + another_nullable_enum_ = other.another_nullable_enum_; a_nullable_string_ = other.a_nullable_string_; a_nullable_object_ = other.a_nullable_object_; all_nullable_types_ = @@ -559,6 +578,19 @@ void AllNullableTypes::set_a_nullable_enum(const AnEnum& value_arg) { a_nullable_enum_ = value_arg; } +const AnotherEnum* AllNullableTypes::another_nullable_enum() const { + return another_nullable_enum_ ? &(*another_nullable_enum_) : nullptr; +} + +void AllNullableTypes::set_another_nullable_enum(const AnotherEnum* value_arg) { + another_nullable_enum_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void AllNullableTypes::set_another_nullable_enum(const AnotherEnum& value_arg) { + another_nullable_enum_ = value_arg; +} + const std::string* AllNullableTypes::a_nullable_string() const { return a_nullable_string_ ? &(*a_nullable_string_) : nullptr; } @@ -692,7 +724,7 @@ void AllNullableTypes::set_map(const EncodableMap& value_arg) { EncodableList AllNullableTypes::ToEncodableList() const { EncodableList list; - list.reserve(22); + list.reserve(23); list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) : EncodableValue()); list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) @@ -723,6 +755,9 @@ EncodableList AllNullableTypes::ToEncodableList() const { : EncodableValue()); list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) : EncodableValue()); + list.push_back(another_nullable_enum_ + ? CustomEncodableValue(*another_nullable_enum_) + : EncodableValue()); list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) : EncodableValue()); list.push_back(a_nullable_object_ ? *a_nullable_object_ : EncodableValue()); @@ -802,46 +837,51 @@ AllNullableTypes AllNullableTypes::FromEncodableList( decoded.set_a_nullable_enum(std::any_cast( std::get(encodable_a_nullable_enum))); } - auto& encodable_a_nullable_string = list[12]; + auto& encodable_another_nullable_enum = list[12]; + if (!encodable_another_nullable_enum.IsNull()) { + decoded.set_another_nullable_enum(std::any_cast( + std::get(encodable_another_nullable_enum))); + } + auto& encodable_a_nullable_string = list[13]; if (!encodable_a_nullable_string.IsNull()) { decoded.set_a_nullable_string( std::get(encodable_a_nullable_string)); } - auto& encodable_a_nullable_object = list[13]; + auto& encodable_a_nullable_object = list[14]; if (!encodable_a_nullable_object.IsNull()) { decoded.set_a_nullable_object(encodable_a_nullable_object); } - auto& encodable_all_nullable_types = list[14]; + auto& encodable_all_nullable_types = list[15]; if (!encodable_all_nullable_types.IsNull()) { decoded.set_all_nullable_types(std::any_cast( std::get(encodable_all_nullable_types))); } - auto& encodable_list = list[15]; + auto& encodable_list = list[16]; if (!encodable_list.IsNull()) { decoded.set_list(std::get(encodable_list)); } - auto& encodable_string_list = list[16]; + auto& encodable_string_list = list[17]; if (!encodable_string_list.IsNull()) { decoded.set_string_list(std::get(encodable_string_list)); } - auto& encodable_int_list = list[17]; + auto& encodable_int_list = list[18]; if (!encodable_int_list.IsNull()) { decoded.set_int_list(std::get(encodable_int_list)); } - auto& encodable_double_list = list[18]; + auto& encodable_double_list = list[19]; if (!encodable_double_list.IsNull()) { decoded.set_double_list(std::get(encodable_double_list)); } - auto& encodable_bool_list = list[19]; + auto& encodable_bool_list = list[20]; if (!encodable_bool_list.IsNull()) { decoded.set_bool_list(std::get(encodable_bool_list)); } - auto& encodable_nested_class_list = list[20]; + auto& encodable_nested_class_list = list[21]; if (!encodable_nested_class_list.IsNull()) { decoded.set_nested_class_list( std::get(encodable_nested_class_list)); } - auto& encodable_map = list[21]; + auto& encodable_map = list[22]; if (!encodable_map.IsNull()) { decoded.set_map(std::get(encodable_map)); } @@ -862,6 +902,7 @@ AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion( const EncodableList* nullable_nested_list, const EncodableMap* nullable_map_with_annotations, const EncodableMap* nullable_map_with_object, const AnEnum* a_nullable_enum, + const AnotherEnum* another_nullable_enum, const std::string* a_nullable_string, const EncodableValue* a_nullable_object, const EncodableList* list, const EncodableList* string_list, const EncodableList* int_list, @@ -906,6 +947,9 @@ AllNullableTypesWithoutRecursion::AllNullableTypesWithoutRecursion( : std::nullopt), a_nullable_enum_(a_nullable_enum ? std::optional(*a_nullable_enum) : std::nullopt), + another_nullable_enum_(another_nullable_enum ? std::optional( + *another_nullable_enum) + : std::nullopt), a_nullable_string_(a_nullable_string ? std::optional(*a_nullable_string) : std::nullopt), @@ -1109,6 +1153,22 @@ void AllNullableTypesWithoutRecursion::set_a_nullable_enum( a_nullable_enum_ = value_arg; } +const AnotherEnum* AllNullableTypesWithoutRecursion::another_nullable_enum() + const { + return another_nullable_enum_ ? &(*another_nullable_enum_) : nullptr; +} + +void AllNullableTypesWithoutRecursion::set_another_nullable_enum( + const AnotherEnum* value_arg) { + another_nullable_enum_ = + value_arg ? std::optional(*value_arg) : std::nullopt; +} + +void AllNullableTypesWithoutRecursion::set_another_nullable_enum( + const AnotherEnum& value_arg) { + another_nullable_enum_ = value_arg; +} + const std::string* AllNullableTypesWithoutRecursion::a_nullable_string() const { return a_nullable_string_ ? &(*a_nullable_string_) : nullptr; } @@ -1228,7 +1288,7 @@ void AllNullableTypesWithoutRecursion::set_map(const EncodableMap& value_arg) { EncodableList AllNullableTypesWithoutRecursion::ToEncodableList() const { EncodableList list; - list.reserve(20); + list.reserve(21); list.push_back(a_nullable_bool_ ? EncodableValue(*a_nullable_bool_) : EncodableValue()); list.push_back(a_nullable_int_ ? EncodableValue(*a_nullable_int_) @@ -1259,6 +1319,9 @@ EncodableList AllNullableTypesWithoutRecursion::ToEncodableList() const { : EncodableValue()); list.push_back(a_nullable_enum_ ? CustomEncodableValue(*a_nullable_enum_) : EncodableValue()); + list.push_back(another_nullable_enum_ + ? CustomEncodableValue(*another_nullable_enum_) + : EncodableValue()); list.push_back(a_nullable_string_ ? EncodableValue(*a_nullable_string_) : EncodableValue()); list.push_back(a_nullable_object_ ? *a_nullable_object_ : EncodableValue()); @@ -1333,36 +1396,41 @@ AllNullableTypesWithoutRecursion::FromEncodableList(const EncodableList& list) { decoded.set_a_nullable_enum(std::any_cast( std::get(encodable_a_nullable_enum))); } - auto& encodable_a_nullable_string = list[12]; + auto& encodable_another_nullable_enum = list[12]; + if (!encodable_another_nullable_enum.IsNull()) { + decoded.set_another_nullable_enum(std::any_cast( + std::get(encodable_another_nullable_enum))); + } + auto& encodable_a_nullable_string = list[13]; if (!encodable_a_nullable_string.IsNull()) { decoded.set_a_nullable_string( std::get(encodable_a_nullable_string)); } - auto& encodable_a_nullable_object = list[13]; + auto& encodable_a_nullable_object = list[14]; if (!encodable_a_nullable_object.IsNull()) { decoded.set_a_nullable_object(encodable_a_nullable_object); } - auto& encodable_list = list[14]; + auto& encodable_list = list[15]; if (!encodable_list.IsNull()) { decoded.set_list(std::get(encodable_list)); } - auto& encodable_string_list = list[15]; + auto& encodable_string_list = list[16]; if (!encodable_string_list.IsNull()) { decoded.set_string_list(std::get(encodable_string_list)); } - auto& encodable_int_list = list[16]; + auto& encodable_int_list = list[17]; if (!encodable_int_list.IsNull()) { decoded.set_int_list(std::get(encodable_int_list)); } - auto& encodable_double_list = list[17]; + auto& encodable_double_list = list[18]; if (!encodable_double_list.IsNull()) { decoded.set_double_list(std::get(encodable_double_list)); } - auto& encodable_bool_list = list[18]; + auto& encodable_bool_list = list[19]; if (!encodable_bool_list.IsNull()) { decoded.set_bool_list(std::get(encodable_bool_list)); } - auto& encodable_map = list[19]; + auto& encodable_map = list[20]; if (!encodable_map.IsNull()) { decoded.set_map(std::get(encodable_map)); } @@ -1523,6 +1591,74 @@ TestMessage TestMessage::FromEncodableList(const EncodableList& list) { return decoded; } +__pigeon_CodecOverflow::__pigeon_CodecOverflow(int64_t type, + const EncodableValue& wrapped) + : type_(type), wrapped_(wrapped) {} + +int64_t __pigeon_CodecOverflow::type() const { return type_; } + +void __pigeon_CodecOverflow::set_type(int64_t value_arg) { type_ = value_arg; } + +const EncodableValue& __pigeon_CodecOverflow::wrapped() const { + return wrapped_; +} + +void __pigeon_CodecOverflow::set_wrapped(const EncodableValue& value_arg) { + wrapped_ = value_arg; +} + +EncodableList __pigeon_CodecOverflow::ToEncodableList() const { + EncodableList list; + list.reserve(2); + list.push_back(EncodableValue(type_)); + list.push_back(wrapped_); + return list; +} + +EncodableValue __pigeon_CodecOverflow::FromEncodableList( + const EncodableList& list) { + return __pigeon_CodecOverflow(list[0].LongValue(), + list[1].IsNull() ? EncodableValue() : list[1]) + .Unwrap(); +} +EncodableValue __pigeon_CodecOverflow::Unwrap() { + if (wrapped_.IsNull()) { + return EncodableValue(); + } + switch (type_) { + case 0: { + const auto& encodable_enum_arg = wrapped_; + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 1: { + return CustomEncodableValue( + AllTypes::FromEncodableList(std::get(wrapped_))); + } + case 2: { + return CustomEncodableValue(AllNullableTypes::FromEncodableList( + std::get(wrapped_))); + } + case 3: { + return CustomEncodableValue( + AllNullableTypesWithoutRecursion::FromEncodableList( + std::get(wrapped_))); + } + case 4: { + return CustomEncodableValue(AllClassesWrapper::FromEncodableList( + std::get(wrapped_))); + } + case 5: { + return CustomEncodableValue( + TestMessage::FromEncodableList(std::get(wrapped_))); + } + } + return EncodableValue(); +} PigeonCodecSerializer::PigeonCodecSerializer() {} EncodableValue PigeonCodecSerializer::ReadValueOfType( @@ -1534,172 +1670,2178 @@ EncodableValue PigeonCodecSerializer::ReadValueOfType( encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); return encodable_enum_arg.IsNull() ? EncodableValue() - : CustomEncodableValue(static_cast(enum_arg_value)); + : CustomEncodableValue( + static_cast(enum_arg_value)); } case 130: { - return CustomEncodableValue(AllTypes::FromEncodableList( - std::get(ReadValue(stream)))); + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } case 131: { - return CustomEncodableValue(AllNullableTypes::FromEncodableList( - std::get(ReadValue(stream)))); + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } case 132: { - return CustomEncodableValue( - AllNullableTypesWithoutRecursion::FromEncodableList( - std::get(ReadValue(stream)))); + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } case 133: { - return CustomEncodableValue(AllClassesWrapper::FromEncodableList( - std::get(ReadValue(stream)))); + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } case 134: { - return CustomEncodableValue(TestMessage::FromEncodableList( - std::get(ReadValue(stream)))); - } - default: - return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); - } -} - -void PigeonCodecSerializer::WriteValue( - const EncodableValue& value, flutter::ByteStreamWriter* stream) const { - if (const CustomEncodableValue* custom_value = - std::get_if(&value)) { - if (custom_value->type() == typeid(AnEnum)) { - stream->WriteByte(129); - WriteValue(EncodableValue( - static_cast(std::any_cast(*custom_value))), - stream); - return; + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - if (custom_value->type() == typeid(AllTypes)) { - stream->WriteByte(130); - WriteValue(EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), - stream); - return; + case 135: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - if (custom_value->type() == typeid(AllNullableTypes)) { - stream->WriteByte(131); - WriteValue( - EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), - stream); - return; + case 136: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - if (custom_value->type() == typeid(AllNullableTypesWithoutRecursion)) { - stream->WriteByte(132); - WriteValue(EncodableValue(std::any_cast( - *custom_value) - .ToEncodableList()), - stream); - return; + case 137: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - if (custom_value->type() == typeid(AllClassesWrapper)) { - stream->WriteByte(133); - WriteValue(EncodableValue(std::any_cast(*custom_value) - .ToEncodableList()), - stream); - return; + case 138: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - if (custom_value->type() == typeid(TestMessage)) { - stream->WriteByte(134); - WriteValue( - EncodableValue( - std::any_cast(*custom_value).ToEncodableList()), - stream); - return; + case 139: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - } - flutter::StandardCodecSerializer::WriteValue(value, stream); -} - -/// The codec used by HostIntegrationCoreApi. -const flutter::StandardMessageCodec& HostIntegrationCoreApi::GetCodec() { - return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); -} - -// Sets up an instance of `HostIntegrationCoreApi` to handle messages through -// the `binary_messenger`. -void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api) { - HostIntegrationCoreApi::SetUp(binary_messenger, api, ""); -} - -void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, - HostIntegrationCoreApi* api, - const std::string& message_channel_suffix) { - const std::string prepended_suffix = - message_channel_suffix.length() > 0 - ? std::string(".") + message_channel_suffix - : ""; - { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.noop" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const flutter::MessageReply& reply) { - try { - std::optional output = api->Noop(); - if (output.has_value()) { - reply(WrapError(output.value())); - return; - } - EncodableList wrapped; - wrapped.push_back(EncodableValue()); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); + case 140: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - } - { - BasicMessageChannel<> channel(binary_messenger, - "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoAllTypes" + - prepended_suffix, - &GetCodec()); - if (api != nullptr) { - channel.SetMessageHandler( - [api](const EncodableValue& message, - const flutter::MessageReply& reply) { - try { - const auto& args = std::get(message); - const auto& encodable_everything_arg = args.at(0); - if (encodable_everything_arg.IsNull()) { - reply(WrapError("everything_arg unexpectedly null.")); - return; - } - const auto& everything_arg = std::any_cast( - std::get(encodable_everything_arg)); - ErrorOr output = api->EchoAllTypes(everything_arg); - if (output.has_error()) { - reply(WrapError(output.error())); - return; - } - EncodableList wrapped; - wrapped.push_back( - CustomEncodableValue(std::move(output).TakeValue())); - reply(EncodableValue(std::move(wrapped))); - } catch (const std::exception& exception) { - reply(WrapError(exception.what())); - } - }); - } else { - channel.SetMessageHandler(nullptr); + case 141: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); } - } - { - BasicMessageChannel<> channel(binary_messenger, + case 142: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 143: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 144: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 145: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 146: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 147: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 148: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 149: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 150: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 151: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 152: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 153: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 154: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 155: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 156: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 157: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 158: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 159: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 160: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 161: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 162: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 163: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 164: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 165: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 166: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 167: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 168: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 169: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 170: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 171: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 172: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 173: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 174: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 175: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 176: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 177: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 178: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 179: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 180: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 181: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 182: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 183: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 184: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 185: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 186: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 187: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 188: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 189: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 190: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 191: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 192: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 193: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 194: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 195: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 196: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 197: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 198: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 199: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 200: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 201: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 202: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 203: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 204: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 205: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 206: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 207: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 208: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 209: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 210: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 211: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 212: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 213: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 214: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 215: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 216: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 217: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 218: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 219: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 220: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 221: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 222: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 223: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 224: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 225: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 226: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 227: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 228: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 229: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 230: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 231: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 232: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 233: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 234: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 235: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 236: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 237: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 238: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 239: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 240: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 241: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 242: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 243: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 244: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 245: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 246: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 247: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 248: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 249: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 250: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 251: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 252: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 253: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue( + static_cast(enum_arg_value)); + } + case 254: { + const auto& encodable_enum_arg = ReadValue(stream); + const int64_t enum_arg_value = + encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); + return encodable_enum_arg.IsNull() + ? EncodableValue() + : CustomEncodableValue(static_cast(enum_arg_value)); + } + case 255: { + return __pigeon_CodecOverflow::FromEncodableList( + std::get(ReadValue(stream))); + } + default: + return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); + } +} + +void PigeonCodecSerializer::WriteValue( + const EncodableValue& value, flutter::ByteStreamWriter* stream) const { + if (const CustomEncodableValue* custom_value = + std::get_if(&value)) { + if (custom_value->type() == typeid(FillerEnum0)) { + stream->WriteByte(129); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum1)) { + stream->WriteByte(130); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum2)) { + stream->WriteByte(131); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum3)) { + stream->WriteByte(132); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum4)) { + stream->WriteByte(133); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum5)) { + stream->WriteByte(134); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum6)) { + stream->WriteByte(135); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum7)) { + stream->WriteByte(136); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum8)) { + stream->WriteByte(137); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum9)) { + stream->WriteByte(138); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum10)) { + stream->WriteByte(139); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum11)) { + stream->WriteByte(140); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum12)) { + stream->WriteByte(141); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum13)) { + stream->WriteByte(142); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum14)) { + stream->WriteByte(143); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum15)) { + stream->WriteByte(144); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum16)) { + stream->WriteByte(145); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum17)) { + stream->WriteByte(146); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum18)) { + stream->WriteByte(147); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum19)) { + stream->WriteByte(148); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum20)) { + stream->WriteByte(149); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum21)) { + stream->WriteByte(150); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum22)) { + stream->WriteByte(151); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum23)) { + stream->WriteByte(152); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum24)) { + stream->WriteByte(153); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum25)) { + stream->WriteByte(154); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum26)) { + stream->WriteByte(155); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum27)) { + stream->WriteByte(156); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum28)) { + stream->WriteByte(157); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum29)) { + stream->WriteByte(158); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum30)) { + stream->WriteByte(159); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum31)) { + stream->WriteByte(160); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum32)) { + stream->WriteByte(161); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum33)) { + stream->WriteByte(162); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum34)) { + stream->WriteByte(163); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum35)) { + stream->WriteByte(164); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum36)) { + stream->WriteByte(165); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum37)) { + stream->WriteByte(166); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum38)) { + stream->WriteByte(167); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum39)) { + stream->WriteByte(168); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum40)) { + stream->WriteByte(169); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum41)) { + stream->WriteByte(170); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum42)) { + stream->WriteByte(171); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum43)) { + stream->WriteByte(172); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum44)) { + stream->WriteByte(173); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum45)) { + stream->WriteByte(174); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum46)) { + stream->WriteByte(175); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum47)) { + stream->WriteByte(176); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum48)) { + stream->WriteByte(177); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum49)) { + stream->WriteByte(178); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum50)) { + stream->WriteByte(179); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum51)) { + stream->WriteByte(180); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum52)) { + stream->WriteByte(181); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum53)) { + stream->WriteByte(182); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum54)) { + stream->WriteByte(183); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum55)) { + stream->WriteByte(184); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum56)) { + stream->WriteByte(185); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum57)) { + stream->WriteByte(186); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum58)) { + stream->WriteByte(187); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum59)) { + stream->WriteByte(188); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum60)) { + stream->WriteByte(189); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum61)) { + stream->WriteByte(190); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum62)) { + stream->WriteByte(191); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum63)) { + stream->WriteByte(192); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum64)) { + stream->WriteByte(193); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum65)) { + stream->WriteByte(194); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum66)) { + stream->WriteByte(195); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum67)) { + stream->WriteByte(196); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum68)) { + stream->WriteByte(197); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum69)) { + stream->WriteByte(198); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum70)) { + stream->WriteByte(199); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum71)) { + stream->WriteByte(200); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum72)) { + stream->WriteByte(201); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum73)) { + stream->WriteByte(202); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum74)) { + stream->WriteByte(203); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum75)) { + stream->WriteByte(204); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum76)) { + stream->WriteByte(205); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum77)) { + stream->WriteByte(206); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum78)) { + stream->WriteByte(207); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum79)) { + stream->WriteByte(208); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum80)) { + stream->WriteByte(209); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum81)) { + stream->WriteByte(210); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum82)) { + stream->WriteByte(211); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum83)) { + stream->WriteByte(212); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum84)) { + stream->WriteByte(213); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum85)) { + stream->WriteByte(214); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum86)) { + stream->WriteByte(215); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum87)) { + stream->WriteByte(216); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum88)) { + stream->WriteByte(217); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum89)) { + stream->WriteByte(218); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum90)) { + stream->WriteByte(219); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum91)) { + stream->WriteByte(220); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum92)) { + stream->WriteByte(221); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum93)) { + stream->WriteByte(222); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum94)) { + stream->WriteByte(223); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum95)) { + stream->WriteByte(224); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum96)) { + stream->WriteByte(225); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum97)) { + stream->WriteByte(226); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum98)) { + stream->WriteByte(227); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum99)) { + stream->WriteByte(228); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum100)) { + stream->WriteByte(229); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum101)) { + stream->WriteByte(230); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum102)) { + stream->WriteByte(231); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum103)) { + stream->WriteByte(232); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum104)) { + stream->WriteByte(233); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum105)) { + stream->WriteByte(234); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum106)) { + stream->WriteByte(235); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum107)) { + stream->WriteByte(236); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum108)) { + stream->WriteByte(237); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum109)) { + stream->WriteByte(238); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum110)) { + stream->WriteByte(239); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum111)) { + stream->WriteByte(240); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum112)) { + stream->WriteByte(241); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum113)) { + stream->WriteByte(242); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum114)) { + stream->WriteByte(243); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum115)) { + stream->WriteByte(244); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum116)) { + stream->WriteByte(245); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum117)) { + stream->WriteByte(246); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum118)) { + stream->WriteByte(247); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum119)) { + stream->WriteByte(248); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum120)) { + stream->WriteByte(249); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum121)) { + stream->WriteByte(250); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum122)) { + stream->WriteByte(251); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum123)) { + stream->WriteByte(252); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(FillerEnum124)) { + stream->WriteByte(253); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(AnEnum)) { + stream->WriteByte(254); + WriteValue(EncodableValue( + static_cast(std::any_cast(*custom_value))), + stream); + return; + } + if (custom_value->type() == typeid(AnotherEnum)) { + stream->WriteByte(255); + const auto& wrap = __pigeon_CodecOverflow( + 0, static_cast(std::any_cast(*custom_value))); + WriteValue( + EncodableValue( + std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), + stream); + return; + } + if (custom_value->type() == typeid(AllTypes)) { + stream->WriteByte(255); + const auto& wrap = __pigeon_CodecOverflow( + 1, std::any_cast(*custom_value).ToEncodableList()); + WriteValue( + EncodableValue( + std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), + stream); + return; + } + if (custom_value->type() == typeid(AllNullableTypes)) { + stream->WriteByte(255); + const auto& wrap = __pigeon_CodecOverflow( + 2, std::any_cast(*custom_value).ToEncodableList()); + WriteValue( + EncodableValue( + std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), + stream); + return; + } + if (custom_value->type() == typeid(AllNullableTypesWithoutRecursion)) { + stream->WriteByte(255); + const auto& wrap = __pigeon_CodecOverflow( + 3, std::any_cast(*custom_value) + .ToEncodableList()); + WriteValue( + EncodableValue( + std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), + stream); + return; + } + if (custom_value->type() == typeid(AllClassesWrapper)) { + stream->WriteByte(255); + const auto& wrap = __pigeon_CodecOverflow( + 4, std::any_cast(*custom_value).ToEncodableList()); + WriteValue( + EncodableValue( + std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), + stream); + return; + } + if (custom_value->type() == typeid(TestMessage)) { + stream->WriteByte(255); + const auto& wrap = __pigeon_CodecOverflow( + 5, std::any_cast(*custom_value).ToEncodableList()); + WriteValue( + EncodableValue( + std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), + stream); + return; + } + } + flutter::StandardCodecSerializer::WriteValue(value, stream); +} + +/// The codec used by HostIntegrationCoreApi. +const flutter::StandardMessageCodec& HostIntegrationCoreApi::GetCodec() { + return flutter::StandardMessageCodec::GetInstance( + &PigeonCodecSerializer::GetInstance()); +} + +// Sets up an instance of `HostIntegrationCoreApi` to handle messages through +// the `binary_messenger`. +void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api) { + HostIntegrationCoreApi::SetUp(binary_messenger, api, ""); +} + +void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, + HostIntegrationCoreApi* api, + const std::string& message_channel_suffix) { + const std::string prepended_suffix = + message_channel_suffix.length() > 0 + ? std::string(".") + message_channel_suffix + : ""; + { + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.noop" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + std::optional output = api->Noop(); + if (output.has_value()) { + reply(WrapError(output.value())); + return; + } + EncodableList wrapped; + wrapped.push_back(EncodableValue()); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoAllTypes" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_everything_arg = args.at(0); + if (encodable_everything_arg.IsNull()) { + reply(WrapError("everything_arg unexpectedly null.")); + return; + } + const auto& everything_arg = std::any_cast( + std::get(encodable_everything_arg)); + ErrorOr output = api->EchoAllTypes(everything_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests." "HostIntegrationCoreApi.throwError" + prepended_suffix, @@ -2073,7 +4215,44 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, { BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoClassWrapper" + + "HostIntegrationCoreApi.echoClassWrapper" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_wrapper_arg = args.at(0); + if (encodable_wrapper_arg.IsNull()) { + reply(WrapError("wrapper_arg unexpectedly null.")); + return; + } + const auto& wrapper_arg = std::any_cast( + std::get(encodable_wrapper_arg)); + ErrorOr output = + api->EchoClassWrapper(wrapper_arg); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } + { + BasicMessageChannel<> channel(binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests." + "HostIntegrationCoreApi.echoEnum" + prepended_suffix, &GetCodec()); if (api != nullptr) { @@ -2082,15 +4261,14 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const flutter::MessageReply& reply) { try { const auto& args = std::get(message); - const auto& encodable_wrapper_arg = args.at(0); - if (encodable_wrapper_arg.IsNull()) { - reply(WrapError("wrapper_arg unexpectedly null.")); + const auto& encodable_an_enum_arg = args.at(0); + if (encodable_an_enum_arg.IsNull()) { + reply(WrapError("an_enum_arg unexpectedly null.")); return; } - const auto& wrapper_arg = std::any_cast( - std::get(encodable_wrapper_arg)); - ErrorOr output = - api->EchoClassWrapper(wrapper_arg); + const auto& an_enum_arg = std::any_cast( + std::get(encodable_an_enum_arg)); + ErrorOr output = api->EchoEnum(an_enum_arg); if (output.has_error()) { reply(WrapError(output.error())); return; @@ -2110,7 +4288,7 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, { BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests." - "HostIntegrationCoreApi.echoEnum" + + "HostIntegrationCoreApi.echoAnotherEnum" + prepended_suffix, &GetCodec()); if (api != nullptr) { @@ -2119,14 +4297,15 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, const flutter::MessageReply& reply) { try { const auto& args = std::get(message); - const auto& encodable_an_enum_arg = args.at(0); - if (encodable_an_enum_arg.IsNull()) { - reply(WrapError("an_enum_arg unexpectedly null.")); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); return; } - const auto& an_enum_arg = std::any_cast( - std::get(encodable_an_enum_arg)); - ErrorOr output = api->EchoEnum(an_enum_arg); + const auto& another_enum_arg = std::any_cast( + std::get(encodable_another_enum_arg)); + ErrorOr output = + api->EchoAnotherEnum(another_enum_arg); if (output.has_error()) { reply(WrapError(output.error())); return; @@ -2865,6 +5044,51 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, channel.SetMessageHandler(nullptr); } } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast( + std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + ErrorOr> output = + api->EchoAnotherNullableEnum( + another_enum_arg ? &(*another_enum_arg) : nullptr); + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back( + CustomEncodableValue(std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } { BasicMessageChannel<> channel( binary_messenger, @@ -3315,6 +5539,45 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, channel.SetMessageHandler(nullptr); } } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast( + std::get(encodable_another_enum_arg)); + api->EchoAnotherAsyncEnum( + another_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } { BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests." @@ -3922,6 +6185,52 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, channel.SetMessageHandler(nullptr); } } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "echoAnotherAsyncNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast( + std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + api->EchoAnotherAsyncNullableEnum( + another_enum_arg ? &(*another_enum_arg) : nullptr, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } { BasicMessageChannel<> channel(binary_messenger, "dev.flutter.pigeon.pigeon_integration_tests." @@ -4551,6 +6860,45 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, channel.SetMessageHandler(nullptr); } } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + if (encodable_another_enum_arg.IsNull()) { + reply(WrapError("another_enum_arg unexpectedly null.")); + return; + } + const auto& another_enum_arg = std::any_cast( + std::get(encodable_another_enum_arg)); + api->CallFlutterEchoAnotherEnum( + another_enum_arg, [reply](ErrorOr&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + wrapped.push_back( + CustomEncodableValue(std::move(output).TakeValue())); + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } { BasicMessageChannel<> channel( binary_messenger, @@ -4887,6 +7235,52 @@ void HostIntegrationCoreApi::SetUp(flutter::BinaryMessenger* binary_messenger, channel.SetMessageHandler(nullptr); } } + { + BasicMessageChannel<> channel( + binary_messenger, + "dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi." + "callFlutterEchoAnotherNullableEnum" + + prepended_suffix, + &GetCodec()); + if (api != nullptr) { + channel.SetMessageHandler( + [api](const EncodableValue& message, + const flutter::MessageReply& reply) { + try { + const auto& args = std::get(message); + const auto& encodable_another_enum_arg = args.at(0); + AnotherEnum another_enum_arg_value; + const AnotherEnum* another_enum_arg = nullptr; + if (!encodable_another_enum_arg.IsNull()) { + another_enum_arg_value = std::any_cast( + std::get(encodable_another_enum_arg)); + another_enum_arg = &another_enum_arg_value; + } + api->CallFlutterEchoAnotherNullableEnum( + another_enum_arg ? &(*another_enum_arg) : nullptr, + [reply](ErrorOr>&& output) { + if (output.has_error()) { + reply(WrapError(output.error())); + return; + } + EncodableList wrapped; + auto output_optional = std::move(output).TakeValue(); + if (output_optional) { + wrapped.push_back(CustomEncodableValue( + std::move(output_optional).value())); + } else { + wrapped.push_back(EncodableValue()); + } + reply(EncodableValue(std::move(wrapped))); + }); + } catch (const std::exception& exception) { + reply(WrapError(exception.what())); + } + }); + } else { + channel.SetMessageHandler(nullptr); + } + } { BasicMessageChannel<> channel( binary_messenger, @@ -5568,6 +7962,44 @@ void FlutterIntegrationCoreApi::EchoEnum( }); } +void FlutterIntegrationCoreApi::EchoAnotherEnum( + const AnotherEnum& another_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherEnum" + + message_channel_suffix_; + BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); + EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ + CustomEncodableValue(another_enum_arg), + }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + const auto& return_value = std::any_cast( + std::get(list_return_value->at(0))); + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); +} + void FlutterIntegrationCoreApi::EchoNullableBool( const bool* a_bool_arg, std::function&& on_success, std::function&& on_error) { @@ -5876,6 +8308,50 @@ void FlutterIntegrationCoreApi::EchoNullableEnum( }); } +void FlutterIntegrationCoreApi::EchoAnotherNullableEnum( + const AnotherEnum* another_enum_arg, + std::function&& on_success, + std::function&& on_error) { + const std::string channel_name = + "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." + "echoAnotherNullableEnum" + + message_channel_suffix_; + BasicMessageChannel<> channel(binary_messenger_, channel_name, &GetCodec()); + EncodableValue encoded_api_arguments = EncodableValue(EncodableList{ + another_enum_arg ? CustomEncodableValue(*another_enum_arg) + : EncodableValue(), + }); + channel.Send( + encoded_api_arguments, [channel_name, on_success = std::move(on_success), + on_error = std::move(on_error)]( + const uint8_t* reply, size_t reply_size) { + std::unique_ptr response = + GetCodec().DecodeMessage(reply, reply_size); + const auto& encodable_return_value = *response; + const auto* list_return_value = + std::get_if(&encodable_return_value); + if (list_return_value) { + if (list_return_value->size() > 1) { + on_error( + FlutterError(std::get(list_return_value->at(0)), + std::get(list_return_value->at(1)), + list_return_value->at(2))); + } else { + AnotherEnum return_value_value; + const AnotherEnum* return_value = nullptr; + if (!list_return_value->at(0).IsNull()) { + return_value_value = std::any_cast( + std::get(list_return_value->at(0))); + return_value = &return_value_value; + } + on_success(return_value); + } + } else { + on_error(CreateConnectionError(channel_name)); + } + }); +} + void FlutterIntegrationCoreApi::NoopAsync( std::function&& on_success, std::function&& on_error) { diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 1d0b6428959..481074109d2 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -65,6 +65,256 @@ class ErrorOr { std::variant v_; }; +enum class FillerEnum0 { kFillerMember0 = 0 }; + +enum class FillerEnum1 { kFillerMember1 = 0 }; + +enum class FillerEnum2 { kFillerMember2 = 0 }; + +enum class FillerEnum3 { kFillerMember3 = 0 }; + +enum class FillerEnum4 { kFillerMember4 = 0 }; + +enum class FillerEnum5 { kFillerMember5 = 0 }; + +enum class FillerEnum6 { kFillerMember6 = 0 }; + +enum class FillerEnum7 { kFillerMember7 = 0 }; + +enum class FillerEnum8 { kFillerMember8 = 0 }; + +enum class FillerEnum9 { kFillerMember9 = 0 }; + +enum class FillerEnum10 { kFillerMember10 = 0 }; + +enum class FillerEnum11 { kFillerMember11 = 0 }; + +enum class FillerEnum12 { kFillerMember12 = 0 }; + +enum class FillerEnum13 { kFillerMember13 = 0 }; + +enum class FillerEnum14 { kFillerMember14 = 0 }; + +enum class FillerEnum15 { kFillerMember15 = 0 }; + +enum class FillerEnum16 { kFillerMember16 = 0 }; + +enum class FillerEnum17 { kFillerMember17 = 0 }; + +enum class FillerEnum18 { kFillerMember18 = 0 }; + +enum class FillerEnum19 { kFillerMember19 = 0 }; + +enum class FillerEnum20 { kFillerMember20 = 0 }; + +enum class FillerEnum21 { kFillerMember21 = 0 }; + +enum class FillerEnum22 { kFillerMember22 = 0 }; + +enum class FillerEnum23 { kFillerMember23 = 0 }; + +enum class FillerEnum24 { kFillerMember24 = 0 }; + +enum class FillerEnum25 { kFillerMember25 = 0 }; + +enum class FillerEnum26 { kFillerMember26 = 0 }; + +enum class FillerEnum27 { kFillerMember27 = 0 }; + +enum class FillerEnum28 { kFillerMember28 = 0 }; + +enum class FillerEnum29 { kFillerMember29 = 0 }; + +enum class FillerEnum30 { kFillerMember30 = 0 }; + +enum class FillerEnum31 { kFillerMember31 = 0 }; + +enum class FillerEnum32 { kFillerMember32 = 0 }; + +enum class FillerEnum33 { kFillerMember33 = 0 }; + +enum class FillerEnum34 { kFillerMember34 = 0 }; + +enum class FillerEnum35 { kFillerMember35 = 0 }; + +enum class FillerEnum36 { kFillerMember36 = 0 }; + +enum class FillerEnum37 { kFillerMember37 = 0 }; + +enum class FillerEnum38 { kFillerMember38 = 0 }; + +enum class FillerEnum39 { kFillerMember39 = 0 }; + +enum class FillerEnum40 { kFillerMember40 = 0 }; + +enum class FillerEnum41 { kFillerMember41 = 0 }; + +enum class FillerEnum42 { kFillerMember42 = 0 }; + +enum class FillerEnum43 { kFillerMember43 = 0 }; + +enum class FillerEnum44 { kFillerMember44 = 0 }; + +enum class FillerEnum45 { kFillerMember45 = 0 }; + +enum class FillerEnum46 { kFillerMember46 = 0 }; + +enum class FillerEnum47 { kFillerMember47 = 0 }; + +enum class FillerEnum48 { kFillerMember48 = 0 }; + +enum class FillerEnum49 { kFillerMember49 = 0 }; + +enum class FillerEnum50 { kFillerMember50 = 0 }; + +enum class FillerEnum51 { kFillerMember51 = 0 }; + +enum class FillerEnum52 { kFillerMember52 = 0 }; + +enum class FillerEnum53 { kFillerMember53 = 0 }; + +enum class FillerEnum54 { kFillerMember54 = 0 }; + +enum class FillerEnum55 { kFillerMember55 = 0 }; + +enum class FillerEnum56 { kFillerMember56 = 0 }; + +enum class FillerEnum57 { kFillerMember57 = 0 }; + +enum class FillerEnum58 { kFillerMember58 = 0 }; + +enum class FillerEnum59 { kFillerMember59 = 0 }; + +enum class FillerEnum60 { kFillerMember60 = 0 }; + +enum class FillerEnum61 { kFillerMember61 = 0 }; + +enum class FillerEnum62 { kFillerMember62 = 0 }; + +enum class FillerEnum63 { kFillerMember63 = 0 }; + +enum class FillerEnum64 { kFillerMember64 = 0 }; + +enum class FillerEnum65 { kFillerMember65 = 0 }; + +enum class FillerEnum66 { kFillerMember66 = 0 }; + +enum class FillerEnum67 { kFillerMember67 = 0 }; + +enum class FillerEnum68 { kFillerMember68 = 0 }; + +enum class FillerEnum69 { kFillerMember69 = 0 }; + +enum class FillerEnum70 { kFillerMember70 = 0 }; + +enum class FillerEnum71 { kFillerMember71 = 0 }; + +enum class FillerEnum72 { kFillerMember72 = 0 }; + +enum class FillerEnum73 { kFillerMember73 = 0 }; + +enum class FillerEnum74 { kFillerMember74 = 0 }; + +enum class FillerEnum75 { kFillerMember75 = 0 }; + +enum class FillerEnum76 { kFillerMember76 = 0 }; + +enum class FillerEnum77 { kFillerMember77 = 0 }; + +enum class FillerEnum78 { kFillerMember78 = 0 }; + +enum class FillerEnum79 { kFillerMember79 = 0 }; + +enum class FillerEnum80 { kFillerMember80 = 0 }; + +enum class FillerEnum81 { kFillerMember81 = 0 }; + +enum class FillerEnum82 { kFillerMember82 = 0 }; + +enum class FillerEnum83 { kFillerMember83 = 0 }; + +enum class FillerEnum84 { kFillerMember84 = 0 }; + +enum class FillerEnum85 { kFillerMember85 = 0 }; + +enum class FillerEnum86 { kFillerMember86 = 0 }; + +enum class FillerEnum87 { kFillerMember87 = 0 }; + +enum class FillerEnum88 { kFillerMember88 = 0 }; + +enum class FillerEnum89 { kFillerMember89 = 0 }; + +enum class FillerEnum90 { kFillerMember90 = 0 }; + +enum class FillerEnum91 { kFillerMember91 = 0 }; + +enum class FillerEnum92 { kFillerMember92 = 0 }; + +enum class FillerEnum93 { kFillerMember93 = 0 }; + +enum class FillerEnum94 { kFillerMember94 = 0 }; + +enum class FillerEnum95 { kFillerMember95 = 0 }; + +enum class FillerEnum96 { kFillerMember96 = 0 }; + +enum class FillerEnum97 { kFillerMember97 = 0 }; + +enum class FillerEnum98 { kFillerMember98 = 0 }; + +enum class FillerEnum99 { kFillerMember99 = 0 }; + +enum class FillerEnum100 { kFillerMember100 = 0 }; + +enum class FillerEnum101 { kFillerMember101 = 0 }; + +enum class FillerEnum102 { kFillerMember102 = 0 }; + +enum class FillerEnum103 { kFillerMember103 = 0 }; + +enum class FillerEnum104 { kFillerMember104 = 0 }; + +enum class FillerEnum105 { kFillerMember105 = 0 }; + +enum class FillerEnum106 { kFillerMember106 = 0 }; + +enum class FillerEnum107 { kFillerMember107 = 0 }; + +enum class FillerEnum108 { kFillerMember108 = 0 }; + +enum class FillerEnum109 { kFillerMember109 = 0 }; + +enum class FillerEnum110 { kFillerMember110 = 0 }; + +enum class FillerEnum111 { kFillerMember111 = 0 }; + +enum class FillerEnum112 { kFillerMember112 = 0 }; + +enum class FillerEnum113 { kFillerMember113 = 0 }; + +enum class FillerEnum114 { kFillerMember114 = 0 }; + +enum class FillerEnum115 { kFillerMember115 = 0 }; + +enum class FillerEnum116 { kFillerMember116 = 0 }; + +enum class FillerEnum117 { kFillerMember117 = 0 }; + +enum class FillerEnum118 { kFillerMember118 = 0 }; + +enum class FillerEnum119 { kFillerMember119 = 0 }; + +enum class FillerEnum120 { kFillerMember120 = 0 }; + +enum class FillerEnum121 { kFillerMember121 = 0 }; + +enum class FillerEnum122 { kFillerMember122 = 0 }; + +enum class FillerEnum123 { kFillerMember123 = 0 }; + +enum class FillerEnum124 { kFillerMember124 = 0 }; + enum class AnEnum { kOne = 0, kTwo = 1, @@ -73,6 +323,8 @@ enum class AnEnum { kFourHundredTwentyTwo = 4 }; +enum class AnotherEnum { kJustInCase = 0 }; + // A class containing all supported types. // // Generated class from Pigeon that represents data sent in messages. @@ -84,7 +336,8 @@ class AllTypes { const std::vector& a4_byte_array, const std::vector& a8_byte_array, const std::vector& a_float_array, - const AnEnum& an_enum, const std::string& a_string, + const AnEnum& an_enum, const AnotherEnum& another_enum, + const std::string& a_string, const flutter::EncodableValue& an_object, const flutter::EncodableList& list, const flutter::EncodableList& string_list, @@ -120,6 +373,9 @@ class AllTypes { const AnEnum& an_enum() const; void set_an_enum(const AnEnum& value_arg); + const AnotherEnum& another_enum() const; + void set_another_enum(const AnotherEnum& value_arg); + const std::string& a_string() const; void set_a_string(std::string_view value_arg); @@ -147,6 +403,7 @@ class AllTypes { private: static AllTypes FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; + friend class __pigeon_CodecOverflow; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -164,6 +421,7 @@ class AllTypes { std::vector a8_byte_array_; std::vector a_float_array_; AnEnum an_enum_; + AnotherEnum another_enum_; std::string a_string_; flutter::EncodableValue an_object_; flutter::EncodableList list_; @@ -193,7 +451,8 @@ class AllNullableTypes { const flutter::EncodableList* nullable_nested_list, const flutter::EncodableMap* nullable_map_with_annotations, const flutter::EncodableMap* nullable_map_with_object, - const AnEnum* a_nullable_enum, const std::string* a_nullable_string, + const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, const flutter::EncodableValue* a_nullable_object, const AllNullableTypes* all_nullable_types, const flutter::EncodableList* list, @@ -259,6 +518,10 @@ class AllNullableTypes { void set_a_nullable_enum(const AnEnum* value_arg); void set_a_nullable_enum(const AnEnum& value_arg); + const AnotherEnum* another_nullable_enum() const; + void set_another_nullable_enum(const AnotherEnum* value_arg); + void set_another_nullable_enum(const AnotherEnum& value_arg); + const std::string* a_nullable_string() const; void set_a_nullable_string(const std::string_view* value_arg); void set_a_nullable_string(std::string_view value_arg); @@ -302,6 +565,7 @@ class AllNullableTypes { private: static AllNullableTypes FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; + friend class __pigeon_CodecOverflow; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -322,6 +586,7 @@ class AllNullableTypes { std::optional nullable_map_with_annotations_; std::optional nullable_map_with_object_; std::optional a_nullable_enum_; + std::optional another_nullable_enum_; std::optional a_nullable_string_; std::optional a_nullable_object_; std::unique_ptr all_nullable_types_; @@ -355,7 +620,8 @@ class AllNullableTypesWithoutRecursion { const flutter::EncodableList* nullable_nested_list, const flutter::EncodableMap* nullable_map_with_annotations, const flutter::EncodableMap* nullable_map_with_object, - const AnEnum* a_nullable_enum, const std::string* a_nullable_string, + const AnEnum* a_nullable_enum, const AnotherEnum* another_nullable_enum, + const std::string* a_nullable_string, const flutter::EncodableValue* a_nullable_object, const flutter::EncodableList* list, const flutter::EncodableList* string_list, @@ -414,6 +680,10 @@ class AllNullableTypesWithoutRecursion { void set_a_nullable_enum(const AnEnum* value_arg); void set_a_nullable_enum(const AnEnum& value_arg); + const AnotherEnum* another_nullable_enum() const; + void set_another_nullable_enum(const AnotherEnum* value_arg); + void set_another_nullable_enum(const AnotherEnum& value_arg); + const std::string* a_nullable_string() const; void set_a_nullable_string(const std::string_view* value_arg); void set_a_nullable_string(std::string_view value_arg); @@ -450,6 +720,7 @@ class AllNullableTypesWithoutRecursion { static AllNullableTypesWithoutRecursion FromEncodableList( const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; + friend class __pigeon_CodecOverflow; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -470,6 +741,7 @@ class AllNullableTypesWithoutRecursion { std::optional nullable_map_with_annotations_; std::optional nullable_map_with_object_; std::optional a_nullable_enum_; + std::optional another_nullable_enum_; std::optional a_nullable_string_; std::optional a_nullable_object_; std::optional list_; @@ -521,6 +793,7 @@ class AllClassesWrapper { static AllClassesWrapper FromEncodableList( const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; + friend class __pigeon_CodecOverflow; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; friend class HostTrivialApi; @@ -552,6 +825,7 @@ class TestMessage { private: static TestMessage FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; + friend class __pigeon_CodecOverflow; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; friend class HostTrivialApi; @@ -562,6 +836,35 @@ class TestMessage { std::optional test_list_; }; +// Generated class from Pigeon that represents data sent in messages. +class __pigeon_CodecOverflow { + public: + // Constructs an object setting all fields. + explicit __pigeon_CodecOverflow(int64_t type, + const flutter::EncodableValue& wrapped); + + int64_t type() const; + void set_type(int64_t value_arg); + + const flutter::EncodableValue& wrapped() const; + void set_wrapped(const flutter::EncodableValue& value_arg); + + private: + static flutter::EncodableValue FromEncodableList( + const flutter::EncodableList& list); + flutter::EncodableList ToEncodableList() const; + flutter::EncodableValue Unwrap(); + friend class HostIntegrationCoreApi; + friend class FlutterIntegrationCoreApi; + friend class HostTrivialApi; + friend class HostSmallApi; + friend class FlutterSmallApi; + friend class PigeonCodecSerializer; + friend class CoreTestsTest; + int64_t type_; + flutter::EncodableValue wrapped_; +}; + class PigeonCodecSerializer : public flutter::StandardCodecSerializer { public: PigeonCodecSerializer(); @@ -626,6 +929,9 @@ class HostIntegrationCoreApi { const AllClassesWrapper& wrapper) = 0; // Returns the passed enum to test serialization and deserialization. virtual ErrorOr EchoEnum(const AnEnum& an_enum) = 0; + // Returns the passed enum to test serialization and deserialization. + virtual ErrorOr EchoAnotherEnum( + const AnotherEnum& another_enum) = 0; // Returns the default string. virtual ErrorOr EchoNamedDefaultString( const std::string& a_string) = 0; @@ -683,6 +989,8 @@ class HostIntegrationCoreApi { const flutter::EncodableMap* a_nullable_map) = 0; virtual ErrorOr> EchoNullableEnum( const AnEnum* an_enum) = 0; + virtual ErrorOr> EchoAnotherNullableEnum( + const AnotherEnum* another_enum) = 0; // Returns passed in int. virtual ErrorOr> EchoOptionalNullableInt( const int64_t* a_nullable_int) = 0; @@ -729,6 +1037,11 @@ class HostIntegrationCoreApi { virtual void EchoAsyncEnum( const AnEnum& an_enum, std::function reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and + // deserialization. + virtual void EchoAnotherAsyncEnum( + const AnotherEnum& another_enum, + std::function reply)> result) = 0; // Responds with an error from an async function returning a value. virtual void ThrowAsyncError( std::function> reply)> @@ -799,6 +1112,12 @@ class HostIntegrationCoreApi { virtual void EchoAsyncNullableEnum( const AnEnum* an_enum, std::function> reply)> result) = 0; + // Returns the passed enum, to test asynchronous serialization and + // deserialization. + virtual void EchoAnotherAsyncNullableEnum( + const AnotherEnum* another_enum, + std::function> reply)> + result) = 0; virtual void CallFlutterNoop( std::function reply)> result) = 0; virtual void CallFlutterThrowError( @@ -848,6 +1167,9 @@ class HostIntegrationCoreApi { virtual void CallFlutterEchoEnum( const AnEnum& an_enum, std::function reply)> result) = 0; + virtual void CallFlutterEchoAnotherEnum( + const AnotherEnum& another_enum, + std::function reply)> result) = 0; virtual void CallFlutterEchoNullableBool( const bool* a_bool, std::function> reply)> result) = 0; @@ -876,6 +1198,10 @@ class HostIntegrationCoreApi { virtual void CallFlutterEchoNullableEnum( const AnEnum* an_enum, std::function> reply)> result) = 0; + virtual void CallFlutterEchoAnotherNullableEnum( + const AnotherEnum* another_enum, + std::function> reply)> + result) = 0; virtual void CallFlutterSmallApiEchoString( const std::string& a_string, std::function reply)> result) = 0; @@ -977,6 +1303,10 @@ class FlutterIntegrationCoreApi { void EchoEnum(const AnEnum& an_enum, std::function&& on_success, std::function&& on_error); + // Returns the passed enum to test serialization and deserialization. + void EchoAnotherEnum(const AnotherEnum& another_enum, + std::function&& on_success, + std::function&& on_error); // Returns the passed boolean, to test serialization and deserialization. void EchoNullableBool(const bool* a_bool, std::function&& on_success, @@ -1012,6 +1342,11 @@ class FlutterIntegrationCoreApi { void EchoNullableEnum(const AnEnum* an_enum, std::function&& on_success, std::function&& on_error); + // Returns the passed enum to test serialization and deserialization. + void EchoAnotherNullableEnum( + const AnotherEnum* another_enum, + std::function&& on_success, + std::function&& on_error); // A no-op function taking no arguments and returning no value, to sanity // test basic asynchronous calling. void NoopAsync(std::function&& on_success, diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp index 0dd3e13ce19..e8f77369928 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.cpp @@ -21,6 +21,7 @@ using core_tests_pigeontest::AllNullableTypes; using core_tests_pigeontest::AllNullableTypesWithoutRecursion; using core_tests_pigeontest::AllTypes; using core_tests_pigeontest::AnEnum; +using core_tests_pigeontest::AnotherEnum; using core_tests_pigeontest::ErrorOr; using core_tests_pigeontest::FlutterError; using core_tests_pigeontest::FlutterIntegrationCoreApi; @@ -151,6 +152,11 @@ ErrorOr TestPlugin::EchoClassWrapper( ErrorOr TestPlugin::EchoEnum(const AnEnum& an_enum) { return an_enum; } +ErrorOr TestPlugin::EchoAnotherEnum( + const AnotherEnum& another_enum) { + return another_enum; +} + ErrorOr TestPlugin::EchoNamedDefaultString( const std::string& a_string) { return a_string; @@ -292,6 +298,14 @@ ErrorOr> TestPlugin::EchoNullableEnum( return *an_enum; } +ErrorOr> TestPlugin::EchoAnotherNullableEnum( + const AnotherEnum* another_enum) { + if (!another_enum) { + return std::nullopt; + } + return *another_enum; +} + ErrorOr> TestPlugin::EchoOptionalNullableInt( const int64_t* a_nullable_int) { if (!a_nullable_int) { @@ -383,6 +397,12 @@ void TestPlugin::EchoAsyncEnum( result(an_enum); } +void TestPlugin::EchoAnotherAsyncEnum( + const AnotherEnum& another_enum, + std::function reply)> result) { + result(another_enum); +} + void TestPlugin::EchoAsyncNullableAllNullableTypes( const AllNullableTypes* everything, std::function> reply)> @@ -457,6 +477,13 @@ void TestPlugin::EchoAsyncNullableEnum( result(an_enum ? std::optional(*an_enum) : std::nullopt); } +void TestPlugin::EchoAnotherAsyncNullableEnum( + const AnotherEnum* another_enum, + std::function> reply)> result) { + result(another_enum ? std::optional(*another_enum) + : std::nullopt); +} + void TestPlugin::CallFlutterNoop( std::function reply)> result) { flutter_api_->Noop([result]() { result(std::nullopt); }, @@ -595,6 +622,14 @@ void TestPlugin::CallFlutterEchoEnum( [result](const FlutterError& error) { result(error); }); } +void TestPlugin::CallFlutterEchoAnotherEnum( + const AnotherEnum& another_enum, + std::function reply)> result) { + flutter_api_->EchoAnotherEnum( + another_enum, [result](const AnotherEnum& echo) { result(echo); }, + [result](const FlutterError& error) { result(error); }); +} + void TestPlugin::CallFlutterEchoNullableBool( const bool* a_bool, std::function> reply)> result) { @@ -685,6 +720,17 @@ void TestPlugin::CallFlutterEchoNullableEnum( [result](const FlutterError& error) { result(error); }); } +void TestPlugin::CallFlutterEchoAnotherNullableEnum( + const AnotherEnum* another_enum, + std::function> reply)> result) { + flutter_api_->EchoAnotherNullableEnum( + another_enum, + [result](const AnotherEnum* echo) { + result(echo ? std::optional(*echo) : std::nullopt); + }, + [result](const FlutterError& error) { result(error); }); +} + void TestPlugin::CallFlutterSmallApiEchoString( const std::string& a_string, std::function reply)> result) { diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h index 0123df09022..deb0ab62cb4 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/test_plugin.h @@ -88,6 +88,9 @@ class TestPlugin : public flutter::Plugin, const core_tests_pigeontest::AllClassesWrapper& wrapper) override; core_tests_pigeontest::ErrorOr EchoEnum( const core_tests_pigeontest::AnEnum& an_enum) override; + core_tests_pigeontest::ErrorOr + EchoAnotherEnum( + const core_tests_pigeontest::AnotherEnum& another_enum) override; core_tests_pigeontest::ErrorOr EchoNamedDefaultString( const std::string& a_string) override; core_tests_pigeontest::ErrorOr EchoOptionalDefaultDouble( @@ -127,6 +130,10 @@ class TestPlugin : public flutter::Plugin, EchoNullableMap(const flutter::EncodableMap* a_nullable_map) override; core_tests_pigeontest::ErrorOr> EchoNullableEnum(const core_tests_pigeontest::AnEnum* an_enum) override; + core_tests_pigeontest::ErrorOr< + std::optional> + EchoAnotherNullableEnum( + const core_tests_pigeontest::AnotherEnum* another_enum) override; core_tests_pigeontest::ErrorOr> EchoOptionalNullableInt(const int64_t* a_nullable_int) override; core_tests_pigeontest::ErrorOr> @@ -208,6 +215,12 @@ class TestPlugin : public flutter::Plugin, std::function reply)> result) override; + void EchoAnotherAsyncEnum( + const core_tests_pigeontest::AnotherEnum& another_enum, + std::function + reply)> + result) override; void EchoAsyncNullableInt( const int64_t* an_int, std::function< @@ -258,6 +271,12 @@ class TestPlugin : public flutter::Plugin, std::optional> reply)> result) override; + void EchoAnotherAsyncNullableEnum( + const core_tests_pigeontest::AnotherEnum* another_enum, + std::function> + reply)> + result) override; void CallFlutterNoop( std::function< void(std::optional reply)> @@ -341,6 +360,12 @@ class TestPlugin : public flutter::Plugin, std::function reply)> result) override; + void CallFlutterEchoAnotherEnum( + const core_tests_pigeontest::AnotherEnum& another_enum, + std::function + reply)> + result) override; void CallFlutterEchoNullableBool( const bool* a_bool, std::function< @@ -385,6 +410,12 @@ class TestPlugin : public flutter::Plugin, std::optional> reply)> result) override; + void CallFlutterEchoAnotherNullableEnum( + const core_tests_pigeontest::AnotherEnum* another_enum, + std::function> + reply)> + result) override; void CallFlutterSmallApiEchoString( const std::string& a_string, std::function reply)> From 1018a36aba6050ac785dbde9da6544cb64ab3239 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 5 Aug 2024 01:09:30 -0700 Subject: [PATCH 04/14] learning about gobject --- .../pigeon/platform_tests/test_plugin/linux/test_plugin.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index 095104a0b28..2ca596060d7 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -1795,6 +1795,7 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .echo_map = echo_map, .echo_class_wrapper = echo_class_wrapper, .echo_enum = echo_enum, + .echo_another_enum = echo_another_enum, .echo_named_default_string = echo_named_default_string, .echo_optional_default_double = echo_optional_default_double, .echo_required_int = echo_required_int, @@ -1815,6 +1816,7 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .echo_nullable_list = echo_nullable_list, .echo_nullable_map = echo_nullable_map, .echo_nullable_enum = echo_nullable_enum, + .echo_another_nullable_enum = echo_another_nullable_enum, .echo_optional_nullable_int = echo_optional_nullable_int, .echo_named_nullable_string = echo_named_nullable_string, .noop_async = noop_async, @@ -1827,6 +1829,7 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .echo_async_list = echo_async_list, .echo_async_map = echo_async_map, .echo_async_enum = echo_async_enum, + .echo_another_async_enum = echo_another_async_enum, .throw_async_error = throw_async_error, .throw_async_error_from_void = throw_async_error_from_void, .throw_async_flutter_error = throw_async_flutter_error, @@ -1844,6 +1847,7 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .echo_async_nullable_list = echo_async_nullable_list, .echo_async_nullable_map = echo_async_nullable_map, .echo_async_nullable_enum = echo_async_nullable_enum, + .echo_another_async_nullable_enum = echo_another_async_nullable_enum, .call_flutter_noop = call_flutter_noop, .call_flutter_throw_error = call_flutter_throw_error, .call_flutter_throw_error_from_void = call_flutter_throw_error_from_void, @@ -1864,6 +1868,7 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .call_flutter_echo_list = call_flutter_echo_list, .call_flutter_echo_map = call_flutter_echo_map, .call_flutter_echo_enum = call_flutter_echo_enum, + .call_flutter_echo_another_enum = call_flutter_echo_another_enum, .call_flutter_echo_nullable_bool = call_flutter_echo_nullable_bool, .call_flutter_echo_nullable_int = call_flutter_echo_nullable_int, .call_flutter_echo_nullable_double = call_flutter_echo_nullable_double, From e8edcf0652faca27f621426e47e68fa2647a9697 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 5 Aug 2024 01:31:24 -0700 Subject: [PATCH 05/14] missed one --- packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index 2ca596060d7..62d85b90732 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -1878,6 +1878,7 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .call_flutter_echo_nullable_list = call_flutter_echo_nullable_list, .call_flutter_echo_nullable_map = call_flutter_echo_nullable_map, .call_flutter_echo_nullable_enum = call_flutter_echo_nullable_enum, + .call_flutter_echo_another_nullable_enum = call_flutter_echo_another_nullable_enum, .call_flutter_small_api_echo_string = call_flutter_small_api_echo_string}; static void echo(const gchar* a_string, From f738db2d6b9ec863555bd95da08fc1906e3eecba Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 5 Aug 2024 01:49:35 -0700 Subject: [PATCH 06/14] format --- .../CoreTests.java | 5179 +++++------------ .../ios/Classes/CoreTests.gen.h | 1258 ---- .../ios/Classes/CoreTests.gen.m | 3349 ++--------- .../macos/Classes/CoreTests.gen.h | 1258 ---- .../macos/Classes/CoreTests.gen.m | 3340 ++--------- .../lib/src/generated/core_tests.gen.dart | 1338 +---- .../com/example/test_plugin/CoreTests.gen.kt | 2934 ++-------- .../ios/Classes/CoreTests.gen.swift | 1851 +----- .../linux/pigeon/core_tests.gen.cc | 3681 +----------- .../test_plugin/linux/pigeon/core_tests.gen.h | 1125 ---- .../test_plugin/linux/test_plugin.cc | 3 +- .../macos/Classes/CoreTests.gen.swift | 1851 +----- .../windows/pigeon/core_tests.gen.cpp | 2182 +------ .../windows/pigeon/core_tests.gen.h | 284 - 14 files changed, 2913 insertions(+), 26720 deletions(-) diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index eabc41a05be..8eb79662f71 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -75,1522 +75,1777 @@ protected static FlutterError createConnectionError(@NonNull String channelName) @Retention(CLASS) @interface CanIgnoreReturnValue {} - public enum FillerEnum0 { - FILLER_MEMBER0(0); + public enum AnEnum { + ONE(0), + TWO(1), + THREE(2), + FORTY_TWO(3), + FOUR_HUNDRED_TWENTY_TWO(4); final int index; - FillerEnum0(final int index) { + AnEnum(final int index) { this.index = index; } } - public enum FillerEnum1 { - FILLER_MEMBER1(0); + public enum AnotherEnum { + JUST_IN_CASE(0); final int index; - FillerEnum1(final int index) { + AnotherEnum(final int index) { this.index = index; } } - public enum FillerEnum2 { - FILLER_MEMBER2(0); - - final int index; + /** + * A class containing all supported types. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllTypes { + private @NonNull Boolean aBool; - FillerEnum2(final int index) { - this.index = index; + public @NonNull Boolean getABool() { + return aBool; } - } - - public enum FillerEnum3 { - FILLER_MEMBER3(0); - final int index; - - FillerEnum3(final int index) { - this.index = index; + public void setABool(@NonNull Boolean setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aBool\" is null."); + } + this.aBool = setterArg; } - } - - public enum FillerEnum4 { - FILLER_MEMBER4(0); - final int index; + private @NonNull Long anInt; - FillerEnum4(final int index) { - this.index = index; + public @NonNull Long getAnInt() { + return anInt; } - } - public enum FillerEnum5 { - FILLER_MEMBER5(0); - - final int index; - - FillerEnum5(final int index) { - this.index = index; + public void setAnInt(@NonNull Long setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anInt\" is null."); + } + this.anInt = setterArg; } - } - public enum FillerEnum6 { - FILLER_MEMBER6(0); - - final int index; + private @NonNull Long anInt64; - FillerEnum6(final int index) { - this.index = index; + public @NonNull Long getAnInt64() { + return anInt64; } - } - - public enum FillerEnum7 { - FILLER_MEMBER7(0); - - final int index; - FillerEnum7(final int index) { - this.index = index; + public void setAnInt64(@NonNull Long setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anInt64\" is null."); + } + this.anInt64 = setterArg; } - } - - public enum FillerEnum8 { - FILLER_MEMBER8(0); - final int index; + private @NonNull Double aDouble; - FillerEnum8(final int index) { - this.index = index; + public @NonNull Double getADouble() { + return aDouble; } - } - - public enum FillerEnum9 { - FILLER_MEMBER9(0); - - final int index; - FillerEnum9(final int index) { - this.index = index; + public void setADouble(@NonNull Double setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aDouble\" is null."); + } + this.aDouble = setterArg; } - } - public enum FillerEnum10 { - FILLER_MEMBER10(0); - - final int index; + private @NonNull byte[] aByteArray; - FillerEnum10(final int index) { - this.index = index; + public @NonNull byte[] getAByteArray() { + return aByteArray; } - } - public enum FillerEnum11 { - FILLER_MEMBER11(0); + public void setAByteArray(@NonNull byte[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aByteArray\" is null."); + } + this.aByteArray = setterArg; + } - final int index; + private @NonNull int[] a4ByteArray; - FillerEnum11(final int index) { - this.index = index; + public @NonNull int[] getA4ByteArray() { + return a4ByteArray; } - } - public enum FillerEnum12 { - FILLER_MEMBER12(0); + public void setA4ByteArray(@NonNull int[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"a4ByteArray\" is null."); + } + this.a4ByteArray = setterArg; + } - final int index; + private @NonNull long[] a8ByteArray; - FillerEnum12(final int index) { - this.index = index; + public @NonNull long[] getA8ByteArray() { + return a8ByteArray; } - } - public enum FillerEnum13 { - FILLER_MEMBER13(0); + public void setA8ByteArray(@NonNull long[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"a8ByteArray\" is null."); + } + this.a8ByteArray = setterArg; + } - final int index; + private @NonNull double[] aFloatArray; - FillerEnum13(final int index) { - this.index = index; + public @NonNull double[] getAFloatArray() { + return aFloatArray; } - } - public enum FillerEnum14 { - FILLER_MEMBER14(0); + public void setAFloatArray(@NonNull double[] setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aFloatArray\" is null."); + } + this.aFloatArray = setterArg; + } - final int index; + private @NonNull AnEnum anEnum; - FillerEnum14(final int index) { - this.index = index; + public @NonNull AnEnum getAnEnum() { + return anEnum; } - } - public enum FillerEnum15 { - FILLER_MEMBER15(0); + public void setAnEnum(@NonNull AnEnum setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anEnum\" is null."); + } + this.anEnum = setterArg; + } - final int index; + private @NonNull AnotherEnum anotherEnum; - FillerEnum15(final int index) { - this.index = index; + public @NonNull AnotherEnum getAnotherEnum() { + return anotherEnum; } - } - public enum FillerEnum16 { - FILLER_MEMBER16(0); + public void setAnotherEnum(@NonNull AnotherEnum setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anotherEnum\" is null."); + } + this.anotherEnum = setterArg; + } - final int index; + private @NonNull String aString; - FillerEnum16(final int index) { - this.index = index; + public @NonNull String getAString() { + return aString; } - } - public enum FillerEnum17 { - FILLER_MEMBER17(0); + public void setAString(@NonNull String setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"aString\" is null."); + } + this.aString = setterArg; + } - final int index; + private @NonNull Object anObject; - FillerEnum17(final int index) { - this.index = index; + public @NonNull Object getAnObject() { + return anObject; } - } - public enum FillerEnum18 { - FILLER_MEMBER18(0); + public void setAnObject(@NonNull Object setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"anObject\" is null."); + } + this.anObject = setterArg; + } - final int index; + private @NonNull List list; - FillerEnum18(final int index) { - this.index = index; + public @NonNull List getList() { + return list; } - } - public enum FillerEnum19 { - FILLER_MEMBER19(0); + public void setList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"list\" is null."); + } + this.list = setterArg; + } - final int index; + private @NonNull List stringList; - FillerEnum19(final int index) { - this.index = index; + public @NonNull List getStringList() { + return stringList; } - } - public enum FillerEnum20 { - FILLER_MEMBER20(0); + public void setStringList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"stringList\" is null."); + } + this.stringList = setterArg; + } - final int index; + private @NonNull List intList; - FillerEnum20(final int index) { - this.index = index; + public @NonNull List getIntList() { + return intList; } - } - public enum FillerEnum21 { - FILLER_MEMBER21(0); + public void setIntList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"intList\" is null."); + } + this.intList = setterArg; + } - final int index; + private @NonNull List doubleList; - FillerEnum21(final int index) { - this.index = index; + public @NonNull List getDoubleList() { + return doubleList; } - } - public enum FillerEnum22 { - FILLER_MEMBER22(0); + public void setDoubleList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"doubleList\" is null."); + } + this.doubleList = setterArg; + } - final int index; + private @NonNull List boolList; - FillerEnum22(final int index) { - this.index = index; + public @NonNull List getBoolList() { + return boolList; } - } - public enum FillerEnum23 { - FILLER_MEMBER23(0); + public void setBoolList(@NonNull List setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"boolList\" is null."); + } + this.boolList = setterArg; + } - final int index; + private @NonNull Map map; - FillerEnum23(final int index) { - this.index = index; + public @NonNull Map getMap() { + return map; } - } - public enum FillerEnum24 { - FILLER_MEMBER24(0); + public void setMap(@NonNull Map setterArg) { + if (setterArg == null) { + throw new IllegalStateException("Nonnull field \"map\" is null."); + } + this.map = setterArg; + } - final int index; + /** Constructor is non-public to enforce null safety; use Builder. */ + AllTypes() {} - FillerEnum24(final int index) { - this.index = index; - } - } - - public enum FillerEnum25 { - FILLER_MEMBER25(0); - - final int index; - - FillerEnum25(final int index) { - this.index = index; - } - } - - public enum FillerEnum26 { - FILLER_MEMBER26(0); - - final int index; - - FillerEnum26(final int index) { - this.index = index; + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllTypes that = (AllTypes) o; + return aBool.equals(that.aBool) + && anInt.equals(that.anInt) + && anInt64.equals(that.anInt64) + && aDouble.equals(that.aDouble) + && Arrays.equals(aByteArray, that.aByteArray) + && Arrays.equals(a4ByteArray, that.a4ByteArray) + && Arrays.equals(a8ByteArray, that.a8ByteArray) + && Arrays.equals(aFloatArray, that.aFloatArray) + && anEnum.equals(that.anEnum) + && anotherEnum.equals(that.anotherEnum) + && aString.equals(that.aString) + && anObject.equals(that.anObject) + && list.equals(that.list) + && stringList.equals(that.stringList) + && intList.equals(that.intList) + && doubleList.equals(that.doubleList) + && boolList.equals(that.boolList) + && map.equals(that.map); } - } - - public enum FillerEnum27 { - FILLER_MEMBER27(0); - final int index; - - FillerEnum27(final int index) { - this.index = index; + @Override + public int hashCode() { + int __pigeon_result = + Objects.hash( + aBool, + anInt, + anInt64, + aDouble, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + map); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a4ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a8ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aFloatArray); + return __pigeon_result; } - } - - public enum FillerEnum28 { - FILLER_MEMBER28(0); - final int index; + public static final class Builder { - FillerEnum28(final int index) { - this.index = index; - } - } + private @Nullable Boolean aBool; - public enum FillerEnum29 { - FILLER_MEMBER29(0); + @CanIgnoreReturnValue + public @NonNull Builder setABool(@NonNull Boolean setterArg) { + this.aBool = setterArg; + return this; + } - final int index; + private @Nullable Long anInt; - FillerEnum29(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setAnInt(@NonNull Long setterArg) { + this.anInt = setterArg; + return this; + } - public enum FillerEnum30 { - FILLER_MEMBER30(0); + private @Nullable Long anInt64; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setAnInt64(@NonNull Long setterArg) { + this.anInt64 = setterArg; + return this; + } - FillerEnum30(final int index) { - this.index = index; - } - } + private @Nullable Double aDouble; - public enum FillerEnum31 { - FILLER_MEMBER31(0); + @CanIgnoreReturnValue + public @NonNull Builder setADouble(@NonNull Double setterArg) { + this.aDouble = setterArg; + return this; + } - final int index; + private @Nullable byte[] aByteArray; - FillerEnum31(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setAByteArray(@NonNull byte[] setterArg) { + this.aByteArray = setterArg; + return this; + } - public enum FillerEnum32 { - FILLER_MEMBER32(0); + private @Nullable int[] a4ByteArray; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setA4ByteArray(@NonNull int[] setterArg) { + this.a4ByteArray = setterArg; + return this; + } - FillerEnum32(final int index) { - this.index = index; - } - } + private @Nullable long[] a8ByteArray; - public enum FillerEnum33 { - FILLER_MEMBER33(0); + @CanIgnoreReturnValue + public @NonNull Builder setA8ByteArray(@NonNull long[] setterArg) { + this.a8ByteArray = setterArg; + return this; + } - final int index; + private @Nullable double[] aFloatArray; - FillerEnum33(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setAFloatArray(@NonNull double[] setterArg) { + this.aFloatArray = setterArg; + return this; + } - public enum FillerEnum34 { - FILLER_MEMBER34(0); + private @Nullable AnEnum anEnum; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setAnEnum(@NonNull AnEnum setterArg) { + this.anEnum = setterArg; + return this; + } - FillerEnum34(final int index) { - this.index = index; - } - } + private @Nullable AnotherEnum anotherEnum; - public enum FillerEnum35 { - FILLER_MEMBER35(0); + @CanIgnoreReturnValue + public @NonNull Builder setAnotherEnum(@NonNull AnotherEnum setterArg) { + this.anotherEnum = setterArg; + return this; + } - final int index; + private @Nullable String aString; - FillerEnum35(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setAString(@NonNull String setterArg) { + this.aString = setterArg; + return this; + } - public enum FillerEnum36 { - FILLER_MEMBER36(0); + private @Nullable Object anObject; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setAnObject(@NonNull Object setterArg) { + this.anObject = setterArg; + return this; + } - FillerEnum36(final int index) { - this.index = index; - } - } + private @Nullable List list; - public enum FillerEnum37 { - FILLER_MEMBER37(0); + @CanIgnoreReturnValue + public @NonNull Builder setList(@NonNull List setterArg) { + this.list = setterArg; + return this; + } - final int index; + private @Nullable List stringList; - FillerEnum37(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@NonNull List setterArg) { + this.stringList = setterArg; + return this; + } - public enum FillerEnum38 { - FILLER_MEMBER38(0); + private @Nullable List intList; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@NonNull List setterArg) { + this.intList = setterArg; + return this; + } - FillerEnum38(final int index) { - this.index = index; - } - } + private @Nullable List doubleList; - public enum FillerEnum39 { - FILLER_MEMBER39(0); + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@NonNull List setterArg) { + this.doubleList = setterArg; + return this; + } - final int index; + private @Nullable List boolList; - FillerEnum39(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@NonNull List setterArg) { + this.boolList = setterArg; + return this; + } - public enum FillerEnum40 { - FILLER_MEMBER40(0); + private @Nullable Map map; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setMap(@NonNull Map setterArg) { + this.map = setterArg; + return this; + } - FillerEnum40(final int index) { - this.index = index; + public @NonNull AllTypes build() { + AllTypes pigeonReturn = new AllTypes(); + pigeonReturn.setABool(aBool); + pigeonReturn.setAnInt(anInt); + pigeonReturn.setAnInt64(anInt64); + pigeonReturn.setADouble(aDouble); + pigeonReturn.setAByteArray(aByteArray); + pigeonReturn.setA4ByteArray(a4ByteArray); + pigeonReturn.setA8ByteArray(a8ByteArray); + pigeonReturn.setAFloatArray(aFloatArray); + pigeonReturn.setAnEnum(anEnum); + pigeonReturn.setAnotherEnum(anotherEnum); + pigeonReturn.setAString(aString); + pigeonReturn.setAnObject(anObject); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setMap(map); + return pigeonReturn; + } } - } - public enum FillerEnum41 { - FILLER_MEMBER41(0); - - final int index; + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(18); + toListResult.add(aBool); + toListResult.add(anInt); + toListResult.add(anInt64); + toListResult.add(aDouble); + toListResult.add(aByteArray); + toListResult.add(a4ByteArray); + toListResult.add(a8ByteArray); + toListResult.add(aFloatArray); + toListResult.add(anEnum); + toListResult.add(anotherEnum); + toListResult.add(aString); + toListResult.add(anObject); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(map); + return toListResult; + } - FillerEnum41(final int index) { - this.index = index; + static @NonNull AllTypes fromList(@NonNull ArrayList __pigeon_list) { + AllTypes pigeonResult = new AllTypes(); + Object aBool = __pigeon_list.get(0); + pigeonResult.setABool((Boolean) aBool); + Object anInt = __pigeon_list.get(1); + pigeonResult.setAnInt( + (anInt == null) ? null : ((anInt instanceof Integer) ? (Integer) anInt : (Long) anInt)); + Object anInt64 = __pigeon_list.get(2); + pigeonResult.setAnInt64( + (anInt64 == null) + ? null + : ((anInt64 instanceof Integer) ? (Integer) anInt64 : (Long) anInt64)); + Object aDouble = __pigeon_list.get(3); + pigeonResult.setADouble((Double) aDouble); + Object aByteArray = __pigeon_list.get(4); + pigeonResult.setAByteArray((byte[]) aByteArray); + Object a4ByteArray = __pigeon_list.get(5); + pigeonResult.setA4ByteArray((int[]) a4ByteArray); + Object a8ByteArray = __pigeon_list.get(6); + pigeonResult.setA8ByteArray((long[]) a8ByteArray); + Object aFloatArray = __pigeon_list.get(7); + pigeonResult.setAFloatArray((double[]) aFloatArray); + Object anEnum = __pigeon_list.get(8); + pigeonResult.setAnEnum((AnEnum) anEnum); + Object anotherEnum = __pigeon_list.get(9); + pigeonResult.setAnotherEnum((AnotherEnum) anotherEnum); + Object aString = __pigeon_list.get(10); + pigeonResult.setAString((String) aString); + Object anObject = __pigeon_list.get(11); + pigeonResult.setAnObject(anObject); + Object list = __pigeon_list.get(12); + pigeonResult.setList((List) list); + Object stringList = __pigeon_list.get(13); + pigeonResult.setStringList((List) stringList); + Object intList = __pigeon_list.get(14); + pigeonResult.setIntList((List) intList); + Object doubleList = __pigeon_list.get(15); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = __pigeon_list.get(16); + pigeonResult.setBoolList((List) boolList); + Object map = __pigeon_list.get(17); + pigeonResult.setMap((Map) map); + return pigeonResult; } } - public enum FillerEnum42 { - FILLER_MEMBER42(0); - - final int index; + /** + * A class containing all supported nullable types. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllNullableTypes { + private @Nullable Boolean aNullableBool; - FillerEnum42(final int index) { - this.index = index; + public @Nullable Boolean getANullableBool() { + return aNullableBool; } - } - public enum FillerEnum43 { - FILLER_MEMBER43(0); + public void setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + } - final int index; + private @Nullable Long aNullableInt; - FillerEnum43(final int index) { - this.index = index; + public @Nullable Long getANullableInt() { + return aNullableInt; } - } - public enum FillerEnum44 { - FILLER_MEMBER44(0); + public void setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + } - final int index; + private @Nullable Long aNullableInt64; - FillerEnum44(final int index) { - this.index = index; + public @Nullable Long getANullableInt64() { + return aNullableInt64; } - } - public enum FillerEnum45 { - FILLER_MEMBER45(0); + public void setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + } - final int index; + private @Nullable Double aNullableDouble; - FillerEnum45(final int index) { - this.index = index; + public @Nullable Double getANullableDouble() { + return aNullableDouble; } - } - public enum FillerEnum46 { - FILLER_MEMBER46(0); + public void setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + } - final int index; + private @Nullable byte[] aNullableByteArray; - FillerEnum46(final int index) { - this.index = index; + public @Nullable byte[] getANullableByteArray() { + return aNullableByteArray; } - } - public enum FillerEnum47 { - FILLER_MEMBER47(0); + public void setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + } - final int index; + private @Nullable int[] aNullable4ByteArray; - FillerEnum47(final int index) { - this.index = index; + public @Nullable int[] getANullable4ByteArray() { + return aNullable4ByteArray; } - } - public enum FillerEnum48 { - FILLER_MEMBER48(0); + public void setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + } - final int index; + private @Nullable long[] aNullable8ByteArray; - FillerEnum48(final int index) { - this.index = index; + public @Nullable long[] getANullable8ByteArray() { + return aNullable8ByteArray; } - } - public enum FillerEnum49 { - FILLER_MEMBER49(0); + public void setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + } - final int index; + private @Nullable double[] aNullableFloatArray; - FillerEnum49(final int index) { - this.index = index; + public @Nullable double[] getANullableFloatArray() { + return aNullableFloatArray; } - } - public enum FillerEnum50 { - FILLER_MEMBER50(0); + public void setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + } - final int index; + private @Nullable List> nullableNestedList; - FillerEnum50(final int index) { - this.index = index; + public @Nullable List> getNullableNestedList() { + return nullableNestedList; } - } - public enum FillerEnum51 { - FILLER_MEMBER51(0); + public void setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + } - final int index; + private @Nullable Map nullableMapWithAnnotations; - FillerEnum51(final int index) { - this.index = index; + public @Nullable Map getNullableMapWithAnnotations() { + return nullableMapWithAnnotations; } - } - public enum FillerEnum52 { - FILLER_MEMBER52(0); + public void setNullableMapWithAnnotations(@Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + } - final int index; + private @Nullable Map nullableMapWithObject; - FillerEnum52(final int index) { - this.index = index; + public @Nullable Map getNullableMapWithObject() { + return nullableMapWithObject; } - } - public enum FillerEnum53 { - FILLER_MEMBER53(0); + public void setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; + } - final int index; + private @Nullable AnEnum aNullableEnum; - FillerEnum53(final int index) { - this.index = index; + public @Nullable AnEnum getANullableEnum() { + return aNullableEnum; } - } - public enum FillerEnum54 { - FILLER_MEMBER54(0); + public void setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + } - final int index; + private @Nullable AnotherEnum anotherNullableEnum; - FillerEnum54(final int index) { - this.index = index; + public @Nullable AnotherEnum getAnotherNullableEnum() { + return anotherNullableEnum; } - } - public enum FillerEnum55 { - FILLER_MEMBER55(0); + public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + } - final int index; + private @Nullable String aNullableString; - FillerEnum55(final int index) { - this.index = index; + public @Nullable String getANullableString() { + return aNullableString; } - } - public enum FillerEnum56 { - FILLER_MEMBER56(0); + public void setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + } - final int index; + private @Nullable Object aNullableObject; - FillerEnum56(final int index) { - this.index = index; + public @Nullable Object getANullableObject() { + return aNullableObject; } - } - public enum FillerEnum57 { - FILLER_MEMBER57(0); + public void setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + } - final int index; + private @Nullable AllNullableTypes allNullableTypes; - FillerEnum57(final int index) { - this.index = index; + public @Nullable AllNullableTypes getAllNullableTypes() { + return allNullableTypes; } - } - public enum FillerEnum58 { - FILLER_MEMBER58(0); + public void setAllNullableTypes(@Nullable AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + } - final int index; + private @Nullable List list; - FillerEnum58(final int index) { - this.index = index; + public @Nullable List getList() { + return list; } - } - public enum FillerEnum59 { - FILLER_MEMBER59(0); + public void setList(@Nullable List setterArg) { + this.list = setterArg; + } - final int index; + private @Nullable List stringList; - FillerEnum59(final int index) { - this.index = index; + public @Nullable List getStringList() { + return stringList; } - } - public enum FillerEnum60 { - FILLER_MEMBER60(0); + public void setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + } - final int index; + private @Nullable List intList; - FillerEnum60(final int index) { - this.index = index; + public @Nullable List getIntList() { + return intList; } - } - public enum FillerEnum61 { - FILLER_MEMBER61(0); + public void setIntList(@Nullable List setterArg) { + this.intList = setterArg; + } - final int index; + private @Nullable List doubleList; - FillerEnum61(final int index) { - this.index = index; + public @Nullable List getDoubleList() { + return doubleList; } - } - public enum FillerEnum62 { - FILLER_MEMBER62(0); + public void setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + } - final int index; + private @Nullable List boolList; - FillerEnum62(final int index) { - this.index = index; + public @Nullable List getBoolList() { + return boolList; } - } - public enum FillerEnum63 { - FILLER_MEMBER63(0); - - final int index; - - FillerEnum63(final int index) { - this.index = index; + public void setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; } - } - - public enum FillerEnum64 { - FILLER_MEMBER64(0); - final int index; + private @Nullable List nestedClassList; - FillerEnum64(final int index) { - this.index = index; + public @Nullable List getNestedClassList() { + return nestedClassList; } - } - public enum FillerEnum65 { - FILLER_MEMBER65(0); + public void setNestedClassList(@Nullable List setterArg) { + this.nestedClassList = setterArg; + } - final int index; + private @Nullable Map map; - FillerEnum65(final int index) { - this.index = index; + public @Nullable Map getMap() { + return map; } - } - public enum FillerEnum66 { - FILLER_MEMBER66(0); + public void setMap(@Nullable Map setterArg) { + this.map = setterArg; + } - final int index; + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllNullableTypes that = (AllNullableTypes) o; + return Objects.equals(aNullableBool, that.aNullableBool) + && Objects.equals(aNullableInt, that.aNullableInt) + && Objects.equals(aNullableInt64, that.aNullableInt64) + && Objects.equals(aNullableDouble, that.aNullableDouble) + && Arrays.equals(aNullableByteArray, that.aNullableByteArray) + && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) + && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) + && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) + && Objects.equals(nullableNestedList, that.nullableNestedList) + && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) + && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) + && Objects.equals(aNullableEnum, that.aNullableEnum) + && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) + && Objects.equals(aNullableString, that.aNullableString) + && Objects.equals(aNullableObject, that.aNullableObject) + && Objects.equals(allNullableTypes, that.allNullableTypes) + && Objects.equals(list, that.list) + && Objects.equals(stringList, that.stringList) + && Objects.equals(intList, that.intList) + && Objects.equals(doubleList, that.doubleList) + && Objects.equals(boolList, that.boolList) + && Objects.equals(nestedClassList, that.nestedClassList) + && Objects.equals(map, that.map); + } - FillerEnum66(final int index) { - this.index = index; + @Override + public int hashCode() { + int __pigeon_result = + Objects.hash( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + nestedClassList, + map); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); + return __pigeon_result; } - } - public enum FillerEnum67 { - FILLER_MEMBER67(0); + public static final class Builder { - final int index; + private @Nullable Boolean aNullableBool; - FillerEnum67(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + return this; + } - public enum FillerEnum68 { - FILLER_MEMBER68(0); + private @Nullable Long aNullableInt; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + return this; + } - FillerEnum68(final int index) { - this.index = index; - } - } + private @Nullable Long aNullableInt64; - public enum FillerEnum69 { - FILLER_MEMBER69(0); + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + return this; + } - final int index; + private @Nullable Double aNullableDouble; - FillerEnum69(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + return this; + } - public enum FillerEnum70 { - FILLER_MEMBER70(0); + private @Nullable byte[] aNullableByteArray; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + return this; + } - FillerEnum70(final int index) { - this.index = index; - } - } + private @Nullable int[] aNullable4ByteArray; - public enum FillerEnum71 { - FILLER_MEMBER71(0); + @CanIgnoreReturnValue + public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + return this; + } - final int index; + private @Nullable long[] aNullable8ByteArray; - FillerEnum71(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + return this; + } - public enum FillerEnum72 { - FILLER_MEMBER72(0); + private @Nullable double[] aNullableFloatArray; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + return this; + } - FillerEnum72(final int index) { - this.index = index; - } - } + private @Nullable List> nullableNestedList; - public enum FillerEnum73 { - FILLER_MEMBER73(0); + @CanIgnoreReturnValue + public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + return this; + } - final int index; + private @Nullable Map nullableMapWithAnnotations; - FillerEnum73(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithAnnotations( + @Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + return this; + } - public enum FillerEnum74 { - FILLER_MEMBER74(0); + private @Nullable Map nullableMapWithObject; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; + return this; + } - FillerEnum74(final int index) { - this.index = index; - } - } + private @Nullable AnEnum aNullableEnum; - public enum FillerEnum75 { - FILLER_MEMBER75(0); + @CanIgnoreReturnValue + public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + return this; + } - final int index; + private @Nullable AnotherEnum anotherNullableEnum; - FillerEnum75(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + return this; + } - public enum FillerEnum76 { - FILLER_MEMBER76(0); + private @Nullable String aNullableString; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + return this; + } - FillerEnum76(final int index) { - this.index = index; - } - } + private @Nullable Object aNullableObject; - public enum FillerEnum77 { - FILLER_MEMBER77(0); + @CanIgnoreReturnValue + public @NonNull Builder setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + return this; + } - final int index; + private @Nullable AllNullableTypes allNullableTypes; - FillerEnum77(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setAllNullableTypes(@Nullable AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; + return this; + } - public enum FillerEnum78 { - FILLER_MEMBER78(0); + private @Nullable List list; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setList(@Nullable List setterArg) { + this.list = setterArg; + return this; + } - FillerEnum78(final int index) { - this.index = index; - } - } + private @Nullable List stringList; - public enum FillerEnum79 { - FILLER_MEMBER79(0); + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + return this; + } - final int index; + private @Nullable List intList; - FillerEnum79(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@Nullable List setterArg) { + this.intList = setterArg; + return this; + } - public enum FillerEnum80 { - FILLER_MEMBER80(0); + private @Nullable List doubleList; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + return this; + } - FillerEnum80(final int index) { - this.index = index; - } - } + private @Nullable List boolList; - public enum FillerEnum81 { - FILLER_MEMBER81(0); + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + return this; + } - final int index; + private @Nullable List nestedClassList; - FillerEnum81(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setNestedClassList(@Nullable List setterArg) { + this.nestedClassList = setterArg; + return this; + } - public enum FillerEnum82 { - FILLER_MEMBER82(0); + private @Nullable Map map; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setMap(@Nullable Map setterArg) { + this.map = setterArg; + return this; + } - FillerEnum82(final int index) { - this.index = index; + public @NonNull AllNullableTypes build() { + AllNullableTypes pigeonReturn = new AllNullableTypes(); + pigeonReturn.setANullableBool(aNullableBool); + pigeonReturn.setANullableInt(aNullableInt); + pigeonReturn.setANullableInt64(aNullableInt64); + pigeonReturn.setANullableDouble(aNullableDouble); + pigeonReturn.setANullableByteArray(aNullableByteArray); + pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); + pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); + pigeonReturn.setANullableFloatArray(aNullableFloatArray); + pigeonReturn.setNullableNestedList(nullableNestedList); + pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); + pigeonReturn.setNullableMapWithObject(nullableMapWithObject); + pigeonReturn.setANullableEnum(aNullableEnum); + pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); + pigeonReturn.setANullableString(aNullableString); + pigeonReturn.setANullableObject(aNullableObject); + pigeonReturn.setAllNullableTypes(allNullableTypes); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setNestedClassList(nestedClassList); + pigeonReturn.setMap(map); + return pigeonReturn; + } } - } - public enum FillerEnum83 { - FILLER_MEMBER83(0); - - final int index; + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(23); + toListResult.add(aNullableBool); + toListResult.add(aNullableInt); + toListResult.add(aNullableInt64); + toListResult.add(aNullableDouble); + toListResult.add(aNullableByteArray); + toListResult.add(aNullable4ByteArray); + toListResult.add(aNullable8ByteArray); + toListResult.add(aNullableFloatArray); + toListResult.add(nullableNestedList); + toListResult.add(nullableMapWithAnnotations); + toListResult.add(nullableMapWithObject); + toListResult.add(aNullableEnum); + toListResult.add(anotherNullableEnum); + toListResult.add(aNullableString); + toListResult.add(aNullableObject); + toListResult.add(allNullableTypes); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(nestedClassList); + toListResult.add(map); + return toListResult; + } - FillerEnum83(final int index) { - this.index = index; + static @NonNull AllNullableTypes fromList(@NonNull ArrayList __pigeon_list) { + AllNullableTypes pigeonResult = new AllNullableTypes(); + Object aNullableBool = __pigeon_list.get(0); + pigeonResult.setANullableBool((Boolean) aNullableBool); + Object aNullableInt = __pigeon_list.get(1); + pigeonResult.setANullableInt( + (aNullableInt == null) + ? null + : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); + Object aNullableInt64 = __pigeon_list.get(2); + pigeonResult.setANullableInt64( + (aNullableInt64 == null) + ? null + : ((aNullableInt64 instanceof Integer) + ? (Integer) aNullableInt64 + : (Long) aNullableInt64)); + Object aNullableDouble = __pigeon_list.get(3); + pigeonResult.setANullableDouble((Double) aNullableDouble); + Object aNullableByteArray = __pigeon_list.get(4); + pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); + Object aNullable4ByteArray = __pigeon_list.get(5); + pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); + Object aNullable8ByteArray = __pigeon_list.get(6); + pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); + Object aNullableFloatArray = __pigeon_list.get(7); + pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); + Object nullableNestedList = __pigeon_list.get(8); + pigeonResult.setNullableNestedList((List>) nullableNestedList); + Object nullableMapWithAnnotations = __pigeon_list.get(9); + pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); + Object nullableMapWithObject = __pigeon_list.get(10); + pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); + Object aNullableEnum = __pigeon_list.get(11); + pigeonResult.setANullableEnum((AnEnum) aNullableEnum); + Object anotherNullableEnum = __pigeon_list.get(12); + pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); + Object aNullableString = __pigeon_list.get(13); + pigeonResult.setANullableString((String) aNullableString); + Object aNullableObject = __pigeon_list.get(14); + pigeonResult.setANullableObject(aNullableObject); + Object allNullableTypes = __pigeon_list.get(15); + pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); + Object list = __pigeon_list.get(16); + pigeonResult.setList((List) list); + Object stringList = __pigeon_list.get(17); + pigeonResult.setStringList((List) stringList); + Object intList = __pigeon_list.get(18); + pigeonResult.setIntList((List) intList); + Object doubleList = __pigeon_list.get(19); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = __pigeon_list.get(20); + pigeonResult.setBoolList((List) boolList); + Object nestedClassList = __pigeon_list.get(21); + pigeonResult.setNestedClassList((List) nestedClassList); + Object map = __pigeon_list.get(22); + pigeonResult.setMap((Map) map); + return pigeonResult; } } - public enum FillerEnum84 { - FILLER_MEMBER84(0); - - final int index; + /** + * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, + * as the primary [AllNullableTypes] class is being used to test Swift classes. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllNullableTypesWithoutRecursion { + private @Nullable Boolean aNullableBool; - FillerEnum84(final int index) { - this.index = index; + public @Nullable Boolean getANullableBool() { + return aNullableBool; } - } - public enum FillerEnum85 { - FILLER_MEMBER85(0); + public void setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + } - final int index; + private @Nullable Long aNullableInt; - FillerEnum85(final int index) { - this.index = index; + public @Nullable Long getANullableInt() { + return aNullableInt; } - } - public enum FillerEnum86 { - FILLER_MEMBER86(0); + public void setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + } - final int index; + private @Nullable Long aNullableInt64; - FillerEnum86(final int index) { - this.index = index; + public @Nullable Long getANullableInt64() { + return aNullableInt64; } - } - public enum FillerEnum87 { - FILLER_MEMBER87(0); + public void setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + } - final int index; + private @Nullable Double aNullableDouble; - FillerEnum87(final int index) { - this.index = index; + public @Nullable Double getANullableDouble() { + return aNullableDouble; } - } - public enum FillerEnum88 { - FILLER_MEMBER88(0); + public void setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + } - final int index; + private @Nullable byte[] aNullableByteArray; - FillerEnum88(final int index) { - this.index = index; + public @Nullable byte[] getANullableByteArray() { + return aNullableByteArray; } - } - public enum FillerEnum89 { - FILLER_MEMBER89(0); + public void setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + } - final int index; + private @Nullable int[] aNullable4ByteArray; - FillerEnum89(final int index) { - this.index = index; + public @Nullable int[] getANullable4ByteArray() { + return aNullable4ByteArray; } - } - public enum FillerEnum90 { - FILLER_MEMBER90(0); + public void setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + } - final int index; + private @Nullable long[] aNullable8ByteArray; - FillerEnum90(final int index) { - this.index = index; + public @Nullable long[] getANullable8ByteArray() { + return aNullable8ByteArray; } - } - public enum FillerEnum91 { - FILLER_MEMBER91(0); + public void setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + } - final int index; + private @Nullable double[] aNullableFloatArray; - FillerEnum91(final int index) { - this.index = index; + public @Nullable double[] getANullableFloatArray() { + return aNullableFloatArray; } - } - public enum FillerEnum92 { - FILLER_MEMBER92(0); + public void setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + } - final int index; + private @Nullable List> nullableNestedList; - FillerEnum92(final int index) { - this.index = index; + public @Nullable List> getNullableNestedList() { + return nullableNestedList; } - } - public enum FillerEnum93 { - FILLER_MEMBER93(0); + public void setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + } - final int index; + private @Nullable Map nullableMapWithAnnotations; - FillerEnum93(final int index) { - this.index = index; + public @Nullable Map getNullableMapWithAnnotations() { + return nullableMapWithAnnotations; } - } - public enum FillerEnum94 { - FILLER_MEMBER94(0); + public void setNullableMapWithAnnotations(@Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + } - final int index; + private @Nullable Map nullableMapWithObject; - FillerEnum94(final int index) { - this.index = index; + public @Nullable Map getNullableMapWithObject() { + return nullableMapWithObject; } - } - public enum FillerEnum95 { - FILLER_MEMBER95(0); - - final int index; - - FillerEnum95(final int index) { - this.index = index; + public void setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; } - } - - public enum FillerEnum96 { - FILLER_MEMBER96(0); - final int index; + private @Nullable AnEnum aNullableEnum; - FillerEnum96(final int index) { - this.index = index; + public @Nullable AnEnum getANullableEnum() { + return aNullableEnum; } - } - - public enum FillerEnum97 { - FILLER_MEMBER97(0); - - final int index; - FillerEnum97(final int index) { - this.index = index; + public void setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; } - } - - public enum FillerEnum98 { - FILLER_MEMBER98(0); - final int index; + private @Nullable AnotherEnum anotherNullableEnum; - FillerEnum98(final int index) { - this.index = index; + public @Nullable AnotherEnum getAnotherNullableEnum() { + return anotherNullableEnum; } - } - public enum FillerEnum99 { - FILLER_MEMBER99(0); - - final int index; - - FillerEnum99(final int index) { - this.index = index; + public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; } - } - - public enum FillerEnum100 { - FILLER_MEMBER100(0); - final int index; + private @Nullable String aNullableString; - FillerEnum100(final int index) { - this.index = index; + public @Nullable String getANullableString() { + return aNullableString; } - } - - public enum FillerEnum101 { - FILLER_MEMBER101(0); - - final int index; - FillerEnum101(final int index) { - this.index = index; + public void setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; } - } - - public enum FillerEnum102 { - FILLER_MEMBER102(0); - final int index; + private @Nullable Object aNullableObject; - FillerEnum102(final int index) { - this.index = index; + public @Nullable Object getANullableObject() { + return aNullableObject; } - } - public enum FillerEnum103 { - FILLER_MEMBER103(0); - - final int index; - - FillerEnum103(final int index) { - this.index = index; + public void setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; } - } - - public enum FillerEnum104 { - FILLER_MEMBER104(0); - final int index; + private @Nullable List list; - FillerEnum104(final int index) { - this.index = index; + public @Nullable List getList() { + return list; } - } - - public enum FillerEnum105 { - FILLER_MEMBER105(0); - - final int index; - FillerEnum105(final int index) { - this.index = index; + public void setList(@Nullable List setterArg) { + this.list = setterArg; } - } - - public enum FillerEnum106 { - FILLER_MEMBER106(0); - final int index; + private @Nullable List stringList; - FillerEnum106(final int index) { - this.index = index; + public @Nullable List getStringList() { + return stringList; } - } - public enum FillerEnum107 { - FILLER_MEMBER107(0); - - final int index; - - FillerEnum107(final int index) { - this.index = index; + public void setStringList(@Nullable List setterArg) { + this.stringList = setterArg; } - } - - public enum FillerEnum108 { - FILLER_MEMBER108(0); - final int index; + private @Nullable List intList; - FillerEnum108(final int index) { - this.index = index; + public @Nullable List getIntList() { + return intList; } - } - public enum FillerEnum109 { - FILLER_MEMBER109(0); + public void setIntList(@Nullable List setterArg) { + this.intList = setterArg; + } - final int index; + private @Nullable List doubleList; - FillerEnum109(final int index) { - this.index = index; + public @Nullable List getDoubleList() { + return doubleList; } - } - public enum FillerEnum110 { - FILLER_MEMBER110(0); + public void setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + } - final int index; + private @Nullable List boolList; - FillerEnum110(final int index) { - this.index = index; + public @Nullable List getBoolList() { + return boolList; } - } - public enum FillerEnum111 { - FILLER_MEMBER111(0); + public void setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + } - final int index; + private @Nullable Map map; - FillerEnum111(final int index) { - this.index = index; + public @Nullable Map getMap() { + return map; } - } - public enum FillerEnum112 { - FILLER_MEMBER112(0); + public void setMap(@Nullable Map setterArg) { + this.map = setterArg; + } - final int index; + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; + return Objects.equals(aNullableBool, that.aNullableBool) + && Objects.equals(aNullableInt, that.aNullableInt) + && Objects.equals(aNullableInt64, that.aNullableInt64) + && Objects.equals(aNullableDouble, that.aNullableDouble) + && Arrays.equals(aNullableByteArray, that.aNullableByteArray) + && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) + && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) + && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) + && Objects.equals(nullableNestedList, that.nullableNestedList) + && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) + && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) + && Objects.equals(aNullableEnum, that.aNullableEnum) + && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) + && Objects.equals(aNullableString, that.aNullableString) + && Objects.equals(aNullableObject, that.aNullableObject) + && Objects.equals(list, that.list) + && Objects.equals(stringList, that.stringList) + && Objects.equals(intList, that.intList) + && Objects.equals(doubleList, that.doubleList) + && Objects.equals(boolList, that.boolList) + && Objects.equals(map, that.map); + } - FillerEnum112(final int index) { - this.index = index; + @Override + public int hashCode() { + int __pigeon_result = + Objects.hash( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + map); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); + __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); + return __pigeon_result; } - } - public enum FillerEnum113 { - FILLER_MEMBER113(0); + public static final class Builder { - final int index; + private @Nullable Boolean aNullableBool; - FillerEnum113(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { + this.aNullableBool = setterArg; + return this; + } - public enum FillerEnum114 { - FILLER_MEMBER114(0); + private @Nullable Long aNullableInt; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt(@Nullable Long setterArg) { + this.aNullableInt = setterArg; + return this; + } - FillerEnum114(final int index) { - this.index = index; - } - } + private @Nullable Long aNullableInt64; - public enum FillerEnum115 { - FILLER_MEMBER115(0); + @CanIgnoreReturnValue + public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { + this.aNullableInt64 = setterArg; + return this; + } - final int index; + private @Nullable Double aNullableDouble; - FillerEnum115(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { + this.aNullableDouble = setterArg; + return this; + } - public enum FillerEnum116 { - FILLER_MEMBER116(0); + private @Nullable byte[] aNullableByteArray; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { + this.aNullableByteArray = setterArg; + return this; + } - FillerEnum116(final int index) { - this.index = index; - } - } + private @Nullable int[] aNullable4ByteArray; - public enum FillerEnum117 { - FILLER_MEMBER117(0); + @CanIgnoreReturnValue + public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { + this.aNullable4ByteArray = setterArg; + return this; + } - final int index; + private @Nullable long[] aNullable8ByteArray; - FillerEnum117(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { + this.aNullable8ByteArray = setterArg; + return this; + } - public enum FillerEnum118 { - FILLER_MEMBER118(0); + private @Nullable double[] aNullableFloatArray; - final int index; - - FillerEnum118(final int index) { - this.index = index; - } - } - - public enum FillerEnum119 { - FILLER_MEMBER119(0); - - final int index; - - FillerEnum119(final int index) { - this.index = index; - } - } - - public enum FillerEnum120 { - FILLER_MEMBER120(0); - - final int index; - - FillerEnum120(final int index) { - this.index = index; - } - } - - public enum FillerEnum121 { - FILLER_MEMBER121(0); - - final int index; - - FillerEnum121(final int index) { - this.index = index; - } - } - - public enum FillerEnum122 { - FILLER_MEMBER122(0); - - final int index; - - FillerEnum122(final int index) { - this.index = index; - } - } - - public enum FillerEnum123 { - FILLER_MEMBER123(0); - - final int index; - - FillerEnum123(final int index) { - this.index = index; - } - } - - public enum FillerEnum124 { - FILLER_MEMBER124(0); - - final int index; - - FillerEnum124(final int index) { - this.index = index; - } - } - - public enum AnEnum { - ONE(0), - TWO(1), - THREE(2), - FORTY_TWO(3), - FOUR_HUNDRED_TWENTY_TWO(4); - - final int index; - - AnEnum(final int index) { - this.index = index; - } - } + @CanIgnoreReturnValue + public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { + this.aNullableFloatArray = setterArg; + return this; + } - public enum AnotherEnum { - JUST_IN_CASE(0); + private @Nullable List> nullableNestedList; - final int index; + @CanIgnoreReturnValue + public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { + this.nullableNestedList = setterArg; + return this; + } - AnotherEnum(final int index) { - this.index = index; - } - } + private @Nullable Map nullableMapWithAnnotations; - /** - * A class containing all supported types. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllTypes { - private @NonNull Boolean aBool; + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithAnnotations( + @Nullable Map setterArg) { + this.nullableMapWithAnnotations = setterArg; + return this; + } - public @NonNull Boolean getABool() { - return aBool; - } + private @Nullable Map nullableMapWithObject; - public void setABool(@NonNull Boolean setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aBool\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { + this.nullableMapWithObject = setterArg; + return this; } - this.aBool = setterArg; - } - - private @NonNull Long anInt; - public @NonNull Long getAnInt() { - return anInt; - } + private @Nullable AnEnum aNullableEnum; - public void setAnInt(@NonNull Long setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anInt\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { + this.aNullableEnum = setterArg; + return this; } - this.anInt = setterArg; - } - - private @NonNull Long anInt64; - public @NonNull Long getAnInt64() { - return anInt64; - } + private @Nullable AnotherEnum anotherNullableEnum; - public void setAnInt64(@NonNull Long setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anInt64\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { + this.anotherNullableEnum = setterArg; + return this; } - this.anInt64 = setterArg; - } - private @NonNull Double aDouble; - - public @NonNull Double getADouble() { - return aDouble; - } + private @Nullable String aNullableString; - public void setADouble(@NonNull Double setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aDouble\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setANullableString(@Nullable String setterArg) { + this.aNullableString = setterArg; + return this; } - this.aDouble = setterArg; - } - - private @NonNull byte[] aByteArray; - public @NonNull byte[] getAByteArray() { - return aByteArray; - } + private @Nullable Object aNullableObject; - public void setAByteArray(@NonNull byte[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aByteArray\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setANullableObject(@Nullable Object setterArg) { + this.aNullableObject = setterArg; + return this; } - this.aByteArray = setterArg; - } - - private @NonNull int[] a4ByteArray; - public @NonNull int[] getA4ByteArray() { - return a4ByteArray; - } + private @Nullable List list; - public void setA4ByteArray(@NonNull int[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"a4ByteArray\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setList(@Nullable List setterArg) { + this.list = setterArg; + return this; } - this.a4ByteArray = setterArg; - } - - private @NonNull long[] a8ByteArray; - public @NonNull long[] getA8ByteArray() { - return a8ByteArray; - } + private @Nullable List stringList; - public void setA8ByteArray(@NonNull long[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"a8ByteArray\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setStringList(@Nullable List setterArg) { + this.stringList = setterArg; + return this; } - this.a8ByteArray = setterArg; - } - private @NonNull double[] aFloatArray; - - public @NonNull double[] getAFloatArray() { - return aFloatArray; - } + private @Nullable List intList; - public void setAFloatArray(@NonNull double[] setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aFloatArray\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setIntList(@Nullable List setterArg) { + this.intList = setterArg; + return this; } - this.aFloatArray = setterArg; - } - - private @NonNull AnEnum anEnum; - public @NonNull AnEnum getAnEnum() { - return anEnum; - } + private @Nullable List doubleList; - public void setAnEnum(@NonNull AnEnum setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anEnum\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setDoubleList(@Nullable List setterArg) { + this.doubleList = setterArg; + return this; } - this.anEnum = setterArg; - } - - private @NonNull AnotherEnum anotherEnum; - public @NonNull AnotherEnum getAnotherEnum() { - return anotherEnum; - } + private @Nullable List boolList; - public void setAnotherEnum(@NonNull AnotherEnum setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anotherEnum\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setBoolList(@Nullable List setterArg) { + this.boolList = setterArg; + return this; } - this.anotherEnum = setterArg; - } - - private @NonNull String aString; - public @NonNull String getAString() { - return aString; - } + private @Nullable Map map; - public void setAString(@NonNull String setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"aString\" is null."); + @CanIgnoreReturnValue + public @NonNull Builder setMap(@Nullable Map setterArg) { + this.map = setterArg; + return this; } - this.aString = setterArg; - } - private @NonNull Object anObject; - - public @NonNull Object getAnObject() { - return anObject; - } - - public void setAnObject(@NonNull Object setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"anObject\" is null."); - } - this.anObject = setterArg; - } - - private @NonNull List list; - - public @NonNull List getList() { - return list; - } - - public void setList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"list\" is null."); - } - this.list = setterArg; - } - - private @NonNull List stringList; - - public @NonNull List getStringList() { - return stringList; - } - - public void setStringList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"stringList\" is null."); + public @NonNull AllNullableTypesWithoutRecursion build() { + AllNullableTypesWithoutRecursion pigeonReturn = new AllNullableTypesWithoutRecursion(); + pigeonReturn.setANullableBool(aNullableBool); + pigeonReturn.setANullableInt(aNullableInt); + pigeonReturn.setANullableInt64(aNullableInt64); + pigeonReturn.setANullableDouble(aNullableDouble); + pigeonReturn.setANullableByteArray(aNullableByteArray); + pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); + pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); + pigeonReturn.setANullableFloatArray(aNullableFloatArray); + pigeonReturn.setNullableNestedList(nullableNestedList); + pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); + pigeonReturn.setNullableMapWithObject(nullableMapWithObject); + pigeonReturn.setANullableEnum(aNullableEnum); + pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); + pigeonReturn.setANullableString(aNullableString); + pigeonReturn.setANullableObject(aNullableObject); + pigeonReturn.setList(list); + pigeonReturn.setStringList(stringList); + pigeonReturn.setIntList(intList); + pigeonReturn.setDoubleList(doubleList); + pigeonReturn.setBoolList(boolList); + pigeonReturn.setMap(map); + return pigeonReturn; } - this.stringList = setterArg; } - private @NonNull List intList; - - public @NonNull List getIntList() { - return intList; + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(21); + toListResult.add(aNullableBool); + toListResult.add(aNullableInt); + toListResult.add(aNullableInt64); + toListResult.add(aNullableDouble); + toListResult.add(aNullableByteArray); + toListResult.add(aNullable4ByteArray); + toListResult.add(aNullable8ByteArray); + toListResult.add(aNullableFloatArray); + toListResult.add(nullableNestedList); + toListResult.add(nullableMapWithAnnotations); + toListResult.add(nullableMapWithObject); + toListResult.add(aNullableEnum); + toListResult.add(anotherNullableEnum); + toListResult.add(aNullableString); + toListResult.add(aNullableObject); + toListResult.add(list); + toListResult.add(stringList); + toListResult.add(intList); + toListResult.add(doubleList); + toListResult.add(boolList); + toListResult.add(map); + return toListResult; } - public void setIntList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"intList\" is null."); - } - this.intList = setterArg; + static @NonNull AllNullableTypesWithoutRecursion fromList( + @NonNull ArrayList __pigeon_list) { + AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); + Object aNullableBool = __pigeon_list.get(0); + pigeonResult.setANullableBool((Boolean) aNullableBool); + Object aNullableInt = __pigeon_list.get(1); + pigeonResult.setANullableInt( + (aNullableInt == null) + ? null + : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); + Object aNullableInt64 = __pigeon_list.get(2); + pigeonResult.setANullableInt64( + (aNullableInt64 == null) + ? null + : ((aNullableInt64 instanceof Integer) + ? (Integer) aNullableInt64 + : (Long) aNullableInt64)); + Object aNullableDouble = __pigeon_list.get(3); + pigeonResult.setANullableDouble((Double) aNullableDouble); + Object aNullableByteArray = __pigeon_list.get(4); + pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); + Object aNullable4ByteArray = __pigeon_list.get(5); + pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); + Object aNullable8ByteArray = __pigeon_list.get(6); + pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); + Object aNullableFloatArray = __pigeon_list.get(7); + pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); + Object nullableNestedList = __pigeon_list.get(8); + pigeonResult.setNullableNestedList((List>) nullableNestedList); + Object nullableMapWithAnnotations = __pigeon_list.get(9); + pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); + Object nullableMapWithObject = __pigeon_list.get(10); + pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); + Object aNullableEnum = __pigeon_list.get(11); + pigeonResult.setANullableEnum((AnEnum) aNullableEnum); + Object anotherNullableEnum = __pigeon_list.get(12); + pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); + Object aNullableString = __pigeon_list.get(13); + pigeonResult.setANullableString((String) aNullableString); + Object aNullableObject = __pigeon_list.get(14); + pigeonResult.setANullableObject(aNullableObject); + Object list = __pigeon_list.get(15); + pigeonResult.setList((List) list); + Object stringList = __pigeon_list.get(16); + pigeonResult.setStringList((List) stringList); + Object intList = __pigeon_list.get(17); + pigeonResult.setIntList((List) intList); + Object doubleList = __pigeon_list.get(18); + pigeonResult.setDoubleList((List) doubleList); + Object boolList = __pigeon_list.get(19); + pigeonResult.setBoolList((List) boolList); + Object map = __pigeon_list.get(20); + pigeonResult.setMap((Map) map); + return pigeonResult; } + } - private @NonNull List doubleList; + /** + * A class for testing nested class handling. + * + *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is + * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require + * both (ie. testing null classes). + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class AllClassesWrapper { + private @NonNull AllNullableTypes allNullableTypes; - public @NonNull List getDoubleList() { - return doubleList; + public @NonNull AllNullableTypes getAllNullableTypes() { + return allNullableTypes; } - public void setDoubleList(@NonNull List setterArg) { + public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"doubleList\" is null."); + throw new IllegalStateException("Nonnull field \"allNullableTypes\" is null."); } - this.doubleList = setterArg; + this.allNullableTypes = setterArg; } - private @NonNull List boolList; + private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; - public @NonNull List getBoolList() { - return boolList; + public @Nullable AllNullableTypesWithoutRecursion getAllNullableTypesWithoutRecursion() { + return allNullableTypesWithoutRecursion; } - public void setBoolList(@NonNull List setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"boolList\" is null."); - } - this.boolList = setterArg; + public void setAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion setterArg) { + this.allNullableTypesWithoutRecursion = setterArg; } - private @NonNull Map map; + private @Nullable AllTypes allTypes; - public @NonNull Map getMap() { - return map; + public @Nullable AllTypes getAllTypes() { + return allTypes; } - public void setMap(@NonNull Map setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"map\" is null."); - } - this.map = setterArg; + public void setAllTypes(@Nullable AllTypes setterArg) { + this.allTypes = setterArg; } /** Constructor is non-public to enforce null safety; use Builder. */ - AllTypes() {} + AllClassesWrapper() {} @Override public boolean equals(Object o) { @@ -1600,2347 +1855,168 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AllTypes that = (AllTypes) o; - return aBool.equals(that.aBool) - && anInt.equals(that.anInt) - && anInt64.equals(that.anInt64) - && aDouble.equals(that.aDouble) - && Arrays.equals(aByteArray, that.aByteArray) - && Arrays.equals(a4ByteArray, that.a4ByteArray) - && Arrays.equals(a8ByteArray, that.a8ByteArray) - && Arrays.equals(aFloatArray, that.aFloatArray) - && anEnum.equals(that.anEnum) - && anotherEnum.equals(that.anotherEnum) - && aString.equals(that.aString) - && anObject.equals(that.anObject) - && list.equals(that.list) - && stringList.equals(that.stringList) - && intList.equals(that.intList) - && doubleList.equals(that.doubleList) - && boolList.equals(that.boolList) - && map.equals(that.map); + AllClassesWrapper that = (AllClassesWrapper) o; + return allNullableTypes.equals(that.allNullableTypes) + && Objects.equals(allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) + && Objects.equals(allTypes, that.allTypes); } @Override public int hashCode() { - int __pigeon_result = - Objects.hash( - aBool, - anInt, - anInt64, - aDouble, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aFloatArray); - return __pigeon_result; + return Objects.hash(allNullableTypes, allNullableTypesWithoutRecursion, allTypes); } public static final class Builder { - private @Nullable Boolean aBool; + private @Nullable AllNullableTypes allNullableTypes; @CanIgnoreReturnValue - public @NonNull Builder setABool(@NonNull Boolean setterArg) { - this.aBool = setterArg; + public @NonNull Builder setAllNullableTypes(@NonNull AllNullableTypes setterArg) { + this.allNullableTypes = setterArg; return this; } - private @Nullable Long anInt; + private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; @CanIgnoreReturnValue - public @NonNull Builder setAnInt(@NonNull Long setterArg) { - this.anInt = setterArg; - return this; - } - - private @Nullable Long anInt64; - - @CanIgnoreReturnValue - public @NonNull Builder setAnInt64(@NonNull Long setterArg) { - this.anInt64 = setterArg; - return this; - } - - private @Nullable Double aDouble; - - @CanIgnoreReturnValue - public @NonNull Builder setADouble(@NonNull Double setterArg) { - this.aDouble = setterArg; - return this; - } - - private @Nullable byte[] aByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setAByteArray(@NonNull byte[] setterArg) { - this.aByteArray = setterArg; - return this; - } - - private @Nullable int[] a4ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setA4ByteArray(@NonNull int[] setterArg) { - this.a4ByteArray = setterArg; - return this; - } - - private @Nullable long[] a8ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setA8ByteArray(@NonNull long[] setterArg) { - this.a8ByteArray = setterArg; - return this; - } - - private @Nullable double[] aFloatArray; - - @CanIgnoreReturnValue - public @NonNull Builder setAFloatArray(@NonNull double[] setterArg) { - this.aFloatArray = setterArg; - return this; - } - - private @Nullable AnEnum anEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnEnum(@NonNull AnEnum setterArg) { - this.anEnum = setterArg; - return this; - } - - private @Nullable AnotherEnum anotherEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnotherEnum(@NonNull AnotherEnum setterArg) { - this.anotherEnum = setterArg; + public @NonNull Builder setAllNullableTypesWithoutRecursion( + @Nullable AllNullableTypesWithoutRecursion setterArg) { + this.allNullableTypesWithoutRecursion = setterArg; return this; } - private @Nullable String aString; + private @Nullable AllTypes allTypes; @CanIgnoreReturnValue - public @NonNull Builder setAString(@NonNull String setterArg) { - this.aString = setterArg; + public @NonNull Builder setAllTypes(@Nullable AllTypes setterArg) { + this.allTypes = setterArg; return this; } - private @Nullable Object anObject; - - @CanIgnoreReturnValue - public @NonNull Builder setAnObject(@NonNull Object setterArg) { - this.anObject = setterArg; - return this; + public @NonNull AllClassesWrapper build() { + AllClassesWrapper pigeonReturn = new AllClassesWrapper(); + pigeonReturn.setAllNullableTypes(allNullableTypes); + pigeonReturn.setAllNullableTypesWithoutRecursion(allNullableTypesWithoutRecursion); + pigeonReturn.setAllTypes(allTypes); + return pigeonReturn; } + } - private @Nullable List list; + @NonNull + ArrayList toList() { + ArrayList toListResult = new ArrayList<>(3); + toListResult.add(allNullableTypes); + toListResult.add(allNullableTypesWithoutRecursion); + toListResult.add(allTypes); + return toListResult; + } - @CanIgnoreReturnValue - public @NonNull Builder setList(@NonNull List setterArg) { - this.list = setterArg; - return this; - } + static @NonNull AllClassesWrapper fromList(@NonNull ArrayList __pigeon_list) { + AllClassesWrapper pigeonResult = new AllClassesWrapper(); + Object allNullableTypes = __pigeon_list.get(0); + pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); + Object allNullableTypesWithoutRecursion = __pigeon_list.get(1); + pigeonResult.setAllNullableTypesWithoutRecursion( + (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); + Object allTypes = __pigeon_list.get(2); + pigeonResult.setAllTypes((AllTypes) allTypes); + return pigeonResult; + } + } - private @Nullable List stringList; + /** + * A data class containing a List, used in unit tests. + * + *

Generated class from Pigeon that represents data sent in messages. + */ + public static final class TestMessage { + private @Nullable List testList; - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@NonNull List setterArg) { - this.stringList = setterArg; - return this; - } + public @Nullable List getTestList() { + return testList; + } - private @Nullable List intList; + public void setTestList(@Nullable List setterArg) { + this.testList = setterArg; + } - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@NonNull List setterArg) { - this.intList = setterArg; - return this; + @Override + public boolean equals(Object o) { + if (this == o) { + return true; } - - private @Nullable List doubleList; - - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@NonNull List setterArg) { - this.doubleList = setterArg; - return this; + if (o == null || getClass() != o.getClass()) { + return false; } + TestMessage that = (TestMessage) o; + return Objects.equals(testList, that.testList); + } - private @Nullable List boolList; + @Override + public int hashCode() { + return Objects.hash(testList); + } - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@NonNull List setterArg) { - this.boolList = setterArg; - return this; - } + public static final class Builder { - private @Nullable Map map; + private @Nullable List testList; @CanIgnoreReturnValue - public @NonNull Builder setMap(@NonNull Map setterArg) { - this.map = setterArg; + public @NonNull Builder setTestList(@Nullable List setterArg) { + this.testList = setterArg; return this; } - public @NonNull AllTypes build() { - AllTypes pigeonReturn = new AllTypes(); - pigeonReturn.setABool(aBool); - pigeonReturn.setAnInt(anInt); - pigeonReturn.setAnInt64(anInt64); - pigeonReturn.setADouble(aDouble); - pigeonReturn.setAByteArray(aByteArray); - pigeonReturn.setA4ByteArray(a4ByteArray); - pigeonReturn.setA8ByteArray(a8ByteArray); - pigeonReturn.setAFloatArray(aFloatArray); - pigeonReturn.setAnEnum(anEnum); - pigeonReturn.setAnotherEnum(anotherEnum); - pigeonReturn.setAString(aString); - pigeonReturn.setAnObject(anObject); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setMap(map); + public @NonNull TestMessage build() { + TestMessage pigeonReturn = new TestMessage(); + pigeonReturn.setTestList(testList); return pigeonReturn; } } @NonNull ArrayList toList() { - ArrayList toListResult = new ArrayList<>(18); - toListResult.add(aBool); - toListResult.add(anInt); - toListResult.add(anInt64); - toListResult.add(aDouble); - toListResult.add(aByteArray); - toListResult.add(a4ByteArray); - toListResult.add(a8ByteArray); - toListResult.add(aFloatArray); - toListResult.add(anEnum); - toListResult.add(anotherEnum); - toListResult.add(aString); - toListResult.add(anObject); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(map); + ArrayList toListResult = new ArrayList<>(1); + toListResult.add(testList); return toListResult; } - static @NonNull AllTypes fromList(@NonNull ArrayList __pigeon_list) { - AllTypes pigeonResult = new AllTypes(); - Object aBool = __pigeon_list.get(0); - pigeonResult.setABool((Boolean) aBool); - Object anInt = __pigeon_list.get(1); - pigeonResult.setAnInt( - (anInt == null) ? null : ((anInt instanceof Integer) ? (Integer) anInt : (Long) anInt)); - Object anInt64 = __pigeon_list.get(2); - pigeonResult.setAnInt64( - (anInt64 == null) - ? null - : ((anInt64 instanceof Integer) ? (Integer) anInt64 : (Long) anInt64)); - Object aDouble = __pigeon_list.get(3); - pigeonResult.setADouble((Double) aDouble); - Object aByteArray = __pigeon_list.get(4); - pigeonResult.setAByteArray((byte[]) aByteArray); - Object a4ByteArray = __pigeon_list.get(5); - pigeonResult.setA4ByteArray((int[]) a4ByteArray); - Object a8ByteArray = __pigeon_list.get(6); - pigeonResult.setA8ByteArray((long[]) a8ByteArray); - Object aFloatArray = __pigeon_list.get(7); - pigeonResult.setAFloatArray((double[]) aFloatArray); - Object anEnum = __pigeon_list.get(8); - pigeonResult.setAnEnum((AnEnum) anEnum); - Object anotherEnum = __pigeon_list.get(9); - pigeonResult.setAnotherEnum((AnotherEnum) anotherEnum); - Object aString = __pigeon_list.get(10); - pigeonResult.setAString((String) aString); - Object anObject = __pigeon_list.get(11); - pigeonResult.setAnObject(anObject); - Object list = __pigeon_list.get(12); - pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(13); - pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(14); - pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(15); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(16); - pigeonResult.setBoolList((List) boolList); - Object map = __pigeon_list.get(17); - pigeonResult.setMap((Map) map); - return pigeonResult; - } - } - - /** - * A class containing all supported nullable types. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllNullableTypes { - private @Nullable Boolean aNullableBool; - - public @Nullable Boolean getANullableBool() { - return aNullableBool; - } - - public void setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - } - - private @Nullable Long aNullableInt; - - public @Nullable Long getANullableInt() { - return aNullableInt; - } - - public void setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - } - - private @Nullable Long aNullableInt64; - - public @Nullable Long getANullableInt64() { - return aNullableInt64; - } - - public void setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - } - - private @Nullable Double aNullableDouble; - - public @Nullable Double getANullableDouble() { - return aNullableDouble; - } - - public void setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - } - - private @Nullable byte[] aNullableByteArray; - - public @Nullable byte[] getANullableByteArray() { - return aNullableByteArray; - } - - public void setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - } - - private @Nullable int[] aNullable4ByteArray; - - public @Nullable int[] getANullable4ByteArray() { - return aNullable4ByteArray; - } - - public void setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - } - - private @Nullable long[] aNullable8ByteArray; - - public @Nullable long[] getANullable8ByteArray() { - return aNullable8ByteArray; - } - - public void setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - } - - private @Nullable double[] aNullableFloatArray; - - public @Nullable double[] getANullableFloatArray() { - return aNullableFloatArray; - } - - public void setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - } - - private @Nullable List> nullableNestedList; - - public @Nullable List> getNullableNestedList() { - return nullableNestedList; - } - - public void setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; - } - - private @Nullable Map nullableMapWithAnnotations; - - public @Nullable Map getNullableMapWithAnnotations() { - return nullableMapWithAnnotations; - } - - public void setNullableMapWithAnnotations(@Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; - } - - private @Nullable Map nullableMapWithObject; - - public @Nullable Map getNullableMapWithObject() { - return nullableMapWithObject; - } - - public void setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; - } - - private @Nullable AnEnum aNullableEnum; - - public @Nullable AnEnum getANullableEnum() { - return aNullableEnum; - } - - public void setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - public @Nullable AnotherEnum getAnotherNullableEnum() { - return anotherNullableEnum; - } - - public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - } - - private @Nullable String aNullableString; - - public @Nullable String getANullableString() { - return aNullableString; - } - - public void setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - } - - private @Nullable Object aNullableObject; - - public @Nullable Object getANullableObject() { - return aNullableObject; - } - - public void setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - } - - private @Nullable AllNullableTypes allNullableTypes; - - public @Nullable AllNullableTypes getAllNullableTypes() { - return allNullableTypes; - } - - public void setAllNullableTypes(@Nullable AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - } - - private @Nullable List list; - - public @Nullable List getList() { - return list; - } - - public void setList(@Nullable List setterArg) { - this.list = setterArg; - } - - private @Nullable List stringList; - - public @Nullable List getStringList() { - return stringList; - } - - public void setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - } - - private @Nullable List intList; - - public @Nullable List getIntList() { - return intList; - } - - public void setIntList(@Nullable List setterArg) { - this.intList = setterArg; - } - - private @Nullable List doubleList; - - public @Nullable List getDoubleList() { - return doubleList; - } - - public void setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - } - - private @Nullable List boolList; - - public @Nullable List getBoolList() { - return boolList; - } - - public void setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - } - - private @Nullable List nestedClassList; - - public @Nullable List getNestedClassList() { - return nestedClassList; - } - - public void setNestedClassList(@Nullable List setterArg) { - this.nestedClassList = setterArg; - } - - private @Nullable Map map; - - public @Nullable Map getMap() { - return map; - } - - public void setMap(@Nullable Map setterArg) { - this.map = setterArg; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllNullableTypes that = (AllNullableTypes) o; - return Objects.equals(aNullableBool, that.aNullableBool) - && Objects.equals(aNullableInt, that.aNullableInt) - && Objects.equals(aNullableInt64, that.aNullableInt64) - && Objects.equals(aNullableDouble, that.aNullableDouble) - && Arrays.equals(aNullableByteArray, that.aNullableByteArray) - && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) - && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) - && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) - && Objects.equals(nullableNestedList, that.nullableNestedList) - && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) - && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) - && Objects.equals(aNullableEnum, that.aNullableEnum) - && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) - && Objects.equals(aNullableString, that.aNullableString) - && Objects.equals(aNullableObject, that.aNullableObject) - && Objects.equals(allNullableTypes, that.allNullableTypes) - && Objects.equals(list, that.list) - && Objects.equals(stringList, that.stringList) - && Objects.equals(intList, that.intList) - && Objects.equals(doubleList, that.doubleList) - && Objects.equals(boolList, that.boolList) - && Objects.equals(nestedClassList, that.nestedClassList) - && Objects.equals(map, that.map); - } - - @Override - public int hashCode() { - int __pigeon_result = - Objects.hash( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - nestedClassList, - map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); - return __pigeon_result; - } - - public static final class Builder { - - private @Nullable Boolean aNullableBool; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - return this; - } - - private @Nullable Long aNullableInt; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - return this; - } - - private @Nullable Long aNullableInt64; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - return this; - } - - private @Nullable Double aNullableDouble; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - return this; - } - - private @Nullable byte[] aNullableByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - return this; - } - - private @Nullable int[] aNullable4ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - return this; - } - - private @Nullable long[] aNullable8ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - return this; - } - - private @Nullable double[] aNullableFloatArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - return this; - } - - private @Nullable List> nullableNestedList; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; - return this; - } - - private @Nullable Map nullableMapWithAnnotations; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithAnnotations( - @Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; - return this; - } - - private @Nullable Map nullableMapWithObject; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; - return this; - } - - private @Nullable AnEnum aNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - return this; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - return this; - } - - private @Nullable String aNullableString; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - return this; - } - - private @Nullable Object aNullableObject; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - return this; - } - - private @Nullable AllNullableTypes allNullableTypes; - - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypes(@Nullable AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - return this; - } - - private @Nullable List list; - - @CanIgnoreReturnValue - public @NonNull Builder setList(@Nullable List setterArg) { - this.list = setterArg; - return this; - } - - private @Nullable List stringList; - - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - return this; - } - - private @Nullable List intList; - - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@Nullable List setterArg) { - this.intList = setterArg; - return this; - } - - private @Nullable List doubleList; - - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - return this; - } - - private @Nullable List boolList; - - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - return this; - } - - private @Nullable List nestedClassList; - - @CanIgnoreReturnValue - public @NonNull Builder setNestedClassList(@Nullable List setterArg) { - this.nestedClassList = setterArg; - return this; - } - - private @Nullable Map map; - - @CanIgnoreReturnValue - public @NonNull Builder setMap(@Nullable Map setterArg) { - this.map = setterArg; - return this; - } - - public @NonNull AllNullableTypes build() { - AllNullableTypes pigeonReturn = new AllNullableTypes(); - pigeonReturn.setANullableBool(aNullableBool); - pigeonReturn.setANullableInt(aNullableInt); - pigeonReturn.setANullableInt64(aNullableInt64); - pigeonReturn.setANullableDouble(aNullableDouble); - pigeonReturn.setANullableByteArray(aNullableByteArray); - pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); - pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); - pigeonReturn.setANullableFloatArray(aNullableFloatArray); - pigeonReturn.setNullableNestedList(nullableNestedList); - pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); - pigeonReturn.setNullableMapWithObject(nullableMapWithObject); - pigeonReturn.setANullableEnum(aNullableEnum); - pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); - pigeonReturn.setANullableString(aNullableString); - pigeonReturn.setANullableObject(aNullableObject); - pigeonReturn.setAllNullableTypes(allNullableTypes); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setNestedClassList(nestedClassList); - pigeonReturn.setMap(map); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(23); - toListResult.add(aNullableBool); - toListResult.add(aNullableInt); - toListResult.add(aNullableInt64); - toListResult.add(aNullableDouble); - toListResult.add(aNullableByteArray); - toListResult.add(aNullable4ByteArray); - toListResult.add(aNullable8ByteArray); - toListResult.add(aNullableFloatArray); - toListResult.add(nullableNestedList); - toListResult.add(nullableMapWithAnnotations); - toListResult.add(nullableMapWithObject); - toListResult.add(aNullableEnum); - toListResult.add(anotherNullableEnum); - toListResult.add(aNullableString); - toListResult.add(aNullableObject); - toListResult.add(allNullableTypes); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(nestedClassList); - toListResult.add(map); - return toListResult; - } - - static @NonNull AllNullableTypes fromList(@NonNull ArrayList __pigeon_list) { - AllNullableTypes pigeonResult = new AllNullableTypes(); - Object aNullableBool = __pigeon_list.get(0); - pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = __pigeon_list.get(1); - pigeonResult.setANullableInt( - (aNullableInt == null) - ? null - : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = __pigeon_list.get(2); - pigeonResult.setANullableInt64( - (aNullableInt64 == null) - ? null - : ((aNullableInt64 instanceof Integer) - ? (Integer) aNullableInt64 - : (Long) aNullableInt64)); - Object aNullableDouble = __pigeon_list.get(3); - pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = __pigeon_list.get(4); - pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = __pigeon_list.get(5); - pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = __pigeon_list.get(6); - pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = __pigeon_list.get(7); - pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = __pigeon_list.get(8); - pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = __pigeon_list.get(9); - pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = __pigeon_list.get(10); - pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = __pigeon_list.get(11); - pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = __pigeon_list.get(12); - pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = __pigeon_list.get(13); - pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = __pigeon_list.get(14); - pigeonResult.setANullableObject(aNullableObject); - Object allNullableTypes = __pigeon_list.get(15); - pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object list = __pigeon_list.get(16); - pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(17); - pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(18); - pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(19); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(20); - pigeonResult.setBoolList((List) boolList); - Object nestedClassList = __pigeon_list.get(21); - pigeonResult.setNestedClassList((List) nestedClassList); - Object map = __pigeon_list.get(22); - pigeonResult.setMap((Map) map); - return pigeonResult; - } - } - - /** - * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, - * as the primary [AllNullableTypes] class is being used to test Swift classes. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllNullableTypesWithoutRecursion { - private @Nullable Boolean aNullableBool; - - public @Nullable Boolean getANullableBool() { - return aNullableBool; - } - - public void setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - } - - private @Nullable Long aNullableInt; - - public @Nullable Long getANullableInt() { - return aNullableInt; - } - - public void setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - } - - private @Nullable Long aNullableInt64; - - public @Nullable Long getANullableInt64() { - return aNullableInt64; - } - - public void setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - } - - private @Nullable Double aNullableDouble; - - public @Nullable Double getANullableDouble() { - return aNullableDouble; - } - - public void setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - } - - private @Nullable byte[] aNullableByteArray; - - public @Nullable byte[] getANullableByteArray() { - return aNullableByteArray; - } - - public void setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - } - - private @Nullable int[] aNullable4ByteArray; - - public @Nullable int[] getANullable4ByteArray() { - return aNullable4ByteArray; - } - - public void setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - } - - private @Nullable long[] aNullable8ByteArray; - - public @Nullable long[] getANullable8ByteArray() { - return aNullable8ByteArray; - } - - public void setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - } - - private @Nullable double[] aNullableFloatArray; - - public @Nullable double[] getANullableFloatArray() { - return aNullableFloatArray; - } - - public void setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - } - - private @Nullable List> nullableNestedList; - - public @Nullable List> getNullableNestedList() { - return nullableNestedList; - } - - public void setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; - } - - private @Nullable Map nullableMapWithAnnotations; - - public @Nullable Map getNullableMapWithAnnotations() { - return nullableMapWithAnnotations; - } - - public void setNullableMapWithAnnotations(@Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; - } - - private @Nullable Map nullableMapWithObject; - - public @Nullable Map getNullableMapWithObject() { - return nullableMapWithObject; - } - - public void setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; - } - - private @Nullable AnEnum aNullableEnum; - - public @Nullable AnEnum getANullableEnum() { - return aNullableEnum; - } - - public void setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - public @Nullable AnotherEnum getAnotherNullableEnum() { - return anotherNullableEnum; - } - - public void setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - } - - private @Nullable String aNullableString; - - public @Nullable String getANullableString() { - return aNullableString; - } - - public void setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - } - - private @Nullable Object aNullableObject; - - public @Nullable Object getANullableObject() { - return aNullableObject; - } - - public void setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - } - - private @Nullable List list; - - public @Nullable List getList() { - return list; - } - - public void setList(@Nullable List setterArg) { - this.list = setterArg; - } - - private @Nullable List stringList; - - public @Nullable List getStringList() { - return stringList; - } - - public void setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - } - - private @Nullable List intList; - - public @Nullable List getIntList() { - return intList; - } - - public void setIntList(@Nullable List setterArg) { - this.intList = setterArg; - } - - private @Nullable List doubleList; - - public @Nullable List getDoubleList() { - return doubleList; - } - - public void setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - } - - private @Nullable List boolList; - - public @Nullable List getBoolList() { - return boolList; - } - - public void setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - } - - private @Nullable Map map; - - public @Nullable Map getMap() { - return map; - } - - public void setMap(@Nullable Map setterArg) { - this.map = setterArg; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllNullableTypesWithoutRecursion that = (AllNullableTypesWithoutRecursion) o; - return Objects.equals(aNullableBool, that.aNullableBool) - && Objects.equals(aNullableInt, that.aNullableInt) - && Objects.equals(aNullableInt64, that.aNullableInt64) - && Objects.equals(aNullableDouble, that.aNullableDouble) - && Arrays.equals(aNullableByteArray, that.aNullableByteArray) - && Arrays.equals(aNullable4ByteArray, that.aNullable4ByteArray) - && Arrays.equals(aNullable8ByteArray, that.aNullable8ByteArray) - && Arrays.equals(aNullableFloatArray, that.aNullableFloatArray) - && Objects.equals(nullableNestedList, that.nullableNestedList) - && Objects.equals(nullableMapWithAnnotations, that.nullableMapWithAnnotations) - && Objects.equals(nullableMapWithObject, that.nullableMapWithObject) - && Objects.equals(aNullableEnum, that.aNullableEnum) - && Objects.equals(anotherNullableEnum, that.anotherNullableEnum) - && Objects.equals(aNullableString, that.aNullableString) - && Objects.equals(aNullableObject, that.aNullableObject) - && Objects.equals(list, that.list) - && Objects.equals(stringList, that.stringList) - && Objects.equals(intList, that.intList) - && Objects.equals(doubleList, that.doubleList) - && Objects.equals(boolList, that.boolList) - && Objects.equals(map, that.map); - } - - @Override - public int hashCode() { - int __pigeon_result = - Objects.hash( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); - return __pigeon_result; - } - - public static final class Builder { - - private @Nullable Boolean aNullableBool; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableBool(@Nullable Boolean setterArg) { - this.aNullableBool = setterArg; - return this; - } - - private @Nullable Long aNullableInt; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt(@Nullable Long setterArg) { - this.aNullableInt = setterArg; - return this; - } - - private @Nullable Long aNullableInt64; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableInt64(@Nullable Long setterArg) { - this.aNullableInt64 = setterArg; - return this; - } - - private @Nullable Double aNullableDouble; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableDouble(@Nullable Double setterArg) { - this.aNullableDouble = setterArg; - return this; - } - - private @Nullable byte[] aNullableByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableByteArray(@Nullable byte[] setterArg) { - this.aNullableByteArray = setterArg; - return this; - } - - private @Nullable int[] aNullable4ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable4ByteArray(@Nullable int[] setterArg) { - this.aNullable4ByteArray = setterArg; - return this; - } - - private @Nullable long[] aNullable8ByteArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullable8ByteArray(@Nullable long[] setterArg) { - this.aNullable8ByteArray = setterArg; - return this; - } - - private @Nullable double[] aNullableFloatArray; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableFloatArray(@Nullable double[] setterArg) { - this.aNullableFloatArray = setterArg; - return this; - } - - private @Nullable List> nullableNestedList; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableNestedList(@Nullable List> setterArg) { - this.nullableNestedList = setterArg; - return this; - } - - private @Nullable Map nullableMapWithAnnotations; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithAnnotations( - @Nullable Map setterArg) { - this.nullableMapWithAnnotations = setterArg; - return this; - } - - private @Nullable Map nullableMapWithObject; - - @CanIgnoreReturnValue - public @NonNull Builder setNullableMapWithObject(@Nullable Map setterArg) { - this.nullableMapWithObject = setterArg; - return this; - } - - private @Nullable AnEnum aNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableEnum(@Nullable AnEnum setterArg) { - this.aNullableEnum = setterArg; - return this; - } - - private @Nullable AnotherEnum anotherNullableEnum; - - @CanIgnoreReturnValue - public @NonNull Builder setAnotherNullableEnum(@Nullable AnotherEnum setterArg) { - this.anotherNullableEnum = setterArg; - return this; - } - - private @Nullable String aNullableString; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableString(@Nullable String setterArg) { - this.aNullableString = setterArg; - return this; - } - - private @Nullable Object aNullableObject; - - @CanIgnoreReturnValue - public @NonNull Builder setANullableObject(@Nullable Object setterArg) { - this.aNullableObject = setterArg; - return this; - } - - private @Nullable List list; - - @CanIgnoreReturnValue - public @NonNull Builder setList(@Nullable List setterArg) { - this.list = setterArg; - return this; - } - - private @Nullable List stringList; - - @CanIgnoreReturnValue - public @NonNull Builder setStringList(@Nullable List setterArg) { - this.stringList = setterArg; - return this; - } - - private @Nullable List intList; - - @CanIgnoreReturnValue - public @NonNull Builder setIntList(@Nullable List setterArg) { - this.intList = setterArg; - return this; - } - - private @Nullable List doubleList; - - @CanIgnoreReturnValue - public @NonNull Builder setDoubleList(@Nullable List setterArg) { - this.doubleList = setterArg; - return this; - } - - private @Nullable List boolList; - - @CanIgnoreReturnValue - public @NonNull Builder setBoolList(@Nullable List setterArg) { - this.boolList = setterArg; - return this; - } - - private @Nullable Map map; - - @CanIgnoreReturnValue - public @NonNull Builder setMap(@Nullable Map setterArg) { - this.map = setterArg; - return this; - } - - public @NonNull AllNullableTypesWithoutRecursion build() { - AllNullableTypesWithoutRecursion pigeonReturn = new AllNullableTypesWithoutRecursion(); - pigeonReturn.setANullableBool(aNullableBool); - pigeonReturn.setANullableInt(aNullableInt); - pigeonReturn.setANullableInt64(aNullableInt64); - pigeonReturn.setANullableDouble(aNullableDouble); - pigeonReturn.setANullableByteArray(aNullableByteArray); - pigeonReturn.setANullable4ByteArray(aNullable4ByteArray); - pigeonReturn.setANullable8ByteArray(aNullable8ByteArray); - pigeonReturn.setANullableFloatArray(aNullableFloatArray); - pigeonReturn.setNullableNestedList(nullableNestedList); - pigeonReturn.setNullableMapWithAnnotations(nullableMapWithAnnotations); - pigeonReturn.setNullableMapWithObject(nullableMapWithObject); - pigeonReturn.setANullableEnum(aNullableEnum); - pigeonReturn.setAnotherNullableEnum(anotherNullableEnum); - pigeonReturn.setANullableString(aNullableString); - pigeonReturn.setANullableObject(aNullableObject); - pigeonReturn.setList(list); - pigeonReturn.setStringList(stringList); - pigeonReturn.setIntList(intList); - pigeonReturn.setDoubleList(doubleList); - pigeonReturn.setBoolList(boolList); - pigeonReturn.setMap(map); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(21); - toListResult.add(aNullableBool); - toListResult.add(aNullableInt); - toListResult.add(aNullableInt64); - toListResult.add(aNullableDouble); - toListResult.add(aNullableByteArray); - toListResult.add(aNullable4ByteArray); - toListResult.add(aNullable8ByteArray); - toListResult.add(aNullableFloatArray); - toListResult.add(nullableNestedList); - toListResult.add(nullableMapWithAnnotations); - toListResult.add(nullableMapWithObject); - toListResult.add(aNullableEnum); - toListResult.add(anotherNullableEnum); - toListResult.add(aNullableString); - toListResult.add(aNullableObject); - toListResult.add(list); - toListResult.add(stringList); - toListResult.add(intList); - toListResult.add(doubleList); - toListResult.add(boolList); - toListResult.add(map); - return toListResult; - } - - static @NonNull AllNullableTypesWithoutRecursion fromList( - @NonNull ArrayList __pigeon_list) { - AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); - Object aNullableBool = __pigeon_list.get(0); - pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = __pigeon_list.get(1); - pigeonResult.setANullableInt( - (aNullableInt == null) - ? null - : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = __pigeon_list.get(2); - pigeonResult.setANullableInt64( - (aNullableInt64 == null) - ? null - : ((aNullableInt64 instanceof Integer) - ? (Integer) aNullableInt64 - : (Long) aNullableInt64)); - Object aNullableDouble = __pigeon_list.get(3); - pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = __pigeon_list.get(4); - pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = __pigeon_list.get(5); - pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = __pigeon_list.get(6); - pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = __pigeon_list.get(7); - pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = __pigeon_list.get(8); - pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = __pigeon_list.get(9); - pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = __pigeon_list.get(10); - pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = __pigeon_list.get(11); - pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = __pigeon_list.get(12); - pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = __pigeon_list.get(13); - pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = __pigeon_list.get(14); - pigeonResult.setANullableObject(aNullableObject); - Object list = __pigeon_list.get(15); - pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(16); - pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(17); - pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(18); - pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(19); - pigeonResult.setBoolList((List) boolList); - Object map = __pigeon_list.get(20); - pigeonResult.setMap((Map) map); - return pigeonResult; - } - } - - /** - * A class for testing nested class handling. - * - *

This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is - * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require - * both (ie. testing null classes). - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class AllClassesWrapper { - private @NonNull AllNullableTypes allNullableTypes; - - public @NonNull AllNullableTypes getAllNullableTypes() { - return allNullableTypes; - } - - public void setAllNullableTypes(@NonNull AllNullableTypes setterArg) { - if (setterArg == null) { - throw new IllegalStateException("Nonnull field \"allNullableTypes\" is null."); - } - this.allNullableTypes = setterArg; - } - - private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; - - public @Nullable AllNullableTypesWithoutRecursion getAllNullableTypesWithoutRecursion() { - return allNullableTypesWithoutRecursion; - } - - public void setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { - this.allNullableTypesWithoutRecursion = setterArg; - } - - private @Nullable AllTypes allTypes; - - public @Nullable AllTypes getAllTypes() { - return allTypes; - } - - public void setAllTypes(@Nullable AllTypes setterArg) { - this.allTypes = setterArg; - } - - /** Constructor is non-public to enforce null safety; use Builder. */ - AllClassesWrapper() {} - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AllClassesWrapper that = (AllClassesWrapper) o; - return allNullableTypes.equals(that.allNullableTypes) - && Objects.equals(allNullableTypesWithoutRecursion, that.allNullableTypesWithoutRecursion) - && Objects.equals(allTypes, that.allTypes); - } - - @Override - public int hashCode() { - return Objects.hash(allNullableTypes, allNullableTypesWithoutRecursion, allTypes); - } - - public static final class Builder { - - private @Nullable AllNullableTypes allNullableTypes; - - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypes(@NonNull AllNullableTypes setterArg) { - this.allNullableTypes = setterArg; - return this; - } - - private @Nullable AllNullableTypesWithoutRecursion allNullableTypesWithoutRecursion; - - @CanIgnoreReturnValue - public @NonNull Builder setAllNullableTypesWithoutRecursion( - @Nullable AllNullableTypesWithoutRecursion setterArg) { - this.allNullableTypesWithoutRecursion = setterArg; - return this; - } - - private @Nullable AllTypes allTypes; - - @CanIgnoreReturnValue - public @NonNull Builder setAllTypes(@Nullable AllTypes setterArg) { - this.allTypes = setterArg; - return this; - } - - public @NonNull AllClassesWrapper build() { - AllClassesWrapper pigeonReturn = new AllClassesWrapper(); - pigeonReturn.setAllNullableTypes(allNullableTypes); - pigeonReturn.setAllNullableTypesWithoutRecursion(allNullableTypesWithoutRecursion); - pigeonReturn.setAllTypes(allTypes); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(3); - toListResult.add(allNullableTypes); - toListResult.add(allNullableTypesWithoutRecursion); - toListResult.add(allTypes); - return toListResult; - } - - static @NonNull AllClassesWrapper fromList(@NonNull ArrayList __pigeon_list) { - AllClassesWrapper pigeonResult = new AllClassesWrapper(); - Object allNullableTypes = __pigeon_list.get(0); - pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object allNullableTypesWithoutRecursion = __pigeon_list.get(1); - pigeonResult.setAllNullableTypesWithoutRecursion( - (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); - Object allTypes = __pigeon_list.get(2); - pigeonResult.setAllTypes((AllTypes) allTypes); - return pigeonResult; - } - } - - /** - * A data class containing a List, used in unit tests. - * - *

Generated class from Pigeon that represents data sent in messages. - */ - public static final class TestMessage { - private @Nullable List testList; - - public @Nullable List getTestList() { - return testList; - } - - public void setTestList(@Nullable List setterArg) { - this.testList = setterArg; - } - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TestMessage that = (TestMessage) o; - return Objects.equals(testList, that.testList); - } - - @Override - public int hashCode() { - return Objects.hash(testList); - } - - public static final class Builder { - - private @Nullable List testList; - - @CanIgnoreReturnValue - public @NonNull Builder setTestList(@Nullable List setterArg) { - this.testList = setterArg; - return this; - } - - public @NonNull TestMessage build() { - TestMessage pigeonReturn = new TestMessage(); - pigeonReturn.setTestList(testList); - return pigeonReturn; - } - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(1); - toListResult.add(testList); - return toListResult; - } - - static @NonNull TestMessage fromList(@NonNull ArrayList __pigeon_list) { - TestMessage pigeonResult = new TestMessage(); - Object testList = __pigeon_list.get(0); - pigeonResult.setTestList((List) testList); - return pigeonResult; - } - } - - public static final class __pigeon_CodecOverflow { - private int type; - - public int getType() { - return type; - } - - public void setType(int setterArg) { - this.type = setterArg; - } - - private @Nullable Object wrapped; - - public @Nullable Object getWrapped() { - return wrapped; - } - - public void setWrapped(@Nullable Object setterArg) { - this.wrapped = setterArg; - } - - @NonNull - ArrayList toList() { - ArrayList toListResult = new ArrayList<>(2); - toListResult.add(type); - toListResult.add(wrapped); - return toListResult; - } - - static @Nullable Object fromList(@NonNull ArrayList __pigeon_list) { - __pigeon_CodecOverflow wrapper = new __pigeon_CodecOverflow(); - Object type = __pigeon_list.get(0); - wrapper.setType((int) type); - Object wrapped = __pigeon_list.get(1); - wrapper.setWrapped(wrapped); - return wrapper.unwrap(); - } - - @Nullable - Object unwrap() { - if (wrapped == null) { - return null; - } - - switch (type) { - case (0): - return AnotherEnum.values()[(int) wrapped]; - case (1): - return AllTypes.fromList((ArrayList) wrapped); - case (2): - return AllNullableTypes.fromList((ArrayList) wrapped); - case (3): - return AllNullableTypesWithoutRecursion.fromList((ArrayList) wrapped); - case (4): - return AllClassesWrapper.fromList((ArrayList) wrapped); - case (5): - return TestMessage.fromList((ArrayList) wrapped); - } - return null; - } - } - - private static class PigeonCodec extends StandardMessageCodec { - public static final PigeonCodec INSTANCE = new PigeonCodec(); - - private PigeonCodec() {} - - @Override - protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { - switch (type) { - case (byte) 129: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum0.values()[(int) value]; - } - case (byte) 130: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum1.values()[(int) value]; - } - case (byte) 131: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum2.values()[(int) value]; - } - case (byte) 132: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum3.values()[(int) value]; - } - case (byte) 133: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum4.values()[(int) value]; - } - case (byte) 134: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum5.values()[(int) value]; - } - case (byte) 135: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum6.values()[(int) value]; - } - case (byte) 136: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum7.values()[(int) value]; - } - case (byte) 137: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum8.values()[(int) value]; - } - case (byte) 138: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum9.values()[(int) value]; - } - case (byte) 139: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum10.values()[(int) value]; - } - case (byte) 140: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum11.values()[(int) value]; - } - case (byte) 141: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum12.values()[(int) value]; - } - case (byte) 142: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum13.values()[(int) value]; - } - case (byte) 143: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum14.values()[(int) value]; - } - case (byte) 144: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum15.values()[(int) value]; - } - case (byte) 145: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum16.values()[(int) value]; - } - case (byte) 146: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum17.values()[(int) value]; - } - case (byte) 147: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum18.values()[(int) value]; - } - case (byte) 148: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum19.values()[(int) value]; - } - case (byte) 149: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum20.values()[(int) value]; - } - case (byte) 150: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum21.values()[(int) value]; - } - case (byte) 151: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum22.values()[(int) value]; - } - case (byte) 152: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum23.values()[(int) value]; - } - case (byte) 153: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum24.values()[(int) value]; - } - case (byte) 154: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum25.values()[(int) value]; - } - case (byte) 155: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum26.values()[(int) value]; - } - case (byte) 156: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum27.values()[(int) value]; - } - case (byte) 157: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum28.values()[(int) value]; - } - case (byte) 158: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum29.values()[(int) value]; - } - case (byte) 159: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum30.values()[(int) value]; - } - case (byte) 160: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum31.values()[(int) value]; - } - case (byte) 161: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum32.values()[(int) value]; - } - case (byte) 162: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum33.values()[(int) value]; - } - case (byte) 163: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum34.values()[(int) value]; - } - case (byte) 164: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum35.values()[(int) value]; - } - case (byte) 165: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum36.values()[(int) value]; - } - case (byte) 166: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum37.values()[(int) value]; - } - case (byte) 167: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum38.values()[(int) value]; - } - case (byte) 168: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum39.values()[(int) value]; - } - case (byte) 169: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum40.values()[(int) value]; - } - case (byte) 170: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum41.values()[(int) value]; - } - case (byte) 171: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum42.values()[(int) value]; - } - case (byte) 172: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum43.values()[(int) value]; - } - case (byte) 173: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum44.values()[(int) value]; - } - case (byte) 174: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum45.values()[(int) value]; - } - case (byte) 175: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum46.values()[(int) value]; - } - case (byte) 176: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum47.values()[(int) value]; - } - case (byte) 177: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum48.values()[(int) value]; - } - case (byte) 178: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum49.values()[(int) value]; - } - case (byte) 179: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum50.values()[(int) value]; - } - case (byte) 180: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum51.values()[(int) value]; - } - case (byte) 181: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum52.values()[(int) value]; - } - case (byte) 182: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum53.values()[(int) value]; - } - case (byte) 183: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum54.values()[(int) value]; - } - case (byte) 184: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum55.values()[(int) value]; - } - case (byte) 185: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum56.values()[(int) value]; - } - case (byte) 186: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum57.values()[(int) value]; - } - case (byte) 187: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum58.values()[(int) value]; - } - case (byte) 188: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum59.values()[(int) value]; - } - case (byte) 189: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum60.values()[(int) value]; - } - case (byte) 190: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum61.values()[(int) value]; - } - case (byte) 191: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum62.values()[(int) value]; - } - case (byte) 192: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum63.values()[(int) value]; - } - case (byte) 193: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum64.values()[(int) value]; - } - case (byte) 194: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum65.values()[(int) value]; - } - case (byte) 195: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum66.values()[(int) value]; - } - case (byte) 196: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum67.values()[(int) value]; - } - case (byte) 197: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum68.values()[(int) value]; - } - case (byte) 198: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum69.values()[(int) value]; - } - case (byte) 199: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum70.values()[(int) value]; - } - case (byte) 200: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum71.values()[(int) value]; - } - case (byte) 201: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum72.values()[(int) value]; - } - case (byte) 202: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum73.values()[(int) value]; - } - case (byte) 203: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum74.values()[(int) value]; - } - case (byte) 204: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum75.values()[(int) value]; - } - case (byte) 205: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum76.values()[(int) value]; - } - case (byte) 206: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum77.values()[(int) value]; - } - case (byte) 207: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum78.values()[(int) value]; - } - case (byte) 208: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum79.values()[(int) value]; - } - case (byte) 209: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum80.values()[(int) value]; - } - case (byte) 210: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum81.values()[(int) value]; - } - case (byte) 211: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum82.values()[(int) value]; - } - case (byte) 212: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum83.values()[(int) value]; - } - case (byte) 213: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum84.values()[(int) value]; - } - case (byte) 214: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum85.values()[(int) value]; - } - case (byte) 215: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum86.values()[(int) value]; - } - case (byte) 216: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum87.values()[(int) value]; - } - case (byte) 217: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum88.values()[(int) value]; - } - case (byte) 218: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum89.values()[(int) value]; - } - case (byte) 219: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum90.values()[(int) value]; - } - case (byte) 220: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum91.values()[(int) value]; - } - case (byte) 221: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum92.values()[(int) value]; - } - case (byte) 222: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum93.values()[(int) value]; - } - case (byte) 223: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum94.values()[(int) value]; - } - case (byte) 224: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum95.values()[(int) value]; - } - case (byte) 225: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum96.values()[(int) value]; - } - case (byte) 226: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum97.values()[(int) value]; - } - case (byte) 227: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum98.values()[(int) value]; - } - case (byte) 228: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum99.values()[(int) value]; - } - case (byte) 229: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum100.values()[(int) value]; - } - case (byte) 230: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum101.values()[(int) value]; - } - case (byte) 231: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum102.values()[(int) value]; - } - case (byte) 232: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum103.values()[(int) value]; - } - case (byte) 233: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum104.values()[(int) value]; - } - case (byte) 234: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum105.values()[(int) value]; - } - case (byte) 235: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum106.values()[(int) value]; - } - case (byte) 236: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum107.values()[(int) value]; - } - case (byte) 237: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum108.values()[(int) value]; - } - case (byte) 238: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum109.values()[(int) value]; - } - case (byte) 239: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum110.values()[(int) value]; - } - case (byte) 240: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum111.values()[(int) value]; - } - case (byte) 241: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum112.values()[(int) value]; - } - case (byte) 242: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum113.values()[(int) value]; - } - case (byte) 243: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum114.values()[(int) value]; - } - case (byte) 244: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum115.values()[(int) value]; - } - case (byte) 245: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum116.values()[(int) value]; - } - case (byte) 246: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum117.values()[(int) value]; - } - case (byte) 247: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum118.values()[(int) value]; - } - case (byte) 248: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum119.values()[(int) value]; - } - case (byte) 249: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum120.values()[(int) value]; - } - case (byte) 250: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum121.values()[(int) value]; - } - case (byte) 251: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum122.values()[(int) value]; - } - case (byte) 252: - { - Object value = readValue(buffer); - return value == null ? null : FillerEnum123.values()[(int) value]; - } - case (byte) 253: + static @NonNull TestMessage fromList(@NonNull ArrayList __pigeon_list) { + TestMessage pigeonResult = new TestMessage(); + Object testList = __pigeon_list.get(0); + pigeonResult.setTestList((List) testList); + return pigeonResult; + } + } + + private static class PigeonCodec extends StandardMessageCodec { + public static final PigeonCodec INSTANCE = new PigeonCodec(); + + private PigeonCodec() {} + + @Override + protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { + switch (type) { + case (byte) 129: { Object value = readValue(buffer); - return value == null ? null : FillerEnum124.values()[(int) value]; + return value == null ? null : AnEnum.values()[(int) value]; } - case (byte) 254: + case (byte) 130: { Object value = readValue(buffer); - return value == null ? null : AnEnum.values()[(int) value]; + return value == null ? null : AnotherEnum.values()[(int) value]; } - case (byte) 255: - return __pigeon_CodecOverflow.fromList((ArrayList) readValue(buffer)); + case (byte) 131: + return AllTypes.fromList((ArrayList) readValue(buffer)); + case (byte) 132: + return AllNullableTypes.fromList((ArrayList) readValue(buffer)); + case (byte) 133: + return AllNullableTypesWithoutRecursion.fromList((ArrayList) readValue(buffer)); + case (byte) 134: + return AllClassesWrapper.fromList((ArrayList) readValue(buffer)); + case (byte) 135: + return TestMessage.fromList((ArrayList) readValue(buffer)); default: return super.readValueOfType(type, buffer); } @@ -3948,420 +2024,27 @@ protected Object readValueOfType(byte type, @NonNull ByteBuffer buffer) { @Override protected void writeValue(@NonNull ByteArrayOutputStream stream, Object value) { - if (value instanceof FillerEnum0) { + if (value instanceof AnEnum) { stream.write(129); - writeValue(stream, value == null ? null : ((FillerEnum0) value).index); - } else if (value instanceof FillerEnum1) { - stream.write(130); - writeValue(stream, value == null ? null : ((FillerEnum1) value).index); - } else if (value instanceof FillerEnum2) { - stream.write(131); - writeValue(stream, value == null ? null : ((FillerEnum2) value).index); - } else if (value instanceof FillerEnum3) { - stream.write(132); - writeValue(stream, value == null ? null : ((FillerEnum3) value).index); - } else if (value instanceof FillerEnum4) { - stream.write(133); - writeValue(stream, value == null ? null : ((FillerEnum4) value).index); - } else if (value instanceof FillerEnum5) { - stream.write(134); - writeValue(stream, value == null ? null : ((FillerEnum5) value).index); - } else if (value instanceof FillerEnum6) { - stream.write(135); - writeValue(stream, value == null ? null : ((FillerEnum6) value).index); - } else if (value instanceof FillerEnum7) { - stream.write(136); - writeValue(stream, value == null ? null : ((FillerEnum7) value).index); - } else if (value instanceof FillerEnum8) { - stream.write(137); - writeValue(stream, value == null ? null : ((FillerEnum8) value).index); - } else if (value instanceof FillerEnum9) { - stream.write(138); - writeValue(stream, value == null ? null : ((FillerEnum9) value).index); - } else if (value instanceof FillerEnum10) { - stream.write(139); - writeValue(stream, value == null ? null : ((FillerEnum10) value).index); - } else if (value instanceof FillerEnum11) { - stream.write(140); - writeValue(stream, value == null ? null : ((FillerEnum11) value).index); - } else if (value instanceof FillerEnum12) { - stream.write(141); - writeValue(stream, value == null ? null : ((FillerEnum12) value).index); - } else if (value instanceof FillerEnum13) { - stream.write(142); - writeValue(stream, value == null ? null : ((FillerEnum13) value).index); - } else if (value instanceof FillerEnum14) { - stream.write(143); - writeValue(stream, value == null ? null : ((FillerEnum14) value).index); - } else if (value instanceof FillerEnum15) { - stream.write(144); - writeValue(stream, value == null ? null : ((FillerEnum15) value).index); - } else if (value instanceof FillerEnum16) { - stream.write(145); - writeValue(stream, value == null ? null : ((FillerEnum16) value).index); - } else if (value instanceof FillerEnum17) { - stream.write(146); - writeValue(stream, value == null ? null : ((FillerEnum17) value).index); - } else if (value instanceof FillerEnum18) { - stream.write(147); - writeValue(stream, value == null ? null : ((FillerEnum18) value).index); - } else if (value instanceof FillerEnum19) { - stream.write(148); - writeValue(stream, value == null ? null : ((FillerEnum19) value).index); - } else if (value instanceof FillerEnum20) { - stream.write(149); - writeValue(stream, value == null ? null : ((FillerEnum20) value).index); - } else if (value instanceof FillerEnum21) { - stream.write(150); - writeValue(stream, value == null ? null : ((FillerEnum21) value).index); - } else if (value instanceof FillerEnum22) { - stream.write(151); - writeValue(stream, value == null ? null : ((FillerEnum22) value).index); - } else if (value instanceof FillerEnum23) { - stream.write(152); - writeValue(stream, value == null ? null : ((FillerEnum23) value).index); - } else if (value instanceof FillerEnum24) { - stream.write(153); - writeValue(stream, value == null ? null : ((FillerEnum24) value).index); - } else if (value instanceof FillerEnum25) { - stream.write(154); - writeValue(stream, value == null ? null : ((FillerEnum25) value).index); - } else if (value instanceof FillerEnum26) { - stream.write(155); - writeValue(stream, value == null ? null : ((FillerEnum26) value).index); - } else if (value instanceof FillerEnum27) { - stream.write(156); - writeValue(stream, value == null ? null : ((FillerEnum27) value).index); - } else if (value instanceof FillerEnum28) { - stream.write(157); - writeValue(stream, value == null ? null : ((FillerEnum28) value).index); - } else if (value instanceof FillerEnum29) { - stream.write(158); - writeValue(stream, value == null ? null : ((FillerEnum29) value).index); - } else if (value instanceof FillerEnum30) { - stream.write(159); - writeValue(stream, value == null ? null : ((FillerEnum30) value).index); - } else if (value instanceof FillerEnum31) { - stream.write(160); - writeValue(stream, value == null ? null : ((FillerEnum31) value).index); - } else if (value instanceof FillerEnum32) { - stream.write(161); - writeValue(stream, value == null ? null : ((FillerEnum32) value).index); - } else if (value instanceof FillerEnum33) { - stream.write(162); - writeValue(stream, value == null ? null : ((FillerEnum33) value).index); - } else if (value instanceof FillerEnum34) { - stream.write(163); - writeValue(stream, value == null ? null : ((FillerEnum34) value).index); - } else if (value instanceof FillerEnum35) { - stream.write(164); - writeValue(stream, value == null ? null : ((FillerEnum35) value).index); - } else if (value instanceof FillerEnum36) { - stream.write(165); - writeValue(stream, value == null ? null : ((FillerEnum36) value).index); - } else if (value instanceof FillerEnum37) { - stream.write(166); - writeValue(stream, value == null ? null : ((FillerEnum37) value).index); - } else if (value instanceof FillerEnum38) { - stream.write(167); - writeValue(stream, value == null ? null : ((FillerEnum38) value).index); - } else if (value instanceof FillerEnum39) { - stream.write(168); - writeValue(stream, value == null ? null : ((FillerEnum39) value).index); - } else if (value instanceof FillerEnum40) { - stream.write(169); - writeValue(stream, value == null ? null : ((FillerEnum40) value).index); - } else if (value instanceof FillerEnum41) { - stream.write(170); - writeValue(stream, value == null ? null : ((FillerEnum41) value).index); - } else if (value instanceof FillerEnum42) { - stream.write(171); - writeValue(stream, value == null ? null : ((FillerEnum42) value).index); - } else if (value instanceof FillerEnum43) { - stream.write(172); - writeValue(stream, value == null ? null : ((FillerEnum43) value).index); - } else if (value instanceof FillerEnum44) { - stream.write(173); - writeValue(stream, value == null ? null : ((FillerEnum44) value).index); - } else if (value instanceof FillerEnum45) { - stream.write(174); - writeValue(stream, value == null ? null : ((FillerEnum45) value).index); - } else if (value instanceof FillerEnum46) { - stream.write(175); - writeValue(stream, value == null ? null : ((FillerEnum46) value).index); - } else if (value instanceof FillerEnum47) { - stream.write(176); - writeValue(stream, value == null ? null : ((FillerEnum47) value).index); - } else if (value instanceof FillerEnum48) { - stream.write(177); - writeValue(stream, value == null ? null : ((FillerEnum48) value).index); - } else if (value instanceof FillerEnum49) { - stream.write(178); - writeValue(stream, value == null ? null : ((FillerEnum49) value).index); - } else if (value instanceof FillerEnum50) { - stream.write(179); - writeValue(stream, value == null ? null : ((FillerEnum50) value).index); - } else if (value instanceof FillerEnum51) { - stream.write(180); - writeValue(stream, value == null ? null : ((FillerEnum51) value).index); - } else if (value instanceof FillerEnum52) { - stream.write(181); - writeValue(stream, value == null ? null : ((FillerEnum52) value).index); - } else if (value instanceof FillerEnum53) { - stream.write(182); - writeValue(stream, value == null ? null : ((FillerEnum53) value).index); - } else if (value instanceof FillerEnum54) { - stream.write(183); - writeValue(stream, value == null ? null : ((FillerEnum54) value).index); - } else if (value instanceof FillerEnum55) { - stream.write(184); - writeValue(stream, value == null ? null : ((FillerEnum55) value).index); - } else if (value instanceof FillerEnum56) { - stream.write(185); - writeValue(stream, value == null ? null : ((FillerEnum56) value).index); - } else if (value instanceof FillerEnum57) { - stream.write(186); - writeValue(stream, value == null ? null : ((FillerEnum57) value).index); - } else if (value instanceof FillerEnum58) { - stream.write(187); - writeValue(stream, value == null ? null : ((FillerEnum58) value).index); - } else if (value instanceof FillerEnum59) { - stream.write(188); - writeValue(stream, value == null ? null : ((FillerEnum59) value).index); - } else if (value instanceof FillerEnum60) { - stream.write(189); - writeValue(stream, value == null ? null : ((FillerEnum60) value).index); - } else if (value instanceof FillerEnum61) { - stream.write(190); - writeValue(stream, value == null ? null : ((FillerEnum61) value).index); - } else if (value instanceof FillerEnum62) { - stream.write(191); - writeValue(stream, value == null ? null : ((FillerEnum62) value).index); - } else if (value instanceof FillerEnum63) { - stream.write(192); - writeValue(stream, value == null ? null : ((FillerEnum63) value).index); - } else if (value instanceof FillerEnum64) { - stream.write(193); - writeValue(stream, value == null ? null : ((FillerEnum64) value).index); - } else if (value instanceof FillerEnum65) { - stream.write(194); - writeValue(stream, value == null ? null : ((FillerEnum65) value).index); - } else if (value instanceof FillerEnum66) { - stream.write(195); - writeValue(stream, value == null ? null : ((FillerEnum66) value).index); - } else if (value instanceof FillerEnum67) { - stream.write(196); - writeValue(stream, value == null ? null : ((FillerEnum67) value).index); - } else if (value instanceof FillerEnum68) { - stream.write(197); - writeValue(stream, value == null ? null : ((FillerEnum68) value).index); - } else if (value instanceof FillerEnum69) { - stream.write(198); - writeValue(stream, value == null ? null : ((FillerEnum69) value).index); - } else if (value instanceof FillerEnum70) { - stream.write(199); - writeValue(stream, value == null ? null : ((FillerEnum70) value).index); - } else if (value instanceof FillerEnum71) { - stream.write(200); - writeValue(stream, value == null ? null : ((FillerEnum71) value).index); - } else if (value instanceof FillerEnum72) { - stream.write(201); - writeValue(stream, value == null ? null : ((FillerEnum72) value).index); - } else if (value instanceof FillerEnum73) { - stream.write(202); - writeValue(stream, value == null ? null : ((FillerEnum73) value).index); - } else if (value instanceof FillerEnum74) { - stream.write(203); - writeValue(stream, value == null ? null : ((FillerEnum74) value).index); - } else if (value instanceof FillerEnum75) { - stream.write(204); - writeValue(stream, value == null ? null : ((FillerEnum75) value).index); - } else if (value instanceof FillerEnum76) { - stream.write(205); - writeValue(stream, value == null ? null : ((FillerEnum76) value).index); - } else if (value instanceof FillerEnum77) { - stream.write(206); - writeValue(stream, value == null ? null : ((FillerEnum77) value).index); - } else if (value instanceof FillerEnum78) { - stream.write(207); - writeValue(stream, value == null ? null : ((FillerEnum78) value).index); - } else if (value instanceof FillerEnum79) { - stream.write(208); - writeValue(stream, value == null ? null : ((FillerEnum79) value).index); - } else if (value instanceof FillerEnum80) { - stream.write(209); - writeValue(stream, value == null ? null : ((FillerEnum80) value).index); - } else if (value instanceof FillerEnum81) { - stream.write(210); - writeValue(stream, value == null ? null : ((FillerEnum81) value).index); - } else if (value instanceof FillerEnum82) { - stream.write(211); - writeValue(stream, value == null ? null : ((FillerEnum82) value).index); - } else if (value instanceof FillerEnum83) { - stream.write(212); - writeValue(stream, value == null ? null : ((FillerEnum83) value).index); - } else if (value instanceof FillerEnum84) { - stream.write(213); - writeValue(stream, value == null ? null : ((FillerEnum84) value).index); - } else if (value instanceof FillerEnum85) { - stream.write(214); - writeValue(stream, value == null ? null : ((FillerEnum85) value).index); - } else if (value instanceof FillerEnum86) { - stream.write(215); - writeValue(stream, value == null ? null : ((FillerEnum86) value).index); - } else if (value instanceof FillerEnum87) { - stream.write(216); - writeValue(stream, value == null ? null : ((FillerEnum87) value).index); - } else if (value instanceof FillerEnum88) { - stream.write(217); - writeValue(stream, value == null ? null : ((FillerEnum88) value).index); - } else if (value instanceof FillerEnum89) { - stream.write(218); - writeValue(stream, value == null ? null : ((FillerEnum89) value).index); - } else if (value instanceof FillerEnum90) { - stream.write(219); - writeValue(stream, value == null ? null : ((FillerEnum90) value).index); - } else if (value instanceof FillerEnum91) { - stream.write(220); - writeValue(stream, value == null ? null : ((FillerEnum91) value).index); - } else if (value instanceof FillerEnum92) { - stream.write(221); - writeValue(stream, value == null ? null : ((FillerEnum92) value).index); - } else if (value instanceof FillerEnum93) { - stream.write(222); - writeValue(stream, value == null ? null : ((FillerEnum93) value).index); - } else if (value instanceof FillerEnum94) { - stream.write(223); - writeValue(stream, value == null ? null : ((FillerEnum94) value).index); - } else if (value instanceof FillerEnum95) { - stream.write(224); - writeValue(stream, value == null ? null : ((FillerEnum95) value).index); - } else if (value instanceof FillerEnum96) { - stream.write(225); - writeValue(stream, value == null ? null : ((FillerEnum96) value).index); - } else if (value instanceof FillerEnum97) { - stream.write(226); - writeValue(stream, value == null ? null : ((FillerEnum97) value).index); - } else if (value instanceof FillerEnum98) { - stream.write(227); - writeValue(stream, value == null ? null : ((FillerEnum98) value).index); - } else if (value instanceof FillerEnum99) { - stream.write(228); - writeValue(stream, value == null ? null : ((FillerEnum99) value).index); - } else if (value instanceof FillerEnum100) { - stream.write(229); - writeValue(stream, value == null ? null : ((FillerEnum100) value).index); - } else if (value instanceof FillerEnum101) { - stream.write(230); - writeValue(stream, value == null ? null : ((FillerEnum101) value).index); - } else if (value instanceof FillerEnum102) { - stream.write(231); - writeValue(stream, value == null ? null : ((FillerEnum102) value).index); - } else if (value instanceof FillerEnum103) { - stream.write(232); - writeValue(stream, value == null ? null : ((FillerEnum103) value).index); - } else if (value instanceof FillerEnum104) { - stream.write(233); - writeValue(stream, value == null ? null : ((FillerEnum104) value).index); - } else if (value instanceof FillerEnum105) { - stream.write(234); - writeValue(stream, value == null ? null : ((FillerEnum105) value).index); - } else if (value instanceof FillerEnum106) { - stream.write(235); - writeValue(stream, value == null ? null : ((FillerEnum106) value).index); - } else if (value instanceof FillerEnum107) { - stream.write(236); - writeValue(stream, value == null ? null : ((FillerEnum107) value).index); - } else if (value instanceof FillerEnum108) { - stream.write(237); - writeValue(stream, value == null ? null : ((FillerEnum108) value).index); - } else if (value instanceof FillerEnum109) { - stream.write(238); - writeValue(stream, value == null ? null : ((FillerEnum109) value).index); - } else if (value instanceof FillerEnum110) { - stream.write(239); - writeValue(stream, value == null ? null : ((FillerEnum110) value).index); - } else if (value instanceof FillerEnum111) { - stream.write(240); - writeValue(stream, value == null ? null : ((FillerEnum111) value).index); - } else if (value instanceof FillerEnum112) { - stream.write(241); - writeValue(stream, value == null ? null : ((FillerEnum112) value).index); - } else if (value instanceof FillerEnum113) { - stream.write(242); - writeValue(stream, value == null ? null : ((FillerEnum113) value).index); - } else if (value instanceof FillerEnum114) { - stream.write(243); - writeValue(stream, value == null ? null : ((FillerEnum114) value).index); - } else if (value instanceof FillerEnum115) { - stream.write(244); - writeValue(stream, value == null ? null : ((FillerEnum115) value).index); - } else if (value instanceof FillerEnum116) { - stream.write(245); - writeValue(stream, value == null ? null : ((FillerEnum116) value).index); - } else if (value instanceof FillerEnum117) { - stream.write(246); - writeValue(stream, value == null ? null : ((FillerEnum117) value).index); - } else if (value instanceof FillerEnum118) { - stream.write(247); - writeValue(stream, value == null ? null : ((FillerEnum118) value).index); - } else if (value instanceof FillerEnum119) { - stream.write(248); - writeValue(stream, value == null ? null : ((FillerEnum119) value).index); - } else if (value instanceof FillerEnum120) { - stream.write(249); - writeValue(stream, value == null ? null : ((FillerEnum120) value).index); - } else if (value instanceof FillerEnum121) { - stream.write(250); - writeValue(stream, value == null ? null : ((FillerEnum121) value).index); - } else if (value instanceof FillerEnum122) { - stream.write(251); - writeValue(stream, value == null ? null : ((FillerEnum122) value).index); - } else if (value instanceof FillerEnum123) { - stream.write(252); - writeValue(stream, value == null ? null : ((FillerEnum123) value).index); - } else if (value instanceof FillerEnum124) { - stream.write(253); - writeValue(stream, value == null ? null : ((FillerEnum124) value).index); - } else if (value instanceof AnEnum) { - stream.write(254); writeValue(stream, value == null ? null : ((AnEnum) value).index); } else if (value instanceof AnotherEnum) { - __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); - wrap.setType(0); - wrap.setWrapped(value == null ? null : ((AnotherEnum) value).index); - stream.write(255); - writeValue(stream, wrap.toList()); + stream.write(130); + writeValue(stream, value == null ? null : ((AnotherEnum) value).index); } else if (value instanceof AllTypes) { - __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); - wrap.setType(1); - wrap.setWrapped(((AllTypes) value).toList()); - stream.write(255); - writeValue(stream, wrap.toList()); + stream.write(131); + writeValue(stream, ((AllTypes) value).toList()); } else if (value instanceof AllNullableTypes) { - __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); - wrap.setType(2); - wrap.setWrapped(((AllNullableTypes) value).toList()); - stream.write(255); - writeValue(stream, wrap.toList()); + stream.write(132); + writeValue(stream, ((AllNullableTypes) value).toList()); } else if (value instanceof AllNullableTypesWithoutRecursion) { - __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); - wrap.setType(3); - wrap.setWrapped(((AllNullableTypesWithoutRecursion) value).toList()); - stream.write(255); - writeValue(stream, wrap.toList()); + stream.write(133); + writeValue(stream, ((AllNullableTypesWithoutRecursion) value).toList()); } else if (value instanceof AllClassesWrapper) { - __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); - wrap.setType(4); - wrap.setWrapped(((AllClassesWrapper) value).toList()); - stream.write(255); - writeValue(stream, wrap.toList()); + stream.write(134); + writeValue(stream, ((AllClassesWrapper) value).toList()); } else if (value instanceof TestMessage) { - __pigeon_CodecOverflow wrap = new __pigeon_CodecOverflow(); - wrap.setType(5); - wrap.setWrapped(((TestMessage) value).toList()); - stream.write(255); - writeValue(stream, wrap.toList()); + stream.write(135); + writeValue(stream, ((TestMessage) value).toList()); } else { super.writeValue(stream, value); } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h index ad76df49974..f3fa20aa6a4 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.h @@ -14,1256 +14,6 @@ NS_ASSUME_NONNULL_BEGIN -typedef NS_ENUM(NSUInteger, FLTFillerEnum0) { - FLTFillerEnum0FillerMember0 = 0, -}; - -/// Wrapper for FLTFillerEnum0 to allow for nullability. -@interface FLTFillerEnum0Box : NSObject -@property(nonatomic, assign) FLTFillerEnum0 value; -- (instancetype)initWithValue:(FLTFillerEnum0)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum1) { - FLTFillerEnum1FillerMember1 = 0, -}; - -/// Wrapper for FLTFillerEnum1 to allow for nullability. -@interface FLTFillerEnum1Box : NSObject -@property(nonatomic, assign) FLTFillerEnum1 value; -- (instancetype)initWithValue:(FLTFillerEnum1)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum2) { - FLTFillerEnum2FillerMember2 = 0, -}; - -/// Wrapper for FLTFillerEnum2 to allow for nullability. -@interface FLTFillerEnum2Box : NSObject -@property(nonatomic, assign) FLTFillerEnum2 value; -- (instancetype)initWithValue:(FLTFillerEnum2)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum3) { - FLTFillerEnum3FillerMember3 = 0, -}; - -/// Wrapper for FLTFillerEnum3 to allow for nullability. -@interface FLTFillerEnum3Box : NSObject -@property(nonatomic, assign) FLTFillerEnum3 value; -- (instancetype)initWithValue:(FLTFillerEnum3)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum4) { - FLTFillerEnum4FillerMember4 = 0, -}; - -/// Wrapper for FLTFillerEnum4 to allow for nullability. -@interface FLTFillerEnum4Box : NSObject -@property(nonatomic, assign) FLTFillerEnum4 value; -- (instancetype)initWithValue:(FLTFillerEnum4)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum5) { - FLTFillerEnum5FillerMember5 = 0, -}; - -/// Wrapper for FLTFillerEnum5 to allow for nullability. -@interface FLTFillerEnum5Box : NSObject -@property(nonatomic, assign) FLTFillerEnum5 value; -- (instancetype)initWithValue:(FLTFillerEnum5)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum6) { - FLTFillerEnum6FillerMember6 = 0, -}; - -/// Wrapper for FLTFillerEnum6 to allow for nullability. -@interface FLTFillerEnum6Box : NSObject -@property(nonatomic, assign) FLTFillerEnum6 value; -- (instancetype)initWithValue:(FLTFillerEnum6)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum7) { - FLTFillerEnum7FillerMember7 = 0, -}; - -/// Wrapper for FLTFillerEnum7 to allow for nullability. -@interface FLTFillerEnum7Box : NSObject -@property(nonatomic, assign) FLTFillerEnum7 value; -- (instancetype)initWithValue:(FLTFillerEnum7)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum8) { - FLTFillerEnum8FillerMember8 = 0, -}; - -/// Wrapper for FLTFillerEnum8 to allow for nullability. -@interface FLTFillerEnum8Box : NSObject -@property(nonatomic, assign) FLTFillerEnum8 value; -- (instancetype)initWithValue:(FLTFillerEnum8)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum9) { - FLTFillerEnum9FillerMember9 = 0, -}; - -/// Wrapper for FLTFillerEnum9 to allow for nullability. -@interface FLTFillerEnum9Box : NSObject -@property(nonatomic, assign) FLTFillerEnum9 value; -- (instancetype)initWithValue:(FLTFillerEnum9)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum10) { - FLTFillerEnum10FillerMember10 = 0, -}; - -/// Wrapper for FLTFillerEnum10 to allow for nullability. -@interface FLTFillerEnum10Box : NSObject -@property(nonatomic, assign) FLTFillerEnum10 value; -- (instancetype)initWithValue:(FLTFillerEnum10)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum11) { - FLTFillerEnum11FillerMember11 = 0, -}; - -/// Wrapper for FLTFillerEnum11 to allow for nullability. -@interface FLTFillerEnum11Box : NSObject -@property(nonatomic, assign) FLTFillerEnum11 value; -- (instancetype)initWithValue:(FLTFillerEnum11)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum12) { - FLTFillerEnum12FillerMember12 = 0, -}; - -/// Wrapper for FLTFillerEnum12 to allow for nullability. -@interface FLTFillerEnum12Box : NSObject -@property(nonatomic, assign) FLTFillerEnum12 value; -- (instancetype)initWithValue:(FLTFillerEnum12)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum13) { - FLTFillerEnum13FillerMember13 = 0, -}; - -/// Wrapper for FLTFillerEnum13 to allow for nullability. -@interface FLTFillerEnum13Box : NSObject -@property(nonatomic, assign) FLTFillerEnum13 value; -- (instancetype)initWithValue:(FLTFillerEnum13)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum14) { - FLTFillerEnum14FillerMember14 = 0, -}; - -/// Wrapper for FLTFillerEnum14 to allow for nullability. -@interface FLTFillerEnum14Box : NSObject -@property(nonatomic, assign) FLTFillerEnum14 value; -- (instancetype)initWithValue:(FLTFillerEnum14)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum15) { - FLTFillerEnum15FillerMember15 = 0, -}; - -/// Wrapper for FLTFillerEnum15 to allow for nullability. -@interface FLTFillerEnum15Box : NSObject -@property(nonatomic, assign) FLTFillerEnum15 value; -- (instancetype)initWithValue:(FLTFillerEnum15)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum16) { - FLTFillerEnum16FillerMember16 = 0, -}; - -/// Wrapper for FLTFillerEnum16 to allow for nullability. -@interface FLTFillerEnum16Box : NSObject -@property(nonatomic, assign) FLTFillerEnum16 value; -- (instancetype)initWithValue:(FLTFillerEnum16)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum17) { - FLTFillerEnum17FillerMember17 = 0, -}; - -/// Wrapper for FLTFillerEnum17 to allow for nullability. -@interface FLTFillerEnum17Box : NSObject -@property(nonatomic, assign) FLTFillerEnum17 value; -- (instancetype)initWithValue:(FLTFillerEnum17)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum18) { - FLTFillerEnum18FillerMember18 = 0, -}; - -/// Wrapper for FLTFillerEnum18 to allow for nullability. -@interface FLTFillerEnum18Box : NSObject -@property(nonatomic, assign) FLTFillerEnum18 value; -- (instancetype)initWithValue:(FLTFillerEnum18)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum19) { - FLTFillerEnum19FillerMember19 = 0, -}; - -/// Wrapper for FLTFillerEnum19 to allow for nullability. -@interface FLTFillerEnum19Box : NSObject -@property(nonatomic, assign) FLTFillerEnum19 value; -- (instancetype)initWithValue:(FLTFillerEnum19)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum20) { - FLTFillerEnum20FillerMember20 = 0, -}; - -/// Wrapper for FLTFillerEnum20 to allow for nullability. -@interface FLTFillerEnum20Box : NSObject -@property(nonatomic, assign) FLTFillerEnum20 value; -- (instancetype)initWithValue:(FLTFillerEnum20)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum21) { - FLTFillerEnum21FillerMember21 = 0, -}; - -/// Wrapper for FLTFillerEnum21 to allow for nullability. -@interface FLTFillerEnum21Box : NSObject -@property(nonatomic, assign) FLTFillerEnum21 value; -- (instancetype)initWithValue:(FLTFillerEnum21)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum22) { - FLTFillerEnum22FillerMember22 = 0, -}; - -/// Wrapper for FLTFillerEnum22 to allow for nullability. -@interface FLTFillerEnum22Box : NSObject -@property(nonatomic, assign) FLTFillerEnum22 value; -- (instancetype)initWithValue:(FLTFillerEnum22)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum23) { - FLTFillerEnum23FillerMember23 = 0, -}; - -/// Wrapper for FLTFillerEnum23 to allow for nullability. -@interface FLTFillerEnum23Box : NSObject -@property(nonatomic, assign) FLTFillerEnum23 value; -- (instancetype)initWithValue:(FLTFillerEnum23)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum24) { - FLTFillerEnum24FillerMember24 = 0, -}; - -/// Wrapper for FLTFillerEnum24 to allow for nullability. -@interface FLTFillerEnum24Box : NSObject -@property(nonatomic, assign) FLTFillerEnum24 value; -- (instancetype)initWithValue:(FLTFillerEnum24)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum25) { - FLTFillerEnum25FillerMember25 = 0, -}; - -/// Wrapper for FLTFillerEnum25 to allow for nullability. -@interface FLTFillerEnum25Box : NSObject -@property(nonatomic, assign) FLTFillerEnum25 value; -- (instancetype)initWithValue:(FLTFillerEnum25)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum26) { - FLTFillerEnum26FillerMember26 = 0, -}; - -/// Wrapper for FLTFillerEnum26 to allow for nullability. -@interface FLTFillerEnum26Box : NSObject -@property(nonatomic, assign) FLTFillerEnum26 value; -- (instancetype)initWithValue:(FLTFillerEnum26)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum27) { - FLTFillerEnum27FillerMember27 = 0, -}; - -/// Wrapper for FLTFillerEnum27 to allow for nullability. -@interface FLTFillerEnum27Box : NSObject -@property(nonatomic, assign) FLTFillerEnum27 value; -- (instancetype)initWithValue:(FLTFillerEnum27)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum28) { - FLTFillerEnum28FillerMember28 = 0, -}; - -/// Wrapper for FLTFillerEnum28 to allow for nullability. -@interface FLTFillerEnum28Box : NSObject -@property(nonatomic, assign) FLTFillerEnum28 value; -- (instancetype)initWithValue:(FLTFillerEnum28)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum29) { - FLTFillerEnum29FillerMember29 = 0, -}; - -/// Wrapper for FLTFillerEnum29 to allow for nullability. -@interface FLTFillerEnum29Box : NSObject -@property(nonatomic, assign) FLTFillerEnum29 value; -- (instancetype)initWithValue:(FLTFillerEnum29)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum30) { - FLTFillerEnum30FillerMember30 = 0, -}; - -/// Wrapper for FLTFillerEnum30 to allow for nullability. -@interface FLTFillerEnum30Box : NSObject -@property(nonatomic, assign) FLTFillerEnum30 value; -- (instancetype)initWithValue:(FLTFillerEnum30)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum31) { - FLTFillerEnum31FillerMember31 = 0, -}; - -/// Wrapper for FLTFillerEnum31 to allow for nullability. -@interface FLTFillerEnum31Box : NSObject -@property(nonatomic, assign) FLTFillerEnum31 value; -- (instancetype)initWithValue:(FLTFillerEnum31)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum32) { - FLTFillerEnum32FillerMember32 = 0, -}; - -/// Wrapper for FLTFillerEnum32 to allow for nullability. -@interface FLTFillerEnum32Box : NSObject -@property(nonatomic, assign) FLTFillerEnum32 value; -- (instancetype)initWithValue:(FLTFillerEnum32)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum33) { - FLTFillerEnum33FillerMember33 = 0, -}; - -/// Wrapper for FLTFillerEnum33 to allow for nullability. -@interface FLTFillerEnum33Box : NSObject -@property(nonatomic, assign) FLTFillerEnum33 value; -- (instancetype)initWithValue:(FLTFillerEnum33)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum34) { - FLTFillerEnum34FillerMember34 = 0, -}; - -/// Wrapper for FLTFillerEnum34 to allow for nullability. -@interface FLTFillerEnum34Box : NSObject -@property(nonatomic, assign) FLTFillerEnum34 value; -- (instancetype)initWithValue:(FLTFillerEnum34)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum35) { - FLTFillerEnum35FillerMember35 = 0, -}; - -/// Wrapper for FLTFillerEnum35 to allow for nullability. -@interface FLTFillerEnum35Box : NSObject -@property(nonatomic, assign) FLTFillerEnum35 value; -- (instancetype)initWithValue:(FLTFillerEnum35)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum36) { - FLTFillerEnum36FillerMember36 = 0, -}; - -/// Wrapper for FLTFillerEnum36 to allow for nullability. -@interface FLTFillerEnum36Box : NSObject -@property(nonatomic, assign) FLTFillerEnum36 value; -- (instancetype)initWithValue:(FLTFillerEnum36)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum37) { - FLTFillerEnum37FillerMember37 = 0, -}; - -/// Wrapper for FLTFillerEnum37 to allow for nullability. -@interface FLTFillerEnum37Box : NSObject -@property(nonatomic, assign) FLTFillerEnum37 value; -- (instancetype)initWithValue:(FLTFillerEnum37)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum38) { - FLTFillerEnum38FillerMember38 = 0, -}; - -/// Wrapper for FLTFillerEnum38 to allow for nullability. -@interface FLTFillerEnum38Box : NSObject -@property(nonatomic, assign) FLTFillerEnum38 value; -- (instancetype)initWithValue:(FLTFillerEnum38)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum39) { - FLTFillerEnum39FillerMember39 = 0, -}; - -/// Wrapper for FLTFillerEnum39 to allow for nullability. -@interface FLTFillerEnum39Box : NSObject -@property(nonatomic, assign) FLTFillerEnum39 value; -- (instancetype)initWithValue:(FLTFillerEnum39)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum40) { - FLTFillerEnum40FillerMember40 = 0, -}; - -/// Wrapper for FLTFillerEnum40 to allow for nullability. -@interface FLTFillerEnum40Box : NSObject -@property(nonatomic, assign) FLTFillerEnum40 value; -- (instancetype)initWithValue:(FLTFillerEnum40)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum41) { - FLTFillerEnum41FillerMember41 = 0, -}; - -/// Wrapper for FLTFillerEnum41 to allow for nullability. -@interface FLTFillerEnum41Box : NSObject -@property(nonatomic, assign) FLTFillerEnum41 value; -- (instancetype)initWithValue:(FLTFillerEnum41)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum42) { - FLTFillerEnum42FillerMember42 = 0, -}; - -/// Wrapper for FLTFillerEnum42 to allow for nullability. -@interface FLTFillerEnum42Box : NSObject -@property(nonatomic, assign) FLTFillerEnum42 value; -- (instancetype)initWithValue:(FLTFillerEnum42)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum43) { - FLTFillerEnum43FillerMember43 = 0, -}; - -/// Wrapper for FLTFillerEnum43 to allow for nullability. -@interface FLTFillerEnum43Box : NSObject -@property(nonatomic, assign) FLTFillerEnum43 value; -- (instancetype)initWithValue:(FLTFillerEnum43)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum44) { - FLTFillerEnum44FillerMember44 = 0, -}; - -/// Wrapper for FLTFillerEnum44 to allow for nullability. -@interface FLTFillerEnum44Box : NSObject -@property(nonatomic, assign) FLTFillerEnum44 value; -- (instancetype)initWithValue:(FLTFillerEnum44)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum45) { - FLTFillerEnum45FillerMember45 = 0, -}; - -/// Wrapper for FLTFillerEnum45 to allow for nullability. -@interface FLTFillerEnum45Box : NSObject -@property(nonatomic, assign) FLTFillerEnum45 value; -- (instancetype)initWithValue:(FLTFillerEnum45)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum46) { - FLTFillerEnum46FillerMember46 = 0, -}; - -/// Wrapper for FLTFillerEnum46 to allow for nullability. -@interface FLTFillerEnum46Box : NSObject -@property(nonatomic, assign) FLTFillerEnum46 value; -- (instancetype)initWithValue:(FLTFillerEnum46)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum47) { - FLTFillerEnum47FillerMember47 = 0, -}; - -/// Wrapper for FLTFillerEnum47 to allow for nullability. -@interface FLTFillerEnum47Box : NSObject -@property(nonatomic, assign) FLTFillerEnum47 value; -- (instancetype)initWithValue:(FLTFillerEnum47)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum48) { - FLTFillerEnum48FillerMember48 = 0, -}; - -/// Wrapper for FLTFillerEnum48 to allow for nullability. -@interface FLTFillerEnum48Box : NSObject -@property(nonatomic, assign) FLTFillerEnum48 value; -- (instancetype)initWithValue:(FLTFillerEnum48)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum49) { - FLTFillerEnum49FillerMember49 = 0, -}; - -/// Wrapper for FLTFillerEnum49 to allow for nullability. -@interface FLTFillerEnum49Box : NSObject -@property(nonatomic, assign) FLTFillerEnum49 value; -- (instancetype)initWithValue:(FLTFillerEnum49)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum50) { - FLTFillerEnum50FillerMember50 = 0, -}; - -/// Wrapper for FLTFillerEnum50 to allow for nullability. -@interface FLTFillerEnum50Box : NSObject -@property(nonatomic, assign) FLTFillerEnum50 value; -- (instancetype)initWithValue:(FLTFillerEnum50)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum51) { - FLTFillerEnum51FillerMember51 = 0, -}; - -/// Wrapper for FLTFillerEnum51 to allow for nullability. -@interface FLTFillerEnum51Box : NSObject -@property(nonatomic, assign) FLTFillerEnum51 value; -- (instancetype)initWithValue:(FLTFillerEnum51)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum52) { - FLTFillerEnum52FillerMember52 = 0, -}; - -/// Wrapper for FLTFillerEnum52 to allow for nullability. -@interface FLTFillerEnum52Box : NSObject -@property(nonatomic, assign) FLTFillerEnum52 value; -- (instancetype)initWithValue:(FLTFillerEnum52)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum53) { - FLTFillerEnum53FillerMember53 = 0, -}; - -/// Wrapper for FLTFillerEnum53 to allow for nullability. -@interface FLTFillerEnum53Box : NSObject -@property(nonatomic, assign) FLTFillerEnum53 value; -- (instancetype)initWithValue:(FLTFillerEnum53)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum54) { - FLTFillerEnum54FillerMember54 = 0, -}; - -/// Wrapper for FLTFillerEnum54 to allow for nullability. -@interface FLTFillerEnum54Box : NSObject -@property(nonatomic, assign) FLTFillerEnum54 value; -- (instancetype)initWithValue:(FLTFillerEnum54)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum55) { - FLTFillerEnum55FillerMember55 = 0, -}; - -/// Wrapper for FLTFillerEnum55 to allow for nullability. -@interface FLTFillerEnum55Box : NSObject -@property(nonatomic, assign) FLTFillerEnum55 value; -- (instancetype)initWithValue:(FLTFillerEnum55)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum56) { - FLTFillerEnum56FillerMember56 = 0, -}; - -/// Wrapper for FLTFillerEnum56 to allow for nullability. -@interface FLTFillerEnum56Box : NSObject -@property(nonatomic, assign) FLTFillerEnum56 value; -- (instancetype)initWithValue:(FLTFillerEnum56)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum57) { - FLTFillerEnum57FillerMember57 = 0, -}; - -/// Wrapper for FLTFillerEnum57 to allow for nullability. -@interface FLTFillerEnum57Box : NSObject -@property(nonatomic, assign) FLTFillerEnum57 value; -- (instancetype)initWithValue:(FLTFillerEnum57)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum58) { - FLTFillerEnum58FillerMember58 = 0, -}; - -/// Wrapper for FLTFillerEnum58 to allow for nullability. -@interface FLTFillerEnum58Box : NSObject -@property(nonatomic, assign) FLTFillerEnum58 value; -- (instancetype)initWithValue:(FLTFillerEnum58)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum59) { - FLTFillerEnum59FillerMember59 = 0, -}; - -/// Wrapper for FLTFillerEnum59 to allow for nullability. -@interface FLTFillerEnum59Box : NSObject -@property(nonatomic, assign) FLTFillerEnum59 value; -- (instancetype)initWithValue:(FLTFillerEnum59)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum60) { - FLTFillerEnum60FillerMember60 = 0, -}; - -/// Wrapper for FLTFillerEnum60 to allow for nullability. -@interface FLTFillerEnum60Box : NSObject -@property(nonatomic, assign) FLTFillerEnum60 value; -- (instancetype)initWithValue:(FLTFillerEnum60)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum61) { - FLTFillerEnum61FillerMember61 = 0, -}; - -/// Wrapper for FLTFillerEnum61 to allow for nullability. -@interface FLTFillerEnum61Box : NSObject -@property(nonatomic, assign) FLTFillerEnum61 value; -- (instancetype)initWithValue:(FLTFillerEnum61)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum62) { - FLTFillerEnum62FillerMember62 = 0, -}; - -/// Wrapper for FLTFillerEnum62 to allow for nullability. -@interface FLTFillerEnum62Box : NSObject -@property(nonatomic, assign) FLTFillerEnum62 value; -- (instancetype)initWithValue:(FLTFillerEnum62)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum63) { - FLTFillerEnum63FillerMember63 = 0, -}; - -/// Wrapper for FLTFillerEnum63 to allow for nullability. -@interface FLTFillerEnum63Box : NSObject -@property(nonatomic, assign) FLTFillerEnum63 value; -- (instancetype)initWithValue:(FLTFillerEnum63)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum64) { - FLTFillerEnum64FillerMember64 = 0, -}; - -/// Wrapper for FLTFillerEnum64 to allow for nullability. -@interface FLTFillerEnum64Box : NSObject -@property(nonatomic, assign) FLTFillerEnum64 value; -- (instancetype)initWithValue:(FLTFillerEnum64)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum65) { - FLTFillerEnum65FillerMember65 = 0, -}; - -/// Wrapper for FLTFillerEnum65 to allow for nullability. -@interface FLTFillerEnum65Box : NSObject -@property(nonatomic, assign) FLTFillerEnum65 value; -- (instancetype)initWithValue:(FLTFillerEnum65)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum66) { - FLTFillerEnum66FillerMember66 = 0, -}; - -/// Wrapper for FLTFillerEnum66 to allow for nullability. -@interface FLTFillerEnum66Box : NSObject -@property(nonatomic, assign) FLTFillerEnum66 value; -- (instancetype)initWithValue:(FLTFillerEnum66)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum67) { - FLTFillerEnum67FillerMember67 = 0, -}; - -/// Wrapper for FLTFillerEnum67 to allow for nullability. -@interface FLTFillerEnum67Box : NSObject -@property(nonatomic, assign) FLTFillerEnum67 value; -- (instancetype)initWithValue:(FLTFillerEnum67)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum68) { - FLTFillerEnum68FillerMember68 = 0, -}; - -/// Wrapper for FLTFillerEnum68 to allow for nullability. -@interface FLTFillerEnum68Box : NSObject -@property(nonatomic, assign) FLTFillerEnum68 value; -- (instancetype)initWithValue:(FLTFillerEnum68)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum69) { - FLTFillerEnum69FillerMember69 = 0, -}; - -/// Wrapper for FLTFillerEnum69 to allow for nullability. -@interface FLTFillerEnum69Box : NSObject -@property(nonatomic, assign) FLTFillerEnum69 value; -- (instancetype)initWithValue:(FLTFillerEnum69)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum70) { - FLTFillerEnum70FillerMember70 = 0, -}; - -/// Wrapper for FLTFillerEnum70 to allow for nullability. -@interface FLTFillerEnum70Box : NSObject -@property(nonatomic, assign) FLTFillerEnum70 value; -- (instancetype)initWithValue:(FLTFillerEnum70)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum71) { - FLTFillerEnum71FillerMember71 = 0, -}; - -/// Wrapper for FLTFillerEnum71 to allow for nullability. -@interface FLTFillerEnum71Box : NSObject -@property(nonatomic, assign) FLTFillerEnum71 value; -- (instancetype)initWithValue:(FLTFillerEnum71)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum72) { - FLTFillerEnum72FillerMember72 = 0, -}; - -/// Wrapper for FLTFillerEnum72 to allow for nullability. -@interface FLTFillerEnum72Box : NSObject -@property(nonatomic, assign) FLTFillerEnum72 value; -- (instancetype)initWithValue:(FLTFillerEnum72)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum73) { - FLTFillerEnum73FillerMember73 = 0, -}; - -/// Wrapper for FLTFillerEnum73 to allow for nullability. -@interface FLTFillerEnum73Box : NSObject -@property(nonatomic, assign) FLTFillerEnum73 value; -- (instancetype)initWithValue:(FLTFillerEnum73)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum74) { - FLTFillerEnum74FillerMember74 = 0, -}; - -/// Wrapper for FLTFillerEnum74 to allow for nullability. -@interface FLTFillerEnum74Box : NSObject -@property(nonatomic, assign) FLTFillerEnum74 value; -- (instancetype)initWithValue:(FLTFillerEnum74)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum75) { - FLTFillerEnum75FillerMember75 = 0, -}; - -/// Wrapper for FLTFillerEnum75 to allow for nullability. -@interface FLTFillerEnum75Box : NSObject -@property(nonatomic, assign) FLTFillerEnum75 value; -- (instancetype)initWithValue:(FLTFillerEnum75)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum76) { - FLTFillerEnum76FillerMember76 = 0, -}; - -/// Wrapper for FLTFillerEnum76 to allow for nullability. -@interface FLTFillerEnum76Box : NSObject -@property(nonatomic, assign) FLTFillerEnum76 value; -- (instancetype)initWithValue:(FLTFillerEnum76)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum77) { - FLTFillerEnum77FillerMember77 = 0, -}; - -/// Wrapper for FLTFillerEnum77 to allow for nullability. -@interface FLTFillerEnum77Box : NSObject -@property(nonatomic, assign) FLTFillerEnum77 value; -- (instancetype)initWithValue:(FLTFillerEnum77)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum78) { - FLTFillerEnum78FillerMember78 = 0, -}; - -/// Wrapper for FLTFillerEnum78 to allow for nullability. -@interface FLTFillerEnum78Box : NSObject -@property(nonatomic, assign) FLTFillerEnum78 value; -- (instancetype)initWithValue:(FLTFillerEnum78)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum79) { - FLTFillerEnum79FillerMember79 = 0, -}; - -/// Wrapper for FLTFillerEnum79 to allow for nullability. -@interface FLTFillerEnum79Box : NSObject -@property(nonatomic, assign) FLTFillerEnum79 value; -- (instancetype)initWithValue:(FLTFillerEnum79)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum80) { - FLTFillerEnum80FillerMember80 = 0, -}; - -/// Wrapper for FLTFillerEnum80 to allow for nullability. -@interface FLTFillerEnum80Box : NSObject -@property(nonatomic, assign) FLTFillerEnum80 value; -- (instancetype)initWithValue:(FLTFillerEnum80)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum81) { - FLTFillerEnum81FillerMember81 = 0, -}; - -/// Wrapper for FLTFillerEnum81 to allow for nullability. -@interface FLTFillerEnum81Box : NSObject -@property(nonatomic, assign) FLTFillerEnum81 value; -- (instancetype)initWithValue:(FLTFillerEnum81)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum82) { - FLTFillerEnum82FillerMember82 = 0, -}; - -/// Wrapper for FLTFillerEnum82 to allow for nullability. -@interface FLTFillerEnum82Box : NSObject -@property(nonatomic, assign) FLTFillerEnum82 value; -- (instancetype)initWithValue:(FLTFillerEnum82)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum83) { - FLTFillerEnum83FillerMember83 = 0, -}; - -/// Wrapper for FLTFillerEnum83 to allow for nullability. -@interface FLTFillerEnum83Box : NSObject -@property(nonatomic, assign) FLTFillerEnum83 value; -- (instancetype)initWithValue:(FLTFillerEnum83)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum84) { - FLTFillerEnum84FillerMember84 = 0, -}; - -/// Wrapper for FLTFillerEnum84 to allow for nullability. -@interface FLTFillerEnum84Box : NSObject -@property(nonatomic, assign) FLTFillerEnum84 value; -- (instancetype)initWithValue:(FLTFillerEnum84)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum85) { - FLTFillerEnum85FillerMember85 = 0, -}; - -/// Wrapper for FLTFillerEnum85 to allow for nullability. -@interface FLTFillerEnum85Box : NSObject -@property(nonatomic, assign) FLTFillerEnum85 value; -- (instancetype)initWithValue:(FLTFillerEnum85)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum86) { - FLTFillerEnum86FillerMember86 = 0, -}; - -/// Wrapper for FLTFillerEnum86 to allow for nullability. -@interface FLTFillerEnum86Box : NSObject -@property(nonatomic, assign) FLTFillerEnum86 value; -- (instancetype)initWithValue:(FLTFillerEnum86)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum87) { - FLTFillerEnum87FillerMember87 = 0, -}; - -/// Wrapper for FLTFillerEnum87 to allow for nullability. -@interface FLTFillerEnum87Box : NSObject -@property(nonatomic, assign) FLTFillerEnum87 value; -- (instancetype)initWithValue:(FLTFillerEnum87)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum88) { - FLTFillerEnum88FillerMember88 = 0, -}; - -/// Wrapper for FLTFillerEnum88 to allow for nullability. -@interface FLTFillerEnum88Box : NSObject -@property(nonatomic, assign) FLTFillerEnum88 value; -- (instancetype)initWithValue:(FLTFillerEnum88)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum89) { - FLTFillerEnum89FillerMember89 = 0, -}; - -/// Wrapper for FLTFillerEnum89 to allow for nullability. -@interface FLTFillerEnum89Box : NSObject -@property(nonatomic, assign) FLTFillerEnum89 value; -- (instancetype)initWithValue:(FLTFillerEnum89)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum90) { - FLTFillerEnum90FillerMember90 = 0, -}; - -/// Wrapper for FLTFillerEnum90 to allow for nullability. -@interface FLTFillerEnum90Box : NSObject -@property(nonatomic, assign) FLTFillerEnum90 value; -- (instancetype)initWithValue:(FLTFillerEnum90)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum91) { - FLTFillerEnum91FillerMember91 = 0, -}; - -/// Wrapper for FLTFillerEnum91 to allow for nullability. -@interface FLTFillerEnum91Box : NSObject -@property(nonatomic, assign) FLTFillerEnum91 value; -- (instancetype)initWithValue:(FLTFillerEnum91)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum92) { - FLTFillerEnum92FillerMember92 = 0, -}; - -/// Wrapper for FLTFillerEnum92 to allow for nullability. -@interface FLTFillerEnum92Box : NSObject -@property(nonatomic, assign) FLTFillerEnum92 value; -- (instancetype)initWithValue:(FLTFillerEnum92)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum93) { - FLTFillerEnum93FillerMember93 = 0, -}; - -/// Wrapper for FLTFillerEnum93 to allow for nullability. -@interface FLTFillerEnum93Box : NSObject -@property(nonatomic, assign) FLTFillerEnum93 value; -- (instancetype)initWithValue:(FLTFillerEnum93)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum94) { - FLTFillerEnum94FillerMember94 = 0, -}; - -/// Wrapper for FLTFillerEnum94 to allow for nullability. -@interface FLTFillerEnum94Box : NSObject -@property(nonatomic, assign) FLTFillerEnum94 value; -- (instancetype)initWithValue:(FLTFillerEnum94)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum95) { - FLTFillerEnum95FillerMember95 = 0, -}; - -/// Wrapper for FLTFillerEnum95 to allow for nullability. -@interface FLTFillerEnum95Box : NSObject -@property(nonatomic, assign) FLTFillerEnum95 value; -- (instancetype)initWithValue:(FLTFillerEnum95)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum96) { - FLTFillerEnum96FillerMember96 = 0, -}; - -/// Wrapper for FLTFillerEnum96 to allow for nullability. -@interface FLTFillerEnum96Box : NSObject -@property(nonatomic, assign) FLTFillerEnum96 value; -- (instancetype)initWithValue:(FLTFillerEnum96)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum97) { - FLTFillerEnum97FillerMember97 = 0, -}; - -/// Wrapper for FLTFillerEnum97 to allow for nullability. -@interface FLTFillerEnum97Box : NSObject -@property(nonatomic, assign) FLTFillerEnum97 value; -- (instancetype)initWithValue:(FLTFillerEnum97)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum98) { - FLTFillerEnum98FillerMember98 = 0, -}; - -/// Wrapper for FLTFillerEnum98 to allow for nullability. -@interface FLTFillerEnum98Box : NSObject -@property(nonatomic, assign) FLTFillerEnum98 value; -- (instancetype)initWithValue:(FLTFillerEnum98)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum99) { - FLTFillerEnum99FillerMember99 = 0, -}; - -/// Wrapper for FLTFillerEnum99 to allow for nullability. -@interface FLTFillerEnum99Box : NSObject -@property(nonatomic, assign) FLTFillerEnum99 value; -- (instancetype)initWithValue:(FLTFillerEnum99)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum100) { - FLTFillerEnum100FillerMember100 = 0, -}; - -/// Wrapper for FLTFillerEnum100 to allow for nullability. -@interface FLTFillerEnum100Box : NSObject -@property(nonatomic, assign) FLTFillerEnum100 value; -- (instancetype)initWithValue:(FLTFillerEnum100)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum101) { - FLTFillerEnum101FillerMember101 = 0, -}; - -/// Wrapper for FLTFillerEnum101 to allow for nullability. -@interface FLTFillerEnum101Box : NSObject -@property(nonatomic, assign) FLTFillerEnum101 value; -- (instancetype)initWithValue:(FLTFillerEnum101)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum102) { - FLTFillerEnum102FillerMember102 = 0, -}; - -/// Wrapper for FLTFillerEnum102 to allow for nullability. -@interface FLTFillerEnum102Box : NSObject -@property(nonatomic, assign) FLTFillerEnum102 value; -- (instancetype)initWithValue:(FLTFillerEnum102)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum103) { - FLTFillerEnum103FillerMember103 = 0, -}; - -/// Wrapper for FLTFillerEnum103 to allow for nullability. -@interface FLTFillerEnum103Box : NSObject -@property(nonatomic, assign) FLTFillerEnum103 value; -- (instancetype)initWithValue:(FLTFillerEnum103)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum104) { - FLTFillerEnum104FillerMember104 = 0, -}; - -/// Wrapper for FLTFillerEnum104 to allow for nullability. -@interface FLTFillerEnum104Box : NSObject -@property(nonatomic, assign) FLTFillerEnum104 value; -- (instancetype)initWithValue:(FLTFillerEnum104)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum105) { - FLTFillerEnum105FillerMember105 = 0, -}; - -/// Wrapper for FLTFillerEnum105 to allow for nullability. -@interface FLTFillerEnum105Box : NSObject -@property(nonatomic, assign) FLTFillerEnum105 value; -- (instancetype)initWithValue:(FLTFillerEnum105)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum106) { - FLTFillerEnum106FillerMember106 = 0, -}; - -/// Wrapper for FLTFillerEnum106 to allow for nullability. -@interface FLTFillerEnum106Box : NSObject -@property(nonatomic, assign) FLTFillerEnum106 value; -- (instancetype)initWithValue:(FLTFillerEnum106)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum107) { - FLTFillerEnum107FillerMember107 = 0, -}; - -/// Wrapper for FLTFillerEnum107 to allow for nullability. -@interface FLTFillerEnum107Box : NSObject -@property(nonatomic, assign) FLTFillerEnum107 value; -- (instancetype)initWithValue:(FLTFillerEnum107)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum108) { - FLTFillerEnum108FillerMember108 = 0, -}; - -/// Wrapper for FLTFillerEnum108 to allow for nullability. -@interface FLTFillerEnum108Box : NSObject -@property(nonatomic, assign) FLTFillerEnum108 value; -- (instancetype)initWithValue:(FLTFillerEnum108)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum109) { - FLTFillerEnum109FillerMember109 = 0, -}; - -/// Wrapper for FLTFillerEnum109 to allow for nullability. -@interface FLTFillerEnum109Box : NSObject -@property(nonatomic, assign) FLTFillerEnum109 value; -- (instancetype)initWithValue:(FLTFillerEnum109)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum110) { - FLTFillerEnum110FillerMember110 = 0, -}; - -/// Wrapper for FLTFillerEnum110 to allow for nullability. -@interface FLTFillerEnum110Box : NSObject -@property(nonatomic, assign) FLTFillerEnum110 value; -- (instancetype)initWithValue:(FLTFillerEnum110)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum111) { - FLTFillerEnum111FillerMember111 = 0, -}; - -/// Wrapper for FLTFillerEnum111 to allow for nullability. -@interface FLTFillerEnum111Box : NSObject -@property(nonatomic, assign) FLTFillerEnum111 value; -- (instancetype)initWithValue:(FLTFillerEnum111)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum112) { - FLTFillerEnum112FillerMember112 = 0, -}; - -/// Wrapper for FLTFillerEnum112 to allow for nullability. -@interface FLTFillerEnum112Box : NSObject -@property(nonatomic, assign) FLTFillerEnum112 value; -- (instancetype)initWithValue:(FLTFillerEnum112)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum113) { - FLTFillerEnum113FillerMember113 = 0, -}; - -/// Wrapper for FLTFillerEnum113 to allow for nullability. -@interface FLTFillerEnum113Box : NSObject -@property(nonatomic, assign) FLTFillerEnum113 value; -- (instancetype)initWithValue:(FLTFillerEnum113)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum114) { - FLTFillerEnum114FillerMember114 = 0, -}; - -/// Wrapper for FLTFillerEnum114 to allow for nullability. -@interface FLTFillerEnum114Box : NSObject -@property(nonatomic, assign) FLTFillerEnum114 value; -- (instancetype)initWithValue:(FLTFillerEnum114)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum115) { - FLTFillerEnum115FillerMember115 = 0, -}; - -/// Wrapper for FLTFillerEnum115 to allow for nullability. -@interface FLTFillerEnum115Box : NSObject -@property(nonatomic, assign) FLTFillerEnum115 value; -- (instancetype)initWithValue:(FLTFillerEnum115)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum116) { - FLTFillerEnum116FillerMember116 = 0, -}; - -/// Wrapper for FLTFillerEnum116 to allow for nullability. -@interface FLTFillerEnum116Box : NSObject -@property(nonatomic, assign) FLTFillerEnum116 value; -- (instancetype)initWithValue:(FLTFillerEnum116)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum117) { - FLTFillerEnum117FillerMember117 = 0, -}; - -/// Wrapper for FLTFillerEnum117 to allow for nullability. -@interface FLTFillerEnum117Box : NSObject -@property(nonatomic, assign) FLTFillerEnum117 value; -- (instancetype)initWithValue:(FLTFillerEnum117)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum118) { - FLTFillerEnum118FillerMember118 = 0, -}; - -/// Wrapper for FLTFillerEnum118 to allow for nullability. -@interface FLTFillerEnum118Box : NSObject -@property(nonatomic, assign) FLTFillerEnum118 value; -- (instancetype)initWithValue:(FLTFillerEnum118)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum119) { - FLTFillerEnum119FillerMember119 = 0, -}; - -/// Wrapper for FLTFillerEnum119 to allow for nullability. -@interface FLTFillerEnum119Box : NSObject -@property(nonatomic, assign) FLTFillerEnum119 value; -- (instancetype)initWithValue:(FLTFillerEnum119)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum120) { - FLTFillerEnum120FillerMember120 = 0, -}; - -/// Wrapper for FLTFillerEnum120 to allow for nullability. -@interface FLTFillerEnum120Box : NSObject -@property(nonatomic, assign) FLTFillerEnum120 value; -- (instancetype)initWithValue:(FLTFillerEnum120)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum121) { - FLTFillerEnum121FillerMember121 = 0, -}; - -/// Wrapper for FLTFillerEnum121 to allow for nullability. -@interface FLTFillerEnum121Box : NSObject -@property(nonatomic, assign) FLTFillerEnum121 value; -- (instancetype)initWithValue:(FLTFillerEnum121)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum122) { - FLTFillerEnum122FillerMember122 = 0, -}; - -/// Wrapper for FLTFillerEnum122 to allow for nullability. -@interface FLTFillerEnum122Box : NSObject -@property(nonatomic, assign) FLTFillerEnum122 value; -- (instancetype)initWithValue:(FLTFillerEnum122)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum123) { - FLTFillerEnum123FillerMember123 = 0, -}; - -/// Wrapper for FLTFillerEnum123 to allow for nullability. -@interface FLTFillerEnum123Box : NSObject -@property(nonatomic, assign) FLTFillerEnum123 value; -- (instancetype)initWithValue:(FLTFillerEnum123)value; -@end - -typedef NS_ENUM(NSUInteger, FLTFillerEnum124) { - FLTFillerEnum124FillerMember124 = 0, -}; - -/// Wrapper for FLTFillerEnum124 to allow for nullability. -@interface FLTFillerEnum124Box : NSObject -@property(nonatomic, assign) FLTFillerEnum124 value; -- (instancetype)initWithValue:(FLTFillerEnum124)value; -@end - typedef NS_ENUM(NSUInteger, FLTAnEnum) { FLTAnEnumOne = 0, FLTAnEnumTwo = 1, @@ -1462,14 +212,6 @@ typedef NS_ENUM(NSUInteger, FLTAnotherEnum) { @property(nonatomic, copy, nullable) NSArray *testList; @end -@interface FLT__pigeon_CodecOverflow : NSObject -/// `init` unavailable to enforce nonnull fields, see the `make` class method. -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped; -@property(nonatomic, assign) NSInteger type; -@property(nonatomic, strong, nullable) id wrapped; -@end - /// The codec used by all APIs. NSObject *FLTGetCoreTestsCodec(void); diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m index ef544babdf3..150b33cc0de 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m @@ -40,8 +40,8 @@ static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { return (result == [NSNull null]) ? nil : result; } -@implementation FLTFillerEnum0Box -- (instancetype)initWithValue:(FLTFillerEnum0)value { +@implementation FLTAnEnumBox +- (instancetype)initWithValue:(FLTAnEnum)value { self = [super init]; if (self) { _value = value; @@ -50,8 +50,8 @@ - (instancetype)initWithValue:(FLTFillerEnum0)value { } @end -@implementation FLTFillerEnum1Box -- (instancetype)initWithValue:(FLTFillerEnum1)value { +@implementation FLTAnotherEnumBox +- (instancetype)initWithValue:(FLTAnotherEnum)value { self = [super init]; if (self) { _value = value; @@ -60,2452 +60,418 @@ - (instancetype)initWithValue:(FLTFillerEnum1)value { } @end -@implementation FLTFillerEnum2Box -- (instancetype)initWithValue:(FLTFillerEnum2)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface FLTAllTypes () ++ (FLTAllTypes *)fromList:(NSArray *)list; ++ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FLTFillerEnum3Box -- (instancetype)initWithValue:(FLTFillerEnum3)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface FLTAllNullableTypes () ++ (FLTAllNullableTypes *)fromList:(NSArray *)list; ++ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FLTFillerEnum4Box -- (instancetype)initWithValue:(FLTFillerEnum4)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface FLTAllNullableTypesWithoutRecursion () ++ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; ++ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FLTFillerEnum5Box -- (instancetype)initWithValue:(FLTFillerEnum5)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface FLTAllClassesWrapper () ++ (FLTAllClassesWrapper *)fromList:(NSArray *)list; ++ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FLTFillerEnum6Box -- (instancetype)initWithValue:(FLTFillerEnum6)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface FLTTestMessage () ++ (FLTTestMessage *)fromList:(NSArray *)list; ++ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FLTFillerEnum7Box -- (instancetype)initWithValue:(FLTFillerEnum7)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +@implementation FLTAllTypes ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(FLTAnEnum)anEnum + anotherEnum:(FLTAnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + map:(NSDictionary *)map { + FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; + pigeonResult.aBool = aBool; + pigeonResult.anInt = anInt; + pigeonResult.anInt64 = anInt64; + pigeonResult.aDouble = aDouble; + pigeonResult.aByteArray = aByteArray; + pigeonResult.a4ByteArray = a4ByteArray; + pigeonResult.a8ByteArray = a8ByteArray; + pigeonResult.aFloatArray = aFloatArray; + pigeonResult.anEnum = anEnum; + pigeonResult.anotherEnum = anotherEnum; + pigeonResult.aString = aString; + pigeonResult.anObject = anObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; } -@end - -@implementation FLTFillerEnum8Box -- (instancetype)initWithValue:(FLTFillerEnum8)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (FLTAllTypes *)fromList:(NSArray *)list { + FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; + pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; + pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; + pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; + pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; + pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); + FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(list, 8); + pigeonResult.anEnum = anFLTAnEnumBox.value; + FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(list, 9); + pigeonResult.anotherEnum = anFLTAnotherEnumBox.value; + pigeonResult.aString = GetNullableObjectAtIndex(list, 10); + pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); + pigeonResult.list = GetNullableObjectAtIndex(list, 12); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); + pigeonResult.intList = GetNullableObjectAtIndex(list, 14); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); + pigeonResult.map = GetNullableObjectAtIndex(list, 17); + return pigeonResult; } -@end - -@implementation FLTFillerEnum9Box -- (instancetype)initWithValue:(FLTFillerEnum9)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllTypes fromList:list] : nil; } -@end - -@implementation FLTFillerEnum10Box -- (instancetype)initWithValue:(FLTFillerEnum10)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +- (NSArray *)toList { + return @[ + @(self.aBool), + @(self.anInt), + @(self.anInt64), + @(self.aDouble), + self.aByteArray ?: [NSNull null], + self.a4ByteArray ?: [NSNull null], + self.a8ByteArray ?: [NSNull null], + self.aFloatArray ?: [NSNull null], + [[FLTAnEnumBox alloc] initWithValue:self.anEnum], + [[FLTAnotherEnumBox alloc] initWithValue:self.anotherEnum], + self.aString ?: [NSNull null], + self.anObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; } @end -@implementation FLTFillerEnum11Box -- (instancetype)initWithValue:(FLTFillerEnum11)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +@implementation FLTAllNullableTypes ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + nestedClassList:(nullable NSArray *)nestedClassList + map:(nullable NSDictionary *)map { + FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.nestedClassList = nestedClassList; + pigeonResult.map = map; + return pigeonResult; } -@end - -@implementation FLTFillerEnum12Box -- (instancetype)initWithValue:(FLTFillerEnum12)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (FLTAllNullableTypes *)fromList:(NSArray *)list { + FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 15); + pigeonResult.list = GetNullableObjectAtIndex(list, 16); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 17); + pigeonResult.intList = GetNullableObjectAtIndex(list, 18); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 19); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 20); + pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 21); + pigeonResult.map = GetNullableObjectAtIndex(list, 22); + return pigeonResult; } -@end - -@implementation FLTFillerEnum13Box -- (instancetype)initWithValue:(FLTFillerEnum13)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum14Box -- (instancetype)initWithValue:(FLTFillerEnum14)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum15Box -- (instancetype)initWithValue:(FLTFillerEnum15)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum16Box -- (instancetype)initWithValue:(FLTFillerEnum16)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum17Box -- (instancetype)initWithValue:(FLTFillerEnum17)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum18Box -- (instancetype)initWithValue:(FLTFillerEnum18)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum19Box -- (instancetype)initWithValue:(FLTFillerEnum19)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum20Box -- (instancetype)initWithValue:(FLTFillerEnum20)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum21Box -- (instancetype)initWithValue:(FLTFillerEnum21)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum22Box -- (instancetype)initWithValue:(FLTFillerEnum22)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum23Box -- (instancetype)initWithValue:(FLTFillerEnum23)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum24Box -- (instancetype)initWithValue:(FLTFillerEnum24)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum25Box -- (instancetype)initWithValue:(FLTFillerEnum25)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum26Box -- (instancetype)initWithValue:(FLTFillerEnum26)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum27Box -- (instancetype)initWithValue:(FLTFillerEnum27)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum28Box -- (instancetype)initWithValue:(FLTFillerEnum28)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum29Box -- (instancetype)initWithValue:(FLTFillerEnum29)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum30Box -- (instancetype)initWithValue:(FLTFillerEnum30)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum31Box -- (instancetype)initWithValue:(FLTFillerEnum31)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum32Box -- (instancetype)initWithValue:(FLTFillerEnum32)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum33Box -- (instancetype)initWithValue:(FLTFillerEnum33)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllNullableTypes fromList:list] : nil; } -@end - -@implementation FLTFillerEnum34Box -- (instancetype)initWithValue:(FLTFillerEnum34)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.allNullableTypes ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.nestedClassList ?: [NSNull null], + self.map ?: [NSNull null], + ]; } @end -@implementation FLTFillerEnum35Box -- (instancetype)initWithValue:(FLTFillerEnum35)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +@implementation FLTAllNullableTypesWithoutRecursion ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + map:(nullable NSDictionary *)map { + FLTAllNullableTypesWithoutRecursion *pigeonResult = + [[FLTAllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; } -@end - -@implementation FLTFillerEnum36Box -- (instancetype)initWithValue:(FLTFillerEnum36)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum37Box -- (instancetype)initWithValue:(FLTFillerEnum37)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum38Box -- (instancetype)initWithValue:(FLTFillerEnum38)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum39Box -- (instancetype)initWithValue:(FLTFillerEnum39)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum40Box -- (instancetype)initWithValue:(FLTFillerEnum40)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum41Box -- (instancetype)initWithValue:(FLTFillerEnum41)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum42Box -- (instancetype)initWithValue:(FLTFillerEnum42)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum43Box -- (instancetype)initWithValue:(FLTFillerEnum43)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum44Box -- (instancetype)initWithValue:(FLTFillerEnum44)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum45Box -- (instancetype)initWithValue:(FLTFillerEnum45)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum46Box -- (instancetype)initWithValue:(FLTFillerEnum46)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum47Box -- (instancetype)initWithValue:(FLTFillerEnum47)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum48Box -- (instancetype)initWithValue:(FLTFillerEnum48)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum49Box -- (instancetype)initWithValue:(FLTFillerEnum49)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum50Box -- (instancetype)initWithValue:(FLTFillerEnum50)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum51Box -- (instancetype)initWithValue:(FLTFillerEnum51)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum52Box -- (instancetype)initWithValue:(FLTFillerEnum52)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum53Box -- (instancetype)initWithValue:(FLTFillerEnum53)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum54Box -- (instancetype)initWithValue:(FLTFillerEnum54)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum55Box -- (instancetype)initWithValue:(FLTFillerEnum55)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum56Box -- (instancetype)initWithValue:(FLTFillerEnum56)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum57Box -- (instancetype)initWithValue:(FLTFillerEnum57)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum58Box -- (instancetype)initWithValue:(FLTFillerEnum58)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum59Box -- (instancetype)initWithValue:(FLTFillerEnum59)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum60Box -- (instancetype)initWithValue:(FLTFillerEnum60)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum61Box -- (instancetype)initWithValue:(FLTFillerEnum61)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum62Box -- (instancetype)initWithValue:(FLTFillerEnum62)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum63Box -- (instancetype)initWithValue:(FLTFillerEnum63)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum64Box -- (instancetype)initWithValue:(FLTFillerEnum64)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum65Box -- (instancetype)initWithValue:(FLTFillerEnum65)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum66Box -- (instancetype)initWithValue:(FLTFillerEnum66)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum67Box -- (instancetype)initWithValue:(FLTFillerEnum67)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum68Box -- (instancetype)initWithValue:(FLTFillerEnum68)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum69Box -- (instancetype)initWithValue:(FLTFillerEnum69)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum70Box -- (instancetype)initWithValue:(FLTFillerEnum70)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum71Box -- (instancetype)initWithValue:(FLTFillerEnum71)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum72Box -- (instancetype)initWithValue:(FLTFillerEnum72)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum73Box -- (instancetype)initWithValue:(FLTFillerEnum73)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum74Box -- (instancetype)initWithValue:(FLTFillerEnum74)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum75Box -- (instancetype)initWithValue:(FLTFillerEnum75)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum76Box -- (instancetype)initWithValue:(FLTFillerEnum76)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum77Box -- (instancetype)initWithValue:(FLTFillerEnum77)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum78Box -- (instancetype)initWithValue:(FLTFillerEnum78)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum79Box -- (instancetype)initWithValue:(FLTFillerEnum79)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum80Box -- (instancetype)initWithValue:(FLTFillerEnum80)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum81Box -- (instancetype)initWithValue:(FLTFillerEnum81)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum82Box -- (instancetype)initWithValue:(FLTFillerEnum82)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum83Box -- (instancetype)initWithValue:(FLTFillerEnum83)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum84Box -- (instancetype)initWithValue:(FLTFillerEnum84)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum85Box -- (instancetype)initWithValue:(FLTFillerEnum85)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum86Box -- (instancetype)initWithValue:(FLTFillerEnum86)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum87Box -- (instancetype)initWithValue:(FLTFillerEnum87)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum88Box -- (instancetype)initWithValue:(FLTFillerEnum88)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum89Box -- (instancetype)initWithValue:(FLTFillerEnum89)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum90Box -- (instancetype)initWithValue:(FLTFillerEnum90)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum91Box -- (instancetype)initWithValue:(FLTFillerEnum91)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum92Box -- (instancetype)initWithValue:(FLTFillerEnum92)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum93Box -- (instancetype)initWithValue:(FLTFillerEnum93)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum94Box -- (instancetype)initWithValue:(FLTFillerEnum94)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum95Box -- (instancetype)initWithValue:(FLTFillerEnum95)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum96Box -- (instancetype)initWithValue:(FLTFillerEnum96)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum97Box -- (instancetype)initWithValue:(FLTFillerEnum97)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum98Box -- (instancetype)initWithValue:(FLTFillerEnum98)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum99Box -- (instancetype)initWithValue:(FLTFillerEnum99)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum100Box -- (instancetype)initWithValue:(FLTFillerEnum100)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum101Box -- (instancetype)initWithValue:(FLTFillerEnum101)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum102Box -- (instancetype)initWithValue:(FLTFillerEnum102)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum103Box -- (instancetype)initWithValue:(FLTFillerEnum103)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum104Box -- (instancetype)initWithValue:(FLTFillerEnum104)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum105Box -- (instancetype)initWithValue:(FLTFillerEnum105)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum106Box -- (instancetype)initWithValue:(FLTFillerEnum106)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum107Box -- (instancetype)initWithValue:(FLTFillerEnum107)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum108Box -- (instancetype)initWithValue:(FLTFillerEnum108)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum109Box -- (instancetype)initWithValue:(FLTFillerEnum109)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum110Box -- (instancetype)initWithValue:(FLTFillerEnum110)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum111Box -- (instancetype)initWithValue:(FLTFillerEnum111)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum112Box -- (instancetype)initWithValue:(FLTFillerEnum112)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum113Box -- (instancetype)initWithValue:(FLTFillerEnum113)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum114Box -- (instancetype)initWithValue:(FLTFillerEnum114)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum115Box -- (instancetype)initWithValue:(FLTFillerEnum115)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum116Box -- (instancetype)initWithValue:(FLTFillerEnum116)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum117Box -- (instancetype)initWithValue:(FLTFillerEnum117)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum118Box -- (instancetype)initWithValue:(FLTFillerEnum118)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum119Box -- (instancetype)initWithValue:(FLTFillerEnum119)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum120Box -- (instancetype)initWithValue:(FLTFillerEnum120)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum121Box -- (instancetype)initWithValue:(FLTFillerEnum121)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum122Box -- (instancetype)initWithValue:(FLTFillerEnum122)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum123Box -- (instancetype)initWithValue:(FLTFillerEnum123)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTFillerEnum124Box -- (instancetype)initWithValue:(FLTFillerEnum124)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTAnEnumBox -- (instancetype)initWithValue:(FLTAnEnum)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FLTAnotherEnumBox -- (instancetype)initWithValue:(FLTAnotherEnum)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@interface FLTAllTypes () -+ (FLTAllTypes *)fromList:(NSArray *)list; -+ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface FLTAllNullableTypes () -+ (FLTAllNullableTypes *)fromList:(NSArray *)list; -+ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface FLTAllNullableTypesWithoutRecursion () -+ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; -+ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface FLTAllClassesWrapper () -+ (FLTAllClassesWrapper *)fromList:(NSArray *)list; -+ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface FLTTestMessage () -+ (FLTTestMessage *)fromList:(NSArray *)list; -+ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@implementation FLTAllTypes -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(FLTAnEnum)anEnum - anotherEnum:(FLTAnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - map:(NSDictionary *)map { - FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; - pigeonResult.aBool = aBool; - pigeonResult.anInt = anInt; - pigeonResult.anInt64 = anInt64; - pigeonResult.aDouble = aDouble; - pigeonResult.aByteArray = aByteArray; - pigeonResult.a4ByteArray = a4ByteArray; - pigeonResult.a8ByteArray = a8ByteArray; - pigeonResult.aFloatArray = aFloatArray; - pigeonResult.anEnum = anEnum; - pigeonResult.anotherEnum = anotherEnum; - pigeonResult.aString = aString; - pigeonResult.anObject = anObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; -} -+ (FLTAllTypes *)fromList:(NSArray *)list { - FLTAllTypes *pigeonResult = [[FLTAllTypes alloc] init]; - pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; - pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; - pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; - pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; - pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); - FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(list, 8); - pigeonResult.anEnum = anFLTAnEnumBox.value; - FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(list, 9); - pigeonResult.anotherEnum = anFLTAnotherEnumBox.value; - pigeonResult.aString = GetNullableObjectAtIndex(list, 10); - pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); - pigeonResult.list = GetNullableObjectAtIndex(list, 12); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); - pigeonResult.intList = GetNullableObjectAtIndex(list, 14); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); - pigeonResult.map = GetNullableObjectAtIndex(list, 17); - return pigeonResult; -} -+ (nullable FLTAllTypes *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - @(self.aBool), - @(self.anInt), - @(self.anInt64), - @(self.aDouble), - self.aByteArray ?: [NSNull null], - self.a4ByteArray ?: [NSNull null], - self.a8ByteArray ?: [NSNull null], - self.aFloatArray ?: [NSNull null], - [[FLTAnEnumBox alloc] initWithValue:self.anEnum], - [[FLTAnotherEnumBox alloc] initWithValue:self.anotherEnum], - self.aString ?: [NSNull null], - self.anObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; -} -@end - -@implementation FLTAllNullableTypes -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable FLTAllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - nestedClassList:(nullable NSArray *)nestedClassList - map:(nullable NSDictionary *)map { - FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.anotherNullableEnum = anotherNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.nestedClassList = nestedClassList; - pigeonResult.map = map; - return pigeonResult; -} -+ (FLTAllNullableTypes *)fromList:(NSArray *)list { - FLTAllNullableTypes *pigeonResult = [[FLTAllNullableTypes alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 15); - pigeonResult.list = GetNullableObjectAtIndex(list, 16); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 17); - pigeonResult.intList = GetNullableObjectAtIndex(list, 18); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 19); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 20); - pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 21); - pigeonResult.map = GetNullableObjectAtIndex(list, 22); - return pigeonResult; -} -+ (nullable FLTAllNullableTypes *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllNullableTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.anotherNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.allNullableTypes ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.nestedClassList ?: [NSNull null], - self.map ?: [NSNull null], - ]; -} -@end - -@implementation FLTAllNullableTypesWithoutRecursion -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable FLTAnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable FLTAnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - map:(nullable NSDictionary *)map { - FLTAllNullableTypesWithoutRecursion *pigeonResult = - [[FLTAllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.anotherNullableEnum = anotherNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; -} -+ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { - FLTAllNullableTypesWithoutRecursion *pigeonResult = - [[FLTAllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); - pigeonResult.list = GetNullableObjectAtIndex(list, 15); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); - pigeonResult.intList = GetNullableObjectAtIndex(list, 17); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); - pigeonResult.map = GetNullableObjectAtIndex(list, 20); - return pigeonResult; -} -+ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllNullableTypesWithoutRecursion fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.anotherNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; -} -@end - -@implementation FLTAllClassesWrapper -+ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable FLTAllTypes *)allTypes { - FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; - pigeonResult.allTypes = allTypes; - return pigeonResult; -} -+ (FLTAllClassesWrapper *)fromList:(NSArray *)list { - FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); - pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); - pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); - return pigeonResult; -} -+ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list { - return (list) ? [FLTAllClassesWrapper fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.allNullableTypes ?: [NSNull null], - self.allNullableTypesWithoutRecursion ?: [NSNull null], - self.allTypes ?: [NSNull null], - ]; -} -@end - -@implementation FLTTestMessage -+ (instancetype)makeWithTestList:(nullable NSArray *)testList { - FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; - pigeonResult.testList = testList; - return pigeonResult; -} -+ (FLTTestMessage *)fromList:(NSArray *)list { - FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; - pigeonResult.testList = GetNullableObjectAtIndex(list, 0); - return pigeonResult; -} -+ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list { - return (list) ? [FLTTestMessage fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.testList ?: [NSNull null], - ]; -} -@end - -@interface FLT__pigeon_CodecOverflow () -+ (id)fromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@implementation FLT__pigeon_CodecOverflow -+ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped { - FLT__pigeon_CodecOverflow *pigeonResult = [[FLT__pigeon_CodecOverflow alloc] init]; - pigeonResult.type = type; - pigeonResult.wrapped = wrapped; - return pigeonResult; -} -- (NSArray *)toList { - return @[ - @(self.type), - self.wrapped ?: [NSNull null], - ]; -} -+ (id)fromList:(NSArray *)list { - FLT__pigeon_CodecOverflow *wrapper = [[FLT__pigeon_CodecOverflow alloc] init]; - wrapper.type = [GetNullableObjectAtIndex(list, 0) integerValue]; - wrapper.wrapped = GetNullableObjectAtIndex(list, 1); - return [wrapper unwrap]; -} - -- (id)unwrap { - if (self.wrapped == nil) { - return nil; - } - - switch (self.type) { - case 0: - return [[FLTAnotherEnumBox alloc] initWithValue:[self.wrapped integerValue]]; - case 1: - return [FLTAllTypes fromList:self.wrapped]; - case 2: - return [FLTAllNullableTypes fromList:self.wrapped]; - case 3: - return [FLTAllNullableTypesWithoutRecursion fromList:self.wrapped]; - case 4: - return [FLTAllClassesWrapper fromList:self.wrapped]; - case 5: - return [FLTTestMessage fromList:self.wrapped]; - default: - return nil; - } -} -@end -@interface FLTCoreTestsPigeonCodecReader : FlutterStandardReader -@end -@implementation FLTCoreTestsPigeonCodecReader -- (nullable id)readValueOfType:(UInt8)type { - switch (type) { - case 129: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum0Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 130: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum1Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 131: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum2Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 132: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum3Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 133: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum4Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 134: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum5Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 135: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum6Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 136: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum7Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 137: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum8Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 138: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum9Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 139: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum10Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 140: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum11Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 141: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum12Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 142: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum13Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 143: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum14Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 144: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum15Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 145: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum16Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 146: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum17Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 147: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum18Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 148: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum19Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 149: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum20Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 150: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum21Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 151: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum22Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 152: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum23Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 153: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum24Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 154: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum25Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 155: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum26Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 156: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum27Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 157: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum28Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 158: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum29Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 159: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum30Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 160: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum31Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 161: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum32Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 162: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum33Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 163: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum34Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 164: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum35Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 165: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum36Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 166: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum37Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 167: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum38Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 168: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum39Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 169: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum40Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 170: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum41Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 171: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum42Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 172: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum43Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 173: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum44Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 174: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum45Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 175: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum46Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 176: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum47Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 177: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum48Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 178: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum49Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 179: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum50Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 180: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum51Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 181: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum52Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 182: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum53Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 183: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum54Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 184: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum55Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 185: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum56Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 186: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum57Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 187: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum58Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 188: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum59Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 189: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum60Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 190: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum61Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 191: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum62Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 192: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum63Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 193: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum64Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 194: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum65Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 195: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum66Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 196: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum67Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 197: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum68Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 198: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum69Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 199: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum70Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 200: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum71Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 201: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum72Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 202: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum73Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 203: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum74Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 204: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum75Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 205: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum76Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 206: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum77Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 207: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum78Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 208: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum79Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 209: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum80Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 210: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum81Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 211: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum82Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 212: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum83Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 213: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum84Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 214: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum85Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 215: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum86Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 216: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum87Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 217: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum88Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 218: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum89Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 219: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum90Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 220: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum91Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 221: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum92Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 222: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum93Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 223: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum94Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 224: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum95Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 225: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum96Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 226: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum97Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 227: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum98Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 228: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum99Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 229: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum100Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 230: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum101Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 231: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum102Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 232: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum103Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 233: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum104Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 234: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum105Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 235: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum106Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 236: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum107Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 237: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum108Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 238: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum109Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 239: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum110Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 240: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum111Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 241: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum112Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 242: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum113Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 243: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum114Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 244: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum115Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 245: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum116Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 246: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum117Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 247: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum118Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 248: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum119Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 249: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum120Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 250: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum121Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 251: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum122Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 252: { ++ (FLTAllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { + FLTAllNullableTypesWithoutRecursion *pigeonResult = + [[FLTAllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.list = GetNullableObjectAtIndex(list, 15); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); + pigeonResult.intList = GetNullableObjectAtIndex(list, 17); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); + pigeonResult.map = GetNullableObjectAtIndex(list, 20); + return pigeonResult; +} ++ (nullable FLTAllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllNullableTypesWithoutRecursion fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation FLTAllClassesWrapper ++ (instancetype)makeWithAllNullableTypes:(FLTAllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable FLTAllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable FLTAllTypes *)allTypes { + FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; + pigeonResult.allTypes = allTypes; + return pigeonResult; +} ++ (FLTAllClassesWrapper *)fromList:(NSArray *)list { + FLTAllClassesWrapper *pigeonResult = [[FLTAllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); + pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); + pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); + return pigeonResult; +} ++ (nullable FLTAllClassesWrapper *)nullableFromList:(NSArray *)list { + return (list) ? [FLTAllClassesWrapper fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.allNullableTypes ?: [NSNull null], + self.allNullableTypesWithoutRecursion ?: [NSNull null], + self.allTypes ?: [NSNull null], + ]; +} +@end + +@implementation FLTTestMessage ++ (instancetype)makeWithTestList:(nullable NSArray *)testList { + FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; + pigeonResult.testList = testList; + return pigeonResult; +} ++ (FLTTestMessage *)fromList:(NSArray *)list { + FLTTestMessage *pigeonResult = [[FLTTestMessage alloc] init]; + pigeonResult.testList = GetNullableObjectAtIndex(list, 0); + return pigeonResult; +} ++ (nullable FLTTestMessage *)nullableFromList:(NSArray *)list { + return (list) ? [FLTTestMessage fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.testList ?: [NSNull null], + ]; +} +@end + +@interface FLTCoreTestsPigeonCodecReader : FlutterStandardReader +@end +@implementation FLTCoreTestsPigeonCodecReader +- (nullable id)readValueOfType:(UInt8)type { + switch (type) { + case 129: { NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FLTFillerEnum123Box alloc] initWithValue:[enumAsNumber integerValue]]; + return enumAsNumber == nil ? nil + : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } - case 253: { + case 130: { NSNumber *enumAsNumber = [self readValue]; return enumAsNumber == nil ? nil - : [[FLTFillerEnum124Box alloc] initWithValue:[enumAsNumber integerValue]]; + : [[FLTAnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } - case 254: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[FLTAnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 255: - return [FLT__pigeon_CodecOverflow fromList:[self readValue]]; + case 131: + return [FLTAllTypes fromList:[self readValue]]; + case 132: + return [FLTAllNullableTypes fromList:[self readValue]]; + case 133: + return [FLTAllNullableTypesWithoutRecursion fromList:[self readValue]]; + case 134: + return [FLTAllClassesWrapper fromList:[self readValue]]; + case 135: + return [FLTTestMessage fromList:[self readValue]]; default: return [super readValueOfType:type]; } @@ -2516,542 +482,29 @@ @interface FLTCoreTestsPigeonCodecWriter : FlutterStandardWriter @end @implementation FLTCoreTestsPigeonCodecWriter - (void)writeValue:(id)value { - if ([value isKindOfClass:[FLTFillerEnum0Box class]]) { - FLTFillerEnum0Box *box = (FLTFillerEnum0Box *)value; - [self writeByte:129]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum1Box class]]) { - FLTFillerEnum1Box *box = (FLTFillerEnum1Box *)value; - [self writeByte:130]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum2Box class]]) { - FLTFillerEnum2Box *box = (FLTFillerEnum2Box *)value; - [self writeByte:131]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum3Box class]]) { - FLTFillerEnum3Box *box = (FLTFillerEnum3Box *)value; - [self writeByte:132]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum4Box class]]) { - FLTFillerEnum4Box *box = (FLTFillerEnum4Box *)value; - [self writeByte:133]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum5Box class]]) { - FLTFillerEnum5Box *box = (FLTFillerEnum5Box *)value; - [self writeByte:134]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum6Box class]]) { - FLTFillerEnum6Box *box = (FLTFillerEnum6Box *)value; - [self writeByte:135]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum7Box class]]) { - FLTFillerEnum7Box *box = (FLTFillerEnum7Box *)value; - [self writeByte:136]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum8Box class]]) { - FLTFillerEnum8Box *box = (FLTFillerEnum8Box *)value; - [self writeByte:137]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum9Box class]]) { - FLTFillerEnum9Box *box = (FLTFillerEnum9Box *)value; - [self writeByte:138]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum10Box class]]) { - FLTFillerEnum10Box *box = (FLTFillerEnum10Box *)value; - [self writeByte:139]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum11Box class]]) { - FLTFillerEnum11Box *box = (FLTFillerEnum11Box *)value; - [self writeByte:140]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum12Box class]]) { - FLTFillerEnum12Box *box = (FLTFillerEnum12Box *)value; - [self writeByte:141]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum13Box class]]) { - FLTFillerEnum13Box *box = (FLTFillerEnum13Box *)value; - [self writeByte:142]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum14Box class]]) { - FLTFillerEnum14Box *box = (FLTFillerEnum14Box *)value; - [self writeByte:143]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum15Box class]]) { - FLTFillerEnum15Box *box = (FLTFillerEnum15Box *)value; - [self writeByte:144]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum16Box class]]) { - FLTFillerEnum16Box *box = (FLTFillerEnum16Box *)value; - [self writeByte:145]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum17Box class]]) { - FLTFillerEnum17Box *box = (FLTFillerEnum17Box *)value; - [self writeByte:146]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum18Box class]]) { - FLTFillerEnum18Box *box = (FLTFillerEnum18Box *)value; - [self writeByte:147]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum19Box class]]) { - FLTFillerEnum19Box *box = (FLTFillerEnum19Box *)value; - [self writeByte:148]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum20Box class]]) { - FLTFillerEnum20Box *box = (FLTFillerEnum20Box *)value; - [self writeByte:149]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum21Box class]]) { - FLTFillerEnum21Box *box = (FLTFillerEnum21Box *)value; - [self writeByte:150]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum22Box class]]) { - FLTFillerEnum22Box *box = (FLTFillerEnum22Box *)value; - [self writeByte:151]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum23Box class]]) { - FLTFillerEnum23Box *box = (FLTFillerEnum23Box *)value; - [self writeByte:152]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum24Box class]]) { - FLTFillerEnum24Box *box = (FLTFillerEnum24Box *)value; - [self writeByte:153]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum25Box class]]) { - FLTFillerEnum25Box *box = (FLTFillerEnum25Box *)value; - [self writeByte:154]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum26Box class]]) { - FLTFillerEnum26Box *box = (FLTFillerEnum26Box *)value; - [self writeByte:155]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum27Box class]]) { - FLTFillerEnum27Box *box = (FLTFillerEnum27Box *)value; - [self writeByte:156]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum28Box class]]) { - FLTFillerEnum28Box *box = (FLTFillerEnum28Box *)value; - [self writeByte:157]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum29Box class]]) { - FLTFillerEnum29Box *box = (FLTFillerEnum29Box *)value; - [self writeByte:158]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum30Box class]]) { - FLTFillerEnum30Box *box = (FLTFillerEnum30Box *)value; - [self writeByte:159]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum31Box class]]) { - FLTFillerEnum31Box *box = (FLTFillerEnum31Box *)value; - [self writeByte:160]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum32Box class]]) { - FLTFillerEnum32Box *box = (FLTFillerEnum32Box *)value; - [self writeByte:161]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum33Box class]]) { - FLTFillerEnum33Box *box = (FLTFillerEnum33Box *)value; - [self writeByte:162]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum34Box class]]) { - FLTFillerEnum34Box *box = (FLTFillerEnum34Box *)value; - [self writeByte:163]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum35Box class]]) { - FLTFillerEnum35Box *box = (FLTFillerEnum35Box *)value; - [self writeByte:164]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum36Box class]]) { - FLTFillerEnum36Box *box = (FLTFillerEnum36Box *)value; - [self writeByte:165]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum37Box class]]) { - FLTFillerEnum37Box *box = (FLTFillerEnum37Box *)value; - [self writeByte:166]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum38Box class]]) { - FLTFillerEnum38Box *box = (FLTFillerEnum38Box *)value; - [self writeByte:167]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum39Box class]]) { - FLTFillerEnum39Box *box = (FLTFillerEnum39Box *)value; - [self writeByte:168]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum40Box class]]) { - FLTFillerEnum40Box *box = (FLTFillerEnum40Box *)value; - [self writeByte:169]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum41Box class]]) { - FLTFillerEnum41Box *box = (FLTFillerEnum41Box *)value; - [self writeByte:170]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum42Box class]]) { - FLTFillerEnum42Box *box = (FLTFillerEnum42Box *)value; - [self writeByte:171]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum43Box class]]) { - FLTFillerEnum43Box *box = (FLTFillerEnum43Box *)value; - [self writeByte:172]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum44Box class]]) { - FLTFillerEnum44Box *box = (FLTFillerEnum44Box *)value; - [self writeByte:173]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum45Box class]]) { - FLTFillerEnum45Box *box = (FLTFillerEnum45Box *)value; - [self writeByte:174]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum46Box class]]) { - FLTFillerEnum46Box *box = (FLTFillerEnum46Box *)value; - [self writeByte:175]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum47Box class]]) { - FLTFillerEnum47Box *box = (FLTFillerEnum47Box *)value; - [self writeByte:176]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum48Box class]]) { - FLTFillerEnum48Box *box = (FLTFillerEnum48Box *)value; - [self writeByte:177]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum49Box class]]) { - FLTFillerEnum49Box *box = (FLTFillerEnum49Box *)value; - [self writeByte:178]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum50Box class]]) { - FLTFillerEnum50Box *box = (FLTFillerEnum50Box *)value; - [self writeByte:179]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum51Box class]]) { - FLTFillerEnum51Box *box = (FLTFillerEnum51Box *)value; - [self writeByte:180]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum52Box class]]) { - FLTFillerEnum52Box *box = (FLTFillerEnum52Box *)value; - [self writeByte:181]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum53Box class]]) { - FLTFillerEnum53Box *box = (FLTFillerEnum53Box *)value; - [self writeByte:182]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum54Box class]]) { - FLTFillerEnum54Box *box = (FLTFillerEnum54Box *)value; - [self writeByte:183]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum55Box class]]) { - FLTFillerEnum55Box *box = (FLTFillerEnum55Box *)value; - [self writeByte:184]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum56Box class]]) { - FLTFillerEnum56Box *box = (FLTFillerEnum56Box *)value; - [self writeByte:185]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum57Box class]]) { - FLTFillerEnum57Box *box = (FLTFillerEnum57Box *)value; - [self writeByte:186]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum58Box class]]) { - FLTFillerEnum58Box *box = (FLTFillerEnum58Box *)value; - [self writeByte:187]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum59Box class]]) { - FLTFillerEnum59Box *box = (FLTFillerEnum59Box *)value; - [self writeByte:188]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum60Box class]]) { - FLTFillerEnum60Box *box = (FLTFillerEnum60Box *)value; - [self writeByte:189]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum61Box class]]) { - FLTFillerEnum61Box *box = (FLTFillerEnum61Box *)value; - [self writeByte:190]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum62Box class]]) { - FLTFillerEnum62Box *box = (FLTFillerEnum62Box *)value; - [self writeByte:191]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum63Box class]]) { - FLTFillerEnum63Box *box = (FLTFillerEnum63Box *)value; - [self writeByte:192]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum64Box class]]) { - FLTFillerEnum64Box *box = (FLTFillerEnum64Box *)value; - [self writeByte:193]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum65Box class]]) { - FLTFillerEnum65Box *box = (FLTFillerEnum65Box *)value; - [self writeByte:194]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum66Box class]]) { - FLTFillerEnum66Box *box = (FLTFillerEnum66Box *)value; - [self writeByte:195]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum67Box class]]) { - FLTFillerEnum67Box *box = (FLTFillerEnum67Box *)value; - [self writeByte:196]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum68Box class]]) { - FLTFillerEnum68Box *box = (FLTFillerEnum68Box *)value; - [self writeByte:197]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum69Box class]]) { - FLTFillerEnum69Box *box = (FLTFillerEnum69Box *)value; - [self writeByte:198]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum70Box class]]) { - FLTFillerEnum70Box *box = (FLTFillerEnum70Box *)value; - [self writeByte:199]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum71Box class]]) { - FLTFillerEnum71Box *box = (FLTFillerEnum71Box *)value; - [self writeByte:200]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum72Box class]]) { - FLTFillerEnum72Box *box = (FLTFillerEnum72Box *)value; - [self writeByte:201]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum73Box class]]) { - FLTFillerEnum73Box *box = (FLTFillerEnum73Box *)value; - [self writeByte:202]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum74Box class]]) { - FLTFillerEnum74Box *box = (FLTFillerEnum74Box *)value; - [self writeByte:203]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum75Box class]]) { - FLTFillerEnum75Box *box = (FLTFillerEnum75Box *)value; - [self writeByte:204]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum76Box class]]) { - FLTFillerEnum76Box *box = (FLTFillerEnum76Box *)value; - [self writeByte:205]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum77Box class]]) { - FLTFillerEnum77Box *box = (FLTFillerEnum77Box *)value; - [self writeByte:206]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum78Box class]]) { - FLTFillerEnum78Box *box = (FLTFillerEnum78Box *)value; - [self writeByte:207]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum79Box class]]) { - FLTFillerEnum79Box *box = (FLTFillerEnum79Box *)value; - [self writeByte:208]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum80Box class]]) { - FLTFillerEnum80Box *box = (FLTFillerEnum80Box *)value; - [self writeByte:209]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum81Box class]]) { - FLTFillerEnum81Box *box = (FLTFillerEnum81Box *)value; - [self writeByte:210]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum82Box class]]) { - FLTFillerEnum82Box *box = (FLTFillerEnum82Box *)value; - [self writeByte:211]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum83Box class]]) { - FLTFillerEnum83Box *box = (FLTFillerEnum83Box *)value; - [self writeByte:212]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum84Box class]]) { - FLTFillerEnum84Box *box = (FLTFillerEnum84Box *)value; - [self writeByte:213]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum85Box class]]) { - FLTFillerEnum85Box *box = (FLTFillerEnum85Box *)value; - [self writeByte:214]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum86Box class]]) { - FLTFillerEnum86Box *box = (FLTFillerEnum86Box *)value; - [self writeByte:215]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum87Box class]]) { - FLTFillerEnum87Box *box = (FLTFillerEnum87Box *)value; - [self writeByte:216]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum88Box class]]) { - FLTFillerEnum88Box *box = (FLTFillerEnum88Box *)value; - [self writeByte:217]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum89Box class]]) { - FLTFillerEnum89Box *box = (FLTFillerEnum89Box *)value; - [self writeByte:218]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum90Box class]]) { - FLTFillerEnum90Box *box = (FLTFillerEnum90Box *)value; - [self writeByte:219]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum91Box class]]) { - FLTFillerEnum91Box *box = (FLTFillerEnum91Box *)value; - [self writeByte:220]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum92Box class]]) { - FLTFillerEnum92Box *box = (FLTFillerEnum92Box *)value; - [self writeByte:221]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum93Box class]]) { - FLTFillerEnum93Box *box = (FLTFillerEnum93Box *)value; - [self writeByte:222]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum94Box class]]) { - FLTFillerEnum94Box *box = (FLTFillerEnum94Box *)value; - [self writeByte:223]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum95Box class]]) { - FLTFillerEnum95Box *box = (FLTFillerEnum95Box *)value; - [self writeByte:224]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum96Box class]]) { - FLTFillerEnum96Box *box = (FLTFillerEnum96Box *)value; - [self writeByte:225]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum97Box class]]) { - FLTFillerEnum97Box *box = (FLTFillerEnum97Box *)value; - [self writeByte:226]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum98Box class]]) { - FLTFillerEnum98Box *box = (FLTFillerEnum98Box *)value; - [self writeByte:227]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum99Box class]]) { - FLTFillerEnum99Box *box = (FLTFillerEnum99Box *)value; - [self writeByte:228]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum100Box class]]) { - FLTFillerEnum100Box *box = (FLTFillerEnum100Box *)value; - [self writeByte:229]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum101Box class]]) { - FLTFillerEnum101Box *box = (FLTFillerEnum101Box *)value; - [self writeByte:230]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum102Box class]]) { - FLTFillerEnum102Box *box = (FLTFillerEnum102Box *)value; - [self writeByte:231]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum103Box class]]) { - FLTFillerEnum103Box *box = (FLTFillerEnum103Box *)value; - [self writeByte:232]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum104Box class]]) { - FLTFillerEnum104Box *box = (FLTFillerEnum104Box *)value; - [self writeByte:233]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum105Box class]]) { - FLTFillerEnum105Box *box = (FLTFillerEnum105Box *)value; - [self writeByte:234]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum106Box class]]) { - FLTFillerEnum106Box *box = (FLTFillerEnum106Box *)value; - [self writeByte:235]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum107Box class]]) { - FLTFillerEnum107Box *box = (FLTFillerEnum107Box *)value; - [self writeByte:236]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum108Box class]]) { - FLTFillerEnum108Box *box = (FLTFillerEnum108Box *)value; - [self writeByte:237]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum109Box class]]) { - FLTFillerEnum109Box *box = (FLTFillerEnum109Box *)value; - [self writeByte:238]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum110Box class]]) { - FLTFillerEnum110Box *box = (FLTFillerEnum110Box *)value; - [self writeByte:239]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum111Box class]]) { - FLTFillerEnum111Box *box = (FLTFillerEnum111Box *)value; - [self writeByte:240]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum112Box class]]) { - FLTFillerEnum112Box *box = (FLTFillerEnum112Box *)value; - [self writeByte:241]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum113Box class]]) { - FLTFillerEnum113Box *box = (FLTFillerEnum113Box *)value; - [self writeByte:242]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum114Box class]]) { - FLTFillerEnum114Box *box = (FLTFillerEnum114Box *)value; - [self writeByte:243]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum115Box class]]) { - FLTFillerEnum115Box *box = (FLTFillerEnum115Box *)value; - [self writeByte:244]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum116Box class]]) { - FLTFillerEnum116Box *box = (FLTFillerEnum116Box *)value; - [self writeByte:245]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum117Box class]]) { - FLTFillerEnum117Box *box = (FLTFillerEnum117Box *)value; - [self writeByte:246]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum118Box class]]) { - FLTFillerEnum118Box *box = (FLTFillerEnum118Box *)value; - [self writeByte:247]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum119Box class]]) { - FLTFillerEnum119Box *box = (FLTFillerEnum119Box *)value; - [self writeByte:248]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum120Box class]]) { - FLTFillerEnum120Box *box = (FLTFillerEnum120Box *)value; - [self writeByte:249]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum121Box class]]) { - FLTFillerEnum121Box *box = (FLTFillerEnum121Box *)value; - [self writeByte:250]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum122Box class]]) { - FLTFillerEnum122Box *box = (FLTFillerEnum122Box *)value; - [self writeByte:251]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum123Box class]]) { - FLTFillerEnum123Box *box = (FLTFillerEnum123Box *)value; - [self writeByte:252]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTFillerEnum124Box class]]) { - FLTFillerEnum124Box *box = (FLTFillerEnum124Box *)value; - [self writeByte:253]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FLTAnEnumBox class]]) { + if ([value isKindOfClass:[FLTAnEnumBox class]]) { FLTAnEnumBox *box = (FLTAnEnumBox *)value; - [self writeByte:254]; + [self writeByte:129]; [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; } else if ([value isKindOfClass:[FLTAnotherEnumBox class]]) { FLTAnotherEnumBox *box = (FLTAnotherEnumBox *)value; - FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow - makeWithType:0 - wrapped:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:130]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; } else if ([value isKindOfClass:[FLTAllTypes class]]) { - FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:1 - wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:131]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[FLTAllNullableTypes class]]) { - FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:2 - wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:132]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[FLTAllNullableTypesWithoutRecursion class]]) { - FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:3 - wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:133]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[FLTAllClassesWrapper class]]) { - FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:4 - wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:134]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[FLTTestMessage class]]) { - FLT__pigeon_CodecOverflow *wrap = [FLT__pigeon_CodecOverflow makeWithType:5 - wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:135]; + [self writeValue:[value toList]]; } else { [super writeValue:value]; } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h index 0760bff374c..4a2239f9656 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.h @@ -14,1256 +14,6 @@ NS_ASSUME_NONNULL_BEGIN -typedef NS_ENUM(NSUInteger, FillerEnum0) { - FillerEnum0FillerMember0 = 0, -}; - -/// Wrapper for FillerEnum0 to allow for nullability. -@interface FillerEnum0Box : NSObject -@property(nonatomic, assign) FillerEnum0 value; -- (instancetype)initWithValue:(FillerEnum0)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum1) { - FillerEnum1FillerMember1 = 0, -}; - -/// Wrapper for FillerEnum1 to allow for nullability. -@interface FillerEnum1Box : NSObject -@property(nonatomic, assign) FillerEnum1 value; -- (instancetype)initWithValue:(FillerEnum1)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum2) { - FillerEnum2FillerMember2 = 0, -}; - -/// Wrapper for FillerEnum2 to allow for nullability. -@interface FillerEnum2Box : NSObject -@property(nonatomic, assign) FillerEnum2 value; -- (instancetype)initWithValue:(FillerEnum2)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum3) { - FillerEnum3FillerMember3 = 0, -}; - -/// Wrapper for FillerEnum3 to allow for nullability. -@interface FillerEnum3Box : NSObject -@property(nonatomic, assign) FillerEnum3 value; -- (instancetype)initWithValue:(FillerEnum3)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum4) { - FillerEnum4FillerMember4 = 0, -}; - -/// Wrapper for FillerEnum4 to allow for nullability. -@interface FillerEnum4Box : NSObject -@property(nonatomic, assign) FillerEnum4 value; -- (instancetype)initWithValue:(FillerEnum4)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum5) { - FillerEnum5FillerMember5 = 0, -}; - -/// Wrapper for FillerEnum5 to allow for nullability. -@interface FillerEnum5Box : NSObject -@property(nonatomic, assign) FillerEnum5 value; -- (instancetype)initWithValue:(FillerEnum5)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum6) { - FillerEnum6FillerMember6 = 0, -}; - -/// Wrapper for FillerEnum6 to allow for nullability. -@interface FillerEnum6Box : NSObject -@property(nonatomic, assign) FillerEnum6 value; -- (instancetype)initWithValue:(FillerEnum6)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum7) { - FillerEnum7FillerMember7 = 0, -}; - -/// Wrapper for FillerEnum7 to allow for nullability. -@interface FillerEnum7Box : NSObject -@property(nonatomic, assign) FillerEnum7 value; -- (instancetype)initWithValue:(FillerEnum7)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum8) { - FillerEnum8FillerMember8 = 0, -}; - -/// Wrapper for FillerEnum8 to allow for nullability. -@interface FillerEnum8Box : NSObject -@property(nonatomic, assign) FillerEnum8 value; -- (instancetype)initWithValue:(FillerEnum8)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum9) { - FillerEnum9FillerMember9 = 0, -}; - -/// Wrapper for FillerEnum9 to allow for nullability. -@interface FillerEnum9Box : NSObject -@property(nonatomic, assign) FillerEnum9 value; -- (instancetype)initWithValue:(FillerEnum9)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum10) { - FillerEnum10FillerMember10 = 0, -}; - -/// Wrapper for FillerEnum10 to allow for nullability. -@interface FillerEnum10Box : NSObject -@property(nonatomic, assign) FillerEnum10 value; -- (instancetype)initWithValue:(FillerEnum10)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum11) { - FillerEnum11FillerMember11 = 0, -}; - -/// Wrapper for FillerEnum11 to allow for nullability. -@interface FillerEnum11Box : NSObject -@property(nonatomic, assign) FillerEnum11 value; -- (instancetype)initWithValue:(FillerEnum11)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum12) { - FillerEnum12FillerMember12 = 0, -}; - -/// Wrapper for FillerEnum12 to allow for nullability. -@interface FillerEnum12Box : NSObject -@property(nonatomic, assign) FillerEnum12 value; -- (instancetype)initWithValue:(FillerEnum12)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum13) { - FillerEnum13FillerMember13 = 0, -}; - -/// Wrapper for FillerEnum13 to allow for nullability. -@interface FillerEnum13Box : NSObject -@property(nonatomic, assign) FillerEnum13 value; -- (instancetype)initWithValue:(FillerEnum13)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum14) { - FillerEnum14FillerMember14 = 0, -}; - -/// Wrapper for FillerEnum14 to allow for nullability. -@interface FillerEnum14Box : NSObject -@property(nonatomic, assign) FillerEnum14 value; -- (instancetype)initWithValue:(FillerEnum14)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum15) { - FillerEnum15FillerMember15 = 0, -}; - -/// Wrapper for FillerEnum15 to allow for nullability. -@interface FillerEnum15Box : NSObject -@property(nonatomic, assign) FillerEnum15 value; -- (instancetype)initWithValue:(FillerEnum15)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum16) { - FillerEnum16FillerMember16 = 0, -}; - -/// Wrapper for FillerEnum16 to allow for nullability. -@interface FillerEnum16Box : NSObject -@property(nonatomic, assign) FillerEnum16 value; -- (instancetype)initWithValue:(FillerEnum16)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum17) { - FillerEnum17FillerMember17 = 0, -}; - -/// Wrapper for FillerEnum17 to allow for nullability. -@interface FillerEnum17Box : NSObject -@property(nonatomic, assign) FillerEnum17 value; -- (instancetype)initWithValue:(FillerEnum17)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum18) { - FillerEnum18FillerMember18 = 0, -}; - -/// Wrapper for FillerEnum18 to allow for nullability. -@interface FillerEnum18Box : NSObject -@property(nonatomic, assign) FillerEnum18 value; -- (instancetype)initWithValue:(FillerEnum18)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum19) { - FillerEnum19FillerMember19 = 0, -}; - -/// Wrapper for FillerEnum19 to allow for nullability. -@interface FillerEnum19Box : NSObject -@property(nonatomic, assign) FillerEnum19 value; -- (instancetype)initWithValue:(FillerEnum19)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum20) { - FillerEnum20FillerMember20 = 0, -}; - -/// Wrapper for FillerEnum20 to allow for nullability. -@interface FillerEnum20Box : NSObject -@property(nonatomic, assign) FillerEnum20 value; -- (instancetype)initWithValue:(FillerEnum20)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum21) { - FillerEnum21FillerMember21 = 0, -}; - -/// Wrapper for FillerEnum21 to allow for nullability. -@interface FillerEnum21Box : NSObject -@property(nonatomic, assign) FillerEnum21 value; -- (instancetype)initWithValue:(FillerEnum21)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum22) { - FillerEnum22FillerMember22 = 0, -}; - -/// Wrapper for FillerEnum22 to allow for nullability. -@interface FillerEnum22Box : NSObject -@property(nonatomic, assign) FillerEnum22 value; -- (instancetype)initWithValue:(FillerEnum22)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum23) { - FillerEnum23FillerMember23 = 0, -}; - -/// Wrapper for FillerEnum23 to allow for nullability. -@interface FillerEnum23Box : NSObject -@property(nonatomic, assign) FillerEnum23 value; -- (instancetype)initWithValue:(FillerEnum23)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum24) { - FillerEnum24FillerMember24 = 0, -}; - -/// Wrapper for FillerEnum24 to allow for nullability. -@interface FillerEnum24Box : NSObject -@property(nonatomic, assign) FillerEnum24 value; -- (instancetype)initWithValue:(FillerEnum24)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum25) { - FillerEnum25FillerMember25 = 0, -}; - -/// Wrapper for FillerEnum25 to allow for nullability. -@interface FillerEnum25Box : NSObject -@property(nonatomic, assign) FillerEnum25 value; -- (instancetype)initWithValue:(FillerEnum25)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum26) { - FillerEnum26FillerMember26 = 0, -}; - -/// Wrapper for FillerEnum26 to allow for nullability. -@interface FillerEnum26Box : NSObject -@property(nonatomic, assign) FillerEnum26 value; -- (instancetype)initWithValue:(FillerEnum26)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum27) { - FillerEnum27FillerMember27 = 0, -}; - -/// Wrapper for FillerEnum27 to allow for nullability. -@interface FillerEnum27Box : NSObject -@property(nonatomic, assign) FillerEnum27 value; -- (instancetype)initWithValue:(FillerEnum27)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum28) { - FillerEnum28FillerMember28 = 0, -}; - -/// Wrapper for FillerEnum28 to allow for nullability. -@interface FillerEnum28Box : NSObject -@property(nonatomic, assign) FillerEnum28 value; -- (instancetype)initWithValue:(FillerEnum28)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum29) { - FillerEnum29FillerMember29 = 0, -}; - -/// Wrapper for FillerEnum29 to allow for nullability. -@interface FillerEnum29Box : NSObject -@property(nonatomic, assign) FillerEnum29 value; -- (instancetype)initWithValue:(FillerEnum29)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum30) { - FillerEnum30FillerMember30 = 0, -}; - -/// Wrapper for FillerEnum30 to allow for nullability. -@interface FillerEnum30Box : NSObject -@property(nonatomic, assign) FillerEnum30 value; -- (instancetype)initWithValue:(FillerEnum30)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum31) { - FillerEnum31FillerMember31 = 0, -}; - -/// Wrapper for FillerEnum31 to allow for nullability. -@interface FillerEnum31Box : NSObject -@property(nonatomic, assign) FillerEnum31 value; -- (instancetype)initWithValue:(FillerEnum31)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum32) { - FillerEnum32FillerMember32 = 0, -}; - -/// Wrapper for FillerEnum32 to allow for nullability. -@interface FillerEnum32Box : NSObject -@property(nonatomic, assign) FillerEnum32 value; -- (instancetype)initWithValue:(FillerEnum32)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum33) { - FillerEnum33FillerMember33 = 0, -}; - -/// Wrapper for FillerEnum33 to allow for nullability. -@interface FillerEnum33Box : NSObject -@property(nonatomic, assign) FillerEnum33 value; -- (instancetype)initWithValue:(FillerEnum33)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum34) { - FillerEnum34FillerMember34 = 0, -}; - -/// Wrapper for FillerEnum34 to allow for nullability. -@interface FillerEnum34Box : NSObject -@property(nonatomic, assign) FillerEnum34 value; -- (instancetype)initWithValue:(FillerEnum34)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum35) { - FillerEnum35FillerMember35 = 0, -}; - -/// Wrapper for FillerEnum35 to allow for nullability. -@interface FillerEnum35Box : NSObject -@property(nonatomic, assign) FillerEnum35 value; -- (instancetype)initWithValue:(FillerEnum35)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum36) { - FillerEnum36FillerMember36 = 0, -}; - -/// Wrapper for FillerEnum36 to allow for nullability. -@interface FillerEnum36Box : NSObject -@property(nonatomic, assign) FillerEnum36 value; -- (instancetype)initWithValue:(FillerEnum36)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum37) { - FillerEnum37FillerMember37 = 0, -}; - -/// Wrapper for FillerEnum37 to allow for nullability. -@interface FillerEnum37Box : NSObject -@property(nonatomic, assign) FillerEnum37 value; -- (instancetype)initWithValue:(FillerEnum37)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum38) { - FillerEnum38FillerMember38 = 0, -}; - -/// Wrapper for FillerEnum38 to allow for nullability. -@interface FillerEnum38Box : NSObject -@property(nonatomic, assign) FillerEnum38 value; -- (instancetype)initWithValue:(FillerEnum38)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum39) { - FillerEnum39FillerMember39 = 0, -}; - -/// Wrapper for FillerEnum39 to allow for nullability. -@interface FillerEnum39Box : NSObject -@property(nonatomic, assign) FillerEnum39 value; -- (instancetype)initWithValue:(FillerEnum39)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum40) { - FillerEnum40FillerMember40 = 0, -}; - -/// Wrapper for FillerEnum40 to allow for nullability. -@interface FillerEnum40Box : NSObject -@property(nonatomic, assign) FillerEnum40 value; -- (instancetype)initWithValue:(FillerEnum40)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum41) { - FillerEnum41FillerMember41 = 0, -}; - -/// Wrapper for FillerEnum41 to allow for nullability. -@interface FillerEnum41Box : NSObject -@property(nonatomic, assign) FillerEnum41 value; -- (instancetype)initWithValue:(FillerEnum41)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum42) { - FillerEnum42FillerMember42 = 0, -}; - -/// Wrapper for FillerEnum42 to allow for nullability. -@interface FillerEnum42Box : NSObject -@property(nonatomic, assign) FillerEnum42 value; -- (instancetype)initWithValue:(FillerEnum42)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum43) { - FillerEnum43FillerMember43 = 0, -}; - -/// Wrapper for FillerEnum43 to allow for nullability. -@interface FillerEnum43Box : NSObject -@property(nonatomic, assign) FillerEnum43 value; -- (instancetype)initWithValue:(FillerEnum43)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum44) { - FillerEnum44FillerMember44 = 0, -}; - -/// Wrapper for FillerEnum44 to allow for nullability. -@interface FillerEnum44Box : NSObject -@property(nonatomic, assign) FillerEnum44 value; -- (instancetype)initWithValue:(FillerEnum44)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum45) { - FillerEnum45FillerMember45 = 0, -}; - -/// Wrapper for FillerEnum45 to allow for nullability. -@interface FillerEnum45Box : NSObject -@property(nonatomic, assign) FillerEnum45 value; -- (instancetype)initWithValue:(FillerEnum45)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum46) { - FillerEnum46FillerMember46 = 0, -}; - -/// Wrapper for FillerEnum46 to allow for nullability. -@interface FillerEnum46Box : NSObject -@property(nonatomic, assign) FillerEnum46 value; -- (instancetype)initWithValue:(FillerEnum46)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum47) { - FillerEnum47FillerMember47 = 0, -}; - -/// Wrapper for FillerEnum47 to allow for nullability. -@interface FillerEnum47Box : NSObject -@property(nonatomic, assign) FillerEnum47 value; -- (instancetype)initWithValue:(FillerEnum47)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum48) { - FillerEnum48FillerMember48 = 0, -}; - -/// Wrapper for FillerEnum48 to allow for nullability. -@interface FillerEnum48Box : NSObject -@property(nonatomic, assign) FillerEnum48 value; -- (instancetype)initWithValue:(FillerEnum48)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum49) { - FillerEnum49FillerMember49 = 0, -}; - -/// Wrapper for FillerEnum49 to allow for nullability. -@interface FillerEnum49Box : NSObject -@property(nonatomic, assign) FillerEnum49 value; -- (instancetype)initWithValue:(FillerEnum49)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum50) { - FillerEnum50FillerMember50 = 0, -}; - -/// Wrapper for FillerEnum50 to allow for nullability. -@interface FillerEnum50Box : NSObject -@property(nonatomic, assign) FillerEnum50 value; -- (instancetype)initWithValue:(FillerEnum50)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum51) { - FillerEnum51FillerMember51 = 0, -}; - -/// Wrapper for FillerEnum51 to allow for nullability. -@interface FillerEnum51Box : NSObject -@property(nonatomic, assign) FillerEnum51 value; -- (instancetype)initWithValue:(FillerEnum51)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum52) { - FillerEnum52FillerMember52 = 0, -}; - -/// Wrapper for FillerEnum52 to allow for nullability. -@interface FillerEnum52Box : NSObject -@property(nonatomic, assign) FillerEnum52 value; -- (instancetype)initWithValue:(FillerEnum52)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum53) { - FillerEnum53FillerMember53 = 0, -}; - -/// Wrapper for FillerEnum53 to allow for nullability. -@interface FillerEnum53Box : NSObject -@property(nonatomic, assign) FillerEnum53 value; -- (instancetype)initWithValue:(FillerEnum53)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum54) { - FillerEnum54FillerMember54 = 0, -}; - -/// Wrapper for FillerEnum54 to allow for nullability. -@interface FillerEnum54Box : NSObject -@property(nonatomic, assign) FillerEnum54 value; -- (instancetype)initWithValue:(FillerEnum54)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum55) { - FillerEnum55FillerMember55 = 0, -}; - -/// Wrapper for FillerEnum55 to allow for nullability. -@interface FillerEnum55Box : NSObject -@property(nonatomic, assign) FillerEnum55 value; -- (instancetype)initWithValue:(FillerEnum55)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum56) { - FillerEnum56FillerMember56 = 0, -}; - -/// Wrapper for FillerEnum56 to allow for nullability. -@interface FillerEnum56Box : NSObject -@property(nonatomic, assign) FillerEnum56 value; -- (instancetype)initWithValue:(FillerEnum56)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum57) { - FillerEnum57FillerMember57 = 0, -}; - -/// Wrapper for FillerEnum57 to allow for nullability. -@interface FillerEnum57Box : NSObject -@property(nonatomic, assign) FillerEnum57 value; -- (instancetype)initWithValue:(FillerEnum57)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum58) { - FillerEnum58FillerMember58 = 0, -}; - -/// Wrapper for FillerEnum58 to allow for nullability. -@interface FillerEnum58Box : NSObject -@property(nonatomic, assign) FillerEnum58 value; -- (instancetype)initWithValue:(FillerEnum58)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum59) { - FillerEnum59FillerMember59 = 0, -}; - -/// Wrapper for FillerEnum59 to allow for nullability. -@interface FillerEnum59Box : NSObject -@property(nonatomic, assign) FillerEnum59 value; -- (instancetype)initWithValue:(FillerEnum59)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum60) { - FillerEnum60FillerMember60 = 0, -}; - -/// Wrapper for FillerEnum60 to allow for nullability. -@interface FillerEnum60Box : NSObject -@property(nonatomic, assign) FillerEnum60 value; -- (instancetype)initWithValue:(FillerEnum60)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum61) { - FillerEnum61FillerMember61 = 0, -}; - -/// Wrapper for FillerEnum61 to allow for nullability. -@interface FillerEnum61Box : NSObject -@property(nonatomic, assign) FillerEnum61 value; -- (instancetype)initWithValue:(FillerEnum61)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum62) { - FillerEnum62FillerMember62 = 0, -}; - -/// Wrapper for FillerEnum62 to allow for nullability. -@interface FillerEnum62Box : NSObject -@property(nonatomic, assign) FillerEnum62 value; -- (instancetype)initWithValue:(FillerEnum62)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum63) { - FillerEnum63FillerMember63 = 0, -}; - -/// Wrapper for FillerEnum63 to allow for nullability. -@interface FillerEnum63Box : NSObject -@property(nonatomic, assign) FillerEnum63 value; -- (instancetype)initWithValue:(FillerEnum63)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum64) { - FillerEnum64FillerMember64 = 0, -}; - -/// Wrapper for FillerEnum64 to allow for nullability. -@interface FillerEnum64Box : NSObject -@property(nonatomic, assign) FillerEnum64 value; -- (instancetype)initWithValue:(FillerEnum64)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum65) { - FillerEnum65FillerMember65 = 0, -}; - -/// Wrapper for FillerEnum65 to allow for nullability. -@interface FillerEnum65Box : NSObject -@property(nonatomic, assign) FillerEnum65 value; -- (instancetype)initWithValue:(FillerEnum65)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum66) { - FillerEnum66FillerMember66 = 0, -}; - -/// Wrapper for FillerEnum66 to allow for nullability. -@interface FillerEnum66Box : NSObject -@property(nonatomic, assign) FillerEnum66 value; -- (instancetype)initWithValue:(FillerEnum66)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum67) { - FillerEnum67FillerMember67 = 0, -}; - -/// Wrapper for FillerEnum67 to allow for nullability. -@interface FillerEnum67Box : NSObject -@property(nonatomic, assign) FillerEnum67 value; -- (instancetype)initWithValue:(FillerEnum67)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum68) { - FillerEnum68FillerMember68 = 0, -}; - -/// Wrapper for FillerEnum68 to allow for nullability. -@interface FillerEnum68Box : NSObject -@property(nonatomic, assign) FillerEnum68 value; -- (instancetype)initWithValue:(FillerEnum68)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum69) { - FillerEnum69FillerMember69 = 0, -}; - -/// Wrapper for FillerEnum69 to allow for nullability. -@interface FillerEnum69Box : NSObject -@property(nonatomic, assign) FillerEnum69 value; -- (instancetype)initWithValue:(FillerEnum69)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum70) { - FillerEnum70FillerMember70 = 0, -}; - -/// Wrapper for FillerEnum70 to allow for nullability. -@interface FillerEnum70Box : NSObject -@property(nonatomic, assign) FillerEnum70 value; -- (instancetype)initWithValue:(FillerEnum70)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum71) { - FillerEnum71FillerMember71 = 0, -}; - -/// Wrapper for FillerEnum71 to allow for nullability. -@interface FillerEnum71Box : NSObject -@property(nonatomic, assign) FillerEnum71 value; -- (instancetype)initWithValue:(FillerEnum71)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum72) { - FillerEnum72FillerMember72 = 0, -}; - -/// Wrapper for FillerEnum72 to allow for nullability. -@interface FillerEnum72Box : NSObject -@property(nonatomic, assign) FillerEnum72 value; -- (instancetype)initWithValue:(FillerEnum72)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum73) { - FillerEnum73FillerMember73 = 0, -}; - -/// Wrapper for FillerEnum73 to allow for nullability. -@interface FillerEnum73Box : NSObject -@property(nonatomic, assign) FillerEnum73 value; -- (instancetype)initWithValue:(FillerEnum73)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum74) { - FillerEnum74FillerMember74 = 0, -}; - -/// Wrapper for FillerEnum74 to allow for nullability. -@interface FillerEnum74Box : NSObject -@property(nonatomic, assign) FillerEnum74 value; -- (instancetype)initWithValue:(FillerEnum74)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum75) { - FillerEnum75FillerMember75 = 0, -}; - -/// Wrapper for FillerEnum75 to allow for nullability. -@interface FillerEnum75Box : NSObject -@property(nonatomic, assign) FillerEnum75 value; -- (instancetype)initWithValue:(FillerEnum75)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum76) { - FillerEnum76FillerMember76 = 0, -}; - -/// Wrapper for FillerEnum76 to allow for nullability. -@interface FillerEnum76Box : NSObject -@property(nonatomic, assign) FillerEnum76 value; -- (instancetype)initWithValue:(FillerEnum76)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum77) { - FillerEnum77FillerMember77 = 0, -}; - -/// Wrapper for FillerEnum77 to allow for nullability. -@interface FillerEnum77Box : NSObject -@property(nonatomic, assign) FillerEnum77 value; -- (instancetype)initWithValue:(FillerEnum77)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum78) { - FillerEnum78FillerMember78 = 0, -}; - -/// Wrapper for FillerEnum78 to allow for nullability. -@interface FillerEnum78Box : NSObject -@property(nonatomic, assign) FillerEnum78 value; -- (instancetype)initWithValue:(FillerEnum78)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum79) { - FillerEnum79FillerMember79 = 0, -}; - -/// Wrapper for FillerEnum79 to allow for nullability. -@interface FillerEnum79Box : NSObject -@property(nonatomic, assign) FillerEnum79 value; -- (instancetype)initWithValue:(FillerEnum79)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum80) { - FillerEnum80FillerMember80 = 0, -}; - -/// Wrapper for FillerEnum80 to allow for nullability. -@interface FillerEnum80Box : NSObject -@property(nonatomic, assign) FillerEnum80 value; -- (instancetype)initWithValue:(FillerEnum80)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum81) { - FillerEnum81FillerMember81 = 0, -}; - -/// Wrapper for FillerEnum81 to allow for nullability. -@interface FillerEnum81Box : NSObject -@property(nonatomic, assign) FillerEnum81 value; -- (instancetype)initWithValue:(FillerEnum81)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum82) { - FillerEnum82FillerMember82 = 0, -}; - -/// Wrapper for FillerEnum82 to allow for nullability. -@interface FillerEnum82Box : NSObject -@property(nonatomic, assign) FillerEnum82 value; -- (instancetype)initWithValue:(FillerEnum82)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum83) { - FillerEnum83FillerMember83 = 0, -}; - -/// Wrapper for FillerEnum83 to allow for nullability. -@interface FillerEnum83Box : NSObject -@property(nonatomic, assign) FillerEnum83 value; -- (instancetype)initWithValue:(FillerEnum83)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum84) { - FillerEnum84FillerMember84 = 0, -}; - -/// Wrapper for FillerEnum84 to allow for nullability. -@interface FillerEnum84Box : NSObject -@property(nonatomic, assign) FillerEnum84 value; -- (instancetype)initWithValue:(FillerEnum84)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum85) { - FillerEnum85FillerMember85 = 0, -}; - -/// Wrapper for FillerEnum85 to allow for nullability. -@interface FillerEnum85Box : NSObject -@property(nonatomic, assign) FillerEnum85 value; -- (instancetype)initWithValue:(FillerEnum85)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum86) { - FillerEnum86FillerMember86 = 0, -}; - -/// Wrapper for FillerEnum86 to allow for nullability. -@interface FillerEnum86Box : NSObject -@property(nonatomic, assign) FillerEnum86 value; -- (instancetype)initWithValue:(FillerEnum86)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum87) { - FillerEnum87FillerMember87 = 0, -}; - -/// Wrapper for FillerEnum87 to allow for nullability. -@interface FillerEnum87Box : NSObject -@property(nonatomic, assign) FillerEnum87 value; -- (instancetype)initWithValue:(FillerEnum87)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum88) { - FillerEnum88FillerMember88 = 0, -}; - -/// Wrapper for FillerEnum88 to allow for nullability. -@interface FillerEnum88Box : NSObject -@property(nonatomic, assign) FillerEnum88 value; -- (instancetype)initWithValue:(FillerEnum88)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum89) { - FillerEnum89FillerMember89 = 0, -}; - -/// Wrapper for FillerEnum89 to allow for nullability. -@interface FillerEnum89Box : NSObject -@property(nonatomic, assign) FillerEnum89 value; -- (instancetype)initWithValue:(FillerEnum89)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum90) { - FillerEnum90FillerMember90 = 0, -}; - -/// Wrapper for FillerEnum90 to allow for nullability. -@interface FillerEnum90Box : NSObject -@property(nonatomic, assign) FillerEnum90 value; -- (instancetype)initWithValue:(FillerEnum90)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum91) { - FillerEnum91FillerMember91 = 0, -}; - -/// Wrapper for FillerEnum91 to allow for nullability. -@interface FillerEnum91Box : NSObject -@property(nonatomic, assign) FillerEnum91 value; -- (instancetype)initWithValue:(FillerEnum91)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum92) { - FillerEnum92FillerMember92 = 0, -}; - -/// Wrapper for FillerEnum92 to allow for nullability. -@interface FillerEnum92Box : NSObject -@property(nonatomic, assign) FillerEnum92 value; -- (instancetype)initWithValue:(FillerEnum92)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum93) { - FillerEnum93FillerMember93 = 0, -}; - -/// Wrapper for FillerEnum93 to allow for nullability. -@interface FillerEnum93Box : NSObject -@property(nonatomic, assign) FillerEnum93 value; -- (instancetype)initWithValue:(FillerEnum93)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum94) { - FillerEnum94FillerMember94 = 0, -}; - -/// Wrapper for FillerEnum94 to allow for nullability. -@interface FillerEnum94Box : NSObject -@property(nonatomic, assign) FillerEnum94 value; -- (instancetype)initWithValue:(FillerEnum94)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum95) { - FillerEnum95FillerMember95 = 0, -}; - -/// Wrapper for FillerEnum95 to allow for nullability. -@interface FillerEnum95Box : NSObject -@property(nonatomic, assign) FillerEnum95 value; -- (instancetype)initWithValue:(FillerEnum95)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum96) { - FillerEnum96FillerMember96 = 0, -}; - -/// Wrapper for FillerEnum96 to allow for nullability. -@interface FillerEnum96Box : NSObject -@property(nonatomic, assign) FillerEnum96 value; -- (instancetype)initWithValue:(FillerEnum96)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum97) { - FillerEnum97FillerMember97 = 0, -}; - -/// Wrapper for FillerEnum97 to allow for nullability. -@interface FillerEnum97Box : NSObject -@property(nonatomic, assign) FillerEnum97 value; -- (instancetype)initWithValue:(FillerEnum97)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum98) { - FillerEnum98FillerMember98 = 0, -}; - -/// Wrapper for FillerEnum98 to allow for nullability. -@interface FillerEnum98Box : NSObject -@property(nonatomic, assign) FillerEnum98 value; -- (instancetype)initWithValue:(FillerEnum98)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum99) { - FillerEnum99FillerMember99 = 0, -}; - -/// Wrapper for FillerEnum99 to allow for nullability. -@interface FillerEnum99Box : NSObject -@property(nonatomic, assign) FillerEnum99 value; -- (instancetype)initWithValue:(FillerEnum99)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum100) { - FillerEnum100FillerMember100 = 0, -}; - -/// Wrapper for FillerEnum100 to allow for nullability. -@interface FillerEnum100Box : NSObject -@property(nonatomic, assign) FillerEnum100 value; -- (instancetype)initWithValue:(FillerEnum100)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum101) { - FillerEnum101FillerMember101 = 0, -}; - -/// Wrapper for FillerEnum101 to allow for nullability. -@interface FillerEnum101Box : NSObject -@property(nonatomic, assign) FillerEnum101 value; -- (instancetype)initWithValue:(FillerEnum101)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum102) { - FillerEnum102FillerMember102 = 0, -}; - -/// Wrapper for FillerEnum102 to allow for nullability. -@interface FillerEnum102Box : NSObject -@property(nonatomic, assign) FillerEnum102 value; -- (instancetype)initWithValue:(FillerEnum102)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum103) { - FillerEnum103FillerMember103 = 0, -}; - -/// Wrapper for FillerEnum103 to allow for nullability. -@interface FillerEnum103Box : NSObject -@property(nonatomic, assign) FillerEnum103 value; -- (instancetype)initWithValue:(FillerEnum103)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum104) { - FillerEnum104FillerMember104 = 0, -}; - -/// Wrapper for FillerEnum104 to allow for nullability. -@interface FillerEnum104Box : NSObject -@property(nonatomic, assign) FillerEnum104 value; -- (instancetype)initWithValue:(FillerEnum104)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum105) { - FillerEnum105FillerMember105 = 0, -}; - -/// Wrapper for FillerEnum105 to allow for nullability. -@interface FillerEnum105Box : NSObject -@property(nonatomic, assign) FillerEnum105 value; -- (instancetype)initWithValue:(FillerEnum105)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum106) { - FillerEnum106FillerMember106 = 0, -}; - -/// Wrapper for FillerEnum106 to allow for nullability. -@interface FillerEnum106Box : NSObject -@property(nonatomic, assign) FillerEnum106 value; -- (instancetype)initWithValue:(FillerEnum106)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum107) { - FillerEnum107FillerMember107 = 0, -}; - -/// Wrapper for FillerEnum107 to allow for nullability. -@interface FillerEnum107Box : NSObject -@property(nonatomic, assign) FillerEnum107 value; -- (instancetype)initWithValue:(FillerEnum107)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum108) { - FillerEnum108FillerMember108 = 0, -}; - -/// Wrapper for FillerEnum108 to allow for nullability. -@interface FillerEnum108Box : NSObject -@property(nonatomic, assign) FillerEnum108 value; -- (instancetype)initWithValue:(FillerEnum108)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum109) { - FillerEnum109FillerMember109 = 0, -}; - -/// Wrapper for FillerEnum109 to allow for nullability. -@interface FillerEnum109Box : NSObject -@property(nonatomic, assign) FillerEnum109 value; -- (instancetype)initWithValue:(FillerEnum109)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum110) { - FillerEnum110FillerMember110 = 0, -}; - -/// Wrapper for FillerEnum110 to allow for nullability. -@interface FillerEnum110Box : NSObject -@property(nonatomic, assign) FillerEnum110 value; -- (instancetype)initWithValue:(FillerEnum110)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum111) { - FillerEnum111FillerMember111 = 0, -}; - -/// Wrapper for FillerEnum111 to allow for nullability. -@interface FillerEnum111Box : NSObject -@property(nonatomic, assign) FillerEnum111 value; -- (instancetype)initWithValue:(FillerEnum111)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum112) { - FillerEnum112FillerMember112 = 0, -}; - -/// Wrapper for FillerEnum112 to allow for nullability. -@interface FillerEnum112Box : NSObject -@property(nonatomic, assign) FillerEnum112 value; -- (instancetype)initWithValue:(FillerEnum112)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum113) { - FillerEnum113FillerMember113 = 0, -}; - -/// Wrapper for FillerEnum113 to allow for nullability. -@interface FillerEnum113Box : NSObject -@property(nonatomic, assign) FillerEnum113 value; -- (instancetype)initWithValue:(FillerEnum113)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum114) { - FillerEnum114FillerMember114 = 0, -}; - -/// Wrapper for FillerEnum114 to allow for nullability. -@interface FillerEnum114Box : NSObject -@property(nonatomic, assign) FillerEnum114 value; -- (instancetype)initWithValue:(FillerEnum114)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum115) { - FillerEnum115FillerMember115 = 0, -}; - -/// Wrapper for FillerEnum115 to allow for nullability. -@interface FillerEnum115Box : NSObject -@property(nonatomic, assign) FillerEnum115 value; -- (instancetype)initWithValue:(FillerEnum115)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum116) { - FillerEnum116FillerMember116 = 0, -}; - -/// Wrapper for FillerEnum116 to allow for nullability. -@interface FillerEnum116Box : NSObject -@property(nonatomic, assign) FillerEnum116 value; -- (instancetype)initWithValue:(FillerEnum116)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum117) { - FillerEnum117FillerMember117 = 0, -}; - -/// Wrapper for FillerEnum117 to allow for nullability. -@interface FillerEnum117Box : NSObject -@property(nonatomic, assign) FillerEnum117 value; -- (instancetype)initWithValue:(FillerEnum117)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum118) { - FillerEnum118FillerMember118 = 0, -}; - -/// Wrapper for FillerEnum118 to allow for nullability. -@interface FillerEnum118Box : NSObject -@property(nonatomic, assign) FillerEnum118 value; -- (instancetype)initWithValue:(FillerEnum118)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum119) { - FillerEnum119FillerMember119 = 0, -}; - -/// Wrapper for FillerEnum119 to allow for nullability. -@interface FillerEnum119Box : NSObject -@property(nonatomic, assign) FillerEnum119 value; -- (instancetype)initWithValue:(FillerEnum119)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum120) { - FillerEnum120FillerMember120 = 0, -}; - -/// Wrapper for FillerEnum120 to allow for nullability. -@interface FillerEnum120Box : NSObject -@property(nonatomic, assign) FillerEnum120 value; -- (instancetype)initWithValue:(FillerEnum120)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum121) { - FillerEnum121FillerMember121 = 0, -}; - -/// Wrapper for FillerEnum121 to allow for nullability. -@interface FillerEnum121Box : NSObject -@property(nonatomic, assign) FillerEnum121 value; -- (instancetype)initWithValue:(FillerEnum121)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum122) { - FillerEnum122FillerMember122 = 0, -}; - -/// Wrapper for FillerEnum122 to allow for nullability. -@interface FillerEnum122Box : NSObject -@property(nonatomic, assign) FillerEnum122 value; -- (instancetype)initWithValue:(FillerEnum122)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum123) { - FillerEnum123FillerMember123 = 0, -}; - -/// Wrapper for FillerEnum123 to allow for nullability. -@interface FillerEnum123Box : NSObject -@property(nonatomic, assign) FillerEnum123 value; -- (instancetype)initWithValue:(FillerEnum123)value; -@end - -typedef NS_ENUM(NSUInteger, FillerEnum124) { - FillerEnum124FillerMember124 = 0, -}; - -/// Wrapper for FillerEnum124 to allow for nullability. -@interface FillerEnum124Box : NSObject -@property(nonatomic, assign) FillerEnum124 value; -- (instancetype)initWithValue:(FillerEnum124)value; -@end - typedef NS_ENUM(NSUInteger, AnEnum) { AnEnumOne = 0, AnEnumTwo = 1, @@ -1462,14 +212,6 @@ typedef NS_ENUM(NSUInteger, AnotherEnum) { @property(nonatomic, copy, nullable) NSArray *testList; @end -@interface __pigeon_CodecOverflow : NSObject -/// `init` unavailable to enforce nonnull fields, see the `make` class method. -- (instancetype)init NS_UNAVAILABLE; -+ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped; -@property(nonatomic, assign) NSInteger type; -@property(nonatomic, strong, nullable) id wrapped; -@end - /// The codec used by all APIs. NSObject *GetCoreTestsCodec(void); diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m index a8fcda96091..aba48fe6dba 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m @@ -40,8 +40,8 @@ static id GetNullableObjectAtIndex(NSArray *array, NSInteger key) { return (result == [NSNull null]) ? nil : result; } -@implementation FillerEnum0Box -- (instancetype)initWithValue:(FillerEnum0)value { +@implementation AnEnumBox +- (instancetype)initWithValue:(AnEnum)value { self = [super init]; if (self) { _value = value; @@ -50,8 +50,8 @@ - (instancetype)initWithValue:(FillerEnum0)value { } @end -@implementation FillerEnum1Box -- (instancetype)initWithValue:(FillerEnum1)value { +@implementation AnotherEnumBox +- (instancetype)initWithValue:(AnotherEnum)value { self = [super init]; if (self) { _value = value; @@ -60,2450 +60,416 @@ - (instancetype)initWithValue:(FillerEnum1)value { } @end -@implementation FillerEnum2Box -- (instancetype)initWithValue:(FillerEnum2)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface AllTypes () ++ (AllTypes *)fromList:(NSArray *)list; ++ (nullable AllTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FillerEnum3Box -- (instancetype)initWithValue:(FillerEnum3)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface AllNullableTypes () ++ (AllNullableTypes *)fromList:(NSArray *)list; ++ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FillerEnum4Box -- (instancetype)initWithValue:(FillerEnum4)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface AllNullableTypesWithoutRecursion () ++ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; ++ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FillerEnum5Box -- (instancetype)initWithValue:(FillerEnum5)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface AllClassesWrapper () ++ (AllClassesWrapper *)fromList:(NSArray *)list; ++ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FillerEnum6Box -- (instancetype)initWithValue:(FillerEnum6)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} +@interface TestMessage () ++ (TestMessage *)fromList:(NSArray *)list; ++ (nullable TestMessage *)nullableFromList:(NSArray *)list; +- (NSArray *)toList; @end -@implementation FillerEnum7Box -- (instancetype)initWithValue:(FillerEnum7)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +@implementation AllTypes ++ (instancetype)makeWithABool:(BOOL)aBool + anInt:(NSInteger)anInt + anInt64:(NSInteger)anInt64 + aDouble:(double)aDouble + aByteArray:(FlutterStandardTypedData *)aByteArray + a4ByteArray:(FlutterStandardTypedData *)a4ByteArray + a8ByteArray:(FlutterStandardTypedData *)a8ByteArray + aFloatArray:(FlutterStandardTypedData *)aFloatArray + anEnum:(AnEnum)anEnum + anotherEnum:(AnotherEnum)anotherEnum + aString:(NSString *)aString + anObject:(id)anObject + list:(NSArray *)list + stringList:(NSArray *)stringList + intList:(NSArray *)intList + doubleList:(NSArray *)doubleList + boolList:(NSArray *)boolList + map:(NSDictionary *)map { + AllTypes *pigeonResult = [[AllTypes alloc] init]; + pigeonResult.aBool = aBool; + pigeonResult.anInt = anInt; + pigeonResult.anInt64 = anInt64; + pigeonResult.aDouble = aDouble; + pigeonResult.aByteArray = aByteArray; + pigeonResult.a4ByteArray = a4ByteArray; + pigeonResult.a8ByteArray = a8ByteArray; + pigeonResult.aFloatArray = aFloatArray; + pigeonResult.anEnum = anEnum; + pigeonResult.anotherEnum = anotherEnum; + pigeonResult.aString = aString; + pigeonResult.anObject = anObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; } -@end - -@implementation FillerEnum8Box -- (instancetype)initWithValue:(FillerEnum8)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (AllTypes *)fromList:(NSArray *)list { + AllTypes *pigeonResult = [[AllTypes alloc] init]; + pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; + pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; + pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; + pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; + pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); + AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(list, 8); + pigeonResult.anEnum = anAnEnumBox.value; + AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(list, 9); + pigeonResult.anotherEnum = anAnotherEnumBox.value; + pigeonResult.aString = GetNullableObjectAtIndex(list, 10); + pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); + pigeonResult.list = GetNullableObjectAtIndex(list, 12); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); + pigeonResult.intList = GetNullableObjectAtIndex(list, 14); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); + pigeonResult.map = GetNullableObjectAtIndex(list, 17); + return pigeonResult; } -@end - -@implementation FillerEnum9Box -- (instancetype)initWithValue:(FillerEnum9)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (nullable AllTypes *)nullableFromList:(NSArray *)list { + return (list) ? [AllTypes fromList:list] : nil; } -@end - -@implementation FillerEnum10Box -- (instancetype)initWithValue:(FillerEnum10)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +- (NSArray *)toList { + return @[ + @(self.aBool), + @(self.anInt), + @(self.anInt64), + @(self.aDouble), + self.aByteArray ?: [NSNull null], + self.a4ByteArray ?: [NSNull null], + self.a8ByteArray ?: [NSNull null], + self.aFloatArray ?: [NSNull null], + [[AnEnumBox alloc] initWithValue:self.anEnum], + [[AnotherEnumBox alloc] initWithValue:self.anotherEnum], + self.aString ?: [NSNull null], + self.anObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; } @end -@implementation FillerEnum11Box -- (instancetype)initWithValue:(FillerEnum11)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +@implementation AllNullableTypes ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + allNullableTypes:(nullable AllNullableTypes *)allNullableTypes + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + nestedClassList:(nullable NSArray *)nestedClassList + map:(nullable NSDictionary *)map { + AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.nestedClassList = nestedClassList; + pigeonResult.map = map; + return pigeonResult; } -@end - -@implementation FillerEnum12Box -- (instancetype)initWithValue:(FillerEnum12)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (AllNullableTypes *)fromList:(NSArray *)list { + AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 15); + pigeonResult.list = GetNullableObjectAtIndex(list, 16); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 17); + pigeonResult.intList = GetNullableObjectAtIndex(list, 18); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 19); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 20); + pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 21); + pigeonResult.map = GetNullableObjectAtIndex(list, 22); + return pigeonResult; } -@end - -@implementation FillerEnum13Box -- (instancetype)initWithValue:(FillerEnum13)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum14Box -- (instancetype)initWithValue:(FillerEnum14)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum15Box -- (instancetype)initWithValue:(FillerEnum15)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum16Box -- (instancetype)initWithValue:(FillerEnum16)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum17Box -- (instancetype)initWithValue:(FillerEnum17)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum18Box -- (instancetype)initWithValue:(FillerEnum18)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum19Box -- (instancetype)initWithValue:(FillerEnum19)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum20Box -- (instancetype)initWithValue:(FillerEnum20)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum21Box -- (instancetype)initWithValue:(FillerEnum21)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum22Box -- (instancetype)initWithValue:(FillerEnum22)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum23Box -- (instancetype)initWithValue:(FillerEnum23)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum24Box -- (instancetype)initWithValue:(FillerEnum24)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum25Box -- (instancetype)initWithValue:(FillerEnum25)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum26Box -- (instancetype)initWithValue:(FillerEnum26)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum27Box -- (instancetype)initWithValue:(FillerEnum27)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum28Box -- (instancetype)initWithValue:(FillerEnum28)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum29Box -- (instancetype)initWithValue:(FillerEnum29)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum30Box -- (instancetype)initWithValue:(FillerEnum30)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum31Box -- (instancetype)initWithValue:(FillerEnum31)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum32Box -- (instancetype)initWithValue:(FillerEnum32)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum33Box -- (instancetype)initWithValue:(FillerEnum33)value { - self = [super init]; - if (self) { - _value = value; - } - return self; ++ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list { + return (list) ? [AllNullableTypes fromList:list] : nil; } -@end - -@implementation FillerEnum34Box -- (instancetype)initWithValue:(FillerEnum34)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.allNullableTypes ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.nestedClassList ?: [NSNull null], + self.map ?: [NSNull null], + ]; } @end -@implementation FillerEnum35Box -- (instancetype)initWithValue:(FillerEnum35)value { - self = [super init]; - if (self) { - _value = value; - } - return self; +@implementation AllNullableTypesWithoutRecursion ++ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool + aNullableInt:(nullable NSNumber *)aNullableInt + aNullableInt64:(nullable NSNumber *)aNullableInt64 + aNullableDouble:(nullable NSNumber *)aNullableDouble + aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray + aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray + aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray + aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray + nullableNestedList:(nullable NSArray *> *)nullableNestedList + nullableMapWithAnnotations: + (nullable NSDictionary *)nullableMapWithAnnotations + nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject + aNullableEnum:(nullable AnEnumBox *)aNullableEnum + anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum + aNullableString:(nullable NSString *)aNullableString + aNullableObject:(nullable id)aNullableObject + list:(nullable NSArray *)list + stringList:(nullable NSArray *)stringList + intList:(nullable NSArray *)intList + doubleList:(nullable NSArray *)doubleList + boolList:(nullable NSArray *)boolList + map:(nullable NSDictionary *)map { + AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = aNullableBool; + pigeonResult.aNullableInt = aNullableInt; + pigeonResult.aNullableInt64 = aNullableInt64; + pigeonResult.aNullableDouble = aNullableDouble; + pigeonResult.aNullableByteArray = aNullableByteArray; + pigeonResult.aNullable4ByteArray = aNullable4ByteArray; + pigeonResult.aNullable8ByteArray = aNullable8ByteArray; + pigeonResult.aNullableFloatArray = aNullableFloatArray; + pigeonResult.nullableNestedList = nullableNestedList; + pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; + pigeonResult.nullableMapWithObject = nullableMapWithObject; + pigeonResult.aNullableEnum = aNullableEnum; + pigeonResult.anotherNullableEnum = anotherNullableEnum; + pigeonResult.aNullableString = aNullableString; + pigeonResult.aNullableObject = aNullableObject; + pigeonResult.list = list; + pigeonResult.stringList = stringList; + pigeonResult.intList = intList; + pigeonResult.doubleList = doubleList; + pigeonResult.boolList = boolList; + pigeonResult.map = map; + return pigeonResult; } -@end - -@implementation FillerEnum36Box -- (instancetype)initWithValue:(FillerEnum36)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum37Box -- (instancetype)initWithValue:(FillerEnum37)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum38Box -- (instancetype)initWithValue:(FillerEnum38)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum39Box -- (instancetype)initWithValue:(FillerEnum39)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum40Box -- (instancetype)initWithValue:(FillerEnum40)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum41Box -- (instancetype)initWithValue:(FillerEnum41)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum42Box -- (instancetype)initWithValue:(FillerEnum42)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum43Box -- (instancetype)initWithValue:(FillerEnum43)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum44Box -- (instancetype)initWithValue:(FillerEnum44)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum45Box -- (instancetype)initWithValue:(FillerEnum45)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum46Box -- (instancetype)initWithValue:(FillerEnum46)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum47Box -- (instancetype)initWithValue:(FillerEnum47)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum48Box -- (instancetype)initWithValue:(FillerEnum48)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum49Box -- (instancetype)initWithValue:(FillerEnum49)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum50Box -- (instancetype)initWithValue:(FillerEnum50)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum51Box -- (instancetype)initWithValue:(FillerEnum51)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum52Box -- (instancetype)initWithValue:(FillerEnum52)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum53Box -- (instancetype)initWithValue:(FillerEnum53)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum54Box -- (instancetype)initWithValue:(FillerEnum54)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum55Box -- (instancetype)initWithValue:(FillerEnum55)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum56Box -- (instancetype)initWithValue:(FillerEnum56)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum57Box -- (instancetype)initWithValue:(FillerEnum57)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum58Box -- (instancetype)initWithValue:(FillerEnum58)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum59Box -- (instancetype)initWithValue:(FillerEnum59)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum60Box -- (instancetype)initWithValue:(FillerEnum60)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum61Box -- (instancetype)initWithValue:(FillerEnum61)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum62Box -- (instancetype)initWithValue:(FillerEnum62)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum63Box -- (instancetype)initWithValue:(FillerEnum63)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum64Box -- (instancetype)initWithValue:(FillerEnum64)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum65Box -- (instancetype)initWithValue:(FillerEnum65)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum66Box -- (instancetype)initWithValue:(FillerEnum66)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum67Box -- (instancetype)initWithValue:(FillerEnum67)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum68Box -- (instancetype)initWithValue:(FillerEnum68)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum69Box -- (instancetype)initWithValue:(FillerEnum69)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum70Box -- (instancetype)initWithValue:(FillerEnum70)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum71Box -- (instancetype)initWithValue:(FillerEnum71)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum72Box -- (instancetype)initWithValue:(FillerEnum72)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum73Box -- (instancetype)initWithValue:(FillerEnum73)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum74Box -- (instancetype)initWithValue:(FillerEnum74)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum75Box -- (instancetype)initWithValue:(FillerEnum75)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum76Box -- (instancetype)initWithValue:(FillerEnum76)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum77Box -- (instancetype)initWithValue:(FillerEnum77)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum78Box -- (instancetype)initWithValue:(FillerEnum78)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum79Box -- (instancetype)initWithValue:(FillerEnum79)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum80Box -- (instancetype)initWithValue:(FillerEnum80)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum81Box -- (instancetype)initWithValue:(FillerEnum81)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum82Box -- (instancetype)initWithValue:(FillerEnum82)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum83Box -- (instancetype)initWithValue:(FillerEnum83)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum84Box -- (instancetype)initWithValue:(FillerEnum84)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum85Box -- (instancetype)initWithValue:(FillerEnum85)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum86Box -- (instancetype)initWithValue:(FillerEnum86)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum87Box -- (instancetype)initWithValue:(FillerEnum87)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum88Box -- (instancetype)initWithValue:(FillerEnum88)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum89Box -- (instancetype)initWithValue:(FillerEnum89)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum90Box -- (instancetype)initWithValue:(FillerEnum90)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum91Box -- (instancetype)initWithValue:(FillerEnum91)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum92Box -- (instancetype)initWithValue:(FillerEnum92)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum93Box -- (instancetype)initWithValue:(FillerEnum93)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum94Box -- (instancetype)initWithValue:(FillerEnum94)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum95Box -- (instancetype)initWithValue:(FillerEnum95)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum96Box -- (instancetype)initWithValue:(FillerEnum96)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum97Box -- (instancetype)initWithValue:(FillerEnum97)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum98Box -- (instancetype)initWithValue:(FillerEnum98)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum99Box -- (instancetype)initWithValue:(FillerEnum99)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum100Box -- (instancetype)initWithValue:(FillerEnum100)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum101Box -- (instancetype)initWithValue:(FillerEnum101)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum102Box -- (instancetype)initWithValue:(FillerEnum102)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum103Box -- (instancetype)initWithValue:(FillerEnum103)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum104Box -- (instancetype)initWithValue:(FillerEnum104)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum105Box -- (instancetype)initWithValue:(FillerEnum105)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum106Box -- (instancetype)initWithValue:(FillerEnum106)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum107Box -- (instancetype)initWithValue:(FillerEnum107)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum108Box -- (instancetype)initWithValue:(FillerEnum108)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum109Box -- (instancetype)initWithValue:(FillerEnum109)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum110Box -- (instancetype)initWithValue:(FillerEnum110)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum111Box -- (instancetype)initWithValue:(FillerEnum111)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum112Box -- (instancetype)initWithValue:(FillerEnum112)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum113Box -- (instancetype)initWithValue:(FillerEnum113)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum114Box -- (instancetype)initWithValue:(FillerEnum114)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum115Box -- (instancetype)initWithValue:(FillerEnum115)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum116Box -- (instancetype)initWithValue:(FillerEnum116)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum117Box -- (instancetype)initWithValue:(FillerEnum117)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum118Box -- (instancetype)initWithValue:(FillerEnum118)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum119Box -- (instancetype)initWithValue:(FillerEnum119)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum120Box -- (instancetype)initWithValue:(FillerEnum120)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum121Box -- (instancetype)initWithValue:(FillerEnum121)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum122Box -- (instancetype)initWithValue:(FillerEnum122)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum123Box -- (instancetype)initWithValue:(FillerEnum123)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation FillerEnum124Box -- (instancetype)initWithValue:(FillerEnum124)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation AnEnumBox -- (instancetype)initWithValue:(AnEnum)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@implementation AnotherEnumBox -- (instancetype)initWithValue:(AnotherEnum)value { - self = [super init]; - if (self) { - _value = value; - } - return self; -} -@end - -@interface AllTypes () -+ (AllTypes *)fromList:(NSArray *)list; -+ (nullable AllTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface AllNullableTypes () -+ (AllNullableTypes *)fromList:(NSArray *)list; -+ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface AllNullableTypesWithoutRecursion () -+ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list; -+ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface AllClassesWrapper () -+ (AllClassesWrapper *)fromList:(NSArray *)list; -+ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@interface TestMessage () -+ (TestMessage *)fromList:(NSArray *)list; -+ (nullable TestMessage *)nullableFromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@implementation AllTypes -+ (instancetype)makeWithABool:(BOOL)aBool - anInt:(NSInteger)anInt - anInt64:(NSInteger)anInt64 - aDouble:(double)aDouble - aByteArray:(FlutterStandardTypedData *)aByteArray - a4ByteArray:(FlutterStandardTypedData *)a4ByteArray - a8ByteArray:(FlutterStandardTypedData *)a8ByteArray - aFloatArray:(FlutterStandardTypedData *)aFloatArray - anEnum:(AnEnum)anEnum - anotherEnum:(AnotherEnum)anotherEnum - aString:(NSString *)aString - anObject:(id)anObject - list:(NSArray *)list - stringList:(NSArray *)stringList - intList:(NSArray *)intList - doubleList:(NSArray *)doubleList - boolList:(NSArray *)boolList - map:(NSDictionary *)map { - AllTypes *pigeonResult = [[AllTypes alloc] init]; - pigeonResult.aBool = aBool; - pigeonResult.anInt = anInt; - pigeonResult.anInt64 = anInt64; - pigeonResult.aDouble = aDouble; - pigeonResult.aByteArray = aByteArray; - pigeonResult.a4ByteArray = a4ByteArray; - pigeonResult.a8ByteArray = a8ByteArray; - pigeonResult.aFloatArray = aFloatArray; - pigeonResult.anEnum = anEnum; - pigeonResult.anotherEnum = anotherEnum; - pigeonResult.aString = aString; - pigeonResult.anObject = anObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; -} -+ (AllTypes *)fromList:(NSArray *)list { - AllTypes *pigeonResult = [[AllTypes alloc] init]; - pigeonResult.aBool = [GetNullableObjectAtIndex(list, 0) boolValue]; - pigeonResult.anInt = [GetNullableObjectAtIndex(list, 1) integerValue]; - pigeonResult.anInt64 = [GetNullableObjectAtIndex(list, 2) integerValue]; - pigeonResult.aDouble = [GetNullableObjectAtIndex(list, 3) doubleValue]; - pigeonResult.aByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); - AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(list, 8); - pigeonResult.anEnum = anAnEnumBox.value; - AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(list, 9); - pigeonResult.anotherEnum = anAnotherEnumBox.value; - pigeonResult.aString = GetNullableObjectAtIndex(list, 10); - pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); - pigeonResult.list = GetNullableObjectAtIndex(list, 12); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 13); - pigeonResult.intList = GetNullableObjectAtIndex(list, 14); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 15); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 16); - pigeonResult.map = GetNullableObjectAtIndex(list, 17); - return pigeonResult; -} -+ (nullable AllTypes *)nullableFromList:(NSArray *)list { - return (list) ? [AllTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - @(self.aBool), - @(self.anInt), - @(self.anInt64), - @(self.aDouble), - self.aByteArray ?: [NSNull null], - self.a4ByteArray ?: [NSNull null], - self.a8ByteArray ?: [NSNull null], - self.aFloatArray ?: [NSNull null], - [[AnEnumBox alloc] initWithValue:self.anEnum], - [[AnotherEnumBox alloc] initWithValue:self.anotherEnum], - self.aString ?: [NSNull null], - self.anObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; -} -@end - -@implementation AllNullableTypes -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - allNullableTypes:(nullable AllNullableTypes *)allNullableTypes - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - nestedClassList:(nullable NSArray *)nestedClassList - map:(nullable NSDictionary *)map { - AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.anotherNullableEnum = anotherNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.nestedClassList = nestedClassList; - pigeonResult.map = map; - return pigeonResult; -} -+ (AllNullableTypes *)fromList:(NSArray *)list { - AllNullableTypes *pigeonResult = [[AllNullableTypes alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 15); - pigeonResult.list = GetNullableObjectAtIndex(list, 16); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 17); - pigeonResult.intList = GetNullableObjectAtIndex(list, 18); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 19); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 20); - pigeonResult.nestedClassList = GetNullableObjectAtIndex(list, 21); - pigeonResult.map = GetNullableObjectAtIndex(list, 22); - return pigeonResult; -} -+ (nullable AllNullableTypes *)nullableFromList:(NSArray *)list { - return (list) ? [AllNullableTypes fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.anotherNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.allNullableTypes ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.nestedClassList ?: [NSNull null], - self.map ?: [NSNull null], - ]; -} -@end - -@implementation AllNullableTypesWithoutRecursion -+ (instancetype)makeWithANullableBool:(nullable NSNumber *)aNullableBool - aNullableInt:(nullable NSNumber *)aNullableInt - aNullableInt64:(nullable NSNumber *)aNullableInt64 - aNullableDouble:(nullable NSNumber *)aNullableDouble - aNullableByteArray:(nullable FlutterStandardTypedData *)aNullableByteArray - aNullable4ByteArray:(nullable FlutterStandardTypedData *)aNullable4ByteArray - aNullable8ByteArray:(nullable FlutterStandardTypedData *)aNullable8ByteArray - aNullableFloatArray:(nullable FlutterStandardTypedData *)aNullableFloatArray - nullableNestedList:(nullable NSArray *> *)nullableNestedList - nullableMapWithAnnotations: - (nullable NSDictionary *)nullableMapWithAnnotations - nullableMapWithObject:(nullable NSDictionary *)nullableMapWithObject - aNullableEnum:(nullable AnEnumBox *)aNullableEnum - anotherNullableEnum:(nullable AnotherEnumBox *)anotherNullableEnum - aNullableString:(nullable NSString *)aNullableString - aNullableObject:(nullable id)aNullableObject - list:(nullable NSArray *)list - stringList:(nullable NSArray *)stringList - intList:(nullable NSArray *)intList - doubleList:(nullable NSArray *)doubleList - boolList:(nullable NSArray *)boolList - map:(nullable NSDictionary *)map { - AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = aNullableBool; - pigeonResult.aNullableInt = aNullableInt; - pigeonResult.aNullableInt64 = aNullableInt64; - pigeonResult.aNullableDouble = aNullableDouble; - pigeonResult.aNullableByteArray = aNullableByteArray; - pigeonResult.aNullable4ByteArray = aNullable4ByteArray; - pigeonResult.aNullable8ByteArray = aNullable8ByteArray; - pigeonResult.aNullableFloatArray = aNullableFloatArray; - pigeonResult.nullableNestedList = nullableNestedList; - pigeonResult.nullableMapWithAnnotations = nullableMapWithAnnotations; - pigeonResult.nullableMapWithObject = nullableMapWithObject; - pigeonResult.aNullableEnum = aNullableEnum; - pigeonResult.anotherNullableEnum = anotherNullableEnum; - pigeonResult.aNullableString = aNullableString; - pigeonResult.aNullableObject = aNullableObject; - pigeonResult.list = list; - pigeonResult.stringList = stringList; - pigeonResult.intList = intList; - pigeonResult.doubleList = doubleList; - pigeonResult.boolList = boolList; - pigeonResult.map = map; - return pigeonResult; -} -+ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { - AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; - pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); - pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); - pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); - pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); - pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); - pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); - pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); - pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); - pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); - pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); - pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); - pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); - pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); - pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); - pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); - pigeonResult.list = GetNullableObjectAtIndex(list, 15); - pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); - pigeonResult.intList = GetNullableObjectAtIndex(list, 17); - pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); - pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); - pigeonResult.map = GetNullableObjectAtIndex(list, 20); - return pigeonResult; -} -+ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { - return (list) ? [AllNullableTypesWithoutRecursion fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.aNullableBool ?: [NSNull null], - self.aNullableInt ?: [NSNull null], - self.aNullableInt64 ?: [NSNull null], - self.aNullableDouble ?: [NSNull null], - self.aNullableByteArray ?: [NSNull null], - self.aNullable4ByteArray ?: [NSNull null], - self.aNullable8ByteArray ?: [NSNull null], - self.aNullableFloatArray ?: [NSNull null], - self.nullableNestedList ?: [NSNull null], - self.nullableMapWithAnnotations ?: [NSNull null], - self.nullableMapWithObject ?: [NSNull null], - self.aNullableEnum ?: [NSNull null], - self.anotherNullableEnum ?: [NSNull null], - self.aNullableString ?: [NSNull null], - self.aNullableObject ?: [NSNull null], - self.list ?: [NSNull null], - self.stringList ?: [NSNull null], - self.intList ?: [NSNull null], - self.doubleList ?: [NSNull null], - self.boolList ?: [NSNull null], - self.map ?: [NSNull null], - ]; -} -@end - -@implementation AllClassesWrapper -+ (instancetype)makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes - allNullableTypesWithoutRecursion: - (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion - allTypes:(nullable AllTypes *)allTypes { - AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = allNullableTypes; - pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; - pigeonResult.allTypes = allTypes; - return pigeonResult; -} -+ (AllClassesWrapper *)fromList:(NSArray *)list { - AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; - pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); - pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); - pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); - return pigeonResult; -} -+ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list { - return (list) ? [AllClassesWrapper fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.allNullableTypes ?: [NSNull null], - self.allNullableTypesWithoutRecursion ?: [NSNull null], - self.allTypes ?: [NSNull null], - ]; -} -@end - -@implementation TestMessage -+ (instancetype)makeWithTestList:(nullable NSArray *)testList { - TestMessage *pigeonResult = [[TestMessage alloc] init]; - pigeonResult.testList = testList; - return pigeonResult; -} -+ (TestMessage *)fromList:(NSArray *)list { - TestMessage *pigeonResult = [[TestMessage alloc] init]; - pigeonResult.testList = GetNullableObjectAtIndex(list, 0); - return pigeonResult; -} -+ (nullable TestMessage *)nullableFromList:(NSArray *)list { - return (list) ? [TestMessage fromList:list] : nil; -} -- (NSArray *)toList { - return @[ - self.testList ?: [NSNull null], - ]; -} -@end - -@interface __pigeon_CodecOverflow () -+ (id)fromList:(NSArray *)list; -- (NSArray *)toList; -@end - -@implementation __pigeon_CodecOverflow -+ (instancetype)makeWithType:(NSInteger)type wrapped:(nullable id)wrapped { - __pigeon_CodecOverflow *pigeonResult = [[__pigeon_CodecOverflow alloc] init]; - pigeonResult.type = type; - pigeonResult.wrapped = wrapped; - return pigeonResult; -} -- (NSArray *)toList { - return @[ - @(self.type), - self.wrapped ?: [NSNull null], - ]; -} -+ (id)fromList:(NSArray *)list { - __pigeon_CodecOverflow *wrapper = [[__pigeon_CodecOverflow alloc] init]; - wrapper.type = [GetNullableObjectAtIndex(list, 0) integerValue]; - wrapper.wrapped = GetNullableObjectAtIndex(list, 1); - return [wrapper unwrap]; -} - -- (id)unwrap { - if (self.wrapped == nil) { - return nil; - } - - switch (self.type) { - case 0: - return [[AnotherEnumBox alloc] initWithValue:[self.wrapped integerValue]]; - case 1: - return [AllTypes fromList:self.wrapped]; - case 2: - return [AllNullableTypes fromList:self.wrapped]; - case 3: - return [AllNullableTypesWithoutRecursion fromList:self.wrapped]; - case 4: - return [AllClassesWrapper fromList:self.wrapped]; - case 5: - return [TestMessage fromList:self.wrapped]; - default: - return nil; - } -} -@end -@interface CoreTestsPigeonCodecReader : FlutterStandardReader -@end -@implementation CoreTestsPigeonCodecReader -- (nullable id)readValueOfType:(UInt8)type { - switch (type) { - case 129: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum0Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 130: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum1Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 131: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum2Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 132: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum3Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 133: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum4Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 134: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum5Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 135: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum6Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 136: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum7Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 137: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum8Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 138: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum9Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 139: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum10Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 140: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum11Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 141: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum12Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 142: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum13Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 143: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum14Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 144: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum15Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 145: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum16Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 146: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum17Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 147: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum18Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 148: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum19Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 149: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum20Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 150: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum21Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 151: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum22Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 152: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum23Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 153: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum24Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 154: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum25Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 155: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum26Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 156: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum27Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 157: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum28Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 158: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum29Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 159: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum30Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 160: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum31Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 161: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum32Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 162: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum33Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 163: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum34Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 164: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum35Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 165: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum36Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 166: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum37Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 167: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum38Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 168: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum39Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 169: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum40Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 170: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum41Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 171: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum42Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 172: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum43Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 173: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum44Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 174: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum45Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 175: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum46Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 176: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum47Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 177: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum48Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 178: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum49Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 179: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum50Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 180: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum51Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 181: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum52Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 182: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum53Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 183: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum54Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 184: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum55Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 185: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum56Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 186: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum57Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 187: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum58Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 188: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum59Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 189: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum60Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 190: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum61Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 191: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum62Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 192: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum63Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 193: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum64Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 194: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum65Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 195: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum66Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 196: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum67Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 197: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum68Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 198: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum69Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 199: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum70Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 200: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum71Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 201: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum72Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 202: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum73Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 203: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum74Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 204: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum75Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 205: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum76Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 206: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum77Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 207: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum78Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 208: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum79Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 209: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum80Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 210: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum81Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 211: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum82Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 212: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum83Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 213: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum84Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 214: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum85Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 215: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum86Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 216: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum87Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 217: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum88Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 218: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum89Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 219: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum90Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 220: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum91Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 221: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum92Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 222: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum93Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 223: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum94Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 224: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum95Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 225: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum96Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 226: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum97Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 227: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum98Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 228: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum99Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 229: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum100Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 230: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum101Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 231: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum102Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 232: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum103Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 233: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum104Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 234: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum105Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 235: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum106Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 236: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum107Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 237: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum108Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 238: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum109Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 239: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum110Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 240: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum111Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 241: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum112Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 242: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum113Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 243: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum114Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 244: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum115Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 245: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum116Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 246: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum117Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 247: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum118Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 248: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum119Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 249: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum120Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 250: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum121Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 251: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum122Box alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 252: { ++ (AllNullableTypesWithoutRecursion *)fromList:(NSArray *)list { + AllNullableTypesWithoutRecursion *pigeonResult = [[AllNullableTypesWithoutRecursion alloc] init]; + pigeonResult.aNullableBool = GetNullableObjectAtIndex(list, 0); + pigeonResult.aNullableInt = GetNullableObjectAtIndex(list, 1); + pigeonResult.aNullableInt64 = GetNullableObjectAtIndex(list, 2); + pigeonResult.aNullableDouble = GetNullableObjectAtIndex(list, 3); + pigeonResult.aNullableByteArray = GetNullableObjectAtIndex(list, 4); + pigeonResult.aNullable4ByteArray = GetNullableObjectAtIndex(list, 5); + pigeonResult.aNullable8ByteArray = GetNullableObjectAtIndex(list, 6); + pigeonResult.aNullableFloatArray = GetNullableObjectAtIndex(list, 7); + pigeonResult.nullableNestedList = GetNullableObjectAtIndex(list, 8); + pigeonResult.nullableMapWithAnnotations = GetNullableObjectAtIndex(list, 9); + pigeonResult.nullableMapWithObject = GetNullableObjectAtIndex(list, 10); + pigeonResult.aNullableEnum = GetNullableObjectAtIndex(list, 11); + pigeonResult.anotherNullableEnum = GetNullableObjectAtIndex(list, 12); + pigeonResult.aNullableString = GetNullableObjectAtIndex(list, 13); + pigeonResult.aNullableObject = GetNullableObjectAtIndex(list, 14); + pigeonResult.list = GetNullableObjectAtIndex(list, 15); + pigeonResult.stringList = GetNullableObjectAtIndex(list, 16); + pigeonResult.intList = GetNullableObjectAtIndex(list, 17); + pigeonResult.doubleList = GetNullableObjectAtIndex(list, 18); + pigeonResult.boolList = GetNullableObjectAtIndex(list, 19); + pigeonResult.map = GetNullableObjectAtIndex(list, 20); + return pigeonResult; +} ++ (nullable AllNullableTypesWithoutRecursion *)nullableFromList:(NSArray *)list { + return (list) ? [AllNullableTypesWithoutRecursion fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.aNullableBool ?: [NSNull null], + self.aNullableInt ?: [NSNull null], + self.aNullableInt64 ?: [NSNull null], + self.aNullableDouble ?: [NSNull null], + self.aNullableByteArray ?: [NSNull null], + self.aNullable4ByteArray ?: [NSNull null], + self.aNullable8ByteArray ?: [NSNull null], + self.aNullableFloatArray ?: [NSNull null], + self.nullableNestedList ?: [NSNull null], + self.nullableMapWithAnnotations ?: [NSNull null], + self.nullableMapWithObject ?: [NSNull null], + self.aNullableEnum ?: [NSNull null], + self.anotherNullableEnum ?: [NSNull null], + self.aNullableString ?: [NSNull null], + self.aNullableObject ?: [NSNull null], + self.list ?: [NSNull null], + self.stringList ?: [NSNull null], + self.intList ?: [NSNull null], + self.doubleList ?: [NSNull null], + self.boolList ?: [NSNull null], + self.map ?: [NSNull null], + ]; +} +@end + +@implementation AllClassesWrapper ++ (instancetype)makeWithAllNullableTypes:(AllNullableTypes *)allNullableTypes + allNullableTypesWithoutRecursion: + (nullable AllNullableTypesWithoutRecursion *)allNullableTypesWithoutRecursion + allTypes:(nullable AllTypes *)allTypes { + AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = allNullableTypes; + pigeonResult.allNullableTypesWithoutRecursion = allNullableTypesWithoutRecursion; + pigeonResult.allTypes = allTypes; + return pigeonResult; +} ++ (AllClassesWrapper *)fromList:(NSArray *)list { + AllClassesWrapper *pigeonResult = [[AllClassesWrapper alloc] init]; + pigeonResult.allNullableTypes = GetNullableObjectAtIndex(list, 0); + pigeonResult.allNullableTypesWithoutRecursion = GetNullableObjectAtIndex(list, 1); + pigeonResult.allTypes = GetNullableObjectAtIndex(list, 2); + return pigeonResult; +} ++ (nullable AllClassesWrapper *)nullableFromList:(NSArray *)list { + return (list) ? [AllClassesWrapper fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.allNullableTypes ?: [NSNull null], + self.allNullableTypesWithoutRecursion ?: [NSNull null], + self.allTypes ?: [NSNull null], + ]; +} +@end + +@implementation TestMessage ++ (instancetype)makeWithTestList:(nullable NSArray *)testList { + TestMessage *pigeonResult = [[TestMessage alloc] init]; + pigeonResult.testList = testList; + return pigeonResult; +} ++ (TestMessage *)fromList:(NSArray *)list { + TestMessage *pigeonResult = [[TestMessage alloc] init]; + pigeonResult.testList = GetNullableObjectAtIndex(list, 0); + return pigeonResult; +} ++ (nullable TestMessage *)nullableFromList:(NSArray *)list { + return (list) ? [TestMessage fromList:list] : nil; +} +- (NSArray *)toList { + return @[ + self.testList ?: [NSNull null], + ]; +} +@end + +@interface CoreTestsPigeonCodecReader : FlutterStandardReader +@end +@implementation CoreTestsPigeonCodecReader +- (nullable id)readValueOfType:(UInt8)type { + switch (type) { + case 129: { NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil - ? nil - : [[FillerEnum123Box alloc] initWithValue:[enumAsNumber integerValue]]; + return enumAsNumber == nil ? nil + : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } - case 253: { + case 130: { NSNumber *enumAsNumber = [self readValue]; return enumAsNumber == nil ? nil - : [[FillerEnum124Box alloc] initWithValue:[enumAsNumber integerValue]]; + : [[AnotherEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; } - case 254: { - NSNumber *enumAsNumber = [self readValue]; - return enumAsNumber == nil ? nil - : [[AnEnumBox alloc] initWithValue:[enumAsNumber integerValue]]; - } - case 255: - return [__pigeon_CodecOverflow fromList:[self readValue]]; + case 131: + return [AllTypes fromList:[self readValue]]; + case 132: + return [AllNullableTypes fromList:[self readValue]]; + case 133: + return [AllNullableTypesWithoutRecursion fromList:[self readValue]]; + case 134: + return [AllClassesWrapper fromList:[self readValue]]; + case 135: + return [TestMessage fromList:[self readValue]]; default: return [super readValueOfType:type]; } @@ -2514,537 +480,29 @@ @interface CoreTestsPigeonCodecWriter : FlutterStandardWriter @end @implementation CoreTestsPigeonCodecWriter - (void)writeValue:(id)value { - if ([value isKindOfClass:[FillerEnum0Box class]]) { - FillerEnum0Box *box = (FillerEnum0Box *)value; - [self writeByte:129]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum1Box class]]) { - FillerEnum1Box *box = (FillerEnum1Box *)value; - [self writeByte:130]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum2Box class]]) { - FillerEnum2Box *box = (FillerEnum2Box *)value; - [self writeByte:131]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum3Box class]]) { - FillerEnum3Box *box = (FillerEnum3Box *)value; - [self writeByte:132]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum4Box class]]) { - FillerEnum4Box *box = (FillerEnum4Box *)value; - [self writeByte:133]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum5Box class]]) { - FillerEnum5Box *box = (FillerEnum5Box *)value; - [self writeByte:134]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum6Box class]]) { - FillerEnum6Box *box = (FillerEnum6Box *)value; - [self writeByte:135]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum7Box class]]) { - FillerEnum7Box *box = (FillerEnum7Box *)value; - [self writeByte:136]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum8Box class]]) { - FillerEnum8Box *box = (FillerEnum8Box *)value; - [self writeByte:137]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum9Box class]]) { - FillerEnum9Box *box = (FillerEnum9Box *)value; - [self writeByte:138]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum10Box class]]) { - FillerEnum10Box *box = (FillerEnum10Box *)value; - [self writeByte:139]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum11Box class]]) { - FillerEnum11Box *box = (FillerEnum11Box *)value; - [self writeByte:140]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum12Box class]]) { - FillerEnum12Box *box = (FillerEnum12Box *)value; - [self writeByte:141]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum13Box class]]) { - FillerEnum13Box *box = (FillerEnum13Box *)value; - [self writeByte:142]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum14Box class]]) { - FillerEnum14Box *box = (FillerEnum14Box *)value; - [self writeByte:143]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum15Box class]]) { - FillerEnum15Box *box = (FillerEnum15Box *)value; - [self writeByte:144]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum16Box class]]) { - FillerEnum16Box *box = (FillerEnum16Box *)value; - [self writeByte:145]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum17Box class]]) { - FillerEnum17Box *box = (FillerEnum17Box *)value; - [self writeByte:146]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum18Box class]]) { - FillerEnum18Box *box = (FillerEnum18Box *)value; - [self writeByte:147]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum19Box class]]) { - FillerEnum19Box *box = (FillerEnum19Box *)value; - [self writeByte:148]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum20Box class]]) { - FillerEnum20Box *box = (FillerEnum20Box *)value; - [self writeByte:149]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum21Box class]]) { - FillerEnum21Box *box = (FillerEnum21Box *)value; - [self writeByte:150]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum22Box class]]) { - FillerEnum22Box *box = (FillerEnum22Box *)value; - [self writeByte:151]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum23Box class]]) { - FillerEnum23Box *box = (FillerEnum23Box *)value; - [self writeByte:152]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum24Box class]]) { - FillerEnum24Box *box = (FillerEnum24Box *)value; - [self writeByte:153]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum25Box class]]) { - FillerEnum25Box *box = (FillerEnum25Box *)value; - [self writeByte:154]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum26Box class]]) { - FillerEnum26Box *box = (FillerEnum26Box *)value; - [self writeByte:155]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum27Box class]]) { - FillerEnum27Box *box = (FillerEnum27Box *)value; - [self writeByte:156]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum28Box class]]) { - FillerEnum28Box *box = (FillerEnum28Box *)value; - [self writeByte:157]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum29Box class]]) { - FillerEnum29Box *box = (FillerEnum29Box *)value; - [self writeByte:158]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum30Box class]]) { - FillerEnum30Box *box = (FillerEnum30Box *)value; - [self writeByte:159]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum31Box class]]) { - FillerEnum31Box *box = (FillerEnum31Box *)value; - [self writeByte:160]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum32Box class]]) { - FillerEnum32Box *box = (FillerEnum32Box *)value; - [self writeByte:161]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum33Box class]]) { - FillerEnum33Box *box = (FillerEnum33Box *)value; - [self writeByte:162]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum34Box class]]) { - FillerEnum34Box *box = (FillerEnum34Box *)value; - [self writeByte:163]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum35Box class]]) { - FillerEnum35Box *box = (FillerEnum35Box *)value; - [self writeByte:164]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum36Box class]]) { - FillerEnum36Box *box = (FillerEnum36Box *)value; - [self writeByte:165]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum37Box class]]) { - FillerEnum37Box *box = (FillerEnum37Box *)value; - [self writeByte:166]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum38Box class]]) { - FillerEnum38Box *box = (FillerEnum38Box *)value; - [self writeByte:167]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum39Box class]]) { - FillerEnum39Box *box = (FillerEnum39Box *)value; - [self writeByte:168]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum40Box class]]) { - FillerEnum40Box *box = (FillerEnum40Box *)value; - [self writeByte:169]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum41Box class]]) { - FillerEnum41Box *box = (FillerEnum41Box *)value; - [self writeByte:170]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum42Box class]]) { - FillerEnum42Box *box = (FillerEnum42Box *)value; - [self writeByte:171]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum43Box class]]) { - FillerEnum43Box *box = (FillerEnum43Box *)value; - [self writeByte:172]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum44Box class]]) { - FillerEnum44Box *box = (FillerEnum44Box *)value; - [self writeByte:173]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum45Box class]]) { - FillerEnum45Box *box = (FillerEnum45Box *)value; - [self writeByte:174]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum46Box class]]) { - FillerEnum46Box *box = (FillerEnum46Box *)value; - [self writeByte:175]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum47Box class]]) { - FillerEnum47Box *box = (FillerEnum47Box *)value; - [self writeByte:176]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum48Box class]]) { - FillerEnum48Box *box = (FillerEnum48Box *)value; - [self writeByte:177]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum49Box class]]) { - FillerEnum49Box *box = (FillerEnum49Box *)value; - [self writeByte:178]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum50Box class]]) { - FillerEnum50Box *box = (FillerEnum50Box *)value; - [self writeByte:179]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum51Box class]]) { - FillerEnum51Box *box = (FillerEnum51Box *)value; - [self writeByte:180]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum52Box class]]) { - FillerEnum52Box *box = (FillerEnum52Box *)value; - [self writeByte:181]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum53Box class]]) { - FillerEnum53Box *box = (FillerEnum53Box *)value; - [self writeByte:182]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum54Box class]]) { - FillerEnum54Box *box = (FillerEnum54Box *)value; - [self writeByte:183]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum55Box class]]) { - FillerEnum55Box *box = (FillerEnum55Box *)value; - [self writeByte:184]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum56Box class]]) { - FillerEnum56Box *box = (FillerEnum56Box *)value; - [self writeByte:185]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum57Box class]]) { - FillerEnum57Box *box = (FillerEnum57Box *)value; - [self writeByte:186]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum58Box class]]) { - FillerEnum58Box *box = (FillerEnum58Box *)value; - [self writeByte:187]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum59Box class]]) { - FillerEnum59Box *box = (FillerEnum59Box *)value; - [self writeByte:188]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum60Box class]]) { - FillerEnum60Box *box = (FillerEnum60Box *)value; - [self writeByte:189]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum61Box class]]) { - FillerEnum61Box *box = (FillerEnum61Box *)value; - [self writeByte:190]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum62Box class]]) { - FillerEnum62Box *box = (FillerEnum62Box *)value; - [self writeByte:191]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum63Box class]]) { - FillerEnum63Box *box = (FillerEnum63Box *)value; - [self writeByte:192]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum64Box class]]) { - FillerEnum64Box *box = (FillerEnum64Box *)value; - [self writeByte:193]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum65Box class]]) { - FillerEnum65Box *box = (FillerEnum65Box *)value; - [self writeByte:194]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum66Box class]]) { - FillerEnum66Box *box = (FillerEnum66Box *)value; - [self writeByte:195]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum67Box class]]) { - FillerEnum67Box *box = (FillerEnum67Box *)value; - [self writeByte:196]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum68Box class]]) { - FillerEnum68Box *box = (FillerEnum68Box *)value; - [self writeByte:197]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum69Box class]]) { - FillerEnum69Box *box = (FillerEnum69Box *)value; - [self writeByte:198]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum70Box class]]) { - FillerEnum70Box *box = (FillerEnum70Box *)value; - [self writeByte:199]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum71Box class]]) { - FillerEnum71Box *box = (FillerEnum71Box *)value; - [self writeByte:200]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum72Box class]]) { - FillerEnum72Box *box = (FillerEnum72Box *)value; - [self writeByte:201]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum73Box class]]) { - FillerEnum73Box *box = (FillerEnum73Box *)value; - [self writeByte:202]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum74Box class]]) { - FillerEnum74Box *box = (FillerEnum74Box *)value; - [self writeByte:203]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum75Box class]]) { - FillerEnum75Box *box = (FillerEnum75Box *)value; - [self writeByte:204]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum76Box class]]) { - FillerEnum76Box *box = (FillerEnum76Box *)value; - [self writeByte:205]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum77Box class]]) { - FillerEnum77Box *box = (FillerEnum77Box *)value; - [self writeByte:206]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum78Box class]]) { - FillerEnum78Box *box = (FillerEnum78Box *)value; - [self writeByte:207]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum79Box class]]) { - FillerEnum79Box *box = (FillerEnum79Box *)value; - [self writeByte:208]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum80Box class]]) { - FillerEnum80Box *box = (FillerEnum80Box *)value; - [self writeByte:209]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum81Box class]]) { - FillerEnum81Box *box = (FillerEnum81Box *)value; - [self writeByte:210]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum82Box class]]) { - FillerEnum82Box *box = (FillerEnum82Box *)value; - [self writeByte:211]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum83Box class]]) { - FillerEnum83Box *box = (FillerEnum83Box *)value; - [self writeByte:212]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum84Box class]]) { - FillerEnum84Box *box = (FillerEnum84Box *)value; - [self writeByte:213]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum85Box class]]) { - FillerEnum85Box *box = (FillerEnum85Box *)value; - [self writeByte:214]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum86Box class]]) { - FillerEnum86Box *box = (FillerEnum86Box *)value; - [self writeByte:215]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum87Box class]]) { - FillerEnum87Box *box = (FillerEnum87Box *)value; - [self writeByte:216]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum88Box class]]) { - FillerEnum88Box *box = (FillerEnum88Box *)value; - [self writeByte:217]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum89Box class]]) { - FillerEnum89Box *box = (FillerEnum89Box *)value; - [self writeByte:218]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum90Box class]]) { - FillerEnum90Box *box = (FillerEnum90Box *)value; - [self writeByte:219]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum91Box class]]) { - FillerEnum91Box *box = (FillerEnum91Box *)value; - [self writeByte:220]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum92Box class]]) { - FillerEnum92Box *box = (FillerEnum92Box *)value; - [self writeByte:221]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum93Box class]]) { - FillerEnum93Box *box = (FillerEnum93Box *)value; - [self writeByte:222]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum94Box class]]) { - FillerEnum94Box *box = (FillerEnum94Box *)value; - [self writeByte:223]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum95Box class]]) { - FillerEnum95Box *box = (FillerEnum95Box *)value; - [self writeByte:224]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum96Box class]]) { - FillerEnum96Box *box = (FillerEnum96Box *)value; - [self writeByte:225]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum97Box class]]) { - FillerEnum97Box *box = (FillerEnum97Box *)value; - [self writeByte:226]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum98Box class]]) { - FillerEnum98Box *box = (FillerEnum98Box *)value; - [self writeByte:227]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum99Box class]]) { - FillerEnum99Box *box = (FillerEnum99Box *)value; - [self writeByte:228]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum100Box class]]) { - FillerEnum100Box *box = (FillerEnum100Box *)value; - [self writeByte:229]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum101Box class]]) { - FillerEnum101Box *box = (FillerEnum101Box *)value; - [self writeByte:230]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum102Box class]]) { - FillerEnum102Box *box = (FillerEnum102Box *)value; - [self writeByte:231]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum103Box class]]) { - FillerEnum103Box *box = (FillerEnum103Box *)value; - [self writeByte:232]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum104Box class]]) { - FillerEnum104Box *box = (FillerEnum104Box *)value; - [self writeByte:233]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum105Box class]]) { - FillerEnum105Box *box = (FillerEnum105Box *)value; - [self writeByte:234]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum106Box class]]) { - FillerEnum106Box *box = (FillerEnum106Box *)value; - [self writeByte:235]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum107Box class]]) { - FillerEnum107Box *box = (FillerEnum107Box *)value; - [self writeByte:236]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum108Box class]]) { - FillerEnum108Box *box = (FillerEnum108Box *)value; - [self writeByte:237]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum109Box class]]) { - FillerEnum109Box *box = (FillerEnum109Box *)value; - [self writeByte:238]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum110Box class]]) { - FillerEnum110Box *box = (FillerEnum110Box *)value; - [self writeByte:239]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum111Box class]]) { - FillerEnum111Box *box = (FillerEnum111Box *)value; - [self writeByte:240]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum112Box class]]) { - FillerEnum112Box *box = (FillerEnum112Box *)value; - [self writeByte:241]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum113Box class]]) { - FillerEnum113Box *box = (FillerEnum113Box *)value; - [self writeByte:242]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum114Box class]]) { - FillerEnum114Box *box = (FillerEnum114Box *)value; - [self writeByte:243]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum115Box class]]) { - FillerEnum115Box *box = (FillerEnum115Box *)value; - [self writeByte:244]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum116Box class]]) { - FillerEnum116Box *box = (FillerEnum116Box *)value; - [self writeByte:245]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum117Box class]]) { - FillerEnum117Box *box = (FillerEnum117Box *)value; - [self writeByte:246]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum118Box class]]) { - FillerEnum118Box *box = (FillerEnum118Box *)value; - [self writeByte:247]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum119Box class]]) { - FillerEnum119Box *box = (FillerEnum119Box *)value; - [self writeByte:248]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum120Box class]]) { - FillerEnum120Box *box = (FillerEnum120Box *)value; - [self writeByte:249]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum121Box class]]) { - FillerEnum121Box *box = (FillerEnum121Box *)value; - [self writeByte:250]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum122Box class]]) { - FillerEnum122Box *box = (FillerEnum122Box *)value; - [self writeByte:251]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum123Box class]]) { - FillerEnum123Box *box = (FillerEnum123Box *)value; - [self writeByte:252]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[FillerEnum124Box class]]) { - FillerEnum124Box *box = (FillerEnum124Box *)value; - [self writeByte:253]; - [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - } else if ([value isKindOfClass:[AnEnumBox class]]) { + if ([value isKindOfClass:[AnEnumBox class]]) { AnEnumBox *box = (AnEnumBox *)value; - [self writeByte:254]; + [self writeByte:129]; [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; } else if ([value isKindOfClass:[AnotherEnumBox class]]) { AnotherEnumBox *box = (AnotherEnumBox *)value; - __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow - makeWithType:0 - wrapped:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:130]; + [self writeValue:(value == nil ? [NSNull null] : [NSNumber numberWithInteger:box.value])]; } else if ([value isKindOfClass:[AllTypes class]]) { - __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:1 wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:131]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[AllNullableTypes class]]) { - __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:2 wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:132]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[AllNullableTypesWithoutRecursion class]]) { - __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:3 wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:133]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[AllClassesWrapper class]]) { - __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:4 wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:134]; + [self writeValue:[value toList]]; } else if ([value isKindOfClass:[TestMessage class]]) { - __pigeon_CodecOverflow *wrap = [__pigeon_CodecOverflow makeWithType:5 wrapped:[value toList]]; - [self writeByte:255]; - [self writeValue:[wrap toList]]; + [self writeByte:135]; + [self writeValue:[value toList]]; } else { [super writeValue:value]; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index ff01047c862..0e2f0b9f5c0 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -30,506 +30,6 @@ List wrapResponse( return [error.code, error.message, error.details]; } -enum FillerEnum0 { - FillerMember0, -} - -enum FillerEnum1 { - FillerMember1, -} - -enum FillerEnum2 { - FillerMember2, -} - -enum FillerEnum3 { - FillerMember3, -} - -enum FillerEnum4 { - FillerMember4, -} - -enum FillerEnum5 { - FillerMember5, -} - -enum FillerEnum6 { - FillerMember6, -} - -enum FillerEnum7 { - FillerMember7, -} - -enum FillerEnum8 { - FillerMember8, -} - -enum FillerEnum9 { - FillerMember9, -} - -enum FillerEnum10 { - FillerMember10, -} - -enum FillerEnum11 { - FillerMember11, -} - -enum FillerEnum12 { - FillerMember12, -} - -enum FillerEnum13 { - FillerMember13, -} - -enum FillerEnum14 { - FillerMember14, -} - -enum FillerEnum15 { - FillerMember15, -} - -enum FillerEnum16 { - FillerMember16, -} - -enum FillerEnum17 { - FillerMember17, -} - -enum FillerEnum18 { - FillerMember18, -} - -enum FillerEnum19 { - FillerMember19, -} - -enum FillerEnum20 { - FillerMember20, -} - -enum FillerEnum21 { - FillerMember21, -} - -enum FillerEnum22 { - FillerMember22, -} - -enum FillerEnum23 { - FillerMember23, -} - -enum FillerEnum24 { - FillerMember24, -} - -enum FillerEnum25 { - FillerMember25, -} - -enum FillerEnum26 { - FillerMember26, -} - -enum FillerEnum27 { - FillerMember27, -} - -enum FillerEnum28 { - FillerMember28, -} - -enum FillerEnum29 { - FillerMember29, -} - -enum FillerEnum30 { - FillerMember30, -} - -enum FillerEnum31 { - FillerMember31, -} - -enum FillerEnum32 { - FillerMember32, -} - -enum FillerEnum33 { - FillerMember33, -} - -enum FillerEnum34 { - FillerMember34, -} - -enum FillerEnum35 { - FillerMember35, -} - -enum FillerEnum36 { - FillerMember36, -} - -enum FillerEnum37 { - FillerMember37, -} - -enum FillerEnum38 { - FillerMember38, -} - -enum FillerEnum39 { - FillerMember39, -} - -enum FillerEnum40 { - FillerMember40, -} - -enum FillerEnum41 { - FillerMember41, -} - -enum FillerEnum42 { - FillerMember42, -} - -enum FillerEnum43 { - FillerMember43, -} - -enum FillerEnum44 { - FillerMember44, -} - -enum FillerEnum45 { - FillerMember45, -} - -enum FillerEnum46 { - FillerMember46, -} - -enum FillerEnum47 { - FillerMember47, -} - -enum FillerEnum48 { - FillerMember48, -} - -enum FillerEnum49 { - FillerMember49, -} - -enum FillerEnum50 { - FillerMember50, -} - -enum FillerEnum51 { - FillerMember51, -} - -enum FillerEnum52 { - FillerMember52, -} - -enum FillerEnum53 { - FillerMember53, -} - -enum FillerEnum54 { - FillerMember54, -} - -enum FillerEnum55 { - FillerMember55, -} - -enum FillerEnum56 { - FillerMember56, -} - -enum FillerEnum57 { - FillerMember57, -} - -enum FillerEnum58 { - FillerMember58, -} - -enum FillerEnum59 { - FillerMember59, -} - -enum FillerEnum60 { - FillerMember60, -} - -enum FillerEnum61 { - FillerMember61, -} - -enum FillerEnum62 { - FillerMember62, -} - -enum FillerEnum63 { - FillerMember63, -} - -enum FillerEnum64 { - FillerMember64, -} - -enum FillerEnum65 { - FillerMember65, -} - -enum FillerEnum66 { - FillerMember66, -} - -enum FillerEnum67 { - FillerMember67, -} - -enum FillerEnum68 { - FillerMember68, -} - -enum FillerEnum69 { - FillerMember69, -} - -enum FillerEnum70 { - FillerMember70, -} - -enum FillerEnum71 { - FillerMember71, -} - -enum FillerEnum72 { - FillerMember72, -} - -enum FillerEnum73 { - FillerMember73, -} - -enum FillerEnum74 { - FillerMember74, -} - -enum FillerEnum75 { - FillerMember75, -} - -enum FillerEnum76 { - FillerMember76, -} - -enum FillerEnum77 { - FillerMember77, -} - -enum FillerEnum78 { - FillerMember78, -} - -enum FillerEnum79 { - FillerMember79, -} - -enum FillerEnum80 { - FillerMember80, -} - -enum FillerEnum81 { - FillerMember81, -} - -enum FillerEnum82 { - FillerMember82, -} - -enum FillerEnum83 { - FillerMember83, -} - -enum FillerEnum84 { - FillerMember84, -} - -enum FillerEnum85 { - FillerMember85, -} - -enum FillerEnum86 { - FillerMember86, -} - -enum FillerEnum87 { - FillerMember87, -} - -enum FillerEnum88 { - FillerMember88, -} - -enum FillerEnum89 { - FillerMember89, -} - -enum FillerEnum90 { - FillerMember90, -} - -enum FillerEnum91 { - FillerMember91, -} - -enum FillerEnum92 { - FillerMember92, -} - -enum FillerEnum93 { - FillerMember93, -} - -enum FillerEnum94 { - FillerMember94, -} - -enum FillerEnum95 { - FillerMember95, -} - -enum FillerEnum96 { - FillerMember96, -} - -enum FillerEnum97 { - FillerMember97, -} - -enum FillerEnum98 { - FillerMember98, -} - -enum FillerEnum99 { - FillerMember99, -} - -enum FillerEnum100 { - FillerMember100, -} - -enum FillerEnum101 { - FillerMember101, -} - -enum FillerEnum102 { - FillerMember102, -} - -enum FillerEnum103 { - FillerMember103, -} - -enum FillerEnum104 { - FillerMember104, -} - -enum FillerEnum105 { - FillerMember105, -} - -enum FillerEnum106 { - FillerMember106, -} - -enum FillerEnum107 { - FillerMember107, -} - -enum FillerEnum108 { - FillerMember108, -} - -enum FillerEnum109 { - FillerMember109, -} - -enum FillerEnum110 { - FillerMember110, -} - -enum FillerEnum111 { - FillerMember111, -} - -enum FillerEnum112 { - FillerMember112, -} - -enum FillerEnum113 { - FillerMember113, -} - -enum FillerEnum114 { - FillerMember114, -} - -enum FillerEnum115 { - FillerMember115, -} - -enum FillerEnum116 { - FillerMember116, -} - -enum FillerEnum117 { - FillerMember117, -} - -enum FillerEnum118 { - FillerMember118, -} - -enum FillerEnum119 { - FillerMember119, -} - -enum FillerEnum120 { - FillerMember120, -} - -enum FillerEnum121 { - FillerMember121, -} - -enum FillerEnum122 { - FillerMember122, -} - -enum FillerEnum123 { - FillerMember123, -} - -enum FillerEnum124 { - FillerMember124, -} - enum AnEnum { one, two, @@ -969,465 +469,31 @@ class TestMessage { } } -// ignore: camel_case_types -class __pigeon_CodecOverflow { - __pigeon_CodecOverflow({required this.type, required this.wrapped}); - - int type; - Object? wrapped; - - Object encode() { - return [type, wrapped]; - } - - static __pigeon_CodecOverflow decode(Object result) { - result as List; - return __pigeon_CodecOverflow( - type: result[0]! as int, - wrapped: result[1], - ); - } - - Object? unwrap() { - if (wrapped == null) { - return null; - } - - switch (type) { - case 0: - return AnotherEnum.values[wrapped! as int]; - - case 1: - return AllTypes.decode(wrapped!); - - case 2: - return AllNullableTypes.decode(wrapped!); - - case 3: - return AllNullableTypesWithoutRecursion.decode(wrapped!); - - case 4: - return AllClassesWrapper.decode(wrapped!); - - case 5: - return TestMessage.decode(wrapped!); - } - return null; - } -} - class _PigeonCodec extends StandardMessageCodec { const _PigeonCodec(); @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is FillerEnum0) { + if (value is AnEnum) { buffer.putUint8(129); writeValue(buffer, value.index); - } else if (value is FillerEnum1) { + } else if (value is AnotherEnum) { buffer.putUint8(130); writeValue(buffer, value.index); - } else if (value is FillerEnum2) { - buffer.putUint8(131); - writeValue(buffer, value.index); - } else if (value is FillerEnum3) { - buffer.putUint8(132); - writeValue(buffer, value.index); - } else if (value is FillerEnum4) { - buffer.putUint8(133); - writeValue(buffer, value.index); - } else if (value is FillerEnum5) { - buffer.putUint8(134); - writeValue(buffer, value.index); - } else if (value is FillerEnum6) { - buffer.putUint8(135); - writeValue(buffer, value.index); - } else if (value is FillerEnum7) { - buffer.putUint8(136); - writeValue(buffer, value.index); - } else if (value is FillerEnum8) { - buffer.putUint8(137); - writeValue(buffer, value.index); - } else if (value is FillerEnum9) { - buffer.putUint8(138); - writeValue(buffer, value.index); - } else if (value is FillerEnum10) { - buffer.putUint8(139); - writeValue(buffer, value.index); - } else if (value is FillerEnum11) { - buffer.putUint8(140); - writeValue(buffer, value.index); - } else if (value is FillerEnum12) { - buffer.putUint8(141); - writeValue(buffer, value.index); - } else if (value is FillerEnum13) { - buffer.putUint8(142); - writeValue(buffer, value.index); - } else if (value is FillerEnum14) { - buffer.putUint8(143); - writeValue(buffer, value.index); - } else if (value is FillerEnum15) { - buffer.putUint8(144); - writeValue(buffer, value.index); - } else if (value is FillerEnum16) { - buffer.putUint8(145); - writeValue(buffer, value.index); - } else if (value is FillerEnum17) { - buffer.putUint8(146); - writeValue(buffer, value.index); - } else if (value is FillerEnum18) { - buffer.putUint8(147); - writeValue(buffer, value.index); - } else if (value is FillerEnum19) { - buffer.putUint8(148); - writeValue(buffer, value.index); - } else if (value is FillerEnum20) { - buffer.putUint8(149); - writeValue(buffer, value.index); - } else if (value is FillerEnum21) { - buffer.putUint8(150); - writeValue(buffer, value.index); - } else if (value is FillerEnum22) { - buffer.putUint8(151); - writeValue(buffer, value.index); - } else if (value is FillerEnum23) { - buffer.putUint8(152); - writeValue(buffer, value.index); - } else if (value is FillerEnum24) { - buffer.putUint8(153); - writeValue(buffer, value.index); - } else if (value is FillerEnum25) { - buffer.putUint8(154); - writeValue(buffer, value.index); - } else if (value is FillerEnum26) { - buffer.putUint8(155); - writeValue(buffer, value.index); - } else if (value is FillerEnum27) { - buffer.putUint8(156); - writeValue(buffer, value.index); - } else if (value is FillerEnum28) { - buffer.putUint8(157); - writeValue(buffer, value.index); - } else if (value is FillerEnum29) { - buffer.putUint8(158); - writeValue(buffer, value.index); - } else if (value is FillerEnum30) { - buffer.putUint8(159); - writeValue(buffer, value.index); - } else if (value is FillerEnum31) { - buffer.putUint8(160); - writeValue(buffer, value.index); - } else if (value is FillerEnum32) { - buffer.putUint8(161); - writeValue(buffer, value.index); - } else if (value is FillerEnum33) { - buffer.putUint8(162); - writeValue(buffer, value.index); - } else if (value is FillerEnum34) { - buffer.putUint8(163); - writeValue(buffer, value.index); - } else if (value is FillerEnum35) { - buffer.putUint8(164); - writeValue(buffer, value.index); - } else if (value is FillerEnum36) { - buffer.putUint8(165); - writeValue(buffer, value.index); - } else if (value is FillerEnum37) { - buffer.putUint8(166); - writeValue(buffer, value.index); - } else if (value is FillerEnum38) { - buffer.putUint8(167); - writeValue(buffer, value.index); - } else if (value is FillerEnum39) { - buffer.putUint8(168); - writeValue(buffer, value.index); - } else if (value is FillerEnum40) { - buffer.putUint8(169); - writeValue(buffer, value.index); - } else if (value is FillerEnum41) { - buffer.putUint8(170); - writeValue(buffer, value.index); - } else if (value is FillerEnum42) { - buffer.putUint8(171); - writeValue(buffer, value.index); - } else if (value is FillerEnum43) { - buffer.putUint8(172); - writeValue(buffer, value.index); - } else if (value is FillerEnum44) { - buffer.putUint8(173); - writeValue(buffer, value.index); - } else if (value is FillerEnum45) { - buffer.putUint8(174); - writeValue(buffer, value.index); - } else if (value is FillerEnum46) { - buffer.putUint8(175); - writeValue(buffer, value.index); - } else if (value is FillerEnum47) { - buffer.putUint8(176); - writeValue(buffer, value.index); - } else if (value is FillerEnum48) { - buffer.putUint8(177); - writeValue(buffer, value.index); - } else if (value is FillerEnum49) { - buffer.putUint8(178); - writeValue(buffer, value.index); - } else if (value is FillerEnum50) { - buffer.putUint8(179); - writeValue(buffer, value.index); - } else if (value is FillerEnum51) { - buffer.putUint8(180); - writeValue(buffer, value.index); - } else if (value is FillerEnum52) { - buffer.putUint8(181); - writeValue(buffer, value.index); - } else if (value is FillerEnum53) { - buffer.putUint8(182); - writeValue(buffer, value.index); - } else if (value is FillerEnum54) { - buffer.putUint8(183); - writeValue(buffer, value.index); - } else if (value is FillerEnum55) { - buffer.putUint8(184); - writeValue(buffer, value.index); - } else if (value is FillerEnum56) { - buffer.putUint8(185); - writeValue(buffer, value.index); - } else if (value is FillerEnum57) { - buffer.putUint8(186); - writeValue(buffer, value.index); - } else if (value is FillerEnum58) { - buffer.putUint8(187); - writeValue(buffer, value.index); - } else if (value is FillerEnum59) { - buffer.putUint8(188); - writeValue(buffer, value.index); - } else if (value is FillerEnum60) { - buffer.putUint8(189); - writeValue(buffer, value.index); - } else if (value is FillerEnum61) { - buffer.putUint8(190); - writeValue(buffer, value.index); - } else if (value is FillerEnum62) { - buffer.putUint8(191); - writeValue(buffer, value.index); - } else if (value is FillerEnum63) { - buffer.putUint8(192); - writeValue(buffer, value.index); - } else if (value is FillerEnum64) { - buffer.putUint8(193); - writeValue(buffer, value.index); - } else if (value is FillerEnum65) { - buffer.putUint8(194); - writeValue(buffer, value.index); - } else if (value is FillerEnum66) { - buffer.putUint8(195); - writeValue(buffer, value.index); - } else if (value is FillerEnum67) { - buffer.putUint8(196); - writeValue(buffer, value.index); - } else if (value is FillerEnum68) { - buffer.putUint8(197); - writeValue(buffer, value.index); - } else if (value is FillerEnum69) { - buffer.putUint8(198); - writeValue(buffer, value.index); - } else if (value is FillerEnum70) { - buffer.putUint8(199); - writeValue(buffer, value.index); - } else if (value is FillerEnum71) { - buffer.putUint8(200); - writeValue(buffer, value.index); - } else if (value is FillerEnum72) { - buffer.putUint8(201); - writeValue(buffer, value.index); - } else if (value is FillerEnum73) { - buffer.putUint8(202); - writeValue(buffer, value.index); - } else if (value is FillerEnum74) { - buffer.putUint8(203); - writeValue(buffer, value.index); - } else if (value is FillerEnum75) { - buffer.putUint8(204); - writeValue(buffer, value.index); - } else if (value is FillerEnum76) { - buffer.putUint8(205); - writeValue(buffer, value.index); - } else if (value is FillerEnum77) { - buffer.putUint8(206); - writeValue(buffer, value.index); - } else if (value is FillerEnum78) { - buffer.putUint8(207); - writeValue(buffer, value.index); - } else if (value is FillerEnum79) { - buffer.putUint8(208); - writeValue(buffer, value.index); - } else if (value is FillerEnum80) { - buffer.putUint8(209); - writeValue(buffer, value.index); - } else if (value is FillerEnum81) { - buffer.putUint8(210); - writeValue(buffer, value.index); - } else if (value is FillerEnum82) { - buffer.putUint8(211); - writeValue(buffer, value.index); - } else if (value is FillerEnum83) { - buffer.putUint8(212); - writeValue(buffer, value.index); - } else if (value is FillerEnum84) { - buffer.putUint8(213); - writeValue(buffer, value.index); - } else if (value is FillerEnum85) { - buffer.putUint8(214); - writeValue(buffer, value.index); - } else if (value is FillerEnum86) { - buffer.putUint8(215); - writeValue(buffer, value.index); - } else if (value is FillerEnum87) { - buffer.putUint8(216); - writeValue(buffer, value.index); - } else if (value is FillerEnum88) { - buffer.putUint8(217); - writeValue(buffer, value.index); - } else if (value is FillerEnum89) { - buffer.putUint8(218); - writeValue(buffer, value.index); - } else if (value is FillerEnum90) { - buffer.putUint8(219); - writeValue(buffer, value.index); - } else if (value is FillerEnum91) { - buffer.putUint8(220); - writeValue(buffer, value.index); - } else if (value is FillerEnum92) { - buffer.putUint8(221); - writeValue(buffer, value.index); - } else if (value is FillerEnum93) { - buffer.putUint8(222); - writeValue(buffer, value.index); - } else if (value is FillerEnum94) { - buffer.putUint8(223); - writeValue(buffer, value.index); - } else if (value is FillerEnum95) { - buffer.putUint8(224); - writeValue(buffer, value.index); - } else if (value is FillerEnum96) { - buffer.putUint8(225); - writeValue(buffer, value.index); - } else if (value is FillerEnum97) { - buffer.putUint8(226); - writeValue(buffer, value.index); - } else if (value is FillerEnum98) { - buffer.putUint8(227); - writeValue(buffer, value.index); - } else if (value is FillerEnum99) { - buffer.putUint8(228); - writeValue(buffer, value.index); - } else if (value is FillerEnum100) { - buffer.putUint8(229); - writeValue(buffer, value.index); - } else if (value is FillerEnum101) { - buffer.putUint8(230); - writeValue(buffer, value.index); - } else if (value is FillerEnum102) { - buffer.putUint8(231); - writeValue(buffer, value.index); - } else if (value is FillerEnum103) { - buffer.putUint8(232); - writeValue(buffer, value.index); - } else if (value is FillerEnum104) { - buffer.putUint8(233); - writeValue(buffer, value.index); - } else if (value is FillerEnum105) { - buffer.putUint8(234); - writeValue(buffer, value.index); - } else if (value is FillerEnum106) { - buffer.putUint8(235); - writeValue(buffer, value.index); - } else if (value is FillerEnum107) { - buffer.putUint8(236); - writeValue(buffer, value.index); - } else if (value is FillerEnum108) { - buffer.putUint8(237); - writeValue(buffer, value.index); - } else if (value is FillerEnum109) { - buffer.putUint8(238); - writeValue(buffer, value.index); - } else if (value is FillerEnum110) { - buffer.putUint8(239); - writeValue(buffer, value.index); - } else if (value is FillerEnum111) { - buffer.putUint8(240); - writeValue(buffer, value.index); - } else if (value is FillerEnum112) { - buffer.putUint8(241); - writeValue(buffer, value.index); - } else if (value is FillerEnum113) { - buffer.putUint8(242); - writeValue(buffer, value.index); - } else if (value is FillerEnum114) { - buffer.putUint8(243); - writeValue(buffer, value.index); - } else if (value is FillerEnum115) { - buffer.putUint8(244); - writeValue(buffer, value.index); - } else if (value is FillerEnum116) { - buffer.putUint8(245); - writeValue(buffer, value.index); - } else if (value is FillerEnum117) { - buffer.putUint8(246); - writeValue(buffer, value.index); - } else if (value is FillerEnum118) { - buffer.putUint8(247); - writeValue(buffer, value.index); - } else if (value is FillerEnum119) { - buffer.putUint8(248); - writeValue(buffer, value.index); - } else if (value is FillerEnum120) { - buffer.putUint8(249); - writeValue(buffer, value.index); - } else if (value is FillerEnum121) { - buffer.putUint8(250); - writeValue(buffer, value.index); - } else if (value is FillerEnum122) { - buffer.putUint8(251); - writeValue(buffer, value.index); - } else if (value is FillerEnum123) { - buffer.putUint8(252); - writeValue(buffer, value.index); - } else if (value is FillerEnum124) { - buffer.putUint8(253); - writeValue(buffer, value.index); - } else if (value is AnEnum) { - buffer.putUint8(254); - writeValue(buffer, value.index); - } else if (value is AnotherEnum) { - final __pigeon_CodecOverflow wrap = - __pigeon_CodecOverflow(type: 0, wrapped: value.index); - buffer.putUint8(255); - writeValue(buffer, wrap.encode()); } else if (value is AllTypes) { - final __pigeon_CodecOverflow wrap = - __pigeon_CodecOverflow(type: 1, wrapped: value.encode()); - buffer.putUint8(255); - writeValue(buffer, wrap.encode()); + buffer.putUint8(131); + writeValue(buffer, value.encode()); } else if (value is AllNullableTypes) { - final __pigeon_CodecOverflow wrap = - __pigeon_CodecOverflow(type: 2, wrapped: value.encode()); - buffer.putUint8(255); - writeValue(buffer, wrap.encode()); + buffer.putUint8(132); + writeValue(buffer, value.encode()); } else if (value is AllNullableTypesWithoutRecursion) { - final __pigeon_CodecOverflow wrap = - __pigeon_CodecOverflow(type: 3, wrapped: value.encode()); - buffer.putUint8(255); - writeValue(buffer, wrap.encode()); + buffer.putUint8(133); + writeValue(buffer, value.encode()); } else if (value is AllClassesWrapper) { - final __pigeon_CodecOverflow wrap = - __pigeon_CodecOverflow(type: 4, wrapped: value.encode()); - buffer.putUint8(255); - writeValue(buffer, wrap.encode()); + buffer.putUint8(134); + writeValue(buffer, value.encode()); } else if (value is TestMessage) { - final __pigeon_CodecOverflow wrap = - __pigeon_CodecOverflow(type: 5, wrapped: value.encode()); - buffer.putUint8(255); - writeValue(buffer, wrap.encode()); + buffer.putUint8(135); + writeValue(buffer, value.encode()); } else { super.writeValue(buffer, value); } @@ -1438,386 +504,20 @@ class _PigeonCodec extends StandardMessageCodec { switch (type) { case 129: final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum0.values[value]; + return value == null ? null : AnEnum.values[value]; case 130: final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum1.values[value]; + return value == null ? null : AnotherEnum.values[value]; case 131: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum2.values[value]; + return AllTypes.decode(readValue(buffer)!); case 132: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum3.values[value]; + return AllNullableTypes.decode(readValue(buffer)!); case 133: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum4.values[value]; + return AllNullableTypesWithoutRecursion.decode(readValue(buffer)!); case 134: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum5.values[value]; + return AllClassesWrapper.decode(readValue(buffer)!); case 135: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum6.values[value]; - case 136: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum7.values[value]; - case 137: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum8.values[value]; - case 138: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum9.values[value]; - case 139: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum10.values[value]; - case 140: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum11.values[value]; - case 141: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum12.values[value]; - case 142: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum13.values[value]; - case 143: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum14.values[value]; - case 144: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum15.values[value]; - case 145: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum16.values[value]; - case 146: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum17.values[value]; - case 147: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum18.values[value]; - case 148: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum19.values[value]; - case 149: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum20.values[value]; - case 150: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum21.values[value]; - case 151: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum22.values[value]; - case 152: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum23.values[value]; - case 153: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum24.values[value]; - case 154: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum25.values[value]; - case 155: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum26.values[value]; - case 156: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum27.values[value]; - case 157: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum28.values[value]; - case 158: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum29.values[value]; - case 159: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum30.values[value]; - case 160: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum31.values[value]; - case 161: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum32.values[value]; - case 162: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum33.values[value]; - case 163: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum34.values[value]; - case 164: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum35.values[value]; - case 165: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum36.values[value]; - case 166: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum37.values[value]; - case 167: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum38.values[value]; - case 168: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum39.values[value]; - case 169: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum40.values[value]; - case 170: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum41.values[value]; - case 171: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum42.values[value]; - case 172: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum43.values[value]; - case 173: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum44.values[value]; - case 174: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum45.values[value]; - case 175: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum46.values[value]; - case 176: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum47.values[value]; - case 177: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum48.values[value]; - case 178: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum49.values[value]; - case 179: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum50.values[value]; - case 180: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum51.values[value]; - case 181: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum52.values[value]; - case 182: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum53.values[value]; - case 183: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum54.values[value]; - case 184: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum55.values[value]; - case 185: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum56.values[value]; - case 186: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum57.values[value]; - case 187: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum58.values[value]; - case 188: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum59.values[value]; - case 189: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum60.values[value]; - case 190: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum61.values[value]; - case 191: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum62.values[value]; - case 192: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum63.values[value]; - case 193: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum64.values[value]; - case 194: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum65.values[value]; - case 195: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum66.values[value]; - case 196: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum67.values[value]; - case 197: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum68.values[value]; - case 198: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum69.values[value]; - case 199: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum70.values[value]; - case 200: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum71.values[value]; - case 201: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum72.values[value]; - case 202: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum73.values[value]; - case 203: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum74.values[value]; - case 204: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum75.values[value]; - case 205: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum76.values[value]; - case 206: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum77.values[value]; - case 207: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum78.values[value]; - case 208: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum79.values[value]; - case 209: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum80.values[value]; - case 210: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum81.values[value]; - case 211: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum82.values[value]; - case 212: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum83.values[value]; - case 213: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum84.values[value]; - case 214: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum85.values[value]; - case 215: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum86.values[value]; - case 216: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum87.values[value]; - case 217: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum88.values[value]; - case 218: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum89.values[value]; - case 219: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum90.values[value]; - case 220: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum91.values[value]; - case 221: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum92.values[value]; - case 222: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum93.values[value]; - case 223: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum94.values[value]; - case 224: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum95.values[value]; - case 225: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum96.values[value]; - case 226: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum97.values[value]; - case 227: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum98.values[value]; - case 228: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum99.values[value]; - case 229: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum100.values[value]; - case 230: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum101.values[value]; - case 231: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum102.values[value]; - case 232: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum103.values[value]; - case 233: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum104.values[value]; - case 234: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum105.values[value]; - case 235: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum106.values[value]; - case 236: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum107.values[value]; - case 237: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum108.values[value]; - case 238: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum109.values[value]; - case 239: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum110.values[value]; - case 240: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum111.values[value]; - case 241: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum112.values[value]; - case 242: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum113.values[value]; - case 243: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum114.values[value]; - case 244: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum115.values[value]; - case 245: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum116.values[value]; - case 246: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum117.values[value]; - case 247: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum118.values[value]; - case 248: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum119.values[value]; - case 249: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum120.values[value]; - case 250: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum121.values[value]; - case 251: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum122.values[value]; - case 252: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum123.values[value]; - case 253: - final int? value = readValue(buffer) as int?; - return value == null ? null : FillerEnum124.values[value]; - case 254: - final int? value = readValue(buffer) as int?; - return value == null ? null : AnEnum.values[value]; - case 255: - final __pigeon_CodecOverflow wrapper = - __pigeon_CodecOverflow.decode(readValue(buffer)!); - return wrapper.unwrap(); + return TestMessage.decode(readValue(buffer)!); default: return super.readValueOfType(type, buffer); } diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index 273507e2c61..d5e66234250 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -36,2622 +36,456 @@ private fun createConnectionError(channelName: String): FlutterError { "channel-error", "Unable to establish connection on channel: '$channelName'.", "") } -enum class FillerEnum0(val raw: Int) { - FILLER_MEMBER0(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum0? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum1(val raw: Int) { - FILLER_MEMBER1(0); +enum class AnEnum(val raw: Int) { + ONE(0), + TWO(1), + THREE(2), + FORTY_TWO(3), + FOUR_HUNDRED_TWENTY_TWO(4); companion object { - fun ofRaw(raw: Int): FillerEnum1? { + fun ofRaw(raw: Int): AnEnum? { return values().firstOrNull { it.raw == raw } } } } -enum class FillerEnum2(val raw: Int) { - FILLER_MEMBER2(0); +enum class AnotherEnum(val raw: Int) { + JUST_IN_CASE(0); companion object { - fun ofRaw(raw: Int): FillerEnum2? { + fun ofRaw(raw: Int): AnotherEnum? { return values().firstOrNull { it.raw == raw } } } } -enum class FillerEnum3(val raw: Int) { - FILLER_MEMBER3(0); - +/** + * A class containing all supported types. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllTypes( + val aBool: Boolean, + val anInt: Long, + val anInt64: Long, + val aDouble: Double, + val aByteArray: ByteArray, + val a4ByteArray: IntArray, + val a8ByteArray: LongArray, + val aFloatArray: DoubleArray, + val anEnum: AnEnum, + val anotherEnum: AnotherEnum, + val aString: String, + val anObject: Any, + val list: List, + val stringList: List, + val intList: List, + val doubleList: List, + val boolList: List, + val map: Map +) { companion object { - fun ofRaw(raw: Int): FillerEnum3? { - return values().firstOrNull { it.raw == raw } + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllTypes { + val aBool = __pigeon_list[0] as Boolean + val anInt = __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long } + val anInt64 = __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long } + val aDouble = __pigeon_list[3] as Double + val aByteArray = __pigeon_list[4] as ByteArray + val a4ByteArray = __pigeon_list[5] as IntArray + val a8ByteArray = __pigeon_list[6] as LongArray + val aFloatArray = __pigeon_list[7] as DoubleArray + val anEnum = __pigeon_list[8] as AnEnum + val anotherEnum = __pigeon_list[9] as AnotherEnum + val aString = __pigeon_list[10] as String + val anObject = __pigeon_list[11] as Any + val list = __pigeon_list[12] as List + val stringList = __pigeon_list[13] as List + val intList = __pigeon_list[14] as List + val doubleList = __pigeon_list[15] as List + val boolList = __pigeon_list[16] as List + val map = __pigeon_list[17] as Map + return AllTypes( + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + map) } } -} -enum class FillerEnum4(val raw: Int) { - FILLER_MEMBER4(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum4? { - return values().firstOrNull { it.raw == raw } - } + fun toList(): List { + return listOf( + aBool, + anInt, + anInt64, + aDouble, + aByteArray, + a4ByteArray, + a8ByteArray, + aFloatArray, + anEnum, + anotherEnum, + aString, + anObject, + list, + stringList, + intList, + doubleList, + boolList, + map, + ) } } -enum class FillerEnum5(val raw: Int) { - FILLER_MEMBER5(0); - +/** + * A class containing all supported nullable types. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllNullableTypes( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val nullableNestedList: List?>? = null, + val nullableMapWithAnnotations: Map? = null, + val nullableMapWithObject: Map? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val allNullableTypes: AllNullableTypes? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val nestedClassList: List? = null, + val map: Map? = null +) { companion object { - fun ofRaw(raw: Int): FillerEnum5? { - return values().firstOrNull { it.raw == raw } + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllNullableTypes { + val aNullableBool = __pigeon_list[0] as Boolean? + val aNullableInt = + __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableInt64 = + __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = __pigeon_list[3] as Double? + val aNullableByteArray = __pigeon_list[4] as ByteArray? + val aNullable4ByteArray = __pigeon_list[5] as IntArray? + val aNullable8ByteArray = __pigeon_list[6] as LongArray? + val aNullableFloatArray = __pigeon_list[7] as DoubleArray? + val nullableNestedList = __pigeon_list[8] as List?>? + val nullableMapWithAnnotations = __pigeon_list[9] as Map? + val nullableMapWithObject = __pigeon_list[10] as Map? + val aNullableEnum = __pigeon_list[11] as AnEnum? + val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? + val aNullableString = __pigeon_list[13] as String? + val aNullableObject = __pigeon_list[14] + val allNullableTypes = __pigeon_list[15] as AllNullableTypes? + val list = __pigeon_list[16] as List? + val stringList = __pigeon_list[17] as List? + val intList = __pigeon_list[18] as List? + val doubleList = __pigeon_list[19] as List? + val boolList = __pigeon_list[20] as List? + val nestedClassList = __pigeon_list[21] as List? + val map = __pigeon_list[22] as Map? + return AllNullableTypes( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + nestedClassList, + map) } } -} - -enum class FillerEnum6(val raw: Int) { - FILLER_MEMBER6(0); - companion object { - fun ofRaw(raw: Int): FillerEnum6? { - return values().firstOrNull { it.raw == raw } - } + fun toList(): List { + return listOf( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + allNullableTypes, + list, + stringList, + intList, + doubleList, + boolList, + nestedClassList, + map, + ) } } -enum class FillerEnum7(val raw: Int) { - FILLER_MEMBER7(0); - +/** + * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, as + * the primary [AllNullableTypes] class is being used to test Swift classes. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllNullableTypesWithoutRecursion( + val aNullableBool: Boolean? = null, + val aNullableInt: Long? = null, + val aNullableInt64: Long? = null, + val aNullableDouble: Double? = null, + val aNullableByteArray: ByteArray? = null, + val aNullable4ByteArray: IntArray? = null, + val aNullable8ByteArray: LongArray? = null, + val aNullableFloatArray: DoubleArray? = null, + val nullableNestedList: List?>? = null, + val nullableMapWithAnnotations: Map? = null, + val nullableMapWithObject: Map? = null, + val aNullableEnum: AnEnum? = null, + val anotherNullableEnum: AnotherEnum? = null, + val aNullableString: String? = null, + val aNullableObject: Any? = null, + val list: List? = null, + val stringList: List? = null, + val intList: List? = null, + val doubleList: List? = null, + val boolList: List? = null, + val map: Map? = null +) { companion object { - fun ofRaw(raw: Int): FillerEnum7? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum8(val raw: Int) { - FILLER_MEMBER8(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum8? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum9(val raw: Int) { - FILLER_MEMBER9(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum9? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum10(val raw: Int) { - FILLER_MEMBER10(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum10? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum11(val raw: Int) { - FILLER_MEMBER11(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum11? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum12(val raw: Int) { - FILLER_MEMBER12(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum12? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum13(val raw: Int) { - FILLER_MEMBER13(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum13? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum14(val raw: Int) { - FILLER_MEMBER14(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum14? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum15(val raw: Int) { - FILLER_MEMBER15(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum15? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum16(val raw: Int) { - FILLER_MEMBER16(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum16? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum17(val raw: Int) { - FILLER_MEMBER17(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum17? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum18(val raw: Int) { - FILLER_MEMBER18(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum18? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum19(val raw: Int) { - FILLER_MEMBER19(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum19? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum20(val raw: Int) { - FILLER_MEMBER20(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum20? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum21(val raw: Int) { - FILLER_MEMBER21(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum21? { - return values().firstOrNull { it.raw == raw } + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllNullableTypesWithoutRecursion { + val aNullableBool = __pigeon_list[0] as Boolean? + val aNullableInt = + __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableInt64 = + __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = __pigeon_list[3] as Double? + val aNullableByteArray = __pigeon_list[4] as ByteArray? + val aNullable4ByteArray = __pigeon_list[5] as IntArray? + val aNullable8ByteArray = __pigeon_list[6] as LongArray? + val aNullableFloatArray = __pigeon_list[7] as DoubleArray? + val nullableNestedList = __pigeon_list[8] as List?>? + val nullableMapWithAnnotations = __pigeon_list[9] as Map? + val nullableMapWithObject = __pigeon_list[10] as Map? + val aNullableEnum = __pigeon_list[11] as AnEnum? + val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? + val aNullableString = __pigeon_list[13] as String? + val aNullableObject = __pigeon_list[14] + val list = __pigeon_list[15] as List? + val stringList = __pigeon_list[16] as List? + val intList = __pigeon_list[17] as List? + val doubleList = __pigeon_list[18] as List? + val boolList = __pigeon_list[19] as List? + val map = __pigeon_list[20] as Map? + return AllNullableTypesWithoutRecursion( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + map) } } -} -enum class FillerEnum22(val raw: Int) { - FILLER_MEMBER22(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum22? { - return values().firstOrNull { it.raw == raw } - } + fun toList(): List { + return listOf( + aNullableBool, + aNullableInt, + aNullableInt64, + aNullableDouble, + aNullableByteArray, + aNullable4ByteArray, + aNullable8ByteArray, + aNullableFloatArray, + nullableNestedList, + nullableMapWithAnnotations, + nullableMapWithObject, + aNullableEnum, + anotherNullableEnum, + aNullableString, + aNullableObject, + list, + stringList, + intList, + doubleList, + boolList, + map, + ) } } -enum class FillerEnum23(val raw: Int) { - FILLER_MEMBER23(0); - +/** + * A class for testing nested class handling. + * + * This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is + * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require + * both (ie. testing null classes). + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class AllClassesWrapper( + val allNullableTypes: AllNullableTypes, + val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, + val allTypes: AllTypes? = null +) { companion object { - fun ofRaw(raw: Int): FillerEnum23? { - return values().firstOrNull { it.raw == raw } + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): AllClassesWrapper { + val allNullableTypes = __pigeon_list[0] as AllNullableTypes + val allNullableTypesWithoutRecursion = __pigeon_list[1] as AllNullableTypesWithoutRecursion? + val allTypes = __pigeon_list[2] as AllTypes? + return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes) } } -} - -enum class FillerEnum24(val raw: Int) { - FILLER_MEMBER24(0); - companion object { - fun ofRaw(raw: Int): FillerEnum24? { - return values().firstOrNull { it.raw == raw } - } + fun toList(): List { + return listOf( + allNullableTypes, + allNullableTypesWithoutRecursion, + allTypes, + ) } } -enum class FillerEnum25(val raw: Int) { - FILLER_MEMBER25(0); - +/** + * A data class containing a List, used in unit tests. + * + * Generated class from Pigeon that represents data sent in messages. + */ +data class TestMessage(val testList: List? = null) { companion object { - fun ofRaw(raw: Int): FillerEnum25? { - return values().firstOrNull { it.raw == raw } + @Suppress("LocalVariableName") + fun fromList(__pigeon_list: List): TestMessage { + val testList = __pigeon_list[0] as List? + return TestMessage(testList) } } -} -enum class FillerEnum26(val raw: Int) { - FILLER_MEMBER26(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum26? { - return values().firstOrNull { it.raw == raw } - } + fun toList(): List { + return listOf( + testList, + ) } } -enum class FillerEnum27(val raw: Int) { - FILLER_MEMBER27(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum27? { - return values().firstOrNull { it.raw == raw } +private object CoreTestsPigeonCodec : StandardMessageCodec() { + override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { + return when (type) { + 129.toByte() -> { + return (readValue(buffer) as Int?)?.let { AnEnum.ofRaw(it) } + } + 130.toByte() -> { + return (readValue(buffer) as Int?)?.let { AnotherEnum.ofRaw(it) } + } + 131.toByte() -> { + return (readValue(buffer) as? List)?.let { AllTypes.fromList(it) } + } + 132.toByte() -> { + return (readValue(buffer) as? List)?.let { AllNullableTypes.fromList(it) } + } + 133.toByte() -> { + return (readValue(buffer) as? List)?.let { + AllNullableTypesWithoutRecursion.fromList(it) + } + } + 134.toByte() -> { + return (readValue(buffer) as? List)?.let { AllClassesWrapper.fromList(it) } + } + 135.toByte() -> { + return (readValue(buffer) as? List)?.let { TestMessage.fromList(it) } + } + else -> super.readValueOfType(type, buffer) } } -} - -enum class FillerEnum28(val raw: Int) { - FILLER_MEMBER28(0); - companion object { - fun ofRaw(raw: Int): FillerEnum28? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum29(val raw: Int) { - FILLER_MEMBER29(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum29? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum30(val raw: Int) { - FILLER_MEMBER30(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum30? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum31(val raw: Int) { - FILLER_MEMBER31(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum31? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum32(val raw: Int) { - FILLER_MEMBER32(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum32? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum33(val raw: Int) { - FILLER_MEMBER33(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum33? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum34(val raw: Int) { - FILLER_MEMBER34(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum34? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum35(val raw: Int) { - FILLER_MEMBER35(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum35? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum36(val raw: Int) { - FILLER_MEMBER36(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum36? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum37(val raw: Int) { - FILLER_MEMBER37(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum37? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum38(val raw: Int) { - FILLER_MEMBER38(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum38? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum39(val raw: Int) { - FILLER_MEMBER39(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum39? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum40(val raw: Int) { - FILLER_MEMBER40(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum40? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum41(val raw: Int) { - FILLER_MEMBER41(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum41? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum42(val raw: Int) { - FILLER_MEMBER42(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum42? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum43(val raw: Int) { - FILLER_MEMBER43(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum43? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum44(val raw: Int) { - FILLER_MEMBER44(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum44? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum45(val raw: Int) { - FILLER_MEMBER45(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum45? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum46(val raw: Int) { - FILLER_MEMBER46(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum46? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum47(val raw: Int) { - FILLER_MEMBER47(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum47? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum48(val raw: Int) { - FILLER_MEMBER48(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum48? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum49(val raw: Int) { - FILLER_MEMBER49(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum49? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum50(val raw: Int) { - FILLER_MEMBER50(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum50? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum51(val raw: Int) { - FILLER_MEMBER51(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum51? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum52(val raw: Int) { - FILLER_MEMBER52(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum52? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum53(val raw: Int) { - FILLER_MEMBER53(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum53? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum54(val raw: Int) { - FILLER_MEMBER54(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum54? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum55(val raw: Int) { - FILLER_MEMBER55(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum55? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum56(val raw: Int) { - FILLER_MEMBER56(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum56? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum57(val raw: Int) { - FILLER_MEMBER57(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum57? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum58(val raw: Int) { - FILLER_MEMBER58(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum58? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum59(val raw: Int) { - FILLER_MEMBER59(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum59? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum60(val raw: Int) { - FILLER_MEMBER60(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum60? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum61(val raw: Int) { - FILLER_MEMBER61(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum61? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum62(val raw: Int) { - FILLER_MEMBER62(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum62? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum63(val raw: Int) { - FILLER_MEMBER63(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum63? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum64(val raw: Int) { - FILLER_MEMBER64(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum64? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum65(val raw: Int) { - FILLER_MEMBER65(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum65? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum66(val raw: Int) { - FILLER_MEMBER66(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum66? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum67(val raw: Int) { - FILLER_MEMBER67(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum67? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum68(val raw: Int) { - FILLER_MEMBER68(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum68? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum69(val raw: Int) { - FILLER_MEMBER69(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum69? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum70(val raw: Int) { - FILLER_MEMBER70(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum70? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum71(val raw: Int) { - FILLER_MEMBER71(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum71? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum72(val raw: Int) { - FILLER_MEMBER72(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum72? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum73(val raw: Int) { - FILLER_MEMBER73(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum73? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum74(val raw: Int) { - FILLER_MEMBER74(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum74? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum75(val raw: Int) { - FILLER_MEMBER75(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum75? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum76(val raw: Int) { - FILLER_MEMBER76(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum76? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum77(val raw: Int) { - FILLER_MEMBER77(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum77? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum78(val raw: Int) { - FILLER_MEMBER78(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum78? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum79(val raw: Int) { - FILLER_MEMBER79(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum79? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum80(val raw: Int) { - FILLER_MEMBER80(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum80? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum81(val raw: Int) { - FILLER_MEMBER81(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum81? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum82(val raw: Int) { - FILLER_MEMBER82(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum82? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum83(val raw: Int) { - FILLER_MEMBER83(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum83? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum84(val raw: Int) { - FILLER_MEMBER84(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum84? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum85(val raw: Int) { - FILLER_MEMBER85(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum85? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum86(val raw: Int) { - FILLER_MEMBER86(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum86? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum87(val raw: Int) { - FILLER_MEMBER87(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum87? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum88(val raw: Int) { - FILLER_MEMBER88(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum88? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum89(val raw: Int) { - FILLER_MEMBER89(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum89? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum90(val raw: Int) { - FILLER_MEMBER90(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum90? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum91(val raw: Int) { - FILLER_MEMBER91(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum91? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum92(val raw: Int) { - FILLER_MEMBER92(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum92? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum93(val raw: Int) { - FILLER_MEMBER93(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum93? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum94(val raw: Int) { - FILLER_MEMBER94(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum94? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum95(val raw: Int) { - FILLER_MEMBER95(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum95? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum96(val raw: Int) { - FILLER_MEMBER96(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum96? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum97(val raw: Int) { - FILLER_MEMBER97(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum97? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum98(val raw: Int) { - FILLER_MEMBER98(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum98? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum99(val raw: Int) { - FILLER_MEMBER99(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum99? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum100(val raw: Int) { - FILLER_MEMBER100(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum100? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum101(val raw: Int) { - FILLER_MEMBER101(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum101? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum102(val raw: Int) { - FILLER_MEMBER102(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum102? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum103(val raw: Int) { - FILLER_MEMBER103(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum103? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum104(val raw: Int) { - FILLER_MEMBER104(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum104? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum105(val raw: Int) { - FILLER_MEMBER105(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum105? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum106(val raw: Int) { - FILLER_MEMBER106(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum106? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum107(val raw: Int) { - FILLER_MEMBER107(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum107? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum108(val raw: Int) { - FILLER_MEMBER108(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum108? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum109(val raw: Int) { - FILLER_MEMBER109(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum109? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum110(val raw: Int) { - FILLER_MEMBER110(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum110? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum111(val raw: Int) { - FILLER_MEMBER111(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum111? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum112(val raw: Int) { - FILLER_MEMBER112(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum112? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum113(val raw: Int) { - FILLER_MEMBER113(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum113? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum114(val raw: Int) { - FILLER_MEMBER114(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum114? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum115(val raw: Int) { - FILLER_MEMBER115(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum115? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum116(val raw: Int) { - FILLER_MEMBER116(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum116? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum117(val raw: Int) { - FILLER_MEMBER117(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum117? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum118(val raw: Int) { - FILLER_MEMBER118(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum118? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum119(val raw: Int) { - FILLER_MEMBER119(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum119? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum120(val raw: Int) { - FILLER_MEMBER120(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum120? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum121(val raw: Int) { - FILLER_MEMBER121(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum121? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum122(val raw: Int) { - FILLER_MEMBER122(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum122? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum123(val raw: Int) { - FILLER_MEMBER123(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum123? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class FillerEnum124(val raw: Int) { - FILLER_MEMBER124(0); - - companion object { - fun ofRaw(raw: Int): FillerEnum124? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class AnEnum(val raw: Int) { - ONE(0), - TWO(1), - THREE(2), - FORTY_TWO(3), - FOUR_HUNDRED_TWENTY_TWO(4); - - companion object { - fun ofRaw(raw: Int): AnEnum? { - return values().firstOrNull { it.raw == raw } - } - } -} - -enum class AnotherEnum(val raw: Int) { - JUST_IN_CASE(0); - - companion object { - fun ofRaw(raw: Int): AnotherEnum? { - return values().firstOrNull { it.raw == raw } - } - } -} - -/** - * A class containing all supported types. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllTypes( - val aBool: Boolean, - val anInt: Long, - val anInt64: Long, - val aDouble: Double, - val aByteArray: ByteArray, - val a4ByteArray: IntArray, - val a8ByteArray: LongArray, - val aFloatArray: DoubleArray, - val anEnum: AnEnum, - val anotherEnum: AnotherEnum, - val aString: String, - val anObject: Any, - val list: List, - val stringList: List, - val intList: List, - val doubleList: List, - val boolList: List, - val map: Map -) { - companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllTypes { - val aBool = __pigeon_list[0] as Boolean - val anInt = __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long } - val anInt64 = __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long } - val aDouble = __pigeon_list[3] as Double - val aByteArray = __pigeon_list[4] as ByteArray - val a4ByteArray = __pigeon_list[5] as IntArray - val a8ByteArray = __pigeon_list[6] as LongArray - val aFloatArray = __pigeon_list[7] as DoubleArray - val anEnum = __pigeon_list[8] as AnEnum - val anotherEnum = __pigeon_list[9] as AnotherEnum - val aString = __pigeon_list[10] as String - val anObject = __pigeon_list[11] as Any - val list = __pigeon_list[12] as List - val stringList = __pigeon_list[13] as List - val intList = __pigeon_list[14] as List - val doubleList = __pigeon_list[15] as List - val boolList = __pigeon_list[16] as List - val map = __pigeon_list[17] as Map - return AllTypes( - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - map) - } - } - - fun toList(): List { - return listOf( - aBool, - anInt, - anInt64, - aDouble, - aByteArray, - a4ByteArray, - a8ByteArray, - aFloatArray, - anEnum, - anotherEnum, - aString, - anObject, - list, - stringList, - intList, - doubleList, - boolList, - map, - ) - } -} - -/** - * A class containing all supported nullable types. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllNullableTypes( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val nullableNestedList: List?>? = null, - val nullableMapWithAnnotations: Map? = null, - val nullableMapWithObject: Map? = null, - val aNullableEnum: AnEnum? = null, - val anotherNullableEnum: AnotherEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val allNullableTypes: AllNullableTypes? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val nestedClassList: List? = null, - val map: Map? = null -) { - companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllNullableTypes { - val aNullableBool = __pigeon_list[0] as Boolean? - val aNullableInt = - __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableInt64 = - __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = __pigeon_list[3] as Double? - val aNullableByteArray = __pigeon_list[4] as ByteArray? - val aNullable4ByteArray = __pigeon_list[5] as IntArray? - val aNullable8ByteArray = __pigeon_list[6] as LongArray? - val aNullableFloatArray = __pigeon_list[7] as DoubleArray? - val nullableNestedList = __pigeon_list[8] as List?>? - val nullableMapWithAnnotations = __pigeon_list[9] as Map? - val nullableMapWithObject = __pigeon_list[10] as Map? - val aNullableEnum = __pigeon_list[11] as AnEnum? - val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? - val aNullableString = __pigeon_list[13] as String? - val aNullableObject = __pigeon_list[14] - val allNullableTypes = __pigeon_list[15] as AllNullableTypes? - val list = __pigeon_list[16] as List? - val stringList = __pigeon_list[17] as List? - val intList = __pigeon_list[18] as List? - val doubleList = __pigeon_list[19] as List? - val boolList = __pigeon_list[20] as List? - val nestedClassList = __pigeon_list[21] as List? - val map = __pigeon_list[22] as Map? - return AllNullableTypes( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - nestedClassList, - map) - } - } - - fun toList(): List { - return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - allNullableTypes, - list, - stringList, - intList, - doubleList, - boolList, - nestedClassList, - map, - ) - } -} - -/** - * The primary purpose for this class is to ensure coverage of Swift structs with nullable items, as - * the primary [AllNullableTypes] class is being used to test Swift classes. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllNullableTypesWithoutRecursion( - val aNullableBool: Boolean? = null, - val aNullableInt: Long? = null, - val aNullableInt64: Long? = null, - val aNullableDouble: Double? = null, - val aNullableByteArray: ByteArray? = null, - val aNullable4ByteArray: IntArray? = null, - val aNullable8ByteArray: LongArray? = null, - val aNullableFloatArray: DoubleArray? = null, - val nullableNestedList: List?>? = null, - val nullableMapWithAnnotations: Map? = null, - val nullableMapWithObject: Map? = null, - val aNullableEnum: AnEnum? = null, - val anotherNullableEnum: AnotherEnum? = null, - val aNullableString: String? = null, - val aNullableObject: Any? = null, - val list: List? = null, - val stringList: List? = null, - val intList: List? = null, - val doubleList: List? = null, - val boolList: List? = null, - val map: Map? = null -) { - companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllNullableTypesWithoutRecursion { - val aNullableBool = __pigeon_list[0] as Boolean? - val aNullableInt = - __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableInt64 = - __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = __pigeon_list[3] as Double? - val aNullableByteArray = __pigeon_list[4] as ByteArray? - val aNullable4ByteArray = __pigeon_list[5] as IntArray? - val aNullable8ByteArray = __pigeon_list[6] as LongArray? - val aNullableFloatArray = __pigeon_list[7] as DoubleArray? - val nullableNestedList = __pigeon_list[8] as List?>? - val nullableMapWithAnnotations = __pigeon_list[9] as Map? - val nullableMapWithObject = __pigeon_list[10] as Map? - val aNullableEnum = __pigeon_list[11] as AnEnum? - val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? - val aNullableString = __pigeon_list[13] as String? - val aNullableObject = __pigeon_list[14] - val list = __pigeon_list[15] as List? - val stringList = __pigeon_list[16] as List? - val intList = __pigeon_list[17] as List? - val doubleList = __pigeon_list[18] as List? - val boolList = __pigeon_list[19] as List? - val map = __pigeon_list[20] as Map? - return AllNullableTypesWithoutRecursion( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - map) - } - } - - fun toList(): List { - return listOf( - aNullableBool, - aNullableInt, - aNullableInt64, - aNullableDouble, - aNullableByteArray, - aNullable4ByteArray, - aNullable8ByteArray, - aNullableFloatArray, - nullableNestedList, - nullableMapWithAnnotations, - nullableMapWithObject, - aNullableEnum, - anotherNullableEnum, - aNullableString, - aNullableObject, - list, - stringList, - intList, - doubleList, - boolList, - map, - ) - } -} - -/** - * A class for testing nested class handling. - * - * This is needed to test nested nullable and non-nullable classes, `AllNullableTypes` is - * non-nullable here as it is easier to instantiate than `AllTypes` when testing doesn't require - * both (ie. testing null classes). - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class AllClassesWrapper( - val allNullableTypes: AllNullableTypes, - val allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = null, - val allTypes: AllTypes? = null -) { - companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllClassesWrapper { - val allNullableTypes = __pigeon_list[0] as AllNullableTypes - val allNullableTypesWithoutRecursion = __pigeon_list[1] as AllNullableTypesWithoutRecursion? - val allTypes = __pigeon_list[2] as AllTypes? - return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes) - } - } - - fun toList(): List { - return listOf( - allNullableTypes, - allNullableTypesWithoutRecursion, - allTypes, - ) - } -} - -/** - * A data class containing a List, used in unit tests. - * - * Generated class from Pigeon that represents data sent in messages. - */ -data class TestMessage(val testList: List? = null) { - companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): TestMessage { - val testList = __pigeon_list[0] as List? - return TestMessage(testList) - } - } - - fun toList(): List { - return listOf( - testList, - ) - } -} - -@Suppress("ClassName") -data class CoreTests__pigeon_CodecOverflow(val type: Int, val wrapped: Any? = null) { - fun toList(): List { - return listOf( - type, - wrapped, - ) - } - - companion object { - @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): Any? { - val wrapper = - CoreTests__pigeon_CodecOverflow( - type = __pigeon_list[0] as Int, - wrapped = __pigeon_list[1], - ) - return wrapper.unwrap() - } - } - - fun unwrap(): Any? { - if (wrapped == null) { - return null - } - - when (type) { - 0 -> { - return AnotherEnum.ofRaw(wrapped as Int) - } - 1 -> { - return AllTypes.fromList(wrapped as List) - } - 2 -> { - return AllNullableTypes.fromList(wrapped as List) - } - 3 -> { - return AllNullableTypesWithoutRecursion.fromList(wrapped as List) - } - 4 -> { - return AllClassesWrapper.fromList(wrapped as List) - } - 5 -> { - return TestMessage.fromList(wrapped as List) - } - } - return null - } -} - -private object CoreTestsPigeonCodec : StandardMessageCodec() { - override fun readValueOfType(type: Byte, buffer: ByteBuffer): Any? { - return when (type) { - 129.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum0.ofRaw(it) } - } - 130.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum1.ofRaw(it) } - } - 131.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum2.ofRaw(it) } - } - 132.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum3.ofRaw(it) } - } - 133.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum4.ofRaw(it) } - } - 134.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum5.ofRaw(it) } - } - 135.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum6.ofRaw(it) } - } - 136.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum7.ofRaw(it) } - } - 137.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum8.ofRaw(it) } - } - 138.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum9.ofRaw(it) } - } - 139.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum10.ofRaw(it) } - } - 140.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum11.ofRaw(it) } - } - 141.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum12.ofRaw(it) } - } - 142.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum13.ofRaw(it) } - } - 143.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum14.ofRaw(it) } - } - 144.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum15.ofRaw(it) } - } - 145.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum16.ofRaw(it) } - } - 146.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum17.ofRaw(it) } - } - 147.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum18.ofRaw(it) } - } - 148.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum19.ofRaw(it) } - } - 149.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum20.ofRaw(it) } - } - 150.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum21.ofRaw(it) } - } - 151.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum22.ofRaw(it) } - } - 152.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum23.ofRaw(it) } - } - 153.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum24.ofRaw(it) } - } - 154.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum25.ofRaw(it) } - } - 155.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum26.ofRaw(it) } - } - 156.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum27.ofRaw(it) } - } - 157.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum28.ofRaw(it) } - } - 158.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum29.ofRaw(it) } - } - 159.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum30.ofRaw(it) } - } - 160.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum31.ofRaw(it) } - } - 161.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum32.ofRaw(it) } - } - 162.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum33.ofRaw(it) } - } - 163.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum34.ofRaw(it) } - } - 164.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum35.ofRaw(it) } - } - 165.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum36.ofRaw(it) } - } - 166.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum37.ofRaw(it) } - } - 167.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum38.ofRaw(it) } - } - 168.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum39.ofRaw(it) } - } - 169.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum40.ofRaw(it) } - } - 170.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum41.ofRaw(it) } - } - 171.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum42.ofRaw(it) } - } - 172.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum43.ofRaw(it) } - } - 173.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum44.ofRaw(it) } - } - 174.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum45.ofRaw(it) } - } - 175.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum46.ofRaw(it) } - } - 176.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum47.ofRaw(it) } - } - 177.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum48.ofRaw(it) } - } - 178.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum49.ofRaw(it) } - } - 179.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum50.ofRaw(it) } - } - 180.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum51.ofRaw(it) } - } - 181.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum52.ofRaw(it) } - } - 182.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum53.ofRaw(it) } - } - 183.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum54.ofRaw(it) } - } - 184.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum55.ofRaw(it) } - } - 185.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum56.ofRaw(it) } - } - 186.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum57.ofRaw(it) } - } - 187.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum58.ofRaw(it) } - } - 188.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum59.ofRaw(it) } - } - 189.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum60.ofRaw(it) } - } - 190.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum61.ofRaw(it) } - } - 191.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum62.ofRaw(it) } - } - 192.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum63.ofRaw(it) } - } - 193.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum64.ofRaw(it) } - } - 194.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum65.ofRaw(it) } - } - 195.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum66.ofRaw(it) } - } - 196.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum67.ofRaw(it) } - } - 197.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum68.ofRaw(it) } - } - 198.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum69.ofRaw(it) } - } - 199.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum70.ofRaw(it) } - } - 200.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum71.ofRaw(it) } - } - 201.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum72.ofRaw(it) } - } - 202.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum73.ofRaw(it) } - } - 203.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum74.ofRaw(it) } - } - 204.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum75.ofRaw(it) } - } - 205.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum76.ofRaw(it) } - } - 206.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum77.ofRaw(it) } - } - 207.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum78.ofRaw(it) } - } - 208.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum79.ofRaw(it) } - } - 209.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum80.ofRaw(it) } - } - 210.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum81.ofRaw(it) } - } - 211.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum82.ofRaw(it) } - } - 212.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum83.ofRaw(it) } - } - 213.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum84.ofRaw(it) } - } - 214.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum85.ofRaw(it) } - } - 215.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum86.ofRaw(it) } - } - 216.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum87.ofRaw(it) } - } - 217.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum88.ofRaw(it) } - } - 218.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum89.ofRaw(it) } - } - 219.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum90.ofRaw(it) } - } - 220.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum91.ofRaw(it) } - } - 221.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum92.ofRaw(it) } - } - 222.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum93.ofRaw(it) } - } - 223.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum94.ofRaw(it) } - } - 224.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum95.ofRaw(it) } - } - 225.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum96.ofRaw(it) } - } - 226.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum97.ofRaw(it) } - } - 227.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum98.ofRaw(it) } - } - 228.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum99.ofRaw(it) } - } - 229.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum100.ofRaw(it) } - } - 230.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum101.ofRaw(it) } - } - 231.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum102.ofRaw(it) } - } - 232.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum103.ofRaw(it) } - } - 233.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum104.ofRaw(it) } - } - 234.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum105.ofRaw(it) } - } - 235.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum106.ofRaw(it) } - } - 236.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum107.ofRaw(it) } - } - 237.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum108.ofRaw(it) } - } - 238.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum109.ofRaw(it) } - } - 239.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum110.ofRaw(it) } - } - 240.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum111.ofRaw(it) } - } - 241.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum112.ofRaw(it) } - } - 242.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum113.ofRaw(it) } - } - 243.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum114.ofRaw(it) } - } - 244.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum115.ofRaw(it) } - } - 245.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum116.ofRaw(it) } - } - 246.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum117.ofRaw(it) } - } - 247.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum118.ofRaw(it) } - } - 248.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum119.ofRaw(it) } - } - 249.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum120.ofRaw(it) } - } - 250.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum121.ofRaw(it) } - } - 251.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum122.ofRaw(it) } - } - 252.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum123.ofRaw(it) } - } - 253.toByte() -> { - return (readValue(buffer) as Int?)?.let { FillerEnum124.ofRaw(it) } - } - 254.toByte() -> { - return (readValue(buffer) as Int?)?.let { AnEnum.ofRaw(it) } - } - 255.toByte() -> { - return (readValue(buffer) as? List)?.let { - CoreTests__pigeon_CodecOverflow.fromList(it) - } - } - else -> super.readValueOfType(type, buffer) - } - } - - override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { - when (value) { - is FillerEnum0 -> { - stream.write(129) - writeValue(stream, value.raw) - } - is FillerEnum1 -> { - stream.write(130) - writeValue(stream, value.raw) - } - is FillerEnum2 -> { - stream.write(131) - writeValue(stream, value.raw) - } - is FillerEnum3 -> { - stream.write(132) - writeValue(stream, value.raw) - } - is FillerEnum4 -> { - stream.write(133) - writeValue(stream, value.raw) - } - is FillerEnum5 -> { - stream.write(134) - writeValue(stream, value.raw) - } - is FillerEnum6 -> { - stream.write(135) - writeValue(stream, value.raw) - } - is FillerEnum7 -> { - stream.write(136) - writeValue(stream, value.raw) - } - is FillerEnum8 -> { - stream.write(137) - writeValue(stream, value.raw) - } - is FillerEnum9 -> { - stream.write(138) - writeValue(stream, value.raw) - } - is FillerEnum10 -> { - stream.write(139) - writeValue(stream, value.raw) - } - is FillerEnum11 -> { - stream.write(140) - writeValue(stream, value.raw) - } - is FillerEnum12 -> { - stream.write(141) - writeValue(stream, value.raw) - } - is FillerEnum13 -> { - stream.write(142) - writeValue(stream, value.raw) - } - is FillerEnum14 -> { - stream.write(143) - writeValue(stream, value.raw) - } - is FillerEnum15 -> { - stream.write(144) - writeValue(stream, value.raw) - } - is FillerEnum16 -> { - stream.write(145) - writeValue(stream, value.raw) - } - is FillerEnum17 -> { - stream.write(146) - writeValue(stream, value.raw) - } - is FillerEnum18 -> { - stream.write(147) - writeValue(stream, value.raw) - } - is FillerEnum19 -> { - stream.write(148) - writeValue(stream, value.raw) - } - is FillerEnum20 -> { - stream.write(149) - writeValue(stream, value.raw) - } - is FillerEnum21 -> { - stream.write(150) - writeValue(stream, value.raw) - } - is FillerEnum22 -> { - stream.write(151) - writeValue(stream, value.raw) - } - is FillerEnum23 -> { - stream.write(152) - writeValue(stream, value.raw) - } - is FillerEnum24 -> { - stream.write(153) - writeValue(stream, value.raw) - } - is FillerEnum25 -> { - stream.write(154) - writeValue(stream, value.raw) - } - is FillerEnum26 -> { - stream.write(155) - writeValue(stream, value.raw) - } - is FillerEnum27 -> { - stream.write(156) - writeValue(stream, value.raw) - } - is FillerEnum28 -> { - stream.write(157) - writeValue(stream, value.raw) - } - is FillerEnum29 -> { - stream.write(158) - writeValue(stream, value.raw) - } - is FillerEnum30 -> { - stream.write(159) - writeValue(stream, value.raw) - } - is FillerEnum31 -> { - stream.write(160) - writeValue(stream, value.raw) - } - is FillerEnum32 -> { - stream.write(161) - writeValue(stream, value.raw) - } - is FillerEnum33 -> { - stream.write(162) - writeValue(stream, value.raw) - } - is FillerEnum34 -> { - stream.write(163) - writeValue(stream, value.raw) - } - is FillerEnum35 -> { - stream.write(164) - writeValue(stream, value.raw) - } - is FillerEnum36 -> { - stream.write(165) - writeValue(stream, value.raw) - } - is FillerEnum37 -> { - stream.write(166) - writeValue(stream, value.raw) - } - is FillerEnum38 -> { - stream.write(167) - writeValue(stream, value.raw) - } - is FillerEnum39 -> { - stream.write(168) - writeValue(stream, value.raw) - } - is FillerEnum40 -> { - stream.write(169) - writeValue(stream, value.raw) - } - is FillerEnum41 -> { - stream.write(170) - writeValue(stream, value.raw) - } - is FillerEnum42 -> { - stream.write(171) - writeValue(stream, value.raw) - } - is FillerEnum43 -> { - stream.write(172) - writeValue(stream, value.raw) - } - is FillerEnum44 -> { - stream.write(173) - writeValue(stream, value.raw) - } - is FillerEnum45 -> { - stream.write(174) - writeValue(stream, value.raw) - } - is FillerEnum46 -> { - stream.write(175) - writeValue(stream, value.raw) - } - is FillerEnum47 -> { - stream.write(176) - writeValue(stream, value.raw) - } - is FillerEnum48 -> { - stream.write(177) - writeValue(stream, value.raw) - } - is FillerEnum49 -> { - stream.write(178) - writeValue(stream, value.raw) - } - is FillerEnum50 -> { - stream.write(179) - writeValue(stream, value.raw) - } - is FillerEnum51 -> { - stream.write(180) - writeValue(stream, value.raw) - } - is FillerEnum52 -> { - stream.write(181) - writeValue(stream, value.raw) - } - is FillerEnum53 -> { - stream.write(182) - writeValue(stream, value.raw) - } - is FillerEnum54 -> { - stream.write(183) - writeValue(stream, value.raw) - } - is FillerEnum55 -> { - stream.write(184) - writeValue(stream, value.raw) - } - is FillerEnum56 -> { - stream.write(185) - writeValue(stream, value.raw) - } - is FillerEnum57 -> { - stream.write(186) - writeValue(stream, value.raw) - } - is FillerEnum58 -> { - stream.write(187) - writeValue(stream, value.raw) - } - is FillerEnum59 -> { - stream.write(188) - writeValue(stream, value.raw) - } - is FillerEnum60 -> { - stream.write(189) - writeValue(stream, value.raw) - } - is FillerEnum61 -> { - stream.write(190) - writeValue(stream, value.raw) - } - is FillerEnum62 -> { - stream.write(191) - writeValue(stream, value.raw) - } - is FillerEnum63 -> { - stream.write(192) - writeValue(stream, value.raw) - } - is FillerEnum64 -> { - stream.write(193) - writeValue(stream, value.raw) - } - is FillerEnum65 -> { - stream.write(194) - writeValue(stream, value.raw) - } - is FillerEnum66 -> { - stream.write(195) - writeValue(stream, value.raw) - } - is FillerEnum67 -> { - stream.write(196) - writeValue(stream, value.raw) - } - is FillerEnum68 -> { - stream.write(197) - writeValue(stream, value.raw) - } - is FillerEnum69 -> { - stream.write(198) - writeValue(stream, value.raw) - } - is FillerEnum70 -> { - stream.write(199) - writeValue(stream, value.raw) - } - is FillerEnum71 -> { - stream.write(200) - writeValue(stream, value.raw) - } - is FillerEnum72 -> { - stream.write(201) - writeValue(stream, value.raw) - } - is FillerEnum73 -> { - stream.write(202) - writeValue(stream, value.raw) - } - is FillerEnum74 -> { - stream.write(203) - writeValue(stream, value.raw) - } - is FillerEnum75 -> { - stream.write(204) - writeValue(stream, value.raw) - } - is FillerEnum76 -> { - stream.write(205) - writeValue(stream, value.raw) - } - is FillerEnum77 -> { - stream.write(206) - writeValue(stream, value.raw) - } - is FillerEnum78 -> { - stream.write(207) - writeValue(stream, value.raw) - } - is FillerEnum79 -> { - stream.write(208) - writeValue(stream, value.raw) - } - is FillerEnum80 -> { - stream.write(209) - writeValue(stream, value.raw) - } - is FillerEnum81 -> { - stream.write(210) - writeValue(stream, value.raw) - } - is FillerEnum82 -> { - stream.write(211) - writeValue(stream, value.raw) - } - is FillerEnum83 -> { - stream.write(212) - writeValue(stream, value.raw) - } - is FillerEnum84 -> { - stream.write(213) - writeValue(stream, value.raw) - } - is FillerEnum85 -> { - stream.write(214) - writeValue(stream, value.raw) - } - is FillerEnum86 -> { - stream.write(215) - writeValue(stream, value.raw) - } - is FillerEnum87 -> { - stream.write(216) - writeValue(stream, value.raw) - } - is FillerEnum88 -> { - stream.write(217) - writeValue(stream, value.raw) - } - is FillerEnum89 -> { - stream.write(218) - writeValue(stream, value.raw) - } - is FillerEnum90 -> { - stream.write(219) - writeValue(stream, value.raw) - } - is FillerEnum91 -> { - stream.write(220) - writeValue(stream, value.raw) - } - is FillerEnum92 -> { - stream.write(221) - writeValue(stream, value.raw) - } - is FillerEnum93 -> { - stream.write(222) - writeValue(stream, value.raw) - } - is FillerEnum94 -> { - stream.write(223) - writeValue(stream, value.raw) - } - is FillerEnum95 -> { - stream.write(224) - writeValue(stream, value.raw) - } - is FillerEnum96 -> { - stream.write(225) - writeValue(stream, value.raw) - } - is FillerEnum97 -> { - stream.write(226) - writeValue(stream, value.raw) - } - is FillerEnum98 -> { - stream.write(227) - writeValue(stream, value.raw) - } - is FillerEnum99 -> { - stream.write(228) - writeValue(stream, value.raw) - } - is FillerEnum100 -> { - stream.write(229) - writeValue(stream, value.raw) - } - is FillerEnum101 -> { - stream.write(230) - writeValue(stream, value.raw) - } - is FillerEnum102 -> { - stream.write(231) - writeValue(stream, value.raw) - } - is FillerEnum103 -> { - stream.write(232) - writeValue(stream, value.raw) - } - is FillerEnum104 -> { - stream.write(233) - writeValue(stream, value.raw) - } - is FillerEnum105 -> { - stream.write(234) - writeValue(stream, value.raw) - } - is FillerEnum106 -> { - stream.write(235) - writeValue(stream, value.raw) - } - is FillerEnum107 -> { - stream.write(236) - writeValue(stream, value.raw) - } - is FillerEnum108 -> { - stream.write(237) - writeValue(stream, value.raw) - } - is FillerEnum109 -> { - stream.write(238) - writeValue(stream, value.raw) - } - is FillerEnum110 -> { - stream.write(239) - writeValue(stream, value.raw) - } - is FillerEnum111 -> { - stream.write(240) - writeValue(stream, value.raw) - } - is FillerEnum112 -> { - stream.write(241) - writeValue(stream, value.raw) - } - is FillerEnum113 -> { - stream.write(242) - writeValue(stream, value.raw) - } - is FillerEnum114 -> { - stream.write(243) - writeValue(stream, value.raw) - } - is FillerEnum115 -> { - stream.write(244) - writeValue(stream, value.raw) - } - is FillerEnum116 -> { - stream.write(245) - writeValue(stream, value.raw) - } - is FillerEnum117 -> { - stream.write(246) - writeValue(stream, value.raw) - } - is FillerEnum118 -> { - stream.write(247) - writeValue(stream, value.raw) - } - is FillerEnum119 -> { - stream.write(248) - writeValue(stream, value.raw) - } - is FillerEnum120 -> { - stream.write(249) - writeValue(stream, value.raw) - } - is FillerEnum121 -> { - stream.write(250) - writeValue(stream, value.raw) - } - is FillerEnum122 -> { - stream.write(251) - writeValue(stream, value.raw) - } - is FillerEnum123 -> { - stream.write(252) - writeValue(stream, value.raw) - } - is FillerEnum124 -> { - stream.write(253) - writeValue(stream, value.raw) - } + override fun writeValue(stream: ByteArrayOutputStream, value: Any?) { + when (value) { is AnEnum -> { - stream.write(254) + stream.write(129) writeValue(stream, value.raw) } is AnotherEnum -> { - val wrap = CoreTests__pigeon_CodecOverflow(type = 0, wrapped = value.raw) - stream.write(255) - writeValue(stream, wrap.toList()) + stream.write(130) + writeValue(stream, value.raw) } is AllTypes -> { - val wrap = CoreTests__pigeon_CodecOverflow(type = 1, wrapped = value.toList()) - stream.write(255) - writeValue(stream, wrap.toList()) + stream.write(131) + writeValue(stream, value.toList()) } is AllNullableTypes -> { - val wrap = CoreTests__pigeon_CodecOverflow(type = 2, wrapped = value.toList()) - stream.write(255) - writeValue(stream, wrap.toList()) + stream.write(132) + writeValue(stream, value.toList()) } is AllNullableTypesWithoutRecursion -> { - val wrap = CoreTests__pigeon_CodecOverflow(type = 3, wrapped = value.toList()) - stream.write(255) - writeValue(stream, wrap.toList()) + stream.write(133) + writeValue(stream, value.toList()) } is AllClassesWrapper -> { - val wrap = CoreTests__pigeon_CodecOverflow(type = 4, wrapped = value.toList()) - stream.write(255) - writeValue(stream, wrap.toList()) + stream.write(134) + writeValue(stream, value.toList()) } is TestMessage -> { - val wrap = CoreTests__pigeon_CodecOverflow(type = 5, wrapped = value.toList()) - stream.write(255) - writeValue(stream, wrap.toList()) + stream.write(135) + writeValue(stream, value.toList()) } else -> super.writeValue(stream, value) } diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index 5b350e29cea..1347218e0d9 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -74,506 +74,6 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } -enum FillerEnum0: Int { - case fillerMember0 = 0 -} - -enum FillerEnum1: Int { - case fillerMember1 = 0 -} - -enum FillerEnum2: Int { - case fillerMember2 = 0 -} - -enum FillerEnum3: Int { - case fillerMember3 = 0 -} - -enum FillerEnum4: Int { - case fillerMember4 = 0 -} - -enum FillerEnum5: Int { - case fillerMember5 = 0 -} - -enum FillerEnum6: Int { - case fillerMember6 = 0 -} - -enum FillerEnum7: Int { - case fillerMember7 = 0 -} - -enum FillerEnum8: Int { - case fillerMember8 = 0 -} - -enum FillerEnum9: Int { - case fillerMember9 = 0 -} - -enum FillerEnum10: Int { - case fillerMember10 = 0 -} - -enum FillerEnum11: Int { - case fillerMember11 = 0 -} - -enum FillerEnum12: Int { - case fillerMember12 = 0 -} - -enum FillerEnum13: Int { - case fillerMember13 = 0 -} - -enum FillerEnum14: Int { - case fillerMember14 = 0 -} - -enum FillerEnum15: Int { - case fillerMember15 = 0 -} - -enum FillerEnum16: Int { - case fillerMember16 = 0 -} - -enum FillerEnum17: Int { - case fillerMember17 = 0 -} - -enum FillerEnum18: Int { - case fillerMember18 = 0 -} - -enum FillerEnum19: Int { - case fillerMember19 = 0 -} - -enum FillerEnum20: Int { - case fillerMember20 = 0 -} - -enum FillerEnum21: Int { - case fillerMember21 = 0 -} - -enum FillerEnum22: Int { - case fillerMember22 = 0 -} - -enum FillerEnum23: Int { - case fillerMember23 = 0 -} - -enum FillerEnum24: Int { - case fillerMember24 = 0 -} - -enum FillerEnum25: Int { - case fillerMember25 = 0 -} - -enum FillerEnum26: Int { - case fillerMember26 = 0 -} - -enum FillerEnum27: Int { - case fillerMember27 = 0 -} - -enum FillerEnum28: Int { - case fillerMember28 = 0 -} - -enum FillerEnum29: Int { - case fillerMember29 = 0 -} - -enum FillerEnum30: Int { - case fillerMember30 = 0 -} - -enum FillerEnum31: Int { - case fillerMember31 = 0 -} - -enum FillerEnum32: Int { - case fillerMember32 = 0 -} - -enum FillerEnum33: Int { - case fillerMember33 = 0 -} - -enum FillerEnum34: Int { - case fillerMember34 = 0 -} - -enum FillerEnum35: Int { - case fillerMember35 = 0 -} - -enum FillerEnum36: Int { - case fillerMember36 = 0 -} - -enum FillerEnum37: Int { - case fillerMember37 = 0 -} - -enum FillerEnum38: Int { - case fillerMember38 = 0 -} - -enum FillerEnum39: Int { - case fillerMember39 = 0 -} - -enum FillerEnum40: Int { - case fillerMember40 = 0 -} - -enum FillerEnum41: Int { - case fillerMember41 = 0 -} - -enum FillerEnum42: Int { - case fillerMember42 = 0 -} - -enum FillerEnum43: Int { - case fillerMember43 = 0 -} - -enum FillerEnum44: Int { - case fillerMember44 = 0 -} - -enum FillerEnum45: Int { - case fillerMember45 = 0 -} - -enum FillerEnum46: Int { - case fillerMember46 = 0 -} - -enum FillerEnum47: Int { - case fillerMember47 = 0 -} - -enum FillerEnum48: Int { - case fillerMember48 = 0 -} - -enum FillerEnum49: Int { - case fillerMember49 = 0 -} - -enum FillerEnum50: Int { - case fillerMember50 = 0 -} - -enum FillerEnum51: Int { - case fillerMember51 = 0 -} - -enum FillerEnum52: Int { - case fillerMember52 = 0 -} - -enum FillerEnum53: Int { - case fillerMember53 = 0 -} - -enum FillerEnum54: Int { - case fillerMember54 = 0 -} - -enum FillerEnum55: Int { - case fillerMember55 = 0 -} - -enum FillerEnum56: Int { - case fillerMember56 = 0 -} - -enum FillerEnum57: Int { - case fillerMember57 = 0 -} - -enum FillerEnum58: Int { - case fillerMember58 = 0 -} - -enum FillerEnum59: Int { - case fillerMember59 = 0 -} - -enum FillerEnum60: Int { - case fillerMember60 = 0 -} - -enum FillerEnum61: Int { - case fillerMember61 = 0 -} - -enum FillerEnum62: Int { - case fillerMember62 = 0 -} - -enum FillerEnum63: Int { - case fillerMember63 = 0 -} - -enum FillerEnum64: Int { - case fillerMember64 = 0 -} - -enum FillerEnum65: Int { - case fillerMember65 = 0 -} - -enum FillerEnum66: Int { - case fillerMember66 = 0 -} - -enum FillerEnum67: Int { - case fillerMember67 = 0 -} - -enum FillerEnum68: Int { - case fillerMember68 = 0 -} - -enum FillerEnum69: Int { - case fillerMember69 = 0 -} - -enum FillerEnum70: Int { - case fillerMember70 = 0 -} - -enum FillerEnum71: Int { - case fillerMember71 = 0 -} - -enum FillerEnum72: Int { - case fillerMember72 = 0 -} - -enum FillerEnum73: Int { - case fillerMember73 = 0 -} - -enum FillerEnum74: Int { - case fillerMember74 = 0 -} - -enum FillerEnum75: Int { - case fillerMember75 = 0 -} - -enum FillerEnum76: Int { - case fillerMember76 = 0 -} - -enum FillerEnum77: Int { - case fillerMember77 = 0 -} - -enum FillerEnum78: Int { - case fillerMember78 = 0 -} - -enum FillerEnum79: Int { - case fillerMember79 = 0 -} - -enum FillerEnum80: Int { - case fillerMember80 = 0 -} - -enum FillerEnum81: Int { - case fillerMember81 = 0 -} - -enum FillerEnum82: Int { - case fillerMember82 = 0 -} - -enum FillerEnum83: Int { - case fillerMember83 = 0 -} - -enum FillerEnum84: Int { - case fillerMember84 = 0 -} - -enum FillerEnum85: Int { - case fillerMember85 = 0 -} - -enum FillerEnum86: Int { - case fillerMember86 = 0 -} - -enum FillerEnum87: Int { - case fillerMember87 = 0 -} - -enum FillerEnum88: Int { - case fillerMember88 = 0 -} - -enum FillerEnum89: Int { - case fillerMember89 = 0 -} - -enum FillerEnum90: Int { - case fillerMember90 = 0 -} - -enum FillerEnum91: Int { - case fillerMember91 = 0 -} - -enum FillerEnum92: Int { - case fillerMember92 = 0 -} - -enum FillerEnum93: Int { - case fillerMember93 = 0 -} - -enum FillerEnum94: Int { - case fillerMember94 = 0 -} - -enum FillerEnum95: Int { - case fillerMember95 = 0 -} - -enum FillerEnum96: Int { - case fillerMember96 = 0 -} - -enum FillerEnum97: Int { - case fillerMember97 = 0 -} - -enum FillerEnum98: Int { - case fillerMember98 = 0 -} - -enum FillerEnum99: Int { - case fillerMember99 = 0 -} - -enum FillerEnum100: Int { - case fillerMember100 = 0 -} - -enum FillerEnum101: Int { - case fillerMember101 = 0 -} - -enum FillerEnum102: Int { - case fillerMember102 = 0 -} - -enum FillerEnum103: Int { - case fillerMember103 = 0 -} - -enum FillerEnum104: Int { - case fillerMember104 = 0 -} - -enum FillerEnum105: Int { - case fillerMember105 = 0 -} - -enum FillerEnum106: Int { - case fillerMember106 = 0 -} - -enum FillerEnum107: Int { - case fillerMember107 = 0 -} - -enum FillerEnum108: Int { - case fillerMember108 = 0 -} - -enum FillerEnum109: Int { - case fillerMember109 = 0 -} - -enum FillerEnum110: Int { - case fillerMember110 = 0 -} - -enum FillerEnum111: Int { - case fillerMember111 = 0 -} - -enum FillerEnum112: Int { - case fillerMember112 = 0 -} - -enum FillerEnum113: Int { - case fillerMember113 = 0 -} - -enum FillerEnum114: Int { - case fillerMember114 = 0 -} - -enum FillerEnum115: Int { - case fillerMember115 = 0 -} - -enum FillerEnum116: Int { - case fillerMember116 = 0 -} - -enum FillerEnum117: Int { - case fillerMember117 = 0 -} - -enum FillerEnum118: Int { - case fillerMember118 = 0 -} - -enum FillerEnum119: Int { - case fillerMember119 = 0 -} - -enum FillerEnum120: Int { - case fillerMember120 = 0 -} - -enum FillerEnum121: Int { - case fillerMember121 = 0 -} - -enum FillerEnum122: Int { - case fillerMember122 = 0 -} - -enum FillerEnum123: Int { - case fillerMember123 = 0 -} - -enum FillerEnum124: Int { - case fillerMember124 = 0 -} - enum AnEnum: Int { case one = 0 case two = 1 @@ -1009,941 +509,33 @@ struct TestMessage { } } -// swift-format-ignore: TypeNamesShouldBeCapitalized -struct __pigeon_CodecOverflow { - var type: Int - var wrapped: Any? = nil - - func toList() -> [Any?] { - return [ - type, - wrapped, - ] - } - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> Any? { - let type = __pigeon_list[0] as! Int - let wrapped: Any? = __pigeon_list[1] - - let wrapper = __pigeon_CodecOverflow( - type: type, - wrapped: wrapped - ) - - return wrapper.unwrap() - } - - func unwrap() -> Any? { - if wrapped == nil { - return nil - } - - switch type { - case 0: - return AnotherEnum(rawValue: wrapped as! Int) - case 1: - return AllTypes.fromList(wrapped as! [Any?]) - case 2: - return AllNullableTypes.fromList(wrapped as! [Any?]) - case 3: - return AllNullableTypesWithoutRecursion.fromList(wrapped as! [Any?]) - case 4: - return AllClassesWrapper.fromList(wrapped as! [Any?]) - case 5: - return TestMessage.fromList(wrapped as! [Any?]) - default: - return nil - } - } -} - -private class CoreTestsPigeonCodecReader: FlutterStandardReader { - override func readValue(ofType type: UInt8) -> Any? { - switch type { - case 129: - var enumResult: FillerEnum0? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum0(rawValue: enumResultAsInt) - } - return enumResult - case 130: - var enumResult: FillerEnum1? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum1(rawValue: enumResultAsInt) - } - return enumResult - case 131: - var enumResult: FillerEnum2? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum2(rawValue: enumResultAsInt) - } - return enumResult - case 132: - var enumResult: FillerEnum3? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum3(rawValue: enumResultAsInt) - } - return enumResult - case 133: - var enumResult: FillerEnum4? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum4(rawValue: enumResultAsInt) - } - return enumResult - case 134: - var enumResult: FillerEnum5? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum5(rawValue: enumResultAsInt) - } - return enumResult - case 135: - var enumResult: FillerEnum6? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum6(rawValue: enumResultAsInt) - } - return enumResult - case 136: - var enumResult: FillerEnum7? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum7(rawValue: enumResultAsInt) - } - return enumResult - case 137: - var enumResult: FillerEnum8? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum8(rawValue: enumResultAsInt) - } - return enumResult - case 138: - var enumResult: FillerEnum9? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum9(rawValue: enumResultAsInt) - } - return enumResult - case 139: - var enumResult: FillerEnum10? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum10(rawValue: enumResultAsInt) - } - return enumResult - case 140: - var enumResult: FillerEnum11? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum11(rawValue: enumResultAsInt) - } - return enumResult - case 141: - var enumResult: FillerEnum12? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum12(rawValue: enumResultAsInt) - } - return enumResult - case 142: - var enumResult: FillerEnum13? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum13(rawValue: enumResultAsInt) - } - return enumResult - case 143: - var enumResult: FillerEnum14? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum14(rawValue: enumResultAsInt) - } - return enumResult - case 144: - var enumResult: FillerEnum15? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum15(rawValue: enumResultAsInt) - } - return enumResult - case 145: - var enumResult: FillerEnum16? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum16(rawValue: enumResultAsInt) - } - return enumResult - case 146: - var enumResult: FillerEnum17? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum17(rawValue: enumResultAsInt) - } - return enumResult - case 147: - var enumResult: FillerEnum18? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum18(rawValue: enumResultAsInt) - } - return enumResult - case 148: - var enumResult: FillerEnum19? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum19(rawValue: enumResultAsInt) - } - return enumResult - case 149: - var enumResult: FillerEnum20? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum20(rawValue: enumResultAsInt) - } - return enumResult - case 150: - var enumResult: FillerEnum21? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum21(rawValue: enumResultAsInt) - } - return enumResult - case 151: - var enumResult: FillerEnum22? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum22(rawValue: enumResultAsInt) - } - return enumResult - case 152: - var enumResult: FillerEnum23? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum23(rawValue: enumResultAsInt) - } - return enumResult - case 153: - var enumResult: FillerEnum24? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum24(rawValue: enumResultAsInt) - } - return enumResult - case 154: - var enumResult: FillerEnum25? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum25(rawValue: enumResultAsInt) - } - return enumResult - case 155: - var enumResult: FillerEnum26? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum26(rawValue: enumResultAsInt) - } - return enumResult - case 156: - var enumResult: FillerEnum27? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum27(rawValue: enumResultAsInt) - } - return enumResult - case 157: - var enumResult: FillerEnum28? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum28(rawValue: enumResultAsInt) - } - return enumResult - case 158: - var enumResult: FillerEnum29? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum29(rawValue: enumResultAsInt) - } - return enumResult - case 159: - var enumResult: FillerEnum30? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum30(rawValue: enumResultAsInt) - } - return enumResult - case 160: - var enumResult: FillerEnum31? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum31(rawValue: enumResultAsInt) - } - return enumResult - case 161: - var enumResult: FillerEnum32? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum32(rawValue: enumResultAsInt) - } - return enumResult - case 162: - var enumResult: FillerEnum33? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum33(rawValue: enumResultAsInt) - } - return enumResult - case 163: - var enumResult: FillerEnum34? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum34(rawValue: enumResultAsInt) - } - return enumResult - case 164: - var enumResult: FillerEnum35? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum35(rawValue: enumResultAsInt) - } - return enumResult - case 165: - var enumResult: FillerEnum36? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum36(rawValue: enumResultAsInt) - } - return enumResult - case 166: - var enumResult: FillerEnum37? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum37(rawValue: enumResultAsInt) - } - return enumResult - case 167: - var enumResult: FillerEnum38? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum38(rawValue: enumResultAsInt) - } - return enumResult - case 168: - var enumResult: FillerEnum39? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum39(rawValue: enumResultAsInt) - } - return enumResult - case 169: - var enumResult: FillerEnum40? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum40(rawValue: enumResultAsInt) - } - return enumResult - case 170: - var enumResult: FillerEnum41? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum41(rawValue: enumResultAsInt) - } - return enumResult - case 171: - var enumResult: FillerEnum42? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum42(rawValue: enumResultAsInt) - } - return enumResult - case 172: - var enumResult: FillerEnum43? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum43(rawValue: enumResultAsInt) - } - return enumResult - case 173: - var enumResult: FillerEnum44? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum44(rawValue: enumResultAsInt) - } - return enumResult - case 174: - var enumResult: FillerEnum45? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum45(rawValue: enumResultAsInt) - } - return enumResult - case 175: - var enumResult: FillerEnum46? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum46(rawValue: enumResultAsInt) - } - return enumResult - case 176: - var enumResult: FillerEnum47? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum47(rawValue: enumResultAsInt) - } - return enumResult - case 177: - var enumResult: FillerEnum48? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum48(rawValue: enumResultAsInt) - } - return enumResult - case 178: - var enumResult: FillerEnum49? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum49(rawValue: enumResultAsInt) - } - return enumResult - case 179: - var enumResult: FillerEnum50? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum50(rawValue: enumResultAsInt) - } - return enumResult - case 180: - var enumResult: FillerEnum51? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum51(rawValue: enumResultAsInt) - } - return enumResult - case 181: - var enumResult: FillerEnum52? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum52(rawValue: enumResultAsInt) - } - return enumResult - case 182: - var enumResult: FillerEnum53? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum53(rawValue: enumResultAsInt) - } - return enumResult - case 183: - var enumResult: FillerEnum54? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum54(rawValue: enumResultAsInt) - } - return enumResult - case 184: - var enumResult: FillerEnum55? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum55(rawValue: enumResultAsInt) - } - return enumResult - case 185: - var enumResult: FillerEnum56? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum56(rawValue: enumResultAsInt) - } - return enumResult - case 186: - var enumResult: FillerEnum57? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum57(rawValue: enumResultAsInt) - } - return enumResult - case 187: - var enumResult: FillerEnum58? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum58(rawValue: enumResultAsInt) - } - return enumResult - case 188: - var enumResult: FillerEnum59? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum59(rawValue: enumResultAsInt) - } - return enumResult - case 189: - var enumResult: FillerEnum60? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum60(rawValue: enumResultAsInt) - } - return enumResult - case 190: - var enumResult: FillerEnum61? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum61(rawValue: enumResultAsInt) - } - return enumResult - case 191: - var enumResult: FillerEnum62? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum62(rawValue: enumResultAsInt) - } - return enumResult - case 192: - var enumResult: FillerEnum63? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum63(rawValue: enumResultAsInt) - } - return enumResult - case 193: - var enumResult: FillerEnum64? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum64(rawValue: enumResultAsInt) - } - return enumResult - case 194: - var enumResult: FillerEnum65? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum65(rawValue: enumResultAsInt) - } - return enumResult - case 195: - var enumResult: FillerEnum66? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum66(rawValue: enumResultAsInt) - } - return enumResult - case 196: - var enumResult: FillerEnum67? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum67(rawValue: enumResultAsInt) - } - return enumResult - case 197: - var enumResult: FillerEnum68? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum68(rawValue: enumResultAsInt) - } - return enumResult - case 198: - var enumResult: FillerEnum69? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum69(rawValue: enumResultAsInt) - } - return enumResult - case 199: - var enumResult: FillerEnum70? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum70(rawValue: enumResultAsInt) - } - return enumResult - case 200: - var enumResult: FillerEnum71? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum71(rawValue: enumResultAsInt) - } - return enumResult - case 201: - var enumResult: FillerEnum72? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum72(rawValue: enumResultAsInt) - } - return enumResult - case 202: - var enumResult: FillerEnum73? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum73(rawValue: enumResultAsInt) - } - return enumResult - case 203: - var enumResult: FillerEnum74? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum74(rawValue: enumResultAsInt) - } - return enumResult - case 204: - var enumResult: FillerEnum75? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum75(rawValue: enumResultAsInt) - } - return enumResult - case 205: - var enumResult: FillerEnum76? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum76(rawValue: enumResultAsInt) - } - return enumResult - case 206: - var enumResult: FillerEnum77? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum77(rawValue: enumResultAsInt) - } - return enumResult - case 207: - var enumResult: FillerEnum78? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum78(rawValue: enumResultAsInt) - } - return enumResult - case 208: - var enumResult: FillerEnum79? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum79(rawValue: enumResultAsInt) - } - return enumResult - case 209: - var enumResult: FillerEnum80? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum80(rawValue: enumResultAsInt) - } - return enumResult - case 210: - var enumResult: FillerEnum81? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum81(rawValue: enumResultAsInt) - } - return enumResult - case 211: - var enumResult: FillerEnum82? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum82(rawValue: enumResultAsInt) - } - return enumResult - case 212: - var enumResult: FillerEnum83? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum83(rawValue: enumResultAsInt) - } - return enumResult - case 213: - var enumResult: FillerEnum84? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum84(rawValue: enumResultAsInt) - } - return enumResult - case 214: - var enumResult: FillerEnum85? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum85(rawValue: enumResultAsInt) - } - return enumResult - case 215: - var enumResult: FillerEnum86? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum86(rawValue: enumResultAsInt) - } - return enumResult - case 216: - var enumResult: FillerEnum87? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum87(rawValue: enumResultAsInt) - } - return enumResult - case 217: - var enumResult: FillerEnum88? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum88(rawValue: enumResultAsInt) - } - return enumResult - case 218: - var enumResult: FillerEnum89? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum89(rawValue: enumResultAsInt) - } - return enumResult - case 219: - var enumResult: FillerEnum90? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum90(rawValue: enumResultAsInt) - } - return enumResult - case 220: - var enumResult: FillerEnum91? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum91(rawValue: enumResultAsInt) - } - return enumResult - case 221: - var enumResult: FillerEnum92? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum92(rawValue: enumResultAsInt) - } - return enumResult - case 222: - var enumResult: FillerEnum93? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum93(rawValue: enumResultAsInt) - } - return enumResult - case 223: - var enumResult: FillerEnum94? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum94(rawValue: enumResultAsInt) - } - return enumResult - case 224: - var enumResult: FillerEnum95? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum95(rawValue: enumResultAsInt) - } - return enumResult - case 225: - var enumResult: FillerEnum96? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum96(rawValue: enumResultAsInt) - } - return enumResult - case 226: - var enumResult: FillerEnum97? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum97(rawValue: enumResultAsInt) - } - return enumResult - case 227: - var enumResult: FillerEnum98? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum98(rawValue: enumResultAsInt) - } - return enumResult - case 228: - var enumResult: FillerEnum99? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum99(rawValue: enumResultAsInt) - } - return enumResult - case 229: - var enumResult: FillerEnum100? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum100(rawValue: enumResultAsInt) - } - return enumResult - case 230: - var enumResult: FillerEnum101? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum101(rawValue: enumResultAsInt) - } - return enumResult - case 231: - var enumResult: FillerEnum102? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum102(rawValue: enumResultAsInt) - } - return enumResult - case 232: - var enumResult: FillerEnum103? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum103(rawValue: enumResultAsInt) - } - return enumResult - case 233: - var enumResult: FillerEnum104? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum104(rawValue: enumResultAsInt) - } - return enumResult - case 234: - var enumResult: FillerEnum105? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum105(rawValue: enumResultAsInt) - } - return enumResult - case 235: - var enumResult: FillerEnum106? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum106(rawValue: enumResultAsInt) - } - return enumResult - case 236: - var enumResult: FillerEnum107? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum107(rawValue: enumResultAsInt) - } - return enumResult - case 237: - var enumResult: FillerEnum108? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum108(rawValue: enumResultAsInt) - } - return enumResult - case 238: - var enumResult: FillerEnum109? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum109(rawValue: enumResultAsInt) - } - return enumResult - case 239: - var enumResult: FillerEnum110? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum110(rawValue: enumResultAsInt) - } - return enumResult - case 240: - var enumResult: FillerEnum111? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum111(rawValue: enumResultAsInt) - } - return enumResult - case 241: - var enumResult: FillerEnum112? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum112(rawValue: enumResultAsInt) - } - return enumResult - case 242: - var enumResult: FillerEnum113? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum113(rawValue: enumResultAsInt) - } - return enumResult - case 243: - var enumResult: FillerEnum114? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum114(rawValue: enumResultAsInt) - } - return enumResult - case 244: - var enumResult: FillerEnum115? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum115(rawValue: enumResultAsInt) - } - return enumResult - case 245: - var enumResult: FillerEnum116? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum116(rawValue: enumResultAsInt) - } - return enumResult - case 246: - var enumResult: FillerEnum117? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum117(rawValue: enumResultAsInt) - } - return enumResult - case 247: - var enumResult: FillerEnum118? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum118(rawValue: enumResultAsInt) - } - return enumResult - case 248: - var enumResult: FillerEnum119? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum119(rawValue: enumResultAsInt) - } - return enumResult - case 249: - var enumResult: FillerEnum120? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum120(rawValue: enumResultAsInt) - } - return enumResult - case 250: - var enumResult: FillerEnum121? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum121(rawValue: enumResultAsInt) - } - return enumResult - case 251: - var enumResult: FillerEnum122? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum122(rawValue: enumResultAsInt) - } - return enumResult - case 252: - var enumResult: FillerEnum123? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum123(rawValue: enumResultAsInt) - } - return enumResult - case 253: - var enumResult: FillerEnum124? = nil +private class CoreTestsPigeonCodecReader: FlutterStandardReader { + override func readValue(ofType type: UInt8) -> Any? { + switch type { + case 129: + var enumResult: AnEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum124(rawValue: enumResultAsInt) + enumResult = AnEnum(rawValue: enumResultAsInt) } return enumResult - case 254: - var enumResult: AnEnum? = nil + case 130: + var enumResult: AnotherEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnEnum(rawValue: enumResultAsInt) + enumResult = AnotherEnum(rawValue: enumResultAsInt) } return enumResult - case 255: - return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) + case 131: + return AllTypes.fromList(self.readValue() as! [Any?]) + case 132: + return AllNullableTypes.fromList(self.readValue() as! [Any?]) + case 133: + return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) + case 134: + return AllClassesWrapper.fromList(self.readValue() as! [Any?]) + case 135: + return TestMessage.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } @@ -1952,408 +544,27 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { override func writeValue(_ value: Any) { - if let value = value as? FillerEnum0 { + if let value = value as? AnEnum { super.writeByte(129) super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum1 { + } else if let value = value as? AnotherEnum { super.writeByte(130) super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum2 { - super.writeByte(131) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum3 { - super.writeByte(132) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum4 { - super.writeByte(133) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum5 { - super.writeByte(134) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum6 { - super.writeByte(135) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum7 { - super.writeByte(136) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum8 { - super.writeByte(137) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum9 { - super.writeByte(138) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum10 { - super.writeByte(139) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum11 { - super.writeByte(140) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum12 { - super.writeByte(141) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum13 { - super.writeByte(142) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum14 { - super.writeByte(143) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum15 { - super.writeByte(144) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum16 { - super.writeByte(145) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum17 { - super.writeByte(146) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum18 { - super.writeByte(147) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum19 { - super.writeByte(148) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum20 { - super.writeByte(149) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum21 { - super.writeByte(150) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum22 { - super.writeByte(151) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum23 { - super.writeByte(152) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum24 { - super.writeByte(153) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum25 { - super.writeByte(154) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum26 { - super.writeByte(155) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum27 { - super.writeByte(156) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum28 { - super.writeByte(157) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum29 { - super.writeByte(158) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum30 { - super.writeByte(159) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum31 { - super.writeByte(160) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum32 { - super.writeByte(161) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum33 { - super.writeByte(162) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum34 { - super.writeByte(163) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum35 { - super.writeByte(164) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum36 { - super.writeByte(165) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum37 { - super.writeByte(166) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum38 { - super.writeByte(167) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum39 { - super.writeByte(168) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum40 { - super.writeByte(169) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum41 { - super.writeByte(170) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum42 { - super.writeByte(171) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum43 { - super.writeByte(172) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum44 { - super.writeByte(173) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum45 { - super.writeByte(174) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum46 { - super.writeByte(175) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum47 { - super.writeByte(176) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum48 { - super.writeByte(177) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum49 { - super.writeByte(178) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum50 { - super.writeByte(179) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum51 { - super.writeByte(180) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum52 { - super.writeByte(181) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum53 { - super.writeByte(182) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum54 { - super.writeByte(183) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum55 { - super.writeByte(184) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum56 { - super.writeByte(185) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum57 { - super.writeByte(186) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum58 { - super.writeByte(187) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum59 { - super.writeByte(188) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum60 { - super.writeByte(189) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum61 { - super.writeByte(190) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum62 { - super.writeByte(191) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum63 { - super.writeByte(192) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum64 { - super.writeByte(193) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum65 { - super.writeByte(194) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum66 { - super.writeByte(195) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum67 { - super.writeByte(196) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum68 { - super.writeByte(197) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum69 { - super.writeByte(198) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum70 { - super.writeByte(199) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum71 { - super.writeByte(200) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum72 { - super.writeByte(201) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum73 { - super.writeByte(202) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum74 { - super.writeByte(203) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum75 { - super.writeByte(204) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum76 { - super.writeByte(205) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum77 { - super.writeByte(206) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum78 { - super.writeByte(207) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum79 { - super.writeByte(208) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum80 { - super.writeByte(209) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum81 { - super.writeByte(210) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum82 { - super.writeByte(211) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum83 { - super.writeByte(212) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum84 { - super.writeByte(213) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum85 { - super.writeByte(214) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum86 { - super.writeByte(215) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum87 { - super.writeByte(216) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum88 { - super.writeByte(217) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum89 { - super.writeByte(218) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum90 { - super.writeByte(219) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum91 { - super.writeByte(220) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum92 { - super.writeByte(221) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum93 { - super.writeByte(222) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum94 { - super.writeByte(223) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum95 { - super.writeByte(224) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum96 { - super.writeByte(225) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum97 { - super.writeByte(226) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum98 { - super.writeByte(227) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum99 { - super.writeByte(228) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum100 { - super.writeByte(229) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum101 { - super.writeByte(230) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum102 { - super.writeByte(231) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum103 { - super.writeByte(232) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum104 { - super.writeByte(233) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum105 { - super.writeByte(234) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum106 { - super.writeByte(235) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum107 { - super.writeByte(236) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum108 { - super.writeByte(237) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum109 { - super.writeByte(238) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum110 { - super.writeByte(239) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum111 { - super.writeByte(240) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum112 { - super.writeByte(241) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum113 { - super.writeByte(242) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum114 { - super.writeByte(243) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum115 { - super.writeByte(244) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum116 { - super.writeByte(245) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum117 { - super.writeByte(246) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum118 { - super.writeByte(247) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum119 { - super.writeByte(248) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum120 { - super.writeByte(249) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum121 { - super.writeByte(250) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum122 { - super.writeByte(251) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum123 { - super.writeByte(252) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum124 { - super.writeByte(253) - super.writeValue(value.rawValue) - } else if let value = value as? AnEnum { - super.writeByte(254) - super.writeValue(value.rawValue) - } else if let value = value as? AnotherEnum { - let wrap = __pigeon_CodecOverflow(type: 0, wrapped: value.rawValue) - super.writeByte(255) - super.writeValue(wrap.toList()) } else if let value = value as? AllTypes { - let wrap = __pigeon_CodecOverflow(type: 1, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(131) + super.writeValue(value.toList()) } else if let value = value as? AllNullableTypes { - let wrap = __pigeon_CodecOverflow(type: 2, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(132) + super.writeValue(value.toList()) } else if let value = value as? AllNullableTypesWithoutRecursion { - let wrap = __pigeon_CodecOverflow(type: 3, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(133) + super.writeValue(value.toList()) } else if let value = value as? AllClassesWrapper { - let wrap = __pigeon_CodecOverflow(type: 4, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(134) + super.writeValue(value.toList()) } else if let value = value as? TestMessage { - let wrap = __pigeon_CodecOverflow(type: 5, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(135) + super.writeValue(value.toList()) } else { super.writeValue(value) } diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc index d5ae4f8b45a..4b2a24280c6 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.cc @@ -238,10 +238,10 @@ static FlValue* core_tests_pigeon_test_all_types_to_list( values, fl_value_new_float_list(self->a_float_array, self->a_float_array_length)); fl_value_append_take(values, - fl_value_new_custom(254, fl_value_new_int(self->an_enum), + fl_value_new_custom(129, fl_value_new_int(self->an_enum), (GDestroyNotify)fl_value_unref)); fl_value_append_take( - values, fl_value_new_custom(255, fl_value_new_int(self->another_enum), + values, fl_value_new_custom(130, fl_value_new_int(self->another_enum), (GDestroyNotify)fl_value_unref)); fl_value_append_take(values, fl_value_new_string(self->a_string)); fl_value_append_take(values, fl_value_ref(self->an_object)); @@ -767,13 +767,13 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( fl_value_append_take( values, self->a_nullable_enum != nullptr - ? fl_value_new_custom(254, fl_value_new_int(*self->a_nullable_enum), + ? fl_value_new_custom(129, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); fl_value_append_take( values, self->another_nullable_enum != nullptr ? fl_value_new_custom( - 255, fl_value_new_int(*self->another_nullable_enum), + 130, fl_value_new_int(*self->another_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); fl_value_append_take(values, @@ -786,7 +786,7 @@ static FlValue* core_tests_pigeon_test_all_nullable_types_to_list( fl_value_append_take( values, self->all_nullable_types != nullptr - ? fl_value_new_custom_object(257, G_OBJECT(self->all_nullable_types)) + ? fl_value_new_custom_object(132, G_OBJECT(self->all_nullable_types)) : fl_value_new_null()); fl_value_append_take(values, self->list != nullptr ? fl_value_ref(self->list) : fl_value_new_null()); @@ -1431,13 +1431,13 @@ core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( fl_value_append_take( values, self->a_nullable_enum != nullptr - ? fl_value_new_custom(254, fl_value_new_int(*self->a_nullable_enum), + ? fl_value_new_custom(129, fl_value_new_int(*self->a_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); fl_value_append_take( values, self->another_nullable_enum != nullptr ? fl_value_new_custom( - 255, fl_value_new_int(*self->another_nullable_enum), + 130, fl_value_new_int(*self->another_nullable_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); fl_value_append_take(values, @@ -1696,16 +1696,16 @@ static FlValue* core_tests_pigeon_test_all_classes_wrapper_to_list( CoreTestsPigeonTestAllClassesWrapper* self) { FlValue* values = fl_value_new_list(); fl_value_append_take(values, fl_value_new_custom_object( - 257, G_OBJECT(self->all_nullable_types))); + 132, G_OBJECT(self->all_nullable_types))); fl_value_append_take( values, self->all_nullable_types_without_recursion != nullptr ? fl_value_new_custom_object( - 258, G_OBJECT(self->all_nullable_types_without_recursion)) + 133, G_OBJECT(self->all_nullable_types_without_recursion)) : fl_value_new_null()); fl_value_append_take( values, self->all_types != nullptr - ? fl_value_new_custom_object(256, G_OBJECT(self->all_types)) + ? fl_value_new_custom_object(131, G_OBJECT(self->all_types)) : fl_value_new_null()); return values; } @@ -1810,7 +1810,7 @@ G_DEFINE_TYPE(CoreTestsPigeonTestMessageCodec, fl_standard_message_codec_get_type()) static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum0( +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { uint8_t type = 129; @@ -1819,7 +1819,7 @@ core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum0( } static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum1( +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { uint8_t type = 130; @@ -1828,3114 +1828,114 @@ core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum1( } static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum2( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllTypes* value, GError** error) { uint8_t type = 131; g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum3( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 132; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum4( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 133; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum5( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 134; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum6( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 135; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum7( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 136; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum8( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 137; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum9( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 138; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum10( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 139; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum11( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 140; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum12( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 141; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum13( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 142; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum14( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 143; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum15( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 144; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum16( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 145; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum17( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 146; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum18( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 147; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum19( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 148; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum20( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 149; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum21( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 150; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum22( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 151; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum23( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 152; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum24( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 153; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum25( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 154; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum26( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 155; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum27( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 156; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum28( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 157; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum29( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 158; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum30( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 159; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum31( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 160; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum32( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 161; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum33( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 162; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum34( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 163; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum35( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 164; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum36( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 165; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum37( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 166; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum38( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 167; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum39( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 168; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum40( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 169; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum41( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 170; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum42( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 171; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum43( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 172; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum44( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 173; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum45( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 174; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum46( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 175; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum47( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 176; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum48( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 177; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum49( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 178; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum50( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 179; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum51( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 180; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum52( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 181; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum53( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 182; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum54( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 183; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum55( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 184; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum56( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 185; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum57( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 186; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum58( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 187; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum59( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 188; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum60( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 189; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum61( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 190; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum62( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 191; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum63( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 192; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum64( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 193; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum65( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 194; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum66( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 195; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum67( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 196; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum68( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 197; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum69( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 198; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum70( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 199; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum71( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 200; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum72( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 201; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum73( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 202; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum74( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 203; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum75( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 204; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum76( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 205; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum77( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 206; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum78( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 207; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum79( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 208; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum80( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 209; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum81( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 210; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum82( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 211; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum83( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 212; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum84( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 213; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum85( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 214; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum86( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 215; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum87( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 216; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum88( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 217; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum89( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 218; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum90( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 219; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum91( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 220; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum92( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 221; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum93( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 222; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum94( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 223; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum95( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 224; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum96( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 225; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum97( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 226; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum98( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 227; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum99( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 228; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum100( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 229; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum101( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 230; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum102( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 231; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum103( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 232; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum104( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 233; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum105( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 234; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum106( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 235; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum107( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 236; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum108( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 237; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum109( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 238; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum110( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 239; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum111( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 240; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum112( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 241; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum113( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 242; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum114( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 243; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum115( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 244; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum116( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 245; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum117( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 246; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum118( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 247; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum119( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 248; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum120( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 249; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum121( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 250; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum122( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 251; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum123( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 252; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum124( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 253; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 254; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - uint8_t type = 255; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - return fl_standard_message_codec_write_value(codec, buffer, value, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllTypes* value, GError** error) { - uint8_t type = 256; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = core_tests_pigeon_test_all_types_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllNullableTypes* value, GError** error) { - uint8_t type = 257; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_nullable_types_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, - GError** error) { - uint8_t type = 258; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( - value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { - uint8_t type = 259; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_all_classes_wrapper_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); -} - -static gboolean -core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( - FlStandardMessageCodec* codec, GByteArray* buffer, - CoreTestsPigeonTestTestMessage* value, GError** error) { - uint8_t type = 260; - g_byte_array_append(buffer, &type, sizeof(uint8_t)); - g_autoptr(FlValue) values = - core_tests_pigeon_test_test_message_to_list(value); - return fl_standard_message_codec_write_value(codec, buffer, values, error); -} - -static gboolean core_tests_pigeon_test_message_codec_write_value( - FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, - GError** error) { - if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { - switch (fl_value_get_custom_type(value)) { - case 129: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum0( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 130: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum1( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 131: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum2( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 132: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum3( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 133: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum4( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 134: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum5( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 135: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum6( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 136: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum7( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 137: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum8( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 138: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum9( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 139: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum10( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 140: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum11( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 141: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum12( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 142: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum13( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 143: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum14( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 144: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum15( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 145: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum16( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 146: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum17( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 147: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum18( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 148: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum19( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 149: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum20( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 150: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum21( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 151: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum22( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 152: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum23( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 153: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum24( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 154: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum25( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 155: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum26( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 156: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum27( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 157: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum28( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 158: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum29( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 159: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum30( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 160: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum31( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 161: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum32( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 162: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum33( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 163: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum34( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 164: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum35( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 165: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum36( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 166: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum37( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 167: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum38( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 168: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum39( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 169: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum40( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 170: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum41( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 171: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum42( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 172: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum43( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 173: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum44( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 174: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum45( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 175: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum46( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 176: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum47( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 177: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum48( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 178: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum49( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 179: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum50( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 180: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum51( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 181: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum52( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 182: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum53( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 183: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum54( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 184: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum55( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 185: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum56( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 186: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum57( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 187: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum58( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 188: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum59( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 189: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum60( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 190: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum61( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 191: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum62( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 192: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum63( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 193: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum64( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 194: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum65( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 195: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum66( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 196: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum67( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 197: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum68( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 198: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum69( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 199: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum70( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 200: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum71( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 201: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum72( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 202: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum73( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 203: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum74( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 204: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum75( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 205: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum76( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 206: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum77( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 207: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum78( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 208: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum79( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 209: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum80( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 210: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum81( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 211: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum82( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 212: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum83( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 213: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum84( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 214: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum85( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 215: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum86( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 216: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum87( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 217: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum88( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 218: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum89( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 219: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum90( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 220: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum91( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 221: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum92( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 222: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum93( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 223: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum94( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 224: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum95( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 225: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum96( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 226: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum97( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 227: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum98( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 228: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum99( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 229: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum100( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 230: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum101( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 231: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum102( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 232: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum103( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 233: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum104( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 234: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum105( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 235: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum106( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 236: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum107( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 237: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum108( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 238: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum109( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 239: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum110( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 240: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum111( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 241: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum112( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 242: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum113( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 243: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum114( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 244: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum115( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 245: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum116( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 246: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum117( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 247: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum118( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 248: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum119( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 249: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum120( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 250: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum121( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 251: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum122( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 252: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum123( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 253: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_filler_enum124( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 254: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 255: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( - codec, buffer, - reinterpret_cast( - const_cast(fl_value_get_custom_value(value))), - error); - case 256: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_TYPES( - fl_value_get_custom_value_object(value)), - error); - case 257: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( - fl_value_get_custom_value_object(value)), - error); - case 258: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( - fl_value_get_custom_value_object(value)), - error); - case 259: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( - codec, buffer, - CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( - fl_value_get_custom_value_object(value)), - error); - case 260: - return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( - codec, buffer, - CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( - fl_value_get_custom_value_object(value)), - error); - } - } - - return FL_STANDARD_MESSAGE_CODEC_CLASS( - core_tests_pigeon_test_message_codec_parent_class) - ->write_value(codec, buffer, value, error); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum0( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 129, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum1( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 130, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum2( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 131, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum3( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 132, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum4( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 133, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum5( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 134, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum6( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 135, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum7( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 136, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum8( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 137, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum9( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 138, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum10( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 139, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum11( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 140, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum12( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 141, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum13( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 142, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum14( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 143, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum15( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 144, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum16( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 145, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum17( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 146, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum18( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 147, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum19( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 148, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum20( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 149, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum21( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 150, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum22( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 151, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum23( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 152, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum24( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 153, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum25( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 154, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum26( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 155, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum27( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 156, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum28( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 157, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum29( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 158, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum30( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 159, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum31( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 160, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum32( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 161, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum33( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 162, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum34( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 163, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum35( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 164, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum36( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 165, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum37( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 166, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum38( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 167, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum39( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 168, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum40( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 169, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum41( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 170, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum42( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 171, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum43( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 172, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum44( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 173, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum45( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 174, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum46( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 175, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum47( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 176, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum48( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 177, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum49( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 178, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum50( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 179, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum51( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 180, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum52( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 181, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum53( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 182, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum54( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 183, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum55( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 184, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum56( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 185, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum57( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 186, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum58( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 187, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum59( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 188, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum60( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 189, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum61( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 190, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum62( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 191, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum63( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 192, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum64( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 193, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum65( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 194, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum66( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 195, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum67( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 196, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum68( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 197, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum69( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 198, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum70( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 199, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum71( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 200, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum72( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 201, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum73( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 202, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum74( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 203, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum75( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 204, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum76( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 205, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum77( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 206, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum78( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 207, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum79( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 208, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum80( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 209, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum81( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 210, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum82( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 211, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum83( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 212, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum84( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 213, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum85( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 214, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum86( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 215, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum87( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 216, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum88( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 217, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum89( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 218, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum90( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 219, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum91( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 220, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum92( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 221, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum93( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 222, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum94( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 223, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum95( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 224, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum96( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 225, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum97( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 226, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum98( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 227, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum99( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 228, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum100( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 229, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum101( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 230, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum102( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 231, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum103( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 232, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum104( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 233, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum105( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 234, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum106( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 235, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum107( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 236, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum108( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 237, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum109( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 238, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum110( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 239, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum111( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 240, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum112( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 241, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum113( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 242, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum114( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 243, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum115( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 244, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum116( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 245, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum117( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 246, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} - -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum118( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 247, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); + g_autoptr(FlValue) values = core_tests_pigeon_test_all_types_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum119( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 248, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllNullableTypes* value, GError** error) { + uint8_t type = 132; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_nullable_types_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum120( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllNullableTypesWithoutRecursion* value, GError** error) { - return fl_value_new_custom( - 249, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); + uint8_t type = 133; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_nullable_types_without_recursion_to_list( + value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum121( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 250, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestAllClassesWrapper* value, GError** error) { + uint8_t type = 134; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_all_classes_wrapper_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum122( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 251, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); +static gboolean +core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( + FlStandardMessageCodec* codec, GByteArray* buffer, + CoreTestsPigeonTestTestMessage* value, GError** error) { + uint8_t type = 135; + g_byte_array_append(buffer, &type, sizeof(uint8_t)); + g_autoptr(FlValue) values = + core_tests_pigeon_test_test_message_to_list(value); + return fl_standard_message_codec_write_value(codec, buffer, values, error); } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum123( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, +static gboolean core_tests_pigeon_test_message_codec_write_value( + FlStandardMessageCodec* codec, GByteArray* buffer, FlValue* value, GError** error) { - return fl_value_new_custom( - 252, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); -} + if (fl_value_get_type(value) == FL_VALUE_TYPE_CUSTOM) { + switch (fl_value_get_custom_type(value)) { + case 129: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_an_enum( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 130: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_another_enum( + codec, buffer, + reinterpret_cast( + const_cast(fl_value_get_custom_value(value))), + error); + case 131: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_types( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_TYPES( + fl_value_get_custom_value_object(value)), + error); + case 132: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES( + fl_value_get_custom_value_object(value)), + error); + case 133: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_nullable_types_without_recursion( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_NULLABLE_TYPES_WITHOUT_RECURSION( + fl_value_get_custom_value_object(value)), + error); + case 134: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_all_classes_wrapper( + codec, buffer, + CORE_TESTS_PIGEON_TEST_ALL_CLASSES_WRAPPER( + fl_value_get_custom_value_object(value)), + error); + case 135: + return core_tests_pigeon_test_message_codec_write_core_tests_pigeon_test_test_message( + codec, buffer, + CORE_TESTS_PIGEON_TEST_TEST_MESSAGE( + fl_value_get_custom_value_object(value)), + error); + } + } -static FlValue* -core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum124( - FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, - GError** error) { - return fl_value_new_custom( - 253, fl_standard_message_codec_read_value(codec, buffer, offset, error), - (GDestroyNotify)fl_value_unref); + return FL_STANDARD_MESSAGE_CODEC_CLASS( + core_tests_pigeon_test_message_codec_parent_class) + ->write_value(codec, buffer, value, error); } static FlValue* @@ -4943,7 +1943,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { return fl_value_new_custom( - 254, fl_standard_message_codec_read_value(codec, buffer, offset, error), + 129, fl_standard_message_codec_read_value(codec, buffer, offset, error), (GDestroyNotify)fl_value_unref); } @@ -4952,7 +1952,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( FlStandardMessageCodec* codec, GBytes* buffer, size_t* offset, GError** error) { return fl_value_new_custom( - 255, fl_standard_message_codec_read_value(codec, buffer, offset, error), + 130, fl_standard_message_codec_read_value(codec, buffer, offset, error), (GDestroyNotify)fl_value_unref); } @@ -4974,7 +1974,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( return nullptr; } - return fl_value_new_custom_object(256, G_OBJECT(value)); + return fl_value_new_custom_object(131, G_OBJECT(value)); } static FlValue* @@ -4995,7 +1995,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_ty return nullptr; } - return fl_value_new_custom_object(257, G_OBJECT(value)); + return fl_value_new_custom_object(132, G_OBJECT(value)); } static FlValue* @@ -5017,7 +2017,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_ty return nullptr; } - return fl_value_new_custom_object(258, G_OBJECT(value)); + return fl_value_new_custom_object(133, G_OBJECT(value)); } static FlValue* @@ -5038,7 +2038,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wra return nullptr; } - return fl_value_new_custom_object(259, G_OBJECT(value)); + return fl_value_new_custom_object(134, G_OBJECT(value)); } static FlValue* @@ -5059,7 +2059,7 @@ core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( return nullptr; } - return fl_value_new_custom_object(260, G_OBJECT(value)); + return fl_value_new_custom_object(135, G_OBJECT(value)); } static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( @@ -5067,399 +2067,24 @@ static FlValue* core_tests_pigeon_test_message_codec_read_value_of_type( GError** error) { switch (type) { case 129: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum0( - codec, buffer, offset, error); - case 130: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum1( - codec, buffer, offset, error); - case 131: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum2( - codec, buffer, offset, error); - case 132: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum3( - codec, buffer, offset, error); - case 133: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum4( - codec, buffer, offset, error); - case 134: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum5( - codec, buffer, offset, error); - case 135: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum6( - codec, buffer, offset, error); - case 136: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum7( - codec, buffer, offset, error); - case 137: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum8( - codec, buffer, offset, error); - case 138: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum9( - codec, buffer, offset, error); - case 139: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum10( - codec, buffer, offset, error); - case 140: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum11( - codec, buffer, offset, error); - case 141: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum12( - codec, buffer, offset, error); - case 142: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum13( - codec, buffer, offset, error); - case 143: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum14( - codec, buffer, offset, error); - case 144: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum15( - codec, buffer, offset, error); - case 145: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum16( - codec, buffer, offset, error); - case 146: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum17( - codec, buffer, offset, error); - case 147: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum18( - codec, buffer, offset, error); - case 148: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum19( - codec, buffer, offset, error); - case 149: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum20( - codec, buffer, offset, error); - case 150: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum21( - codec, buffer, offset, error); - case 151: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum22( - codec, buffer, offset, error); - case 152: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum23( - codec, buffer, offset, error); - case 153: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum24( - codec, buffer, offset, error); - case 154: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum25( - codec, buffer, offset, error); - case 155: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum26( - codec, buffer, offset, error); - case 156: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum27( - codec, buffer, offset, error); - case 157: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum28( - codec, buffer, offset, error); - case 158: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum29( - codec, buffer, offset, error); - case 159: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum30( - codec, buffer, offset, error); - case 160: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum31( - codec, buffer, offset, error); - case 161: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum32( - codec, buffer, offset, error); - case 162: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum33( - codec, buffer, offset, error); - case 163: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum34( - codec, buffer, offset, error); - case 164: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum35( - codec, buffer, offset, error); - case 165: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum36( - codec, buffer, offset, error); - case 166: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum37( - codec, buffer, offset, error); - case 167: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum38( - codec, buffer, offset, error); - case 168: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum39( - codec, buffer, offset, error); - case 169: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum40( - codec, buffer, offset, error); - case 170: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum41( - codec, buffer, offset, error); - case 171: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum42( - codec, buffer, offset, error); - case 172: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum43( - codec, buffer, offset, error); - case 173: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum44( - codec, buffer, offset, error); - case 174: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum45( - codec, buffer, offset, error); - case 175: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum46( - codec, buffer, offset, error); - case 176: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum47( - codec, buffer, offset, error); - case 177: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum48( - codec, buffer, offset, error); - case 178: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum49( - codec, buffer, offset, error); - case 179: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum50( - codec, buffer, offset, error); - case 180: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum51( - codec, buffer, offset, error); - case 181: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum52( - codec, buffer, offset, error); - case 182: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum53( - codec, buffer, offset, error); - case 183: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum54( - codec, buffer, offset, error); - case 184: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum55( - codec, buffer, offset, error); - case 185: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum56( - codec, buffer, offset, error); - case 186: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum57( - codec, buffer, offset, error); - case 187: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum58( - codec, buffer, offset, error); - case 188: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum59( - codec, buffer, offset, error); - case 189: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum60( - codec, buffer, offset, error); - case 190: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum61( - codec, buffer, offset, error); - case 191: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum62( - codec, buffer, offset, error); - case 192: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum63( - codec, buffer, offset, error); - case 193: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum64( - codec, buffer, offset, error); - case 194: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum65( - codec, buffer, offset, error); - case 195: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum66( - codec, buffer, offset, error); - case 196: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum67( - codec, buffer, offset, error); - case 197: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum68( - codec, buffer, offset, error); - case 198: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum69( - codec, buffer, offset, error); - case 199: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum70( - codec, buffer, offset, error); - case 200: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum71( - codec, buffer, offset, error); - case 201: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum72( - codec, buffer, offset, error); - case 202: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum73( - codec, buffer, offset, error); - case 203: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum74( - codec, buffer, offset, error); - case 204: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum75( - codec, buffer, offset, error); - case 205: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum76( - codec, buffer, offset, error); - case 206: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum77( - codec, buffer, offset, error); - case 207: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum78( - codec, buffer, offset, error); - case 208: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum79( - codec, buffer, offset, error); - case 209: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum80( - codec, buffer, offset, error); - case 210: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum81( - codec, buffer, offset, error); - case 211: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum82( - codec, buffer, offset, error); - case 212: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum83( - codec, buffer, offset, error); - case 213: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum84( - codec, buffer, offset, error); - case 214: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum85( - codec, buffer, offset, error); - case 215: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum86( - codec, buffer, offset, error); - case 216: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum87( - codec, buffer, offset, error); - case 217: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum88( - codec, buffer, offset, error); - case 218: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum89( - codec, buffer, offset, error); - case 219: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum90( - codec, buffer, offset, error); - case 220: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum91( - codec, buffer, offset, error); - case 221: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum92( - codec, buffer, offset, error); - case 222: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum93( - codec, buffer, offset, error); - case 223: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum94( - codec, buffer, offset, error); - case 224: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum95( - codec, buffer, offset, error); - case 225: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum96( - codec, buffer, offset, error); - case 226: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum97( - codec, buffer, offset, error); - case 227: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum98( - codec, buffer, offset, error); - case 228: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum99( - codec, buffer, offset, error); - case 229: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum100( - codec, buffer, offset, error); - case 230: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum101( - codec, buffer, offset, error); - case 231: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum102( - codec, buffer, offset, error); - case 232: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum103( - codec, buffer, offset, error); - case 233: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum104( - codec, buffer, offset, error); - case 234: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum105( - codec, buffer, offset, error); - case 235: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum106( - codec, buffer, offset, error); - case 236: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum107( - codec, buffer, offset, error); - case 237: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum108( - codec, buffer, offset, error); - case 238: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum109( - codec, buffer, offset, error); - case 239: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum110( - codec, buffer, offset, error); - case 240: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum111( - codec, buffer, offset, error); - case 241: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum112( - codec, buffer, offset, error); - case 242: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum113( - codec, buffer, offset, error); - case 243: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum114( - codec, buffer, offset, error); - case 244: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum115( - codec, buffer, offset, error); - case 245: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum116( - codec, buffer, offset, error); - case 246: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum117( - codec, buffer, offset, error); - case 247: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum118( - codec, buffer, offset, error); - case 248: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum119( - codec, buffer, offset, error); - case 249: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum120( - codec, buffer, offset, error); - case 250: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum121( - codec, buffer, offset, error); - case 251: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum122( - codec, buffer, offset, error); - case 252: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum123( - codec, buffer, offset, error); - case 253: - return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_filler_enum124( - codec, buffer, offset, error); - case 254: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_an_enum( codec, buffer, offset, error); - case 255: + case 130: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_another_enum( codec, buffer, offset, error); - case 256: + case 131: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_types( codec, buffer, offset, error); - case 257: + case 132: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types( codec, buffer, offset, error); - case 258: + case 133: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_nullable_types_without_recursion( codec, buffer, offset, error); - case 259: + case 134: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_all_classes_wrapper( codec, buffer, offset, error); - case 260: + case 135: return core_tests_pigeon_test_message_codec_read_core_tests_pigeon_test_test_message( codec, buffer, offset, error); default: @@ -5637,7 +2262,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_types_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(256, G_OBJECT(return_value))); + fl_value_new_custom_object(131, G_OBJECT(return_value))); return self; } @@ -6407,7 +3032,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_class_wrapper_response_new nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(259, G_OBJECT(return_value))); + fl_value_new_custom_object(134, G_OBJECT(return_value))); return self; } @@ -6471,7 +3096,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_enum_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(254, fl_value_new_int(return_value), + fl_value_new_custom(129, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -6537,7 +3162,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_enum_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(255, fl_value_new_int(return_value), + fl_value_new_custom(130, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -6805,7 +3430,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_respons self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(257, G_OBJECT(return_value)) + ? fl_value_new_custom_object(132, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -6876,7 +3501,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_all_nullable_types_without self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(258, G_OBJECT(return_value)) + ? fl_value_new_custom_object(133, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -7015,7 +3640,7 @@ core_tests_pigeon_test_host_integration_core_api_create_nested_nullable_string_r nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(259, G_OBJECT(return_value))); + fl_value_new_custom_object(134, G_OBJECT(return_value))); return self; } @@ -7083,7 +3708,7 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_re nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(257, G_OBJECT(return_value))); + fl_value_new_custom_object(132, G_OBJECT(return_value))); return self; } @@ -7152,7 +3777,7 @@ core_tests_pigeon_test_host_integration_core_api_send_multiple_nullable_types_wi nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(258, G_OBJECT(return_value))); + fl_value_new_custom_object(133, G_OBJECT(return_value))); return self; } @@ -7761,7 +4386,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_nullable_enum_response_new fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(254, fl_value_new_int(*return_value), + ? fl_value_new_custom(129, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -7833,7 +4458,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_nullable_enum_resp fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(255, fl_value_new_int(*return_value), + ? fl_value_new_custom(130, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -8680,7 +5305,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_enum_response_new( nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(254, fl_value_new_int(return_value), + fl_value_new_custom(129, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -8754,7 +5379,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_async_enum_respons nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(255, fl_value_new_int(return_value), + fl_value_new_custom(130, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -9047,7 +5672,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_all_types_response_n nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(256, G_OBJECT(return_value))); + fl_value_new_custom_object(131, G_OBJECT(return_value))); return self; } @@ -9124,7 +5749,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullabl self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(257, G_OBJECT(return_value)) + ? fl_value_new_custom_object(132, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -9202,7 +5827,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_all_nullabl self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(258, G_OBJECT(return_value)) + ? fl_value_new_custom_object(133, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -9875,7 +6500,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_async_nullable_enum_respon fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(254, fl_value_new_int(*return_value), + ? fl_value_new_custom(129, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -9955,7 +6580,7 @@ core_tests_pigeon_test_host_integration_core_api_echo_another_async_nullable_enu fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(255, fl_value_new_int(*return_value), + ? fl_value_new_custom(130, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -10249,7 +6874,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_types_res nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(256, G_OBJECT(return_value))); + fl_value_new_custom_object(131, G_OBJECT(return_value))); return self; } @@ -10326,7 +6951,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_ self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(257, G_OBJECT(return_value)) + ? fl_value_new_custom_object(132, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -10403,7 +7028,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(257, G_OBJECT(return_value))); + fl_value_new_custom_object(132, G_OBJECT(return_value))); return self; } @@ -10480,7 +7105,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_all_nullable_ self->value = fl_value_new_list(); fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom_object(258, G_OBJECT(return_value)) + ? fl_value_new_custom_object(133, G_OBJECT(return_value)) : fl_value_new_null()); return self; } @@ -10557,7 +7182,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_send_multiple_null nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom_object(258, G_OBJECT(return_value))); + fl_value_new_custom_object(133, G_OBJECT(return_value))); return self; } @@ -11136,7 +7761,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_enum_response nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(254, fl_value_new_int(return_value), + fl_value_new_custom(129, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -11211,7 +7836,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_enum_ nullptr)); self->value = fl_value_new_list(); fl_value_append_take(self->value, - fl_value_new_custom(255, fl_value_new_int(return_value), + fl_value_new_custom(130, fl_value_new_int(return_value), (GDestroyNotify)fl_value_unref)); return self; } @@ -11823,7 +8448,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_nullable_enum fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(254, fl_value_new_int(*return_value), + ? fl_value_new_custom(129, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -11903,7 +8528,7 @@ core_tests_pigeon_test_host_integration_core_api_call_flutter_echo_another_nulla fl_value_append_take( self->value, return_value != nullptr - ? fl_value_new_custom(255, fl_value_new_int(*return_value), + ? fl_value_new_custom(130, fl_value_new_int(*return_value), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); return self; @@ -18889,7 +15514,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_types( GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, - fl_value_new_custom_object(256, G_OBJECT(everything))); + fl_value_new_custom_object(131, G_OBJECT(everything))); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." "echoAllTypes%s", @@ -19064,7 +15689,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, everything != nullptr - ? fl_value_new_custom_object(257, G_OBJECT(everything)) + ? fl_value_new_custom_object(132, G_OBJECT(everything)) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -19422,7 +16047,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_all_nullable_types g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, everything != nullptr - ? fl_value_new_custom_object(258, G_OBJECT(everything)) + ? fl_value_new_custom_object(133, G_OBJECT(everything)) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -20888,7 +17513,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_enum( GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, - fl_value_new_custom(254, fl_value_new_int(an_enum), + fl_value_new_custom(129, fl_value_new_int(an_enum), (GDestroyNotify)fl_value_unref)); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -21054,7 +17679,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_another_enum( GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take(args, - fl_value_new_custom(255, fl_value_new_int(another_enum), + fl_value_new_custom(130, fl_value_new_int(another_enum), (GDestroyNotify)fl_value_unref)); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi." @@ -22438,7 +19063,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_nullable_enum( g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, an_enum != nullptr - ? fl_value_new_custom(254, fl_value_new_int(*an_enum), + ? fl_value_new_custom(129, fl_value_new_int(*an_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( @@ -22618,7 +19243,7 @@ void core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_e g_autoptr(FlValue) args = fl_value_new_list(); fl_value_append_take( args, another_enum != nullptr - ? fl_value_new_custom(255, fl_value_new_int(*another_enum), + ? fl_value_new_custom(130, fl_value_new_int(*another_enum), (GDestroyNotify)fl_value_unref) : fl_value_new_null()); g_autofree gchar* channel_name = g_strdup_printf( @@ -23651,7 +20276,7 @@ void core_tests_pigeon_test_flutter_small_api_echo_wrapped_list( CoreTestsPigeonTestTestMessage* msg, GCancellable* cancellable, GAsyncReadyCallback callback, gpointer user_data) { g_autoptr(FlValue) args = fl_value_new_list(); - fl_value_append_take(args, fl_value_new_custom_object(260, G_OBJECT(msg))); + fl_value_append_take(args, fl_value_new_custom_object(135, G_OBJECT(msg))); g_autofree gchar* channel_name = g_strdup_printf( "dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi." "echoWrappedList%s", diff --git a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h index f644dc7ccb4..e6e2219c1a6 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/linux/pigeon/core_tests.gen.h @@ -12,1131 +12,6 @@ G_BEGIN_DECLS -/** - * CoreTestsPigeonTestFillerEnum0: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM0_FILLER_MEMBER0: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM0_FILLER_MEMBER0 = 0 -} CoreTestsPigeonTestFillerEnum0; - -/** - * CoreTestsPigeonTestFillerEnum1: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM1_FILLER_MEMBER1: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM1_FILLER_MEMBER1 = 0 -} CoreTestsPigeonTestFillerEnum1; - -/** - * CoreTestsPigeonTestFillerEnum2: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM2_FILLER_MEMBER2: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM2_FILLER_MEMBER2 = 0 -} CoreTestsPigeonTestFillerEnum2; - -/** - * CoreTestsPigeonTestFillerEnum3: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM3_FILLER_MEMBER3: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM3_FILLER_MEMBER3 = 0 -} CoreTestsPigeonTestFillerEnum3; - -/** - * CoreTestsPigeonTestFillerEnum4: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM4_FILLER_MEMBER4: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM4_FILLER_MEMBER4 = 0 -} CoreTestsPigeonTestFillerEnum4; - -/** - * CoreTestsPigeonTestFillerEnum5: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM5_FILLER_MEMBER5: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM5_FILLER_MEMBER5 = 0 -} CoreTestsPigeonTestFillerEnum5; - -/** - * CoreTestsPigeonTestFillerEnum6: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM6_FILLER_MEMBER6: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM6_FILLER_MEMBER6 = 0 -} CoreTestsPigeonTestFillerEnum6; - -/** - * CoreTestsPigeonTestFillerEnum7: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM7_FILLER_MEMBER7: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM7_FILLER_MEMBER7 = 0 -} CoreTestsPigeonTestFillerEnum7; - -/** - * CoreTestsPigeonTestFillerEnum8: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM8_FILLER_MEMBER8: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM8_FILLER_MEMBER8 = 0 -} CoreTestsPigeonTestFillerEnum8; - -/** - * CoreTestsPigeonTestFillerEnum9: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM9_FILLER_MEMBER9: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM9_FILLER_MEMBER9 = 0 -} CoreTestsPigeonTestFillerEnum9; - -/** - * CoreTestsPigeonTestFillerEnum10: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM10_FILLER_MEMBER10: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM10_FILLER_MEMBER10 = 0 -} CoreTestsPigeonTestFillerEnum10; - -/** - * CoreTestsPigeonTestFillerEnum11: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM11_FILLER_MEMBER11: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM11_FILLER_MEMBER11 = 0 -} CoreTestsPigeonTestFillerEnum11; - -/** - * CoreTestsPigeonTestFillerEnum12: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM12_FILLER_MEMBER12: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM12_FILLER_MEMBER12 = 0 -} CoreTestsPigeonTestFillerEnum12; - -/** - * CoreTestsPigeonTestFillerEnum13: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM13_FILLER_MEMBER13: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM13_FILLER_MEMBER13 = 0 -} CoreTestsPigeonTestFillerEnum13; - -/** - * CoreTestsPigeonTestFillerEnum14: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM14_FILLER_MEMBER14: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM14_FILLER_MEMBER14 = 0 -} CoreTestsPigeonTestFillerEnum14; - -/** - * CoreTestsPigeonTestFillerEnum15: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM15_FILLER_MEMBER15: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM15_FILLER_MEMBER15 = 0 -} CoreTestsPigeonTestFillerEnum15; - -/** - * CoreTestsPigeonTestFillerEnum16: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM16_FILLER_MEMBER16: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM16_FILLER_MEMBER16 = 0 -} CoreTestsPigeonTestFillerEnum16; - -/** - * CoreTestsPigeonTestFillerEnum17: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM17_FILLER_MEMBER17: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM17_FILLER_MEMBER17 = 0 -} CoreTestsPigeonTestFillerEnum17; - -/** - * CoreTestsPigeonTestFillerEnum18: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM18_FILLER_MEMBER18: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM18_FILLER_MEMBER18 = 0 -} CoreTestsPigeonTestFillerEnum18; - -/** - * CoreTestsPigeonTestFillerEnum19: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM19_FILLER_MEMBER19: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM19_FILLER_MEMBER19 = 0 -} CoreTestsPigeonTestFillerEnum19; - -/** - * CoreTestsPigeonTestFillerEnum20: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM20_FILLER_MEMBER20: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM20_FILLER_MEMBER20 = 0 -} CoreTestsPigeonTestFillerEnum20; - -/** - * CoreTestsPigeonTestFillerEnum21: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM21_FILLER_MEMBER21: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM21_FILLER_MEMBER21 = 0 -} CoreTestsPigeonTestFillerEnum21; - -/** - * CoreTestsPigeonTestFillerEnum22: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM22_FILLER_MEMBER22: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM22_FILLER_MEMBER22 = 0 -} CoreTestsPigeonTestFillerEnum22; - -/** - * CoreTestsPigeonTestFillerEnum23: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM23_FILLER_MEMBER23: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM23_FILLER_MEMBER23 = 0 -} CoreTestsPigeonTestFillerEnum23; - -/** - * CoreTestsPigeonTestFillerEnum24: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM24_FILLER_MEMBER24: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM24_FILLER_MEMBER24 = 0 -} CoreTestsPigeonTestFillerEnum24; - -/** - * CoreTestsPigeonTestFillerEnum25: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM25_FILLER_MEMBER25: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM25_FILLER_MEMBER25 = 0 -} CoreTestsPigeonTestFillerEnum25; - -/** - * CoreTestsPigeonTestFillerEnum26: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM26_FILLER_MEMBER26: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM26_FILLER_MEMBER26 = 0 -} CoreTestsPigeonTestFillerEnum26; - -/** - * CoreTestsPigeonTestFillerEnum27: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM27_FILLER_MEMBER27: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM27_FILLER_MEMBER27 = 0 -} CoreTestsPigeonTestFillerEnum27; - -/** - * CoreTestsPigeonTestFillerEnum28: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM28_FILLER_MEMBER28: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM28_FILLER_MEMBER28 = 0 -} CoreTestsPigeonTestFillerEnum28; - -/** - * CoreTestsPigeonTestFillerEnum29: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM29_FILLER_MEMBER29: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM29_FILLER_MEMBER29 = 0 -} CoreTestsPigeonTestFillerEnum29; - -/** - * CoreTestsPigeonTestFillerEnum30: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM30_FILLER_MEMBER30: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM30_FILLER_MEMBER30 = 0 -} CoreTestsPigeonTestFillerEnum30; - -/** - * CoreTestsPigeonTestFillerEnum31: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM31_FILLER_MEMBER31: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM31_FILLER_MEMBER31 = 0 -} CoreTestsPigeonTestFillerEnum31; - -/** - * CoreTestsPigeonTestFillerEnum32: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM32_FILLER_MEMBER32: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM32_FILLER_MEMBER32 = 0 -} CoreTestsPigeonTestFillerEnum32; - -/** - * CoreTestsPigeonTestFillerEnum33: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM33_FILLER_MEMBER33: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM33_FILLER_MEMBER33 = 0 -} CoreTestsPigeonTestFillerEnum33; - -/** - * CoreTestsPigeonTestFillerEnum34: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM34_FILLER_MEMBER34: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM34_FILLER_MEMBER34 = 0 -} CoreTestsPigeonTestFillerEnum34; - -/** - * CoreTestsPigeonTestFillerEnum35: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM35_FILLER_MEMBER35: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM35_FILLER_MEMBER35 = 0 -} CoreTestsPigeonTestFillerEnum35; - -/** - * CoreTestsPigeonTestFillerEnum36: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM36_FILLER_MEMBER36: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM36_FILLER_MEMBER36 = 0 -} CoreTestsPigeonTestFillerEnum36; - -/** - * CoreTestsPigeonTestFillerEnum37: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM37_FILLER_MEMBER37: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM37_FILLER_MEMBER37 = 0 -} CoreTestsPigeonTestFillerEnum37; - -/** - * CoreTestsPigeonTestFillerEnum38: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM38_FILLER_MEMBER38: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM38_FILLER_MEMBER38 = 0 -} CoreTestsPigeonTestFillerEnum38; - -/** - * CoreTestsPigeonTestFillerEnum39: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM39_FILLER_MEMBER39: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM39_FILLER_MEMBER39 = 0 -} CoreTestsPigeonTestFillerEnum39; - -/** - * CoreTestsPigeonTestFillerEnum40: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM40_FILLER_MEMBER40: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM40_FILLER_MEMBER40 = 0 -} CoreTestsPigeonTestFillerEnum40; - -/** - * CoreTestsPigeonTestFillerEnum41: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM41_FILLER_MEMBER41: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM41_FILLER_MEMBER41 = 0 -} CoreTestsPigeonTestFillerEnum41; - -/** - * CoreTestsPigeonTestFillerEnum42: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM42_FILLER_MEMBER42: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM42_FILLER_MEMBER42 = 0 -} CoreTestsPigeonTestFillerEnum42; - -/** - * CoreTestsPigeonTestFillerEnum43: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM43_FILLER_MEMBER43: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM43_FILLER_MEMBER43 = 0 -} CoreTestsPigeonTestFillerEnum43; - -/** - * CoreTestsPigeonTestFillerEnum44: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM44_FILLER_MEMBER44: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM44_FILLER_MEMBER44 = 0 -} CoreTestsPigeonTestFillerEnum44; - -/** - * CoreTestsPigeonTestFillerEnum45: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM45_FILLER_MEMBER45: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM45_FILLER_MEMBER45 = 0 -} CoreTestsPigeonTestFillerEnum45; - -/** - * CoreTestsPigeonTestFillerEnum46: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM46_FILLER_MEMBER46: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM46_FILLER_MEMBER46 = 0 -} CoreTestsPigeonTestFillerEnum46; - -/** - * CoreTestsPigeonTestFillerEnum47: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM47_FILLER_MEMBER47: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM47_FILLER_MEMBER47 = 0 -} CoreTestsPigeonTestFillerEnum47; - -/** - * CoreTestsPigeonTestFillerEnum48: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM48_FILLER_MEMBER48: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM48_FILLER_MEMBER48 = 0 -} CoreTestsPigeonTestFillerEnum48; - -/** - * CoreTestsPigeonTestFillerEnum49: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM49_FILLER_MEMBER49: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM49_FILLER_MEMBER49 = 0 -} CoreTestsPigeonTestFillerEnum49; - -/** - * CoreTestsPigeonTestFillerEnum50: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM50_FILLER_MEMBER50: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM50_FILLER_MEMBER50 = 0 -} CoreTestsPigeonTestFillerEnum50; - -/** - * CoreTestsPigeonTestFillerEnum51: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM51_FILLER_MEMBER51: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM51_FILLER_MEMBER51 = 0 -} CoreTestsPigeonTestFillerEnum51; - -/** - * CoreTestsPigeonTestFillerEnum52: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM52_FILLER_MEMBER52: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM52_FILLER_MEMBER52 = 0 -} CoreTestsPigeonTestFillerEnum52; - -/** - * CoreTestsPigeonTestFillerEnum53: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM53_FILLER_MEMBER53: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM53_FILLER_MEMBER53 = 0 -} CoreTestsPigeonTestFillerEnum53; - -/** - * CoreTestsPigeonTestFillerEnum54: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM54_FILLER_MEMBER54: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM54_FILLER_MEMBER54 = 0 -} CoreTestsPigeonTestFillerEnum54; - -/** - * CoreTestsPigeonTestFillerEnum55: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM55_FILLER_MEMBER55: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM55_FILLER_MEMBER55 = 0 -} CoreTestsPigeonTestFillerEnum55; - -/** - * CoreTestsPigeonTestFillerEnum56: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM56_FILLER_MEMBER56: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM56_FILLER_MEMBER56 = 0 -} CoreTestsPigeonTestFillerEnum56; - -/** - * CoreTestsPigeonTestFillerEnum57: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM57_FILLER_MEMBER57: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM57_FILLER_MEMBER57 = 0 -} CoreTestsPigeonTestFillerEnum57; - -/** - * CoreTestsPigeonTestFillerEnum58: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM58_FILLER_MEMBER58: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM58_FILLER_MEMBER58 = 0 -} CoreTestsPigeonTestFillerEnum58; - -/** - * CoreTestsPigeonTestFillerEnum59: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM59_FILLER_MEMBER59: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM59_FILLER_MEMBER59 = 0 -} CoreTestsPigeonTestFillerEnum59; - -/** - * CoreTestsPigeonTestFillerEnum60: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM60_FILLER_MEMBER60: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM60_FILLER_MEMBER60 = 0 -} CoreTestsPigeonTestFillerEnum60; - -/** - * CoreTestsPigeonTestFillerEnum61: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM61_FILLER_MEMBER61: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM61_FILLER_MEMBER61 = 0 -} CoreTestsPigeonTestFillerEnum61; - -/** - * CoreTestsPigeonTestFillerEnum62: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM62_FILLER_MEMBER62: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM62_FILLER_MEMBER62 = 0 -} CoreTestsPigeonTestFillerEnum62; - -/** - * CoreTestsPigeonTestFillerEnum63: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM63_FILLER_MEMBER63: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM63_FILLER_MEMBER63 = 0 -} CoreTestsPigeonTestFillerEnum63; - -/** - * CoreTestsPigeonTestFillerEnum64: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM64_FILLER_MEMBER64: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM64_FILLER_MEMBER64 = 0 -} CoreTestsPigeonTestFillerEnum64; - -/** - * CoreTestsPigeonTestFillerEnum65: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM65_FILLER_MEMBER65: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM65_FILLER_MEMBER65 = 0 -} CoreTestsPigeonTestFillerEnum65; - -/** - * CoreTestsPigeonTestFillerEnum66: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM66_FILLER_MEMBER66: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM66_FILLER_MEMBER66 = 0 -} CoreTestsPigeonTestFillerEnum66; - -/** - * CoreTestsPigeonTestFillerEnum67: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM67_FILLER_MEMBER67: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM67_FILLER_MEMBER67 = 0 -} CoreTestsPigeonTestFillerEnum67; - -/** - * CoreTestsPigeonTestFillerEnum68: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM68_FILLER_MEMBER68: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM68_FILLER_MEMBER68 = 0 -} CoreTestsPigeonTestFillerEnum68; - -/** - * CoreTestsPigeonTestFillerEnum69: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM69_FILLER_MEMBER69: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM69_FILLER_MEMBER69 = 0 -} CoreTestsPigeonTestFillerEnum69; - -/** - * CoreTestsPigeonTestFillerEnum70: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM70_FILLER_MEMBER70: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM70_FILLER_MEMBER70 = 0 -} CoreTestsPigeonTestFillerEnum70; - -/** - * CoreTestsPigeonTestFillerEnum71: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM71_FILLER_MEMBER71: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM71_FILLER_MEMBER71 = 0 -} CoreTestsPigeonTestFillerEnum71; - -/** - * CoreTestsPigeonTestFillerEnum72: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM72_FILLER_MEMBER72: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM72_FILLER_MEMBER72 = 0 -} CoreTestsPigeonTestFillerEnum72; - -/** - * CoreTestsPigeonTestFillerEnum73: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM73_FILLER_MEMBER73: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM73_FILLER_MEMBER73 = 0 -} CoreTestsPigeonTestFillerEnum73; - -/** - * CoreTestsPigeonTestFillerEnum74: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM74_FILLER_MEMBER74: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM74_FILLER_MEMBER74 = 0 -} CoreTestsPigeonTestFillerEnum74; - -/** - * CoreTestsPigeonTestFillerEnum75: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM75_FILLER_MEMBER75: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM75_FILLER_MEMBER75 = 0 -} CoreTestsPigeonTestFillerEnum75; - -/** - * CoreTestsPigeonTestFillerEnum76: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM76_FILLER_MEMBER76: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM76_FILLER_MEMBER76 = 0 -} CoreTestsPigeonTestFillerEnum76; - -/** - * CoreTestsPigeonTestFillerEnum77: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM77_FILLER_MEMBER77: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM77_FILLER_MEMBER77 = 0 -} CoreTestsPigeonTestFillerEnum77; - -/** - * CoreTestsPigeonTestFillerEnum78: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM78_FILLER_MEMBER78: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM78_FILLER_MEMBER78 = 0 -} CoreTestsPigeonTestFillerEnum78; - -/** - * CoreTestsPigeonTestFillerEnum79: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM79_FILLER_MEMBER79: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM79_FILLER_MEMBER79 = 0 -} CoreTestsPigeonTestFillerEnum79; - -/** - * CoreTestsPigeonTestFillerEnum80: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM80_FILLER_MEMBER80: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM80_FILLER_MEMBER80 = 0 -} CoreTestsPigeonTestFillerEnum80; - -/** - * CoreTestsPigeonTestFillerEnum81: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM81_FILLER_MEMBER81: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM81_FILLER_MEMBER81 = 0 -} CoreTestsPigeonTestFillerEnum81; - -/** - * CoreTestsPigeonTestFillerEnum82: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM82_FILLER_MEMBER82: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM82_FILLER_MEMBER82 = 0 -} CoreTestsPigeonTestFillerEnum82; - -/** - * CoreTestsPigeonTestFillerEnum83: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM83_FILLER_MEMBER83: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM83_FILLER_MEMBER83 = 0 -} CoreTestsPigeonTestFillerEnum83; - -/** - * CoreTestsPigeonTestFillerEnum84: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM84_FILLER_MEMBER84: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM84_FILLER_MEMBER84 = 0 -} CoreTestsPigeonTestFillerEnum84; - -/** - * CoreTestsPigeonTestFillerEnum85: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM85_FILLER_MEMBER85: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM85_FILLER_MEMBER85 = 0 -} CoreTestsPigeonTestFillerEnum85; - -/** - * CoreTestsPigeonTestFillerEnum86: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM86_FILLER_MEMBER86: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM86_FILLER_MEMBER86 = 0 -} CoreTestsPigeonTestFillerEnum86; - -/** - * CoreTestsPigeonTestFillerEnum87: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM87_FILLER_MEMBER87: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM87_FILLER_MEMBER87 = 0 -} CoreTestsPigeonTestFillerEnum87; - -/** - * CoreTestsPigeonTestFillerEnum88: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM88_FILLER_MEMBER88: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM88_FILLER_MEMBER88 = 0 -} CoreTestsPigeonTestFillerEnum88; - -/** - * CoreTestsPigeonTestFillerEnum89: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM89_FILLER_MEMBER89: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM89_FILLER_MEMBER89 = 0 -} CoreTestsPigeonTestFillerEnum89; - -/** - * CoreTestsPigeonTestFillerEnum90: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM90_FILLER_MEMBER90: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM90_FILLER_MEMBER90 = 0 -} CoreTestsPigeonTestFillerEnum90; - -/** - * CoreTestsPigeonTestFillerEnum91: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM91_FILLER_MEMBER91: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM91_FILLER_MEMBER91 = 0 -} CoreTestsPigeonTestFillerEnum91; - -/** - * CoreTestsPigeonTestFillerEnum92: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM92_FILLER_MEMBER92: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM92_FILLER_MEMBER92 = 0 -} CoreTestsPigeonTestFillerEnum92; - -/** - * CoreTestsPigeonTestFillerEnum93: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM93_FILLER_MEMBER93: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM93_FILLER_MEMBER93 = 0 -} CoreTestsPigeonTestFillerEnum93; - -/** - * CoreTestsPigeonTestFillerEnum94: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM94_FILLER_MEMBER94: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM94_FILLER_MEMBER94 = 0 -} CoreTestsPigeonTestFillerEnum94; - -/** - * CoreTestsPigeonTestFillerEnum95: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM95_FILLER_MEMBER95: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM95_FILLER_MEMBER95 = 0 -} CoreTestsPigeonTestFillerEnum95; - -/** - * CoreTestsPigeonTestFillerEnum96: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM96_FILLER_MEMBER96: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM96_FILLER_MEMBER96 = 0 -} CoreTestsPigeonTestFillerEnum96; - -/** - * CoreTestsPigeonTestFillerEnum97: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM97_FILLER_MEMBER97: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM97_FILLER_MEMBER97 = 0 -} CoreTestsPigeonTestFillerEnum97; - -/** - * CoreTestsPigeonTestFillerEnum98: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM98_FILLER_MEMBER98: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM98_FILLER_MEMBER98 = 0 -} CoreTestsPigeonTestFillerEnum98; - -/** - * CoreTestsPigeonTestFillerEnum99: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM99_FILLER_MEMBER99: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM99_FILLER_MEMBER99 = 0 -} CoreTestsPigeonTestFillerEnum99; - -/** - * CoreTestsPigeonTestFillerEnum100: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM100_FILLER_MEMBER100: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM100_FILLER_MEMBER100 = 0 -} CoreTestsPigeonTestFillerEnum100; - -/** - * CoreTestsPigeonTestFillerEnum101: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM101_FILLER_MEMBER101: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM101_FILLER_MEMBER101 = 0 -} CoreTestsPigeonTestFillerEnum101; - -/** - * CoreTestsPigeonTestFillerEnum102: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM102_FILLER_MEMBER102: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM102_FILLER_MEMBER102 = 0 -} CoreTestsPigeonTestFillerEnum102; - -/** - * CoreTestsPigeonTestFillerEnum103: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM103_FILLER_MEMBER103: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM103_FILLER_MEMBER103 = 0 -} CoreTestsPigeonTestFillerEnum103; - -/** - * CoreTestsPigeonTestFillerEnum104: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM104_FILLER_MEMBER104: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM104_FILLER_MEMBER104 = 0 -} CoreTestsPigeonTestFillerEnum104; - -/** - * CoreTestsPigeonTestFillerEnum105: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM105_FILLER_MEMBER105: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM105_FILLER_MEMBER105 = 0 -} CoreTestsPigeonTestFillerEnum105; - -/** - * CoreTestsPigeonTestFillerEnum106: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM106_FILLER_MEMBER106: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM106_FILLER_MEMBER106 = 0 -} CoreTestsPigeonTestFillerEnum106; - -/** - * CoreTestsPigeonTestFillerEnum107: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM107_FILLER_MEMBER107: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM107_FILLER_MEMBER107 = 0 -} CoreTestsPigeonTestFillerEnum107; - -/** - * CoreTestsPigeonTestFillerEnum108: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM108_FILLER_MEMBER108: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM108_FILLER_MEMBER108 = 0 -} CoreTestsPigeonTestFillerEnum108; - -/** - * CoreTestsPigeonTestFillerEnum109: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM109_FILLER_MEMBER109: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM109_FILLER_MEMBER109 = 0 -} CoreTestsPigeonTestFillerEnum109; - -/** - * CoreTestsPigeonTestFillerEnum110: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM110_FILLER_MEMBER110: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM110_FILLER_MEMBER110 = 0 -} CoreTestsPigeonTestFillerEnum110; - -/** - * CoreTestsPigeonTestFillerEnum111: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM111_FILLER_MEMBER111: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM111_FILLER_MEMBER111 = 0 -} CoreTestsPigeonTestFillerEnum111; - -/** - * CoreTestsPigeonTestFillerEnum112: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM112_FILLER_MEMBER112: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM112_FILLER_MEMBER112 = 0 -} CoreTestsPigeonTestFillerEnum112; - -/** - * CoreTestsPigeonTestFillerEnum113: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM113_FILLER_MEMBER113: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM113_FILLER_MEMBER113 = 0 -} CoreTestsPigeonTestFillerEnum113; - -/** - * CoreTestsPigeonTestFillerEnum114: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM114_FILLER_MEMBER114: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM114_FILLER_MEMBER114 = 0 -} CoreTestsPigeonTestFillerEnum114; - -/** - * CoreTestsPigeonTestFillerEnum115: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM115_FILLER_MEMBER115: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM115_FILLER_MEMBER115 = 0 -} CoreTestsPigeonTestFillerEnum115; - -/** - * CoreTestsPigeonTestFillerEnum116: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM116_FILLER_MEMBER116: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM116_FILLER_MEMBER116 = 0 -} CoreTestsPigeonTestFillerEnum116; - -/** - * CoreTestsPigeonTestFillerEnum117: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM117_FILLER_MEMBER117: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM117_FILLER_MEMBER117 = 0 -} CoreTestsPigeonTestFillerEnum117; - -/** - * CoreTestsPigeonTestFillerEnum118: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM118_FILLER_MEMBER118: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM118_FILLER_MEMBER118 = 0 -} CoreTestsPigeonTestFillerEnum118; - -/** - * CoreTestsPigeonTestFillerEnum119: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM119_FILLER_MEMBER119: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM119_FILLER_MEMBER119 = 0 -} CoreTestsPigeonTestFillerEnum119; - -/** - * CoreTestsPigeonTestFillerEnum120: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM120_FILLER_MEMBER120: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM120_FILLER_MEMBER120 = 0 -} CoreTestsPigeonTestFillerEnum120; - -/** - * CoreTestsPigeonTestFillerEnum121: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM121_FILLER_MEMBER121: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM121_FILLER_MEMBER121 = 0 -} CoreTestsPigeonTestFillerEnum121; - -/** - * CoreTestsPigeonTestFillerEnum122: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM122_FILLER_MEMBER122: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM122_FILLER_MEMBER122 = 0 -} CoreTestsPigeonTestFillerEnum122; - -/** - * CoreTestsPigeonTestFillerEnum123: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM123_FILLER_MEMBER123: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM123_FILLER_MEMBER123 = 0 -} CoreTestsPigeonTestFillerEnum123; - -/** - * CoreTestsPigeonTestFillerEnum124: - * PIGEON_INTEGRATION_TESTS_FILLER_ENUM124_FILLER_MEMBER124: - * - */ -typedef enum { - PIGEON_INTEGRATION_TESTS_FILLER_ENUM124_FILLER_MEMBER124 = 0 -} CoreTestsPigeonTestFillerEnum124; - /** * CoreTestsPigeonTestAnEnum: * PIGEON_INTEGRATION_TESTS_AN_ENUM_ONE: diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index 62d85b90732..fc4b2ac35b7 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -1878,7 +1878,8 @@ static CoreTestsPigeonTestHostIntegrationCoreApiVTable host_core_api_vtable = { .call_flutter_echo_nullable_list = call_flutter_echo_nullable_list, .call_flutter_echo_nullable_map = call_flutter_echo_nullable_map, .call_flutter_echo_nullable_enum = call_flutter_echo_nullable_enum, - .call_flutter_echo_another_nullable_enum = call_flutter_echo_another_nullable_enum, + .call_flutter_echo_another_nullable_enum = + call_flutter_echo_another_nullable_enum, .call_flutter_small_api_echo_string = call_flutter_small_api_echo_string}; static void echo(const gchar* a_string, diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index 5b350e29cea..1347218e0d9 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -74,506 +74,6 @@ private func nilOrValue(_ value: Any?) -> T? { return value as! T? } -enum FillerEnum0: Int { - case fillerMember0 = 0 -} - -enum FillerEnum1: Int { - case fillerMember1 = 0 -} - -enum FillerEnum2: Int { - case fillerMember2 = 0 -} - -enum FillerEnum3: Int { - case fillerMember3 = 0 -} - -enum FillerEnum4: Int { - case fillerMember4 = 0 -} - -enum FillerEnum5: Int { - case fillerMember5 = 0 -} - -enum FillerEnum6: Int { - case fillerMember6 = 0 -} - -enum FillerEnum7: Int { - case fillerMember7 = 0 -} - -enum FillerEnum8: Int { - case fillerMember8 = 0 -} - -enum FillerEnum9: Int { - case fillerMember9 = 0 -} - -enum FillerEnum10: Int { - case fillerMember10 = 0 -} - -enum FillerEnum11: Int { - case fillerMember11 = 0 -} - -enum FillerEnum12: Int { - case fillerMember12 = 0 -} - -enum FillerEnum13: Int { - case fillerMember13 = 0 -} - -enum FillerEnum14: Int { - case fillerMember14 = 0 -} - -enum FillerEnum15: Int { - case fillerMember15 = 0 -} - -enum FillerEnum16: Int { - case fillerMember16 = 0 -} - -enum FillerEnum17: Int { - case fillerMember17 = 0 -} - -enum FillerEnum18: Int { - case fillerMember18 = 0 -} - -enum FillerEnum19: Int { - case fillerMember19 = 0 -} - -enum FillerEnum20: Int { - case fillerMember20 = 0 -} - -enum FillerEnum21: Int { - case fillerMember21 = 0 -} - -enum FillerEnum22: Int { - case fillerMember22 = 0 -} - -enum FillerEnum23: Int { - case fillerMember23 = 0 -} - -enum FillerEnum24: Int { - case fillerMember24 = 0 -} - -enum FillerEnum25: Int { - case fillerMember25 = 0 -} - -enum FillerEnum26: Int { - case fillerMember26 = 0 -} - -enum FillerEnum27: Int { - case fillerMember27 = 0 -} - -enum FillerEnum28: Int { - case fillerMember28 = 0 -} - -enum FillerEnum29: Int { - case fillerMember29 = 0 -} - -enum FillerEnum30: Int { - case fillerMember30 = 0 -} - -enum FillerEnum31: Int { - case fillerMember31 = 0 -} - -enum FillerEnum32: Int { - case fillerMember32 = 0 -} - -enum FillerEnum33: Int { - case fillerMember33 = 0 -} - -enum FillerEnum34: Int { - case fillerMember34 = 0 -} - -enum FillerEnum35: Int { - case fillerMember35 = 0 -} - -enum FillerEnum36: Int { - case fillerMember36 = 0 -} - -enum FillerEnum37: Int { - case fillerMember37 = 0 -} - -enum FillerEnum38: Int { - case fillerMember38 = 0 -} - -enum FillerEnum39: Int { - case fillerMember39 = 0 -} - -enum FillerEnum40: Int { - case fillerMember40 = 0 -} - -enum FillerEnum41: Int { - case fillerMember41 = 0 -} - -enum FillerEnum42: Int { - case fillerMember42 = 0 -} - -enum FillerEnum43: Int { - case fillerMember43 = 0 -} - -enum FillerEnum44: Int { - case fillerMember44 = 0 -} - -enum FillerEnum45: Int { - case fillerMember45 = 0 -} - -enum FillerEnum46: Int { - case fillerMember46 = 0 -} - -enum FillerEnum47: Int { - case fillerMember47 = 0 -} - -enum FillerEnum48: Int { - case fillerMember48 = 0 -} - -enum FillerEnum49: Int { - case fillerMember49 = 0 -} - -enum FillerEnum50: Int { - case fillerMember50 = 0 -} - -enum FillerEnum51: Int { - case fillerMember51 = 0 -} - -enum FillerEnum52: Int { - case fillerMember52 = 0 -} - -enum FillerEnum53: Int { - case fillerMember53 = 0 -} - -enum FillerEnum54: Int { - case fillerMember54 = 0 -} - -enum FillerEnum55: Int { - case fillerMember55 = 0 -} - -enum FillerEnum56: Int { - case fillerMember56 = 0 -} - -enum FillerEnum57: Int { - case fillerMember57 = 0 -} - -enum FillerEnum58: Int { - case fillerMember58 = 0 -} - -enum FillerEnum59: Int { - case fillerMember59 = 0 -} - -enum FillerEnum60: Int { - case fillerMember60 = 0 -} - -enum FillerEnum61: Int { - case fillerMember61 = 0 -} - -enum FillerEnum62: Int { - case fillerMember62 = 0 -} - -enum FillerEnum63: Int { - case fillerMember63 = 0 -} - -enum FillerEnum64: Int { - case fillerMember64 = 0 -} - -enum FillerEnum65: Int { - case fillerMember65 = 0 -} - -enum FillerEnum66: Int { - case fillerMember66 = 0 -} - -enum FillerEnum67: Int { - case fillerMember67 = 0 -} - -enum FillerEnum68: Int { - case fillerMember68 = 0 -} - -enum FillerEnum69: Int { - case fillerMember69 = 0 -} - -enum FillerEnum70: Int { - case fillerMember70 = 0 -} - -enum FillerEnum71: Int { - case fillerMember71 = 0 -} - -enum FillerEnum72: Int { - case fillerMember72 = 0 -} - -enum FillerEnum73: Int { - case fillerMember73 = 0 -} - -enum FillerEnum74: Int { - case fillerMember74 = 0 -} - -enum FillerEnum75: Int { - case fillerMember75 = 0 -} - -enum FillerEnum76: Int { - case fillerMember76 = 0 -} - -enum FillerEnum77: Int { - case fillerMember77 = 0 -} - -enum FillerEnum78: Int { - case fillerMember78 = 0 -} - -enum FillerEnum79: Int { - case fillerMember79 = 0 -} - -enum FillerEnum80: Int { - case fillerMember80 = 0 -} - -enum FillerEnum81: Int { - case fillerMember81 = 0 -} - -enum FillerEnum82: Int { - case fillerMember82 = 0 -} - -enum FillerEnum83: Int { - case fillerMember83 = 0 -} - -enum FillerEnum84: Int { - case fillerMember84 = 0 -} - -enum FillerEnum85: Int { - case fillerMember85 = 0 -} - -enum FillerEnum86: Int { - case fillerMember86 = 0 -} - -enum FillerEnum87: Int { - case fillerMember87 = 0 -} - -enum FillerEnum88: Int { - case fillerMember88 = 0 -} - -enum FillerEnum89: Int { - case fillerMember89 = 0 -} - -enum FillerEnum90: Int { - case fillerMember90 = 0 -} - -enum FillerEnum91: Int { - case fillerMember91 = 0 -} - -enum FillerEnum92: Int { - case fillerMember92 = 0 -} - -enum FillerEnum93: Int { - case fillerMember93 = 0 -} - -enum FillerEnum94: Int { - case fillerMember94 = 0 -} - -enum FillerEnum95: Int { - case fillerMember95 = 0 -} - -enum FillerEnum96: Int { - case fillerMember96 = 0 -} - -enum FillerEnum97: Int { - case fillerMember97 = 0 -} - -enum FillerEnum98: Int { - case fillerMember98 = 0 -} - -enum FillerEnum99: Int { - case fillerMember99 = 0 -} - -enum FillerEnum100: Int { - case fillerMember100 = 0 -} - -enum FillerEnum101: Int { - case fillerMember101 = 0 -} - -enum FillerEnum102: Int { - case fillerMember102 = 0 -} - -enum FillerEnum103: Int { - case fillerMember103 = 0 -} - -enum FillerEnum104: Int { - case fillerMember104 = 0 -} - -enum FillerEnum105: Int { - case fillerMember105 = 0 -} - -enum FillerEnum106: Int { - case fillerMember106 = 0 -} - -enum FillerEnum107: Int { - case fillerMember107 = 0 -} - -enum FillerEnum108: Int { - case fillerMember108 = 0 -} - -enum FillerEnum109: Int { - case fillerMember109 = 0 -} - -enum FillerEnum110: Int { - case fillerMember110 = 0 -} - -enum FillerEnum111: Int { - case fillerMember111 = 0 -} - -enum FillerEnum112: Int { - case fillerMember112 = 0 -} - -enum FillerEnum113: Int { - case fillerMember113 = 0 -} - -enum FillerEnum114: Int { - case fillerMember114 = 0 -} - -enum FillerEnum115: Int { - case fillerMember115 = 0 -} - -enum FillerEnum116: Int { - case fillerMember116 = 0 -} - -enum FillerEnum117: Int { - case fillerMember117 = 0 -} - -enum FillerEnum118: Int { - case fillerMember118 = 0 -} - -enum FillerEnum119: Int { - case fillerMember119 = 0 -} - -enum FillerEnum120: Int { - case fillerMember120 = 0 -} - -enum FillerEnum121: Int { - case fillerMember121 = 0 -} - -enum FillerEnum122: Int { - case fillerMember122 = 0 -} - -enum FillerEnum123: Int { - case fillerMember123 = 0 -} - -enum FillerEnum124: Int { - case fillerMember124 = 0 -} - enum AnEnum: Int { case one = 0 case two = 1 @@ -1009,941 +509,33 @@ struct TestMessage { } } -// swift-format-ignore: TypeNamesShouldBeCapitalized -struct __pigeon_CodecOverflow { - var type: Int - var wrapped: Any? = nil - - func toList() -> [Any?] { - return [ - type, - wrapped, - ] - } - // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> Any? { - let type = __pigeon_list[0] as! Int - let wrapped: Any? = __pigeon_list[1] - - let wrapper = __pigeon_CodecOverflow( - type: type, - wrapped: wrapped - ) - - return wrapper.unwrap() - } - - func unwrap() -> Any? { - if wrapped == nil { - return nil - } - - switch type { - case 0: - return AnotherEnum(rawValue: wrapped as! Int) - case 1: - return AllTypes.fromList(wrapped as! [Any?]) - case 2: - return AllNullableTypes.fromList(wrapped as! [Any?]) - case 3: - return AllNullableTypesWithoutRecursion.fromList(wrapped as! [Any?]) - case 4: - return AllClassesWrapper.fromList(wrapped as! [Any?]) - case 5: - return TestMessage.fromList(wrapped as! [Any?]) - default: - return nil - } - } -} - -private class CoreTestsPigeonCodecReader: FlutterStandardReader { - override func readValue(ofType type: UInt8) -> Any? { - switch type { - case 129: - var enumResult: FillerEnum0? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum0(rawValue: enumResultAsInt) - } - return enumResult - case 130: - var enumResult: FillerEnum1? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum1(rawValue: enumResultAsInt) - } - return enumResult - case 131: - var enumResult: FillerEnum2? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum2(rawValue: enumResultAsInt) - } - return enumResult - case 132: - var enumResult: FillerEnum3? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum3(rawValue: enumResultAsInt) - } - return enumResult - case 133: - var enumResult: FillerEnum4? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum4(rawValue: enumResultAsInt) - } - return enumResult - case 134: - var enumResult: FillerEnum5? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum5(rawValue: enumResultAsInt) - } - return enumResult - case 135: - var enumResult: FillerEnum6? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum6(rawValue: enumResultAsInt) - } - return enumResult - case 136: - var enumResult: FillerEnum7? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum7(rawValue: enumResultAsInt) - } - return enumResult - case 137: - var enumResult: FillerEnum8? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum8(rawValue: enumResultAsInt) - } - return enumResult - case 138: - var enumResult: FillerEnum9? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum9(rawValue: enumResultAsInt) - } - return enumResult - case 139: - var enumResult: FillerEnum10? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum10(rawValue: enumResultAsInt) - } - return enumResult - case 140: - var enumResult: FillerEnum11? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum11(rawValue: enumResultAsInt) - } - return enumResult - case 141: - var enumResult: FillerEnum12? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum12(rawValue: enumResultAsInt) - } - return enumResult - case 142: - var enumResult: FillerEnum13? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum13(rawValue: enumResultAsInt) - } - return enumResult - case 143: - var enumResult: FillerEnum14? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum14(rawValue: enumResultAsInt) - } - return enumResult - case 144: - var enumResult: FillerEnum15? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum15(rawValue: enumResultAsInt) - } - return enumResult - case 145: - var enumResult: FillerEnum16? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum16(rawValue: enumResultAsInt) - } - return enumResult - case 146: - var enumResult: FillerEnum17? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum17(rawValue: enumResultAsInt) - } - return enumResult - case 147: - var enumResult: FillerEnum18? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum18(rawValue: enumResultAsInt) - } - return enumResult - case 148: - var enumResult: FillerEnum19? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum19(rawValue: enumResultAsInt) - } - return enumResult - case 149: - var enumResult: FillerEnum20? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum20(rawValue: enumResultAsInt) - } - return enumResult - case 150: - var enumResult: FillerEnum21? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum21(rawValue: enumResultAsInt) - } - return enumResult - case 151: - var enumResult: FillerEnum22? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum22(rawValue: enumResultAsInt) - } - return enumResult - case 152: - var enumResult: FillerEnum23? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum23(rawValue: enumResultAsInt) - } - return enumResult - case 153: - var enumResult: FillerEnum24? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum24(rawValue: enumResultAsInt) - } - return enumResult - case 154: - var enumResult: FillerEnum25? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum25(rawValue: enumResultAsInt) - } - return enumResult - case 155: - var enumResult: FillerEnum26? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum26(rawValue: enumResultAsInt) - } - return enumResult - case 156: - var enumResult: FillerEnum27? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum27(rawValue: enumResultAsInt) - } - return enumResult - case 157: - var enumResult: FillerEnum28? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum28(rawValue: enumResultAsInt) - } - return enumResult - case 158: - var enumResult: FillerEnum29? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum29(rawValue: enumResultAsInt) - } - return enumResult - case 159: - var enumResult: FillerEnum30? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum30(rawValue: enumResultAsInt) - } - return enumResult - case 160: - var enumResult: FillerEnum31? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum31(rawValue: enumResultAsInt) - } - return enumResult - case 161: - var enumResult: FillerEnum32? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum32(rawValue: enumResultAsInt) - } - return enumResult - case 162: - var enumResult: FillerEnum33? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum33(rawValue: enumResultAsInt) - } - return enumResult - case 163: - var enumResult: FillerEnum34? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum34(rawValue: enumResultAsInt) - } - return enumResult - case 164: - var enumResult: FillerEnum35? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum35(rawValue: enumResultAsInt) - } - return enumResult - case 165: - var enumResult: FillerEnum36? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum36(rawValue: enumResultAsInt) - } - return enumResult - case 166: - var enumResult: FillerEnum37? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum37(rawValue: enumResultAsInt) - } - return enumResult - case 167: - var enumResult: FillerEnum38? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum38(rawValue: enumResultAsInt) - } - return enumResult - case 168: - var enumResult: FillerEnum39? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum39(rawValue: enumResultAsInt) - } - return enumResult - case 169: - var enumResult: FillerEnum40? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum40(rawValue: enumResultAsInt) - } - return enumResult - case 170: - var enumResult: FillerEnum41? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum41(rawValue: enumResultAsInt) - } - return enumResult - case 171: - var enumResult: FillerEnum42? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum42(rawValue: enumResultAsInt) - } - return enumResult - case 172: - var enumResult: FillerEnum43? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum43(rawValue: enumResultAsInt) - } - return enumResult - case 173: - var enumResult: FillerEnum44? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum44(rawValue: enumResultAsInt) - } - return enumResult - case 174: - var enumResult: FillerEnum45? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum45(rawValue: enumResultAsInt) - } - return enumResult - case 175: - var enumResult: FillerEnum46? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum46(rawValue: enumResultAsInt) - } - return enumResult - case 176: - var enumResult: FillerEnum47? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum47(rawValue: enumResultAsInt) - } - return enumResult - case 177: - var enumResult: FillerEnum48? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum48(rawValue: enumResultAsInt) - } - return enumResult - case 178: - var enumResult: FillerEnum49? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum49(rawValue: enumResultAsInt) - } - return enumResult - case 179: - var enumResult: FillerEnum50? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum50(rawValue: enumResultAsInt) - } - return enumResult - case 180: - var enumResult: FillerEnum51? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum51(rawValue: enumResultAsInt) - } - return enumResult - case 181: - var enumResult: FillerEnum52? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum52(rawValue: enumResultAsInt) - } - return enumResult - case 182: - var enumResult: FillerEnum53? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum53(rawValue: enumResultAsInt) - } - return enumResult - case 183: - var enumResult: FillerEnum54? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum54(rawValue: enumResultAsInt) - } - return enumResult - case 184: - var enumResult: FillerEnum55? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum55(rawValue: enumResultAsInt) - } - return enumResult - case 185: - var enumResult: FillerEnum56? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum56(rawValue: enumResultAsInt) - } - return enumResult - case 186: - var enumResult: FillerEnum57? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum57(rawValue: enumResultAsInt) - } - return enumResult - case 187: - var enumResult: FillerEnum58? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum58(rawValue: enumResultAsInt) - } - return enumResult - case 188: - var enumResult: FillerEnum59? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum59(rawValue: enumResultAsInt) - } - return enumResult - case 189: - var enumResult: FillerEnum60? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum60(rawValue: enumResultAsInt) - } - return enumResult - case 190: - var enumResult: FillerEnum61? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum61(rawValue: enumResultAsInt) - } - return enumResult - case 191: - var enumResult: FillerEnum62? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum62(rawValue: enumResultAsInt) - } - return enumResult - case 192: - var enumResult: FillerEnum63? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum63(rawValue: enumResultAsInt) - } - return enumResult - case 193: - var enumResult: FillerEnum64? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum64(rawValue: enumResultAsInt) - } - return enumResult - case 194: - var enumResult: FillerEnum65? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum65(rawValue: enumResultAsInt) - } - return enumResult - case 195: - var enumResult: FillerEnum66? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum66(rawValue: enumResultAsInt) - } - return enumResult - case 196: - var enumResult: FillerEnum67? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum67(rawValue: enumResultAsInt) - } - return enumResult - case 197: - var enumResult: FillerEnum68? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum68(rawValue: enumResultAsInt) - } - return enumResult - case 198: - var enumResult: FillerEnum69? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum69(rawValue: enumResultAsInt) - } - return enumResult - case 199: - var enumResult: FillerEnum70? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum70(rawValue: enumResultAsInt) - } - return enumResult - case 200: - var enumResult: FillerEnum71? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum71(rawValue: enumResultAsInt) - } - return enumResult - case 201: - var enumResult: FillerEnum72? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum72(rawValue: enumResultAsInt) - } - return enumResult - case 202: - var enumResult: FillerEnum73? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum73(rawValue: enumResultAsInt) - } - return enumResult - case 203: - var enumResult: FillerEnum74? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum74(rawValue: enumResultAsInt) - } - return enumResult - case 204: - var enumResult: FillerEnum75? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum75(rawValue: enumResultAsInt) - } - return enumResult - case 205: - var enumResult: FillerEnum76? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum76(rawValue: enumResultAsInt) - } - return enumResult - case 206: - var enumResult: FillerEnum77? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum77(rawValue: enumResultAsInt) - } - return enumResult - case 207: - var enumResult: FillerEnum78? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum78(rawValue: enumResultAsInt) - } - return enumResult - case 208: - var enumResult: FillerEnum79? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum79(rawValue: enumResultAsInt) - } - return enumResult - case 209: - var enumResult: FillerEnum80? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum80(rawValue: enumResultAsInt) - } - return enumResult - case 210: - var enumResult: FillerEnum81? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum81(rawValue: enumResultAsInt) - } - return enumResult - case 211: - var enumResult: FillerEnum82? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum82(rawValue: enumResultAsInt) - } - return enumResult - case 212: - var enumResult: FillerEnum83? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum83(rawValue: enumResultAsInt) - } - return enumResult - case 213: - var enumResult: FillerEnum84? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum84(rawValue: enumResultAsInt) - } - return enumResult - case 214: - var enumResult: FillerEnum85? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum85(rawValue: enumResultAsInt) - } - return enumResult - case 215: - var enumResult: FillerEnum86? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum86(rawValue: enumResultAsInt) - } - return enumResult - case 216: - var enumResult: FillerEnum87? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum87(rawValue: enumResultAsInt) - } - return enumResult - case 217: - var enumResult: FillerEnum88? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum88(rawValue: enumResultAsInt) - } - return enumResult - case 218: - var enumResult: FillerEnum89? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum89(rawValue: enumResultAsInt) - } - return enumResult - case 219: - var enumResult: FillerEnum90? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum90(rawValue: enumResultAsInt) - } - return enumResult - case 220: - var enumResult: FillerEnum91? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum91(rawValue: enumResultAsInt) - } - return enumResult - case 221: - var enumResult: FillerEnum92? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum92(rawValue: enumResultAsInt) - } - return enumResult - case 222: - var enumResult: FillerEnum93? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum93(rawValue: enumResultAsInt) - } - return enumResult - case 223: - var enumResult: FillerEnum94? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum94(rawValue: enumResultAsInt) - } - return enumResult - case 224: - var enumResult: FillerEnum95? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum95(rawValue: enumResultAsInt) - } - return enumResult - case 225: - var enumResult: FillerEnum96? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum96(rawValue: enumResultAsInt) - } - return enumResult - case 226: - var enumResult: FillerEnum97? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum97(rawValue: enumResultAsInt) - } - return enumResult - case 227: - var enumResult: FillerEnum98? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum98(rawValue: enumResultAsInt) - } - return enumResult - case 228: - var enumResult: FillerEnum99? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum99(rawValue: enumResultAsInt) - } - return enumResult - case 229: - var enumResult: FillerEnum100? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum100(rawValue: enumResultAsInt) - } - return enumResult - case 230: - var enumResult: FillerEnum101? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum101(rawValue: enumResultAsInt) - } - return enumResult - case 231: - var enumResult: FillerEnum102? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum102(rawValue: enumResultAsInt) - } - return enumResult - case 232: - var enumResult: FillerEnum103? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum103(rawValue: enumResultAsInt) - } - return enumResult - case 233: - var enumResult: FillerEnum104? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum104(rawValue: enumResultAsInt) - } - return enumResult - case 234: - var enumResult: FillerEnum105? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum105(rawValue: enumResultAsInt) - } - return enumResult - case 235: - var enumResult: FillerEnum106? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum106(rawValue: enumResultAsInt) - } - return enumResult - case 236: - var enumResult: FillerEnum107? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum107(rawValue: enumResultAsInt) - } - return enumResult - case 237: - var enumResult: FillerEnum108? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum108(rawValue: enumResultAsInt) - } - return enumResult - case 238: - var enumResult: FillerEnum109? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum109(rawValue: enumResultAsInt) - } - return enumResult - case 239: - var enumResult: FillerEnum110? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum110(rawValue: enumResultAsInt) - } - return enumResult - case 240: - var enumResult: FillerEnum111? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum111(rawValue: enumResultAsInt) - } - return enumResult - case 241: - var enumResult: FillerEnum112? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum112(rawValue: enumResultAsInt) - } - return enumResult - case 242: - var enumResult: FillerEnum113? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum113(rawValue: enumResultAsInt) - } - return enumResult - case 243: - var enumResult: FillerEnum114? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum114(rawValue: enumResultAsInt) - } - return enumResult - case 244: - var enumResult: FillerEnum115? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum115(rawValue: enumResultAsInt) - } - return enumResult - case 245: - var enumResult: FillerEnum116? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum116(rawValue: enumResultAsInt) - } - return enumResult - case 246: - var enumResult: FillerEnum117? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum117(rawValue: enumResultAsInt) - } - return enumResult - case 247: - var enumResult: FillerEnum118? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum118(rawValue: enumResultAsInt) - } - return enumResult - case 248: - var enumResult: FillerEnum119? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum119(rawValue: enumResultAsInt) - } - return enumResult - case 249: - var enumResult: FillerEnum120? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum120(rawValue: enumResultAsInt) - } - return enumResult - case 250: - var enumResult: FillerEnum121? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum121(rawValue: enumResultAsInt) - } - return enumResult - case 251: - var enumResult: FillerEnum122? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum122(rawValue: enumResultAsInt) - } - return enumResult - case 252: - var enumResult: FillerEnum123? = nil - let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) - if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum123(rawValue: enumResultAsInt) - } - return enumResult - case 253: - var enumResult: FillerEnum124? = nil +private class CoreTestsPigeonCodecReader: FlutterStandardReader { + override func readValue(ofType type: UInt8) -> Any? { + switch type { + case 129: + var enumResult: AnEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = FillerEnum124(rawValue: enumResultAsInt) + enumResult = AnEnum(rawValue: enumResultAsInt) } return enumResult - case 254: - var enumResult: AnEnum? = nil + case 130: + var enumResult: AnotherEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnEnum(rawValue: enumResultAsInt) + enumResult = AnotherEnum(rawValue: enumResultAsInt) } return enumResult - case 255: - return __pigeon_CodecOverflow.fromList(self.readValue() as! [Any?]) + case 131: + return AllTypes.fromList(self.readValue() as! [Any?]) + case 132: + return AllNullableTypes.fromList(self.readValue() as! [Any?]) + case 133: + return AllNullableTypesWithoutRecursion.fromList(self.readValue() as! [Any?]) + case 134: + return AllClassesWrapper.fromList(self.readValue() as! [Any?]) + case 135: + return TestMessage.fromList(self.readValue() as! [Any?]) default: return super.readValue(ofType: type) } @@ -1952,408 +544,27 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { private class CoreTestsPigeonCodecWriter: FlutterStandardWriter { override func writeValue(_ value: Any) { - if let value = value as? FillerEnum0 { + if let value = value as? AnEnum { super.writeByte(129) super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum1 { + } else if let value = value as? AnotherEnum { super.writeByte(130) super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum2 { - super.writeByte(131) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum3 { - super.writeByte(132) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum4 { - super.writeByte(133) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum5 { - super.writeByte(134) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum6 { - super.writeByte(135) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum7 { - super.writeByte(136) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum8 { - super.writeByte(137) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum9 { - super.writeByte(138) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum10 { - super.writeByte(139) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum11 { - super.writeByte(140) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum12 { - super.writeByte(141) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum13 { - super.writeByte(142) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum14 { - super.writeByte(143) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum15 { - super.writeByte(144) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum16 { - super.writeByte(145) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum17 { - super.writeByte(146) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum18 { - super.writeByte(147) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum19 { - super.writeByte(148) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum20 { - super.writeByte(149) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum21 { - super.writeByte(150) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum22 { - super.writeByte(151) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum23 { - super.writeByte(152) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum24 { - super.writeByte(153) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum25 { - super.writeByte(154) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum26 { - super.writeByte(155) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum27 { - super.writeByte(156) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum28 { - super.writeByte(157) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum29 { - super.writeByte(158) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum30 { - super.writeByte(159) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum31 { - super.writeByte(160) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum32 { - super.writeByte(161) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum33 { - super.writeByte(162) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum34 { - super.writeByte(163) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum35 { - super.writeByte(164) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum36 { - super.writeByte(165) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum37 { - super.writeByte(166) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum38 { - super.writeByte(167) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum39 { - super.writeByte(168) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum40 { - super.writeByte(169) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum41 { - super.writeByte(170) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum42 { - super.writeByte(171) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum43 { - super.writeByte(172) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum44 { - super.writeByte(173) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum45 { - super.writeByte(174) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum46 { - super.writeByte(175) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum47 { - super.writeByte(176) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum48 { - super.writeByte(177) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum49 { - super.writeByte(178) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum50 { - super.writeByte(179) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum51 { - super.writeByte(180) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum52 { - super.writeByte(181) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum53 { - super.writeByte(182) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum54 { - super.writeByte(183) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum55 { - super.writeByte(184) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum56 { - super.writeByte(185) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum57 { - super.writeByte(186) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum58 { - super.writeByte(187) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum59 { - super.writeByte(188) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum60 { - super.writeByte(189) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum61 { - super.writeByte(190) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum62 { - super.writeByte(191) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum63 { - super.writeByte(192) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum64 { - super.writeByte(193) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum65 { - super.writeByte(194) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum66 { - super.writeByte(195) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum67 { - super.writeByte(196) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum68 { - super.writeByte(197) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum69 { - super.writeByte(198) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum70 { - super.writeByte(199) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum71 { - super.writeByte(200) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum72 { - super.writeByte(201) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum73 { - super.writeByte(202) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum74 { - super.writeByte(203) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum75 { - super.writeByte(204) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum76 { - super.writeByte(205) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum77 { - super.writeByte(206) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum78 { - super.writeByte(207) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum79 { - super.writeByte(208) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum80 { - super.writeByte(209) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum81 { - super.writeByte(210) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum82 { - super.writeByte(211) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum83 { - super.writeByte(212) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum84 { - super.writeByte(213) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum85 { - super.writeByte(214) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum86 { - super.writeByte(215) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum87 { - super.writeByte(216) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum88 { - super.writeByte(217) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum89 { - super.writeByte(218) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum90 { - super.writeByte(219) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum91 { - super.writeByte(220) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum92 { - super.writeByte(221) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum93 { - super.writeByte(222) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum94 { - super.writeByte(223) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum95 { - super.writeByte(224) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum96 { - super.writeByte(225) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum97 { - super.writeByte(226) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum98 { - super.writeByte(227) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum99 { - super.writeByte(228) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum100 { - super.writeByte(229) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum101 { - super.writeByte(230) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum102 { - super.writeByte(231) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum103 { - super.writeByte(232) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum104 { - super.writeByte(233) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum105 { - super.writeByte(234) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum106 { - super.writeByte(235) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum107 { - super.writeByte(236) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum108 { - super.writeByte(237) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum109 { - super.writeByte(238) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum110 { - super.writeByte(239) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum111 { - super.writeByte(240) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum112 { - super.writeByte(241) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum113 { - super.writeByte(242) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum114 { - super.writeByte(243) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum115 { - super.writeByte(244) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum116 { - super.writeByte(245) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum117 { - super.writeByte(246) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum118 { - super.writeByte(247) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum119 { - super.writeByte(248) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum120 { - super.writeByte(249) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum121 { - super.writeByte(250) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum122 { - super.writeByte(251) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum123 { - super.writeByte(252) - super.writeValue(value.rawValue) - } else if let value = value as? FillerEnum124 { - super.writeByte(253) - super.writeValue(value.rawValue) - } else if let value = value as? AnEnum { - super.writeByte(254) - super.writeValue(value.rawValue) - } else if let value = value as? AnotherEnum { - let wrap = __pigeon_CodecOverflow(type: 0, wrapped: value.rawValue) - super.writeByte(255) - super.writeValue(wrap.toList()) } else if let value = value as? AllTypes { - let wrap = __pigeon_CodecOverflow(type: 1, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(131) + super.writeValue(value.toList()) } else if let value = value as? AllNullableTypes { - let wrap = __pigeon_CodecOverflow(type: 2, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(132) + super.writeValue(value.toList()) } else if let value = value as? AllNullableTypesWithoutRecursion { - let wrap = __pigeon_CodecOverflow(type: 3, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(133) + super.writeValue(value.toList()) } else if let value = value as? AllClassesWrapper { - let wrap = __pigeon_CodecOverflow(type: 4, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(134) + super.writeValue(value.toList()) } else if let value = value as? TestMessage { - let wrap = __pigeon_CodecOverflow(type: 5, wrapped: value.toList()) - super.writeByte(255) - super.writeValue(wrap.toList()) + super.writeByte(135) + super.writeValue(value.toList()) } else { super.writeValue(value) } diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 833f3708e23..1d200e37417 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -1591,74 +1591,6 @@ TestMessage TestMessage::FromEncodableList(const EncodableList& list) { return decoded; } -__pigeon_CodecOverflow::__pigeon_CodecOverflow(int64_t type, - const EncodableValue& wrapped) - : type_(type), wrapped_(wrapped) {} - -int64_t __pigeon_CodecOverflow::type() const { return type_; } - -void __pigeon_CodecOverflow::set_type(int64_t value_arg) { type_ = value_arg; } - -const EncodableValue& __pigeon_CodecOverflow::wrapped() const { - return wrapped_; -} - -void __pigeon_CodecOverflow::set_wrapped(const EncodableValue& value_arg) { - wrapped_ = value_arg; -} - -EncodableList __pigeon_CodecOverflow::ToEncodableList() const { - EncodableList list; - list.reserve(2); - list.push_back(EncodableValue(type_)); - list.push_back(wrapped_); - return list; -} - -EncodableValue __pigeon_CodecOverflow::FromEncodableList( - const EncodableList& list) { - return __pigeon_CodecOverflow(list[0].LongValue(), - list[1].IsNull() ? EncodableValue() : list[1]) - .Unwrap(); -} -EncodableValue __pigeon_CodecOverflow::Unwrap() { - if (wrapped_.IsNull()) { - return EncodableValue(); - } - switch (type_) { - case 0: { - const auto& encodable_enum_arg = wrapped_; - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 1: { - return CustomEncodableValue( - AllTypes::FromEncodableList(std::get(wrapped_))); - } - case 2: { - return CustomEncodableValue(AllNullableTypes::FromEncodableList( - std::get(wrapped_))); - } - case 3: { - return CustomEncodableValue( - AllNullableTypesWithoutRecursion::FromEncodableList( - std::get(wrapped_))); - } - case 4: { - return CustomEncodableValue(AllClassesWrapper::FromEncodableList( - std::get(wrapped_))); - } - case 5: { - return CustomEncodableValue( - TestMessage::FromEncodableList(std::get(wrapped_))); - } - } - return EncodableValue(); -} PigeonCodecSerializer::PigeonCodecSerializer() {} EncodableValue PigeonCodecSerializer::ReadValueOfType( @@ -1670,8 +1602,7 @@ EncodableValue PigeonCodecSerializer::ReadValueOfType( encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); return encodable_enum_arg.IsNull() ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + : CustomEncodableValue(static_cast(enum_arg_value)); } case 130: { const auto& encodable_enum_arg = ReadValue(stream); @@ -1680,2076 +1611,87 @@ EncodableValue PigeonCodecSerializer::ReadValueOfType( return encodable_enum_arg.IsNull() ? EncodableValue() : CustomEncodableValue( - static_cast(enum_arg_value)); + static_cast(enum_arg_value)); } case 131: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + return CustomEncodableValue(AllTypes::FromEncodableList( + std::get(ReadValue(stream)))); } case 132: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + return CustomEncodableValue(AllNullableTypes::FromEncodableList( + std::get(ReadValue(stream)))); } case 133: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + return CustomEncodableValue( + AllNullableTypesWithoutRecursion::FromEncodableList( + std::get(ReadValue(stream)))); } case 134: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + return CustomEncodableValue(AllClassesWrapper::FromEncodableList( + std::get(ReadValue(stream)))); } case 135: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 136: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 137: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 138: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 139: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 140: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 141: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 142: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 143: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 144: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 145: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 146: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 147: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 148: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 149: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 150: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + return CustomEncodableValue(TestMessage::FromEncodableList( + std::get(ReadValue(stream)))); } - case 151: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + default: + return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); + } +} + +void PigeonCodecSerializer::WriteValue( + const EncodableValue& value, flutter::ByteStreamWriter* stream) const { + if (const CustomEncodableValue* custom_value = + std::get_if(&value)) { + if (custom_value->type() == typeid(AnEnum)) { + stream->WriteByte(129); + WriteValue(EncodableValue( + static_cast(std::any_cast(*custom_value))), + stream); + return; } - case 152: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + if (custom_value->type() == typeid(AnotherEnum)) { + stream->WriteByte(130); + WriteValue(EncodableValue(static_cast( + std::any_cast(*custom_value))), + stream); + return; } - case 153: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + if (custom_value->type() == typeid(AllTypes)) { + stream->WriteByte(131); + WriteValue(EncodableValue( + std::any_cast(*custom_value).ToEncodableList()), + stream); + return; } - case 154: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + if (custom_value->type() == typeid(AllNullableTypes)) { + stream->WriteByte(132); + WriteValue( + EncodableValue( + std::any_cast(*custom_value).ToEncodableList()), + stream); + return; } - case 155: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); + if (custom_value->type() == typeid(AllNullableTypesWithoutRecursion)) { + stream->WriteByte(133); + WriteValue(EncodableValue(std::any_cast( + *custom_value) + .ToEncodableList()), + stream); + return; } - case 156: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 157: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 158: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 159: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 160: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 161: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 162: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 163: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 164: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 165: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 166: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 167: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 168: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 169: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 170: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 171: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 172: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 173: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 174: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 175: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 176: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 177: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 178: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 179: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 180: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 181: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 182: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 183: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 184: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 185: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 186: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 187: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 188: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 189: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 190: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 191: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 192: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 193: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 194: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 195: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 196: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 197: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 198: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 199: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 200: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 201: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 202: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 203: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 204: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 205: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 206: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 207: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 208: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 209: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 210: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 211: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 212: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 213: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 214: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 215: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 216: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 217: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 218: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 219: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 220: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 221: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 222: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 223: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 224: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 225: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 226: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 227: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 228: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 229: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 230: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 231: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 232: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 233: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 234: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 235: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 236: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 237: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 238: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 239: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 240: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 241: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 242: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 243: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 244: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 245: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 246: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 247: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 248: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 249: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 250: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 251: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 252: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 253: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue( - static_cast(enum_arg_value)); - } - case 254: { - const auto& encodable_enum_arg = ReadValue(stream); - const int64_t enum_arg_value = - encodable_enum_arg.IsNull() ? 0 : encodable_enum_arg.LongValue(); - return encodable_enum_arg.IsNull() - ? EncodableValue() - : CustomEncodableValue(static_cast(enum_arg_value)); - } - case 255: { - return __pigeon_CodecOverflow::FromEncodableList( - std::get(ReadValue(stream))); - } - default: - return flutter::StandardCodecSerializer::ReadValueOfType(type, stream); - } -} - -void PigeonCodecSerializer::WriteValue( - const EncodableValue& value, flutter::ByteStreamWriter* stream) const { - if (const CustomEncodableValue* custom_value = - std::get_if(&value)) { - if (custom_value->type() == typeid(FillerEnum0)) { - stream->WriteByte(129); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum1)) { - stream->WriteByte(130); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum2)) { - stream->WriteByte(131); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum3)) { - stream->WriteByte(132); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum4)) { - stream->WriteByte(133); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum5)) { - stream->WriteByte(134); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum6)) { - stream->WriteByte(135); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum7)) { - stream->WriteByte(136); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum8)) { - stream->WriteByte(137); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum9)) { - stream->WriteByte(138); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum10)) { - stream->WriteByte(139); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum11)) { - stream->WriteByte(140); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum12)) { - stream->WriteByte(141); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum13)) { - stream->WriteByte(142); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum14)) { - stream->WriteByte(143); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum15)) { - stream->WriteByte(144); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum16)) { - stream->WriteByte(145); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum17)) { - stream->WriteByte(146); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum18)) { - stream->WriteByte(147); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum19)) { - stream->WriteByte(148); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum20)) { - stream->WriteByte(149); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum21)) { - stream->WriteByte(150); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum22)) { - stream->WriteByte(151); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum23)) { - stream->WriteByte(152); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum24)) { - stream->WriteByte(153); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum25)) { - stream->WriteByte(154); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum26)) { - stream->WriteByte(155); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum27)) { - stream->WriteByte(156); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum28)) { - stream->WriteByte(157); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum29)) { - stream->WriteByte(158); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum30)) { - stream->WriteByte(159); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum31)) { - stream->WriteByte(160); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum32)) { - stream->WriteByte(161); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum33)) { - stream->WriteByte(162); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum34)) { - stream->WriteByte(163); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum35)) { - stream->WriteByte(164); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum36)) { - stream->WriteByte(165); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum37)) { - stream->WriteByte(166); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum38)) { - stream->WriteByte(167); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum39)) { - stream->WriteByte(168); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum40)) { - stream->WriteByte(169); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum41)) { - stream->WriteByte(170); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum42)) { - stream->WriteByte(171); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum43)) { - stream->WriteByte(172); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum44)) { - stream->WriteByte(173); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum45)) { - stream->WriteByte(174); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum46)) { - stream->WriteByte(175); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum47)) { - stream->WriteByte(176); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum48)) { - stream->WriteByte(177); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum49)) { - stream->WriteByte(178); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum50)) { - stream->WriteByte(179); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum51)) { - stream->WriteByte(180); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum52)) { - stream->WriteByte(181); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum53)) { - stream->WriteByte(182); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum54)) { - stream->WriteByte(183); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum55)) { - stream->WriteByte(184); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum56)) { - stream->WriteByte(185); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum57)) { - stream->WriteByte(186); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum58)) { - stream->WriteByte(187); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum59)) { - stream->WriteByte(188); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum60)) { - stream->WriteByte(189); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum61)) { - stream->WriteByte(190); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum62)) { - stream->WriteByte(191); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum63)) { - stream->WriteByte(192); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum64)) { - stream->WriteByte(193); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum65)) { - stream->WriteByte(194); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum66)) { - stream->WriteByte(195); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum67)) { - stream->WriteByte(196); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum68)) { - stream->WriteByte(197); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum69)) { - stream->WriteByte(198); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum70)) { - stream->WriteByte(199); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum71)) { - stream->WriteByte(200); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum72)) { - stream->WriteByte(201); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum73)) { - stream->WriteByte(202); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum74)) { - stream->WriteByte(203); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum75)) { - stream->WriteByte(204); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum76)) { - stream->WriteByte(205); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum77)) { - stream->WriteByte(206); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum78)) { - stream->WriteByte(207); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum79)) { - stream->WriteByte(208); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum80)) { - stream->WriteByte(209); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum81)) { - stream->WriteByte(210); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum82)) { - stream->WriteByte(211); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum83)) { - stream->WriteByte(212); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum84)) { - stream->WriteByte(213); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum85)) { - stream->WriteByte(214); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum86)) { - stream->WriteByte(215); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum87)) { - stream->WriteByte(216); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum88)) { - stream->WriteByte(217); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum89)) { - stream->WriteByte(218); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum90)) { - stream->WriteByte(219); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum91)) { - stream->WriteByte(220); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum92)) { - stream->WriteByte(221); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum93)) { - stream->WriteByte(222); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum94)) { - stream->WriteByte(223); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum95)) { - stream->WriteByte(224); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum96)) { - stream->WriteByte(225); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum97)) { - stream->WriteByte(226); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum98)) { - stream->WriteByte(227); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum99)) { - stream->WriteByte(228); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum100)) { - stream->WriteByte(229); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum101)) { - stream->WriteByte(230); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum102)) { - stream->WriteByte(231); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum103)) { - stream->WriteByte(232); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum104)) { - stream->WriteByte(233); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum105)) { - stream->WriteByte(234); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum106)) { - stream->WriteByte(235); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum107)) { - stream->WriteByte(236); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum108)) { - stream->WriteByte(237); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum109)) { - stream->WriteByte(238); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum110)) { - stream->WriteByte(239); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum111)) { - stream->WriteByte(240); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum112)) { - stream->WriteByte(241); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum113)) { - stream->WriteByte(242); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum114)) { - stream->WriteByte(243); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum115)) { - stream->WriteByte(244); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum116)) { - stream->WriteByte(245); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum117)) { - stream->WriteByte(246); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum118)) { - stream->WriteByte(247); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum119)) { - stream->WriteByte(248); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum120)) { - stream->WriteByte(249); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum121)) { - stream->WriteByte(250); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum122)) { - stream->WriteByte(251); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum123)) { - stream->WriteByte(252); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(FillerEnum124)) { - stream->WriteByte(253); - WriteValue(EncodableValue(static_cast( - std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(AnEnum)) { - stream->WriteByte(254); - WriteValue(EncodableValue( - static_cast(std::any_cast(*custom_value))), - stream); - return; - } - if (custom_value->type() == typeid(AnotherEnum)) { - stream->WriteByte(255); - const auto& wrap = __pigeon_CodecOverflow( - 0, static_cast(std::any_cast(*custom_value))); - WriteValue( - EncodableValue( - std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), - stream); - return; - } - if (custom_value->type() == typeid(AllTypes)) { - stream->WriteByte(255); - const auto& wrap = __pigeon_CodecOverflow( - 1, std::any_cast(*custom_value).ToEncodableList()); - WriteValue( - EncodableValue( - std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), - stream); - return; - } - if (custom_value->type() == typeid(AllNullableTypes)) { - stream->WriteByte(255); - const auto& wrap = __pigeon_CodecOverflow( - 2, std::any_cast(*custom_value).ToEncodableList()); - WriteValue( - EncodableValue( - std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), - stream); - return; - } - if (custom_value->type() == typeid(AllNullableTypesWithoutRecursion)) { - stream->WriteByte(255); - const auto& wrap = __pigeon_CodecOverflow( - 3, std::any_cast(*custom_value) - .ToEncodableList()); - WriteValue( - EncodableValue( - std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), - stream); - return; - } - if (custom_value->type() == typeid(AllClassesWrapper)) { - stream->WriteByte(255); - const auto& wrap = __pigeon_CodecOverflow( - 4, std::any_cast(*custom_value).ToEncodableList()); - WriteValue( - EncodableValue( - std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), - stream); - return; + if (custom_value->type() == typeid(AllClassesWrapper)) { + stream->WriteByte(134); + WriteValue(EncodableValue(std::any_cast(*custom_value) + .ToEncodableList()), + stream); + return; } if (custom_value->type() == typeid(TestMessage)) { - stream->WriteByte(255); - const auto& wrap = __pigeon_CodecOverflow( - 5, std::any_cast(*custom_value).ToEncodableList()); + stream->WriteByte(135); WriteValue( EncodableValue( - std::any_cast<__pigeon_CodecOverflow>(wrap).ToEncodableList()), + std::any_cast(*custom_value).ToEncodableList()), stream); return; } diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index 481074109d2..d3c687b5ff5 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -65,256 +65,6 @@ class ErrorOr { std::variant v_; }; -enum class FillerEnum0 { kFillerMember0 = 0 }; - -enum class FillerEnum1 { kFillerMember1 = 0 }; - -enum class FillerEnum2 { kFillerMember2 = 0 }; - -enum class FillerEnum3 { kFillerMember3 = 0 }; - -enum class FillerEnum4 { kFillerMember4 = 0 }; - -enum class FillerEnum5 { kFillerMember5 = 0 }; - -enum class FillerEnum6 { kFillerMember6 = 0 }; - -enum class FillerEnum7 { kFillerMember7 = 0 }; - -enum class FillerEnum8 { kFillerMember8 = 0 }; - -enum class FillerEnum9 { kFillerMember9 = 0 }; - -enum class FillerEnum10 { kFillerMember10 = 0 }; - -enum class FillerEnum11 { kFillerMember11 = 0 }; - -enum class FillerEnum12 { kFillerMember12 = 0 }; - -enum class FillerEnum13 { kFillerMember13 = 0 }; - -enum class FillerEnum14 { kFillerMember14 = 0 }; - -enum class FillerEnum15 { kFillerMember15 = 0 }; - -enum class FillerEnum16 { kFillerMember16 = 0 }; - -enum class FillerEnum17 { kFillerMember17 = 0 }; - -enum class FillerEnum18 { kFillerMember18 = 0 }; - -enum class FillerEnum19 { kFillerMember19 = 0 }; - -enum class FillerEnum20 { kFillerMember20 = 0 }; - -enum class FillerEnum21 { kFillerMember21 = 0 }; - -enum class FillerEnum22 { kFillerMember22 = 0 }; - -enum class FillerEnum23 { kFillerMember23 = 0 }; - -enum class FillerEnum24 { kFillerMember24 = 0 }; - -enum class FillerEnum25 { kFillerMember25 = 0 }; - -enum class FillerEnum26 { kFillerMember26 = 0 }; - -enum class FillerEnum27 { kFillerMember27 = 0 }; - -enum class FillerEnum28 { kFillerMember28 = 0 }; - -enum class FillerEnum29 { kFillerMember29 = 0 }; - -enum class FillerEnum30 { kFillerMember30 = 0 }; - -enum class FillerEnum31 { kFillerMember31 = 0 }; - -enum class FillerEnum32 { kFillerMember32 = 0 }; - -enum class FillerEnum33 { kFillerMember33 = 0 }; - -enum class FillerEnum34 { kFillerMember34 = 0 }; - -enum class FillerEnum35 { kFillerMember35 = 0 }; - -enum class FillerEnum36 { kFillerMember36 = 0 }; - -enum class FillerEnum37 { kFillerMember37 = 0 }; - -enum class FillerEnum38 { kFillerMember38 = 0 }; - -enum class FillerEnum39 { kFillerMember39 = 0 }; - -enum class FillerEnum40 { kFillerMember40 = 0 }; - -enum class FillerEnum41 { kFillerMember41 = 0 }; - -enum class FillerEnum42 { kFillerMember42 = 0 }; - -enum class FillerEnum43 { kFillerMember43 = 0 }; - -enum class FillerEnum44 { kFillerMember44 = 0 }; - -enum class FillerEnum45 { kFillerMember45 = 0 }; - -enum class FillerEnum46 { kFillerMember46 = 0 }; - -enum class FillerEnum47 { kFillerMember47 = 0 }; - -enum class FillerEnum48 { kFillerMember48 = 0 }; - -enum class FillerEnum49 { kFillerMember49 = 0 }; - -enum class FillerEnum50 { kFillerMember50 = 0 }; - -enum class FillerEnum51 { kFillerMember51 = 0 }; - -enum class FillerEnum52 { kFillerMember52 = 0 }; - -enum class FillerEnum53 { kFillerMember53 = 0 }; - -enum class FillerEnum54 { kFillerMember54 = 0 }; - -enum class FillerEnum55 { kFillerMember55 = 0 }; - -enum class FillerEnum56 { kFillerMember56 = 0 }; - -enum class FillerEnum57 { kFillerMember57 = 0 }; - -enum class FillerEnum58 { kFillerMember58 = 0 }; - -enum class FillerEnum59 { kFillerMember59 = 0 }; - -enum class FillerEnum60 { kFillerMember60 = 0 }; - -enum class FillerEnum61 { kFillerMember61 = 0 }; - -enum class FillerEnum62 { kFillerMember62 = 0 }; - -enum class FillerEnum63 { kFillerMember63 = 0 }; - -enum class FillerEnum64 { kFillerMember64 = 0 }; - -enum class FillerEnum65 { kFillerMember65 = 0 }; - -enum class FillerEnum66 { kFillerMember66 = 0 }; - -enum class FillerEnum67 { kFillerMember67 = 0 }; - -enum class FillerEnum68 { kFillerMember68 = 0 }; - -enum class FillerEnum69 { kFillerMember69 = 0 }; - -enum class FillerEnum70 { kFillerMember70 = 0 }; - -enum class FillerEnum71 { kFillerMember71 = 0 }; - -enum class FillerEnum72 { kFillerMember72 = 0 }; - -enum class FillerEnum73 { kFillerMember73 = 0 }; - -enum class FillerEnum74 { kFillerMember74 = 0 }; - -enum class FillerEnum75 { kFillerMember75 = 0 }; - -enum class FillerEnum76 { kFillerMember76 = 0 }; - -enum class FillerEnum77 { kFillerMember77 = 0 }; - -enum class FillerEnum78 { kFillerMember78 = 0 }; - -enum class FillerEnum79 { kFillerMember79 = 0 }; - -enum class FillerEnum80 { kFillerMember80 = 0 }; - -enum class FillerEnum81 { kFillerMember81 = 0 }; - -enum class FillerEnum82 { kFillerMember82 = 0 }; - -enum class FillerEnum83 { kFillerMember83 = 0 }; - -enum class FillerEnum84 { kFillerMember84 = 0 }; - -enum class FillerEnum85 { kFillerMember85 = 0 }; - -enum class FillerEnum86 { kFillerMember86 = 0 }; - -enum class FillerEnum87 { kFillerMember87 = 0 }; - -enum class FillerEnum88 { kFillerMember88 = 0 }; - -enum class FillerEnum89 { kFillerMember89 = 0 }; - -enum class FillerEnum90 { kFillerMember90 = 0 }; - -enum class FillerEnum91 { kFillerMember91 = 0 }; - -enum class FillerEnum92 { kFillerMember92 = 0 }; - -enum class FillerEnum93 { kFillerMember93 = 0 }; - -enum class FillerEnum94 { kFillerMember94 = 0 }; - -enum class FillerEnum95 { kFillerMember95 = 0 }; - -enum class FillerEnum96 { kFillerMember96 = 0 }; - -enum class FillerEnum97 { kFillerMember97 = 0 }; - -enum class FillerEnum98 { kFillerMember98 = 0 }; - -enum class FillerEnum99 { kFillerMember99 = 0 }; - -enum class FillerEnum100 { kFillerMember100 = 0 }; - -enum class FillerEnum101 { kFillerMember101 = 0 }; - -enum class FillerEnum102 { kFillerMember102 = 0 }; - -enum class FillerEnum103 { kFillerMember103 = 0 }; - -enum class FillerEnum104 { kFillerMember104 = 0 }; - -enum class FillerEnum105 { kFillerMember105 = 0 }; - -enum class FillerEnum106 { kFillerMember106 = 0 }; - -enum class FillerEnum107 { kFillerMember107 = 0 }; - -enum class FillerEnum108 { kFillerMember108 = 0 }; - -enum class FillerEnum109 { kFillerMember109 = 0 }; - -enum class FillerEnum110 { kFillerMember110 = 0 }; - -enum class FillerEnum111 { kFillerMember111 = 0 }; - -enum class FillerEnum112 { kFillerMember112 = 0 }; - -enum class FillerEnum113 { kFillerMember113 = 0 }; - -enum class FillerEnum114 { kFillerMember114 = 0 }; - -enum class FillerEnum115 { kFillerMember115 = 0 }; - -enum class FillerEnum116 { kFillerMember116 = 0 }; - -enum class FillerEnum117 { kFillerMember117 = 0 }; - -enum class FillerEnum118 { kFillerMember118 = 0 }; - -enum class FillerEnum119 { kFillerMember119 = 0 }; - -enum class FillerEnum120 { kFillerMember120 = 0 }; - -enum class FillerEnum121 { kFillerMember121 = 0 }; - -enum class FillerEnum122 { kFillerMember122 = 0 }; - -enum class FillerEnum123 { kFillerMember123 = 0 }; - -enum class FillerEnum124 { kFillerMember124 = 0 }; - enum class AnEnum { kOne = 0, kTwo = 1, @@ -403,7 +153,6 @@ class AllTypes { private: static AllTypes FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; - friend class __pigeon_CodecOverflow; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -565,7 +314,6 @@ class AllNullableTypes { private: static AllNullableTypes FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; - friend class __pigeon_CodecOverflow; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -720,7 +468,6 @@ class AllNullableTypesWithoutRecursion { static AllNullableTypesWithoutRecursion FromEncodableList( const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; - friend class __pigeon_CodecOverflow; friend class AllClassesWrapper; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; @@ -793,7 +540,6 @@ class AllClassesWrapper { static AllClassesWrapper FromEncodableList( const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; - friend class __pigeon_CodecOverflow; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; friend class HostTrivialApi; @@ -825,7 +571,6 @@ class TestMessage { private: static TestMessage FromEncodableList(const flutter::EncodableList& list); flutter::EncodableList ToEncodableList() const; - friend class __pigeon_CodecOverflow; friend class HostIntegrationCoreApi; friend class FlutterIntegrationCoreApi; friend class HostTrivialApi; @@ -836,35 +581,6 @@ class TestMessage { std::optional test_list_; }; -// Generated class from Pigeon that represents data sent in messages. -class __pigeon_CodecOverflow { - public: - // Constructs an object setting all fields. - explicit __pigeon_CodecOverflow(int64_t type, - const flutter::EncodableValue& wrapped); - - int64_t type() const; - void set_type(int64_t value_arg); - - const flutter::EncodableValue& wrapped() const; - void set_wrapped(const flutter::EncodableValue& value_arg); - - private: - static flutter::EncodableValue FromEncodableList( - const flutter::EncodableList& list); - flutter::EncodableList ToEncodableList() const; - flutter::EncodableValue Unwrap(); - friend class HostIntegrationCoreApi; - friend class FlutterIntegrationCoreApi; - friend class HostTrivialApi; - friend class HostSmallApi; - friend class FlutterSmallApi; - friend class PigeonCodecSerializer; - friend class CoreTestsTest; - int64_t type_; - flutter::EncodableValue wrapped_; -}; - class PigeonCodecSerializer : public flutter::StandardCodecSerializer { public: PigeonCodecSerializer(); From 0f46168bd435f89282d4a1a66a454b62ba4fdeba Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 5 Aug 2024 04:33:02 -0700 Subject: [PATCH 07/14] another method method cb method --- .../test_plugin/linux/test_plugin.cc | 37 ++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index fc4b2ac35b7..9c6e0d3ca3d 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -1690,6 +1690,41 @@ static void call_flutter_echo_nullable_enum( callback_data_new(self, response_handle)); } +static void echo_another_nullable_enum_cb(GObject* object, GAsyncResult* result, + gpointer user_data) { + g_autoptr(CallbackData) data = static_cast(user_data); + + g_autoptr(GError) error = nullptr; + g_autoptr( + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse) + response = + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( + CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(object), + result, &error); + if (response == nullptr) { + core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_another_nullable_enum( + data->response_handle, "Internal Error", error->message, nullptr); + return; + } + if (core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_is_error( + response)) { + core_tests_pigeon_test_host_integration_core_api_respond_error_call_flutter_echo_bool( + data->response_handle, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_code( + response), + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_message( + response), + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_error_details( + response)); + return; + } + + core_tests_pigeon_test_host_integration_core_api_respond_call_flutter_echo_another_nullable_enum( + data->response_handle, + core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_response_get_return_value( + response)); +} + static void call_flutter_echo_another_nullable_enum( CoreTestsPigeonTestAnotherEnum* another_enum, @@ -1699,7 +1734,7 @@ static void call_flutter_echo_another_nullable_enum( core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum( self->flutter_core_api, another_enum, self->cancellable, - echo_nullable_enum_cb, callback_data_new(self, response_handle)); + echo_another_nullable_enum_cb, callback_data_new(self, response_handle)); } static void small_api_two_echo_string_cb(GObject* object, GAsyncResult* result, From c4df8ca48d96e523359fd568afa488130e8c23a9 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 5 Aug 2024 06:53:21 -0700 Subject: [PATCH 08/14] another another --- packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc index 9c6e0d3ca3d..3c4689442dc 100644 --- a/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc +++ b/packages/pigeon/platform_tests/test_plugin/linux/test_plugin.cc @@ -1696,7 +1696,7 @@ static void echo_another_nullable_enum_cb(GObject* object, GAsyncResult* result, g_autoptr(GError) error = nullptr; g_autoptr( - CoreTestsPigeonTestFlutterIntegrationCoreApiEchoNullableEnumResponse) + CoreTestsPigeonTestFlutterIntegrationCoreApiEchoAnotherNullableEnumResponse) response = core_tests_pigeon_test_flutter_integration_core_api_echo_another_nullable_enum_finish( CORE_TESTS_PIGEON_TEST_FLUTTER_INTEGRATION_CORE_API(object), From 3800627f31877102a6228caf598e29e8abbcd0eb Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 6 Aug 2024 08:03:24 -0700 Subject: [PATCH 09/14] change internal prefix names and add more tests to avoid conflicts --- .../java/io/flutter/plugins/Messages.java | 10 +- .../flutter/pigeon_example_app/Messages.g.kt | 10 +- .../example/app/ios/Runner/Messages.g.swift | 15 +- .../example/app/lib/src/messages.g.dart | 104 +- .../example/app/macos/Runner/messages.g.m | 4 +- .../example/app/windows/runner/messages.g.cpp | 10 +- .../example/app/windows/runner/messages.g.h | 10 +- packages/pigeon/lib/cpp_generator.dart | 23 +- packages/pigeon/lib/dart_generator.dart | 16 +- packages/pigeon/lib/generator_tools.dart | 26 +- packages/pigeon/lib/java_generator.dart | 77 +- packages/pigeon/lib/kotlin_generator.dart | 14 +- packages/pigeon/lib/objc_generator.dart | 33 +- packages/pigeon/lib/pigeon_lib.dart | 102 +- packages/pigeon/lib/swift_generator.dart | 7 +- packages/pigeon/pigeons/core_tests.dart | 2 + .../CoreTests.java | 178 +- .../ios/Classes/CoreTests.gen.m | 20 +- .../macos/Classes/CoreTests.gen.m | 20 +- .../background_platform_channels.gen.dart | 38 +- .../lib/src/generated/core_tests.gen.dart | 2896 ++++++------- .../lib/src/generated/enum.gen.dart | 44 +- .../src/generated/flutter_unittests.gen.dart | 128 +- .../lib/src/generated/message.gen.dart | 108 +- .../lib/src/generated/multiple_arity.gen.dart | 44 +- .../src/generated/non_null_fields.gen.dart | 44 +- .../lib/src/generated/null_fields.gen.dart | 44 +- .../src/generated/nullable_returns.gen.dart | 172 +- .../lib/src/generated/primitive.gen.dart | 332 +- .../src/generated/proxy_api_tests.gen.dart | 3728 +++++++++-------- .../test/instance_manager_test.dart | 37 +- .../test/test_message.gen.dart | 18 +- .../com/example/test_plugin/CoreTests.gen.kt | 142 +- .../ios/Classes/CoreTests.gen.swift | 165 +- .../macos/Classes/CoreTests.gen.swift | 165 +- .../windows/pigeon/core_tests.gen.cpp | 16 +- .../windows/pigeon/core_tests.gen.h | 18 +- .../test_plugin/windows/test/pigeon_test.cpp | 2 +- packages/pigeon/test/dart/proxy_api_test.dart | 25 +- packages/pigeon/test/dart_generator_test.dart | 19 +- .../pigeon/test/kotlin_generator_test.dart | 16 +- .../pigeon/test/swift_generator_test.dart | 7 +- packages/pigeon/tool/generate.dart | 6 +- packages/pigeon/tool/shared/generation.dart | 10 +- packages/pigeon/tool/shared/test_runner.dart | 13 +- 45 files changed, 4495 insertions(+), 4423 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index be349a490d8..5f40277d029 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -207,15 +207,15 @@ ArrayList toList() { return toListResult; } - static @NonNull MessageData fromList(@NonNull ArrayList __pigeon_list) { + static @NonNull MessageData fromList(@NonNull ArrayList pigeon_list) { MessageData pigeonResult = new MessageData(); - Object name = __pigeon_list.get(0); + Object name = pigeon_list.get(0); pigeonResult.setName((String) name); - Object description = __pigeon_list.get(1); + Object description = pigeon_list.get(1); pigeonResult.setDescription((String) description); - Object code = __pigeon_list.get(2); + Object code = pigeon_list.get(2); pigeonResult.setCode((Code) code); - Object data = __pigeon_list.get(3); + Object data = pigeon_list.get(3); pigeonResult.setData((Map) data); return pigeonResult; } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index 9cccd953795..d893cb8fe00 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -66,11 +66,11 @@ data class MessageData( ) { companion object { @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): MessageData { - val name = __pigeon_list[0] as String? - val description = __pigeon_list[1] as String? - val code = __pigeon_list[2] as Code - val data = __pigeon_list[3] as Map + fun fromList(pigeon_list: List): MessageData { + val name = pigeon_list[0] as String? + val description = pigeon_list[1] as String? + val code = pigeon_list[2] as Code + val data = pigeon_list[3] as Map return MessageData(name, description, code, data) } } diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index db2a3a47a02..bb82c939c05 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -86,11 +86,11 @@ struct MessageData { var data: [String?: String?] // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> MessageData? { - let name: String? = nilOrValue(__pigeon_list[0]) - let description: String? = nilOrValue(__pigeon_list[1]) - let code = __pigeon_list[2] as! Code - let data = __pigeon_list[3] as! [String?: String?] + static func fromList(_ pigeon_list: [Any?]) -> MessageData? { + let name: String? = nilOrValue(pigeon_list[0]) + let description: String? = nilOrValue(pigeon_list[1]) + let code = pigeon_list[2] as! Code + let data = pigeon_list[3] as! [String?: String?] return MessageData( name: name, @@ -113,12 +113,11 @@ private class MessagesPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - var enumResult: Code? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = Code(rawValue: enumResultAsInt) + return Code(rawValue: enumResultAsInt) } - return enumResult + return nil case 130: return MessageData.fromList(self.readValue() as! [Any?]) default: diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index 3694211d472..e75106df4c4 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -105,99 +105,99 @@ class ExampleHostApi { /// BinaryMessenger will be used which routes to the host platform. ExampleHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future getHostLanguage() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } Future add(int a, int b) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([a, b]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([a, b]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } Future sendMessage(MessageData message) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([message]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([message]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } } @@ -215,15 +215,15 @@ abstract class MessageFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/example/app/macos/Runner/messages.g.m b/packages/pigeon/example/app/macos/Runner/messages.g.m index aacd7d146d1..cdf19a2849b 100644 --- a/packages/pigeon/example/app/macos/Runner/messages.g.m +++ b/packages/pigeon/example/app/macos/Runner/messages.g.m @@ -71,8 +71,8 @@ + (PGNMessageData *)fromList:(NSArray *)list { PGNMessageData *pigeonResult = [[PGNMessageData alloc] init]; pigeonResult.name = GetNullableObjectAtIndex(list, 0); pigeonResult.description = GetNullableObjectAtIndex(list, 1); - PGNCodeBox *anPGNCodeBox = GetNullableObjectAtIndex(list, 2); - pigeonResult.code = anPGNCodeBox.value; + PGNCodeBox *boxedPGNCode = GetNullableObjectAtIndex(list, 2); + pigeonResult.code = boxedPGNCode.value; pigeonResult.data = GetNullableObjectAtIndex(list, 3); return pigeonResult; } diff --git a/packages/pigeon/example/app/windows/runner/messages.g.cpp b/packages/pigeon/example/app/windows/runner/messages.g.cpp index d18434a97f2..f1643f87edc 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.cpp +++ b/packages/pigeon/example/app/windows/runner/messages.g.cpp @@ -102,9 +102,9 @@ MessageData MessageData::FromEncodableList(const EncodableList& list) { return decoded; } -PigeonCodecSerializer::PigeonCodecSerializer() {} +PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} -EncodableValue PigeonCodecSerializer::ReadValueOfType( +EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( uint8_t type, flutter::ByteStreamReader* stream) const { switch (type) { case 129: { @@ -124,7 +124,7 @@ EncodableValue PigeonCodecSerializer::ReadValueOfType( } } -void PigeonCodecSerializer::WriteValue( +void PigeonInternalCodecSerializer::WriteValue( const EncodableValue& value, flutter::ByteStreamWriter* stream) const { if (const CustomEncodableValue* custom_value = std::get_if(&value)) { @@ -150,7 +150,7 @@ void PigeonCodecSerializer::WriteValue( /// The codec used by ExampleHostApi. const flutter::StandardMessageCodec& ExampleHostApi::GetCodec() { return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); + &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `ExampleHostApi` to handle messages through the @@ -299,7 +299,7 @@ MessageFlutterApi::MessageFlutterApi(flutter::BinaryMessenger* binary_messenger, const flutter::StandardMessageCodec& MessageFlutterApi::GetCodec() { return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); + &PigeonInternalCodecSerializer::GetInstance()); } void MessageFlutterApi::FlutterMethod( diff --git a/packages/pigeon/example/app/windows/runner/messages.g.h b/packages/pigeon/example/app/windows/runner/messages.g.h index 3218b702d9b..7e0e261eb0c 100644 --- a/packages/pigeon/example/app/windows/runner/messages.g.h +++ b/packages/pigeon/example/app/windows/runner/messages.g.h @@ -90,18 +90,18 @@ class MessageData { flutter::EncodableList ToEncodableList() const; friend class ExampleHostApi; friend class MessageFlutterApi; - friend class PigeonCodecSerializer; + friend class PigeonInternalCodecSerializer; std::optional name_; std::optional description_; Code code_; flutter::EncodableMap data_; }; -class PigeonCodecSerializer : public flutter::StandardCodecSerializer { +class PigeonInternalCodecSerializer : public flutter::StandardCodecSerializer { public: - PigeonCodecSerializer(); - inline static PigeonCodecSerializer& GetInstance() { - static PigeonCodecSerializer sInstance; + PigeonInternalCodecSerializer(); + inline static PigeonInternalCodecSerializer& GetInstance() { + static PigeonInternalCodecSerializer sInstance; return sInstance; } diff --git a/packages/pigeon/lib/cpp_generator.dart b/packages/pigeon/lib/cpp_generator.dart index 80b7432937a..b2e38c965e9 100644 --- a/packages/pigeon/lib/cpp_generator.dart +++ b/packages/pigeon/lib/cpp_generator.dart @@ -21,9 +21,9 @@ const DocumentCommentSpecification _docCommentSpec = const String _standardCodecSerializer = 'flutter::StandardCodecSerializer'; /// The name of the codec serializer. -const String _codecSerializerName = 'PigeonCodecSerializer'; +const String _codecSerializerName = '${classNamePrefix}CodecSerializer'; -const String _overflowClassName = '${varNamePrefix}CodecOverflow'; +const String _overflowClassName = '${classNamePrefix}CodecOverflow'; final NamedType _overflowType = NamedType( name: 'type', @@ -255,7 +255,7 @@ class CppHeaderGenerator extends StructuredGenerator { indent, _overflowClass, dartPackageName: dartPackageName, - overflow: true, + isOverflowClass: true, ); } } @@ -267,7 +267,7 @@ class CppHeaderGenerator extends StructuredGenerator { Indent indent, Class classDefinition, { required String dartPackageName, - bool overflow = false, + bool isOverflowClass = false, }) { // When generating for a Pigeon unit test, add a test fixture friend class to // allow unit testing private methods, since testing serialization via public @@ -364,17 +364,18 @@ class CppHeaderGenerator extends StructuredGenerator { _writeAccessBlock(indent, _ClassAccess.private, () { _writeFunctionDeclaration(indent, 'FromEncodableList', - returnType: - overflow ? 'flutter::EncodableValue' : classDefinition.name, + returnType: isOverflowClass + ? 'flutter::EncodableValue' + : classDefinition.name, parameters: ['const flutter::EncodableList& list'], isStatic: true); _writeFunctionDeclaration(indent, 'ToEncodableList', returnType: 'flutter::EncodableList', isConst: true); - if (overflow) { + if (isOverflowClass) { _writeFunctionDeclaration(indent, 'Unwrap', returnType: 'flutter::EncodableValue'); } - if (!overflow && root.requiresOverflowClass) { + if (!isOverflowClass && root.requiresOverflowClass) { indent.writeln('friend class $_overflowClassName;'); } for (final Class friend in root.classes) { @@ -952,14 +953,14 @@ class CppSourceGenerator extends StructuredGenerator { ); indent.format(''' -EncodableValue __pigeon_CodecOverflow::FromEncodableList( +EncodableValue $_overflowClassName::FromEncodableList( const EncodableList& list) { - return __pigeon_CodecOverflow(list[0].LongValue(), + return $_overflowClassName(list[0].LongValue(), list[1].IsNull() ? EncodableValue() : list[1]) .Unwrap(); }'''); - indent.writeScoped('EncodableValue __pigeon_CodecOverflow::Unwrap() {', '}', + indent.writeScoped('EncodableValue $_overflowClassName::Unwrap() {', '}', () { indent.writeScoped('if (wrapped_.IsNull()) {', '}', () { indent.writeln('return EncodableValue();'); diff --git a/packages/pigeon/lib/dart_generator.dart b/packages/pigeon/lib/dart_generator.dart index 136c4771bae..8761cf28c72 100644 --- a/packages/pigeon/lib/dart_generator.dart +++ b/packages/pigeon/lib/dart_generator.dart @@ -32,6 +32,8 @@ const DocumentCommentSpecification _docCommentSpec = /// The custom codec used for all pigeon APIs. const String _pigeonCodec = '_PigeonCodec'; +const String _overflowClassName = '_PigeonCodecOverflow'; + /// Options that control how Dart code will be generated. class DartOptions { /// Constructor for DartOptions. @@ -297,7 +299,7 @@ class DartGenerator extends StructuredGenerator { ? '.encode()' : '.index'; indent.writeln( - 'final ${varNamePrefix}CodecOverflow wrap = ${varNamePrefix}CodecOverflow(type: ${customType.enumeration - maximumCodecFieldKey}, wrapped: value$encodeString);'); + 'final $_overflowClassName wrap = $_overflowClassName(type: ${customType.enumeration - maximumCodecFieldKey}, wrapped: value$encodeString);'); indent.writeln('buffer.putUint8($maximumCodecFieldKey);'); indent.writeln('writeValue(buffer, wrap.encode());'); } @@ -325,9 +327,7 @@ class DartGenerator extends StructuredGenerator { } final EnumeratedType overflowClass = EnumeratedType( - '${varNamePrefix}CodecOverflow', - maximumCodecFieldKey, - CustomTypes.customClass); + _overflowClassName, maximumCodecFieldKey, CustomTypes.customClass); indent.newln(); final List enumeratedTypes = @@ -994,9 +994,9 @@ PlatformException _createConnectionError(String channelName) { void _writeCodecOverflowUtilities(Indent indent, List types) { indent.newln(); indent.writeln('// ignore: camel_case_types'); - indent.writeScoped('class ${varNamePrefix}CodecOverflow {', '}', () { + indent.writeScoped('class $_overflowClassName {', '}', () { indent.format(''' -${varNamePrefix}CodecOverflow({required this.type, required this.wrapped}); +$_overflowClassName({required this.type, required this.wrapped}); int type; Object? wrapped; @@ -1005,9 +1005,9 @@ Object encode() { return [type, wrapped]; } -static ${varNamePrefix}CodecOverflow decode(Object result) { +static $_overflowClassName decode(Object result) { result as List; - return ${varNamePrefix}CodecOverflow( + return $_overflowClassName( type: result[0]! as int, wrapped: result[1], ); diff --git a/packages/pigeon/lib/generator_tools.dart b/packages/pigeon/lib/generator_tools.dart index 54e3288af4c..2a4497d923f 100644 --- a/packages/pigeon/lib/generator_tools.dart +++ b/packages/pigeon/lib/generator_tools.dart @@ -15,12 +15,6 @@ import 'ast.dart'; /// This must match the version in pubspec.yaml. const String pigeonVersion = '21.2.0'; -/// Prefix for all local variables in methods. -/// -/// This lowers the chances of variable name collisions with -/// user defined parameters. -const String varNamePrefix = '__pigeon_'; - /// Read all the content from [stdin] to a String. String readStdin() { final List bytes = []; @@ -297,11 +291,11 @@ String getGeneratedCodeWarning() { /// String to be printed after `getGeneratedCodeWarning()'s warning`. const String seeAlsoWarning = 'See also: https://pub.dev/packages/pigeon'; -/// Prefix for utility classes generated for ProxyApis. +/// Prefix for generated internal classes. /// /// This lowers the chances of variable name collisions with user defined /// parameters. -const String classNamePrefix = 'Pigeon'; +const String classNamePrefix = 'PigeonInternal'; /// Name for the generated InstanceManager for ProxyApis. /// @@ -313,7 +307,21 @@ const String instanceManagerClassName = '${classNamePrefix}InstanceManager'; /// /// This lowers the chances of variable name collisions with user defined /// parameters. -const String classMemberNamePrefix = 'pigeon_'; +const String classMemberNamePrefix = 'pigeonField_'; + +/// Prefix for variable names not defined by the user. +/// +/// This lowers the chances of variable name collisions with user defined +/// parameters. +const String varNamePrefix = 'pigeon_'; + +/// Prefixes that are not allowed for any names of any types or methods. +const List disallowedPrefixes = [ + classNamePrefix, + classMemberNamePrefix, + varNamePrefix, + 'pigeonChannelCodec' +]; /// Collection of keys used in dictionaries across generators. class Keys { diff --git a/packages/pigeon/lib/java_generator.dart b/packages/pigeon/lib/java_generator.dart index 980ca14e93b..1d4c83d6003 100644 --- a/packages/pigeon/lib/java_generator.dart +++ b/packages/pigeon/lib/java_generator.dart @@ -28,8 +28,9 @@ const DocumentCommentSpecification _docCommentSpec = /// The standard codec for Flutter, used for any non custom codecs and extended for custom codecs. const String _codecName = 'PigeonCodec'; -const String _overflowClassName = '${varNamePrefix}CodecOverflow'; +const String _overflowClassName = '${classNamePrefix}CodecOverflow'; +// Used to create classes with type Int rather than long. const String _forceInt = '${varNamePrefix}forceInt'; /// Options that control how Java code will be generated. @@ -293,9 +294,11 @@ class JavaGenerator extends StructuredGenerator { JavaOptions generatorOptions, Indent indent, Class classDefinition, - void Function() dataClassBody, - ) { - indent.write('public static final class ${classDefinition.name} '); + void Function() dataClassBody, { + bool private = false, + }) { + indent.write( + '${private ? 'private' : 'public'} static final class ${classDefinition.name} '); indent.addScoped('{', '}', () { for (final NamedType field in getFieldsInSerializationOrder(classDefinition)) { @@ -588,49 +591,53 @@ class JavaGenerator extends StructuredGenerator { final Class overflowClass = Class(name: _overflowClassName, fields: overflowFields); - _writeDataClassSignature(generatorOptions, indent, overflowClass, () { - writeClassEncode( - generatorOptions, - root, - indent, - overflowClass, - dartPackageName: dartPackageName, - ); + _writeDataClassSignature( + generatorOptions, + indent, + overflowClass, + () { + writeClassEncode( + generatorOptions, + root, + indent, + overflowClass, + dartPackageName: dartPackageName, + ); - indent.format(''' + indent.format(''' static @Nullable Object fromList(@NonNull ArrayList ${varNamePrefix}list) { $_overflowClassName wrapper = new $_overflowClassName(); - Object type = ${varNamePrefix}list.get(0); - wrapper.setType((int) type); - Object wrapped = ${varNamePrefix}list.get(1); - wrapper.setWrapped(wrapped); + wrapper.setType((int) ${varNamePrefix}list.get(0)); + wrapper.setWrapped(${varNamePrefix}list.get(1)); return wrapper.unwrap(); } '''); - indent.writeScoped('@Nullable Object unwrap() {', '}', () { - indent.format(''' + indent.writeScoped('@Nullable Object unwrap() {', '}', () { + indent.format(''' if (wrapped == null) { return null; } '''); - indent.writeScoped('switch (type) {', '}', () { - for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { - indent.writeln('case (${i - totalCustomCodecKeysAllowed}):'); - indent.nest(1, () { - if (types[i].type == CustomTypes.customClass) { - indent.writeln( - 'return ${types[i].name}.fromList((ArrayList) wrapped);'); - } else if (types[i].type == CustomTypes.customEnum) { - indent.writeln( - 'return ${types[i].name}.values()[(int) wrapped];'); - } - }); - } + indent.writeScoped('switch (type) {', '}', () { + for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { + indent.writeln('case ${i - totalCustomCodecKeysAllowed}:'); + indent.nest(1, () { + if (types[i].type == CustomTypes.customClass) { + indent.writeln( + 'return ${types[i].name}.fromList((ArrayList) wrapped);'); + } else if (types[i].type == CustomTypes.customEnum) { + indent.writeln( + 'return ${types[i].name}.values()[(int) wrapped];'); + } + }); + } + }); + indent.writeln('return null;'); }); - indent.writeln('return null;'); - }); - }); + }, + private: true, + ); } /// Writes the code for a flutter [Api], [api]. diff --git a/packages/pigeon/lib/kotlin_generator.dart b/packages/pigeon/lib/kotlin_generator.dart index 57057e3405b..df5e9455dd3 100644 --- a/packages/pigeon/lib/kotlin_generator.dart +++ b/packages/pigeon/lib/kotlin_generator.dart @@ -27,7 +27,7 @@ const DocumentCommentSpecification _docCommentSpec = String _codecName = 'PigeonCodec'; -const String _overflowClassName = '${varNamePrefix}CodecOverflow'; +const String _overflowClassName = '${classNamePrefix}CodecOverflow'; /// Options that control how Kotlin code will be generated. class KotlinOptions { @@ -203,8 +203,13 @@ class KotlinGenerator extends StructuredGenerator { }); } - void _writeDataClassSignature(Indent indent, Class classDefinition) { - indent.write('data class ${classDefinition.name} '); + void _writeDataClassSignature( + Indent indent, + Class classDefinition, { + bool private = false, + }) { + indent.write( + '${private ? 'private ' : ''}data class ${classDefinition.name} '); indent.addScoped('(', ')', () { for (final NamedType element in getFieldsInSerializationOrder(classDefinition)) { @@ -459,8 +464,7 @@ if (wrapped == null) { '''); indent.writeScoped('when (type) {', '}', () { for (int i = totalCustomCodecKeysAllowed; i < types.length; i++) { - indent.writeScoped('${i - totalCustomCodecKeysAllowed} -> {', '}', - () { + indent.writeScoped('${i - totalCustomCodecKeysAllowed} ->', '', () { if (types[i].type == CustomTypes.customClass) { indent.writeln( 'return ${types[i].name}.fromList(wrapped as List)'); diff --git a/packages/pigeon/lib/objc_generator.dart b/packages/pigeon/lib/objc_generator.dart index 1fa54531adb..31a62c855f0 100644 --- a/packages/pigeon/lib/objc_generator.dart +++ b/packages/pigeon/lib/objc_generator.dart @@ -15,7 +15,7 @@ const String _docCommentPrefix = '///'; const DocumentCommentSpecification _docCommentSpec = DocumentCommentSpecification(_docCommentPrefix); -const String _overflowClassName = '${varNamePrefix}CodecOverflow'; +const String _overflowClassName = '${classNamePrefix}CodecOverflow'; final NamedType _overflowInt = NamedType( name: 'type', @@ -625,7 +625,7 @@ class ObjcSourceGenerator extends StructuredGenerator { prefix: generatorOptions.prefix, ); ivarValueExpression = - 'an${_enumName(field.type.baseName, prefix: generatorOptions.prefix, box: true)}.value'; + 'boxed${_enumName(field.type.baseName, prefix: generatorOptions.prefix)}.value'; } else if (primitiveExtractionMethod != null) { ivarValueExpression = '[$valueGetter $primitiveExtractionMethod]'; } else { @@ -655,7 +655,7 @@ class ObjcSourceGenerator extends StructuredGenerator { indent, _overflowClass, returnType: 'id', - overflow: true, + isOverflowClass: true, ); indent.newln(); indent.writeln( @@ -697,7 +697,7 @@ if (self.wrapped == nil) { indent, types[i], generatorOptions.prefix ?? '', - overflow: true, + isOverflowClass: true, ); } indent.writeScoped('default: ', '', () { @@ -710,9 +710,9 @@ if (self.wrapped == nil) { void _writeCodecDecode( Indent indent, EnumeratedType customType, String? prefix, - {bool overflow = false}) { + {bool isOverflowClass = false}) { String readValue = '[self readValue]'; - if (overflow) { + if (isOverflowClass) { readValue = 'self.wrapped'; } if (customType.type == CustomTypes.customClass) { @@ -721,9 +721,10 @@ if (self.wrapped == nil) { 'return [${_className(prefix, customType.name)} fromList:$readValue];'); }, addTrailingNewline: false); } else if (customType.type == CustomTypes.customEnum) { - indent.addScoped(!overflow ? '{' : '', !overflow ? '}' : null, () { + indent.addScoped( + !isOverflowClass ? '{' : '', !isOverflowClass ? '}' : null, () { String enumAsNumber = 'enumAsNumber'; - if (!overflow) { + if (!isOverflowClass) { indent.writeln('NSNumber *$enumAsNumber = $readValue;'); indent.write('return $enumAsNumber == nil ? nil : '); } else { @@ -732,7 +733,7 @@ if (self.wrapped == nil) { } indent.addln( '[[${_enumName(customType.name, prefix: prefix, box: true)} alloc] initWithValue:[$enumAsNumber integerValue]];'); - }, addTrailingNewline: !overflow); + }, addTrailingNewline: !isOverflowClass); } } @@ -1167,16 +1168,20 @@ static FlutterError *createConnectionError(NSString *channelName) { } void _writeObjcSourceDataClassExtension( - ObjcOptions languageOptions, Indent indent, Class classDefinition, - {String? returnType, bool overflow = false}) { + ObjcOptions languageOptions, + Indent indent, + Class classDefinition, { + String? returnType, + bool isOverflowClass = false, + }) { final String className = _className(languageOptions.prefix, classDefinition.name); returnType = returnType ?? className; indent.newln(); indent.writeln('@interface $className ()'); indent.writeln( - '+ ($returnType${overflow ? '' : ' *'})fromList:(NSArray *)list;'); - if (!overflow) { + '+ ($returnType${isOverflowClass ? '' : ' *'})fromList:(NSArray *)list;'); + if (!isOverflowClass) { indent.writeln( '+ (nullable $returnType *)nullableFromList:(NSArray *)list;'); } @@ -1710,7 +1715,7 @@ void _writeEnumBoxToEnum( String? prefix = '', }) { indent.writeln( - '${_enumName(field.type.baseName, prefix: prefix, box: true, suffix: ' *')}an${_enumName(field.type.baseName, prefix: prefix, box: true)} = $valueGetter;'); + '${_enumName(field.type.baseName, prefix: prefix, box: true, suffix: ' *')}boxed${_enumName(field.type.baseName, prefix: prefix)} = $valueGetter;'); } String _getEnumToEnumBox( diff --git a/packages/pigeon/lib/pigeon_lib.dart b/packages/pigeon/lib/pigeon_lib.dart index 16ea91f415d..cabb9f9817a 100644 --- a/packages/pigeon/lib/pigeon_lib.dart +++ b/packages/pigeon/lib/pigeon_lib.dart @@ -66,7 +66,7 @@ const Object async = _Asynchronous(); /// /// ```dart /// class MyProxyApi { -/// final MyOtherProxyApi myField = __pigeon_myField(). +/// final MyOtherProxyApi myField = pigeon_myField(). /// } /// ``` /// @@ -845,6 +845,8 @@ class GObjectGeneratorAdapter implements GeneratorAdapter { @override List validate(PigeonOptions options, Root root) { final List errors = []; + // TODO(tarrinneal): Remove once overflow class is added to gobject generator. + // https://github.com/flutter/packages/pull/6840 if (root.classes.length + root.enums.length > totalCustomCodecKeysAllowed) { errors.add(Error( message: @@ -917,9 +919,54 @@ List _validateAst(Root root, String source) { final List customClasses = root.classes.map((Class x) => x.name).toList(); final Iterable customEnums = root.enums.map((Enum x) => x.name); + for (final Enum enumDefinition in root.enums) { + final String? matchingPrefix = _findMatchingPrefixOrNull( + enumDefinition.name, + prefixes: disallowedPrefixes, + ); + if (matchingPrefix != null) { + result.add(Error( + message: + 'Enum name must not begin with "$matchingPrefix" in enum "${enumDefinition.name}"', + )); + } + for (final EnumMember enumMember in enumDefinition.members) { + final String? matchingPrefix = _findMatchingPrefixOrNull( + enumMember.name, + prefixes: disallowedPrefixes, + ); + if (matchingPrefix != null) { + result.add(Error( + message: + 'Enum member name must not begin with "$matchingPrefix" in enum member "${enumMember.name}" of enum "${enumDefinition.name}"', + )); + } + } + } for (final Class classDefinition in root.classes) { + final String? matchingPrefix = _findMatchingPrefixOrNull( + classDefinition.name, + prefixes: disallowedPrefixes, + ); + if (matchingPrefix != null) { + result.add(Error( + message: + 'Class name must not begin with "$matchingPrefix" in class "${classDefinition.name}"', + )); + } for (final NamedType field in getFieldsInSerializationOrder(classDefinition)) { + final String? matchingPrefix = _findMatchingPrefixOrNull( + field.name, + prefixes: disallowedPrefixes, + ); + if (matchingPrefix != null) { + result.add(Error( + message: + 'Class field name must not begin with "$matchingPrefix" in field "${field.name}" of class "${classDefinition.name}"', + lineNumber: _calculateLineNumberNullable(source, field.offset), + )); + } for (final TypeDeclaration typeArgument in field.type.typeArguments) { if (!typeArgument.isNullable) { result.add(Error( @@ -949,6 +996,16 @@ List _validateAst(Root root, String source) { } for (final Api api in root.apis) { + final String? matchingPrefix = _findMatchingPrefixOrNull( + api.name, + prefixes: disallowedPrefixes, + ); + if (matchingPrefix != null) { + result.add(Error( + message: + 'API name must not begin with "$matchingPrefix" in API "${api.name}"', + )); + } if (api is AstProxyApi) { result.addAll(_validateProxyApi( api, @@ -958,6 +1015,17 @@ List _validateAst(Root root, String source) { )); } for (final Method method in api.methods) { + final String? matchingPrefix = _findMatchingPrefixOrNull( + method.name, + prefixes: disallowedPrefixes, + ); + if (matchingPrefix != null) { + result.add(Error( + message: + 'Method name must not begin with "$matchingPrefix" in method "${method.name}" in API: "${api.name}"', + lineNumber: _calculateLineNumberNullable(source, method.offset), + )); + } for (final Parameter param in method.parameters) { if (param.type.baseName.isEmpty) { result.add(Error( @@ -967,13 +1035,13 @@ List _validateAst(Root root, String source) { )); } else { final String? matchingPrefix = _findMatchingPrefixOrNull( - method.name, - prefixes: ['__pigeon_', 'pigeonChannelCodec'], + param.name, + prefixes: disallowedPrefixes, ); if (matchingPrefix != null) { result.add(Error( message: - 'Parameter name must not begin with "$matchingPrefix" in method "${method.name} in API: "${api.name}"', + 'Parameter name must not begin with "$matchingPrefix" in method "${method.name}" in API: "${api.name}"', lineNumber: _calculateLineNumberNullable(source, param.offset), )); } @@ -1171,12 +1239,7 @@ List _validateProxyApi( } else { final String? matchingPrefix = _findMatchingPrefixOrNull( parameter.name, - prefixes: [ - '__pigeon_', - 'pigeonChannelCodec', - classNamePrefix, - classMemberNamePrefix, - ], + prefixes: disallowedPrefixes, ); if (matchingPrefix != null) { result.add(Error( @@ -1211,7 +1274,7 @@ List _validateProxyApi( parameter.name, prefixes: [ classNamePrefix, - classMemberNamePrefix, + varNamePrefix, ], ); if (matchingPrefix != null) { @@ -1264,23 +1327,6 @@ List _validateProxyApi( )); } } - - final String? matchingPrefix = _findMatchingPrefixOrNull( - field.name, - prefixes: [ - '__pigeon_', - 'pigeonChannelCodec', - classNamePrefix, - classMemberNamePrefix, - ], - ); - if (matchingPrefix != null) { - result.add(Error( - message: - 'Field name must not begin with "$matchingPrefix" in API: "${api.name}"', - lineNumber: _calculateLineNumberNullable(source, field.offset), - )); - } } return result; diff --git a/packages/pigeon/lib/swift_generator.dart b/packages/pigeon/lib/swift_generator.dart index b8af1fabd8b..197c03f9d8f 100644 --- a/packages/pigeon/lib/swift_generator.dart +++ b/packages/pigeon/lib/swift_generator.dart @@ -14,7 +14,7 @@ const String _docCommentPrefix = '///'; const DocumentCommentSpecification _docCommentSpec = DocumentCommentSpecification(_docCommentPrefix); -const String _overflowClassName = '${varNamePrefix}CodecOverflow'; +const String _overflowClassName = '${classNamePrefix}CodecOverflow'; /// Options that control how Swift code will be generated. class SwiftOptions { @@ -144,15 +144,14 @@ class SwiftGenerator extends StructuredGenerator { indent.writeln('case ${customType.enumeration}:'); indent.nest(1, () { if (customType.type == CustomTypes.customEnum) { - indent.writeln('var enumResult: ${customType.name}? = nil'); indent.writeln( 'let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int)'); indent.writeScoped('if let enumResultAsInt = enumResultAsInt {', '}', () { indent.writeln( - 'enumResult = ${customType.name}(rawValue: enumResultAsInt)'); + 'return ${customType.name}(rawValue: enumResultAsInt)'); }); - indent.writeln('return enumResult'); + indent.writeln('return nil'); } else { indent.writeln( 'return ${customType.name}.fromList(self.readValue() as! [Any?])'); diff --git a/packages/pigeon/pigeons/core_tests.dart b/packages/pigeon/pigeons/core_tests.dart index 6f3344d460d..626992c0a65 100644 --- a/packages/pigeon/pigeons/core_tests.dart +++ b/packages/pigeon/pigeons/core_tests.dart @@ -12,6 +12,8 @@ enum AnEnum { fourHundredTwentyTwo, } +// Enums require special logic, having multiple ensures that the logic can be +// replicated without collision. enum AnotherEnum { justInCase, } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index 8eb79662f71..ca0b6a7e152 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -373,7 +373,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - int __pigeon_result = + int pigeon_result = Objects.hash( aBool, anInt, @@ -389,11 +389,11 @@ public int hashCode() { doubleList, boolList, map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(a8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aFloatArray); - return __pigeon_result; + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(a4ByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(a8ByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aFloatArray); + return pigeon_result; } public static final class Builder { @@ -590,47 +590,47 @@ ArrayList toList() { return toListResult; } - static @NonNull AllTypes fromList(@NonNull ArrayList __pigeon_list) { + static @NonNull AllTypes fromList(@NonNull ArrayList pigeon_list) { AllTypes pigeonResult = new AllTypes(); - Object aBool = __pigeon_list.get(0); + Object aBool = pigeon_list.get(0); pigeonResult.setABool((Boolean) aBool); - Object anInt = __pigeon_list.get(1); + Object anInt = pigeon_list.get(1); pigeonResult.setAnInt( (anInt == null) ? null : ((anInt instanceof Integer) ? (Integer) anInt : (Long) anInt)); - Object anInt64 = __pigeon_list.get(2); + Object anInt64 = pigeon_list.get(2); pigeonResult.setAnInt64( (anInt64 == null) ? null : ((anInt64 instanceof Integer) ? (Integer) anInt64 : (Long) anInt64)); - Object aDouble = __pigeon_list.get(3); + Object aDouble = pigeon_list.get(3); pigeonResult.setADouble((Double) aDouble); - Object aByteArray = __pigeon_list.get(4); + Object aByteArray = pigeon_list.get(4); pigeonResult.setAByteArray((byte[]) aByteArray); - Object a4ByteArray = __pigeon_list.get(5); + Object a4ByteArray = pigeon_list.get(5); pigeonResult.setA4ByteArray((int[]) a4ByteArray); - Object a8ByteArray = __pigeon_list.get(6); + Object a8ByteArray = pigeon_list.get(6); pigeonResult.setA8ByteArray((long[]) a8ByteArray); - Object aFloatArray = __pigeon_list.get(7); + Object aFloatArray = pigeon_list.get(7); pigeonResult.setAFloatArray((double[]) aFloatArray); - Object anEnum = __pigeon_list.get(8); + Object anEnum = pigeon_list.get(8); pigeonResult.setAnEnum((AnEnum) anEnum); - Object anotherEnum = __pigeon_list.get(9); + Object anotherEnum = pigeon_list.get(9); pigeonResult.setAnotherEnum((AnotherEnum) anotherEnum); - Object aString = __pigeon_list.get(10); + Object aString = pigeon_list.get(10); pigeonResult.setAString((String) aString); - Object anObject = __pigeon_list.get(11); + Object anObject = pigeon_list.get(11); pigeonResult.setAnObject(anObject); - Object list = __pigeon_list.get(12); + Object list = pigeon_list.get(12); pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(13); + Object stringList = pigeon_list.get(13); pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(14); + Object intList = pigeon_list.get(14); pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(15); + Object doubleList = pigeon_list.get(15); pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(16); + Object boolList = pigeon_list.get(16); pigeonResult.setBoolList((List) boolList); - Object map = __pigeon_list.get(17); + Object map = pigeon_list.get(17); pigeonResult.setMap((Map) map); return pigeonResult; } @@ -908,7 +908,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - int __pigeon_result = + int pigeon_result = Objects.hash( aNullableBool, aNullableInt, @@ -929,11 +929,11 @@ public int hashCode() { boolList, nestedClassList, map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); - return __pigeon_result; + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable4ByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable8ByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableFloatArray); + return pigeon_result; } public static final class Builder { @@ -1181,61 +1181,61 @@ ArrayList toList() { return toListResult; } - static @NonNull AllNullableTypes fromList(@NonNull ArrayList __pigeon_list) { + static @NonNull AllNullableTypes fromList(@NonNull ArrayList pigeon_list) { AllNullableTypes pigeonResult = new AllNullableTypes(); - Object aNullableBool = __pigeon_list.get(0); + Object aNullableBool = pigeon_list.get(0); pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = __pigeon_list.get(1); + Object aNullableInt = pigeon_list.get(1); pigeonResult.setANullableInt( (aNullableInt == null) ? null : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = __pigeon_list.get(2); + Object aNullableInt64 = pigeon_list.get(2); pigeonResult.setANullableInt64( (aNullableInt64 == null) ? null : ((aNullableInt64 instanceof Integer) ? (Integer) aNullableInt64 : (Long) aNullableInt64)); - Object aNullableDouble = __pigeon_list.get(3); + Object aNullableDouble = pigeon_list.get(3); pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = __pigeon_list.get(4); + Object aNullableByteArray = pigeon_list.get(4); pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = __pigeon_list.get(5); + Object aNullable4ByteArray = pigeon_list.get(5); pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = __pigeon_list.get(6); + Object aNullable8ByteArray = pigeon_list.get(6); pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = __pigeon_list.get(7); + Object aNullableFloatArray = pigeon_list.get(7); pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = __pigeon_list.get(8); + Object nullableNestedList = pigeon_list.get(8); pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = __pigeon_list.get(9); + Object nullableMapWithAnnotations = pigeon_list.get(9); pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = __pigeon_list.get(10); + Object nullableMapWithObject = pigeon_list.get(10); pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = __pigeon_list.get(11); + Object aNullableEnum = pigeon_list.get(11); pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = __pigeon_list.get(12); + Object anotherNullableEnum = pigeon_list.get(12); pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = __pigeon_list.get(13); + Object aNullableString = pigeon_list.get(13); pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = __pigeon_list.get(14); + Object aNullableObject = pigeon_list.get(14); pigeonResult.setANullableObject(aNullableObject); - Object allNullableTypes = __pigeon_list.get(15); + Object allNullableTypes = pigeon_list.get(15); pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object list = __pigeon_list.get(16); + Object list = pigeon_list.get(16); pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(17); + Object stringList = pigeon_list.get(17); pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(18); + Object intList = pigeon_list.get(18); pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(19); + Object doubleList = pigeon_list.get(19); pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(20); + Object boolList = pigeon_list.get(20); pigeonResult.setBoolList((List) boolList); - Object nestedClassList = __pigeon_list.get(21); + Object nestedClassList = pigeon_list.get(21); pigeonResult.setNestedClassList((List) nestedClassList); - Object map = __pigeon_list.get(22); + Object map = pigeon_list.get(22); pigeonResult.setMap((Map) map); return pigeonResult; } @@ -1492,7 +1492,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - int __pigeon_result = + int pigeon_result = Objects.hash( aNullableBool, aNullableInt, @@ -1511,11 +1511,11 @@ public int hashCode() { doubleList, boolList, map); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable4ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullable8ByteArray); - __pigeon_result = 31 * __pigeon_result + Arrays.hashCode(aNullableFloatArray); - return __pigeon_result; + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable4ByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable8ByteArray); + pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableFloatArray); + return pigeon_result; } public static final class Builder { @@ -1744,57 +1744,57 @@ ArrayList toList() { } static @NonNull AllNullableTypesWithoutRecursion fromList( - @NonNull ArrayList __pigeon_list) { + @NonNull ArrayList pigeon_list) { AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); - Object aNullableBool = __pigeon_list.get(0); + Object aNullableBool = pigeon_list.get(0); pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = __pigeon_list.get(1); + Object aNullableInt = pigeon_list.get(1); pigeonResult.setANullableInt( (aNullableInt == null) ? null : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = __pigeon_list.get(2); + Object aNullableInt64 = pigeon_list.get(2); pigeonResult.setANullableInt64( (aNullableInt64 == null) ? null : ((aNullableInt64 instanceof Integer) ? (Integer) aNullableInt64 : (Long) aNullableInt64)); - Object aNullableDouble = __pigeon_list.get(3); + Object aNullableDouble = pigeon_list.get(3); pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = __pigeon_list.get(4); + Object aNullableByteArray = pigeon_list.get(4); pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = __pigeon_list.get(5); + Object aNullable4ByteArray = pigeon_list.get(5); pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = __pigeon_list.get(6); + Object aNullable8ByteArray = pigeon_list.get(6); pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = __pigeon_list.get(7); + Object aNullableFloatArray = pigeon_list.get(7); pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = __pigeon_list.get(8); + Object nullableNestedList = pigeon_list.get(8); pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = __pigeon_list.get(9); + Object nullableMapWithAnnotations = pigeon_list.get(9); pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = __pigeon_list.get(10); + Object nullableMapWithObject = pigeon_list.get(10); pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = __pigeon_list.get(11); + Object aNullableEnum = pigeon_list.get(11); pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = __pigeon_list.get(12); + Object anotherNullableEnum = pigeon_list.get(12); pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = __pigeon_list.get(13); + Object aNullableString = pigeon_list.get(13); pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = __pigeon_list.get(14); + Object aNullableObject = pigeon_list.get(14); pigeonResult.setANullableObject(aNullableObject); - Object list = __pigeon_list.get(15); + Object list = pigeon_list.get(15); pigeonResult.setList((List) list); - Object stringList = __pigeon_list.get(16); + Object stringList = pigeon_list.get(16); pigeonResult.setStringList((List) stringList); - Object intList = __pigeon_list.get(17); + Object intList = pigeon_list.get(17); pigeonResult.setIntList((List) intList); - Object doubleList = __pigeon_list.get(18); + Object doubleList = pigeon_list.get(18); pigeonResult.setDoubleList((List) doubleList); - Object boolList = __pigeon_list.get(19); + Object boolList = pigeon_list.get(19); pigeonResult.setBoolList((List) boolList); - Object map = __pigeon_list.get(20); + Object map = pigeon_list.get(20); pigeonResult.setMap((Map) map); return pigeonResult; } @@ -1911,14 +1911,14 @@ ArrayList toList() { return toListResult; } - static @NonNull AllClassesWrapper fromList(@NonNull ArrayList __pigeon_list) { + static @NonNull AllClassesWrapper fromList(@NonNull ArrayList pigeon_list) { AllClassesWrapper pigeonResult = new AllClassesWrapper(); - Object allNullableTypes = __pigeon_list.get(0); + Object allNullableTypes = pigeon_list.get(0); pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object allNullableTypesWithoutRecursion = __pigeon_list.get(1); + Object allNullableTypesWithoutRecursion = pigeon_list.get(1); pigeonResult.setAllNullableTypesWithoutRecursion( (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); - Object allTypes = __pigeon_list.get(2); + Object allTypes = pigeon_list.get(2); pigeonResult.setAllTypes((AllTypes) allTypes); return pigeonResult; } @@ -1981,9 +1981,9 @@ ArrayList toList() { return toListResult; } - static @NonNull TestMessage fromList(@NonNull ArrayList __pigeon_list) { + static @NonNull TestMessage fromList(@NonNull ArrayList pigeon_list) { TestMessage pigeonResult = new TestMessage(); - Object testList = __pigeon_list.get(0); + Object testList = pigeon_list.get(0); pigeonResult.setTestList((List) testList); return pigeonResult; } diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m index 150b33cc0de..49baba617c2 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m @@ -140,10 +140,10 @@ + (FLTAllTypes *)fromList:(NSArray *)list { pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); - FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(list, 8); - pigeonResult.anEnum = anFLTAnEnumBox.value; - FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(list, 9); - pigeonResult.anotherEnum = anFLTAnotherEnumBox.value; + FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(list, 8); + pigeonResult.anEnum = boxedFLTAnEnum.value; + FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(list, 9); + pigeonResult.anotherEnum = boxedFLTAnotherEnum.value; pigeonResult.aString = GetNullableObjectAtIndex(list, 10); pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); pigeonResult.list = GetNullableObjectAtIndex(list, 12); @@ -896,7 +896,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; FlutterError *error; FLTAnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; @@ -922,7 +922,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; FlutterError *error; FLTAnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; @@ -1734,7 +1734,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; [api echoAsyncEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { @@ -1761,7 +1761,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; [api echoAnotherAsyncEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, @@ -2614,7 +2614,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnEnumBox *anFLTAnEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; [api callFlutterEchoEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { @@ -2641,7 +2641,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - FLTAnotherEnumBox *anFLTAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; [api callFlutterEchoAnotherEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m index aba48fe6dba..c5cfec34579 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m @@ -140,10 +140,10 @@ + (AllTypes *)fromList:(NSArray *)list { pigeonResult.a4ByteArray = GetNullableObjectAtIndex(list, 5); pigeonResult.a8ByteArray = GetNullableObjectAtIndex(list, 6); pigeonResult.aFloatArray = GetNullableObjectAtIndex(list, 7); - AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(list, 8); - pigeonResult.anEnum = anAnEnumBox.value; - AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(list, 9); - pigeonResult.anotherEnum = anAnotherEnumBox.value; + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(list, 8); + pigeonResult.anEnum = boxedAnEnum.value; + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(list, 9); + pigeonResult.anotherEnum = boxedAnotherEnum.value; pigeonResult.aString = GetNullableObjectAtIndex(list, 10); pigeonResult.anObject = GetNullableObjectAtIndex(list, 11); pigeonResult.list = GetNullableObjectAtIndex(list, 12); @@ -891,7 +891,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(args, 0); + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); AnEnum arg_anEnum = anAnEnumBox.value; FlutterError *error; AnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; @@ -917,7 +917,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; FlutterError *error; AnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; @@ -1729,7 +1729,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(args, 0); + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); AnEnum arg_anEnum = anAnEnumBox.value; [api echoAsyncEnum:arg_anEnum completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { @@ -1756,7 +1756,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; [api echoAnotherAsyncEnum:arg_anotherEnum completion:^(AnotherEnumBox *_Nullable output, @@ -2607,7 +2607,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnEnumBox *anAnEnumBox = GetNullableObjectAtIndex(args, 0); + AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); AnEnum arg_anEnum = anAnEnumBox.value; [api callFlutterEchoEnum:arg_anEnum completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { @@ -2634,7 +2634,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess api); [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; - AnotherEnumBox *anAnotherEnumBox = GetNullableObjectAtIndex(args, 0); + AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; [api callFlutterEchoAnotherEnum:arg_anotherEnum completion:^(AnotherEnumBox *_Nullable output, diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart index e9e063126c1..d4ec2216251 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart @@ -29,41 +29,41 @@ class BackgroundApi2Host { /// BinaryMessenger will be used which routes to the host platform. BackgroundApi2Host( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future add(int x, int y) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.BackgroundApi2Host.add$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.BackgroundApi2Host.add$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([x, y]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([x, y]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 0e2f0b9f5c0..13c19660d3f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -532,35 +532,35 @@ class HostIntegrationCoreApi { /// BinaryMessenger will be used which routes to the host platform. HostIntegrationCoreApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. Future noop() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -569,78 +569,78 @@ class HostIntegrationCoreApi { /// Returns the passed object, to test serialization and deserialization. Future echoAllTypes(AllTypes everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllTypes?)!; + return (pigeon_replyList[0] as AllTypes?)!; } } /// Returns an error, to test error handling. Future throwError() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns an error from a void function, to test error handling. Future throwErrorFromVoid() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -649,473 +649,473 @@ class HostIntegrationCoreApi { /// Returns a Flutter error, to test error handling. Future throwFlutterError() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns passed in int. Future echoInt(int anInt) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } /// Returns passed in double. Future echoDouble(double aDouble) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } /// Returns the passed in boolean. Future echoBool(bool aBool) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } /// Returns the passed in string. Future echoString(String aString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } /// Returns the passed in Uint8List. Future echoUint8List(Uint8List aUint8List) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aUint8List]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Uint8List?)!; + return (pigeon_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object. Future echoObject(Object anObject) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anObject]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return __pigeon_replyList[0]!; + return pigeon_replyList[0]!; } } /// Returns the passed list, to test serialization and deserialization. Future> echoList(List list) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([list]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([list]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future> echoMap(Map aMap) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } /// Returns the passed map to test nested class serialization and deserialization. Future echoClassWrapper(AllClassesWrapper wrapper) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([wrapper]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([wrapper]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllClassesWrapper?)!; + return (pigeon_replyList[0] as AllClassesWrapper?)!; } } /// Returns the passed enum to test serialization and deserialization. Future echoEnum(AnEnum anEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AnEnum?)!; + return (pigeon_replyList[0] as AnEnum?)!; } } /// Returns the passed enum to test serialization and deserialization. Future echoAnotherEnum(AnotherEnum anotherEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anotherEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anotherEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AnotherEnum?)!; + return (pigeon_replyList[0] as AnotherEnum?)!; } } /// Returns the default string. Future echoNamedDefaultString({String aString = 'default'}) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } /// Returns passed in double. Future echoOptionalDefaultDouble([double aDouble = 3.14]) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } /// Returns passed in int. Future echoRequiredInt({required int anInt}) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } /// Returns the passed object, to test serialization and deserialization. Future echoAllNullableTypes( AllNullableTypes? everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AllNullableTypes?); + return (pigeon_replyList[0] as AllNullableTypes?); } } @@ -1123,52 +1123,52 @@ class HostIntegrationCoreApi { Future echoAllNullableTypesWithoutRecursion( AllNullableTypesWithoutRecursion? everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); + return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); } } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. Future extractNestedNullableString(AllClassesWrapper wrapper) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([wrapper]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([wrapper]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } @@ -1176,63 +1176,63 @@ class HostIntegrationCoreApi { /// sending of nested objects. Future createNestedNullableString( String? nullableString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([nullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([nullableString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllClassesWrapper?)!; + return (pigeon_replyList[0] as AllClassesWrapper?)!; } } /// Returns passed in arguments of multiple types. Future sendMultipleNullableTypes( bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllNullableTypes?)!; + return (pigeon_replyList[0] as AllNullableTypes?)!; } } @@ -1240,356 +1240,356 @@ class HostIntegrationCoreApi { Future sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllNullableTypesWithoutRecursion?)!; + return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?)!; } } /// Returns passed in int. Future echoNullableInt(int? aNullableInt) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aNullableInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } /// Returns passed in double. Future echoNullableDouble(double? aNullableDouble) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([aNullableDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as double?); + return (pigeon_replyList[0] as double?); } } /// Returns the passed in boolean. Future echoNullableBool(bool? aNullableBool) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aNullableBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as bool?); + return (pigeon_replyList[0] as bool?); } } /// Returns the passed in string. Future echoNullableString(String? aNullableString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([aNullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } /// Returns the passed in Uint8List. Future echoNullableUint8List( Uint8List? aNullableUint8List) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([aNullableUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Uint8List?); + return (pigeon_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object. Future echoNullableObject(Object? aNullableObject) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([aNullableObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableObject]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableList(List? aNullableList) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aNullableList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as List?)?.cast(); + return (pigeon_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableMap( Map? aNullableMap) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aNullableMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Map?) + return (pigeon_replyList[0] as Map?) ?.cast(); } } Future echoNullableEnum(AnEnum? anEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AnEnum?); + return (pigeon_replyList[0] as AnEnum?); } } Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anotherEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anotherEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AnotherEnum?); + return (pigeon_replyList[0] as AnotherEnum?); } } /// Returns passed in int. Future echoOptionalNullableInt([int? aNullableInt]) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aNullableInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } /// Returns the passed in string. Future echoNamedNullableString({String? aNullableString}) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([aNullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aNullableString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. Future noopAsync() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -1598,349 +1598,349 @@ class HostIntegrationCoreApi { /// Returns passed in int asynchronously. Future echoAsyncInt(int anInt) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } /// Returns passed in double asynchronously. Future echoAsyncDouble(double aDouble) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } /// Returns the passed in boolean asynchronously. Future echoAsyncBool(bool aBool) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } /// Returns the passed string asynchronously. Future echoAsyncString(String aString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncUint8List(Uint8List aUint8List) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aUint8List]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Uint8List?)!; + return (pigeon_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object asynchronously. Future echoAsyncObject(Object anObject) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anObject]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return __pigeon_replyList[0]!; + return pigeon_replyList[0]!; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncList(List list) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([list]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([list]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncMap(Map aMap) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncEnum(AnEnum anEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AnEnum?)!; + return (pigeon_replyList[0] as AnEnum?)!; } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anotherEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anotherEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AnotherEnum?)!; + return (pigeon_replyList[0] as AnotherEnum?)!; } } /// Responds with an error from an async function returning a value. Future throwAsyncError() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Responds with an error from an async void function. Future throwAsyncErrorFromVoid() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -1949,82 +1949,82 @@ class HostIntegrationCoreApi { /// Responds with a Flutter error from an async function returning a value. Future throwAsyncFlutterError() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns the passed object, to test async serialization and deserialization. Future echoAsyncAllTypes(AllTypes everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllTypes?)!; + return (pigeon_replyList[0] as AllTypes?)!; } } /// Returns the passed object, to test serialization and deserialization. Future echoAsyncNullableAllNullableTypes( AllNullableTypes? everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AllNullableTypes?); + return (pigeon_replyList[0] as AllNullableTypes?); } } @@ -2032,300 +2032,300 @@ class HostIntegrationCoreApi { Future echoAsyncNullableAllNullableTypesWithoutRecursion( AllNullableTypesWithoutRecursion? everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); + return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); } } /// Returns passed in int asynchronously. Future echoAsyncNullableInt(int? anInt) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } /// Returns passed in double asynchronously. Future echoAsyncNullableDouble(double? aDouble) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as double?); + return (pigeon_replyList[0] as double?); } } /// Returns the passed in boolean asynchronously. Future echoAsyncNullableBool(bool? aBool) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as bool?); + return (pigeon_replyList[0] as bool?); } } /// Returns the passed string asynchronously. Future echoAsyncNullableString(String? aString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aUint8List]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Uint8List?); + return (pigeon_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object asynchronously. Future echoAsyncNullableObject(Object? anObject) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anObject]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableList(List? list) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([list]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([list]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as List?)?.cast(); + return (pigeon_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableMap( Map? aMap) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Map?) + return (pigeon_replyList[0] as Map?) ?.cast(); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum(AnEnum? anEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AnEnum?); + return (pigeon_replyList[0] as AnEnum?); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAnotherAsyncNullableEnum( AnotherEnum? anotherEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anotherEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anotherEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AnotherEnum?); + return (pigeon_replyList[0] as AnotherEnum?); } } Future callFlutterNoop() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -2333,47 +2333,47 @@ class HostIntegrationCoreApi { } Future callFlutterThrowError() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } Future callFlutterThrowErrorFromVoid() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -2381,658 +2381,658 @@ class HostIntegrationCoreApi { } Future callFlutterEchoAllTypes(AllTypes everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllTypes?)!; + return (pigeon_replyList[0] as AllTypes?)!; } } Future callFlutterEchoAllNullableTypes( AllNullableTypes? everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AllNullableTypes?); + return (pigeon_replyList[0] as AllNullableTypes?); } } Future callFlutterSendMultipleNullableTypes( bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllNullableTypes?)!; + return (pigeon_replyList[0] as AllNullableTypes?)!; } } Future callFlutterEchoAllNullableTypesWithoutRecursion( AllNullableTypesWithoutRecursion? everything) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([everything]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([everything]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); + return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); } } Future callFlutterSendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AllNullableTypesWithoutRecursion?)!; + return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?)!; } } Future callFlutterEchoBool(bool aBool) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } Future callFlutterEchoInt(int anInt) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } Future callFlutterEchoDouble(double aDouble) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } Future callFlutterEchoString(String aString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } Future callFlutterEchoUint8List(Uint8List list) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([list]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([list]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Uint8List?)!; + return (pigeon_replyList[0] as Uint8List?)!; } } Future> callFlutterEchoList(List list) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([list]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([list]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } Future> callFlutterEchoMap( Map aMap) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } Future callFlutterEchoEnum(AnEnum anEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AnEnum?)!; + return (pigeon_replyList[0] as AnEnum?)!; } } Future callFlutterEchoAnotherEnum( AnotherEnum anotherEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anotherEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anotherEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as AnotherEnum?)!; + return (pigeon_replyList[0] as AnotherEnum?)!; } } Future callFlutterEchoNullableBool(bool? aBool) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as bool?); + return (pigeon_replyList[0] as bool?); } } Future callFlutterEchoNullableInt(int? anInt) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } Future callFlutterEchoNullableDouble(double? aDouble) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as double?); + return (pigeon_replyList[0] as double?); } } Future callFlutterEchoNullableString(String? aString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } Future callFlutterEchoNullableUint8List(Uint8List? list) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([list]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([list]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Uint8List?); + return (pigeon_replyList[0] as Uint8List?); } } Future?> callFlutterEchoNullableList( List? list) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([list]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([list]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as List?)?.cast(); + return (pigeon_replyList[0] as List?)?.cast(); } } Future?> callFlutterEchoNullableMap( Map? aMap) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Map?) + return (pigeon_replyList[0] as Map?) ?.cast(); } } Future callFlutterEchoNullableEnum(AnEnum? anEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AnEnum?); + return (pigeon_replyList[0] as AnEnum?); } } Future callFlutterEchoAnotherNullableEnum( AnotherEnum? anotherEnum) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([anotherEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([anotherEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as AnotherEnum?); + return (pigeon_replyList[0] as AnotherEnum?); } } Future callFlutterSmallApiEchoString(String aString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } } @@ -3143,15 +3143,15 @@ abstract class FlutterIntegrationCoreApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { try { api.noop(); return wrapResponse(empty: true); @@ -3165,15 +3165,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { try { final Object? output = api.throwError(); return wrapResponse(result: output); @@ -3187,15 +3187,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { try { api.throwErrorFromVoid(); return wrapResponse(empty: true); @@ -3209,15 +3209,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.'); final List args = (message as List?)!; @@ -3237,15 +3237,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.'); final List args = (message as List?)!; @@ -3265,15 +3265,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.'); final List args = (message as List?)!; @@ -3294,15 +3294,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; @@ -3322,15 +3322,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; @@ -3352,15 +3352,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.'); final List args = (message as List?)!; @@ -3380,15 +3380,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.'); final List args = (message as List?)!; @@ -3408,15 +3408,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.'); final List args = (message as List?)!; @@ -3436,15 +3436,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.'); final List args = (message as List?)!; @@ -3464,15 +3464,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.'); final List args = (message as List?)!; @@ -3492,15 +3492,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.'); final List args = (message as List?)!; @@ -3521,15 +3521,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.'); final List args = (message as List?)!; @@ -3550,15 +3550,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.'); final List args = (message as List?)!; @@ -3578,15 +3578,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.'); final List args = (message as List?)!; @@ -3606,15 +3606,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.'); final List args = (message as List?)!; @@ -3632,15 +3632,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.'); final List args = (message as List?)!; @@ -3658,15 +3658,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.'); final List args = (message as List?)!; @@ -3684,15 +3684,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.'); final List args = (message as List?)!; @@ -3710,15 +3710,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.'); final List args = (message as List?)!; @@ -3736,15 +3736,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.'); final List args = (message as List?)!; @@ -3763,15 +3763,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.'); final List args = (message as List?)!; @@ -3790,15 +3790,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.'); final List args = (message as List?)!; @@ -3816,15 +3816,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.'); final List args = (message as List?)!; @@ -3843,15 +3843,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { try { await api.noopAsync(); return wrapResponse(empty: true); @@ -3865,15 +3865,15 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.'); final List args = (message as List?)!; @@ -3902,33 +3902,33 @@ class HostTrivialApi { /// BinaryMessenger will be used which routes to the host platform. HostTrivialApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future noop() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -3943,62 +3943,62 @@ class HostSmallApi { /// BinaryMessenger will be used which routes to the host platform. HostSmallApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future echo(String aString) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } Future voidVoid() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -4022,15 +4022,15 @@ abstract class FlutterSmallApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.'); final List args = (message as List?)!; @@ -4050,15 +4050,15 @@ abstract class FlutterSmallApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index a39861dd91c..8f54dc592ea 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -104,42 +104,42 @@ class EnumApi2Host { /// BinaryMessenger will be used which routes to the host platform. EnumApi2Host( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; /// This comment is to test method documentation comments. Future echo(DataWithEnum data) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([data]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([data]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as DataWithEnum?)!; + return (pigeon_replyList[0] as DataWithEnum?)!; } } } @@ -159,15 +159,15 @@ abstract class EnumApi2Flutter { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index 61e4b97a5fe..ddb2dce3adf 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -151,128 +151,128 @@ class Api { /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. Api({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future search(FlutterSearchRequest request) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([request]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([request]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as FlutterSearchReply?)!; + return (pigeon_replyList[0] as FlutterSearchReply?)!; } } Future doSearches(FlutterSearchRequests request) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([request]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([request]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as FlutterSearchReplies?)!; + return (pigeon_replyList[0] as FlutterSearchReplies?)!; } } Future echo(FlutterSearchRequests requests) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([requests]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([requests]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as FlutterSearchRequests?)!; + return (pigeon_replyList[0] as FlutterSearchRequests?)!; } } Future anInt(int value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index 1ad6988735f..c455d732404 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -188,36 +188,36 @@ class MessageApi { /// BinaryMessenger will be used which routes to the host platform. MessageApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; /// This comment is to test documentation comments. /// /// This comment also tests multiple line comments. Future initialize() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -226,31 +226,31 @@ class MessageApi { /// This comment is to test method documentation comments. Future search(MessageSearchRequest request) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([request]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([request]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as MessageSearchReply?)!; + return (pigeon_replyList[0] as MessageSearchReply?)!; } } } @@ -262,44 +262,44 @@ class MessageNestedApi { /// BinaryMessenger will be used which routes to the host platform. MessageNestedApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; /// This comment is to test method documentation comments. /// /// This comment also tests multiple line comments. Future search(MessageNested nested) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([nested]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([nested]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as MessageSearchReply?)!; + return (pigeon_replyList[0] as MessageSearchReply?)!; } } } @@ -319,15 +319,15 @@ abstract class MessageFlutterSearchApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart index 33b984077af..adfc400fb0c 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart @@ -40,41 +40,41 @@ class MultipleArityHostApi { /// BinaryMessenger will be used which routes to the host platform. MultipleArityHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future subtract(int x, int y) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([x, y]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([x, y]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } } @@ -92,15 +92,15 @@ abstract class MultipleArityFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 6ff899f13a0..234f5817d0d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -168,42 +168,42 @@ class NonNullFieldHostApi { /// BinaryMessenger will be used which routes to the host platform. NonNullFieldHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future search( NonNullFieldSearchRequest nested) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([nested]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([nested]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as NonNullFieldSearchReply?)!; + return (pigeon_replyList[0] as NonNullFieldSearchReply?)!; } } } @@ -221,15 +221,15 @@ abstract class NonNullFieldFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 7a97035fdf8..762578d96a8 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -142,41 +142,41 @@ class NullFieldsHostApi { /// BinaryMessenger will be used which routes to the host platform. NullFieldsHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future search(NullFieldsSearchRequest nested) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([nested]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([nested]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as NullFieldsSearchReply?)!; + return (pigeon_replyList[0] as NullFieldsSearchReply?)!; } } } @@ -194,15 +194,15 @@ abstract class NullFieldsFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart index 72ea0ae7363..5b30d715a4b 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart @@ -40,36 +40,36 @@ class NullableReturnHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableReturnHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future doit() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } } @@ -87,15 +87,15 @@ abstract class NullableReturnFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { try { final int? output = api.doit(); return wrapResponse(result: output); @@ -117,41 +117,41 @@ class NullableArgHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableArgHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future doit(int? x) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([x]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([x]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } } @@ -169,15 +169,15 @@ abstract class NullableArgFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.'); final List args = (message as List?)!; @@ -203,36 +203,36 @@ class NullableCollectionReturnHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableCollectionReturnHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future?> doit() async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as List?)?.cast(); + return (pigeon_replyList[0] as List?)?.cast(); } } } @@ -250,15 +250,15 @@ abstract class NullableCollectionReturnFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { try { final List? output = api.doit(); return wrapResponse(result: output); @@ -280,41 +280,41 @@ class NullableCollectionArgHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableCollectionArgHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future> doit(List? x) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([x]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([x]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } } @@ -332,15 +332,15 @@ abstract class NullableCollectionArgFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart index 8ac914eb6fa..195f59f3d64 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart @@ -40,273 +40,273 @@ class PrimitiveHostApi { /// BinaryMessenger will be used which routes to the host platform. PrimitiveHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : __pigeon_binaryMessenger = binaryMessenger, - __pigeon_messageChannelSuffix = + : pigeon_binaryMessenger = binaryMessenger, + pigeon_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String __pigeon_messageChannelSuffix; + final String pigeon_messageChannelSuffix; Future anInt(int value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } Future aBool(bool value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } Future aString(String value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } Future aDouble(double value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } Future> aMap(Map value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)!; + return (pigeon_replyList[0] as Map?)!; } } Future> aList(List value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!; + return (pigeon_replyList[0] as List?)!; } } Future anInt32List(Int32List value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Int32List?)!; + return (pigeon_replyList[0] as Int32List?)!; } } Future> aBoolList(List value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } Future> aStringIntMap(Map value) async { - final String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$__pigeon_messageChannelSuffix'; - final BasicMessageChannel __pigeon_channel = + final String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeon_messageChannelSuffix'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([value]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([value]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } @@ -341,15 +341,15 @@ abstract class PrimitiveFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.'); final List args = (message as List?)!; @@ -369,15 +369,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.'); final List args = (message as List?)!; @@ -397,15 +397,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.'); final List args = (message as List?)!; @@ -425,15 +425,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.'); final List args = (message as List?)!; @@ -453,15 +453,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.'); final List args = (message as List?)!; @@ -482,15 +482,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.'); final List args = (message as List?)!; @@ -510,15 +510,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.'); final List args = (message as List?)!; @@ -538,15 +538,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.'); final List args = (message as List?)!; @@ -567,15 +567,15 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - __pigeon_channel.setMessageHandler(null); + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart index 97dbbc67559..e0b4d2a3bf2 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart @@ -36,36 +36,36 @@ List wrapResponse( /// can provide functional copies of itself. /// /// All implementers are expected to be [immutable] as defined by the annotation -/// and override [pigeon_copy] returning an instance of itself. +/// and override [pigeonField_copy] returning an instance of itself. @immutable -abstract class PigeonProxyApiBaseClass { - /// Construct a [PigeonProxyApiBaseClass]. - PigeonProxyApiBaseClass({ - this.pigeon_binaryMessenger, - PigeonInstanceManager? pigeon_instanceManager, - }) : pigeon_instanceManager = - pigeon_instanceManager ?? PigeonInstanceManager.instance; +abstract class PigeonInternalProxyApiBaseClass { + /// Construct a [PigeonInternalProxyApiBaseClass]. + PigeonInternalProxyApiBaseClass({ + this.pigeonField_binaryMessenger, + PigeonInternalInstanceManager? pigeonField_instanceManager, + }) : pigeonField_instanceManager = pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance; /// Sends and receives binary data across the Flutter platform barrier. /// /// If it is null, the default BinaryMessenger will be used, which routes to /// the host platform. @protected - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonField_binaryMessenger; /// Maintains instances stored to communicate with native language objects. @protected - final PigeonInstanceManager pigeon_instanceManager; + final PigeonInternalInstanceManager pigeonField_instanceManager; /// Instantiates and returns a functionally identical object to oneself. /// /// Outside of tests, this method should only ever be called by - /// [PigeonInstanceManager]. + /// [PigeonInternalInstanceManager]. /// /// Subclasses should always override their parent's implementation of this /// method. @protected - PigeonProxyApiBaseClass pigeon_copy(); + PigeonInternalProxyApiBaseClass pigeonField_copy(); } /// Maintains instances used to communicate with the native objects they @@ -83,9 +83,10 @@ abstract class PigeonProxyApiBaseClass { /// is added as a weak reference with the same identifier. This prevents a /// scenario where the weak referenced instance was released and then later /// returned by the host platform. -class PigeonInstanceManager { - /// Constructs a [PigeonInstanceManager]. - PigeonInstanceManager({required void Function(int) onWeakReferenceRemoved}) { +class PigeonInternalInstanceManager { + /// Constructs a [PigeonInternalInstanceManager]. + PigeonInternalInstanceManager( + {required void Function(int) onWeakReferenceRemoved}) { this.onWeakReferenceRemoved = (int identifier) { _weakInstances.remove(identifier); onWeakReferenceRemoved(identifier); @@ -99,12 +100,12 @@ class PigeonInstanceManager { // 0 <= n < 2^16. static const int _maxDartCreatedIdentifier = 65536; - /// The default [PigeonInstanceManager] used by ProxyApis. + /// The default [PigeonInternalInstanceManager] used by ProxyApis. /// /// On creation, this manager makes a call to clear the native /// InstanceManager. This is to prevent identifier conflicts after a host /// restart. - static final PigeonInstanceManager instance = _initInstance(); + static final PigeonInternalInstanceManager instance = _initInstance(); // Expando is used because it doesn't prevent its keys from becoming // inaccessible. This allows the manager to efficiently retrieve an identifier @@ -115,10 +116,10 @@ class PigeonInstanceManager { // by calling instanceManager.getIdentifier() inside of `==` while this was a // HashMap). final Expando _identifiers = Expando(); - final Map> _weakInstances = - >{}; - final Map _strongInstances = - {}; + final Map> + _weakInstances = >{}; + final Map _strongInstances = + {}; late final Finalizer _finalizer; int _nextIdentifier = 0; @@ -126,24 +127,26 @@ class PigeonInstanceManager { /// or becomes inaccessible. late final void Function(int) onWeakReferenceRemoved; - static PigeonInstanceManager _initInstance() { + static PigeonInternalInstanceManager _initInstance() { WidgetsFlutterBinding.ensureInitialized(); - final _PigeonInstanceManagerApi api = _PigeonInstanceManagerApi(); - // Clears the native `PigeonInstanceManager` on the initial use of the Dart one. + final _PigeonInternalInstanceManagerApi api = + _PigeonInternalInstanceManagerApi(); + // Clears the native `PigeonInternalInstanceManager` on the initial use of the Dart one. api.clear(); - final PigeonInstanceManager instanceManager = PigeonInstanceManager( + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager( onWeakReferenceRemoved: (int identifier) { api.removeStrongReference(identifier); }, ); - _PigeonInstanceManagerApi.setUpMessageHandlers( + _PigeonInternalInstanceManagerApi.setUpMessageHandlers( instanceManager: instanceManager); - ProxyApiTestClass.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager); - ProxyApiSuperClass.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager); - ProxyApiInterface.pigeon_setUpMessageHandlers( - pigeon_instanceManager: instanceManager); + ProxyApiTestClass.pigeonField_setUpMessageHandlers( + pigeonField_instanceManager: instanceManager); + ProxyApiSuperClass.pigeonField_setUpMessageHandlers( + pigeonField_instanceManager: instanceManager); + ProxyApiInterface.pigeonField_setUpMessageHandlers( + pigeonField_instanceManager: instanceManager); return instanceManager; } @@ -155,7 +158,7 @@ class PigeonInstanceManager { /// Throws assertion error if the instance has already been added. /// /// Returns the randomly generated id of the [instance] added. - int addDartCreatedInstance(PigeonProxyApiBaseClass instance) { + int addDartCreatedInstance(PigeonInternalProxyApiBaseClass instance) { final int identifier = _nextUniqueIdentifier(); _addInstanceWithIdentifier(instance, identifier); return identifier; @@ -169,7 +172,7 @@ class PigeonInstanceManager { /// /// This does not remove the strong referenced instance associated with /// [instance]. This can be done with [remove]. - int? removeWeakReference(PigeonProxyApiBaseClass instance) { + int? removeWeakReference(PigeonInternalProxyApiBaseClass instance) { final int? identifier = getIdentifier(instance); if (identifier == null) { return null; @@ -191,7 +194,7 @@ class PigeonInstanceManager { /// /// This does not remove the weak referenced instance associated with /// [identifier]. This can be done with [removeWeakReference]. - T? remove(int identifier) { + T? remove(int identifier) { return _strongInstances.remove(identifier) as T?; } @@ -207,19 +210,20 @@ class PigeonInstanceManager { /// /// This method also expects the host `InstanceManager` to have a strong /// reference to the instance the identifier is associated with. - T? getInstanceWithWeakReference( + T? getInstanceWithWeakReference( int identifier) { - final PigeonProxyApiBaseClass? weakInstance = + final PigeonInternalProxyApiBaseClass? weakInstance = _weakInstances[identifier]?.target; if (weakInstance == null) { - final PigeonProxyApiBaseClass? strongInstance = + final PigeonInternalProxyApiBaseClass? strongInstance = _strongInstances[identifier]; if (strongInstance != null) { - final PigeonProxyApiBaseClass copy = strongInstance.pigeon_copy(); + final PigeonInternalProxyApiBaseClass copy = + strongInstance.pigeonField_copy(); _identifiers[copy] = identifier; _weakInstances[identifier] = - WeakReference(copy); + WeakReference(copy); _finalizer.attach(copy, identifier, detach: copy); return copy as T; } @@ -230,7 +234,7 @@ class PigeonInstanceManager { } /// Retrieves the identifier associated with instance. - int? getIdentifier(PigeonProxyApiBaseClass instance) { + int? getIdentifier(PigeonInternalProxyApiBaseClass instance) { return _identifiers[instance]; } @@ -244,22 +248,22 @@ class PigeonInstanceManager { /// /// Returns unique identifier of the [instance] added. void addHostCreatedInstance( - PigeonProxyApiBaseClass instance, int identifier) { + PigeonInternalProxyApiBaseClass instance, int identifier) { _addInstanceWithIdentifier(instance, identifier); } void _addInstanceWithIdentifier( - PigeonProxyApiBaseClass instance, int identifier) { + PigeonInternalProxyApiBaseClass instance, int identifier) { assert(!containsIdentifier(identifier)); assert(getIdentifier(instance) == null); assert(identifier >= 0); _identifiers[instance] = identifier; _weakInstances[identifier] = - WeakReference(instance); + WeakReference(instance); _finalizer.attach(instance, identifier, detach: instance); - final PigeonProxyApiBaseClass copy = instance.pigeon_copy(); + final PigeonInternalProxyApiBaseClass copy = instance.pigeonField_copy(); _identifiers[copy] = identifier; _strongInstances[identifier] = copy; } @@ -280,40 +284,40 @@ class PigeonInstanceManager { } } -/// Generated API for managing the Dart and native `PigeonInstanceManager`s. -class _PigeonInstanceManagerApi { - /// Constructor for [_PigeonInstanceManagerApi]. - _PigeonInstanceManagerApi({BinaryMessenger? binaryMessenger}) - : __pigeon_binaryMessenger = binaryMessenger; +/// Generated API for managing the Dart and native `PigeonInternalInstanceManager`s. +class _PigeonInternalInstanceManagerApi { + /// Constructor for [_PigeonInternalInstanceManagerApi]. + _PigeonInternalInstanceManagerApi({BinaryMessenger? binaryMessenger}) + : pigeon_binaryMessenger = binaryMessenger; - final BinaryMessenger? __pigeon_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; static const MessageCodec pigeonChannelCodec = StandardMessageCodec(); static void setUpMessageHandlers({ - bool pigeon_clearHandlers = false, + bool pigeonField_clearHandlers = false, BinaryMessenger? binaryMessenger, - PigeonInstanceManager? instanceManager, + PigeonInternalInstanceManager? instanceManager, }) { { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInstanceManagerApi.removeStrongReference', + 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.removeStrongReference', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInstanceManagerApi.removeStrongReference was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.removeStrongReference was null.'); final List args = (message as List?)!; final int? arg_identifier = (args[0] as int?); assert(arg_identifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInstanceManagerApi.removeStrongReference was null, expected non-null int.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.removeStrongReference was null, expected non-null int.'); try { - (instanceManager ?? PigeonInstanceManager.instance) + (instanceManager ?? PigeonInternalInstanceManager.instance) .remove(arg_identifier!); return wrapResponse(empty: true); } on PlatformException catch (e) { @@ -328,50 +332,50 @@ class _PigeonInstanceManagerApi { } Future removeStrongReference(int identifier) async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInstanceManagerApi.removeStrongReference'; - final BasicMessageChannel __pigeon_channel = + const String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.removeStrongReference'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([identifier]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([identifier]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; } } - /// Clear the native `PigeonInstanceManager`. + /// Clear the native `PigeonInternalInstanceManager`. /// /// This is typically called after a hot restart. Future clear() async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInstanceManagerApi.clear'; - final BasicMessageChannel __pigeon_channel = + const String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.clear'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -379,12 +383,12 @@ class _PigeonInstanceManagerApi { } } -class _PigeonProxyApiBaseCodec extends _PigeonCodec { - const _PigeonProxyApiBaseCodec(this.instanceManager); - final PigeonInstanceManager instanceManager; +class _PigeonInternalProxyApiBaseCodec extends _PigeonCodec { + const _PigeonInternalProxyApiBaseCodec(this.instanceManager); + final PigeonInternalInstanceManager instanceManager; @override void writeValue(WriteBuffer buffer, Object? value) { - if (value is PigeonProxyApiBaseClass) { + if (value is PigeonInternalProxyApiBaseClass) { buffer.putUint8(128); writeValue(buffer, instanceManager.getIdentifier(value)); } else { @@ -439,8 +443,8 @@ class _PigeonCodec extends StandardMessageCodec { class ProxyApiTestClass extends ProxyApiSuperClass implements ProxyApiInterface { ProxyApiTestClass({ - super.pigeon_binaryMessenger, - super.pigeon_instanceManager, + super.pigeonField_binaryMessenger, + super.pigeonField_instanceManager, required this.aBool, required this.anInt, required this.aDouble, @@ -503,24 +507,24 @@ class ProxyApiTestClass extends ProxyApiSuperClass Map? nullableMapParam, ProxyApiTestEnum? nullableEnumParam, ProxyApiSuperClass? nullableProxyApiParam, - }) : super.pigeon_detached() { - final int __pigeon_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(this); - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; + }) : super.pigeonField_detached() { + final int pigeon_instanceIdentifier = + pigeonField_instanceManager.addDartCreatedInstance(this); + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; () async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor'; - final BasicMessageChannel __pigeon_channel = + const String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_defaultConstructor'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([ - __pigeon_instanceIdentifier, + final List? pigeon_replyList = + await pigeon_channel.send([ + pigeon_instanceIdentifier, aBool, anInt, aDouble, @@ -558,13 +562,13 @@ class ProxyApiTestClass extends ProxyApiSuperClass nullableEnumParam, nullableProxyApiParam ]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -575,11 +579,11 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Constructs [ProxyApiTestClass] without creating the associated native object. /// /// This should only be used by subclasses created by this library or to - /// create copies for an [PigeonInstanceManager]. + /// create copies for an [PigeonInternalInstanceManager]. @protected - ProxyApiTestClass.pigeon_detached({ - super.pigeon_binaryMessenger, - super.pigeon_instanceManager, + ProxyApiTestClass.pigeonField_detached({ + super.pigeonField_binaryMessenger, + super.pigeonField_instanceManager, required this.aBool, required this.anInt, required this.aDouble, @@ -624,10 +628,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass this.flutterEchoNullableProxyApi, this.flutterNoopAsync, this.flutterEchoAsyncString, - }) : super.pigeon_detached(); + }) : super.pigeonField_detached(); - late final _PigeonProxyApiBaseCodec __pigeon_codecProxyApiTestClass = - _PigeonProxyApiBaseCodec(pigeon_instanceManager); + late final _PigeonInternalProxyApiBaseCodec pigeon_codecProxyApiTestClass = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager); final bool aBool; @@ -677,15 +681,15 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterNoop: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterNoop: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final void Function(ProxyApiTestClass pigeon_instance)? flutterNoop; + final void Function(ProxyApiTestClass pigeonField_instance)? flutterNoop; /// Responds with an error from an async function returning a value. /// @@ -698,15 +702,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterThrowError: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterThrowError: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError; + final Object? Function(ProxyApiTestClass pigeonField_instance)? + flutterThrowError; /// Responds with an error from an async void function. /// @@ -719,15 +724,15 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterThrowErrorFromVoid: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterThrowErrorFromVoid: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final void Function(ProxyApiTestClass pigeon_instance)? + final void Function(ProxyApiTestClass pigeonField_instance)? flutterThrowErrorFromVoid; /// Returns the passed boolean, to test serialization and deserialization. @@ -741,16 +746,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoBool: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoBool: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final bool Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, bool aBool, )? flutterEchoBool; @@ -765,16 +770,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoInt: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoInt: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final int Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, int anInt, )? flutterEchoInt; @@ -789,16 +794,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoDouble: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoDouble: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final double Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, double aDouble, )? flutterEchoDouble; @@ -813,16 +818,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoString: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoString: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final String Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, String aString, )? flutterEchoString; @@ -837,16 +842,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoUint8List: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoUint8List: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Uint8List Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Uint8List aList, )? flutterEchoUint8List; @@ -861,16 +866,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoList: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoList: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final List Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, List aList, )? flutterEchoList; @@ -886,16 +891,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoProxyApiList: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoProxyApiList: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final List Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, List aList, )? flutterEchoProxyApiList; @@ -910,16 +915,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoMap: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoMap: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Map Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Map aMap, )? flutterEchoMap; @@ -935,16 +940,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoProxyApiMap: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoProxyApiMap: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Map Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Map aMap, )? flutterEchoProxyApiMap; @@ -959,16 +964,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoEnum: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoEnum: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiTestEnum Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiTestEnum anEnum, )? flutterEchoEnum; @@ -983,16 +988,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoProxyApi: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoProxyApi: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiSuperClass Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiSuperClass aProxyApi, )? flutterEchoProxyApi; @@ -1007,16 +1012,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableBool: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableBool: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final bool? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, bool? aBool, )? flutterEchoNullableBool; @@ -1031,16 +1036,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableInt: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableInt: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final int? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, int? anInt, )? flutterEchoNullableInt; @@ -1055,16 +1060,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableDouble: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableDouble: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final double? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, double? aDouble, )? flutterEchoNullableDouble; @@ -1079,16 +1084,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableString: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableString: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final String? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, String? aString, )? flutterEchoNullableString; @@ -1103,16 +1108,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableUint8List: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableUint8List: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Uint8List? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Uint8List? aList, )? flutterEchoNullableUint8List; @@ -1127,16 +1132,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableList: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableList: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final List? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, List? aList, )? flutterEchoNullableList; @@ -1151,16 +1156,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableMap: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableMap: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Map? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Map? aMap, )? flutterEchoNullableMap; @@ -1175,16 +1180,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableEnum: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableEnum: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiTestEnum? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiTestEnum? anEnum, )? flutterEchoNullableEnum; @@ -1199,16 +1204,16 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableProxyApi: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoNullableProxyApi: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiSuperClass? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiSuperClass? aProxyApi, )? flutterEchoNullableProxyApi; @@ -1224,15 +1229,15 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterNoopAsync: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterNoopAsync: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final Future Function(ProxyApiTestClass pigeon_instance)? + final Future Function(ProxyApiTestClass pigeonField_instance)? flutterNoopAsync; /// Returns the passed in generic Object asynchronously. @@ -1246,31 +1251,32 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoAsyncString: (ProxyApiTestClass pigeon_instance, ...) { + /// flutterEchoAsyncString: (ProxyApiTestClass pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Future Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, String aString, )? flutterEchoAsyncString; @override - final void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod; + final void Function(ProxyApiInterface pigeonField_instance)? + anInterfaceMethod; - late final ProxyApiSuperClass attachedField = __pigeon_attachedField(); + late final ProxyApiSuperClass attachedField = pigeon_attachedField(); static final ProxyApiSuperClass staticAttachedField = - __pigeon_staticAttachedField(); + pigeon_staticAttachedField(); - static void pigeon_setUpMessageHandlers({ - bool pigeon_clearHandlers = false, - BinaryMessenger? pigeon_binaryMessenger, - PigeonInstanceManager? pigeon_instanceManager, + static void pigeonField_setUpMessageHandlers({ + bool pigeonField_clearHandlers = false, + BinaryMessenger? pigeonField_binaryMessenger, + PigeonInternalInstanceManager? pigeonField_instanceManager, ProxyApiTestClass Function( bool aBool, int anInt, @@ -1290,146 +1296,148 @@ class ProxyApiTestClass extends ProxyApiSuperClass Map? aNullableMap, ProxyApiTestEnum? aNullableEnum, ProxyApiSuperClass? aNullableProxyApi, - )? pigeon_newInstance, - void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, - Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, - void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, + )? pigeonField_newInstance, + void Function(ProxyApiTestClass pigeonField_instance)? flutterNoop, + Object? Function(ProxyApiTestClass pigeonField_instance)? flutterThrowError, + void Function(ProxyApiTestClass pigeonField_instance)? + flutterThrowErrorFromVoid, bool Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, bool aBool, )? flutterEchoBool, int Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, int anInt, )? flutterEchoInt, double Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, double aDouble, )? flutterEchoDouble, String Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, String aString, )? flutterEchoString, Uint8List Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Uint8List aList, )? flutterEchoUint8List, List Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, List aList, )? flutterEchoList, List Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, List aList, )? flutterEchoProxyApiList, Map Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Map aMap, )? flutterEchoMap, Map Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Map aMap, )? flutterEchoProxyApiMap, ProxyApiTestEnum Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiTestEnum anEnum, )? flutterEchoEnum, ProxyApiSuperClass Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiSuperClass aProxyApi, )? flutterEchoProxyApi, bool? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, bool? aBool, )? flutterEchoNullableBool, int? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, int? anInt, )? flutterEchoNullableInt, double? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, double? aDouble, )? flutterEchoNullableDouble, String? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, String? aString, )? flutterEchoNullableString, Uint8List? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Uint8List? aList, )? flutterEchoNullableUint8List, List? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, List? aList, )? flutterEchoNullableList, Map? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, Map? aMap, )? flutterEchoNullableMap, ProxyApiTestEnum? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiTestEnum? anEnum, )? flutterEchoNullableEnum, ProxyApiSuperClass? Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, ProxyApiSuperClass? aProxyApi, )? flutterEchoNullableProxyApi, - Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, + Future Function(ProxyApiTestClass pigeonField_instance)? + flutterNoopAsync, Future Function( - ProxyApiTestClass pigeon_instance, + ProxyApiTestClass pigeonField_instance, String aString, )? flutterEchoAsyncString, }) { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - _PigeonProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); - final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance); + final BinaryMessenger? binaryMessenger = pigeonField_binaryMessenger; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance', + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null.'); final List args = (message as List?)!; - final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert(arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null int.'); + final int? arg_pigeonField_instanceIdentifier = (args[0] as int?); + assert(arg_pigeonField_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null int.'); final bool? arg_aBool = (args[1] as bool?); assert(arg_aBool != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null bool.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null bool.'); final int? arg_anInt = (args[2] as int?); assert(arg_anInt != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null int.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null int.'); final double? arg_aDouble = (args[3] as double?); assert(arg_aDouble != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null double.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null double.'); final String? arg_aString = (args[4] as String?); assert(arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null String.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null String.'); final Uint8List? arg_aUint8List = (args[5] as Uint8List?); assert(arg_aUint8List != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null Uint8List.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null Uint8List.'); final List? arg_aList = (args[6] as List?)?.cast(); assert(arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null List.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null List.'); final Map? arg_aMap = (args[7] as Map?)?.cast(); assert(arg_aMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null Map.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null Map.'); final ProxyApiTestEnum? arg_anEnum = (args[8] as ProxyApiTestEnum?); assert(arg_anEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null ProxyApiTestEnum.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null ProxyApiTestEnum.'); final ProxyApiSuperClass? arg_aProxyApi = (args[9] as ProxyApiSuperClass?); assert(arg_aProxyApi != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null ProxyApiSuperClass.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null ProxyApiSuperClass.'); final bool? arg_aNullableBool = (args[10] as bool?); final int? arg_aNullableInt = (args[11] as int?); final double? arg_aNullableDouble = (args[12] as double?); @@ -1444,9 +1452,10 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiSuperClass? arg_aNullableProxyApi = (args[18] as ProxyApiSuperClass?); try { - (pigeon_instanceManager ?? PigeonInstanceManager.instance) + (pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call( + pigeonField_newInstance?.call( arg_aBool!, arg_anInt!, arg_aDouble!, @@ -1465,9 +1474,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass arg_aNullableMap, arg_aNullableEnum, arg_aNullableProxyApi) ?? - ProxyApiTestClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, + ProxyApiTestClass.pigeonField_detached( + pigeonField_binaryMessenger: pigeonField_binaryMessenger, + pigeonField_instanceManager: pigeonField_instanceManager, aBool: arg_aBool!, anInt: arg_anInt!, aDouble: arg_aDouble!, @@ -1487,7 +1496,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass aNullableEnum: arg_aNullableEnum, aNullableProxyApi: arg_aNullableProxyApi, ), - arg_pigeon_instanceIdentifier!, + arg_pigeonField_instanceIdentifier!, ); return wrapResponse(empty: true); } on PlatformException catch (e) { @@ -1501,25 +1510,25 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null, expected non-null ProxyApiTestClass.'); try { - (flutterNoop ?? arg_pigeon_instance!.flutterNoop) - ?.call(arg_pigeon_instance!); + (flutterNoop ?? arg_pigeonField_instance!.flutterNoop) + ?.call(arg_pigeonField_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1532,26 +1541,26 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null, expected non-null ProxyApiTestClass.'); try { - final Object? output = - (flutterThrowError ?? arg_pigeon_instance!.flutterThrowError) - ?.call(arg_pigeon_instance!); + final Object? output = (flutterThrowError ?? + arg_pigeonField_instance!.flutterThrowError) + ?.call(arg_pigeonField_instance!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1564,26 +1573,26 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null, expected non-null ProxyApiTestClass.'); try { (flutterThrowErrorFromVoid ?? - arg_pigeon_instance!.flutterThrowErrorFromVoid) - ?.call(arg_pigeon_instance!); + arg_pigeonField_instance!.flutterThrowErrorFromVoid) + ?.call(arg_pigeonField_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1596,29 +1605,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null ProxyApiTestClass.'); final bool? arg_aBool = (args[1] as bool?); assert(arg_aBool != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null bool.'); try { final bool? output = - (flutterEchoBool ?? arg_pigeon_instance!.flutterEchoBool) - ?.call(arg_pigeon_instance!, arg_aBool!); + (flutterEchoBool ?? arg_pigeonField_instance!.flutterEchoBool) + ?.call(arg_pigeonField_instance!, arg_aBool!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1631,29 +1640,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null ProxyApiTestClass.'); final int? arg_anInt = (args[1] as int?); assert(arg_anInt != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null int.'); try { final int? output = - (flutterEchoInt ?? arg_pigeon_instance!.flutterEchoInt) - ?.call(arg_pigeon_instance!, arg_anInt!); + (flutterEchoInt ?? arg_pigeonField_instance!.flutterEchoInt) + ?.call(arg_pigeonField_instance!, arg_anInt!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1666,29 +1675,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null ProxyApiTestClass.'); final double? arg_aDouble = (args[1] as double?); assert(arg_aDouble != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null double.'); try { - final double? output = - (flutterEchoDouble ?? arg_pigeon_instance!.flutterEchoDouble) - ?.call(arg_pigeon_instance!, arg_aDouble!); + final double? output = (flutterEchoDouble ?? + arg_pigeonField_instance!.flutterEchoDouble) + ?.call(arg_pigeonField_instance!, arg_aDouble!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1701,29 +1710,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); assert(arg_aString != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null String.'); try { - final String? output = - (flutterEchoString ?? arg_pigeon_instance!.flutterEchoString) - ?.call(arg_pigeon_instance!, arg_aString!); + final String? output = (flutterEchoString ?? + arg_pigeonField_instance!.flutterEchoString) + ?.call(arg_pigeonField_instance!, arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1736,29 +1745,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null ProxyApiTestClass.'); final Uint8List? arg_aList = (args[1] as Uint8List?); assert(arg_aList != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null Uint8List.'); try { final Uint8List? output = (flutterEchoUint8List ?? - arg_pigeon_instance!.flutterEchoUint8List) - ?.call(arg_pigeon_instance!, arg_aList!); + arg_pigeonField_instance!.flutterEchoUint8List) + ?.call(arg_pigeonField_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1771,21 +1780,21 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null ProxyApiTestClass.'); final List? arg_aList = (args[1] as List?)?.cast(); @@ -1793,8 +1802,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null List.'); try { final List? output = - (flutterEchoList ?? arg_pigeon_instance!.flutterEchoList) - ?.call(arg_pigeon_instance!, arg_aList!); + (flutterEchoList ?? arg_pigeonField_instance!.flutterEchoList) + ?.call(arg_pigeonField_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1807,21 +1816,21 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null ProxyApiTestClass.'); final List? arg_aList = (args[1] as List?)?.cast(); @@ -1829,8 +1838,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null List.'); try { final List? output = (flutterEchoProxyApiList ?? - arg_pigeon_instance!.flutterEchoProxyApiList) - ?.call(arg_pigeon_instance!, arg_aList!); + arg_pigeonField_instance!.flutterEchoProxyApiList) + ?.call(arg_pigeonField_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1843,21 +1852,21 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?)?.cast(); @@ -1865,8 +1874,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null Map.'); try { final Map? output = - (flutterEchoMap ?? arg_pigeon_instance!.flutterEchoMap) - ?.call(arg_pigeon_instance!, arg_aMap!); + (flutterEchoMap ?? arg_pigeonField_instance!.flutterEchoMap) + ?.call(arg_pigeonField_instance!, arg_aMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1879,21 +1888,21 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?) @@ -1903,8 +1912,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass try { final Map? output = (flutterEchoProxyApiMap ?? - arg_pigeon_instance!.flutterEchoProxyApiMap) - ?.call(arg_pigeon_instance!, arg_aMap!); + arg_pigeonField_instance!.flutterEchoProxyApiMap) + ?.call(arg_pigeonField_instance!, arg_aMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1917,29 +1926,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestClass.'); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); assert(arg_anEnum != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestEnum.'); try { final ProxyApiTestEnum? output = - (flutterEchoEnum ?? arg_pigeon_instance!.flutterEchoEnum) - ?.call(arg_pigeon_instance!, arg_anEnum!); + (flutterEchoEnum ?? arg_pigeonField_instance!.flutterEchoEnum) + ?.call(arg_pigeonField_instance!, arg_anEnum!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1952,21 +1961,21 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiTestClass.'); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); @@ -1974,8 +1983,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiSuperClass.'); try { final ProxyApiSuperClass? output = (flutterEchoProxyApi ?? - arg_pigeon_instance!.flutterEchoProxyApi) - ?.call(arg_pigeon_instance!, arg_aProxyApi!); + arg_pigeonField_instance!.flutterEchoProxyApi) + ?.call(arg_pigeonField_instance!, arg_aProxyApi!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1988,27 +1997,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null, expected non-null ProxyApiTestClass.'); final bool? arg_aBool = (args[1] as bool?); try { final bool? output = (flutterEchoNullableBool ?? - arg_pigeon_instance!.flutterEchoNullableBool) - ?.call(arg_pigeon_instance!, arg_aBool); + arg_pigeonField_instance!.flutterEchoNullableBool) + ?.call(arg_pigeonField_instance!, arg_aBool); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2021,27 +2030,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null, expected non-null ProxyApiTestClass.'); final int? arg_anInt = (args[1] as int?); try { final int? output = (flutterEchoNullableInt ?? - arg_pigeon_instance!.flutterEchoNullableInt) - ?.call(arg_pigeon_instance!, arg_anInt); + arg_pigeonField_instance!.flutterEchoNullableInt) + ?.call(arg_pigeonField_instance!, arg_anInt); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2054,27 +2063,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null, expected non-null ProxyApiTestClass.'); final double? arg_aDouble = (args[1] as double?); try { final double? output = (flutterEchoNullableDouble ?? - arg_pigeon_instance!.flutterEchoNullableDouble) - ?.call(arg_pigeon_instance!, arg_aDouble); + arg_pigeonField_instance!.flutterEchoNullableDouble) + ?.call(arg_pigeonField_instance!, arg_aDouble); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2087,27 +2096,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); try { final String? output = (flutterEchoNullableString ?? - arg_pigeon_instance!.flutterEchoNullableString) - ?.call(arg_pigeon_instance!, arg_aString); + arg_pigeonField_instance!.flutterEchoNullableString) + ?.call(arg_pigeonField_instance!, arg_aString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2120,27 +2129,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null, expected non-null ProxyApiTestClass.'); final Uint8List? arg_aList = (args[1] as Uint8List?); try { final Uint8List? output = (flutterEchoNullableUint8List ?? - arg_pigeon_instance!.flutterEchoNullableUint8List) - ?.call(arg_pigeon_instance!, arg_aList); + arg_pigeonField_instance!.flutterEchoNullableUint8List) + ?.call(arg_pigeonField_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2153,28 +2162,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null, expected non-null ProxyApiTestClass.'); final List? arg_aList = (args[1] as List?)?.cast(); try { final List? output = (flutterEchoNullableList ?? - arg_pigeon_instance!.flutterEchoNullableList) - ?.call(arg_pigeon_instance!, arg_aList); + arg_pigeonField_instance!.flutterEchoNullableList) + ?.call(arg_pigeonField_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2187,28 +2196,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?)?.cast(); try { final Map? output = (flutterEchoNullableMap ?? - arg_pigeon_instance!.flutterEchoNullableMap) - ?.call(arg_pigeon_instance!, arg_aMap); + arg_pigeonField_instance!.flutterEchoNullableMap) + ?.call(arg_pigeonField_instance!, arg_aMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2221,27 +2230,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null, expected non-null ProxyApiTestClass.'); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); try { final ProxyApiTestEnum? output = (flutterEchoNullableEnum ?? - arg_pigeon_instance!.flutterEchoNullableEnum) - ?.call(arg_pigeon_instance!, arg_anEnum); + arg_pigeonField_instance!.flutterEchoNullableEnum) + ?.call(arg_pigeonField_instance!, arg_anEnum); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2254,28 +2263,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null, expected non-null ProxyApiTestClass.'); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); try { final ProxyApiSuperClass? output = (flutterEchoNullableProxyApi ?? - arg_pigeon_instance!.flutterEchoNullableProxyApi) - ?.call(arg_pigeon_instance!, arg_aProxyApi); + arg_pigeonField_instance!.flutterEchoNullableProxyApi) + ?.call(arg_pigeonField_instance!, arg_aProxyApi); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2288,25 +2297,26 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null, expected non-null ProxyApiTestClass.'); try { - await (flutterNoopAsync ?? arg_pigeon_instance!.flutterNoopAsync) - ?.call(arg_pigeon_instance!); + await (flutterNoopAsync ?? + arg_pigeonField_instance!.flutterNoopAsync) + ?.call(arg_pigeonField_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2319,29 +2329,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeon_instance = + final ProxyApiTestClass? arg_pigeonField_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); assert(arg_aString != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null String.'); try { final String? output = await (flutterEchoAsyncString ?? - arg_pigeon_instance!.flutterEchoAsyncString) - ?.call(arg_pigeon_instance!, arg_aString!); + arg_pigeonField_instance!.flutterEchoAsyncString) + ?.call(arg_pigeonField_instance!, arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2354,101 +2364,102 @@ class ProxyApiTestClass extends ProxyApiSuperClass } } - ProxyApiSuperClass __pigeon_attachedField() { - final ProxyApiSuperClass __pigeon_instance = - ProxyApiSuperClass.pigeon_detached( + ProxyApiSuperClass pigeon_attachedField() { + final ProxyApiSuperClass pigeon_instance = + ProxyApiSuperClass.pigeonField_detached( pigeon_binaryMessenger: pigeon_binaryMessenger, pigeon_instanceManager: pigeon_instanceManager, ); - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - final int __pigeon_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(__pigeon_instance); + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + final int pigeon_instanceIdentifier = + pigeonField_instanceManager.addDartCreatedInstance(pigeon_instance); () async { - const String __pigeon_channelName = + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([this, __pigeon_instanceIdentifier]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = await pigeon_channel + .send([this, pigeon_instanceIdentifier]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; } }(); - return __pigeon_instance; + return pigeon_instance; } - static ProxyApiSuperClass __pigeon_staticAttachedField() { - final ProxyApiSuperClass __pigeon_instance = - ProxyApiSuperClass.pigeon_detached(); - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - _PigeonProxyApiBaseCodec(PigeonInstanceManager.instance); - final BinaryMessenger __pigeon_binaryMessenger = + static ProxyApiSuperClass pigeon_staticAttachedField() { + final ProxyApiSuperClass pigeon_instance = + ProxyApiSuperClass.pigeonField_detached(); + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec( + PigeonInternalInstanceManager.instance); + final BinaryMessenger pigeon_binaryMessenger = ServicesBinding.instance.defaultBinaryMessenger; - final int __pigeon_instanceIdentifier = PigeonInstanceManager.instance - .addDartCreatedInstance(__pigeon_instance); + final int pigeon_instanceIdentifier = PigeonInternalInstanceManager.instance + .addDartCreatedInstance(pigeon_instance); () async { - const String __pigeon_channelName = + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([__pigeon_instanceIdentifier]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = await pigeon_channel + .send([pigeon_instanceIdentifier]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; } }(); - return __pigeon_instance; + return pigeon_instance; } /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. Future noop() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -2457,54 +2468,54 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns an error, to test error handling. Future throwError() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns an error from a void function, to test error handling. Future throwErrorFromVoid() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -2513,260 +2524,260 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns a Flutter error, to test error handling. Future throwFlutterError() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns passed in int. Future echoInt(int anInt) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } /// Returns passed in double. Future echoDouble(double aDouble) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } /// Returns the passed in boolean. Future echoBool(bool aBool) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } /// Returns the passed in string. Future echoString(String aString) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } /// Returns the passed in Uint8List. Future echoUint8List(Uint8List aUint8List) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Uint8List?)!; + return (pigeon_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object. Future echoObject(Object anObject) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([this, anObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anObject]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return __pigeon_replyList[0]!; + return pigeon_replyList[0]!; } } /// Returns the passed list, to test serialization and deserialization. Future> echoList(List aList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } @@ -2774,68 +2785,68 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// deserialization. Future> echoProxyApiList( List aList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)! + return (pigeon_replyList[0] as List?)! .cast(); } } /// Returns the passed map, to test serialization and deserialization. Future> echoMap(Map aMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } @@ -2844,411 +2855,411 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// deserialization. Future> echoProxyApiMap( Map aMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } /// Returns the passed enum to test serialization and deserialization. Future echoEnum(ProxyApiTestEnum anEnum) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as ProxyApiTestEnum?)!; + return (pigeon_replyList[0] as ProxyApiTestEnum?)!; } } /// Returns the passed ProxyApi to test serialization and deserialization. Future echoProxyApi(ProxyApiSuperClass aProxyApi) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([this, aProxyApi]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aProxyApi]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as ProxyApiSuperClass?)!; + return (pigeon_replyList[0] as ProxyApiSuperClass?)!; } } /// Returns passed in int. Future echoNullableInt(int? aNullableInt) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } /// Returns passed in double. Future echoNullableDouble(double? aNullableDouble) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as double?); + return (pigeon_replyList[0] as double?); } } /// Returns the passed in boolean. Future echoNullableBool(bool? aNullableBool) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as bool?); + return (pigeon_replyList[0] as bool?); } } /// Returns the passed in string. Future echoNullableString(String? aNullableString) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } /// Returns the passed in Uint8List. Future echoNullableUint8List( Uint8List? aNullableUint8List) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Uint8List?); + return (pigeon_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object. Future echoNullableObject(Object? aNullableObject) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableList(List? aNullableList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as List?)?.cast(); + return (pigeon_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableMap( Map? aNullableMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Map?) + return (pigeon_replyList[0] as Map?) ?.cast(); } } Future echoNullableEnum( ProxyApiTestEnum? aNullableEnum) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as ProxyApiTestEnum?); + return (pigeon_replyList[0] as ProxyApiTestEnum?); } } /// Returns the passed ProxyApi to test serialization and deserialization. Future echoNullableProxyApi( ProxyApiSuperClass? aNullableProxyApi) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aNullableProxyApi]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as ProxyApiSuperClass?); + return (pigeon_replyList[0] as ProxyApiSuperClass?); } } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. Future noopAsync() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -3257,352 +3268,352 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns passed in int asynchronously. Future echoAsyncInt(int anInt) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } /// Returns passed in double asynchronously. Future echoAsyncDouble(double aDouble) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } /// Returns the passed in boolean asynchronously. Future echoAsyncBool(bool aBool) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } /// Returns the passed string asynchronously. Future echoAsyncString(String aString) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncUint8List(Uint8List aUint8List) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Uint8List?)!; + return (pigeon_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object asynchronously. Future echoAsyncObject(Object anObject) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([this, anObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anObject]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return __pigeon_replyList[0]!; + return pigeon_replyList[0]!; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncList(List aList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncMap(Map aMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncEnum(ProxyApiTestEnum anEnum) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as ProxyApiTestEnum?)!; + return (pigeon_replyList[0] as ProxyApiTestEnum?)!; } } /// Responds with an error from an async function returning a value. Future throwAsyncError() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Responds with an error from an async void function. Future throwAsyncErrorFromVoid() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -3611,254 +3622,254 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Responds with a Flutter error from an async function returning a value. Future throwAsyncFlutterError() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns passed in int asynchronously. Future echoAsyncNullableInt(int? anInt) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } /// Returns passed in double asynchronously. Future echoAsyncNullableDouble(double? aDouble) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as double?); + return (pigeon_replyList[0] as double?); } } /// Returns the passed in boolean asynchronously. Future echoAsyncNullableBool(bool? aBool) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as bool?); + return (pigeon_replyList[0] as bool?); } } /// Returns the passed string asynchronously. Future echoAsyncNullableString(String? aString) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Uint8List?); + return (pigeon_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object asynchronously. Future echoAsyncNullableObject(Object? anObject) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([this, anObject]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anObject]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableList(List? aList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as List?)?.cast(); + return (pigeon_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableMap( Map? aMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Map?) + return (pigeon_replyList[0] as Map?) ?.cast(); } } @@ -3866,57 +3877,57 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum( ProxyApiTestEnum? anEnum) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as ProxyApiTestEnum?); + return (pigeon_replyList[0] as ProxyApiTestEnum?); } } static Future staticNoop({ - BinaryMessenger? pigeon_binaryMessenger, - PigeonInstanceManager? pigeon_instanceManager, + BinaryMessenger? pigeonField_binaryMessenger, + PigeonInternalInstanceManager? pigeonField_instanceManager, }) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - _PigeonProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance); + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -3925,66 +3936,66 @@ class ProxyApiTestClass extends ProxyApiSuperClass static Future echoStaticString( String aString, { - BinaryMessenger? pigeon_binaryMessenger, - PigeonInstanceManager? pigeon_instanceManager, + BinaryMessenger? pigeonField_binaryMessenger, + PigeonInternalInstanceManager? pigeonField_instanceManager, }) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - _PigeonProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance); + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } static Future staticAsyncNoop({ - BinaryMessenger? pigeon_binaryMessenger, - PigeonInstanceManager? pigeon_instanceManager, + BinaryMessenger? pigeonField_binaryMessenger, + PigeonInternalInstanceManager? pigeonField_instanceManager, }) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - _PigeonProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance); + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send(null) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send(null) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -3992,26 +4003,26 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterNoop() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -4019,53 +4030,53 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterThrowError() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return __pigeon_replyList[0]; + return pigeon_replyList[0]; } } Future callFlutterThrowErrorFromVoid() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -4073,634 +4084,634 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoBool(bool aBool) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as bool?)!; + return (pigeon_replyList[0] as bool?)!; } } Future callFlutterEchoInt(int anInt) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as int?)!; + return (pigeon_replyList[0] as int?)!; } } Future callFlutterEchoDouble(double aDouble) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as double?)!; + return (pigeon_replyList[0] as double?)!; } } Future callFlutterEchoString(String aString) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } Future callFlutterEchoUint8List(Uint8List aUint8List) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Uint8List?)!; + return (pigeon_replyList[0] as Uint8List?)!; } } Future> callFlutterEchoList(List aList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)!.cast(); + return (pigeon_replyList[0] as List?)!.cast(); } } Future> callFlutterEchoProxyApiList( List aList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as List?)! + return (pigeon_replyList[0] as List?)! .cast(); } } Future> callFlutterEchoMap( Map aMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } Future> callFlutterEchoProxyApiMap( Map aMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as Map?)! + return (pigeon_replyList[0] as Map?)! .cast(); } } Future callFlutterEchoEnum(ProxyApiTestEnum anEnum) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as ProxyApiTestEnum?)!; + return (pigeon_replyList[0] as ProxyApiTestEnum?)!; } } Future callFlutterEchoProxyApi( ProxyApiSuperClass aProxyApi) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([this, aProxyApi]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aProxyApi]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as ProxyApiSuperClass?)!; + return (pigeon_replyList[0] as ProxyApiSuperClass?)!; } } Future callFlutterEchoNullableBool(bool? aBool) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aBool]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aBool]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as bool?); + return (pigeon_replyList[0] as bool?); } } Future callFlutterEchoNullableInt(int? anInt) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anInt]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anInt]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as int?); + return (pigeon_replyList[0] as int?); } } Future callFlutterEchoNullableDouble(double? aDouble) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aDouble]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aDouble]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as double?); + return (pigeon_replyList[0] as double?); } } Future callFlutterEchoNullableString(String? aString) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as String?); + return (pigeon_replyList[0] as String?); } } Future callFlutterEchoNullableUint8List( Uint8List? aUint8List) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel + final List? pigeon_replyList = await pigeon_channel .send([this, aUint8List]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Uint8List?); + return (pigeon_replyList[0] as Uint8List?); } } Future?> callFlutterEchoNullableList( List? aList) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aList]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aList]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as List?)?.cast(); + return (pigeon_replyList[0] as List?)?.cast(); } } Future?> callFlutterEchoNullableMap( Map? aMap) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aMap]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aMap]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as Map?) + return (pigeon_replyList[0] as Map?) ?.cast(); } } Future callFlutterEchoNullableEnum( ProxyApiTestEnum? anEnum) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, anEnum]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, anEnum]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as ProxyApiTestEnum?); + return (pigeon_replyList[0] as ProxyApiTestEnum?); } } Future callFlutterEchoNullableProxyApi( ProxyApiSuperClass? aProxyApi) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([this, aProxyApi]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aProxyApi]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { - return (__pigeon_replyList[0] as ProxyApiSuperClass?); + return (pigeon_replyList[0] as ProxyApiSuperClass?); } } Future callFlutterNoopAsync() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -4708,42 +4719,42 @@ class ProxyApiTestClass extends ProxyApiSuperClass } Future callFlutterEchoAsyncString(String aString) async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiTestClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiTestClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this, aString]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this, aString]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); - } else if (__pigeon_replyList[0] == null) { + } else if (pigeon_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (__pigeon_replyList[0] as String?)!; + return (pigeon_replyList[0] as String?)!; } } @override - ProxyApiTestClass pigeon_copy() { - return ProxyApiTestClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, + ProxyApiTestClass pigeonField_copy() { + return ProxyApiTestClass.pigeonField_detached( + pigeonField_binaryMessenger: pigeonField_binaryMessenger, + pigeonField_instanceManager: pigeonField_instanceManager, aBool: aBool, anInt: anInt, aDouble: aDouble, @@ -4793,34 +4804,34 @@ class ProxyApiTestClass extends ProxyApiSuperClass } /// ProxyApi to serve as a super class to the core ProxyApi class. -class ProxyApiSuperClass extends PigeonProxyApiBaseClass { +class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { ProxyApiSuperClass({ - super.pigeon_binaryMessenger, - super.pigeon_instanceManager, + super.pigeonField_binaryMessenger, + super.pigeonField_instanceManager, }) { - final int __pigeon_instanceIdentifier = - pigeon_instanceManager.addDartCreatedInstance(this); - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiSuperClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; + final int pigeon_instanceIdentifier = + pigeonField_instanceManager.addDartCreatedInstance(this); + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiSuperClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; () async { - const String __pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor'; - final BasicMessageChannel __pigeon_channel = + const String pigeon_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_defaultConstructor'; + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = await __pigeon_channel - .send([__pigeon_instanceIdentifier]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = await pigeon_channel + .send([pigeon_instanceIdentifier]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -4831,51 +4842,52 @@ class ProxyApiSuperClass extends PigeonProxyApiBaseClass { /// Constructs [ProxyApiSuperClass] without creating the associated native object. /// /// This should only be used by subclasses created by this library or to - /// create copies for an [PigeonInstanceManager]. + /// create copies for an [PigeonInternalInstanceManager]. @protected - ProxyApiSuperClass.pigeon_detached({ - super.pigeon_binaryMessenger, - super.pigeon_instanceManager, + ProxyApiSuperClass.pigeonField_detached({ + super.pigeonField_binaryMessenger, + super.pigeonField_instanceManager, }); - late final _PigeonProxyApiBaseCodec __pigeon_codecProxyApiSuperClass = - _PigeonProxyApiBaseCodec(pigeon_instanceManager); + late final _PigeonInternalProxyApiBaseCodec pigeon_codecProxyApiSuperClass = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager); - static void pigeon_setUpMessageHandlers({ - bool pigeon_clearHandlers = false, - BinaryMessenger? pigeon_binaryMessenger, - PigeonInstanceManager? pigeon_instanceManager, - ProxyApiSuperClass Function()? pigeon_newInstance, + static void pigeonField_setUpMessageHandlers({ + bool pigeonField_clearHandlers = false, + BinaryMessenger? pigeonField_binaryMessenger, + PigeonInternalInstanceManager? pigeonField_instanceManager, + ProxyApiSuperClass Function()? pigeonField_newInstance, }) { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - _PigeonProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); - final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance); + final BinaryMessenger? binaryMessenger = pigeonField_binaryMessenger; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance', + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_newInstance', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_newInstance was null.'); final List args = (message as List?)!; - final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert(arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null, expected non-null int.'); + final int? arg_pigeonField_instanceIdentifier = (args[0] as int?); + assert(arg_pigeonField_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_newInstance was null, expected non-null int.'); try { - (pigeon_instanceManager ?? PigeonInstanceManager.instance) + (pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ProxyApiSuperClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, + pigeonField_newInstance?.call() ?? + ProxyApiSuperClass.pigeonField_detached( + pigeonField_binaryMessenger: pigeonField_binaryMessenger, + pigeonField_instanceManager: pigeonField_instanceManager, ), - arg_pigeon_instanceIdentifier!, + arg_pigeonField_instanceIdentifier!, ); return wrapResponse(empty: true); } on PlatformException catch (e) { @@ -4890,26 +4902,26 @@ class ProxyApiSuperClass extends PigeonProxyApiBaseClass { } Future aSuperMethod() async { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - __pigeon_codecProxyApiSuperClass; - final BinaryMessenger? __pigeon_binaryMessenger = pigeon_binaryMessenger; - const String __pigeon_channelName = + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + pigeon_codecProxyApiSuperClass; + final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + const String pigeon_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod'; - final BasicMessageChannel __pigeon_channel = + final BasicMessageChannel pigeon_channel = BasicMessageChannel( - __pigeon_channelName, + pigeon_channelName, pigeonChannelCodec, - binaryMessenger: __pigeon_binaryMessenger, + binaryMessenger: pigeon_binaryMessenger, ); - final List? __pigeon_replyList = - await __pigeon_channel.send([this]) as List?; - if (__pigeon_replyList == null) { - throw _createConnectionError(__pigeon_channelName); - } else if (__pigeon_replyList.length > 1) { + final List? pigeon_replyList = + await pigeon_channel.send([this]) as List?; + if (pigeon_replyList == null) { + throw _createConnectionError(pigeon_channelName); + } else if (pigeon_replyList.length > 1) { throw PlatformException( - code: __pigeon_replyList[0]! as String, - message: __pigeon_replyList[1] as String?, - details: __pigeon_replyList[2], + code: pigeon_replyList[0]! as String, + message: pigeon_replyList[1] as String?, + details: pigeon_replyList[2], ); } else { return; @@ -4917,24 +4929,24 @@ class ProxyApiSuperClass extends PigeonProxyApiBaseClass { } @override - ProxyApiSuperClass pigeon_copy() { - return ProxyApiSuperClass.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, + ProxyApiSuperClass pigeonField_copy() { + return ProxyApiSuperClass.pigeonField_detached( + pigeonField_binaryMessenger: pigeonField_binaryMessenger, + pigeonField_instanceManager: pigeonField_instanceManager, ); } } /// ProxyApi to serve as an interface to the core ProxyApi class. -class ProxyApiInterface extends PigeonProxyApiBaseClass { +class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { /// Constructs [ProxyApiInterface] without creating the associated native object. /// /// This should only be used by subclasses created by this library or to - /// create copies for an [PigeonInstanceManager]. + /// create copies for an [PigeonInternalInstanceManager]. @protected - ProxyApiInterface.pigeon_detached({ - super.pigeon_binaryMessenger, - super.pigeon_instanceManager, + ProxyApiInterface.pigeonField_detached({ + super.pigeonField_binaryMessenger, + super.pigeonField_instanceManager, this.anInterfaceMethod, }); @@ -4949,52 +4961,54 @@ class ProxyApiInterface extends PigeonProxyApiBaseClass { /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiInterface instance = ProxyApiInterface( - /// anInterfaceMethod: (ProxyApiInterface pigeon_instance, ...) { + /// anInterfaceMethod: (ProxyApiInterface pigeonField_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); /// ``` /// - /// Alternatively, [PigeonInstanceManager.removeWeakReference] can be used to + /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod; - - static void pigeon_setUpMessageHandlers({ - bool pigeon_clearHandlers = false, - BinaryMessenger? pigeon_binaryMessenger, - PigeonInstanceManager? pigeon_instanceManager, - ProxyApiInterface Function()? pigeon_newInstance, - void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod, + final void Function(ProxyApiInterface pigeonField_instance)? + anInterfaceMethod; + + static void pigeonField_setUpMessageHandlers({ + bool pigeonField_clearHandlers = false, + BinaryMessenger? pigeonField_binaryMessenger, + PigeonInternalInstanceManager? pigeonField_instanceManager, + ProxyApiInterface Function()? pigeonField_newInstance, + void Function(ProxyApiInterface pigeonField_instance)? anInterfaceMethod, }) { - final _PigeonProxyApiBaseCodec pigeonChannelCodec = - _PigeonProxyApiBaseCodec( - pigeon_instanceManager ?? PigeonInstanceManager.instance); - final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance); + final BinaryMessenger? binaryMessenger = pigeonField_binaryMessenger; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance', + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeonField_newInstance', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeonField_newInstance was null.'); final List args = (message as List?)!; - final int? arg_pigeon_instanceIdentifier = (args[0] as int?); - assert(arg_pigeon_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null, expected non-null int.'); + final int? arg_pigeonField_instanceIdentifier = (args[0] as int?); + assert(arg_pigeonField_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeonField_newInstance was null, expected non-null int.'); try { - (pigeon_instanceManager ?? PigeonInstanceManager.instance) + (pigeonField_instanceManager ?? + PigeonInternalInstanceManager.instance) .addHostCreatedInstance( - pigeon_newInstance?.call() ?? - ProxyApiInterface.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, + pigeonField_newInstance?.call() ?? + ProxyApiInterface.pigeonField_detached( + pigeonField_binaryMessenger: pigeonField_binaryMessenger, + pigeonField_instanceManager: pigeonField_instanceManager, ), - arg_pigeon_instanceIdentifier!, + arg_pigeonField_instanceIdentifier!, ); return wrapResponse(empty: true); } on PlatformException catch (e) { @@ -5008,25 +5022,25 @@ class ProxyApiInterface extends PigeonProxyApiBaseClass { } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeon_clearHandlers) { - __pigeon_channel.setMessageHandler(null); + if (pigeonField_clearHandlers) { + pigeon_channel.setMessageHandler(null); } else { - __pigeon_channel.setMessageHandler((Object? message) async { + pigeon_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null.'); final List args = (message as List?)!; - final ProxyApiInterface? arg_pigeon_instance = + final ProxyApiInterface? arg_pigeonField_instance = (args[0] as ProxyApiInterface?); - assert(arg_pigeon_instance != null, + assert(arg_pigeonField_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null, expected non-null ProxyApiInterface.'); try { - (anInterfaceMethod ?? arg_pigeon_instance!.anInterfaceMethod) - ?.call(arg_pigeon_instance!); + (anInterfaceMethod ?? arg_pigeonField_instance!.anInterfaceMethod) + ?.call(arg_pigeonField_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -5040,10 +5054,10 @@ class ProxyApiInterface extends PigeonProxyApiBaseClass { } @override - ProxyApiInterface pigeon_copy() { - return ProxyApiInterface.pigeon_detached( - pigeon_binaryMessenger: pigeon_binaryMessenger, - pigeon_instanceManager: pigeon_instanceManager, + ProxyApiInterface pigeonField_copy() { + return ProxyApiInterface.pigeonField_detached( + pigeonField_binaryMessenger: pigeonField_binaryMessenger, + pigeonField_instanceManager: pigeonField_instanceManager, anInterfaceMethod: anInterfaceMethod, ); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/instance_manager_test.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/instance_manager_test.dart index aadce1b81d7..1b64950e0a9 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/instance_manager_test.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/instance_manager_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// This file specifically tests the test PigeonInstanceManager generated by core_tests. +// This file specifically tests the test PigeonInternalInstanceManager generated by core_tests. import 'package:flutter_test/flutter_test.dart'; import 'package:shared_test_plugin_code/src/generated/proxy_api_tests.gen.dart'; @@ -10,8 +10,8 @@ import 'package:shared_test_plugin_code/src/generated/proxy_api_tests.gen.dart'; void main() { group('InstanceManager', () { test('addHostCreatedInstance', () { - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager(onWeakReferenceRemoved: (_) {}); final CopyableObject object = CopyableObject( pigeon_instanceManager: instanceManager, @@ -27,8 +27,8 @@ void main() { }); test('addHostCreatedInstance prevents already used objects and ids', () { - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager(onWeakReferenceRemoved: (_) {}); final CopyableObject object = CopyableObject( pigeon_instanceManager: instanceManager, @@ -51,8 +51,8 @@ void main() { }); test('addFlutterCreatedInstance', () { - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager(onWeakReferenceRemoved: (_) {}); final CopyableObject object = CopyableObject( pigeon_instanceManager: instanceManager, @@ -70,8 +70,9 @@ void main() { test('removeWeakReference', () { int? weakInstanceId; - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (int instanceId) { + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager( + onWeakReferenceRemoved: (int instanceId) { weakInstanceId = instanceId; }); @@ -90,8 +91,8 @@ void main() { }); test('removeWeakReference removes only weak reference', () { - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager(onWeakReferenceRemoved: (_) {}); final CopyableObject object = CopyableObject( pigeon_instanceManager: instanceManager, @@ -107,8 +108,8 @@ void main() { }); test('removeStrongReference', () { - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager(onWeakReferenceRemoved: (_) {}); final CopyableObject object = CopyableObject( pigeon_instanceManager: instanceManager, @@ -121,8 +122,8 @@ void main() { }); test('removeStrongReference removes only strong reference', () { - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager(onWeakReferenceRemoved: (_) {}); final CopyableObject object = CopyableObject( pigeon_instanceManager: instanceManager, @@ -137,8 +138,8 @@ void main() { }); test('getInstance can add a new weak reference', () { - final PigeonInstanceManager instanceManager = - PigeonInstanceManager(onWeakReferenceRemoved: (_) {}); + final PigeonInternalInstanceManager instanceManager = + PigeonInternalInstanceManager(onWeakReferenceRemoved: (_) {}); final CopyableObject object = CopyableObject( pigeon_instanceManager: instanceManager, @@ -156,7 +157,7 @@ void main() { }); } -class CopyableObject extends PigeonProxyApiBaseClass { +class CopyableObject extends PigeonInternalProxyApiBaseClass { // ignore: non_constant_identifier_names CopyableObject({super.pigeon_instanceManager}); diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart index d050d9648eb..203330c645f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart @@ -77,17 +77,17 @@ abstract class TestHostApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + .setMockDecodedMessageHandler(pigeon_channel, null); } else { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, + .setMockDecodedMessageHandler(pigeon_channel, (Object? message) async { try { api.initialize(); @@ -102,17 +102,17 @@ abstract class TestHostApi { } } { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + .setMockDecodedMessageHandler(pigeon_channel, null); } else { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, + .setMockDecodedMessageHandler(pigeon_channel, (Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.'); @@ -155,17 +155,17 @@ abstract class TestNestedApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel __pigeon_channel = BasicMessageChannel< + final BasicMessageChannel pigeon_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, null); + .setMockDecodedMessageHandler(pigeon_channel, null); } else { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(__pigeon_channel, + .setMockDecodedMessageHandler(pigeon_channel, (Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.'); diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index d5e66234250..11bd0f0c97d 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -87,25 +87,25 @@ data class AllTypes( ) { companion object { @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllTypes { - val aBool = __pigeon_list[0] as Boolean - val anInt = __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long } - val anInt64 = __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long } - val aDouble = __pigeon_list[3] as Double - val aByteArray = __pigeon_list[4] as ByteArray - val a4ByteArray = __pigeon_list[5] as IntArray - val a8ByteArray = __pigeon_list[6] as LongArray - val aFloatArray = __pigeon_list[7] as DoubleArray - val anEnum = __pigeon_list[8] as AnEnum - val anotherEnum = __pigeon_list[9] as AnotherEnum - val aString = __pigeon_list[10] as String - val anObject = __pigeon_list[11] as Any - val list = __pigeon_list[12] as List - val stringList = __pigeon_list[13] as List - val intList = __pigeon_list[14] as List - val doubleList = __pigeon_list[15] as List - val boolList = __pigeon_list[16] as List - val map = __pigeon_list[17] as Map + fun fromList(pigeon_list: List): AllTypes { + val aBool = pigeon_list[0] as Boolean + val anInt = pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long } + val anInt64 = pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long } + val aDouble = pigeon_list[3] as Double + val aByteArray = pigeon_list[4] as ByteArray + val a4ByteArray = pigeon_list[5] as IntArray + val a8ByteArray = pigeon_list[6] as LongArray + val aFloatArray = pigeon_list[7] as DoubleArray + val anEnum = pigeon_list[8] as AnEnum + val anotherEnum = pigeon_list[9] as AnotherEnum + val aString = pigeon_list[10] as String + val anObject = pigeon_list[11] as Any + val list = pigeon_list[12] as List + val stringList = pigeon_list[13] as List + val intList = pigeon_list[14] as List + val doubleList = pigeon_list[15] as List + val boolList = pigeon_list[16] as List + val map = pigeon_list[17] as Map return AllTypes( aBool, anInt, @@ -184,32 +184,32 @@ data class AllNullableTypes( ) { companion object { @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllNullableTypes { - val aNullableBool = __pigeon_list[0] as Boolean? + fun fromList(pigeon_list: List): AllNullableTypes { + val aNullableBool = pigeon_list[0] as Boolean? val aNullableInt = - __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } val aNullableInt64 = - __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = __pigeon_list[3] as Double? - val aNullableByteArray = __pigeon_list[4] as ByteArray? - val aNullable4ByteArray = __pigeon_list[5] as IntArray? - val aNullable8ByteArray = __pigeon_list[6] as LongArray? - val aNullableFloatArray = __pigeon_list[7] as DoubleArray? - val nullableNestedList = __pigeon_list[8] as List?>? - val nullableMapWithAnnotations = __pigeon_list[9] as Map? - val nullableMapWithObject = __pigeon_list[10] as Map? - val aNullableEnum = __pigeon_list[11] as AnEnum? - val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? - val aNullableString = __pigeon_list[13] as String? - val aNullableObject = __pigeon_list[14] - val allNullableTypes = __pigeon_list[15] as AllNullableTypes? - val list = __pigeon_list[16] as List? - val stringList = __pigeon_list[17] as List? - val intList = __pigeon_list[18] as List? - val doubleList = __pigeon_list[19] as List? - val boolList = __pigeon_list[20] as List? - val nestedClassList = __pigeon_list[21] as List? - val map = __pigeon_list[22] as Map? + pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = pigeon_list[3] as Double? + val aNullableByteArray = pigeon_list[4] as ByteArray? + val aNullable4ByteArray = pigeon_list[5] as IntArray? + val aNullable8ByteArray = pigeon_list[6] as LongArray? + val aNullableFloatArray = pigeon_list[7] as DoubleArray? + val nullableNestedList = pigeon_list[8] as List?>? + val nullableMapWithAnnotations = pigeon_list[9] as Map? + val nullableMapWithObject = pigeon_list[10] as Map? + val aNullableEnum = pigeon_list[11] as AnEnum? + val anotherNullableEnum = pigeon_list[12] as AnotherEnum? + val aNullableString = pigeon_list[13] as String? + val aNullableObject = pigeon_list[14] + val allNullableTypes = pigeon_list[15] as AllNullableTypes? + val list = pigeon_list[16] as List? + val stringList = pigeon_list[17] as List? + val intList = pigeon_list[18] as List? + val doubleList = pigeon_list[19] as List? + val boolList = pigeon_list[20] as List? + val nestedClassList = pigeon_list[21] as List? + val map = pigeon_list[22] as Map? return AllNullableTypes( aNullableBool, aNullableInt, @@ -297,30 +297,30 @@ data class AllNullableTypesWithoutRecursion( ) { companion object { @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllNullableTypesWithoutRecursion { - val aNullableBool = __pigeon_list[0] as Boolean? + fun fromList(pigeon_list: List): AllNullableTypesWithoutRecursion { + val aNullableBool = pigeon_list[0] as Boolean? val aNullableInt = - __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } val aNullableInt64 = - __pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = __pigeon_list[3] as Double? - val aNullableByteArray = __pigeon_list[4] as ByteArray? - val aNullable4ByteArray = __pigeon_list[5] as IntArray? - val aNullable8ByteArray = __pigeon_list[6] as LongArray? - val aNullableFloatArray = __pigeon_list[7] as DoubleArray? - val nullableNestedList = __pigeon_list[8] as List?>? - val nullableMapWithAnnotations = __pigeon_list[9] as Map? - val nullableMapWithObject = __pigeon_list[10] as Map? - val aNullableEnum = __pigeon_list[11] as AnEnum? - val anotherNullableEnum = __pigeon_list[12] as AnotherEnum? - val aNullableString = __pigeon_list[13] as String? - val aNullableObject = __pigeon_list[14] - val list = __pigeon_list[15] as List? - val stringList = __pigeon_list[16] as List? - val intList = __pigeon_list[17] as List? - val doubleList = __pigeon_list[18] as List? - val boolList = __pigeon_list[19] as List? - val map = __pigeon_list[20] as Map? + pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = pigeon_list[3] as Double? + val aNullableByteArray = pigeon_list[4] as ByteArray? + val aNullable4ByteArray = pigeon_list[5] as IntArray? + val aNullable8ByteArray = pigeon_list[6] as LongArray? + val aNullableFloatArray = pigeon_list[7] as DoubleArray? + val nullableNestedList = pigeon_list[8] as List?>? + val nullableMapWithAnnotations = pigeon_list[9] as Map? + val nullableMapWithObject = pigeon_list[10] as Map? + val aNullableEnum = pigeon_list[11] as AnEnum? + val anotherNullableEnum = pigeon_list[12] as AnotherEnum? + val aNullableString = pigeon_list[13] as String? + val aNullableObject = pigeon_list[14] + val list = pigeon_list[15] as List? + val stringList = pigeon_list[16] as List? + val intList = pigeon_list[17] as List? + val doubleList = pigeon_list[18] as List? + val boolList = pigeon_list[19] as List? + val map = pigeon_list[20] as Map? return AllNullableTypesWithoutRecursion( aNullableBool, aNullableInt, @@ -389,10 +389,10 @@ data class AllClassesWrapper( ) { companion object { @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): AllClassesWrapper { - val allNullableTypes = __pigeon_list[0] as AllNullableTypes - val allNullableTypesWithoutRecursion = __pigeon_list[1] as AllNullableTypesWithoutRecursion? - val allTypes = __pigeon_list[2] as AllTypes? + fun fromList(pigeon_list: List): AllClassesWrapper { + val allNullableTypes = pigeon_list[0] as AllNullableTypes + val allNullableTypesWithoutRecursion = pigeon_list[1] as AllNullableTypesWithoutRecursion? + val allTypes = pigeon_list[2] as AllTypes? return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes) } } @@ -414,8 +414,8 @@ data class AllClassesWrapper( data class TestMessage(val testList: List? = null) { companion object { @Suppress("LocalVariableName") - fun fromList(__pigeon_list: List): TestMessage { - val testList = __pigeon_list[0] as List? + fun fromList(pigeon_list: List): TestMessage { + val testList = pigeon_list[0] as List? return TestMessage(testList) } } diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index 1347218e0d9..17d9217cb2c 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -110,27 +110,26 @@ struct AllTypes { var map: [AnyHashable: Any?] // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllTypes? { - let aBool = __pigeon_list[0] as! Bool - let anInt = - __pigeon_list[1] is Int64 ? __pigeon_list[1] as! Int64 : Int64(__pigeon_list[1] as! Int32) + static func fromList(_ pigeon_list: [Any?]) -> AllTypes? { + let aBool = pigeon_list[0] as! Bool + let anInt = pigeon_list[1] is Int64 ? pigeon_list[1] as! Int64 : Int64(pigeon_list[1] as! Int32) let anInt64 = - __pigeon_list[2] is Int64 ? __pigeon_list[2] as! Int64 : Int64(__pigeon_list[2] as! Int32) - let aDouble = __pigeon_list[3] as! Double - let aByteArray = __pigeon_list[4] as! FlutterStandardTypedData - let a4ByteArray = __pigeon_list[5] as! FlutterStandardTypedData - let a8ByteArray = __pigeon_list[6] as! FlutterStandardTypedData - let aFloatArray = __pigeon_list[7] as! FlutterStandardTypedData - let anEnum = __pigeon_list[8] as! AnEnum - let anotherEnum = __pigeon_list[9] as! AnotherEnum - let aString = __pigeon_list[10] as! String - let anObject = __pigeon_list[11]! - let list = __pigeon_list[12] as! [Any?] - let stringList = __pigeon_list[13] as! [String?] - let intList = __pigeon_list[14] as! [Int64?] - let doubleList = __pigeon_list[15] as! [Double?] - let boolList = __pigeon_list[16] as! [Bool?] - let map = __pigeon_list[17] as! [AnyHashable: Any?] + pigeon_list[2] is Int64 ? pigeon_list[2] as! Int64 : Int64(pigeon_list[2] as! Int32) + let aDouble = pigeon_list[3] as! Double + let aByteArray = pigeon_list[4] as! FlutterStandardTypedData + let a4ByteArray = pigeon_list[5] as! FlutterStandardTypedData + let a8ByteArray = pigeon_list[6] as! FlutterStandardTypedData + let aFloatArray = pigeon_list[7] as! FlutterStandardTypedData + let anEnum = pigeon_list[8] as! AnEnum + let anotherEnum = pigeon_list[9] as! AnotherEnum + let aString = pigeon_list[10] as! String + let anObject = pigeon_list[11]! + let list = pigeon_list[12] as! [Any?] + let stringList = pigeon_list[13] as! [String?] + let intList = pigeon_list[14] as! [Int64?] + let doubleList = pigeon_list[15] as! [Double?] + let boolList = pigeon_list[16] as! [Bool?] + let map = pigeon_list[17] as! [AnyHashable: Any?] return AllTypes( aBool: aBool, @@ -255,38 +254,36 @@ class AllNullableTypes { var map: [AnyHashable: Any?]? // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllNullableTypes? { - let aNullableBool: Bool? = nilOrValue(__pigeon_list[0]) + static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypes? { + let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) let aNullableInt: Int64? = - isNullish(__pigeon_list[1]) + isNullish(pigeon_list[1]) ? nil - : (__pigeon_list[1] is Int64? - ? __pigeon_list[1] as! Int64? : Int64(__pigeon_list[1] as! Int32)) + : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(__pigeon_list[2]) + isNullish(pigeon_list[2]) ? nil - : (__pigeon_list[2] is Int64? - ? __pigeon_list[2] as! Int64? : Int64(__pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(__pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(__pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) - let aNullableString: String? = nilOrValue(__pigeon_list[13]) - let aNullableObject: Any? = __pigeon_list[14] - let allNullableTypes: AllNullableTypes? = nilOrValue(__pigeon_list[15]) - let list: [Any?]? = nilOrValue(__pigeon_list[16]) - let stringList: [String?]? = nilOrValue(__pigeon_list[17]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[18]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[19]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[20]) - let nestedClassList: [AllNullableTypes?]? = nilOrValue(__pigeon_list[21]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[22]) + : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) + let aNullableString: String? = nilOrValue(pigeon_list[13]) + let aNullableObject: Any? = pigeon_list[14] + let allNullableTypes: AllNullableTypes? = nilOrValue(pigeon_list[15]) + let list: [Any?]? = nilOrValue(pigeon_list[16]) + let stringList: [String?]? = nilOrValue(pigeon_list[17]) + let intList: [Int64?]? = nilOrValue(pigeon_list[18]) + let doubleList: [Double?]? = nilOrValue(pigeon_list[19]) + let boolList: [Bool?]? = nilOrValue(pigeon_list[20]) + let nestedClassList: [AllNullableTypes?]? = nilOrValue(pigeon_list[21]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[22]) return AllNullableTypes( aNullableBool: aNullableBool, @@ -372,36 +369,34 @@ struct AllNullableTypesWithoutRecursion { var map: [AnyHashable: Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllNullableTypesWithoutRecursion? { - let aNullableBool: Bool? = nilOrValue(__pigeon_list[0]) + static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypesWithoutRecursion? { + let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) let aNullableInt: Int64? = - isNullish(__pigeon_list[1]) + isNullish(pigeon_list[1]) ? nil - : (__pigeon_list[1] is Int64? - ? __pigeon_list[1] as! Int64? : Int64(__pigeon_list[1] as! Int32)) + : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(__pigeon_list[2]) + isNullish(pigeon_list[2]) ? nil - : (__pigeon_list[2] is Int64? - ? __pigeon_list[2] as! Int64? : Int64(__pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(__pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(__pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) - let aNullableString: String? = nilOrValue(__pigeon_list[13]) - let aNullableObject: Any? = __pigeon_list[14] - let list: [Any?]? = nilOrValue(__pigeon_list[15]) - let stringList: [String?]? = nilOrValue(__pigeon_list[16]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[17]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[18]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[19]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[20]) + : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) + let aNullableString: String? = nilOrValue(pigeon_list[13]) + let aNullableObject: Any? = pigeon_list[14] + let list: [Any?]? = nilOrValue(pigeon_list[15]) + let stringList: [String?]? = nilOrValue(pigeon_list[16]) + let intList: [Int64?]? = nilOrValue(pigeon_list[17]) + let doubleList: [Double?]? = nilOrValue(pigeon_list[18]) + let boolList: [Bool?]? = nilOrValue(pigeon_list[19]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[20]) return AllNullableTypesWithoutRecursion( aNullableBool: aNullableBool, @@ -467,11 +462,11 @@ struct AllClassesWrapper { var allTypes: AllTypes? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllClassesWrapper? { - let allNullableTypes = __pigeon_list[0] as! AllNullableTypes + static func fromList(_ pigeon_list: [Any?]) -> AllClassesWrapper? { + let allNullableTypes = pigeon_list[0] as! AllNullableTypes let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - __pigeon_list[1]) - let allTypes: AllTypes? = nilOrValue(__pigeon_list[2]) + pigeon_list[1]) + let allTypes: AllTypes? = nilOrValue(pigeon_list[2]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -495,8 +490,8 @@ struct TestMessage { var testList: [Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> TestMessage? { - let testList: [Any?]? = nilOrValue(__pigeon_list[0]) + static func fromList(_ pigeon_list: [Any?]) -> TestMessage? { + let testList: [Any?]? = nilOrValue(pigeon_list[0]) return TestMessage( testList: testList @@ -513,19 +508,17 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - var enumResult: AnEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnEnum(rawValue: enumResultAsInt) + return AnEnum(rawValue: enumResultAsInt) } - return enumResult + return nil case 130: - var enumResult: AnotherEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnotherEnum(rawValue: enumResultAsInt) + return AnotherEnum(rawValue: enumResultAsInt) } - return enumResult + return nil case 131: return AllTypes.fromList(self.readValue() as! [Any?]) case 132: diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index 1347218e0d9..17d9217cb2c 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -110,27 +110,26 @@ struct AllTypes { var map: [AnyHashable: Any?] // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllTypes? { - let aBool = __pigeon_list[0] as! Bool - let anInt = - __pigeon_list[1] is Int64 ? __pigeon_list[1] as! Int64 : Int64(__pigeon_list[1] as! Int32) + static func fromList(_ pigeon_list: [Any?]) -> AllTypes? { + let aBool = pigeon_list[0] as! Bool + let anInt = pigeon_list[1] is Int64 ? pigeon_list[1] as! Int64 : Int64(pigeon_list[1] as! Int32) let anInt64 = - __pigeon_list[2] is Int64 ? __pigeon_list[2] as! Int64 : Int64(__pigeon_list[2] as! Int32) - let aDouble = __pigeon_list[3] as! Double - let aByteArray = __pigeon_list[4] as! FlutterStandardTypedData - let a4ByteArray = __pigeon_list[5] as! FlutterStandardTypedData - let a8ByteArray = __pigeon_list[6] as! FlutterStandardTypedData - let aFloatArray = __pigeon_list[7] as! FlutterStandardTypedData - let anEnum = __pigeon_list[8] as! AnEnum - let anotherEnum = __pigeon_list[9] as! AnotherEnum - let aString = __pigeon_list[10] as! String - let anObject = __pigeon_list[11]! - let list = __pigeon_list[12] as! [Any?] - let stringList = __pigeon_list[13] as! [String?] - let intList = __pigeon_list[14] as! [Int64?] - let doubleList = __pigeon_list[15] as! [Double?] - let boolList = __pigeon_list[16] as! [Bool?] - let map = __pigeon_list[17] as! [AnyHashable: Any?] + pigeon_list[2] is Int64 ? pigeon_list[2] as! Int64 : Int64(pigeon_list[2] as! Int32) + let aDouble = pigeon_list[3] as! Double + let aByteArray = pigeon_list[4] as! FlutterStandardTypedData + let a4ByteArray = pigeon_list[5] as! FlutterStandardTypedData + let a8ByteArray = pigeon_list[6] as! FlutterStandardTypedData + let aFloatArray = pigeon_list[7] as! FlutterStandardTypedData + let anEnum = pigeon_list[8] as! AnEnum + let anotherEnum = pigeon_list[9] as! AnotherEnum + let aString = pigeon_list[10] as! String + let anObject = pigeon_list[11]! + let list = pigeon_list[12] as! [Any?] + let stringList = pigeon_list[13] as! [String?] + let intList = pigeon_list[14] as! [Int64?] + let doubleList = pigeon_list[15] as! [Double?] + let boolList = pigeon_list[16] as! [Bool?] + let map = pigeon_list[17] as! [AnyHashable: Any?] return AllTypes( aBool: aBool, @@ -255,38 +254,36 @@ class AllNullableTypes { var map: [AnyHashable: Any?]? // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllNullableTypes? { - let aNullableBool: Bool? = nilOrValue(__pigeon_list[0]) + static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypes? { + let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) let aNullableInt: Int64? = - isNullish(__pigeon_list[1]) + isNullish(pigeon_list[1]) ? nil - : (__pigeon_list[1] is Int64? - ? __pigeon_list[1] as! Int64? : Int64(__pigeon_list[1] as! Int32)) + : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(__pigeon_list[2]) + isNullish(pigeon_list[2]) ? nil - : (__pigeon_list[2] is Int64? - ? __pigeon_list[2] as! Int64? : Int64(__pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(__pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(__pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) - let aNullableString: String? = nilOrValue(__pigeon_list[13]) - let aNullableObject: Any? = __pigeon_list[14] - let allNullableTypes: AllNullableTypes? = nilOrValue(__pigeon_list[15]) - let list: [Any?]? = nilOrValue(__pigeon_list[16]) - let stringList: [String?]? = nilOrValue(__pigeon_list[17]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[18]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[19]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[20]) - let nestedClassList: [AllNullableTypes?]? = nilOrValue(__pigeon_list[21]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[22]) + : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) + let aNullableString: String? = nilOrValue(pigeon_list[13]) + let aNullableObject: Any? = pigeon_list[14] + let allNullableTypes: AllNullableTypes? = nilOrValue(pigeon_list[15]) + let list: [Any?]? = nilOrValue(pigeon_list[16]) + let stringList: [String?]? = nilOrValue(pigeon_list[17]) + let intList: [Int64?]? = nilOrValue(pigeon_list[18]) + let doubleList: [Double?]? = nilOrValue(pigeon_list[19]) + let boolList: [Bool?]? = nilOrValue(pigeon_list[20]) + let nestedClassList: [AllNullableTypes?]? = nilOrValue(pigeon_list[21]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[22]) return AllNullableTypes( aNullableBool: aNullableBool, @@ -372,36 +369,34 @@ struct AllNullableTypesWithoutRecursion { var map: [AnyHashable: Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllNullableTypesWithoutRecursion? { - let aNullableBool: Bool? = nilOrValue(__pigeon_list[0]) + static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypesWithoutRecursion? { + let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) let aNullableInt: Int64? = - isNullish(__pigeon_list[1]) + isNullish(pigeon_list[1]) ? nil - : (__pigeon_list[1] is Int64? - ? __pigeon_list[1] as! Int64? : Int64(__pigeon_list[1] as! Int32)) + : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(__pigeon_list[2]) + isNullish(pigeon_list[2]) ? nil - : (__pigeon_list[2] is Int64? - ? __pigeon_list[2] as! Int64? : Int64(__pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(__pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(__pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(__pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(__pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(__pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(__pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(__pigeon_list[12]) - let aNullableString: String? = nilOrValue(__pigeon_list[13]) - let aNullableObject: Any? = __pigeon_list[14] - let list: [Any?]? = nilOrValue(__pigeon_list[15]) - let stringList: [String?]? = nilOrValue(__pigeon_list[16]) - let intList: [Int64?]? = nilOrValue(__pigeon_list[17]) - let doubleList: [Double?]? = nilOrValue(__pigeon_list[18]) - let boolList: [Bool?]? = nilOrValue(__pigeon_list[19]) - let map: [AnyHashable: Any?]? = nilOrValue(__pigeon_list[20]) + : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) + let aNullableString: String? = nilOrValue(pigeon_list[13]) + let aNullableObject: Any? = pigeon_list[14] + let list: [Any?]? = nilOrValue(pigeon_list[15]) + let stringList: [String?]? = nilOrValue(pigeon_list[16]) + let intList: [Int64?]? = nilOrValue(pigeon_list[17]) + let doubleList: [Double?]? = nilOrValue(pigeon_list[18]) + let boolList: [Bool?]? = nilOrValue(pigeon_list[19]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[20]) return AllNullableTypesWithoutRecursion( aNullableBool: aNullableBool, @@ -467,11 +462,11 @@ struct AllClassesWrapper { var allTypes: AllTypes? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> AllClassesWrapper? { - let allNullableTypes = __pigeon_list[0] as! AllNullableTypes + static func fromList(_ pigeon_list: [Any?]) -> AllClassesWrapper? { + let allNullableTypes = pigeon_list[0] as! AllNullableTypes let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - __pigeon_list[1]) - let allTypes: AllTypes? = nilOrValue(__pigeon_list[2]) + pigeon_list[1]) + let allTypes: AllTypes? = nilOrValue(pigeon_list[2]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -495,8 +490,8 @@ struct TestMessage { var testList: [Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ __pigeon_list: [Any?]) -> TestMessage? { - let testList: [Any?]? = nilOrValue(__pigeon_list[0]) + static func fromList(_ pigeon_list: [Any?]) -> TestMessage? { + let testList: [Any?]? = nilOrValue(pigeon_list[0]) return TestMessage( testList: testList @@ -513,19 +508,17 @@ private class CoreTestsPigeonCodecReader: FlutterStandardReader { override func readValue(ofType type: UInt8) -> Any? { switch type { case 129: - var enumResult: AnEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnEnum(rawValue: enumResultAsInt) + return AnEnum(rawValue: enumResultAsInt) } - return enumResult + return nil case 130: - var enumResult: AnotherEnum? = nil let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int) if let enumResultAsInt = enumResultAsInt { - enumResult = AnotherEnum(rawValue: enumResultAsInt) + return AnotherEnum(rawValue: enumResultAsInt) } - return enumResult + return nil case 131: return AllTypes.fromList(self.readValue() as! [Any?]) case 132: diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp index 1d200e37417..c2ae05c413c 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.cpp @@ -1591,9 +1591,9 @@ TestMessage TestMessage::FromEncodableList(const EncodableList& list) { return decoded; } -PigeonCodecSerializer::PigeonCodecSerializer() {} +PigeonInternalCodecSerializer::PigeonInternalCodecSerializer() {} -EncodableValue PigeonCodecSerializer::ReadValueOfType( +EncodableValue PigeonInternalCodecSerializer::ReadValueOfType( uint8_t type, flutter::ByteStreamReader* stream) const { switch (type) { case 129: { @@ -1639,7 +1639,7 @@ EncodableValue PigeonCodecSerializer::ReadValueOfType( } } -void PigeonCodecSerializer::WriteValue( +void PigeonInternalCodecSerializer::WriteValue( const EncodableValue& value, flutter::ByteStreamWriter* stream) const { if (const CustomEncodableValue* custom_value = std::get_if(&value)) { @@ -1702,7 +1702,7 @@ void PigeonCodecSerializer::WriteValue( /// The codec used by HostIntegrationCoreApi. const flutter::StandardMessageCodec& HostIntegrationCoreApi::GetCodec() { return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); + &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `HostIntegrationCoreApi` to handle messages through @@ -5293,7 +5293,7 @@ FlutterIntegrationCoreApi::FlutterIntegrationCoreApi( const flutter::StandardMessageCodec& FlutterIntegrationCoreApi::GetCodec() { return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); + &PigeonInternalCodecSerializer::GetInstance()); } void FlutterIntegrationCoreApi::Noop( @@ -6368,7 +6368,7 @@ void FlutterIntegrationCoreApi::EchoAsyncString( /// The codec used by HostTrivialApi. const flutter::StandardMessageCodec& HostTrivialApi::GetCodec() { return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); + &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `HostTrivialApi` to handle messages through the @@ -6429,7 +6429,7 @@ EncodableValue HostTrivialApi::WrapError(const FlutterError& error) { /// The codec used by HostSmallApi. const flutter::StandardMessageCodec& HostSmallApi::GetCodec() { return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); + &PigeonInternalCodecSerializer::GetInstance()); } // Sets up an instance of `HostSmallApi` to handle messages through the @@ -6539,7 +6539,7 @@ FlutterSmallApi::FlutterSmallApi(flutter::BinaryMessenger* binary_messenger, const flutter::StandardMessageCodec& FlutterSmallApi::GetCodec() { return flutter::StandardMessageCodec::GetInstance( - &PigeonCodecSerializer::GetInstance()); + &PigeonInternalCodecSerializer::GetInstance()); } void FlutterSmallApi::EchoWrappedList( diff --git a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h index d3c687b5ff5..53419f806f7 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h +++ b/packages/pigeon/platform_tests/test_plugin/windows/pigeon/core_tests.gen.h @@ -159,7 +159,7 @@ class AllTypes { friend class HostTrivialApi; friend class HostSmallApi; friend class FlutterSmallApi; - friend class PigeonCodecSerializer; + friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; bool a_bool_; int64_t an_int_; @@ -320,7 +320,7 @@ class AllNullableTypes { friend class HostTrivialApi; friend class HostSmallApi; friend class FlutterSmallApi; - friend class PigeonCodecSerializer; + friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; std::optional a_nullable_bool_; std::optional a_nullable_int_; @@ -474,7 +474,7 @@ class AllNullableTypesWithoutRecursion { friend class HostTrivialApi; friend class HostSmallApi; friend class FlutterSmallApi; - friend class PigeonCodecSerializer; + friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; std::optional a_nullable_bool_; std::optional a_nullable_int_; @@ -545,7 +545,7 @@ class AllClassesWrapper { friend class HostTrivialApi; friend class HostSmallApi; friend class FlutterSmallApi; - friend class PigeonCodecSerializer; + friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; std::unique_ptr all_nullable_types_; std::unique_ptr @@ -576,16 +576,16 @@ class TestMessage { friend class HostTrivialApi; friend class HostSmallApi; friend class FlutterSmallApi; - friend class PigeonCodecSerializer; + friend class PigeonInternalCodecSerializer; friend class CoreTestsTest; std::optional test_list_; }; -class PigeonCodecSerializer : public flutter::StandardCodecSerializer { +class PigeonInternalCodecSerializer : public flutter::StandardCodecSerializer { public: - PigeonCodecSerializer(); - inline static PigeonCodecSerializer& GetInstance() { - static PigeonCodecSerializer sInstance; + PigeonInternalCodecSerializer(); + inline static PigeonInternalCodecSerializer& GetInstance() { + static PigeonInternalCodecSerializer sInstance; return sInstance; } diff --git a/packages/pigeon/platform_tests/test_plugin/windows/test/pigeon_test.cpp b/packages/pigeon/platform_tests/test_plugin/windows/test/pigeon_test.cpp index 427a62f06c6..53e7f8ddadb 100644 --- a/packages/pigeon/platform_tests/test_plugin/windows/test/pigeon_test.cpp +++ b/packages/pigeon/platform_tests/test_plugin/windows/test/pigeon_test.cpp @@ -137,7 +137,7 @@ TEST(PigeonTests, CallSearch) { Writer writer; flutter::EncodableList args; args.push_back(flutter::CustomEncodableValue(request)); - PigeonCodecSerializer::GetInstance().WriteValue(args, &writer); + PigeonInternalCodecSerializer::GetInstance().WriteValue(args, &writer); handler(writer.data_.data(), writer.data_.size(), reply); EXPECT_TRUE(did_call_reply); } diff --git a/packages/pigeon/test/dart/proxy_api_test.dart b/packages/pigeon/test/dart/proxy_api_test.dart index a8b3a5a9eb0..96cc1f922e7 100644 --- a/packages/pigeon/test/dart/proxy_api_test.dart +++ b/packages/pigeon/test/dart/proxy_api_test.dart @@ -409,13 +409,13 @@ void main() { expect( collapsedCode, contains( - r"const String __pigeon_channelName = 'dev.flutter.pigeon.test_package.Api.pigeon_defaultConstructor';", + r"const String pigeon_channelName = 'dev.flutter.pigeon.test_package.Api.pigeon_defaultConstructor';", ), ); expect( collapsedCode, contains( - r'__pigeon_channel .send([__pigeon_instanceIdentifier])', + r'pigeon_channel .send([pigeon_instanceIdentifier])', ), ); }); @@ -515,8 +515,8 @@ void main() { expect( collapsedCode, contains( - r'__pigeon_channel.send([ ' - r'__pigeon_instanceIdentifier, ' + r'pigeon_channel.send([ ' + r'pigeon_instanceIdentifier, ' r'validType, enumType, proxyApiType, ' r'nullableValidType, nullableEnumType, nullableProxyApiType ])', ), @@ -625,8 +625,8 @@ void main() { expect( collapsedCode, contains( - r'__pigeon_channel.send([ ' - r'__pigeon_instanceIdentifier, ' + r'pigeon_channel.send([ ' + r'pigeon_instanceIdentifier, ' r'validType, enumType, proxyApiType, ' r'nullableValidType, nullableEnumType, nullableProxyApiType ])', ), @@ -697,8 +697,8 @@ void main() { ); final String code = sink.toString(); expect(code, contains('class Api')); - expect(code, contains(r'late final Api2 aField = __pigeon_aField();')); - expect(code, contains(r'Api2 __pigeon_aField()')); + expect(code, contains(r'late final Api2 aField = pigeon_aField();')); + expect(code, contains(r'Api2 pigeon_aField()')); }); test('static attached field', () { @@ -742,9 +742,8 @@ void main() { ); final String code = sink.toString(); expect(code, contains('class Api')); - expect( - code, contains(r'static final Api2 aField = __pigeon_aField();')); - expect(code, contains(r'static Api2 __pigeon_aField()')); + expect(code, contains(r'static final Api2 aField = pigeon_aField();')); + expect(code, contains(r'static Api2 pigeon_aField()')); }); }); @@ -846,7 +845,7 @@ void main() { expect( collapsedCode, contains( - r'await __pigeon_channel.send([ this, validType, ' + r'await pigeon_channel.send([ this, validType, ' r'enumType, proxyApiType, nullableValidType, ' r'nullableEnumType, nullableProxyApiType ])', ), @@ -894,7 +893,7 @@ void main() { ); expect( collapsedCode, - contains(r'await __pigeon_channel.send(null)'), + contains(r'await pigeon_channel.send(null)'), ); }); }); diff --git a/packages/pigeon/test/dart_generator_test.dart b/packages/pigeon/test/dart_generator_test.dart index 944c6e334ce..814ac69303a 100644 --- a/packages/pigeon/test/dart_generator_test.dart +++ b/packages/pigeon/test/dart_generator_test.dart @@ -167,7 +167,7 @@ void main() { final String code = sink.toString(); expect(code, contains('class Api')); expect(code, contains('Future add(int x, int y)')); - expect(code, contains('await __pigeon_channel.send([x, y])')); + expect(code, contains('await pigeon_channel.send([x, y])')); }); test('flutter multiple args', () { @@ -573,7 +573,7 @@ void main() { final String code = sink.toString(); expect(code, contains('enum Foo {')); expect(code, contains('Future bar(Foo? foo) async')); - expect(code, contains('__pigeon_channel.send([foo])')); + expect(code, contains('pigeon_channel.send([foo])')); }); test('flutter non-nullable enum argument with enum class', () { @@ -664,7 +664,7 @@ void main() { dartPackageName: DEFAULT_PACKAGE_NAME, ); final String code = sink.toString(); - expect(code, matches('__pigeon_channel.send[(]null[)]')); + expect(code, matches('pigeon_channel.send[(]null[)]')); }); test('mock dart handler', () { @@ -953,7 +953,7 @@ void main() { dartPackageName: DEFAULT_PACKAGE_NAME, ); final String code = sink.toString(); - expect(code, matches('__pigeon_channel.send[(]null[)]')); + expect(code, matches('pigeon_channel.send[(]null[)]')); }); Iterable makeIterable(String string) sync* { @@ -1142,7 +1142,7 @@ void main() { expect( code, contains( - 'return (__pigeon_replyList[0] as List?)!.cast();')); + 'return (pigeon_replyList[0] as List?)!.cast();')); }); test('flutter generics argument non void return', () { @@ -1217,7 +1217,7 @@ void main() { ); final String code = sink.toString(); expect(code, contains('Future doit()')); - expect(code, contains('return (__pigeon_replyList[0] as int?);')); + expect(code, contains('return (pigeon_replyList[0] as int?);')); }); test('return nullable collection host', () { @@ -1252,7 +1252,7 @@ void main() { expect( code, contains( - 'return (__pigeon_replyList[0] as List?)?.cast();')); + 'return (pigeon_replyList[0] as List?)?.cast();')); }); test('return nullable async host', () { @@ -1283,7 +1283,7 @@ void main() { ); final String code = sink.toString(); expect(code, contains('Future doit()')); - expect(code, contains('return (__pigeon_replyList[0] as int?);')); + expect(code, contains('return (pigeon_replyList[0] as int?);')); }); test('return nullable flutter', () { @@ -1731,8 +1731,7 @@ name: foobar dartPackageName: DEFAULT_PACKAGE_NAME, ); final String code = sink.toString(); - expect( - code, contains('throw _createConnectionError(__pigeon_channelName);')); + expect(code, contains('throw _createConnectionError(pigeon_channelName);')); expect( code, contains( diff --git a/packages/pigeon/test/kotlin_generator_test.dart b/packages/pigeon/test/kotlin_generator_test.dart index ea87f508ca1..ff4f7d44ed3 100644 --- a/packages/pigeon/test/kotlin_generator_test.dart +++ b/packages/pigeon/test/kotlin_generator_test.dart @@ -51,7 +51,7 @@ void main() { final String code = sink.toString(); expect(code, contains('data class Foobar (')); expect(code, contains('val field1: Long? = null')); - expect(code, contains('fun fromList(__pigeon_list: List): Foobar')); + expect(code, contains('fun fromList(pigeon_list: List): Foobar')); expect(code, contains('fun toList(): List')); }); @@ -132,10 +132,10 @@ void main() { expect(code, contains('data class Bar (')); expect(code, contains('val field1: Foo,')); expect(code, contains('val field2: String')); - expect(code, contains('fun fromList(__pigeon_list: List): Bar')); + expect(code, contains('fun fromList(pigeon_list: List): Bar')); expect(code, contains('Foo.ofRaw(it)')); - expect(code, contains('val field1 = __pigeon_list[0] as Foo')); - expect(code, contains('val field2 = __pigeon_list[1] as String\n')); + expect(code, contains('val field1 = pigeon_list[0] as Foo')); + expect(code, contains('val field2 = pigeon_list[1] as String\n')); expect(code, contains('fun toList(): List')); }); @@ -394,7 +394,7 @@ void main() { expect( code, contains( - 'val aInt = __pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long }')); + 'val aInt = pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long }')); expect(code, contains('val aNullableBool: Boolean? = null')); expect(code, contains('val aNullableInt: Long? = null')); expect(code, contains('val aNullableDouble: Double? = null')); @@ -406,7 +406,7 @@ void main() { expect( code, contains( - 'val aNullableInt = __pigeon_list[9].let { num -> if (num is Int) num.toLong() else num as Long? }')); + 'val aNullableInt = pigeon_list[9].let { num -> if (num is Int) num.toLong() else num as Long? }')); }); test('gen one flutter api', () { @@ -736,8 +736,8 @@ void main() { expect(code, contains('data class Outer')); expect(code, contains('data class Nested')); expect(code, contains('val nested: Nested? = null')); - expect(code, contains('fun fromList(__pigeon_list: List): Outer')); - expect(code, contains('val nested = __pigeon_list[0] as Nested?')); + expect(code, contains('fun fromList(pigeon_list: List): Outer')); + expect(code, contains('val nested = pigeon_list[0] as Nested?')); expect(code, contains('fun toList(): List')); }); diff --git a/packages/pigeon/test/swift_generator_test.dart b/packages/pigeon/test/swift_generator_test.dart index 6ffe4f4d9d7..fa9ace6aaec 100644 --- a/packages/pigeon/test/swift_generator_test.dart +++ b/packages/pigeon/test/swift_generator_test.dart @@ -51,7 +51,7 @@ void main() { expect(code, contains('struct Foobar')); expect(code, contains('var field1: Int64? = nil')); expect(code, - contains('static func fromList(_ __pigeon_list: [Any?]) -> Foobar?')); + contains('static func fromList(_ pigeon_list: [Any?]) -> Foobar?')); expect(code, contains('func toList() -> [Any?]')); expect(code, isNot(contains('if ('))); }); @@ -582,9 +582,8 @@ void main() { expect(code, contains('struct Nested')); expect(code, contains('var nested: Nested? = nil')); expect(code, - contains('static func fromList(_ __pigeon_list: [Any?]) -> Outer?')); - expect( - code, contains('let nested: Nested? = nilOrValue(__pigeon_list[0])')); + contains('static func fromList(_ pigeon_list: [Any?]) -> Outer?')); + expect(code, contains('let nested: Nested? = nilOrValue(pigeon_list[0])')); expect(code, contains('func toList() -> [Any?]')); expect(code, isNot(contains('if ('))); // Single-element list serializations should not have a trailing comma. diff --git a/packages/pigeon/tool/generate.dart b/packages/pigeon/tool/generate.dart index 883cd2003a3..752e2ffadc2 100644 --- a/packages/pigeon/tool/generate.dart +++ b/packages/pigeon/tool/generate.dart @@ -67,7 +67,7 @@ ${parser.usage}'''); final String baseDir = p.dirname(p.dirname(Platform.script.toFilePath())); - final bool overflow = argResults.wasParsed(_overflowFiller); + final bool includeOverflow = argResults.wasParsed(_overflowFiller); final List toGenerate = argResults.wasParsed(_files) ? argResults[_files] as List @@ -75,8 +75,8 @@ ${parser.usage}'''); if (toGenerate.contains(_test)) { print('Generating platform_test/ output...'); - final int generateExitCode = - await generateTestPigeons(baseDir: baseDir, overflow: overflow); + final int generateExitCode = await generateTestPigeons( + baseDir: baseDir, includeOverflow: includeOverflow); if (generateExitCode == 0) { print('Generation complete!'); } else { diff --git a/packages/pigeon/tool/shared/generation.dart b/packages/pigeon/tool/shared/generation.dart index 70d85da0d06..6fcb2d0567c 100644 --- a/packages/pigeon/tool/shared/generation.dart +++ b/packages/pigeon/tool/shared/generation.dart @@ -56,7 +56,7 @@ Future generateExamplePigeons() async { } Future generateTestPigeons( - {required String baseDir, bool overflow = false}) async { + {required String baseDir, bool includeOverflow = false}) async { // TODO(stuartmorgan): Make this dynamic rather than hard-coded. Or eliminate // it entirely; see https://github.com/flutter/flutter/issues/115169. const List inputs = [ @@ -133,7 +133,7 @@ Future generateTestPigeons( ? null : '$outputBase/windows/pigeon/$input.gen.cpp', cppNamespace: '${input}_pigeontest', - injectOverflowTypes: overflow && input == 'core_tests', + injectOverflowTypes: includeOverflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; @@ -150,7 +150,7 @@ Future generateTestPigeons( swiftErrorClassName: swiftErrorClassName, suppressVersion: true, dartPackageName: 'pigeon_integration_tests', - injectOverflowTypes: overflow && input == 'core_tests', + injectOverflowTypes: includeOverflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; @@ -177,7 +177,7 @@ Future generateTestPigeons( objcPrefix: input == 'core_tests' ? 'FLT' : '', suppressVersion: true, dartPackageName: 'pigeon_integration_tests', - injectOverflowTypes: overflow && input == 'core_tests', + injectOverflowTypes: includeOverflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; @@ -196,7 +196,7 @@ Future generateTestPigeons( : '$alternateOutputBase/macos/Classes/$pascalCaseName.gen.m', suppressVersion: true, dartPackageName: 'pigeon_integration_tests', - injectOverflowTypes: overflow && input == 'core_tests', + injectOverflowTypes: includeOverflow && input == 'core_tests', ); if (generateCode != 0) { return generateCode; diff --git a/packages/pigeon/tool/shared/test_runner.dart b/packages/pigeon/tool/shared/test_runner.dart index 0d2eafd378f..98ee1db9214 100644 --- a/packages/pigeon/tool/shared/test_runner.dart +++ b/packages/pigeon/tool/shared/test_runner.dart @@ -18,7 +18,7 @@ Future runTests( bool runFormat = false, bool runGeneration = true, bool ciMode = false, - bool overflow = false, + bool includeOverflow = false, }) async { final String baseDir = p.dirname(p.dirname(Platform.script.toFilePath())); if (runGeneration) { @@ -31,9 +31,11 @@ Future runTests( await _runTests(testsToRun, ciMode: ciMode); - if (overflow) { - await _runGenerate(baseDir, overflow: true); + if (includeOverflow) { + await _runGenerate(baseDir, includeOverflow: true); + // TODO(tarrinneal): Remove linux filter once overflow class is added to gobject generator. + // https://github.com/flutter/packages/pull/6840 await _runTests(testsToRun .where((String test) => test.contains('integration') && !test.contains('linux')) @@ -50,13 +52,14 @@ Future runTests( } // Pre-generate the necessary common output files. -Future _runGenerate(String baseDir, {bool overflow = false}) async { +Future _runGenerate(String baseDir, + {bool includeOverflow = false}) async { // TODO(stuartmorgan): Consider making this conditional on the specific // tests being run, as not all of them need these files. print('# Generating platform_test/ output...'); final int generateExitCode = await generateTestPigeons( baseDir: baseDir, - overflow: overflow, + includeOverflow: includeOverflow, ); if (generateExitCode == 0) { print('Generation complete!'); From c634a027fb2f78ac0d3adddb61145e818a51ca0b Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 6 Aug 2024 10:11:43 -0700 Subject: [PATCH 10/14] update unit tests --- .../java/io/flutter/plugins/Messages.java | 10 +- .../flutter/pigeon_example_app/Messages.g.kt | 10 +- .../example/app/ios/Runner/Messages.g.swift | 10 +- .../example/app/lib/src/messages.g.dart | 105 +- packages/pigeon/lib/dart_generator.dart | 6 +- packages/pigeon/lib/generator_tools.dart | 4 +- .../CoreTests.java | 178 +- .../background_platform_channels.gen.dart | 38 +- .../lib/src/generated/core_tests.gen.dart | 2926 +++++++------- .../lib/src/generated/enum.gen.dart | 45 +- .../src/generated/flutter_unittests.gen.dart | 128 +- .../lib/src/generated/message.gen.dart | 109 +- .../lib/src/generated/multiple_arity.gen.dart | 45 +- .../src/generated/non_null_fields.gen.dart | 45 +- .../lib/src/generated/null_fields.gen.dart | 45 +- .../src/generated/nullable_returns.gen.dart | 176 +- .../lib/src/generated/primitive.gen.dart | 341 +- .../src/generated/proxy_api_tests.gen.dart | 3435 +++++++++-------- .../test/test_message.gen.dart | 21 +- .../com/example/test_plugin/CoreTests.gen.kt | 142 +- .../ios/Classes/CoreTests.gen.swift | 155 +- .../macos/Classes/CoreTests.gen.swift | 155 +- packages/pigeon/test/dart/proxy_api_test.dart | 52 +- packages/pigeon/test/dart_generator_test.dart | 19 +- .../pigeon/test/kotlin_generator_test.dart | 16 +- .../pigeon/test/swift_generator_test.dart | 9 +- packages/pigeon/tool/run_tests.dart | 2 +- packages/pigeon/tool/test.dart | 2 +- 28 files changed, 4160 insertions(+), 4069 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java index 5f40277d029..7e5e839dd73 100644 --- a/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java +++ b/packages/pigeon/example/app/android/app/src/main/java/io/flutter/plugins/Messages.java @@ -207,15 +207,15 @@ ArrayList toList() { return toListResult; } - static @NonNull MessageData fromList(@NonNull ArrayList pigeon_list) { + static @NonNull MessageData fromList(@NonNull ArrayList pigeonVar_list) { MessageData pigeonResult = new MessageData(); - Object name = pigeon_list.get(0); + Object name = pigeonVar_list.get(0); pigeonResult.setName((String) name); - Object description = pigeon_list.get(1); + Object description = pigeonVar_list.get(1); pigeonResult.setDescription((String) description); - Object code = pigeon_list.get(2); + Object code = pigeonVar_list.get(2); pigeonResult.setCode((Code) code); - Object data = pigeon_list.get(3); + Object data = pigeonVar_list.get(3); pigeonResult.setData((Map) data); return pigeonResult; } diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index d893cb8fe00..8cfe011faa0 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -66,11 +66,11 @@ data class MessageData( ) { companion object { @Suppress("LocalVariableName") - fun fromList(pigeon_list: List): MessageData { - val name = pigeon_list[0] as String? - val description = pigeon_list[1] as String? - val code = pigeon_list[2] as Code - val data = pigeon_list[3] as Map + fun fromList(pigeonVar_list: List): MessageData { + val name = pigeonVar_list[0] as String? + val description = pigeonVar_list[1] as String? + val code = pigeonVar_list[2] as Code + val data = pigeonVar_list[3] as Map return MessageData(name, description, code, data) } } diff --git a/packages/pigeon/example/app/ios/Runner/Messages.g.swift b/packages/pigeon/example/app/ios/Runner/Messages.g.swift index bb82c939c05..0198cd783b1 100644 --- a/packages/pigeon/example/app/ios/Runner/Messages.g.swift +++ b/packages/pigeon/example/app/ios/Runner/Messages.g.swift @@ -86,11 +86,11 @@ struct MessageData { var data: [String?: String?] // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> MessageData? { - let name: String? = nilOrValue(pigeon_list[0]) - let description: String? = nilOrValue(pigeon_list[1]) - let code = pigeon_list[2] as! Code - let data = pigeon_list[3] as! [String?: String?] + static func fromList(_ pigeonVar_list: [Any?]) -> MessageData? { + let name: String? = nilOrValue(pigeonVar_list[0]) + let description: String? = nilOrValue(pigeonVar_list[1]) + let code = pigeonVar_list[2] as! Code + let data = pigeonVar_list[3] as! [String?: String?] return MessageData( name: name, diff --git a/packages/pigeon/example/app/lib/src/messages.g.dart b/packages/pigeon/example/app/lib/src/messages.g.dart index e75106df4c4..4eaf6bccecd 100644 --- a/packages/pigeon/example/app/lib/src/messages.g.dart +++ b/packages/pigeon/example/app/lib/src/messages.g.dart @@ -105,99 +105,99 @@ class ExampleHostApi { /// BinaryMessenger will be used which routes to the host platform. ExampleHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future getHostLanguage() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.getHostLanguage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } Future add(int a, int b) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.add$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([a, b]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([a, b]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } Future sendMessage(MessageData message) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_example_package.ExampleHostApi.sendMessage$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([message]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([message]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } } @@ -215,15 +215,16 @@ abstract class MessageFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_example_package.MessageFlutterApi.flutterMethod was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/lib/dart_generator.dart b/packages/pigeon/lib/dart_generator.dart index 8761cf28c72..df9f3175929 100644 --- a/packages/pigeon/lib/dart_generator.dart +++ b/packages/pigeon/lib/dart_generator.dart @@ -756,7 +756,7 @@ final BinaryMessenger? ${varNamePrefix}binaryMessenger; // Each API has a private codec instance used by every host method, // constructor, or non-static field. - final String codecInstanceName = '${varNamePrefix}codec${api.name}'; + final String codecInstanceName = '_${varNamePrefix}codec${api.name}'; // AST class used by code_builder to generate the code. final cb.Class proxyApi = cb.Class( @@ -1894,8 +1894,8 @@ if (${varNamePrefix}replyList == null) { if (!field.isStatic) ...[ cb.Code( 'final $type $instanceName = $type.${classMemberNamePrefix}detached(\n' - ' pigeon_binaryMessenger: pigeon_binaryMessenger,\n' - ' pigeon_instanceManager: pigeon_instanceManager,\n' + ' ${classMemberNamePrefix}binaryMessenger: ${classMemberNamePrefix}binaryMessenger,\n' + ' ${classMemberNamePrefix}instanceManager: ${classMemberNamePrefix}instanceManager,\n' ');', ), cb.Code('final $codecName $_pigeonChannelCodec =\n' diff --git a/packages/pigeon/lib/generator_tools.dart b/packages/pigeon/lib/generator_tools.dart index 2a4497d923f..0f02dd980d7 100644 --- a/packages/pigeon/lib/generator_tools.dart +++ b/packages/pigeon/lib/generator_tools.dart @@ -307,13 +307,13 @@ const String instanceManagerClassName = '${classNamePrefix}InstanceManager'; /// /// This lowers the chances of variable name collisions with user defined /// parameters. -const String classMemberNamePrefix = 'pigeonField_'; +const String classMemberNamePrefix = 'pigeon_'; /// Prefix for variable names not defined by the user. /// /// This lowers the chances of variable name collisions with user defined /// parameters. -const String varNamePrefix = 'pigeon_'; +const String varNamePrefix = 'pigeonVar_'; /// Prefixes that are not allowed for any names of any types or methods. const List disallowedPrefixes = [ diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java index ca0b6a7e152..3f2ae2af2c6 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/android/src/main/java/com/example/alternate_language_test_plugin/CoreTests.java @@ -373,7 +373,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - int pigeon_result = + int pigeonVar_result = Objects.hash( aBool, anInt, @@ -389,11 +389,11 @@ public int hashCode() { doubleList, boolList, map); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(a4ByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(a8ByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aFloatArray); - return pigeon_result; + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(a4ByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(a8ByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aFloatArray); + return pigeonVar_result; } public static final class Builder { @@ -590,47 +590,47 @@ ArrayList toList() { return toListResult; } - static @NonNull AllTypes fromList(@NonNull ArrayList pigeon_list) { + static @NonNull AllTypes fromList(@NonNull ArrayList pigeonVar_list) { AllTypes pigeonResult = new AllTypes(); - Object aBool = pigeon_list.get(0); + Object aBool = pigeonVar_list.get(0); pigeonResult.setABool((Boolean) aBool); - Object anInt = pigeon_list.get(1); + Object anInt = pigeonVar_list.get(1); pigeonResult.setAnInt( (anInt == null) ? null : ((anInt instanceof Integer) ? (Integer) anInt : (Long) anInt)); - Object anInt64 = pigeon_list.get(2); + Object anInt64 = pigeonVar_list.get(2); pigeonResult.setAnInt64( (anInt64 == null) ? null : ((anInt64 instanceof Integer) ? (Integer) anInt64 : (Long) anInt64)); - Object aDouble = pigeon_list.get(3); + Object aDouble = pigeonVar_list.get(3); pigeonResult.setADouble((Double) aDouble); - Object aByteArray = pigeon_list.get(4); + Object aByteArray = pigeonVar_list.get(4); pigeonResult.setAByteArray((byte[]) aByteArray); - Object a4ByteArray = pigeon_list.get(5); + Object a4ByteArray = pigeonVar_list.get(5); pigeonResult.setA4ByteArray((int[]) a4ByteArray); - Object a8ByteArray = pigeon_list.get(6); + Object a8ByteArray = pigeonVar_list.get(6); pigeonResult.setA8ByteArray((long[]) a8ByteArray); - Object aFloatArray = pigeon_list.get(7); + Object aFloatArray = pigeonVar_list.get(7); pigeonResult.setAFloatArray((double[]) aFloatArray); - Object anEnum = pigeon_list.get(8); + Object anEnum = pigeonVar_list.get(8); pigeonResult.setAnEnum((AnEnum) anEnum); - Object anotherEnum = pigeon_list.get(9); + Object anotherEnum = pigeonVar_list.get(9); pigeonResult.setAnotherEnum((AnotherEnum) anotherEnum); - Object aString = pigeon_list.get(10); + Object aString = pigeonVar_list.get(10); pigeonResult.setAString((String) aString); - Object anObject = pigeon_list.get(11); + Object anObject = pigeonVar_list.get(11); pigeonResult.setAnObject(anObject); - Object list = pigeon_list.get(12); + Object list = pigeonVar_list.get(12); pigeonResult.setList((List) list); - Object stringList = pigeon_list.get(13); + Object stringList = pigeonVar_list.get(13); pigeonResult.setStringList((List) stringList); - Object intList = pigeon_list.get(14); + Object intList = pigeonVar_list.get(14); pigeonResult.setIntList((List) intList); - Object doubleList = pigeon_list.get(15); + Object doubleList = pigeonVar_list.get(15); pigeonResult.setDoubleList((List) doubleList); - Object boolList = pigeon_list.get(16); + Object boolList = pigeonVar_list.get(16); pigeonResult.setBoolList((List) boolList); - Object map = pigeon_list.get(17); + Object map = pigeonVar_list.get(17); pigeonResult.setMap((Map) map); return pigeonResult; } @@ -908,7 +908,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - int pigeon_result = + int pigeonVar_result = Objects.hash( aNullableBool, aNullableInt, @@ -929,11 +929,11 @@ public int hashCode() { boolList, nestedClassList, map); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable4ByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable8ByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableFloatArray); - return pigeon_result; + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable4ByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable8ByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableFloatArray); + return pigeonVar_result; } public static final class Builder { @@ -1181,61 +1181,61 @@ ArrayList toList() { return toListResult; } - static @NonNull AllNullableTypes fromList(@NonNull ArrayList pigeon_list) { + static @NonNull AllNullableTypes fromList(@NonNull ArrayList pigeonVar_list) { AllNullableTypes pigeonResult = new AllNullableTypes(); - Object aNullableBool = pigeon_list.get(0); + Object aNullableBool = pigeonVar_list.get(0); pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = pigeon_list.get(1); + Object aNullableInt = pigeonVar_list.get(1); pigeonResult.setANullableInt( (aNullableInt == null) ? null : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = pigeon_list.get(2); + Object aNullableInt64 = pigeonVar_list.get(2); pigeonResult.setANullableInt64( (aNullableInt64 == null) ? null : ((aNullableInt64 instanceof Integer) ? (Integer) aNullableInt64 : (Long) aNullableInt64)); - Object aNullableDouble = pigeon_list.get(3); + Object aNullableDouble = pigeonVar_list.get(3); pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = pigeon_list.get(4); + Object aNullableByteArray = pigeonVar_list.get(4); pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = pigeon_list.get(5); + Object aNullable4ByteArray = pigeonVar_list.get(5); pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = pigeon_list.get(6); + Object aNullable8ByteArray = pigeonVar_list.get(6); pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = pigeon_list.get(7); + Object aNullableFloatArray = pigeonVar_list.get(7); pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = pigeon_list.get(8); + Object nullableNestedList = pigeonVar_list.get(8); pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = pigeon_list.get(9); + Object nullableMapWithAnnotations = pigeonVar_list.get(9); pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = pigeon_list.get(10); + Object nullableMapWithObject = pigeonVar_list.get(10); pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = pigeon_list.get(11); + Object aNullableEnum = pigeonVar_list.get(11); pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = pigeon_list.get(12); + Object anotherNullableEnum = pigeonVar_list.get(12); pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = pigeon_list.get(13); + Object aNullableString = pigeonVar_list.get(13); pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = pigeon_list.get(14); + Object aNullableObject = pigeonVar_list.get(14); pigeonResult.setANullableObject(aNullableObject); - Object allNullableTypes = pigeon_list.get(15); + Object allNullableTypes = pigeonVar_list.get(15); pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object list = pigeon_list.get(16); + Object list = pigeonVar_list.get(16); pigeonResult.setList((List) list); - Object stringList = pigeon_list.get(17); + Object stringList = pigeonVar_list.get(17); pigeonResult.setStringList((List) stringList); - Object intList = pigeon_list.get(18); + Object intList = pigeonVar_list.get(18); pigeonResult.setIntList((List) intList); - Object doubleList = pigeon_list.get(19); + Object doubleList = pigeonVar_list.get(19); pigeonResult.setDoubleList((List) doubleList); - Object boolList = pigeon_list.get(20); + Object boolList = pigeonVar_list.get(20); pigeonResult.setBoolList((List) boolList); - Object nestedClassList = pigeon_list.get(21); + Object nestedClassList = pigeonVar_list.get(21); pigeonResult.setNestedClassList((List) nestedClassList); - Object map = pigeon_list.get(22); + Object map = pigeonVar_list.get(22); pigeonResult.setMap((Map) map); return pigeonResult; } @@ -1492,7 +1492,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - int pigeon_result = + int pigeonVar_result = Objects.hash( aNullableBool, aNullableInt, @@ -1511,11 +1511,11 @@ public int hashCode() { doubleList, boolList, map); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable4ByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullable8ByteArray); - pigeon_result = 31 * pigeon_result + Arrays.hashCode(aNullableFloatArray); - return pigeon_result; + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable4ByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullable8ByteArray); + pigeonVar_result = 31 * pigeonVar_result + Arrays.hashCode(aNullableFloatArray); + return pigeonVar_result; } public static final class Builder { @@ -1744,57 +1744,57 @@ ArrayList toList() { } static @NonNull AllNullableTypesWithoutRecursion fromList( - @NonNull ArrayList pigeon_list) { + @NonNull ArrayList pigeonVar_list) { AllNullableTypesWithoutRecursion pigeonResult = new AllNullableTypesWithoutRecursion(); - Object aNullableBool = pigeon_list.get(0); + Object aNullableBool = pigeonVar_list.get(0); pigeonResult.setANullableBool((Boolean) aNullableBool); - Object aNullableInt = pigeon_list.get(1); + Object aNullableInt = pigeonVar_list.get(1); pigeonResult.setANullableInt( (aNullableInt == null) ? null : ((aNullableInt instanceof Integer) ? (Integer) aNullableInt : (Long) aNullableInt)); - Object aNullableInt64 = pigeon_list.get(2); + Object aNullableInt64 = pigeonVar_list.get(2); pigeonResult.setANullableInt64( (aNullableInt64 == null) ? null : ((aNullableInt64 instanceof Integer) ? (Integer) aNullableInt64 : (Long) aNullableInt64)); - Object aNullableDouble = pigeon_list.get(3); + Object aNullableDouble = pigeonVar_list.get(3); pigeonResult.setANullableDouble((Double) aNullableDouble); - Object aNullableByteArray = pigeon_list.get(4); + Object aNullableByteArray = pigeonVar_list.get(4); pigeonResult.setANullableByteArray((byte[]) aNullableByteArray); - Object aNullable4ByteArray = pigeon_list.get(5); + Object aNullable4ByteArray = pigeonVar_list.get(5); pigeonResult.setANullable4ByteArray((int[]) aNullable4ByteArray); - Object aNullable8ByteArray = pigeon_list.get(6); + Object aNullable8ByteArray = pigeonVar_list.get(6); pigeonResult.setANullable8ByteArray((long[]) aNullable8ByteArray); - Object aNullableFloatArray = pigeon_list.get(7); + Object aNullableFloatArray = pigeonVar_list.get(7); pigeonResult.setANullableFloatArray((double[]) aNullableFloatArray); - Object nullableNestedList = pigeon_list.get(8); + Object nullableNestedList = pigeonVar_list.get(8); pigeonResult.setNullableNestedList((List>) nullableNestedList); - Object nullableMapWithAnnotations = pigeon_list.get(9); + Object nullableMapWithAnnotations = pigeonVar_list.get(9); pigeonResult.setNullableMapWithAnnotations((Map) nullableMapWithAnnotations); - Object nullableMapWithObject = pigeon_list.get(10); + Object nullableMapWithObject = pigeonVar_list.get(10); pigeonResult.setNullableMapWithObject((Map) nullableMapWithObject); - Object aNullableEnum = pigeon_list.get(11); + Object aNullableEnum = pigeonVar_list.get(11); pigeonResult.setANullableEnum((AnEnum) aNullableEnum); - Object anotherNullableEnum = pigeon_list.get(12); + Object anotherNullableEnum = pigeonVar_list.get(12); pigeonResult.setAnotherNullableEnum((AnotherEnum) anotherNullableEnum); - Object aNullableString = pigeon_list.get(13); + Object aNullableString = pigeonVar_list.get(13); pigeonResult.setANullableString((String) aNullableString); - Object aNullableObject = pigeon_list.get(14); + Object aNullableObject = pigeonVar_list.get(14); pigeonResult.setANullableObject(aNullableObject); - Object list = pigeon_list.get(15); + Object list = pigeonVar_list.get(15); pigeonResult.setList((List) list); - Object stringList = pigeon_list.get(16); + Object stringList = pigeonVar_list.get(16); pigeonResult.setStringList((List) stringList); - Object intList = pigeon_list.get(17); + Object intList = pigeonVar_list.get(17); pigeonResult.setIntList((List) intList); - Object doubleList = pigeon_list.get(18); + Object doubleList = pigeonVar_list.get(18); pigeonResult.setDoubleList((List) doubleList); - Object boolList = pigeon_list.get(19); + Object boolList = pigeonVar_list.get(19); pigeonResult.setBoolList((List) boolList); - Object map = pigeon_list.get(20); + Object map = pigeonVar_list.get(20); pigeonResult.setMap((Map) map); return pigeonResult; } @@ -1911,14 +1911,14 @@ ArrayList toList() { return toListResult; } - static @NonNull AllClassesWrapper fromList(@NonNull ArrayList pigeon_list) { + static @NonNull AllClassesWrapper fromList(@NonNull ArrayList pigeonVar_list) { AllClassesWrapper pigeonResult = new AllClassesWrapper(); - Object allNullableTypes = pigeon_list.get(0); + Object allNullableTypes = pigeonVar_list.get(0); pigeonResult.setAllNullableTypes((AllNullableTypes) allNullableTypes); - Object allNullableTypesWithoutRecursion = pigeon_list.get(1); + Object allNullableTypesWithoutRecursion = pigeonVar_list.get(1); pigeonResult.setAllNullableTypesWithoutRecursion( (AllNullableTypesWithoutRecursion) allNullableTypesWithoutRecursion); - Object allTypes = pigeon_list.get(2); + Object allTypes = pigeonVar_list.get(2); pigeonResult.setAllTypes((AllTypes) allTypes); return pigeonResult; } @@ -1981,9 +1981,9 @@ ArrayList toList() { return toListResult; } - static @NonNull TestMessage fromList(@NonNull ArrayList pigeon_list) { + static @NonNull TestMessage fromList(@NonNull ArrayList pigeonVar_list) { TestMessage pigeonResult = new TestMessage(); - Object testList = pigeon_list.get(0); + Object testList = pigeonVar_list.get(0); pigeonResult.setTestList((List) testList); return pigeonResult; } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart index d4ec2216251..9fb5e58df03 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/background_platform_channels.gen.dart @@ -29,41 +29,41 @@ class BackgroundApi2Host { /// BinaryMessenger will be used which routes to the host platform. BackgroundApi2Host( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future add(int x, int y) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.BackgroundApi2Host.add$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.BackgroundApi2Host.add$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([x, y]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([x, y]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart index 13c19660d3f..762b5d77502 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/core_tests.gen.dart @@ -532,35 +532,35 @@ class HostIntegrationCoreApi { /// BinaryMessenger will be used which routes to the host platform. HostIntegrationCoreApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. Future noop() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noop$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -569,78 +569,78 @@ class HostIntegrationCoreApi { /// Returns the passed object, to test serialization and deserialization. Future echoAllTypes(AllTypes everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllTypes?)!; + return (pigeonVar_replyList[0] as AllTypes?)!; } } /// Returns an error, to test error handling. Future throwError() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns an error from a void function, to test error handling. Future throwErrorFromVoid() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwErrorFromVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -649,473 +649,473 @@ class HostIntegrationCoreApi { /// Returns a Flutter error, to test error handling. Future throwFlutterError() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwFlutterError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns passed in int. Future echoInt(int anInt) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } /// Returns passed in double. Future echoDouble(double aDouble) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } /// Returns the passed in boolean. Future echoBool(bool aBool) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } /// Returns the passed in string. Future echoString(String aString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } /// Returns the passed in Uint8List. Future echoUint8List(Uint8List aUint8List) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aUint8List]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Uint8List?)!; + return (pigeonVar_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object. Future echoObject(Object anObject) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anObject]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return pigeon_replyList[0]!; + return pigeonVar_replyList[0]!; } } /// Returns the passed list, to test serialization and deserialization. Future> echoList(List list) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([list]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([list]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future> echoMap(Map aMap) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } /// Returns the passed map to test nested class serialization and deserialization. Future echoClassWrapper(AllClassesWrapper wrapper) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoClassWrapper$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([wrapper]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([wrapper]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllClassesWrapper?)!; + return (pigeonVar_replyList[0] as AllClassesWrapper?)!; } } /// Returns the passed enum to test serialization and deserialization. Future echoEnum(AnEnum anEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AnEnum?)!; + return (pigeonVar_replyList[0] as AnEnum?)!; } } /// Returns the passed enum to test serialization and deserialization. Future echoAnotherEnum(AnotherEnum anotherEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anotherEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anotherEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AnotherEnum?)!; + return (pigeonVar_replyList[0] as AnotherEnum?)!; } } /// Returns the default string. Future echoNamedDefaultString({String aString = 'default'}) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedDefaultString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } /// Returns passed in double. Future echoOptionalDefaultDouble([double aDouble = 3.14]) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalDefaultDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } /// Returns passed in int. Future echoRequiredInt({required int anInt}) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoRequiredInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } /// Returns the passed object, to test serialization and deserialization. Future echoAllNullableTypes( AllNullableTypes? everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AllNullableTypes?); + return (pigeonVar_replyList[0] as AllNullableTypes?); } } @@ -1123,52 +1123,52 @@ class HostIntegrationCoreApi { Future echoAllNullableTypesWithoutRecursion( AllNullableTypesWithoutRecursion? everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); } } /// Returns the inner `aString` value from the wrapped object, to test /// sending of nested objects. Future extractNestedNullableString(AllClassesWrapper wrapper) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.extractNestedNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([wrapper]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([wrapper]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } @@ -1176,63 +1176,63 @@ class HostIntegrationCoreApi { /// sending of nested objects. Future createNestedNullableString( String? nullableString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.createNestedNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([nullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([nullableString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllClassesWrapper?)!; + return (pigeonVar_replyList[0] as AllClassesWrapper?)!; } } /// Returns passed in arguments of multiple types. Future sendMultipleNullableTypes( bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllNullableTypes?)!; + return (pigeonVar_replyList[0] as AllNullableTypes?)!; } } @@ -1240,356 +1240,356 @@ class HostIntegrationCoreApi { Future sendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?)!; + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?)!; } } /// Returns passed in int. Future echoNullableInt(int? aNullableInt) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } /// Returns passed in double. Future echoNullableDouble(double? aNullableDouble) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([aNullableDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as double?); + return (pigeonVar_replyList[0] as double?); } } /// Returns the passed in boolean. Future echoNullableBool(bool? aNullableBool) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([aNullableBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as bool?); + return (pigeonVar_replyList[0] as bool?); } } /// Returns the passed in string. Future echoNullableString(String? aNullableString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([aNullableString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } /// Returns the passed in Uint8List. Future echoNullableUint8List( Uint8List? aNullableUint8List) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([aNullableUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Uint8List?); + return (pigeonVar_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object. Future echoNullableObject(Object? aNullableObject) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([aNullableObject]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableList(List? aNullableList) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([aNullableList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as List?)?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test serialization and deserialization. Future?> echoNullableMap( Map? aNullableMap) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Map?) + return (pigeonVar_replyList[0] as Map?) ?.cast(); } } Future echoNullableEnum(AnEnum? anEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AnEnum?); + return (pigeonVar_replyList[0] as AnEnum?); } } Future echoAnotherNullableEnum(AnotherEnum? anotherEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anotherEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anotherEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AnotherEnum?); + return (pigeonVar_replyList[0] as AnotherEnum?); } } /// Returns passed in int. Future echoOptionalNullableInt([int? aNullableInt]) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoOptionalNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aNullableInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } /// Returns the passed in string. Future echoNamedNullableString({String? aNullableString}) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoNamedNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aNullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([aNullableString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } /// A no-op function taking no arguments and returning no value, to sanity /// test basic asynchronous calling. Future noopAsync() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.noopAsync$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -1598,349 +1598,349 @@ class HostIntegrationCoreApi { /// Returns passed in int asynchronously. Future echoAsyncInt(int anInt) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } /// Returns passed in double asynchronously. Future echoAsyncDouble(double aDouble) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } /// Returns the passed in boolean asynchronously. Future echoAsyncBool(bool aBool) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } /// Returns the passed string asynchronously. Future echoAsyncString(String aString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncUint8List(Uint8List aUint8List) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aUint8List]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Uint8List?)!; + return (pigeonVar_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object asynchronously. Future echoAsyncObject(Object anObject) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anObject]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return pigeon_replyList[0]!; + return pigeonVar_replyList[0]!; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncList(List list) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([list]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([list]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncMap(Map aMap) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncEnum(AnEnum anEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AnEnum?)!; + return (pigeonVar_replyList[0] as AnEnum?)!; } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAnotherAsyncEnum(AnotherEnum anotherEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anotherEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anotherEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AnotherEnum?)!; + return (pigeonVar_replyList[0] as AnotherEnum?)!; } } /// Responds with an error from an async function returning a value. Future throwAsyncError() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Responds with an error from an async void function. Future throwAsyncErrorFromVoid() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncErrorFromVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -1949,82 +1949,82 @@ class HostIntegrationCoreApi { /// Responds with a Flutter error from an async function returning a value. Future throwAsyncFlutterError() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.throwAsyncFlutterError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns the passed object, to test async serialization and deserialization. Future echoAsyncAllTypes(AllTypes everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncAllTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllTypes?)!; + return (pigeonVar_replyList[0] as AllTypes?)!; } } /// Returns the passed object, to test serialization and deserialization. Future echoAsyncNullableAllNullableTypes( AllNullableTypes? everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AllNullableTypes?); + return (pigeonVar_replyList[0] as AllNullableTypes?); } } @@ -2032,300 +2032,300 @@ class HostIntegrationCoreApi { Future echoAsyncNullableAllNullableTypesWithoutRecursion( AllNullableTypesWithoutRecursion? everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); } } /// Returns passed in int asynchronously. Future echoAsyncNullableInt(int? anInt) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } /// Returns passed in double asynchronously. Future echoAsyncNullableDouble(double? aDouble) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as double?); + return (pigeonVar_replyList[0] as double?); } } /// Returns the passed in boolean asynchronously. Future echoAsyncNullableBool(bool? aBool) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as bool?); + return (pigeonVar_replyList[0] as bool?); } } /// Returns the passed string asynchronously. Future echoAsyncNullableString(String? aString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aUint8List]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Uint8List?); + return (pigeonVar_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object asynchronously. Future echoAsyncNullableObject(Object? anObject) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableObject$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anObject]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableList(List? list) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([list]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([list]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as List?)?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableMap( Map? aMap) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Map?) + return (pigeonVar_replyList[0] as Map?) ?.cast(); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncNullableEnum(AnEnum? anEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AnEnum?); + return (pigeonVar_replyList[0] as AnEnum?); } } /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAnotherAsyncNullableEnum( AnotherEnum? anotherEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.echoAnotherAsyncNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anotherEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anotherEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AnotherEnum?); + return (pigeonVar_replyList[0] as AnotherEnum?); } } Future callFlutterNoop() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterNoop$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -2333,47 +2333,47 @@ class HostIntegrationCoreApi { } Future callFlutterThrowError() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowError$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } Future callFlutterThrowErrorFromVoid() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterThrowErrorFromVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -2381,658 +2381,658 @@ class HostIntegrationCoreApi { } Future callFlutterEchoAllTypes(AllTypes everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllTypes?)!; + return (pigeonVar_replyList[0] as AllTypes?)!; } } Future callFlutterEchoAllNullableTypes( AllNullableTypes? everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AllNullableTypes?); + return (pigeonVar_replyList[0] as AllNullableTypes?); } } Future callFlutterSendMultipleNullableTypes( bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypes$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllNullableTypes?)!; + return (pigeonVar_replyList[0] as AllNullableTypes?)!; } } Future callFlutterEchoAllNullableTypesWithoutRecursion( AllNullableTypesWithoutRecursion? everything) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAllNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([everything]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([everything]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?); + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?); } } Future callFlutterSendMultipleNullableTypesWithoutRecursion(bool? aNullableBool, int? aNullableInt, String? aNullableString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSendMultipleNullableTypesWithoutRecursion$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([aNullableBool, aNullableInt, aNullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AllNullableTypesWithoutRecursion?)!; + return (pigeonVar_replyList[0] as AllNullableTypesWithoutRecursion?)!; } } Future callFlutterEchoBool(bool aBool) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } Future callFlutterEchoInt(int anInt) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } Future callFlutterEchoDouble(double aDouble) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } Future callFlutterEchoString(String aString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } Future callFlutterEchoUint8List(Uint8List list) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([list]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([list]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Uint8List?)!; + return (pigeonVar_replyList[0] as Uint8List?)!; } } Future> callFlutterEchoList(List list) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([list]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([list]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } Future> callFlutterEchoMap( Map aMap) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } Future callFlutterEchoEnum(AnEnum anEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AnEnum?)!; + return (pigeonVar_replyList[0] as AnEnum?)!; } } Future callFlutterEchoAnotherEnum( AnotherEnum anotherEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anotherEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anotherEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as AnotherEnum?)!; + return (pigeonVar_replyList[0] as AnotherEnum?)!; } } Future callFlutterEchoNullableBool(bool? aBool) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as bool?); + return (pigeonVar_replyList[0] as bool?); } } Future callFlutterEchoNullableInt(int? anInt) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } Future callFlutterEchoNullableDouble(double? aDouble) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as double?); + return (pigeonVar_replyList[0] as double?); } } Future callFlutterEchoNullableString(String? aString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } Future callFlutterEchoNullableUint8List(Uint8List? list) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableUint8List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([list]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([list]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Uint8List?); + return (pigeonVar_replyList[0] as Uint8List?); } } Future?> callFlutterEchoNullableList( List? list) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([list]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([list]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as List?)?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } Future?> callFlutterEchoNullableMap( Map? aMap) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Map?) + return (pigeonVar_replyList[0] as Map?) ?.cast(); } } Future callFlutterEchoNullableEnum(AnEnum? anEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AnEnum?); + return (pigeonVar_replyList[0] as AnEnum?); } } Future callFlutterEchoAnotherNullableEnum( AnotherEnum? anotherEnum) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterEchoAnotherNullableEnum$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([anotherEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([anotherEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as AnotherEnum?); + return (pigeonVar_replyList[0] as AnotherEnum?); } } Future callFlutterSmallApiEchoString(String aString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostIntegrationCoreApi.callFlutterSmallApiEchoString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } } @@ -3143,15 +3143,16 @@ abstract class FlutterIntegrationCoreApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noop$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { try { api.noop(); return wrapResponse(empty: true); @@ -3165,15 +3166,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwError$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { try { final Object? output = api.throwError(); return wrapResponse(result: output); @@ -3187,15 +3189,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.throwErrorFromVoid$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { try { api.throwErrorFromVoid(); return wrapResponse(empty: true); @@ -3209,15 +3212,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllTypes was null.'); final List args = (message as List?)!; @@ -3237,15 +3241,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypes was null.'); final List args = (message as List?)!; @@ -3265,15 +3270,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypes was null.'); final List args = (message as List?)!; @@ -3294,15 +3300,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAllNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; @@ -3322,15 +3329,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.sendMultipleNullableTypesWithoutRecursion was null.'); final List args = (message as List?)!; @@ -3352,15 +3360,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoBool was null.'); final List args = (message as List?)!; @@ -3380,15 +3389,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoInt was null.'); final List args = (message as List?)!; @@ -3408,15 +3418,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoDouble was null.'); final List args = (message as List?)!; @@ -3436,15 +3447,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoString was null.'); final List args = (message as List?)!; @@ -3464,15 +3476,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoUint8List was null.'); final List args = (message as List?)!; @@ -3492,15 +3505,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoList was null.'); final List args = (message as List?)!; @@ -3521,15 +3535,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoMap was null.'); final List args = (message as List?)!; @@ -3550,15 +3565,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoEnum was null.'); final List args = (message as List?)!; @@ -3578,15 +3594,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherEnum was null.'); final List args = (message as List?)!; @@ -3606,15 +3623,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableBool was null.'); final List args = (message as List?)!; @@ -3632,15 +3650,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableInt was null.'); final List args = (message as List?)!; @@ -3658,15 +3677,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableDouble was null.'); final List args = (message as List?)!; @@ -3684,15 +3704,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableString was null.'); final List args = (message as List?)!; @@ -3710,15 +3731,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableUint8List was null.'); final List args = (message as List?)!; @@ -3736,15 +3758,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableList was null.'); final List args = (message as List?)!; @@ -3763,15 +3786,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableMap was null.'); final List args = (message as List?)!; @@ -3790,15 +3814,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoNullableEnum was null.'); final List args = (message as List?)!; @@ -3816,15 +3841,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAnotherNullableEnum was null.'); final List args = (message as List?)!; @@ -3843,15 +3869,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.noopAsync$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { try { await api.noopAsync(); return wrapResponse(empty: true); @@ -3865,15 +3892,16 @@ abstract class FlutterIntegrationCoreApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterIntegrationCoreApi.echoAsyncString was null.'); final List args = (message as List?)!; @@ -3902,33 +3930,33 @@ class HostTrivialApi { /// BinaryMessenger will be used which routes to the host platform. HostTrivialApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future noop() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostTrivialApi.noop$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -3943,62 +3971,62 @@ class HostSmallApi { /// BinaryMessenger will be used which routes to the host platform. HostSmallApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future echo(String aString) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.echo$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } Future voidVoid() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.HostSmallApi.voidVoid$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -4022,15 +4050,16 @@ abstract class FlutterSmallApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoWrappedList was null.'); final List args = (message as List?)!; @@ -4050,15 +4079,16 @@ abstract class FlutterSmallApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.FlutterSmallApi.echoString was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart index 8f54dc592ea..c20e922fdea 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/enum.gen.dart @@ -104,42 +104,42 @@ class EnumApi2Host { /// BinaryMessenger will be used which routes to the host platform. EnumApi2Host( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; /// This comment is to test method documentation comments. Future echo(DataWithEnum data) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Host.echo$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([data]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([data]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as DataWithEnum?)!; + return (pigeonVar_replyList[0] as DataWithEnum?)!; } } } @@ -159,15 +159,16 @@ abstract class EnumApi2Flutter { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.EnumApi2Flutter.echo was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart index ddb2dce3adf..07e0958447e 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/flutter_unittests.gen.dart @@ -151,128 +151,128 @@ class Api { /// available for dependency injection. If it is left null, the default /// BinaryMessenger will be used which routes to the host platform. Api({BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future search(FlutterSearchRequest request) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([request]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([request]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as FlutterSearchReply?)!; + return (pigeonVar_replyList[0] as FlutterSearchReply?)!; } } Future doSearches(FlutterSearchRequests request) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.doSearches$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([request]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([request]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as FlutterSearchReplies?)!; + return (pigeonVar_replyList[0] as FlutterSearchReplies?)!; } } Future echo(FlutterSearchRequests requests) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.echo$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([requests]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([requests]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as FlutterSearchRequests?)!; + return (pigeonVar_replyList[0] as FlutterSearchRequests?)!; } } Future anInt(int value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.Api.anInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart index c455d732404..19c10427c3d 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/message.gen.dart @@ -188,36 +188,36 @@ class MessageApi { /// BinaryMessenger will be used which routes to the host platform. MessageApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; /// This comment is to test documentation comments. /// /// This comment also tests multiple line comments. Future initialize() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -226,31 +226,31 @@ class MessageApi { /// This comment is to test method documentation comments. Future search(MessageSearchRequest request) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([request]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([request]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as MessageSearchReply?)!; + return (pigeonVar_replyList[0] as MessageSearchReply?)!; } } } @@ -262,44 +262,44 @@ class MessageNestedApi { /// BinaryMessenger will be used which routes to the host platform. MessageNestedApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; /// This comment is to test method documentation comments. /// /// This comment also tests multiple line comments. Future search(MessageNested nested) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([nested]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([nested]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as MessageSearchReply?)!; + return (pigeonVar_replyList[0] as MessageSearchReply?)!; } } } @@ -319,15 +319,16 @@ abstract class MessageFlutterSearchApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageFlutterSearchApi.search was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart index adfc400fb0c..0ccb1f5e643 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/multiple_arity.gen.dart @@ -40,41 +40,41 @@ class MultipleArityHostApi { /// BinaryMessenger will be used which routes to the host platform. MultipleArityHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future subtract(int x, int y) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityHostApi.subtract$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([x, y]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([x, y]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } } @@ -92,15 +92,16 @@ abstract class MultipleArityFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MultipleArityFlutterApi.subtract was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart index 234f5817d0d..ce111714138 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/non_null_fields.gen.dart @@ -168,42 +168,42 @@ class NonNullFieldHostApi { /// BinaryMessenger will be used which routes to the host platform. NonNullFieldHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future search( NonNullFieldSearchRequest nested) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldHostApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([nested]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([nested]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as NonNullFieldSearchReply?)!; + return (pigeonVar_replyList[0] as NonNullFieldSearchReply?)!; } } } @@ -221,15 +221,16 @@ abstract class NonNullFieldFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NonNullFieldFlutterApi.search was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart index 762578d96a8..672dccad4a3 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/null_fields.gen.dart @@ -142,41 +142,41 @@ class NullFieldsHostApi { /// BinaryMessenger will be used which routes to the host platform. NullFieldsHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future search(NullFieldsSearchRequest nested) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsHostApi.search$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([nested]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([nested]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as NullFieldsSearchReply?)!; + return (pigeonVar_replyList[0] as NullFieldsSearchReply?)!; } } } @@ -194,15 +194,16 @@ abstract class NullFieldsFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullFieldsFlutterApi.search was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart index 5b30d715a4b..6f69283f744 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/nullable_returns.gen.dart @@ -40,36 +40,36 @@ class NullableReturnHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableReturnHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future doit() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } } @@ -87,15 +87,16 @@ abstract class NullableReturnFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { try { final int? output = api.doit(); return wrapResponse(result: output); @@ -117,41 +118,41 @@ class NullableArgHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableArgHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future doit(int? x) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([x]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([x]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } } @@ -169,15 +170,16 @@ abstract class NullableArgFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableArgFlutterApi.doit was null.'); final List args = (message as List?)!; @@ -203,36 +205,36 @@ class NullableCollectionReturnHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableCollectionReturnHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future?> doit() async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as List?)?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } } @@ -250,15 +252,16 @@ abstract class NullableCollectionReturnFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionReturnFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { try { final List? output = api.doit(); return wrapResponse(result: output); @@ -280,41 +283,41 @@ class NullableCollectionArgHostApi { /// BinaryMessenger will be used which routes to the host platform. NullableCollectionArgHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future> doit(List? x) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgHostApi.doit$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([x]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([x]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } } @@ -332,15 +335,16 @@ abstract class NullableCollectionArgFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.NullableCollectionArgFlutterApi.doit was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart index 195f59f3d64..552938c43ae 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/primitive.gen.dart @@ -40,273 +40,273 @@ class PrimitiveHostApi { /// BinaryMessenger will be used which routes to the host platform. PrimitiveHostApi( {BinaryMessenger? binaryMessenger, String messageChannelSuffix = ''}) - : pigeon_binaryMessenger = binaryMessenger, - pigeon_messageChannelSuffix = + : pigeonVar_binaryMessenger = binaryMessenger, + pigeonVar_messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = _PigeonCodec(); - final String pigeon_messageChannelSuffix; + final String pigeonVar_messageChannelSuffix; Future anInt(int value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } Future aBool(bool value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBool$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } Future aString(String value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aString$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } Future aDouble(double value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aDouble$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } Future> aMap(Map value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)!; + return (pigeonVar_replyList[0] as Map?)!; } } Future> aList(List value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!; + return (pigeonVar_replyList[0] as List?)!; } } Future anInt32List(Int32List value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.anInt32List$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Int32List?)!; + return (pigeonVar_replyList[0] as Int32List?)!; } } Future> aBoolList(List value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aBoolList$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } Future> aStringIntMap(Map value) async { - final String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeon_messageChannelSuffix'; - final BasicMessageChannel pigeon_channel = + final String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveHostApi.aStringIntMap$pigeonVar_messageChannelSuffix'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([value]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([value]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } @@ -341,15 +341,16 @@ abstract class PrimitiveFlutterApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt was null.'); final List args = (message as List?)!; @@ -369,15 +370,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBool was null.'); final List args = (message as List?)!; @@ -397,15 +399,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aString was null.'); final List args = (message as List?)!; @@ -425,15 +428,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aDouble was null.'); final List args = (message as List?)!; @@ -453,15 +457,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aMap was null.'); final List args = (message as List?)!; @@ -482,15 +487,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aList was null.'); final List args = (message as List?)!; @@ -510,15 +516,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.anInt32List was null.'); final List args = (message as List?)!; @@ -538,15 +545,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aBoolList was null.'); final List args = (message as List?)!; @@ -567,15 +575,16 @@ abstract class PrimitiveFlutterApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { - pigeon_channel.setMessageHandler(null); + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PrimitiveFlutterApi.aStringIntMap was null.'); final List args = (message as List?)!; diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart index e0b4d2a3bf2..977356f8ae1 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/lib/src/generated/proxy_api_tests.gen.dart @@ -36,26 +36,26 @@ List wrapResponse( /// can provide functional copies of itself. /// /// All implementers are expected to be [immutable] as defined by the annotation -/// and override [pigeonField_copy] returning an instance of itself. +/// and override [pigeon_copy] returning an instance of itself. @immutable abstract class PigeonInternalProxyApiBaseClass { /// Construct a [PigeonInternalProxyApiBaseClass]. PigeonInternalProxyApiBaseClass({ - this.pigeonField_binaryMessenger, - PigeonInternalInstanceManager? pigeonField_instanceManager, - }) : pigeonField_instanceManager = pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance; + this.pigeon_binaryMessenger, + PigeonInternalInstanceManager? pigeon_instanceManager, + }) : pigeon_instanceManager = + pigeon_instanceManager ?? PigeonInternalInstanceManager.instance; /// Sends and receives binary data across the Flutter platform barrier. /// /// If it is null, the default BinaryMessenger will be used, which routes to /// the host platform. @protected - final BinaryMessenger? pigeonField_binaryMessenger; + final BinaryMessenger? pigeon_binaryMessenger; /// Maintains instances stored to communicate with native language objects. @protected - final PigeonInternalInstanceManager pigeonField_instanceManager; + final PigeonInternalInstanceManager pigeon_instanceManager; /// Instantiates and returns a functionally identical object to oneself. /// @@ -65,7 +65,7 @@ abstract class PigeonInternalProxyApiBaseClass { /// Subclasses should always override their parent's implementation of this /// method. @protected - PigeonInternalProxyApiBaseClass pigeonField_copy(); + PigeonInternalProxyApiBaseClass pigeon_copy(); } /// Maintains instances used to communicate with the native objects they @@ -141,12 +141,12 @@ class PigeonInternalInstanceManager { ); _PigeonInternalInstanceManagerApi.setUpMessageHandlers( instanceManager: instanceManager); - ProxyApiTestClass.pigeonField_setUpMessageHandlers( - pigeonField_instanceManager: instanceManager); - ProxyApiSuperClass.pigeonField_setUpMessageHandlers( - pigeonField_instanceManager: instanceManager); - ProxyApiInterface.pigeonField_setUpMessageHandlers( - pigeonField_instanceManager: instanceManager); + ProxyApiTestClass.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager); + ProxyApiSuperClass.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager); + ProxyApiInterface.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager); return instanceManager; } @@ -220,7 +220,7 @@ class PigeonInternalInstanceManager { _strongInstances[identifier]; if (strongInstance != null) { final PigeonInternalProxyApiBaseClass copy = - strongInstance.pigeonField_copy(); + strongInstance.pigeon_copy(); _identifiers[copy] = identifier; _weakInstances[identifier] = WeakReference(copy); @@ -263,7 +263,7 @@ class PigeonInternalInstanceManager { WeakReference(instance); _finalizer.attach(instance, identifier, detach: instance); - final PigeonInternalProxyApiBaseClass copy = instance.pigeonField_copy(); + final PigeonInternalProxyApiBaseClass copy = instance.pigeon_copy(); _identifiers[copy] = identifier; _strongInstances[identifier] = copy; } @@ -288,28 +288,29 @@ class PigeonInternalInstanceManager { class _PigeonInternalInstanceManagerApi { /// Constructor for [_PigeonInternalInstanceManagerApi]. _PigeonInternalInstanceManagerApi({BinaryMessenger? binaryMessenger}) - : pigeon_binaryMessenger = binaryMessenger; + : pigeonVar_binaryMessenger = binaryMessenger; - final BinaryMessenger? pigeon_binaryMessenger; + final BinaryMessenger? pigeonVar_binaryMessenger; static const MessageCodec pigeonChannelCodec = StandardMessageCodec(); static void setUpMessageHandlers({ - bool pigeonField_clearHandlers = false, + bool pigeon_clearHandlers = false, BinaryMessenger? binaryMessenger, PigeonInternalInstanceManager? instanceManager, }) { { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.removeStrongReference', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.removeStrongReference was null.'); final List args = (message as List?)!; @@ -332,23 +333,23 @@ class _PigeonInternalInstanceManagerApi { } Future removeStrongReference(int identifier) async { - const String pigeon_channelName = + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.removeStrongReference'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([identifier]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([identifier]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -359,23 +360,23 @@ class _PigeonInternalInstanceManagerApi { /// /// This is typically called after a hot restart. Future clear() async { - const String pigeon_channelName = + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.PigeonInternalInstanceManagerApi.clear'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -443,8 +444,8 @@ class _PigeonCodec extends StandardMessageCodec { class ProxyApiTestClass extends ProxyApiSuperClass implements ProxyApiInterface { ProxyApiTestClass({ - super.pigeonField_binaryMessenger, - super.pigeonField_instanceManager, + super.pigeon_binaryMessenger, + super.pigeon_instanceManager, required this.aBool, required this.anInt, required this.aDouble, @@ -507,24 +508,24 @@ class ProxyApiTestClass extends ProxyApiSuperClass Map? nullableMapParam, ProxyApiTestEnum? nullableEnumParam, ProxyApiSuperClass? nullableProxyApiParam, - }) : super.pigeonField_detached() { - final int pigeon_instanceIdentifier = - pigeonField_instanceManager.addDartCreatedInstance(this); + }) : super.pigeon_detached() { + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; () async { - const String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_defaultConstructor'; - final BasicMessageChannel pigeon_channel = + const String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_defaultConstructor'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([ - pigeon_instanceIdentifier, + final List? pigeonVar_replyList = + await pigeonVar_channel.send([ + pigeonVar_instanceIdentifier, aBool, anInt, aDouble, @@ -562,13 +563,13 @@ class ProxyApiTestClass extends ProxyApiSuperClass nullableEnumParam, nullableProxyApiParam ]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -581,9 +582,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// This should only be used by subclasses created by this library or to /// create copies for an [PigeonInternalInstanceManager]. @protected - ProxyApiTestClass.pigeonField_detached({ - super.pigeonField_binaryMessenger, - super.pigeonField_instanceManager, + ProxyApiTestClass.pigeon_detached({ + super.pigeon_binaryMessenger, + super.pigeon_instanceManager, required this.aBool, required this.anInt, required this.aDouble, @@ -628,10 +629,11 @@ class ProxyApiTestClass extends ProxyApiSuperClass this.flutterEchoNullableProxyApi, this.flutterNoopAsync, this.flutterEchoAsyncString, - }) : super.pigeonField_detached(); + }) : super.pigeon_detached(); - late final _PigeonInternalProxyApiBaseCodec pigeon_codecProxyApiTestClass = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager); + late final _PigeonInternalProxyApiBaseCodec + _pigeonVar_codecProxyApiTestClass = + _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); final bool aBool; @@ -681,7 +683,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterNoop: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterNoop: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -689,7 +691,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final void Function(ProxyApiTestClass pigeonField_instance)? flutterNoop; + final void Function(ProxyApiTestClass pigeon_instance)? flutterNoop; /// Responds with an error from an async function returning a value. /// @@ -702,7 +704,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterThrowError: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterThrowError: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -710,8 +712,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final Object? Function(ProxyApiTestClass pigeonField_instance)? - flutterThrowError; + final Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError; /// Responds with an error from an async void function. /// @@ -724,7 +725,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterThrowErrorFromVoid: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterThrowErrorFromVoid: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -732,7 +733,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final void Function(ProxyApiTestClass pigeonField_instance)? + final void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid; /// Returns the passed boolean, to test serialization and deserialization. @@ -746,7 +747,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoBool: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoBool: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -755,7 +756,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final bool Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, bool aBool, )? flutterEchoBool; @@ -770,7 +771,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoInt: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoInt: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -779,7 +780,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final int Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, int anInt, )? flutterEchoInt; @@ -794,7 +795,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoDouble: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoDouble: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -803,7 +804,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final double Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, double aDouble, )? flutterEchoDouble; @@ -818,7 +819,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoString: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoString: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -827,7 +828,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final String Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, String aString, )? flutterEchoString; @@ -842,7 +843,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoUint8List: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoUint8List: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -851,7 +852,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Uint8List Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Uint8List aList, )? flutterEchoUint8List; @@ -866,7 +867,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoList: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoList: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -875,7 +876,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final List Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, List aList, )? flutterEchoList; @@ -891,7 +892,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoProxyApiList: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoProxyApiList: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -900,7 +901,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final List Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, List aList, )? flutterEchoProxyApiList; @@ -915,7 +916,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoMap: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoMap: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -924,7 +925,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Map Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Map aMap, )? flutterEchoMap; @@ -940,7 +941,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoProxyApiMap: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoProxyApiMap: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -949,7 +950,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Map Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Map aMap, )? flutterEchoProxyApiMap; @@ -964,7 +965,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoEnum: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoEnum: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -973,7 +974,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiTestEnum Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, )? flutterEchoEnum; @@ -988,7 +989,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoProxyApi: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoProxyApi: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -997,7 +998,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiSuperClass Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, )? flutterEchoProxyApi; @@ -1012,7 +1013,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableBool: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableBool: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1021,7 +1022,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final bool? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, bool? aBool, )? flutterEchoNullableBool; @@ -1036,7 +1037,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableInt: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableInt: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1045,7 +1046,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final int? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, int? anInt, )? flutterEchoNullableInt; @@ -1060,7 +1061,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableDouble: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableDouble: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1069,7 +1070,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final double? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, double? aDouble, )? flutterEchoNullableDouble; @@ -1084,7 +1085,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableString: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableString: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1093,7 +1094,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final String? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, String? aString, )? flutterEchoNullableString; @@ -1108,7 +1109,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableUint8List: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableUint8List: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1117,7 +1118,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Uint8List? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Uint8List? aList, )? flutterEchoNullableUint8List; @@ -1132,7 +1133,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableList: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableList: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1141,7 +1142,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final List? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, List? aList, )? flutterEchoNullableList; @@ -1156,7 +1157,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableMap: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableMap: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1165,7 +1166,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Map? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Map? aMap, )? flutterEchoNullableMap; @@ -1180,7 +1181,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableEnum: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableEnum: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1189,7 +1190,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiTestEnum? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, )? flutterEchoNullableEnum; @@ -1204,7 +1205,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoNullableProxyApi: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoNullableProxyApi: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1213,7 +1214,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final ProxyApiSuperClass? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, )? flutterEchoNullableProxyApi; @@ -1229,7 +1230,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterNoopAsync: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterNoopAsync: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1237,7 +1238,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final Future Function(ProxyApiTestClass pigeonField_instance)? + final Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync; /// Returns the passed in generic Object asynchronously. @@ -1251,7 +1252,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiTestClass instance = ProxyApiTestClass( - /// flutterEchoAsyncString: (ProxyApiTestClass pigeonField_instance, ...) { + /// flutterEchoAsyncString: (ProxyApiTestClass pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -1260,23 +1261,22 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. final Future Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, String aString, )? flutterEchoAsyncString; @override - final void Function(ProxyApiInterface pigeonField_instance)? - anInterfaceMethod; + final void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod; - late final ProxyApiSuperClass attachedField = pigeon_attachedField(); + late final ProxyApiSuperClass attachedField = pigeonVar_attachedField(); static final ProxyApiSuperClass staticAttachedField = - pigeon_staticAttachedField(); + pigeonVar_staticAttachedField(); - static void pigeonField_setUpMessageHandlers({ - bool pigeonField_clearHandlers = false, - BinaryMessenger? pigeonField_binaryMessenger, - PigeonInternalInstanceManager? pigeonField_instanceManager, + static void pigeon_setUpMessageHandlers({ + bool pigeon_clearHandlers = false, + BinaryMessenger? pigeon_binaryMessenger, + PigeonInternalInstanceManager? pigeon_instanceManager, ProxyApiTestClass Function( bool aBool, int anInt, @@ -1296,148 +1296,147 @@ class ProxyApiTestClass extends ProxyApiSuperClass Map? aNullableMap, ProxyApiTestEnum? aNullableEnum, ProxyApiSuperClass? aNullableProxyApi, - )? pigeonField_newInstance, - void Function(ProxyApiTestClass pigeonField_instance)? flutterNoop, - Object? Function(ProxyApiTestClass pigeonField_instance)? flutterThrowError, - void Function(ProxyApiTestClass pigeonField_instance)? - flutterThrowErrorFromVoid, + )? pigeon_newInstance, + void Function(ProxyApiTestClass pigeon_instance)? flutterNoop, + Object? Function(ProxyApiTestClass pigeon_instance)? flutterThrowError, + void Function(ProxyApiTestClass pigeon_instance)? flutterThrowErrorFromVoid, bool Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, bool aBool, )? flutterEchoBool, int Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, int anInt, )? flutterEchoInt, double Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, double aDouble, )? flutterEchoDouble, String Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, String aString, )? flutterEchoString, Uint8List Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Uint8List aList, )? flutterEchoUint8List, List Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, List aList, )? flutterEchoList, List Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, List aList, )? flutterEchoProxyApiList, Map Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Map aMap, )? flutterEchoMap, Map Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Map aMap, )? flutterEchoProxyApiMap, ProxyApiTestEnum Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiTestEnum anEnum, )? flutterEchoEnum, ProxyApiSuperClass Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiSuperClass aProxyApi, )? flutterEchoProxyApi, bool? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, bool? aBool, )? flutterEchoNullableBool, int? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, int? anInt, )? flutterEchoNullableInt, double? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, double? aDouble, )? flutterEchoNullableDouble, String? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, String? aString, )? flutterEchoNullableString, Uint8List? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Uint8List? aList, )? flutterEchoNullableUint8List, List? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, List? aList, )? flutterEchoNullableList, Map? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, Map? aMap, )? flutterEchoNullableMap, ProxyApiTestEnum? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiTestEnum? anEnum, )? flutterEchoNullableEnum, ProxyApiSuperClass? Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, ProxyApiSuperClass? aProxyApi, )? flutterEchoNullableProxyApi, - Future Function(ProxyApiTestClass pigeonField_instance)? - flutterNoopAsync, + Future Function(ProxyApiTestClass pigeon_instance)? flutterNoopAsync, Future Function( - ProxyApiTestClass pigeonField_instance, + ProxyApiTestClass pigeon_instance, String aString, )? flutterEchoAsyncString, }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance); - final BinaryMessenger? binaryMessenger = pigeonField_binaryMessenger; + _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager ?? PigeonInternalInstanceManager.instance); + final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance', + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null.'); final List args = (message as List?)!; - final int? arg_pigeonField_instanceIdentifier = (args[0] as int?); - assert(arg_pigeonField_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null int.'); + final int? arg_pigeon_instanceIdentifier = (args[0] as int?); + assert(arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null int.'); final bool? arg_aBool = (args[1] as bool?); assert(arg_aBool != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null bool.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null bool.'); final int? arg_anInt = (args[2] as int?); assert(arg_anInt != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null int.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null int.'); final double? arg_aDouble = (args[3] as double?); assert(arg_aDouble != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null double.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null double.'); final String? arg_aString = (args[4] as String?); assert(arg_aString != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null String.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null String.'); final Uint8List? arg_aUint8List = (args[5] as Uint8List?); assert(arg_aUint8List != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null Uint8List.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null Uint8List.'); final List? arg_aList = (args[6] as List?)?.cast(); assert(arg_aList != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null List.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null List.'); final Map? arg_aMap = (args[7] as Map?)?.cast(); assert(arg_aMap != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null Map.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null Map.'); final ProxyApiTestEnum? arg_anEnum = (args[8] as ProxyApiTestEnum?); assert(arg_anEnum != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null ProxyApiTestEnum.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null ProxyApiTestEnum.'); final ProxyApiSuperClass? arg_aProxyApi = (args[9] as ProxyApiSuperClass?); assert(arg_aProxyApi != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeonField_newInstance was null, expected non-null ProxyApiSuperClass.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.pigeon_newInstance was null, expected non-null ProxyApiSuperClass.'); final bool? arg_aNullableBool = (args[10] as bool?); final int? arg_aNullableInt = (args[11] as int?); final double? arg_aNullableDouble = (args[12] as double?); @@ -1452,10 +1451,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass final ProxyApiSuperClass? arg_aNullableProxyApi = (args[18] as ProxyApiSuperClass?); try { - (pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance) + (pigeon_instanceManager ?? PigeonInternalInstanceManager.instance) .addHostCreatedInstance( - pigeonField_newInstance?.call( + pigeon_newInstance?.call( arg_aBool!, arg_anInt!, arg_aDouble!, @@ -1474,9 +1472,9 @@ class ProxyApiTestClass extends ProxyApiSuperClass arg_aNullableMap, arg_aNullableEnum, arg_aNullableProxyApi) ?? - ProxyApiTestClass.pigeonField_detached( - pigeonField_binaryMessenger: pigeonField_binaryMessenger, - pigeonField_instanceManager: pigeonField_instanceManager, + ProxyApiTestClass.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, aBool: arg_aBool!, anInt: arg_anInt!, aDouble: arg_aDouble!, @@ -1496,7 +1494,7 @@ class ProxyApiTestClass extends ProxyApiSuperClass aNullableEnum: arg_aNullableEnum, aNullableProxyApi: arg_aNullableProxyApi, ), - arg_pigeonField_instanceIdentifier!, + arg_pigeon_instanceIdentifier!, ); return wrapResponse(empty: true); } on PlatformException catch (e) { @@ -1510,25 +1508,26 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoop was null, expected non-null ProxyApiTestClass.'); try { - (flutterNoop ?? arg_pigeonField_instance!.flutterNoop) - ?.call(arg_pigeonField_instance!); + (flutterNoop ?? arg_pigeon_instance!.flutterNoop) + ?.call(arg_pigeon_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1541,26 +1540,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowError was null, expected non-null ProxyApiTestClass.'); try { - final Object? output = (flutterThrowError ?? - arg_pigeonField_instance!.flutterThrowError) - ?.call(arg_pigeonField_instance!); + final Object? output = + (flutterThrowError ?? arg_pigeon_instance!.flutterThrowError) + ?.call(arg_pigeon_instance!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1573,26 +1573,27 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterThrowErrorFromVoid was null, expected non-null ProxyApiTestClass.'); try { (flutterThrowErrorFromVoid ?? - arg_pigeonField_instance!.flutterThrowErrorFromVoid) - ?.call(arg_pigeonField_instance!); + arg_pigeon_instance!.flutterThrowErrorFromVoid) + ?.call(arg_pigeon_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1605,29 +1606,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null ProxyApiTestClass.'); final bool? arg_aBool = (args[1] as bool?); assert(arg_aBool != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoBool was null, expected non-null bool.'); try { final bool? output = - (flutterEchoBool ?? arg_pigeonField_instance!.flutterEchoBool) - ?.call(arg_pigeonField_instance!, arg_aBool!); + (flutterEchoBool ?? arg_pigeon_instance!.flutterEchoBool) + ?.call(arg_pigeon_instance!, arg_aBool!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1640,29 +1642,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null ProxyApiTestClass.'); final int? arg_anInt = (args[1] as int?); assert(arg_anInt != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoInt was null, expected non-null int.'); try { final int? output = - (flutterEchoInt ?? arg_pigeonField_instance!.flutterEchoInt) - ?.call(arg_pigeonField_instance!, arg_anInt!); + (flutterEchoInt ?? arg_pigeon_instance!.flutterEchoInt) + ?.call(arg_pigeon_instance!, arg_anInt!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1675,29 +1678,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null ProxyApiTestClass.'); final double? arg_aDouble = (args[1] as double?); assert(arg_aDouble != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoDouble was null, expected non-null double.'); try { - final double? output = (flutterEchoDouble ?? - arg_pigeonField_instance!.flutterEchoDouble) - ?.call(arg_pigeonField_instance!, arg_aDouble!); + final double? output = + (flutterEchoDouble ?? arg_pigeon_instance!.flutterEchoDouble) + ?.call(arg_pigeon_instance!, arg_aDouble!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1710,29 +1714,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); assert(arg_aString != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoString was null, expected non-null String.'); try { - final String? output = (flutterEchoString ?? - arg_pigeonField_instance!.flutterEchoString) - ?.call(arg_pigeonField_instance!, arg_aString!); + final String? output = + (flutterEchoString ?? arg_pigeon_instance!.flutterEchoString) + ?.call(arg_pigeon_instance!, arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1745,29 +1750,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null ProxyApiTestClass.'); final Uint8List? arg_aList = (args[1] as Uint8List?); assert(arg_aList != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoUint8List was null, expected non-null Uint8List.'); try { final Uint8List? output = (flutterEchoUint8List ?? - arg_pigeonField_instance!.flutterEchoUint8List) - ?.call(arg_pigeonField_instance!, arg_aList!); + arg_pigeon_instance!.flutterEchoUint8List) + ?.call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1780,21 +1786,22 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null ProxyApiTestClass.'); final List? arg_aList = (args[1] as List?)?.cast(); @@ -1802,8 +1809,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoList was null, expected non-null List.'); try { final List? output = - (flutterEchoList ?? arg_pigeonField_instance!.flutterEchoList) - ?.call(arg_pigeonField_instance!, arg_aList!); + (flutterEchoList ?? arg_pigeon_instance!.flutterEchoList) + ?.call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1816,21 +1823,22 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null ProxyApiTestClass.'); final List? arg_aList = (args[1] as List?)?.cast(); @@ -1838,8 +1846,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiList was null, expected non-null List.'); try { final List? output = (flutterEchoProxyApiList ?? - arg_pigeonField_instance!.flutterEchoProxyApiList) - ?.call(arg_pigeonField_instance!, arg_aList!); + arg_pigeon_instance!.flutterEchoProxyApiList) + ?.call(arg_pigeon_instance!, arg_aList!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1852,21 +1860,22 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?)?.cast(); @@ -1874,8 +1883,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoMap was null, expected non-null Map.'); try { final Map? output = - (flutterEchoMap ?? arg_pigeonField_instance!.flutterEchoMap) - ?.call(arg_pigeonField_instance!, arg_aMap!); + (flutterEchoMap ?? arg_pigeon_instance!.flutterEchoMap) + ?.call(arg_pigeon_instance!, arg_aMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1888,21 +1897,22 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApiMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?) @@ -1912,8 +1922,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass try { final Map? output = (flutterEchoProxyApiMap ?? - arg_pigeonField_instance!.flutterEchoProxyApiMap) - ?.call(arg_pigeonField_instance!, arg_aMap!); + arg_pigeon_instance!.flutterEchoProxyApiMap) + ?.call(arg_pigeon_instance!, arg_aMap!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1926,29 +1936,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestClass.'); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); assert(arg_anEnum != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoEnum was null, expected non-null ProxyApiTestEnum.'); try { final ProxyApiTestEnum? output = - (flutterEchoEnum ?? arg_pigeonField_instance!.flutterEchoEnum) - ?.call(arg_pigeonField_instance!, arg_anEnum!); + (flutterEchoEnum ?? arg_pigeon_instance!.flutterEchoEnum) + ?.call(arg_pigeon_instance!, arg_anEnum!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1961,21 +1972,22 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiTestClass.'); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); @@ -1983,8 +1995,8 @@ class ProxyApiTestClass extends ProxyApiSuperClass 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoProxyApi was null, expected non-null ProxyApiSuperClass.'); try { final ProxyApiSuperClass? output = (flutterEchoProxyApi ?? - arg_pigeonField_instance!.flutterEchoProxyApi) - ?.call(arg_pigeonField_instance!, arg_aProxyApi!); + arg_pigeon_instance!.flutterEchoProxyApi) + ?.call(arg_pigeon_instance!, arg_aProxyApi!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -1997,27 +2009,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableBool was null, expected non-null ProxyApiTestClass.'); final bool? arg_aBool = (args[1] as bool?); try { final bool? output = (flutterEchoNullableBool ?? - arg_pigeonField_instance!.flutterEchoNullableBool) - ?.call(arg_pigeonField_instance!, arg_aBool); + arg_pigeon_instance!.flutterEchoNullableBool) + ?.call(arg_pigeon_instance!, arg_aBool); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2030,27 +2043,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableInt was null, expected non-null ProxyApiTestClass.'); final int? arg_anInt = (args[1] as int?); try { final int? output = (flutterEchoNullableInt ?? - arg_pigeonField_instance!.flutterEchoNullableInt) - ?.call(arg_pigeonField_instance!, arg_anInt); + arg_pigeon_instance!.flutterEchoNullableInt) + ?.call(arg_pigeon_instance!, arg_anInt); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2063,27 +2077,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableDouble was null, expected non-null ProxyApiTestClass.'); final double? arg_aDouble = (args[1] as double?); try { final double? output = (flutterEchoNullableDouble ?? - arg_pigeonField_instance!.flutterEchoNullableDouble) - ?.call(arg_pigeonField_instance!, arg_aDouble); + arg_pigeon_instance!.flutterEchoNullableDouble) + ?.call(arg_pigeon_instance!, arg_aDouble); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2096,27 +2111,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); try { final String? output = (flutterEchoNullableString ?? - arg_pigeonField_instance!.flutterEchoNullableString) - ?.call(arg_pigeonField_instance!, arg_aString); + arg_pigeon_instance!.flutterEchoNullableString) + ?.call(arg_pigeon_instance!, arg_aString); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2129,27 +2145,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableUint8List was null, expected non-null ProxyApiTestClass.'); final Uint8List? arg_aList = (args[1] as Uint8List?); try { final Uint8List? output = (flutterEchoNullableUint8List ?? - arg_pigeonField_instance!.flutterEchoNullableUint8List) - ?.call(arg_pigeonField_instance!, arg_aList); + arg_pigeon_instance!.flutterEchoNullableUint8List) + ?.call(arg_pigeon_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2162,28 +2179,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableList was null, expected non-null ProxyApiTestClass.'); final List? arg_aList = (args[1] as List?)?.cast(); try { final List? output = (flutterEchoNullableList ?? - arg_pigeonField_instance!.flutterEchoNullableList) - ?.call(arg_pigeonField_instance!, arg_aList); + arg_pigeon_instance!.flutterEchoNullableList) + ?.call(arg_pigeon_instance!, arg_aList); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2196,28 +2214,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableMap was null, expected non-null ProxyApiTestClass.'); final Map? arg_aMap = (args[1] as Map?)?.cast(); try { final Map? output = (flutterEchoNullableMap ?? - arg_pigeonField_instance!.flutterEchoNullableMap) - ?.call(arg_pigeonField_instance!, arg_aMap); + arg_pigeon_instance!.flutterEchoNullableMap) + ?.call(arg_pigeon_instance!, arg_aMap); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2230,27 +2249,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableEnum was null, expected non-null ProxyApiTestClass.'); final ProxyApiTestEnum? arg_anEnum = (args[1] as ProxyApiTestEnum?); try { final ProxyApiTestEnum? output = (flutterEchoNullableEnum ?? - arg_pigeonField_instance!.flutterEchoNullableEnum) - ?.call(arg_pigeonField_instance!, arg_anEnum); + arg_pigeon_instance!.flutterEchoNullableEnum) + ?.call(arg_pigeon_instance!, arg_anEnum); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2263,28 +2283,29 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoNullableProxyApi was null, expected non-null ProxyApiTestClass.'); final ProxyApiSuperClass? arg_aProxyApi = (args[1] as ProxyApiSuperClass?); try { final ProxyApiSuperClass? output = (flutterEchoNullableProxyApi ?? - arg_pigeonField_instance!.flutterEchoNullableProxyApi) - ?.call(arg_pigeonField_instance!, arg_aProxyApi); + arg_pigeon_instance!.flutterEchoNullableProxyApi) + ?.call(arg_pigeon_instance!, arg_aProxyApi); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2297,26 +2318,26 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterNoopAsync was null, expected non-null ProxyApiTestClass.'); try { - await (flutterNoopAsync ?? - arg_pigeonField_instance!.flutterNoopAsync) - ?.call(arg_pigeonField_instance!); + await (flutterNoopAsync ?? arg_pigeon_instance!.flutterNoopAsync) + ?.call(arg_pigeon_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2329,29 +2350,30 @@ class ProxyApiTestClass extends ProxyApiSuperClass } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null.'); final List args = (message as List?)!; - final ProxyApiTestClass? arg_pigeonField_instance = + final ProxyApiTestClass? arg_pigeon_instance = (args[0] as ProxyApiTestClass?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null ProxyApiTestClass.'); final String? arg_aString = (args[1] as String?); assert(arg_aString != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.flutterEchoAsyncString was null, expected non-null String.'); try { final String? output = await (flutterEchoAsyncString ?? - arg_pigeonField_instance!.flutterEchoAsyncString) - ?.call(arg_pigeonField_instance!, arg_aString!); + arg_pigeon_instance!.flutterEchoAsyncString) + ?.call(arg_pigeon_instance!, arg_aString!); return wrapResponse(result: output); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -2364,102 +2386,104 @@ class ProxyApiTestClass extends ProxyApiSuperClass } } - ProxyApiSuperClass pigeon_attachedField() { - final ProxyApiSuperClass pigeon_instance = - ProxyApiSuperClass.pigeonField_detached( + ProxyApiSuperClass pigeonVar_attachedField() { + final ProxyApiSuperClass pigeonVar_instance = + ProxyApiSuperClass.pigeon_detached( pigeon_binaryMessenger: pigeon_binaryMessenger, pigeon_instanceManager: pigeon_instanceManager, ); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - final int pigeon_instanceIdentifier = - pigeonField_instanceManager.addDartCreatedInstance(pigeon_instance); + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(pigeonVar_instance); () async { - const String pigeon_channelName = + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.attachedField'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel - .send([this, pigeon_instanceIdentifier]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, pigeonVar_instanceIdentifier]) + as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; } }(); - return pigeon_instance; + return pigeonVar_instance; } - static ProxyApiSuperClass pigeon_staticAttachedField() { - final ProxyApiSuperClass pigeon_instance = - ProxyApiSuperClass.pigeonField_detached(); + static ProxyApiSuperClass pigeonVar_staticAttachedField() { + final ProxyApiSuperClass pigeonVar_instance = + ProxyApiSuperClass.pigeon_detached(); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _PigeonInternalProxyApiBaseCodec( PigeonInternalInstanceManager.instance); - final BinaryMessenger pigeon_binaryMessenger = + final BinaryMessenger pigeonVar_binaryMessenger = ServicesBinding.instance.defaultBinaryMessenger; - final int pigeon_instanceIdentifier = PigeonInternalInstanceManager.instance - .addDartCreatedInstance(pigeon_instance); + final int pigeonVar_instanceIdentifier = PigeonInternalInstanceManager + .instance + .addDartCreatedInstance(pigeonVar_instance); () async { - const String pigeon_channelName = + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAttachedField'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel - .send([pigeon_instanceIdentifier]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([pigeonVar_instanceIdentifier]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; } }(); - return pigeon_instance; + return pigeonVar_instance; } /// A no-op function taking no arguments and returning no value, to sanity /// test basic calling. Future noop() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noop'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -2469,53 +2493,53 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns an error, to test error handling. Future throwError() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwError'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns an error from a void function, to test error handling. Future throwErrorFromVoid() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwErrorFromVoid'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -2525,259 +2549,259 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns a Flutter error, to test error handling. Future throwFlutterError() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwFlutterError'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns passed in int. Future echoInt(int anInt) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoInt'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } /// Returns passed in double. Future echoDouble(double aDouble) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoDouble'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } /// Returns the passed in boolean. Future echoBool(bool aBool) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoBool'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } /// Returns the passed in string. Future echoString(String aString) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } /// Returns the passed in Uint8List. Future echoUint8List(Uint8List aUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoUint8List'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Uint8List?)!; + return (pigeonVar_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object. Future echoObject(Object anObject) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoObject'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, anObject]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return pigeon_replyList[0]!; + return pigeonVar_replyList[0]!; } } /// Returns the passed list, to test serialization and deserialization. Future> echoList(List aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } @@ -2786,33 +2810,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future> echoProxyApiList( List aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)! + return (pigeonVar_replyList[0] as List?)! .cast(); } } @@ -2820,33 +2844,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed map, to test serialization and deserialization. Future> echoMap(Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } @@ -2856,33 +2880,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future> echoProxyApiMap( Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApiMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } @@ -2890,178 +2914,178 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed enum to test serialization and deserialization. Future echoEnum(ProxyApiTestEnum anEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoEnum'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as ProxyApiTestEnum?)!; + return (pigeonVar_replyList[0] as ProxyApiTestEnum?)!; } } /// Returns the passed ProxyApi to test serialization and deserialization. Future echoProxyApi(ProxyApiSuperClass aProxyApi) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoProxyApi'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aProxyApi]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aProxyApi]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as ProxyApiSuperClass?)!; + return (pigeonVar_replyList[0] as ProxyApiSuperClass?)!; } } /// Returns passed in int. Future echoNullableInt(int? aNullableInt) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableInt'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } /// Returns passed in double. Future echoNullableDouble(double? aNullableDouble) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableDouble'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as double?); + return (pigeonVar_replyList[0] as double?); } } /// Returns the passed in boolean. Future echoNullableBool(bool? aNullableBool) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableBool'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as bool?); + return (pigeonVar_replyList[0] as bool?); } } /// Returns the passed in string. Future echoNullableString(String? aNullableString) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } @@ -3069,84 +3093,84 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future echoNullableUint8List( Uint8List? aNullableUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableUint8List'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Uint8List?); + return (pigeonVar_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object. Future echoNullableObject(Object? aNullableObject) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableObject'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns the passed list, to test serialization and deserialization. Future?> echoNullableList(List? aNullableList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as List?)?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } @@ -3154,28 +3178,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future?> echoNullableMap( Map? aNullableMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Map?) + return (pigeonVar_replyList[0] as Map?) ?.cast(); } } @@ -3183,28 +3207,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future echoNullableEnum( ProxyApiTestEnum? aNullableEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableEnum'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as ProxyApiTestEnum?); + return (pigeonVar_replyList[0] as ProxyApiTestEnum?); } } @@ -3212,28 +3236,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future echoNullableProxyApi( ProxyApiSuperClass? aNullableProxyApi) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoNullableProxyApi'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aNullableProxyApi]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as ProxyApiSuperClass?); + return (pigeonVar_replyList[0] as ProxyApiSuperClass?); } } @@ -3241,25 +3265,25 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// test basic asynchronous calling. Future noopAsync() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.noopAsync'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -3269,264 +3293,264 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns passed in int asynchronously. Future echoAsyncInt(int anInt) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncInt'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } /// Returns passed in double asynchronously. Future echoAsyncDouble(double aDouble) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncDouble'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } /// Returns the passed in boolean asynchronously. Future echoAsyncBool(bool aBool) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncBool'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } /// Returns the passed string asynchronously. Future echoAsyncString(String aString) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncUint8List(Uint8List aUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncUint8List'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Uint8List?)!; + return (pigeonVar_replyList[0] as Uint8List?)!; } } /// Returns the passed in generic Object asynchronously. Future echoAsyncObject(Object anObject) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncObject'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, anObject]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return pigeon_replyList[0]!; + return pigeonVar_replyList[0]!; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future> echoAsyncList(List aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } /// Returns the passed map, to test asynchronous serialization and deserialization. Future> echoAsyncMap(Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } @@ -3534,86 +3558,86 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Returns the passed enum, to test asynchronous serialization and deserialization. Future echoAsyncEnum(ProxyApiTestEnum anEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncEnum'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as ProxyApiTestEnum?)!; + return (pigeonVar_replyList[0] as ProxyApiTestEnum?)!; } } /// Responds with an error from an async function returning a value. Future throwAsyncError() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncError'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Responds with an error from an async void function. Future throwAsyncErrorFromVoid() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncErrorFromVoid'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -3623,224 +3647,224 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// Responds with a Flutter error from an async function returning a value. Future throwAsyncFlutterError() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.throwAsyncFlutterError'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns passed in int asynchronously. Future echoAsyncNullableInt(int? anInt) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableInt'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } /// Returns passed in double asynchronously. Future echoAsyncNullableDouble(double? aDouble) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableDouble'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as double?); + return (pigeonVar_replyList[0] as double?); } } /// Returns the passed in boolean asynchronously. Future echoAsyncNullableBool(bool? aBool) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableBool'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as bool?); + return (pigeonVar_replyList[0] as bool?); } } /// Returns the passed string asynchronously. Future echoAsyncNullableString(String? aString) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } /// Returns the passed in Uint8List asynchronously. Future echoAsyncNullableUint8List(Uint8List? aUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableUint8List'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Uint8List?); + return (pigeonVar_replyList[0] as Uint8List?); } } /// Returns the passed in generic Object asynchronously. Future echoAsyncNullableObject(Object? anObject) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableObject'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anObject]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, anObject]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } /// Returns the passed list, to test asynchronous serialization and deserialization. Future?> echoAsyncNullableList(List? aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as List?)?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } @@ -3848,28 +3872,28 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future?> echoAsyncNullableMap( Map? aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Map?) + return (pigeonVar_replyList[0] as Map?) ?.cast(); } } @@ -3878,56 +3902,56 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future echoAsyncNullableEnum( ProxyApiTestEnum? anEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoAsyncNullableEnum'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as ProxyApiTestEnum?); + return (pigeonVar_replyList[0] as ProxyApiTestEnum?); } } static Future staticNoop({ - BinaryMessenger? pigeonField_binaryMessenger, - PigeonInternalInstanceManager? pigeonField_instanceManager, + BinaryMessenger? pigeon_binaryMessenger, + PigeonInternalInstanceManager? pigeon_instanceManager, }) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance); - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager ?? PigeonInternalInstanceManager.instance); + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticNoop'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -3936,66 +3960,66 @@ class ProxyApiTestClass extends ProxyApiSuperClass static Future echoStaticString( String aString, { - BinaryMessenger? pigeonField_binaryMessenger, - PigeonInternalInstanceManager? pigeonField_instanceManager, + BinaryMessenger? pigeon_binaryMessenger, + PigeonInternalInstanceManager? pigeon_instanceManager, }) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance); - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager ?? PigeonInternalInstanceManager.instance); + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.echoStaticString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } static Future staticAsyncNoop({ - BinaryMessenger? pigeonField_binaryMessenger, - PigeonInternalInstanceManager? pigeonField_instanceManager, + BinaryMessenger? pigeon_binaryMessenger, + PigeonInternalInstanceManager? pigeon_instanceManager, }) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance); - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager ?? PigeonInternalInstanceManager.instance); + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.staticAsyncNoop'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send(null) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send(null) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -4004,25 +4028,25 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future callFlutterNoop() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoop'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -4031,52 +4055,52 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future callFlutterThrowError() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowError'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return pigeon_replyList[0]; + return pigeonVar_replyList[0]; } } Future callFlutterThrowErrorFromVoid() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterThrowErrorFromVoid'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -4085,226 +4109,226 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future callFlutterEchoBool(bool aBool) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoBool'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as bool?)!; + return (pigeonVar_replyList[0] as bool?)!; } } Future callFlutterEchoInt(int anInt) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoInt'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as int?)!; + return (pigeonVar_replyList[0] as int?)!; } } Future callFlutterEchoDouble(double aDouble) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoDouble'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as double?)!; + return (pigeonVar_replyList[0] as double?)!; } } Future callFlutterEchoString(String aString) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } Future callFlutterEchoUint8List(Uint8List aUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoUint8List'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Uint8List?)!; + return (pigeonVar_replyList[0] as Uint8List?)!; } } Future> callFlutterEchoList(List aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } Future> callFlutterEchoProxyApiList( List aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as List?)! + return (pigeonVar_replyList[0] as List?)! .cast(); } } @@ -4312,33 +4336,33 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future> callFlutterEchoMap( Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } @@ -4346,291 +4370,291 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future> callFlutterEchoProxyApiMap( Map aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApiMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as Map?)! + return (pigeonVar_replyList[0] as Map?)! .cast(); } } Future callFlutterEchoEnum(ProxyApiTestEnum anEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoEnum'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as ProxyApiTestEnum?)!; + return (pigeonVar_replyList[0] as ProxyApiTestEnum?)!; } } Future callFlutterEchoProxyApi( ProxyApiSuperClass aProxyApi) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoProxyApi'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aProxyApi]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aProxyApi]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as ProxyApiSuperClass?)!; + return (pigeonVar_replyList[0] as ProxyApiSuperClass?)!; } } Future callFlutterEchoNullableBool(bool? aBool) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableBool'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aBool]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aBool]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as bool?); + return (pigeonVar_replyList[0] as bool?); } } Future callFlutterEchoNullableInt(int? anInt) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableInt'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anInt]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anInt]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as int?); + return (pigeonVar_replyList[0] as int?); } } Future callFlutterEchoNullableDouble(double? aDouble) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableDouble'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aDouble]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aDouble]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as double?); + return (pigeonVar_replyList[0] as double?); } } Future callFlutterEchoNullableString(String? aString) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as String?); + return (pigeonVar_replyList[0] as String?); } } Future callFlutterEchoNullableUint8List( Uint8List? aUint8List) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableUint8List'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel + final List? pigeonVar_replyList = await pigeonVar_channel .send([this, aUint8List]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Uint8List?); + return (pigeonVar_replyList[0] as Uint8List?); } } Future?> callFlutterEchoNullableList( List? aList) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableList'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aList]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aList]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as List?)?.cast(); + return (pigeonVar_replyList[0] as List?)?.cast(); } } Future?> callFlutterEchoNullableMap( Map? aMap) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableMap'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aMap]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, aMap]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as Map?) + return (pigeonVar_replyList[0] as Map?) ?.cast(); } } @@ -4638,80 +4662,80 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future callFlutterEchoNullableEnum( ProxyApiTestEnum? anEnum) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableEnum'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, anEnum]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this, anEnum]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as ProxyApiTestEnum?); + return (pigeonVar_replyList[0] as ProxyApiTestEnum?); } } Future callFlutterEchoNullableProxyApi( ProxyApiSuperClass? aProxyApi) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoNullableProxyApi'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aProxyApi]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aProxyApi]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { - return (pigeon_replyList[0] as ProxyApiSuperClass?); + return (pigeonVar_replyList[0] as ProxyApiSuperClass?); } } Future callFlutterNoopAsync() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterNoopAsync'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -4720,41 +4744,41 @@ class ProxyApiTestClass extends ProxyApiSuperClass Future callFlutterEchoAsyncString(String aString) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiTestClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiTestClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiTestClass.callFlutterEchoAsyncString'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this, aString]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([this, aString]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); - } else if (pigeon_replyList[0] == null) { + } else if (pigeonVar_replyList[0] == null) { throw PlatformException( code: 'null-error', message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeon_replyList[0] as String?)!; + return (pigeonVar_replyList[0] as String?)!; } } @override - ProxyApiTestClass pigeonField_copy() { - return ProxyApiTestClass.pigeonField_detached( - pigeonField_binaryMessenger: pigeonField_binaryMessenger, - pigeonField_instanceManager: pigeonField_instanceManager, + ProxyApiTestClass pigeon_copy() { + return ProxyApiTestClass.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, aBool: aBool, anInt: anInt, aDouble: aDouble, @@ -4806,32 +4830,32 @@ class ProxyApiTestClass extends ProxyApiSuperClass /// ProxyApi to serve as a super class to the core ProxyApi class. class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { ProxyApiSuperClass({ - super.pigeonField_binaryMessenger, - super.pigeonField_instanceManager, + super.pigeon_binaryMessenger, + super.pigeon_instanceManager, }) { - final int pigeon_instanceIdentifier = - pigeonField_instanceManager.addDartCreatedInstance(this); + final int pigeonVar_instanceIdentifier = + pigeon_instanceManager.addDartCreatedInstance(this); final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiSuperClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; + _pigeonVar_codecProxyApiSuperClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; () async { - const String pigeon_channelName = - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_defaultConstructor'; - final BasicMessageChannel pigeon_channel = + const String pigeonVar_channelName = + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_defaultConstructor'; + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = await pigeon_channel - .send([pigeon_instanceIdentifier]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = await pigeonVar_channel + .send([pigeonVar_instanceIdentifier]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -4844,50 +4868,51 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { /// This should only be used by subclasses created by this library or to /// create copies for an [PigeonInternalInstanceManager]. @protected - ProxyApiSuperClass.pigeonField_detached({ - super.pigeonField_binaryMessenger, - super.pigeonField_instanceManager, + ProxyApiSuperClass.pigeon_detached({ + super.pigeon_binaryMessenger, + super.pigeon_instanceManager, }); - late final _PigeonInternalProxyApiBaseCodec pigeon_codecProxyApiSuperClass = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager); + late final _PigeonInternalProxyApiBaseCodec + _pigeonVar_codecProxyApiSuperClass = + _PigeonInternalProxyApiBaseCodec(pigeon_instanceManager); - static void pigeonField_setUpMessageHandlers({ - bool pigeonField_clearHandlers = false, - BinaryMessenger? pigeonField_binaryMessenger, - PigeonInternalInstanceManager? pigeonField_instanceManager, - ProxyApiSuperClass Function()? pigeonField_newInstance, + static void pigeon_setUpMessageHandlers({ + bool pigeon_clearHandlers = false, + BinaryMessenger? pigeon_binaryMessenger, + PigeonInternalInstanceManager? pigeon_instanceManager, + ProxyApiSuperClass Function()? pigeon_newInstance, }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance); - final BinaryMessenger? binaryMessenger = pigeonField_binaryMessenger; + _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager ?? PigeonInternalInstanceManager.instance); + final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_newInstance', + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_newInstance was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null.'); final List args = (message as List?)!; - final int? arg_pigeonField_instanceIdentifier = (args[0] as int?); - assert(arg_pigeonField_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeonField_newInstance was null, expected non-null int.'); + final int? arg_pigeon_instanceIdentifier = (args[0] as int?); + assert(arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.pigeon_newInstance was null, expected non-null int.'); try { - (pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance) + (pigeon_instanceManager ?? PigeonInternalInstanceManager.instance) .addHostCreatedInstance( - pigeonField_newInstance?.call() ?? - ProxyApiSuperClass.pigeonField_detached( - pigeonField_binaryMessenger: pigeonField_binaryMessenger, - pigeonField_instanceManager: pigeonField_instanceManager, + pigeon_newInstance?.call() ?? + ProxyApiSuperClass.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, ), - arg_pigeonField_instanceIdentifier!, + arg_pigeon_instanceIdentifier!, ); return wrapResponse(empty: true); } on PlatformException catch (e) { @@ -4903,25 +4928,25 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { Future aSuperMethod() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - pigeon_codecProxyApiSuperClass; - final BinaryMessenger? pigeon_binaryMessenger = pigeonField_binaryMessenger; - const String pigeon_channelName = + _pigeonVar_codecProxyApiSuperClass; + final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; + const String pigeonVar_channelName = 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiSuperClass.aSuperMethod'; - final BasicMessageChannel pigeon_channel = + final BasicMessageChannel pigeonVar_channel = BasicMessageChannel( - pigeon_channelName, + pigeonVar_channelName, pigeonChannelCodec, - binaryMessenger: pigeon_binaryMessenger, + binaryMessenger: pigeonVar_binaryMessenger, ); - final List? pigeon_replyList = - await pigeon_channel.send([this]) as List?; - if (pigeon_replyList == null) { - throw _createConnectionError(pigeon_channelName); - } else if (pigeon_replyList.length > 1) { + final List? pigeonVar_replyList = + await pigeonVar_channel.send([this]) as List?; + if (pigeonVar_replyList == null) { + throw _createConnectionError(pigeonVar_channelName); + } else if (pigeonVar_replyList.length > 1) { throw PlatformException( - code: pigeon_replyList[0]! as String, - message: pigeon_replyList[1] as String?, - details: pigeon_replyList[2], + code: pigeonVar_replyList[0]! as String, + message: pigeonVar_replyList[1] as String?, + details: pigeonVar_replyList[2], ); } else { return; @@ -4929,10 +4954,10 @@ class ProxyApiSuperClass extends PigeonInternalProxyApiBaseClass { } @override - ProxyApiSuperClass pigeonField_copy() { - return ProxyApiSuperClass.pigeonField_detached( - pigeonField_binaryMessenger: pigeonField_binaryMessenger, - pigeonField_instanceManager: pigeonField_instanceManager, + ProxyApiSuperClass pigeon_copy() { + return ProxyApiSuperClass.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, ); } } @@ -4944,9 +4969,9 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { /// This should only be used by subclasses created by this library or to /// create copies for an [PigeonInternalInstanceManager]. @protected - ProxyApiInterface.pigeonField_detached({ - super.pigeonField_binaryMessenger, - super.pigeonField_instanceManager, + ProxyApiInterface.pigeon_detached({ + super.pigeon_binaryMessenger, + super.pigeon_instanceManager, this.anInterfaceMethod, }); @@ -4961,7 +4986,7 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { /// ```dart /// final WeakReference weakMyVariable = WeakReference(myVariable); /// final ProxyApiInterface instance = ProxyApiInterface( - /// anInterfaceMethod: (ProxyApiInterface pigeonField_instance, ...) { + /// anInterfaceMethod: (ProxyApiInterface pigeon_instance, ...) { /// print(weakMyVariable?.target); /// }, /// ); @@ -4969,46 +4994,45 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { /// /// Alternatively, [PigeonInternalInstanceManager.removeWeakReference] can be used to /// release the associated Native object manually. - final void Function(ProxyApiInterface pigeonField_instance)? - anInterfaceMethod; - - static void pigeonField_setUpMessageHandlers({ - bool pigeonField_clearHandlers = false, - BinaryMessenger? pigeonField_binaryMessenger, - PigeonInternalInstanceManager? pigeonField_instanceManager, - ProxyApiInterface Function()? pigeonField_newInstance, - void Function(ProxyApiInterface pigeonField_instance)? anInterfaceMethod, + final void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod; + + static void pigeon_setUpMessageHandlers({ + bool pigeon_clearHandlers = false, + BinaryMessenger? pigeon_binaryMessenger, + PigeonInternalInstanceManager? pigeon_instanceManager, + ProxyApiInterface Function()? pigeon_newInstance, + void Function(ProxyApiInterface pigeon_instance)? anInterfaceMethod, }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = - _PigeonInternalProxyApiBaseCodec(pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance); - final BinaryMessenger? binaryMessenger = pigeonField_binaryMessenger; + _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager ?? PigeonInternalInstanceManager.instance); + final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( - 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeonField_newInstance', + 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeonField_newInstance was null.'); + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null.'); final List args = (message as List?)!; - final int? arg_pigeonField_instanceIdentifier = (args[0] as int?); - assert(arg_pigeonField_instanceIdentifier != null, - 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeonField_newInstance was null, expected non-null int.'); + final int? arg_pigeon_instanceIdentifier = (args[0] as int?); + assert(arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.pigeon_newInstance was null, expected non-null int.'); try { - (pigeonField_instanceManager ?? - PigeonInternalInstanceManager.instance) + (pigeon_instanceManager ?? PigeonInternalInstanceManager.instance) .addHostCreatedInstance( - pigeonField_newInstance?.call() ?? - ProxyApiInterface.pigeonField_detached( - pigeonField_binaryMessenger: pigeonField_binaryMessenger, - pigeonField_instanceManager: pigeonField_instanceManager, + pigeon_newInstance?.call() ?? + ProxyApiInterface.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, ), - arg_pigeonField_instanceIdentifier!, + arg_pigeon_instanceIdentifier!, ); return wrapResponse(empty: true); } on PlatformException catch (e) { @@ -5022,25 +5046,26 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod', pigeonChannelCodec, binaryMessenger: binaryMessenger); - if (pigeonField_clearHandlers) { - pigeon_channel.setMessageHandler(null); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); } else { - pigeon_channel.setMessageHandler((Object? message) async { + pigeonVar_channel.setMessageHandler((Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null.'); final List args = (message as List?)!; - final ProxyApiInterface? arg_pigeonField_instance = + final ProxyApiInterface? arg_pigeon_instance = (args[0] as ProxyApiInterface?); - assert(arg_pigeonField_instance != null, + assert(arg_pigeon_instance != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.ProxyApiInterface.anInterfaceMethod was null, expected non-null ProxyApiInterface.'); try { - (anInterfaceMethod ?? arg_pigeonField_instance!.anInterfaceMethod) - ?.call(arg_pigeonField_instance!); + (anInterfaceMethod ?? arg_pigeon_instance!.anInterfaceMethod) + ?.call(arg_pigeon_instance!); return wrapResponse(empty: true); } on PlatformException catch (e) { return wrapResponse(error: e); @@ -5054,10 +5079,10 @@ class ProxyApiInterface extends PigeonInternalProxyApiBaseClass { } @override - ProxyApiInterface pigeonField_copy() { - return ProxyApiInterface.pigeonField_detached( - pigeonField_binaryMessenger: pigeonField_binaryMessenger, - pigeonField_instanceManager: pigeonField_instanceManager, + ProxyApiInterface pigeon_copy() { + return ProxyApiInterface.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, anInterfaceMethod: anInterfaceMethod, ); } diff --git a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart index 203330c645f..a67e2644e7f 100644 --- a/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart +++ b/packages/pigeon/platform_tests/shared_test_plugin_code/test/test_message.gen.dart @@ -77,17 +77,18 @@ abstract class TestHostApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.initialize$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeon_channel, null); + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeon_channel, + .setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { try { api.initialize(); @@ -102,17 +103,18 @@ abstract class TestHostApi { } } { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeon_channel, null); + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeon_channel, + .setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageApi.search was null.'); @@ -155,17 +157,18 @@ abstract class TestNestedApi { messageChannelSuffix = messageChannelSuffix.isNotEmpty ? '.$messageChannelSuffix' : ''; { - final BasicMessageChannel pigeon_channel = BasicMessageChannel< + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< Object?>( 'dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search$messageChannelSuffix', pigeonChannelCodec, binaryMessenger: binaryMessenger); if (api == null) { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeon_channel, null); + .setMockDecodedMessageHandler(pigeonVar_channel, null); } else { _testBinaryMessengerBinding!.defaultBinaryMessenger - .setMockDecodedMessageHandler(pigeon_channel, + .setMockDecodedMessageHandler(pigeonVar_channel, (Object? message) async { assert(message != null, 'Argument for dev.flutter.pigeon.pigeon_integration_tests.MessageNestedApi.search was null.'); diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index 11bd0f0c97d..c6768ac4400 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -87,25 +87,25 @@ data class AllTypes( ) { companion object { @Suppress("LocalVariableName") - fun fromList(pigeon_list: List): AllTypes { - val aBool = pigeon_list[0] as Boolean - val anInt = pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long } - val anInt64 = pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long } - val aDouble = pigeon_list[3] as Double - val aByteArray = pigeon_list[4] as ByteArray - val a4ByteArray = pigeon_list[5] as IntArray - val a8ByteArray = pigeon_list[6] as LongArray - val aFloatArray = pigeon_list[7] as DoubleArray - val anEnum = pigeon_list[8] as AnEnum - val anotherEnum = pigeon_list[9] as AnotherEnum - val aString = pigeon_list[10] as String - val anObject = pigeon_list[11] as Any - val list = pigeon_list[12] as List - val stringList = pigeon_list[13] as List - val intList = pigeon_list[14] as List - val doubleList = pigeon_list[15] as List - val boolList = pigeon_list[16] as List - val map = pigeon_list[17] as Map + fun fromList(pigeonVar_list: List): AllTypes { + val aBool = pigeonVar_list[0] as Boolean + val anInt = pigeonVar_list[1].let { num -> if (num is Int) num.toLong() else num as Long } + val anInt64 = pigeonVar_list[2].let { num -> if (num is Int) num.toLong() else num as Long } + val aDouble = pigeonVar_list[3] as Double + val aByteArray = pigeonVar_list[4] as ByteArray + val a4ByteArray = pigeonVar_list[5] as IntArray + val a8ByteArray = pigeonVar_list[6] as LongArray + val aFloatArray = pigeonVar_list[7] as DoubleArray + val anEnum = pigeonVar_list[8] as AnEnum + val anotherEnum = pigeonVar_list[9] as AnotherEnum + val aString = pigeonVar_list[10] as String + val anObject = pigeonVar_list[11] as Any + val list = pigeonVar_list[12] as List + val stringList = pigeonVar_list[13] as List + val intList = pigeonVar_list[14] as List + val doubleList = pigeonVar_list[15] as List + val boolList = pigeonVar_list[16] as List + val map = pigeonVar_list[17] as Map return AllTypes( aBool, anInt, @@ -184,32 +184,32 @@ data class AllNullableTypes( ) { companion object { @Suppress("LocalVariableName") - fun fromList(pigeon_list: List): AllNullableTypes { - val aNullableBool = pigeon_list[0] as Boolean? + fun fromList(pigeonVar_list: List): AllNullableTypes { + val aNullableBool = pigeonVar_list[0] as Boolean? val aNullableInt = - pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + pigeonVar_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } val aNullableInt64 = - pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = pigeon_list[3] as Double? - val aNullableByteArray = pigeon_list[4] as ByteArray? - val aNullable4ByteArray = pigeon_list[5] as IntArray? - val aNullable8ByteArray = pigeon_list[6] as LongArray? - val aNullableFloatArray = pigeon_list[7] as DoubleArray? - val nullableNestedList = pigeon_list[8] as List?>? - val nullableMapWithAnnotations = pigeon_list[9] as Map? - val nullableMapWithObject = pigeon_list[10] as Map? - val aNullableEnum = pigeon_list[11] as AnEnum? - val anotherNullableEnum = pigeon_list[12] as AnotherEnum? - val aNullableString = pigeon_list[13] as String? - val aNullableObject = pigeon_list[14] - val allNullableTypes = pigeon_list[15] as AllNullableTypes? - val list = pigeon_list[16] as List? - val stringList = pigeon_list[17] as List? - val intList = pigeon_list[18] as List? - val doubleList = pigeon_list[19] as List? - val boolList = pigeon_list[20] as List? - val nestedClassList = pigeon_list[21] as List? - val map = pigeon_list[22] as Map? + pigeonVar_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = pigeonVar_list[3] as Double? + val aNullableByteArray = pigeonVar_list[4] as ByteArray? + val aNullable4ByteArray = pigeonVar_list[5] as IntArray? + val aNullable8ByteArray = pigeonVar_list[6] as LongArray? + val aNullableFloatArray = pigeonVar_list[7] as DoubleArray? + val nullableNestedList = pigeonVar_list[8] as List?>? + val nullableMapWithAnnotations = pigeonVar_list[9] as Map? + val nullableMapWithObject = pigeonVar_list[10] as Map? + val aNullableEnum = pigeonVar_list[11] as AnEnum? + val anotherNullableEnum = pigeonVar_list[12] as AnotherEnum? + val aNullableString = pigeonVar_list[13] as String? + val aNullableObject = pigeonVar_list[14] + val allNullableTypes = pigeonVar_list[15] as AllNullableTypes? + val list = pigeonVar_list[16] as List? + val stringList = pigeonVar_list[17] as List? + val intList = pigeonVar_list[18] as List? + val doubleList = pigeonVar_list[19] as List? + val boolList = pigeonVar_list[20] as List? + val nestedClassList = pigeonVar_list[21] as List? + val map = pigeonVar_list[22] as Map? return AllNullableTypes( aNullableBool, aNullableInt, @@ -297,30 +297,30 @@ data class AllNullableTypesWithoutRecursion( ) { companion object { @Suppress("LocalVariableName") - fun fromList(pigeon_list: List): AllNullableTypesWithoutRecursion { - val aNullableBool = pigeon_list[0] as Boolean? + fun fromList(pigeonVar_list: List): AllNullableTypesWithoutRecursion { + val aNullableBool = pigeonVar_list[0] as Boolean? val aNullableInt = - pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } + pigeonVar_list[1].let { num -> if (num is Int) num.toLong() else num as Long? } val aNullableInt64 = - pigeon_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } - val aNullableDouble = pigeon_list[3] as Double? - val aNullableByteArray = pigeon_list[4] as ByteArray? - val aNullable4ByteArray = pigeon_list[5] as IntArray? - val aNullable8ByteArray = pigeon_list[6] as LongArray? - val aNullableFloatArray = pigeon_list[7] as DoubleArray? - val nullableNestedList = pigeon_list[8] as List?>? - val nullableMapWithAnnotations = pigeon_list[9] as Map? - val nullableMapWithObject = pigeon_list[10] as Map? - val aNullableEnum = pigeon_list[11] as AnEnum? - val anotherNullableEnum = pigeon_list[12] as AnotherEnum? - val aNullableString = pigeon_list[13] as String? - val aNullableObject = pigeon_list[14] - val list = pigeon_list[15] as List? - val stringList = pigeon_list[16] as List? - val intList = pigeon_list[17] as List? - val doubleList = pigeon_list[18] as List? - val boolList = pigeon_list[19] as List? - val map = pigeon_list[20] as Map? + pigeonVar_list[2].let { num -> if (num is Int) num.toLong() else num as Long? } + val aNullableDouble = pigeonVar_list[3] as Double? + val aNullableByteArray = pigeonVar_list[4] as ByteArray? + val aNullable4ByteArray = pigeonVar_list[5] as IntArray? + val aNullable8ByteArray = pigeonVar_list[6] as LongArray? + val aNullableFloatArray = pigeonVar_list[7] as DoubleArray? + val nullableNestedList = pigeonVar_list[8] as List?>? + val nullableMapWithAnnotations = pigeonVar_list[9] as Map? + val nullableMapWithObject = pigeonVar_list[10] as Map? + val aNullableEnum = pigeonVar_list[11] as AnEnum? + val anotherNullableEnum = pigeonVar_list[12] as AnotherEnum? + val aNullableString = pigeonVar_list[13] as String? + val aNullableObject = pigeonVar_list[14] + val list = pigeonVar_list[15] as List? + val stringList = pigeonVar_list[16] as List? + val intList = pigeonVar_list[17] as List? + val doubleList = pigeonVar_list[18] as List? + val boolList = pigeonVar_list[19] as List? + val map = pigeonVar_list[20] as Map? return AllNullableTypesWithoutRecursion( aNullableBool, aNullableInt, @@ -389,10 +389,10 @@ data class AllClassesWrapper( ) { companion object { @Suppress("LocalVariableName") - fun fromList(pigeon_list: List): AllClassesWrapper { - val allNullableTypes = pigeon_list[0] as AllNullableTypes - val allNullableTypesWithoutRecursion = pigeon_list[1] as AllNullableTypesWithoutRecursion? - val allTypes = pigeon_list[2] as AllTypes? + fun fromList(pigeonVar_list: List): AllClassesWrapper { + val allNullableTypes = pigeonVar_list[0] as AllNullableTypes + val allNullableTypesWithoutRecursion = pigeonVar_list[1] as AllNullableTypesWithoutRecursion? + val allTypes = pigeonVar_list[2] as AllTypes? return AllClassesWrapper(allNullableTypes, allNullableTypesWithoutRecursion, allTypes) } } @@ -414,8 +414,8 @@ data class AllClassesWrapper( data class TestMessage(val testList: List? = null) { companion object { @Suppress("LocalVariableName") - fun fromList(pigeon_list: List): TestMessage { - val testList = pigeon_list[0] as List? + fun fromList(pigeonVar_list: List): TestMessage { + val testList = pigeonVar_list[0] as List? return TestMessage(testList) } } diff --git a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift index 17d9217cb2c..00fd797edce 100644 --- a/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/ios/Classes/CoreTests.gen.swift @@ -110,26 +110,27 @@ struct AllTypes { var map: [AnyHashable: Any?] // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllTypes? { - let aBool = pigeon_list[0] as! Bool - let anInt = pigeon_list[1] is Int64 ? pigeon_list[1] as! Int64 : Int64(pigeon_list[1] as! Int32) + static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { + let aBool = pigeonVar_list[0] as! Bool + let anInt = + pigeonVar_list[1] is Int64 ? pigeonVar_list[1] as! Int64 : Int64(pigeonVar_list[1] as! Int32) let anInt64 = - pigeon_list[2] is Int64 ? pigeon_list[2] as! Int64 : Int64(pigeon_list[2] as! Int32) - let aDouble = pigeon_list[3] as! Double - let aByteArray = pigeon_list[4] as! FlutterStandardTypedData - let a4ByteArray = pigeon_list[5] as! FlutterStandardTypedData - let a8ByteArray = pigeon_list[6] as! FlutterStandardTypedData - let aFloatArray = pigeon_list[7] as! FlutterStandardTypedData - let anEnum = pigeon_list[8] as! AnEnum - let anotherEnum = pigeon_list[9] as! AnotherEnum - let aString = pigeon_list[10] as! String - let anObject = pigeon_list[11]! - let list = pigeon_list[12] as! [Any?] - let stringList = pigeon_list[13] as! [String?] - let intList = pigeon_list[14] as! [Int64?] - let doubleList = pigeon_list[15] as! [Double?] - let boolList = pigeon_list[16] as! [Bool?] - let map = pigeon_list[17] as! [AnyHashable: Any?] + pigeonVar_list[2] is Int64 ? pigeonVar_list[2] as! Int64 : Int64(pigeonVar_list[2] as! Int32) + let aDouble = pigeonVar_list[3] as! Double + let aByteArray = pigeonVar_list[4] as! FlutterStandardTypedData + let a4ByteArray = pigeonVar_list[5] as! FlutterStandardTypedData + let a8ByteArray = pigeonVar_list[6] as! FlutterStandardTypedData + let aFloatArray = pigeonVar_list[7] as! FlutterStandardTypedData + let anEnum = pigeonVar_list[8] as! AnEnum + let anotherEnum = pigeonVar_list[9] as! AnotherEnum + let aString = pigeonVar_list[10] as! String + let anObject = pigeonVar_list[11]! + let list = pigeonVar_list[12] as! [Any?] + let stringList = pigeonVar_list[13] as! [String?] + let intList = pigeonVar_list[14] as! [Int64?] + let doubleList = pigeonVar_list[15] as! [Double?] + let boolList = pigeonVar_list[16] as! [Bool?] + let map = pigeonVar_list[17] as! [AnyHashable: Any?] return AllTypes( aBool: aBool, @@ -254,36 +255,38 @@ class AllNullableTypes { var map: [AnyHashable: Any?]? // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypes? { - let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) + static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { + let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) let aNullableInt: Int64? = - isNullish(pigeon_list[1]) + isNullish(pigeonVar_list[1]) ? nil - : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) + : (pigeonVar_list[1] is Int64? + ? pigeonVar_list[1] as! Int64? : Int64(pigeonVar_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(pigeon_list[2]) + isNullish(pigeonVar_list[2]) ? nil - : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) - let aNullableString: String? = nilOrValue(pigeon_list[13]) - let aNullableObject: Any? = pigeon_list[14] - let allNullableTypes: AllNullableTypes? = nilOrValue(pigeon_list[15]) - let list: [Any?]? = nilOrValue(pigeon_list[16]) - let stringList: [String?]? = nilOrValue(pigeon_list[17]) - let intList: [Int64?]? = nilOrValue(pigeon_list[18]) - let doubleList: [Double?]? = nilOrValue(pigeon_list[19]) - let boolList: [Bool?]? = nilOrValue(pigeon_list[20]) - let nestedClassList: [AllNullableTypes?]? = nilOrValue(pigeon_list[21]) - let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[22]) + : (pigeonVar_list[2] is Int64? + ? pigeonVar_list[2] as! Int64? : Int64(pigeonVar_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeonVar_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeonVar_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeonVar_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[12]) + let aNullableString: String? = nilOrValue(pigeonVar_list[13]) + let aNullableObject: Any? = pigeonVar_list[14] + let allNullableTypes: AllNullableTypes? = nilOrValue(pigeonVar_list[15]) + let list: [Any?]? = nilOrValue(pigeonVar_list[16]) + let stringList: [String?]? = nilOrValue(pigeonVar_list[17]) + let intList: [Int64?]? = nilOrValue(pigeonVar_list[18]) + let doubleList: [Double?]? = nilOrValue(pigeonVar_list[19]) + let boolList: [Bool?]? = nilOrValue(pigeonVar_list[20]) + let nestedClassList: [AllNullableTypes?]? = nilOrValue(pigeonVar_list[21]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeonVar_list[22]) return AllNullableTypes( aNullableBool: aNullableBool, @@ -369,34 +372,36 @@ struct AllNullableTypesWithoutRecursion { var map: [AnyHashable: Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypesWithoutRecursion? { - let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) + static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { + let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) let aNullableInt: Int64? = - isNullish(pigeon_list[1]) + isNullish(pigeonVar_list[1]) ? nil - : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) + : (pigeonVar_list[1] is Int64? + ? pigeonVar_list[1] as! Int64? : Int64(pigeonVar_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(pigeon_list[2]) + isNullish(pigeonVar_list[2]) ? nil - : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) - let aNullableString: String? = nilOrValue(pigeon_list[13]) - let aNullableObject: Any? = pigeon_list[14] - let list: [Any?]? = nilOrValue(pigeon_list[15]) - let stringList: [String?]? = nilOrValue(pigeon_list[16]) - let intList: [Int64?]? = nilOrValue(pigeon_list[17]) - let doubleList: [Double?]? = nilOrValue(pigeon_list[18]) - let boolList: [Bool?]? = nilOrValue(pigeon_list[19]) - let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[20]) + : (pigeonVar_list[2] is Int64? + ? pigeonVar_list[2] as! Int64? : Int64(pigeonVar_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeonVar_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeonVar_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeonVar_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[12]) + let aNullableString: String? = nilOrValue(pigeonVar_list[13]) + let aNullableObject: Any? = pigeonVar_list[14] + let list: [Any?]? = nilOrValue(pigeonVar_list[15]) + let stringList: [String?]? = nilOrValue(pigeonVar_list[16]) + let intList: [Int64?]? = nilOrValue(pigeonVar_list[17]) + let doubleList: [Double?]? = nilOrValue(pigeonVar_list[18]) + let boolList: [Bool?]? = nilOrValue(pigeonVar_list[19]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeonVar_list[20]) return AllNullableTypesWithoutRecursion( aNullableBool: aNullableBool, @@ -462,11 +467,11 @@ struct AllClassesWrapper { var allTypes: AllTypes? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllClassesWrapper? { - let allNullableTypes = pigeon_list[0] as! AllNullableTypes + static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { + let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - pigeon_list[1]) - let allTypes: AllTypes? = nilOrValue(pigeon_list[2]) + pigeonVar_list[1]) + let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -490,8 +495,8 @@ struct TestMessage { var testList: [Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> TestMessage? { - let testList: [Any?]? = nilOrValue(pigeon_list[0]) + static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { + let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) return TestMessage( testList: testList diff --git a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift index 17d9217cb2c..00fd797edce 100644 --- a/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift +++ b/packages/pigeon/platform_tests/test_plugin/macos/Classes/CoreTests.gen.swift @@ -110,26 +110,27 @@ struct AllTypes { var map: [AnyHashable: Any?] // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllTypes? { - let aBool = pigeon_list[0] as! Bool - let anInt = pigeon_list[1] is Int64 ? pigeon_list[1] as! Int64 : Int64(pigeon_list[1] as! Int32) + static func fromList(_ pigeonVar_list: [Any?]) -> AllTypes? { + let aBool = pigeonVar_list[0] as! Bool + let anInt = + pigeonVar_list[1] is Int64 ? pigeonVar_list[1] as! Int64 : Int64(pigeonVar_list[1] as! Int32) let anInt64 = - pigeon_list[2] is Int64 ? pigeon_list[2] as! Int64 : Int64(pigeon_list[2] as! Int32) - let aDouble = pigeon_list[3] as! Double - let aByteArray = pigeon_list[4] as! FlutterStandardTypedData - let a4ByteArray = pigeon_list[5] as! FlutterStandardTypedData - let a8ByteArray = pigeon_list[6] as! FlutterStandardTypedData - let aFloatArray = pigeon_list[7] as! FlutterStandardTypedData - let anEnum = pigeon_list[8] as! AnEnum - let anotherEnum = pigeon_list[9] as! AnotherEnum - let aString = pigeon_list[10] as! String - let anObject = pigeon_list[11]! - let list = pigeon_list[12] as! [Any?] - let stringList = pigeon_list[13] as! [String?] - let intList = pigeon_list[14] as! [Int64?] - let doubleList = pigeon_list[15] as! [Double?] - let boolList = pigeon_list[16] as! [Bool?] - let map = pigeon_list[17] as! [AnyHashable: Any?] + pigeonVar_list[2] is Int64 ? pigeonVar_list[2] as! Int64 : Int64(pigeonVar_list[2] as! Int32) + let aDouble = pigeonVar_list[3] as! Double + let aByteArray = pigeonVar_list[4] as! FlutterStandardTypedData + let a4ByteArray = pigeonVar_list[5] as! FlutterStandardTypedData + let a8ByteArray = pigeonVar_list[6] as! FlutterStandardTypedData + let aFloatArray = pigeonVar_list[7] as! FlutterStandardTypedData + let anEnum = pigeonVar_list[8] as! AnEnum + let anotherEnum = pigeonVar_list[9] as! AnotherEnum + let aString = pigeonVar_list[10] as! String + let anObject = pigeonVar_list[11]! + let list = pigeonVar_list[12] as! [Any?] + let stringList = pigeonVar_list[13] as! [String?] + let intList = pigeonVar_list[14] as! [Int64?] + let doubleList = pigeonVar_list[15] as! [Double?] + let boolList = pigeonVar_list[16] as! [Bool?] + let map = pigeonVar_list[17] as! [AnyHashable: Any?] return AllTypes( aBool: aBool, @@ -254,36 +255,38 @@ class AllNullableTypes { var map: [AnyHashable: Any?]? // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypes? { - let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) + static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypes? { + let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) let aNullableInt: Int64? = - isNullish(pigeon_list[1]) + isNullish(pigeonVar_list[1]) ? nil - : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) + : (pigeonVar_list[1] is Int64? + ? pigeonVar_list[1] as! Int64? : Int64(pigeonVar_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(pigeon_list[2]) + isNullish(pigeonVar_list[2]) ? nil - : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) - let aNullableString: String? = nilOrValue(pigeon_list[13]) - let aNullableObject: Any? = pigeon_list[14] - let allNullableTypes: AllNullableTypes? = nilOrValue(pigeon_list[15]) - let list: [Any?]? = nilOrValue(pigeon_list[16]) - let stringList: [String?]? = nilOrValue(pigeon_list[17]) - let intList: [Int64?]? = nilOrValue(pigeon_list[18]) - let doubleList: [Double?]? = nilOrValue(pigeon_list[19]) - let boolList: [Bool?]? = nilOrValue(pigeon_list[20]) - let nestedClassList: [AllNullableTypes?]? = nilOrValue(pigeon_list[21]) - let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[22]) + : (pigeonVar_list[2] is Int64? + ? pigeonVar_list[2] as! Int64? : Int64(pigeonVar_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeonVar_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeonVar_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeonVar_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[12]) + let aNullableString: String? = nilOrValue(pigeonVar_list[13]) + let aNullableObject: Any? = pigeonVar_list[14] + let allNullableTypes: AllNullableTypes? = nilOrValue(pigeonVar_list[15]) + let list: [Any?]? = nilOrValue(pigeonVar_list[16]) + let stringList: [String?]? = nilOrValue(pigeonVar_list[17]) + let intList: [Int64?]? = nilOrValue(pigeonVar_list[18]) + let doubleList: [Double?]? = nilOrValue(pigeonVar_list[19]) + let boolList: [Bool?]? = nilOrValue(pigeonVar_list[20]) + let nestedClassList: [AllNullableTypes?]? = nilOrValue(pigeonVar_list[21]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeonVar_list[22]) return AllNullableTypes( aNullableBool: aNullableBool, @@ -369,34 +372,36 @@ struct AllNullableTypesWithoutRecursion { var map: [AnyHashable: Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllNullableTypesWithoutRecursion? { - let aNullableBool: Bool? = nilOrValue(pigeon_list[0]) + static func fromList(_ pigeonVar_list: [Any?]) -> AllNullableTypesWithoutRecursion? { + let aNullableBool: Bool? = nilOrValue(pigeonVar_list[0]) let aNullableInt: Int64? = - isNullish(pigeon_list[1]) + isNullish(pigeonVar_list[1]) ? nil - : (pigeon_list[1] is Int64? ? pigeon_list[1] as! Int64? : Int64(pigeon_list[1] as! Int32)) + : (pigeonVar_list[1] is Int64? + ? pigeonVar_list[1] as! Int64? : Int64(pigeonVar_list[1] as! Int32)) let aNullableInt64: Int64? = - isNullish(pigeon_list[2]) + isNullish(pigeonVar_list[2]) ? nil - : (pigeon_list[2] is Int64? ? pigeon_list[2] as! Int64? : Int64(pigeon_list[2] as! Int32)) - let aNullableDouble: Double? = nilOrValue(pigeon_list[3]) - let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[4]) - let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[5]) - let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[6]) - let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeon_list[7]) - let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeon_list[8]) - let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeon_list[9]) - let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeon_list[10]) - let aNullableEnum: AnEnum? = nilOrValue(pigeon_list[11]) - let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeon_list[12]) - let aNullableString: String? = nilOrValue(pigeon_list[13]) - let aNullableObject: Any? = pigeon_list[14] - let list: [Any?]? = nilOrValue(pigeon_list[15]) - let stringList: [String?]? = nilOrValue(pigeon_list[16]) - let intList: [Int64?]? = nilOrValue(pigeon_list[17]) - let doubleList: [Double?]? = nilOrValue(pigeon_list[18]) - let boolList: [Bool?]? = nilOrValue(pigeon_list[19]) - let map: [AnyHashable: Any?]? = nilOrValue(pigeon_list[20]) + : (pigeonVar_list[2] is Int64? + ? pigeonVar_list[2] as! Int64? : Int64(pigeonVar_list[2] as! Int32)) + let aNullableDouble: Double? = nilOrValue(pigeonVar_list[3]) + let aNullableByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[4]) + let aNullable4ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[5]) + let aNullable8ByteArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[6]) + let aNullableFloatArray: FlutterStandardTypedData? = nilOrValue(pigeonVar_list[7]) + let nullableNestedList: [[Bool?]?]? = nilOrValue(pigeonVar_list[8]) + let nullableMapWithAnnotations: [String?: String?]? = nilOrValue(pigeonVar_list[9]) + let nullableMapWithObject: [String?: Any?]? = nilOrValue(pigeonVar_list[10]) + let aNullableEnum: AnEnum? = nilOrValue(pigeonVar_list[11]) + let anotherNullableEnum: AnotherEnum? = nilOrValue(pigeonVar_list[12]) + let aNullableString: String? = nilOrValue(pigeonVar_list[13]) + let aNullableObject: Any? = pigeonVar_list[14] + let list: [Any?]? = nilOrValue(pigeonVar_list[15]) + let stringList: [String?]? = nilOrValue(pigeonVar_list[16]) + let intList: [Int64?]? = nilOrValue(pigeonVar_list[17]) + let doubleList: [Double?]? = nilOrValue(pigeonVar_list[18]) + let boolList: [Bool?]? = nilOrValue(pigeonVar_list[19]) + let map: [AnyHashable: Any?]? = nilOrValue(pigeonVar_list[20]) return AllNullableTypesWithoutRecursion( aNullableBool: aNullableBool, @@ -462,11 +467,11 @@ struct AllClassesWrapper { var allTypes: AllTypes? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> AllClassesWrapper? { - let allNullableTypes = pigeon_list[0] as! AllNullableTypes + static func fromList(_ pigeonVar_list: [Any?]) -> AllClassesWrapper? { + let allNullableTypes = pigeonVar_list[0] as! AllNullableTypes let allNullableTypesWithoutRecursion: AllNullableTypesWithoutRecursion? = nilOrValue( - pigeon_list[1]) - let allTypes: AllTypes? = nilOrValue(pigeon_list[2]) + pigeonVar_list[1]) + let allTypes: AllTypes? = nilOrValue(pigeonVar_list[2]) return AllClassesWrapper( allNullableTypes: allNullableTypes, @@ -490,8 +495,8 @@ struct TestMessage { var testList: [Any?]? = nil // swift-format-ignore: AlwaysUseLowerCamelCase - static func fromList(_ pigeon_list: [Any?]) -> TestMessage? { - let testList: [Any?]? = nilOrValue(pigeon_list[0]) + static func fromList(_ pigeonVar_list: [Any?]) -> TestMessage? { + let testList: [Any?]? = nilOrValue(pigeonVar_list[0]) return TestMessage( testList: testList diff --git a/packages/pigeon/test/dart/proxy_api_test.dart b/packages/pigeon/test/dart/proxy_api_test.dart index 96cc1f922e7..8e7f230f7ed 100644 --- a/packages/pigeon/test/dart/proxy_api_test.dart +++ b/packages/pigeon/test/dart/proxy_api_test.dart @@ -80,18 +80,19 @@ void main() { final String collapsedCode = _collapseNewlineAndIndentation(code); // Instance Manager - expect(code, contains(r'class PigeonInstanceManager')); - expect(code, contains(r'class _PigeonInstanceManagerApi')); + expect(code, contains(r'class PigeonInternalInstanceManager')); + expect(code, contains(r'class _PigeonInternalInstanceManagerApi')); // Base Api class expect( code, - contains(r'abstract class PigeonProxyApiBaseClass'), + contains(r'abstract class PigeonInternalProxyApiBaseClass'), ); // Codec and class - expect(code, contains('class _PigeonProxyApiBaseCodec')); - expect(code, contains(r'class Api extends PigeonProxyApiBaseClass')); + expect(code, contains('class _PigeonInternalProxyApiBaseCodec')); + expect( + code, contains(r'class Api extends PigeonInternalProxyApiBaseClass')); // Constructors expect( @@ -146,7 +147,7 @@ void main() { final String code = sink.toString(); final String collapsedCode = _collapseNewlineAndIndentation(code); - expect(code, contains(r'class _PigeonInstanceManagerApi')); + expect(code, contains(r'class _PigeonInternalInstanceManagerApi')); expect( code, @@ -157,13 +158,13 @@ void main() { expect( code, contains( - 'dev.flutter.pigeon.$DEFAULT_PACKAGE_NAME.PigeonInstanceManagerApi.removeStrongReference', + 'dev.flutter.pigeon.$DEFAULT_PACKAGE_NAME.PigeonInternalInstanceManagerApi.removeStrongReference', ), ); expect( collapsedCode, contains( - '(instanceManager ?? PigeonInstanceManager.instance) .remove(arg_identifier!);', + '(instanceManager ?? PigeonInternalInstanceManager.instance) .remove(arg_identifier!);', ), ); @@ -171,7 +172,7 @@ void main() { expect( code, contains( - 'dev.flutter.pigeon.$DEFAULT_PACKAGE_NAME.PigeonInstanceManagerApi.clear', + 'dev.flutter.pigeon.$DEFAULT_PACKAGE_NAME.PigeonInternalInstanceManagerApi.clear', ), ); }); @@ -252,7 +253,7 @@ void main() { expect( code, contains( - r'class Api extends PigeonProxyApiBaseClass implements Api2', + r'class Api extends PigeonInternalProxyApiBaseClass implements Api2', ), ); }); @@ -304,7 +305,7 @@ void main() { expect( code, contains( - r'class Api extends PigeonProxyApiBaseClass implements Api2, Api3', + r'class Api extends PigeonInternalProxyApiBaseClass implements Api2, Api3', ), ); }); @@ -359,7 +360,7 @@ void main() { expect( code, contains( - r'class Api extends PigeonProxyApiBaseClass implements Api2', + r'class Api extends PigeonInternalProxyApiBaseClass implements Api2', ), ); expect( @@ -409,13 +410,13 @@ void main() { expect( collapsedCode, contains( - r"const String pigeon_channelName = 'dev.flutter.pigeon.test_package.Api.pigeon_defaultConstructor';", + r"const String pigeonVar_channelName = 'dev.flutter.pigeon.test_package.Api.pigeon_defaultConstructor';", ), ); expect( collapsedCode, contains( - r'pigeon_channel .send([pigeon_instanceIdentifier])', + r'pigeonVar_channel .send([pigeonVar_instanceIdentifier])', ), ); }); @@ -515,8 +516,8 @@ void main() { expect( collapsedCode, contains( - r'pigeon_channel.send([ ' - r'pigeon_instanceIdentifier, ' + r'pigeonVar_channel.send([ ' + r'pigeonVar_instanceIdentifier, ' r'validType, enumType, proxyApiType, ' r'nullableValidType, nullableEnumType, nullableProxyApiType ])', ), @@ -625,8 +626,8 @@ void main() { expect( collapsedCode, contains( - r'pigeon_channel.send([ ' - r'pigeon_instanceIdentifier, ' + r'pigeonVar_channel.send([ ' + r'pigeonVar_instanceIdentifier, ' r'validType, enumType, proxyApiType, ' r'nullableValidType, nullableEnumType, nullableProxyApiType ])', ), @@ -697,8 +698,8 @@ void main() { ); final String code = sink.toString(); expect(code, contains('class Api')); - expect(code, contains(r'late final Api2 aField = pigeon_aField();')); - expect(code, contains(r'Api2 pigeon_aField()')); + expect(code, contains(r'late final Api2 aField = pigeonVar_aField();')); + expect(code, contains(r'Api2 pigeonVar_aField()')); }); test('static attached field', () { @@ -742,8 +743,9 @@ void main() { ); final String code = sink.toString(); expect(code, contains('class Api')); - expect(code, contains(r'static final Api2 aField = pigeon_aField();')); - expect(code, contains(r'static Api2 pigeon_aField()')); + expect( + code, contains(r'static final Api2 aField = pigeonVar_aField();')); + expect(code, contains(r'static Api2 pigeonVar_aField()')); }); }); @@ -845,7 +847,7 @@ void main() { expect( collapsedCode, contains( - r'await pigeon_channel.send([ this, validType, ' + r'await pigeonVar_channel.send([ this, validType, ' r'enumType, proxyApiType, nullableValidType, ' r'nullableEnumType, nullableProxyApiType ])', ), @@ -888,12 +890,12 @@ void main() { collapsedCode, contains( r'static Future doSomething({ BinaryMessenger? pigeon_binaryMessenger, ' - r'PigeonInstanceManager? pigeon_instanceManager, })', + r'PigeonInternalInstanceManager? pigeon_instanceManager, })', ), ); expect( collapsedCode, - contains(r'await pigeon_channel.send(null)'), + contains(r'await pigeonVar_channel.send(null)'), ); }); }); diff --git a/packages/pigeon/test/dart_generator_test.dart b/packages/pigeon/test/dart_generator_test.dart index 814ac69303a..93aacafd1cd 100644 --- a/packages/pigeon/test/dart_generator_test.dart +++ b/packages/pigeon/test/dart_generator_test.dart @@ -167,7 +167,7 @@ void main() { final String code = sink.toString(); expect(code, contains('class Api')); expect(code, contains('Future add(int x, int y)')); - expect(code, contains('await pigeon_channel.send([x, y])')); + expect(code, contains('await pigeonVar_channel.send([x, y])')); }); test('flutter multiple args', () { @@ -573,7 +573,7 @@ void main() { final String code = sink.toString(); expect(code, contains('enum Foo {')); expect(code, contains('Future bar(Foo? foo) async')); - expect(code, contains('pigeon_channel.send([foo])')); + expect(code, contains('pigeonVar_channel.send([foo])')); }); test('flutter non-nullable enum argument with enum class', () { @@ -664,7 +664,7 @@ void main() { dartPackageName: DEFAULT_PACKAGE_NAME, ); final String code = sink.toString(); - expect(code, matches('pigeon_channel.send[(]null[)]')); + expect(code, matches('pigeonVar_channel.send[(]null[)]')); }); test('mock dart handler', () { @@ -953,7 +953,7 @@ void main() { dartPackageName: DEFAULT_PACKAGE_NAME, ); final String code = sink.toString(); - expect(code, matches('pigeon_channel.send[(]null[)]')); + expect(code, matches('pigeonVar_channel.send[(]null[)]')); }); Iterable makeIterable(String string) sync* { @@ -1142,7 +1142,7 @@ void main() { expect( code, contains( - 'return (pigeon_replyList[0] as List?)!.cast();')); + 'return (pigeonVar_replyList[0] as List?)!.cast();')); }); test('flutter generics argument non void return', () { @@ -1217,7 +1217,7 @@ void main() { ); final String code = sink.toString(); expect(code, contains('Future doit()')); - expect(code, contains('return (pigeon_replyList[0] as int?);')); + expect(code, contains('return (pigeonVar_replyList[0] as int?);')); }); test('return nullable collection host', () { @@ -1252,7 +1252,7 @@ void main() { expect( code, contains( - 'return (pigeon_replyList[0] as List?)?.cast();')); + 'return (pigeonVar_replyList[0] as List?)?.cast();')); }); test('return nullable async host', () { @@ -1283,7 +1283,7 @@ void main() { ); final String code = sink.toString(); expect(code, contains('Future doit()')); - expect(code, contains('return (pigeon_replyList[0] as int?);')); + expect(code, contains('return (pigeonVar_replyList[0] as int?);')); }); test('return nullable flutter', () { @@ -1731,7 +1731,8 @@ name: foobar dartPackageName: DEFAULT_PACKAGE_NAME, ); final String code = sink.toString(); - expect(code, contains('throw _createConnectionError(pigeon_channelName);')); + expect( + code, contains('throw _createConnectionError(pigeonVar_channelName);')); expect( code, contains( diff --git a/packages/pigeon/test/kotlin_generator_test.dart b/packages/pigeon/test/kotlin_generator_test.dart index ff4f7d44ed3..6f47e5b0672 100644 --- a/packages/pigeon/test/kotlin_generator_test.dart +++ b/packages/pigeon/test/kotlin_generator_test.dart @@ -51,7 +51,7 @@ void main() { final String code = sink.toString(); expect(code, contains('data class Foobar (')); expect(code, contains('val field1: Long? = null')); - expect(code, contains('fun fromList(pigeon_list: List): Foobar')); + expect(code, contains('fun fromList(pigeonVar_list: List): Foobar')); expect(code, contains('fun toList(): List')); }); @@ -132,10 +132,10 @@ void main() { expect(code, contains('data class Bar (')); expect(code, contains('val field1: Foo,')); expect(code, contains('val field2: String')); - expect(code, contains('fun fromList(pigeon_list: List): Bar')); + expect(code, contains('fun fromList(pigeonVar_list: List): Bar')); expect(code, contains('Foo.ofRaw(it)')); - expect(code, contains('val field1 = pigeon_list[0] as Foo')); - expect(code, contains('val field2 = pigeon_list[1] as String\n')); + expect(code, contains('val field1 = pigeonVar_list[0] as Foo')); + expect(code, contains('val field2 = pigeonVar_list[1] as String\n')); expect(code, contains('fun toList(): List')); }); @@ -394,7 +394,7 @@ void main() { expect( code, contains( - 'val aInt = pigeon_list[1].let { num -> if (num is Int) num.toLong() else num as Long }')); + 'val aInt = pigeonVar_list[1].let { num -> if (num is Int) num.toLong() else num as Long }')); expect(code, contains('val aNullableBool: Boolean? = null')); expect(code, contains('val aNullableInt: Long? = null')); expect(code, contains('val aNullableDouble: Double? = null')); @@ -406,7 +406,7 @@ void main() { expect( code, contains( - 'val aNullableInt = pigeon_list[9].let { num -> if (num is Int) num.toLong() else num as Long? }')); + 'val aNullableInt = pigeonVar_list[9].let { num -> if (num is Int) num.toLong() else num as Long? }')); }); test('gen one flutter api', () { @@ -736,8 +736,8 @@ void main() { expect(code, contains('data class Outer')); expect(code, contains('data class Nested')); expect(code, contains('val nested: Nested? = null')); - expect(code, contains('fun fromList(pigeon_list: List): Outer')); - expect(code, contains('val nested = pigeon_list[0] as Nested?')); + expect(code, contains('fun fromList(pigeonVar_list: List): Outer')); + expect(code, contains('val nested = pigeonVar_list[0] as Nested?')); expect(code, contains('fun toList(): List')); }); diff --git a/packages/pigeon/test/swift_generator_test.dart b/packages/pigeon/test/swift_generator_test.dart index fa9ace6aaec..b90db1e1f24 100644 --- a/packages/pigeon/test/swift_generator_test.dart +++ b/packages/pigeon/test/swift_generator_test.dart @@ -51,7 +51,7 @@ void main() { expect(code, contains('struct Foobar')); expect(code, contains('var field1: Int64? = nil')); expect(code, - contains('static func fromList(_ pigeon_list: [Any?]) -> Foobar?')); + contains('static func fromList(_ pigeonVar_list: [Any?]) -> Foobar?')); expect(code, contains('func toList() -> [Any?]')); expect(code, isNot(contains('if ('))); }); @@ -123,7 +123,7 @@ void main() { code, contains( 'let enumResultAsInt: Int? = nilOrValue(self.readValue() as? Int)')); - expect(code, contains('enumResult = Foo(rawValue: enumResultAsInt)')); + expect(code, contains('return Foo(rawValue: enumResultAsInt)')); expect(code, contains('let fooArg = args[0] as! Foo')); expect(code, isNot(contains('if ('))); }); @@ -582,8 +582,9 @@ void main() { expect(code, contains('struct Nested')); expect(code, contains('var nested: Nested? = nil')); expect(code, - contains('static func fromList(_ pigeon_list: [Any?]) -> Outer?')); - expect(code, contains('let nested: Nested? = nilOrValue(pigeon_list[0])')); + contains('static func fromList(_ pigeonVar_list: [Any?]) -> Outer?')); + expect( + code, contains('let nested: Nested? = nilOrValue(pigeonVar_list[0])')); expect(code, contains('func toList() -> [Any?]')); expect(code, isNot(contains('if ('))); // Single-element list serializations should not have a trailing comma. diff --git a/packages/pigeon/tool/run_tests.dart b/packages/pigeon/tool/run_tests.dart index 3306bcb29cc..e380efdd14b 100644 --- a/packages/pigeon/tool/run_tests.dart +++ b/packages/pigeon/tool/run_tests.dart @@ -238,5 +238,5 @@ Future main(List args) async { exit(2); } - await runTests(testsToRun, ciMode: true, overflow: true); + await runTests(testsToRun, ciMode: true, includeOverflow: true); } diff --git a/packages/pigeon/tool/test.dart b/packages/pigeon/tool/test.dart index 641d8246d9d..07c7dfdf61b 100644 --- a/packages/pigeon/tool/test.dart +++ b/packages/pigeon/tool/test.dart @@ -127,6 +127,6 @@ ${parser.usage}'''); testsToRun, runGeneration: !argResults.wasParsed(_noGen), runFormat: argResults.wasParsed(_format), - overflow: argResults.wasParsed(_overflow), + includeOverflow: argResults.wasParsed(_overflow), ); } From 736a5abbe52da60eccd658f4f06c94c4af25b1bc Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 6 Aug 2024 10:19:20 -0700 Subject: [PATCH 11/14] missed var name --- packages/pigeon/lib/objc_generator.dart | 2 +- .../ios/Classes/CoreTests.gen.m | 12 ++++++------ .../macos/Classes/CoreTests.gen.m | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/pigeon/lib/objc_generator.dart b/packages/pigeon/lib/objc_generator.dart index 31a62c855f0..86e51cdec8e 100644 --- a/packages/pigeon/lib/objc_generator.dart +++ b/packages/pigeon/lib/objc_generator.dart @@ -1024,7 +1024,7 @@ static FlutterError *createConnectionError(NSString *channelName) { prefix: generatorOptions.prefix, ); ivarValueExpression = - 'an${_enumName(arg.type.baseName, prefix: generatorOptions.prefix, box: true)}.value'; + 'boxed${_enumName(arg.type.baseName, prefix: generatorOptions.prefix)}.value'; } else if (primitiveExtractionMethod != null) { ivarValueExpression = '[$valueGetter $primitiveExtractionMethod]'; } else { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m index 49baba617c2..3d4d841ef15 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/ios/Classes/CoreTests.gen.m @@ -897,7 +897,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); - FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; + FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; FlutterError *error; FLTAnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); @@ -923,7 +923,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); - FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; + FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; FlutterError *error; FLTAnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; callback(wrapResult(output, error)); @@ -1735,7 +1735,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); - FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; + FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; [api echoAsyncEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -1762,7 +1762,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); - FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; + FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; [api echoAnotherAsyncEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { @@ -2615,7 +2615,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnEnumBox *boxedFLTAnEnum = GetNullableObjectAtIndex(args, 0); - FLTAnEnum arg_anEnum = anFLTAnEnumBox.value; + FLTAnEnum arg_anEnum = boxedFLTAnEnum.value; [api callFlutterEchoEnum:arg_anEnum completion:^(FLTAnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -2642,7 +2642,7 @@ void SetUpFLTHostIntegrationCoreApiWithSuffix(id binaryM [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; FLTAnotherEnumBox *boxedFLTAnotherEnum = GetNullableObjectAtIndex(args, 0); - FLTAnotherEnum arg_anotherEnum = anFLTAnotherEnumBox.value; + FLTAnotherEnum arg_anotherEnum = boxedFLTAnotherEnum.value; [api callFlutterEchoAnotherEnum:arg_anotherEnum completion:^(FLTAnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { diff --git a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m index c5cfec34579..78b333c21a9 100644 --- a/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m +++ b/packages/pigeon/platform_tests/alternate_language_test_plugin/macos/Classes/CoreTests.gen.m @@ -892,7 +892,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = anAnEnumBox.value; + AnEnum arg_anEnum = boxedAnEnum.value; FlutterError *error; AnEnumBox *output = [api echoEnum:arg_anEnum error:&error]; callback(wrapResult(output, error)); @@ -918,7 +918,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); - AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; + AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; FlutterError *error; AnotherEnumBox *output = [api echoAnotherEnum:arg_anotherEnum error:&error]; callback(wrapResult(output, error)); @@ -1730,7 +1730,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = anAnEnumBox.value; + AnEnum arg_anEnum = boxedAnEnum.value; [api echoAsyncEnum:arg_anEnum completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -1757,7 +1757,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); - AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; + AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; [api echoAnotherAsyncEnum:arg_anotherEnum completion:^(AnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { @@ -2608,7 +2608,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; AnEnumBox *boxedAnEnum = GetNullableObjectAtIndex(args, 0); - AnEnum arg_anEnum = anAnEnumBox.value; + AnEnum arg_anEnum = boxedAnEnum.value; [api callFlutterEchoEnum:arg_anEnum completion:^(AnEnumBox *_Nullable output, FlutterError *_Nullable error) { callback(wrapResult(output, error)); @@ -2635,7 +2635,7 @@ void SetUpHostIntegrationCoreApiWithSuffix(id binaryMess [channel setMessageHandler:^(id _Nullable message, FlutterReply callback) { NSArray *args = message; AnotherEnumBox *boxedAnotherEnum = GetNullableObjectAtIndex(args, 0); - AnotherEnum arg_anotherEnum = anAnotherEnumBox.value; + AnotherEnum arg_anotherEnum = boxedAnotherEnum.value; [api callFlutterEchoAnotherEnum:arg_anotherEnum completion:^(AnotherEnumBox *_Nullable output, FlutterError *_Nullable error) { From ae5419c95ee7307055d20f68522d2da1307df0d2 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Tue, 6 Aug 2024 10:49:32 -0700 Subject: [PATCH 12/14] changelog --- packages/pigeon/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/pigeon/CHANGELOG.md b/packages/pigeon/CHANGELOG.md index 4e4a15089a6..b9bd614cc28 100644 --- a/packages/pigeon/CHANGELOG.md +++ b/packages/pigeon/CHANGELOG.md @@ -3,6 +3,8 @@ * Removes restriction on number of custom types. * [java] Fixes bug with multiple enums. * [java] Removes `Object` from generics. +* [objc] Fixes bug with multiple enums per data class. +* Updates `varPrefix` and `classMemberNamePrefix`. ## 21.1.0 From 09c47de0ae7d697ee5253bfcdf28e46df53ad5d5 Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 12 Aug 2024 03:44:12 -0700 Subject: [PATCH 13/14] nits --- .../flutter/pigeon_example_app/Messages.g.kt | 1 - packages/pigeon/lib/cpp_generator.dart | 14 +- packages/pigeon/lib/kotlin_generator.dart | 5 +- packages/pigeon/lib/objc_generator.dart | 151 ++++++++++-------- packages/pigeon/lib/swift_generator.dart | 14 +- .../com/example/test_plugin/CoreTests.gen.kt | 5 - 6 files changed, 102 insertions(+), 88 deletions(-) diff --git a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt index 8cfe011faa0..d96ca417a45 100644 --- a/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt +++ b/packages/pigeon/example/app/android/app/src/main/kotlin/dev/flutter/pigeon_example_app/Messages.g.kt @@ -65,7 +65,6 @@ data class MessageData( val data: Map ) { companion object { - @Suppress("LocalVariableName") fun fromList(pigeonVar_list: List): MessageData { val name = pigeonVar_list[0] as String? val description = pigeonVar_list[1] as String? diff --git a/packages/pigeon/lib/cpp_generator.dart b/packages/pigeon/lib/cpp_generator.dart index b2e38c965e9..425c5a29768 100644 --- a/packages/pigeon/lib/cpp_generator.dart +++ b/packages/pigeon/lib/cpp_generator.dart @@ -38,7 +38,7 @@ final List _overflowFields = [ final Class _overflowClass = Class(name: _overflowClassName, fields: _overflowFields); final EnumeratedType _enumeratedOverflow = EnumeratedType( - _overflowClassName, 255, CustomTypes.customClass, + _overflowClassName, maximumCodecFieldKey, CustomTypes.customClass, associatedClass: _overflowClass); /// Options that control how C++ code will be generated. @@ -1033,7 +1033,7 @@ EncodableValue $_overflowClassName::FromEncodableList( } } if (root.requiresOverflowClass) { - indent.write('case 255:'); + indent.write('case $maximumCodecFieldKey:'); _writeCodecDecode(indent, _enumeratedOverflow, 'ReadValue(stream)'); } indent.writeln('default:'); @@ -1064,10 +1064,10 @@ EncodableValue $_overflowClassName::FromEncodableList( CustomTypes.customClass ? 'std::any_cast<${customType.name}>(*custom_value).ToEncodableList()' : 'static_cast(std::any_cast<${customType.name}>(*custom_value))'; - final String valueString = customType.enumeration < - maximumCodecFieldKey - ? encodeString - : 'std::any_cast<$_overflowClassName>(wrap).ToEncodableList()'; + final String valueString = + customType.enumeration < maximumCodecFieldKey + ? encodeString + : 'wrap.ToEncodableList()'; final int enumeration = customType.enumeration < maximumCodecFieldKey ? customType.enumeration @@ -1078,7 +1078,7 @@ EncodableValue $_overflowClassName::FromEncodableList( indent.writeln('stream->WriteByte($enumeration);'); if (enumeration == maximumCodecFieldKey) { indent.writeln( - 'const auto& wrap = $_overflowClassName(${customType.enumeration - maximumCodecFieldKey}, $encodeString);'); + 'const auto wrap = $_overflowClassName(${customType.enumeration - maximumCodecFieldKey}, $encodeString);'); } indent .writeln('WriteValue(EncodableValue($valueString), stream);'); diff --git a/packages/pigeon/lib/kotlin_generator.dart b/packages/pigeon/lib/kotlin_generator.dart index df5e9455dd3..4656f2bc16a 100644 --- a/packages/pigeon/lib/kotlin_generator.dart +++ b/packages/pigeon/lib/kotlin_generator.dart @@ -256,7 +256,6 @@ class KotlinGenerator extends StructuredGenerator { indent.write('companion object '); indent.addScoped('{', '}', () { - indent.writeln('@Suppress("LocalVariableName")'); indent .write('fun fromList(${varNamePrefix}list: List): $className '); @@ -432,8 +431,7 @@ class KotlinGenerator extends StructuredGenerator { '${generatorOptions.fileSpecificClassNameComponent}$_overflowClassName', fields: overflowFields); - indent.writeln('@Suppress("ClassName")'); - _writeDataClassSignature(indent, overflowClass); + _writeDataClassSignature(indent, overflowClass, private: true); indent.addScoped(' {', '}', () { writeClassEncode( generatorOptions, @@ -445,7 +443,6 @@ class KotlinGenerator extends StructuredGenerator { indent.format(''' companion object { - @Suppress("LocalVariableName") fun fromList(${varNamePrefix}list: List): Any? { val wrapper = ${generatorOptions.fileSpecificClassNameComponent}$_overflowClassName( type = ${varNamePrefix}list[0] as Int, diff --git a/packages/pigeon/lib/objc_generator.dart b/packages/pigeon/lib/objc_generator.dart index 86e51cdec8e..6489b5d4e0e 100644 --- a/packages/pigeon/lib/objc_generator.dart +++ b/packages/pigeon/lib/objc_generator.dart @@ -30,7 +30,7 @@ final List _overflowFields = [ final Class _overflowClass = Class(name: _overflowClassName, fields: _overflowFields); final EnumeratedType _enumeratedOverflow = EnumeratedType( - _overflowClassName, 255, CustomTypes.customClass, + _overflowClassName, maximumCodecFieldKey, CustomTypes.customClass, associatedClass: _overflowClass); /// Options that control how Objective-C code will be generated. @@ -215,15 +215,6 @@ class ObjcHeaderGenerator extends StructuredGenerator { indent, dartPackageName: dartPackageName, ); - if (root.requiresOverflowClass) { - writeDataClass( - generatorOptions, - root, - indent, - _overflowClass, - dartPackageName: dartPackageName, - ); - } } @override @@ -234,56 +225,12 @@ class ObjcHeaderGenerator extends StructuredGenerator { Class classDefinition, { required String dartPackageName, }) { - final String? prefix = generatorOptions.prefix; - - addDocumentationComments( - indent, classDefinition.documentationComments, _docCommentSpec); - - indent.writeln( - '@interface ${_className(prefix, classDefinition.name)} : NSObject'); - if (getFieldsInSerializationOrder(classDefinition).isNotEmpty) { - if (getFieldsInSerializationOrder(classDefinition) - .map((NamedType e) => !e.type.isNullable) - .any((bool e) => e)) { - indent.writeln( - '$_docCommentPrefix `init` unavailable to enforce nonnull fields, see the `make` class method.'); - indent.writeln('- (instancetype)init NS_UNAVAILABLE;'); - } - _writeObjcSourceClassInitializerDeclaration( - indent, - generatorOptions, - root, - classDefinition, - prefix, - ); - indent.addln(';'); - } - for (final NamedType field - in getFieldsInSerializationOrder(classDefinition)) { - final HostDatatype hostDatatype = getFieldHostDatatype( - field, - (TypeDeclaration x) => _objcTypeStringForPrimitiveDartType(prefix, x, - beforeString: true), - customResolver: field.type.isEnum - ? (String x) => _enumName(x, prefix: prefix) - : (String x) => '${_className(prefix, x)} *'); - late final String propertyType; - addDocumentationComments( - indent, field.documentationComments, _docCommentSpec); - propertyType = _propertyTypeForDartType(field.type, - isNullable: field.type.isNullable, isEnum: field.type.isEnum); - final String nullability = field.type.isNullable ? ', nullable' : ''; - final String fieldType = field.type.isEnum && field.type.isNullable - ? _enumName(field.type.baseName, - suffix: ' *', - prefix: generatorOptions.prefix, - box: field.type.isNullable) - : hostDatatype.datatype; - indent.writeln( - '@property(nonatomic, $propertyType$nullability) $fieldType ${field.name};'); - } - indent.writeln('@end'); - indent.newln(); + _writeDataClassDeclaration( + generatorOptions, + root, + indent, + classDefinition, + ); } @override @@ -618,14 +565,16 @@ class ObjcSourceGenerator extends StructuredGenerator { _nsnumberExtractionMethod(field.type); final String ivarValueExpression; if (field.type.isEnum && !field.type.isNullable) { + final String varName = + 'boxed${_enumName(field.type.baseName, prefix: generatorOptions.prefix)}'; _writeEnumBoxToEnum( indent, field, + varName, valueGetter, prefix: generatorOptions.prefix, ); - ivarValueExpression = - 'boxed${_enumName(field.type.baseName, prefix: generatorOptions.prefix)}.value'; + ivarValueExpression = '$varName.value'; } else if (primitiveExtractionMethod != null) { ivarValueExpression = '[$valueGetter $primitiveExtractionMethod]'; } else { @@ -774,7 +723,7 @@ if (self.wrapped == nil) { } } if (root.requiresOverflowClass) { - indent.write('case 255: '); + indent.write('case $maximumCodecFieldKey: '); _writeCodecDecode( indent, _enumeratedOverflow, @@ -971,6 +920,15 @@ if (self.wrapped == nil) { if (hasHostApi || hasFlutterApi) { _writeGetNullableObjectAtIndex(indent); } + + if (root.requiresOverflowClass) { + _writeDataClassDeclaration( + generatorOptions, + root, + indent, + _overflowClass, + ); + } } void _writeWrapError(Indent indent) { @@ -1017,14 +975,16 @@ static FlutterError *createConnectionError(NSString *channelName) { final String ivarValueExpression; String beforeString = objcArgType.beforeString; if (arg.type.isEnum && !arg.type.isNullable) { + final String varName = + 'boxed${_enumName(arg.type.baseName, prefix: generatorOptions.prefix)}'; _writeEnumBoxToEnum( indent, arg, + varName, valueGetter, prefix: generatorOptions.prefix, ); - ivarValueExpression = - 'boxed${_enumName(arg.type.baseName, prefix: generatorOptions.prefix)}.value'; + ivarValueExpression = '$varName.value'; } else if (primitiveExtractionMethod != null) { ivarValueExpression = '[$valueGetter $primitiveExtractionMethod]'; } else { @@ -1711,11 +1671,12 @@ List validateObjc(ObjcOptions options, Root root) { void _writeEnumBoxToEnum( Indent indent, NamedType field, + String varName, String valueGetter, { String? prefix = '', }) { indent.writeln( - '${_enumName(field.type.baseName, prefix: prefix, box: true, suffix: ' *')}boxed${_enumName(field.type.baseName, prefix: prefix)} = $valueGetter;'); + '${_enumName(field.type.baseName, prefix: prefix, box: true, suffix: ' *')}$varName = $valueGetter;'); } String _getEnumToEnumBox( @@ -1725,3 +1686,61 @@ String _getEnumToEnumBox( }) { return '[[${_enumName(field.type.baseName, prefix: prefix, box: true)} alloc] initWithValue:$valueSetter]'; } + +void _writeDataClassDeclaration( + ObjcOptions generatorOptions, + Root root, + Indent indent, + Class classDefinition, +) { + final String? prefix = generatorOptions.prefix; + + addDocumentationComments( + indent, classDefinition.documentationComments, _docCommentSpec); + + indent.writeln( + '@interface ${_className(prefix, classDefinition.name)} : NSObject'); + if (getFieldsInSerializationOrder(classDefinition).isNotEmpty) { + if (getFieldsInSerializationOrder(classDefinition) + .map((NamedType e) => !e.type.isNullable) + .any((bool e) => e)) { + indent.writeln( + '$_docCommentPrefix `init` unavailable to enforce nonnull fields, see the `make` class method.'); + indent.writeln('- (instancetype)init NS_UNAVAILABLE;'); + } + _writeObjcSourceClassInitializerDeclaration( + indent, + generatorOptions, + root, + classDefinition, + prefix, + ); + indent.addln(';'); + } + for (final NamedType field + in getFieldsInSerializationOrder(classDefinition)) { + final HostDatatype hostDatatype = getFieldHostDatatype( + field, + (TypeDeclaration x) => + _objcTypeStringForPrimitiveDartType(prefix, x, beforeString: true), + customResolver: field.type.isEnum + ? (String x) => _enumName(x, prefix: prefix) + : (String x) => '${_className(prefix, x)} *'); + late final String propertyType; + addDocumentationComments( + indent, field.documentationComments, _docCommentSpec); + propertyType = _propertyTypeForDartType(field.type, + isNullable: field.type.isNullable, isEnum: field.type.isEnum); + final String nullability = field.type.isNullable ? ', nullable' : ''; + final String fieldType = field.type.isEnum && field.type.isNullable + ? _enumName(field.type.baseName, + suffix: ' *', + prefix: generatorOptions.prefix, + box: field.type.isNullable) + : hostDatatype.datatype; + indent.writeln( + '@property(nonatomic, $propertyType$nullability) $fieldType ${field.name};'); + } + indent.writeln('@end'); + indent.newln(); +} diff --git a/packages/pigeon/lib/swift_generator.dart b/packages/pigeon/lib/swift_generator.dart index 197c03f9d8f..f1c49353484 100644 --- a/packages/pigeon/lib/swift_generator.dart +++ b/packages/pigeon/lib/swift_generator.dart @@ -262,11 +262,16 @@ class SwiftGenerator extends StructuredGenerator { indent.newln(); } - void _writeDataClassSignature(Indent indent, Class classDefinition) { + void _writeDataClassSignature( + Indent indent, + Class classDefinition, { + bool private = false, + }) { + final String privateString = private ? 'private ' : ''; if (classDefinition.isSwiftClass) { - indent.write('class ${classDefinition.name} '); + indent.write('${privateString}class ${classDefinition.name} '); } else { - indent.write('struct ${classDefinition.name} '); + indent.write('${privateString}struct ${classDefinition.name} '); } indent.addScoped('{', '', () { @@ -307,8 +312,7 @@ class SwiftGenerator extends StructuredGenerator { final Class overflowClass = Class(name: _overflowClassName, fields: overflowFields); indent.newln(); - indent.writeln('// swift-format-ignore: TypeNamesShouldBeCapitalized'); - _writeDataClassSignature(indent, overflowClass); + _writeDataClassSignature(indent, overflowClass, private: true); indent.addScoped('', '}', () { writeClassEncode( generatorOptions, diff --git a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt index c6768ac4400..2bf1533b71a 100644 --- a/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt +++ b/packages/pigeon/platform_tests/test_plugin/android/src/main/kotlin/com/example/test_plugin/CoreTests.gen.kt @@ -86,7 +86,6 @@ data class AllTypes( val map: Map ) { companion object { - @Suppress("LocalVariableName") fun fromList(pigeonVar_list: List): AllTypes { val aBool = pigeonVar_list[0] as Boolean val anInt = pigeonVar_list[1].let { num -> if (num is Int) num.toLong() else num as Long } @@ -183,7 +182,6 @@ data class AllNullableTypes( val map: Map? = null ) { companion object { - @Suppress("LocalVariableName") fun fromList(pigeonVar_list: List): AllNullableTypes { val aNullableBool = pigeonVar_list[0] as Boolean? val aNullableInt = @@ -296,7 +294,6 @@ data class AllNullableTypesWithoutRecursion( val map: Map? = null ) { companion object { - @Suppress("LocalVariableName") fun fromList(pigeonVar_list: List): AllNullableTypesWithoutRecursion { val aNullableBool = pigeonVar_list[0] as Boolean? val aNullableInt = @@ -388,7 +385,6 @@ data class AllClassesWrapper( val allTypes: AllTypes? = null ) { companion object { - @Suppress("LocalVariableName") fun fromList(pigeonVar_list: List): AllClassesWrapper { val allNullableTypes = pigeonVar_list[0] as AllNullableTypes val allNullableTypesWithoutRecursion = pigeonVar_list[1] as AllNullableTypesWithoutRecursion? @@ -413,7 +409,6 @@ data class AllClassesWrapper( */ data class TestMessage(val testList: List? = null) { companion object { - @Suppress("LocalVariableName") fun fromList(pigeonVar_list: List): TestMessage { val testList = pigeonVar_list[0] as List? return TestMessage(testList) From 38304efb759272b6bcbc07874b247b86d3ea5d7d Mon Sep 17 00:00:00 2001 From: tarrinneal Date: Mon, 12 Aug 2024 08:31:56 -0700 Subject: [PATCH 14/14] fix links for gobject issue --- packages/pigeon/lib/pigeon_lib.dart | 2 +- packages/pigeon/tool/shared/test_runner.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pigeon/lib/pigeon_lib.dart b/packages/pigeon/lib/pigeon_lib.dart index cabb9f9817a..d5623a29581 100644 --- a/packages/pigeon/lib/pigeon_lib.dart +++ b/packages/pigeon/lib/pigeon_lib.dart @@ -846,7 +846,7 @@ class GObjectGeneratorAdapter implements GeneratorAdapter { List validate(PigeonOptions options, Root root) { final List errors = []; // TODO(tarrinneal): Remove once overflow class is added to gobject generator. - // https://github.com/flutter/packages/pull/6840 + // https://github.com/flutter/flutter/issues/152916 if (root.classes.length + root.enums.length > totalCustomCodecKeysAllowed) { errors.add(Error( message: diff --git a/packages/pigeon/tool/shared/test_runner.dart b/packages/pigeon/tool/shared/test_runner.dart index 98ee1db9214..cdb769fc029 100644 --- a/packages/pigeon/tool/shared/test_runner.dart +++ b/packages/pigeon/tool/shared/test_runner.dart @@ -35,7 +35,7 @@ Future runTests( await _runGenerate(baseDir, includeOverflow: true); // TODO(tarrinneal): Remove linux filter once overflow class is added to gobject generator. - // https://github.com/flutter/packages/pull/6840 + // https://github.com/flutter/flutter/issues/152916 await _runTests(testsToRun .where((String test) => test.contains('integration') && !test.contains('linux'))