From ed34605bfc049a1d1f24946d4cef4b2a0ef22bb2 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Thu, 14 Nov 2024 14:15:14 -0800 Subject: [PATCH 1/4] Upgrade `ok_http` to `jnigen` 0.12.1 --- pkgs/ok_http/jnigen.yaml | 3 - pkgs/ok_http/lib/src/jni/bindings.dart | 16335 +++++------------------ pkgs/ok_http/pubspec.yaml | 4 +- 3 files changed, 3430 insertions(+), 12912 deletions(-) diff --git a/pkgs/ok_http/jnigen.yaml b/pkgs/ok_http/jnigen.yaml index 2e7f87a45a..1fc2c5c03d 100644 --- a/pkgs/ok_http/jnigen.yaml +++ b/pkgs/ok_http/jnigen.yaml @@ -12,9 +12,6 @@ android_sdk_config: add_gradle_deps: true android_example: "example/" -enable_experiment: - - "interface_implementation" - classes: - "okhttp3.Request" - "okhttp3.RequestBody" diff --git a/pkgs/ok_http/lib/src/jni/bindings.dart b/pkgs/ok_http/lib/src/jni/bindings.dart index 608384389a..9df24d965f 100644 --- a/pkgs/ok_http/lib/src/jni/bindings.dart +++ b/pkgs/ok_http/lib/src/jni/bindings.dart @@ -2,6 +2,7 @@ // Autogenerated by jnigen. DO NOT EDIT! + // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions @@ -9,12 +10,18 @@ // ignore_for_file: constant_identifier_names // ignore_for_file: doc_directive_unknown // ignore_for_file: file_names +// ignore_for_file: inference_failure_on_untyped_parameter +// ignore_for_file: invalid_internal_annotation +// ignore_for_file: invalid_use_of_internal_member +// ignore_for_file: library_prefixes // ignore_for_file: lines_longer_than_80_chars +// ignore_for_file: no_leading_underscores_for_library_prefixes // ignore_for_file: no_leading_underscores_for_local_identifiers // ignore_for_file: non_constant_identifier_names // ignore_for_file: only_throw_errors // ignore_for_file: overridden_fields // ignore_for_file: prefer_double_quotes +// ignore_for_file: unintended_html_in_doc_comment // ignore_for_file: unnecessary_cast // ignore_for_file: unnecessary_parenthesis // ignore_for_file: unused_element @@ -24,6373 +31,3204 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters -import 'dart:ffi' as ffi; -import 'dart:isolate' show ReceivePort; -import 'package:jni/internal_helpers_for_jnigen.dart'; -import 'package:jni/jni.dart' as jni; +import 'dart:core' show Object, String, bool, double, int; +import 'dart:core' as _$core; + +import 'package:jni/_internal.dart' as _$jni; +import 'package:jni/jni.dart' as _$jni; + + +/// from: `okhttp3.Request$Builder` +class Request_Builder extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; -/// from: okhttp3.Request$Builder -class Request_Builder extends jni.JObject { - @override - late final jni.JObjType $type = type; + + @_$jni.internal Request_Builder.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Request$Builder'); - - /// The type which includes information such as the signature of this class. - static const type = $Request_BuilderType(); - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory Request_Builder() { - return Request_Builder.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _id_new1 = _class.constructorId( - r'(Lokhttp3/Request;)V', - ); + static final _class = _$jni.JClass.forName(r'okhttp3/Request$Builder'); - static final _new1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + /// The type which includes information such as the signature of this class. +static const type = $Request_Builder$Type(); +} +final class $Request_Builder$Type extends _$jni.JObjType { + - /// from: public void (okhttp3.Request request) - /// The returned object must be released after use, by calling the [release] method. - factory Request_Builder.new1( - Request request, - ) { - return Request_Builder.fromReference(_new1(_class.reference.pointer, - _id_new1 as jni.JMethodIDPtr, request.reference.pointer) - .reference); - } + @_$jni.internal + const $Request_Builder$Type( + + ); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Request$Builder;'; - static final _id_url = _class.instanceMethodId( - r'url', - r'(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;', + @_$jni.internal + @_$core.override + Request_Builder fromReference(_$jni.JReference reference) => Request_Builder.fromReference( + + reference ); - static final _url = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public okhttp3.Request$Builder url(okhttp3.HttpUrl httpUrl) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder url( - jni.JObject httpUrl, - ) { - return _url(reference.pointer, _id_url as jni.JMethodIDPtr, - httpUrl.reference.pointer) - .object(const $Request_BuilderType()); + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Request_Builder$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Request_Builder$Type) && + other is $Request_Builder$Type; } +} - static final _id_url1 = _class.instanceMethodId( - r'url', - r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', - ); +/// from: `okhttp3.Request` +class Request extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _url1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + - /// from: public okhttp3.Request$Builder url(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder url1( - jni.JString string, - ) { - return _url1(reference.pointer, _id_url1 as jni.JMethodIDPtr, - string.reference.pointer) - .object(const $Request_BuilderType()); - } + @_$jni.internal + Request.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _id_url2 = _class.instanceMethodId( - r'url', - r'(Ljava/net/URL;)Lokhttp3/Request$Builder;', - ); + static final _class = _$jni.JClass.forName(r'okhttp3/Request'); - static final _url2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + /// The type which includes information such as the signature of this class. +static const type = $Request$Type(); + static final _id_-deprecated_url = _class.instanceMethodId( + r'-deprecated_url', + r'()Lokhttp3/HttpUrl;', + ); - /// from: public okhttp3.Request$Builder url(java.net.URL uRL) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder url2( - jni.JObject uRL, - ) { - return _url2(reference.pointer, _id_url2 as jni.JMethodIDPtr, - uRL.reference.pointer) - .object(const $Request_BuilderType()); - } - - static final _id_header = _class.instanceMethodId( - r'header', - r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', - ); - - static final _header = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public okhttp3.Request$Builder header(java.lang.String string, java.lang.String string1) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder header( - jni.JString string, - jni.JString string1, - ) { - return _header(reference.pointer, _id_header as jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const $Request_BuilderType()); - } - - static final _id_addHeader = _class.instanceMethodId( - r'addHeader', - r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', - ); - - static final _addHeader = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public okhttp3.Request$Builder addHeader(java.lang.String string, java.lang.String string1) + static final _-deprecated_url = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.HttpUrl -deprecated_url()` /// The returned object must be released after use, by calling the [release] method. - Request_Builder addHeader( - jni.JString string, - jni.JString string1, - ) { - return _addHeader(reference.pointer, _id_addHeader as jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const $Request_BuilderType()); + _$jni.JObject -deprecated_url(){ + + return _-deprecated_url(reference.pointer, _id_-deprecated_url as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_removeHeader = _class.instanceMethodId( - r'removeHeader', - r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', + static final _id_-deprecated_method = _class.instanceMethodId( + r'-deprecated_method', + r'()Ljava/lang/String;', ); - static final _removeHeader = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Request$Builder removeHeader(java.lang.String string) + static final _-deprecated_method = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.lang.String -deprecated_method()` /// The returned object must be released after use, by calling the [release] method. - Request_Builder removeHeader( - jni.JString string, - ) { - return _removeHeader(reference.pointer, - _id_removeHeader as jni.JMethodIDPtr, string.reference.pointer) - .object(const $Request_BuilderType()); + _$jni.JString -deprecated_method(){ + + return _-deprecated_method(reference.pointer, _id_-deprecated_method as _$jni.JMethodIDPtr).object(const _$jni.JStringType()); } - static final _id_headers = _class.instanceMethodId( - r'headers', - r'(Lokhttp3/Headers;)Lokhttp3/Request$Builder;', + static final _id_-deprecated_headers = _class.instanceMethodId( + r'-deprecated_headers', + r'()Lokhttp3/Headers;', ); - static final _headers = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Request$Builder headers(okhttp3.Headers headers) + static final _-deprecated_headers = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Headers -deprecated_headers()` /// The returned object must be released after use, by calling the [release] method. - Request_Builder headers( - Headers headers, - ) { - return _headers(reference.pointer, _id_headers as jni.JMethodIDPtr, - headers.reference.pointer) - .object(const $Request_BuilderType()); + Headers -deprecated_headers(){ + + return _-deprecated_headers(reference.pointer, _id_-deprecated_headers as _$jni.JMethodIDPtr).object(const $Headers$Type()); } - static final _id_cacheControl = _class.instanceMethodId( - r'cacheControl', - r'(Lokhttp3/CacheControl;)Lokhttp3/Request$Builder;', + static final _id_-deprecated_body = _class.instanceMethodId( + r'-deprecated_body', + r'()Lokhttp3/RequestBody;', ); - static final _cacheControl = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Request$Builder cacheControl(okhttp3.CacheControl cacheControl) + static final _-deprecated_body = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.RequestBody -deprecated_body()` /// The returned object must be released after use, by calling the [release] method. - Request_Builder cacheControl( - jni.JObject cacheControl, - ) { - return _cacheControl( - reference.pointer, - _id_cacheControl as jni.JMethodIDPtr, - cacheControl.reference.pointer) - .object(const $Request_BuilderType()); - } - - static final _id_get0 = _class.instanceMethodId( - r'get', - r'()Lokhttp3/Request$Builder;', - ); - - static final _get0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public okhttp3.Request$Builder get() - /// The returned object must be released after use, by calling the [release] method. - Request_Builder get0() { - return _get0(reference.pointer, _id_get0 as jni.JMethodIDPtr) - .object(const $Request_BuilderType()); + RequestBody -deprecated_body(){ + + return _-deprecated_body(reference.pointer, _id_-deprecated_body as _$jni.JMethodIDPtr).object(const $RequestBody$Type()); } - static final _id_head = _class.instanceMethodId( - r'head', - r'()Lokhttp3/Request$Builder;', + static final _id_-deprecated_cacheControl = _class.instanceMethodId( + r'-deprecated_cacheControl', + r'()Lokhttp3/CacheControl;', ); - static final _head = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public okhttp3.Request$Builder head() + static final _-deprecated_cacheControl = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.CacheControl -deprecated_cacheControl()` /// The returned object must be released after use, by calling the [release] method. - Request_Builder head() { - return _head(reference.pointer, _id_head as jni.JMethodIDPtr) - .object(const $Request_BuilderType()); + _$jni.JObject -deprecated_cacheControl(){ + + return _-deprecated_cacheControl(reference.pointer, _id_-deprecated_cacheControl as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_post = _class.instanceMethodId( - r'post', - r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', - ); +} +final class $Request$Type extends _$jni.JObjType { + - static final _post = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + const $Request$Type( + + ); - /// from: public okhttp3.Request$Builder post(okhttp3.RequestBody requestBody) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder post( - RequestBody requestBody, - ) { - return _post(reference.pointer, _id_post as jni.JMethodIDPtr, - requestBody.reference.pointer) - .object(const $Request_BuilderType()); - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Request;'; - static final _id_delete = _class.instanceMethodId( - r'delete', - r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', + @_$jni.internal + @_$core.override + Request fromReference(_$jni.JReference reference) => Request.fromReference( + + reference ); - static final _delete = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public okhttp3.Request$Builder delete(okhttp3.RequestBody requestBody) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder delete( - RequestBody requestBody, - ) { - return _delete(reference.pointer, _id_delete as jni.JMethodIDPtr, - requestBody.reference.pointer) - .object(const $Request_BuilderType()); + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Request$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Request$Type) && + other is $Request$Type; } +} + +/// from: `okhttp3.RequestBody$Companion` +class RequestBody_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + - static final _id_put = _class.instanceMethodId( - r'put', - r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', + @_$jni.internal + RequestBody_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody$Companion'); + + /// The type which includes information such as the signature of this class. +static const type = $RequestBody_Companion$Type(); +} +final class $RequestBody_Companion$Type extends _$jni.JObjType { + + + @_$jni.internal + const $RequestBody_Companion$Type( + ); - static final _put = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/RequestBody$Companion;'; - /// from: public okhttp3.Request$Builder put(okhttp3.RequestBody requestBody) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder put( - RequestBody requestBody, - ) { - return _put(reference.pointer, _id_put as jni.JMethodIDPtr, - requestBody.reference.pointer) - .object(const $Request_BuilderType()); + @_$jni.internal + @_$core.override + RequestBody_Companion fromReference(_$jni.JReference reference) => RequestBody_Companion.fromReference( + + reference + ); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($RequestBody_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RequestBody_Companion$Type) && + other is $RequestBody_Companion$Type; } +} - static final _id_patch = _class.instanceMethodId( - r'patch', - r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', - ); +/// from: `okhttp3.RequestBody` +class RequestBody extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _patch = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + - /// from: public okhttp3.Request$Builder patch(okhttp3.RequestBody requestBody) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder patch( - RequestBody requestBody, - ) { - return _patch(reference.pointer, _id_patch as jni.JMethodIDPtr, - requestBody.reference.pointer) - .object(const $Request_BuilderType()); - } - - static final _id_method = _class.instanceMethodId( - r'method', - r'(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', - ); - - static final _method = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public okhttp3.Request$Builder method(java.lang.String string, okhttp3.RequestBody requestBody) + @_$jni.internal + RequestBody.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody'); + + /// The type which includes information such as the signature of this class. +static const type = $RequestBody$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lokhttp3/RequestBody$Companion;', + ); + /// from: `static public final okhttp3.RequestBody$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - Request_Builder method( - jni.JString string, - RequestBody requestBody, - ) { - return _method(reference.pointer, _id_method as jni.JMethodIDPtr, - string.reference.pointer, requestBody.reference.pointer) - .object(const $Request_BuilderType()); - } +static RequestBody_Companion get Companion => _id_Companion.get(_class, const $RequestBody_Companion$Type()); + +} +final class $RequestBody$Type extends _$jni.JObjType { + - static final _id_tag = _class.instanceMethodId( - r'tag', - r'(Ljava/lang/Object;)Lokhttp3/Request$Builder;', + @_$jni.internal + const $RequestBody$Type( + ); - static final _tag = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/RequestBody;'; - /// from: public okhttp3.Request$Builder tag(java.lang.Object object) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder tag( - jni.JObject object, - ) { - return _tag(reference.pointer, _id_tag as jni.JMethodIDPtr, - object.reference.pointer) - .object(const $Request_BuilderType()); - } - - static final _id_tag1 = _class.instanceMethodId( - r'tag', - r'(Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;', - ); - - static final _tag1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public okhttp3.Request$Builder tag(java.lang.Class class, T object) - /// The returned object must be released after use, by calling the [release] method. - Request_Builder tag1<$T extends jni.JObject>( - jni.JObject class0, - $T object, { - jni.JObjType<$T>? T, - }) { - T ??= jni.lowestCommonSuperType([ - object.$type, - ]) as jni.JObjType<$T>; - return _tag1(reference.pointer, _id_tag1 as jni.JMethodIDPtr, - class0.reference.pointer, object.reference.pointer) - .object(const $Request_BuilderType()); - } - - static final _id_build = _class.instanceMethodId( - r'build', - r'()Lokhttp3/Request;', + @_$jni.internal + @_$core.override + RequestBody fromReference(_$jni.JReference reference) => RequestBody.fromReference( + + reference ); - static final _build = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public okhttp3.Request build() - /// The returned object must be released after use, by calling the [release] method. - Request build() { - return _build(reference.pointer, _id_build as jni.JMethodIDPtr) - .object(const $RequestType()); + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($RequestBody$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RequestBody$Type) && + other is $RequestBody$Type; } +} - static final _id_delete1 = _class.instanceMethodId( - r'delete', - r'()Lokhttp3/Request$Builder;', - ); +/// from: `okhttp3.Response$Builder` +class Response_Builder extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _delete1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final okhttp3.Request$Builder delete() - /// The returned object must be released after use, by calling the [release] method. - Request_Builder delete1() { - return _delete1(reference.pointer, _id_delete1 as jni.JMethodIDPtr) - .object(const $Request_BuilderType()); - } + @_$jni.internal + Response_Builder.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/Response$Builder'); + + /// The type which includes information such as the signature of this class. +static const type = $Response_Builder$Type(); } +final class $Response_Builder$Type extends _$jni.JObjType { + -final class $Request_BuilderType extends jni.JObjType { - const $Request_BuilderType(); + @_$jni.internal + const $Response_Builder$Type( + + ); - @override - String get signature => r'Lokhttp3/Request$Builder;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Response$Builder;'; - @override - Request_Builder fromReference(jni.JReference reference) => - Request_Builder.fromReference(reference); + @_$jni.internal + @_$core.override + Response_Builder fromReference(_$jni.JReference reference) => Response_Builder.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($Request_BuilderType).hashCode; + @_$core.override + int get hashCode => ($Response_Builder$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Request_BuilderType) && - other is $Request_BuilderType; + return other.runtimeType == ($Response_Builder$Type) && + other is $Response_Builder$Type; } } -/// from: okhttp3.Request -class Request extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.Response` +class Response extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - Request.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Request'); - - /// The type which includes information such as the signature of this class. - static const type = $RequestType(); - static final _id_new0 = _class.constructorId( - r'(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: public void (okhttp3.HttpUrl httpUrl, java.lang.String string, okhttp3.Headers headers, okhttp3.RequestBody requestBody, java.util.Map map) - /// The returned object must be released after use, by calling the [release] method. - factory Request( - jni.JObject httpUrl, - jni.JString string, - Headers headers, - RequestBody requestBody, - jni.JMap map, - ) { - return Request.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - httpUrl.reference.pointer, - string.reference.pointer, - headers.reference.pointer, - requestBody.reference.pointer, - map.reference.pointer) - .reference); - } - - static final _id_url = _class.instanceMethodId( - r'url', - r'()Lokhttp3/HttpUrl;', - ); + + + @_$jni.internal + Response.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _url = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _class = _$jni.JClass.forName(r'okhttp3/Response'); + + /// The type which includes information such as the signature of this class. +static const type = $Response$Type(); + static final _id_-deprecated_request = _class.instanceMethodId( + r'-deprecated_request', + r'()Lokhttp3/Request;', + ); - /// from: public final okhttp3.HttpUrl url() + static final _-deprecated_request = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Request -deprecated_request()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject url() { - return _url(reference.pointer, _id_url as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + Request -deprecated_request(){ + + return _-deprecated_request(reference.pointer, _id_-deprecated_request as _$jni.JMethodIDPtr).object(const $Request$Type()); } - static final _id_method = _class.instanceMethodId( - r'method', - r'()Ljava/lang/String;', + static final _id_-deprecated_protocol = _class.instanceMethodId( + r'-deprecated_protocol', + r'()Lokhttp3/Protocol;', ); - static final _method = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.lang.String method() + static final _-deprecated_protocol = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Protocol -deprecated_protocol()` /// The returned object must be released after use, by calling the [release] method. - jni.JString method() { - return _method(reference.pointer, _id_method as jni.JMethodIDPtr) - .object(const jni.JStringType()); + _$jni.JObject -deprecated_protocol(){ + + return _-deprecated_protocol(reference.pointer, _id_-deprecated_protocol as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_headers = _class.instanceMethodId( - r'headers', - r'()Lokhttp3/Headers;', + static final _id_-deprecated_code = _class.instanceMethodId( + r'-deprecated_code', + r'()I', ); - static final _headers = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _-deprecated_code = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_code()` + int -deprecated_code(){ + + return _-deprecated_code(reference.pointer, _id_-deprecated_code as _$jni.JMethodIDPtr).integer; + } + + static final _id_-deprecated_message = _class.instanceMethodId( + r'-deprecated_message', + r'()Ljava/lang/String;', + ); - /// from: public final okhttp3.Headers headers() + static final _-deprecated_message = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.lang.String -deprecated_message()` /// The returned object must be released after use, by calling the [release] method. - Headers headers() { - return _headers(reference.pointer, _id_headers as jni.JMethodIDPtr) - .object(const $HeadersType()); + _$jni.JString -deprecated_message(){ + + return _-deprecated_message(reference.pointer, _id_-deprecated_message as _$jni.JMethodIDPtr).object(const _$jni.JStringType()); } - static final _id_body = _class.instanceMethodId( - r'body', - r'()Lokhttp3/RequestBody;', + static final _id_-deprecated_handshake = _class.instanceMethodId( + r'-deprecated_handshake', + r'()Lokhttp3/Handshake;', ); - static final _body = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.RequestBody body() + static final _-deprecated_handshake = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Handshake -deprecated_handshake()` /// The returned object must be released after use, by calling the [release] method. - RequestBody body() { - return _body(reference.pointer, _id_body as jni.JMethodIDPtr) - .object(const $RequestBodyType()); + _$jni.JObject -deprecated_handshake(){ + + return _-deprecated_handshake(reference.pointer, _id_-deprecated_handshake as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_isHttps = _class.instanceMethodId( - r'isHttps', - r'()Z', + static final _id_-deprecated_headers = _class.instanceMethodId( + r'-deprecated_headers', + r'()Lokhttp3/Headers;', ); - static final _isHttps = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final boolean isHttps() - bool isHttps() { - return _isHttps(reference.pointer, _id_isHttps as jni.JMethodIDPtr).boolean; - } - - static final _id_header = _class.instanceMethodId( - r'header', - r'(Ljava/lang/String;)Ljava/lang/String;', - ); - - static final _header = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.lang.String header(java.lang.String string) + static final _-deprecated_headers = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Headers -deprecated_headers()` /// The returned object must be released after use, by calling the [release] method. - jni.JString header( - jni.JString string, - ) { - return _header(reference.pointer, _id_header as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JStringType()); + Headers -deprecated_headers(){ + + return _-deprecated_headers(reference.pointer, _id_-deprecated_headers as _$jni.JMethodIDPtr).object(const $Headers$Type()); } - static final _id_headers1 = _class.instanceMethodId( - r'headers', - r'(Ljava/lang/String;)Ljava/util/List;', + static final _id_-deprecated_body = _class.instanceMethodId( + r'-deprecated_body', + r'()Lokhttp3/ResponseBody;', ); - static final _headers1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.util.List headers(java.lang.String string) + static final _-deprecated_body = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.ResponseBody -deprecated_body()` /// The returned object must be released after use, by calling the [release] method. - jni.JList headers1( - jni.JString string, - ) { - return _headers1(reference.pointer, _id_headers1 as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JListType(jni.JStringType())); + ResponseBody -deprecated_body(){ + + return _-deprecated_body(reference.pointer, _id_-deprecated_body as _$jni.JMethodIDPtr).object(const $ResponseBody$Type()); } - static final _id_tag = _class.instanceMethodId( - r'tag', - r'()Ljava/lang/Object;', + static final _id_-deprecated_networkResponse = _class.instanceMethodId( + r'-deprecated_networkResponse', + r'()Lokhttp3/Response;', ); - static final _tag = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.lang.Object tag() + static final _-deprecated_networkResponse = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Response -deprecated_networkResponse()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject tag() { - return _tag(reference.pointer, _id_tag as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + Response -deprecated_networkResponse(){ + + return _-deprecated_networkResponse(reference.pointer, _id_-deprecated_networkResponse as _$jni.JMethodIDPtr).object(const $Response$Type()); } - static final _id_tag1 = _class.instanceMethodId( - r'tag', - r'(Ljava/lang/Class;)Ljava/lang/Object;', + static final _id_-deprecated_cacheResponse = _class.instanceMethodId( + r'-deprecated_cacheResponse', + r'()Lokhttp3/Response;', ); - static final _tag1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final T tag(java.lang.Class class) + static final _-deprecated_cacheResponse = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Response -deprecated_cacheResponse()` /// The returned object must be released after use, by calling the [release] method. - $T tag1<$T extends jni.JObject>( - jni.JObject class0, { - required jni.JObjType<$T> T, - }) { - return _tag1(reference.pointer, _id_tag1 as jni.JMethodIDPtr, - class0.reference.pointer) - .object(T); - } - - static final _id_newBuilder = _class.instanceMethodId( - r'newBuilder', - r'()Lokhttp3/Request$Builder;', - ); - - static final _newBuilder = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Request$Builder newBuilder() + Response -deprecated_cacheResponse(){ + + return _-deprecated_cacheResponse(reference.pointer, _id_-deprecated_cacheResponse as _$jni.JMethodIDPtr).object(const $Response$Type()); + } + + static final _id_-deprecated_priorResponse = _class.instanceMethodId( + r'-deprecated_priorResponse', + r'()Lokhttp3/Response;', + ); + + static final _-deprecated_priorResponse = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Response -deprecated_priorResponse()` /// The returned object must be released after use, by calling the [release] method. - Request_Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni.JMethodIDPtr) - .object(const $Request_BuilderType()); + Response -deprecated_priorResponse(){ + + return _-deprecated_priorResponse(reference.pointer, _id_-deprecated_priorResponse as _$jni.JMethodIDPtr).object(const $Response$Type()); } - static final _id_cacheControl = _class.instanceMethodId( - r'cacheControl', + static final _id_-deprecated_cacheControl = _class.instanceMethodId( + r'-deprecated_cacheControl', r'()Lokhttp3/CacheControl;', ); - static final _cacheControl = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.CacheControl cacheControl() + static final _-deprecated_cacheControl = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.CacheControl -deprecated_cacheControl()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject cacheControl() { - return _cacheControl( - reference.pointer, _id_cacheControl as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject -deprecated_cacheControl(){ + + return _-deprecated_cacheControl(reference.pointer, _id_-deprecated_cacheControl as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_toString1 = _class.instanceMethodId( - r'toString', - r'()Ljava/lang/String;', + static final _id_-deprecated_sentRequestAtMillis = _class.instanceMethodId( + r'-deprecated_sentRequestAtMillis', + r'()J', ); - static final _toString1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _-deprecated_sentRequestAtMillis = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final long -deprecated_sentRequestAtMillis()` + int -deprecated_sentRequestAtMillis(){ + + return _-deprecated_sentRequestAtMillis(reference.pointer, _id_-deprecated_sentRequestAtMillis as _$jni.JMethodIDPtr).long; + } + + static final _id_-deprecated_receivedResponseAtMillis = _class.instanceMethodId( + r'-deprecated_receivedResponseAtMillis', + r'()J', + ); - /// from: public java.lang.String toString() - /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() { - return _toString1(reference.pointer, _id_toString1 as jni.JMethodIDPtr) - .object(const jni.JStringType()); + static final _-deprecated_receivedResponseAtMillis = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final long -deprecated_receivedResponseAtMillis()` + int -deprecated_receivedResponseAtMillis(){ + + return _-deprecated_receivedResponseAtMillis(reference.pointer, _id_-deprecated_receivedResponseAtMillis as _$jni.JMethodIDPtr).long; } + } +final class $Response$Type extends _$jni.JObjType { + -final class $RequestType extends jni.JObjType { - const $RequestType(); + @_$jni.internal + const $Response$Type( + + ); - @override - String get signature => r'Lokhttp3/Request;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Response;'; - @override - Request fromReference(jni.JReference reference) => - Request.fromReference(reference); + @_$jni.internal + @_$core.override + Response fromReference(_$jni.JReference reference) => Response.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($RequestType).hashCode; + @_$core.override + int get hashCode => ($Response$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($RequestType) && other is $RequestType; + return other.runtimeType == ($Response$Type) && + other is $Response$Type; } } -/// from: okhttp3.RequestBody$Companion -class RequestBody_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.ResponseBody$BomAwareReader` +class ResponseBody_BomAwareReader extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - RequestBody_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/RequestBody$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $RequestBody_CompanionType(); - static final _id_create = _class.instanceMethodId( - r'create', - r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create( - jni.JString string, - jni.JObject mediaType, - ) { - return _create(reference.pointer, _id_create as jni.JMethodIDPtr, - string.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create1 = _class.instanceMethodId( - r'create', - r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(okio.ByteString byteString, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create1( - ByteString byteString, - jni.JObject mediaType, - ) { - return _create1(reference.pointer, _id_create1 as jni.JMethodIDPtr, - byteString.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create2 = _class.instanceMethodId( - r'create', - r'([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;', - ); - - static final _create2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32, - $Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int, int)>(); - - /// from: public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create2( - jni.JArray bs, - jni.JObject mediaType, - int i, - int i1, - ) { - return _create2(reference.pointer, _id_create2 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer, i, i1) - .object(const $RequestBodyType()); - } - - static final _id_create3 = _class.instanceMethodId( - r'create', - r'(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create3( - jni.JObject file, - jni.JObject mediaType, - ) { - return _create3(reference.pointer, _id_create3 as jni.JMethodIDPtr, - file.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create4 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;', - ); - - static final _create4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create4( - jni.JObject mediaType, - jni.JString string, - ) { - return _create4(reference.pointer, _id_create4 as jni.JMethodIDPtr, - mediaType.reference.pointer, string.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create5 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;', - ); - - static final _create5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create5( - jni.JObject mediaType, - ByteString byteString, - ) { - return _create5(reference.pointer, _id_create5 as jni.JMethodIDPtr, - mediaType.reference.pointer, byteString.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create6 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;', - ); - - static final _create6 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32, - $Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int, int)>(); - - /// from: public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create6( - jni.JObject mediaType, - jni.JArray bs, - int i, - int i1, - ) { - return _create6(reference.pointer, _id_create6 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer, i, i1) - .object(const $RequestBodyType()); - } - - static final _id_create7 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;', - ); - - static final _create7 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create7( - jni.JObject mediaType, - jni.JObject file, - ) { - return _create7(reference.pointer, _id_create7 as jni.JMethodIDPtr, - mediaType.reference.pointer, file.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create8 = _class.instanceMethodId( - r'create', - r'([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;', - ); - - static final _create8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); - - /// from: public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create8( - jni.JArray bs, - jni.JObject mediaType, - int i, - ) { - return _create8(reference.pointer, _id_create8 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer, i) - .object(const $RequestBodyType()); - } - - static final _id_create9 = _class.instanceMethodId( - r'create', - r'([BLokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create9 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create9( - jni.JArray bs, - jni.JObject mediaType, - ) { - return _create9(reference.pointer, _id_create9 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } + + + @_$jni.internal + ResponseBody_BomAwareReader.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); + + /// The type which includes information such as the signature of this class. +static const type = $ResponseBody_BomAwareReader$Type(); +} +final class $ResponseBody_BomAwareReader$Type extends _$jni.JObjType { + - static final _id_create10 = _class.instanceMethodId( - r'create', - r'([B)Lokhttp3/RequestBody;', + @_$jni.internal + const $ResponseBody_BomAwareReader$Type( + ); - static final _create10 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ResponseBody$BomAwareReader;'; - /// from: public final okhttp3.RequestBody create(byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create10( - jni.JArray bs, - ) { - return _create10(reference.pointer, _id_create10 as jni.JMethodIDPtr, - bs.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create11 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;', - ); - - static final _create11 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); - - /// from: public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create11( - jni.JObject mediaType, - jni.JArray bs, - int i, - ) { - return _create11(reference.pointer, _id_create11 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer, i) - .object(const $RequestBodyType()); - } - - static final _id_create12 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;', - ); - - static final _create12 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - RequestBody create12( - jni.JObject mediaType, - jni.JArray bs, - ) { - return _create12(reference.pointer, _id_create12 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer) - .object(const $RequestBodyType()); + @_$jni.internal + @_$core.override + ResponseBody_BomAwareReader fromReference(_$jni.JReference reference) => ResponseBody_BomAwareReader.fromReference( + + reference + ); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ResponseBody_BomAwareReader$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ResponseBody_BomAwareReader$Type) && + other is $ResponseBody_BomAwareReader$Type; } +} - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', +/// from: `okhttp3.ResponseBody$Companion` +class ResponseBody_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + + + @_$jni.internal + ResponseBody_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody$Companion'); + + /// The type which includes information such as the signature of this class. +static const type = $ResponseBody_Companion$Type(); +} +final class $ResponseBody_Companion$Type extends _$jni.JObjType { + + + @_$jni.internal + const $ResponseBody_Companion$Type( + ); - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ResponseBody$Companion;'; - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory RequestBody_Companion( - jni.JObject defaultConstructorMarker, - ) { - return RequestBody_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); + @_$jni.internal + @_$core.override + ResponseBody_Companion fromReference(_$jni.JReference reference) => ResponseBody_Companion.fromReference( + + reference + ); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ResponseBody_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ResponseBody_Companion$Type) && + other is $ResponseBody_Companion$Type; } } -final class $RequestBody_CompanionType - extends jni.JObjType { - const $RequestBody_CompanionType(); +/// from: `okhttp3.ResponseBody` +class ResponseBody extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - @override - String get signature => r'Lokhttp3/RequestBody$Companion;'; + + + @_$jni.internal + ResponseBody.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody'); + + /// The type which includes information such as the signature of this class. +static const type = $ResponseBody$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lokhttp3/ResponseBody$Companion;', + ); + /// from: `static public final okhttp3.ResponseBody$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. +static ResponseBody_Companion get Companion => _id_Companion.get(_class, const $ResponseBody_Companion$Type()); + +} +final class $ResponseBody$Type extends _$jni.JObjType { + + + @_$jni.internal + const $ResponseBody$Type( + + ); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ResponseBody;'; - @override - RequestBody_Companion fromReference(jni.JReference reference) => - RequestBody_Companion.fromReference(reference); + @_$jni.internal + @_$core.override + ResponseBody fromReference(_$jni.JReference reference) => ResponseBody.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($RequestBody_CompanionType).hashCode; + @_$core.override + int get hashCode => ($ResponseBody$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($RequestBody_CompanionType) && - other is $RequestBody_CompanionType; + return other.runtimeType == ($ResponseBody$Type) && + other is $ResponseBody$Type; } } -/// from: okhttp3.RequestBody -class RequestBody extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.OkHttpClient$Builder` +class OkHttpClient_Builder extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - RequestBody.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + + + @_$jni.internal + OkHttpClient_Builder.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _class = jni.JClass.forName(r'okhttp3/RequestBody'); + static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Builder'); - /// The type which includes information such as the signature of this class. - static const type = $RequestBodyType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/RequestBody$Companion;', + /// The type which includes information such as the signature of this class. +static const type = $OkHttpClient_Builder$Type(); + static final _id_-addInterceptor = _class.instanceMethodId( + r'-addInterceptor', + r'(Lkotlin/jvm/functions/Function1;)Lokhttp3/OkHttpClient$Builder;', ); - /// from: static public final okhttp3.RequestBody$Companion Companion + static final _-addInterceptor = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okhttp3.OkHttpClient$Builder -addInterceptor(kotlin.jvm.functions.Function1 function1)` /// The returned object must be released after use, by calling the [release] method. - static RequestBody_Companion get Companion => - _id_Companion.get(_class, const $RequestBody_CompanionType()); - - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory RequestBody() { - return RequestBody.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } - - static final _id_contentType = _class.instanceMethodId( - r'contentType', - r'()Lokhttp3/MediaType;', - ); - - static final _contentType = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract okhttp3.MediaType contentType() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject contentType() { - return _contentType(reference.pointer, _id_contentType as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + OkHttpClient_Builder -addInterceptor(_$jni.JObject function1, ){ + + return _-addInterceptor(reference.pointer, _id_-addInterceptor as _$jni.JMethodIDPtr, function1.reference.pointer).object(const $OkHttpClient_Builder$Type()); } - static final _id_contentLength = _class.instanceMethodId( - r'contentLength', - r'()J', + static final _id_-addNetworkInterceptor = _class.instanceMethodId( + r'-addNetworkInterceptor', + r'(Lkotlin/jvm/functions/Function1;)Lokhttp3/OkHttpClient$Builder;', ); - static final _contentLength = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public long contentLength() - int contentLength() { - return _contentLength( - reference.pointer, _id_contentLength as jni.JMethodIDPtr) - .long; - } - - static final _id_writeTo = _class.instanceMethodId( - r'writeTo', - r'(Lokio/BufferedSink;)V', - ); - - static final _writeTo = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public abstract void writeTo(okio.BufferedSink bufferedSink) - void writeTo( - jni.JObject bufferedSink, - ) { - _writeTo(reference.pointer, _id_writeTo as jni.JMethodIDPtr, - bufferedSink.reference.pointer) - .check(); + static final _-addNetworkInterceptor = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okhttp3.OkHttpClient$Builder -addNetworkInterceptor(kotlin.jvm.functions.Function1 function1)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder -addNetworkInterceptor(_$jni.JObject function1, ){ + + return _-addNetworkInterceptor(reference.pointer, _id_-addNetworkInterceptor as _$jni.JMethodIDPtr, function1.reference.pointer).object(const $OkHttpClient_Builder$Type()); } - static final _id_isDuplex = _class.instanceMethodId( - r'isDuplex', - r'()Z', - ); +} +final class $OkHttpClient_Builder$Type extends _$jni.JObjType { + - static final _isDuplex = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + const $OkHttpClient_Builder$Type( + + ); - /// from: public boolean isDuplex() - bool isDuplex() { - return _isDuplex(reference.pointer, _id_isDuplex as jni.JMethodIDPtr) - .boolean; - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/OkHttpClient$Builder;'; - static final _id_isOneShot = _class.instanceMethodId( - r'isOneShot', - r'()Z', + @_$jni.internal + @_$core.override + OkHttpClient_Builder fromReference(_$jni.JReference reference) => OkHttpClient_Builder.fromReference( + + reference ); - static final _isOneShot = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public boolean isOneShot() - bool isOneShot() { - return _isOneShot(reference.pointer, _id_isOneShot as jni.JMethodIDPtr) - .boolean; - } - - static final _id_create = _class.staticMethodId( - r'create', - r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create( - jni.JString string, - jni.JObject mediaType, - ) { - return _create(_class.reference.pointer, _id_create as jni.JMethodIDPtr, - string.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create1 = _class.staticMethodId( - r'create', - r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(okio.ByteString byteString, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create1( - ByteString byteString, - jni.JObject mediaType, - ) { - return _create1(_class.reference.pointer, _id_create1 as jni.JMethodIDPtr, - byteString.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create2 = _class.staticMethodId( - r'create', - r'([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;', - ); - - static final _create2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32, - $Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int, int)>(); - - /// from: static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create2( - jni.JArray bs, - jni.JObject mediaType, - int i, - int i1, - ) { - return _create2(_class.reference.pointer, _id_create2 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer, i, i1) - .object(const $RequestBodyType()); - } - - static final _id_create3 = _class.staticMethodId( - r'create', - r'(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create3( - jni.JObject file, - jni.JObject mediaType, - ) { - return _create3(_class.reference.pointer, _id_create3 as jni.JMethodIDPtr, - file.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create4 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;', - ); - - static final _create4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create4( - jni.JObject mediaType, - jni.JString string, - ) { - return _create4(_class.reference.pointer, _id_create4 as jni.JMethodIDPtr, - mediaType.reference.pointer, string.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create5 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;', - ); - - static final _create5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create5( - jni.JObject mediaType, - ByteString byteString, - ) { - return _create5(_class.reference.pointer, _id_create5 as jni.JMethodIDPtr, - mediaType.reference.pointer, byteString.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create6 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;', - ); - - static final _create6 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32, - $Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int, int)>(); - - /// from: static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create6( - jni.JObject mediaType, - jni.JArray bs, - int i, - int i1, - ) { - return _create6(_class.reference.pointer, _id_create6 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer, i, i1) - .object(const $RequestBodyType()); - } - - static final _id_create7 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;', - ); - - static final _create7 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create7( - jni.JObject mediaType, - jni.JObject file, - ) { - return _create7(_class.reference.pointer, _id_create7 as jni.JMethodIDPtr, - mediaType.reference.pointer, file.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create8 = _class.staticMethodId( - r'create', - r'([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;', - ); - - static final _create8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); - - /// from: static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create8( - jni.JArray bs, - jni.JObject mediaType, - int i, - ) { - return _create8(_class.reference.pointer, _id_create8 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer, i) - .object(const $RequestBodyType()); - } - - static final _id_create9 = _class.staticMethodId( - r'create', - r'([BLokhttp3/MediaType;)Lokhttp3/RequestBody;', - ); - - static final _create9 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create9( - jni.JArray bs, - jni.JObject mediaType, - ) { - return _create9(_class.reference.pointer, _id_create9 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create10 = _class.staticMethodId( - r'create', - r'([B)Lokhttp3/RequestBody;', - ); - - static final _create10 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create10( - jni.JArray bs, - ) { - return _create10(_class.reference.pointer, _id_create10 as jni.JMethodIDPtr, - bs.reference.pointer) - .object(const $RequestBodyType()); - } - - static final _id_create11 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;', - ); - - static final _create11 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - $Int32 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); - - /// from: static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create11( - jni.JObject mediaType, - jni.JArray bs, - int i, - ) { - return _create11(_class.reference.pointer, _id_create11 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer, i) - .object(const $RequestBodyType()); - } - - static final _id_create12 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;', - ); - - static final _create12 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - static RequestBody create12( - jni.JObject mediaType, - jni.JArray bs, - ) { - return _create12(_class.reference.pointer, _id_create12 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer) - .object(const $RequestBodyType()); - } -} - -final class $RequestBodyType extends jni.JObjType { - const $RequestBodyType(); - - @override - String get signature => r'Lokhttp3/RequestBody;'; + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override - RequestBody fromReference(jni.JReference reference) => - RequestBody.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($RequestBodyType).hashCode; + @_$core.override + int get hashCode => ($OkHttpClient_Builder$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($RequestBodyType) && other is $RequestBodyType; + return other.runtimeType == ($OkHttpClient_Builder$Type) && + other is $OkHttpClient_Builder$Type; } } -/// from: okhttp3.Response$Builder -class Response_Builder extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.OkHttpClient$Companion` +class OkHttpClient_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - Response_Builder.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Response$Builder'); - - /// The type which includes information such as the signature of this class. - static const type = $Response_BuilderType(); - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory Response_Builder() { - return Response_Builder.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } + - static final _id_new1 = _class.constructorId( - r'(Lokhttp3/Response;)V', - ); + @_$jni.internal + OkHttpClient_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _new1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Companion'); - /// from: public void (okhttp3.Response response) - /// The returned object must be released after use, by calling the [release] method. - factory Response_Builder.new1( - Response response, - ) { - return Response_Builder.fromReference(_new1(_class.reference.pointer, - _id_new1 as jni.JMethodIDPtr, response.reference.pointer) - .reference); - } + /// The type which includes information such as the signature of this class. +static const type = $OkHttpClient_Companion$Type(); +} +final class $OkHttpClient_Companion$Type extends _$jni.JObjType { + - static final _id_request = _class.instanceMethodId( - r'request', - r'(Lokhttp3/Request;)Lokhttp3/Response$Builder;', + @_$jni.internal + const $OkHttpClient_Companion$Type( + ); - static final _request = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder request(okhttp3.Request request) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder request( - Request request, - ) { - return _request(reference.pointer, _id_request as jni.JMethodIDPtr, - request.reference.pointer) - .object(const $Response_BuilderType()); - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/OkHttpClient$Companion;'; - static final _id_protocol = _class.instanceMethodId( - r'protocol', - r'(Lokhttp3/Protocol;)Lokhttp3/Response$Builder;', + @_$jni.internal + @_$core.override + OkHttpClient_Companion fromReference(_$jni.JReference reference) => OkHttpClient_Companion.fromReference( + + reference ); - static final _protocol = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder protocol(okhttp3.Protocol protocol) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder protocol( - jni.JObject protocol, - ) { - return _protocol(reference.pointer, _id_protocol as jni.JMethodIDPtr, - protocol.reference.pointer) - .object(const $Response_BuilderType()); - } + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - static final _id_code = _class.instanceMethodId( - r'code', - r'(I)Lokhttp3/Response$Builder;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _code = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + @_$core.override + int get hashCode => ($OkHttpClient_Companion$Type).hashCode; - /// from: public okhttp3.Response$Builder code(int i) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder code( - int i, - ) { - return _code(reference.pointer, _id_code as jni.JMethodIDPtr, i) - .object(const $Response_BuilderType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($OkHttpClient_Companion$Type) && + other is $OkHttpClient_Companion$Type; } +} - static final _id_message = _class.instanceMethodId( - r'message', - r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', - ); - - static final _message = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); +/// from: `okhttp3.OkHttpClient` +class OkHttpClient extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - /// from: public okhttp3.Response$Builder message(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder message( - jni.JString string, - ) { - return _message(reference.pointer, _id_message as jni.JMethodIDPtr, - string.reference.pointer) - .object(const $Response_BuilderType()); - } + - static final _id_handshake = _class.instanceMethodId( - r'handshake', - r'(Lokhttp3/Handshake;)Lokhttp3/Response$Builder;', - ); + @_$jni.internal + OkHttpClient.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _handshake = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient'); - /// from: public okhttp3.Response$Builder handshake(okhttp3.Handshake handshake) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder handshake( - jni.JObject handshake, - ) { - return _handshake(reference.pointer, _id_handshake as jni.JMethodIDPtr, - handshake.reference.pointer) - .object(const $Response_BuilderType()); - } - - static final _id_header = _class.instanceMethodId( - r'header', - r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', - ); - - static final _header = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder header(java.lang.String string, java.lang.String string1) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder header( - jni.JString string, - jni.JString string1, - ) { - return _header(reference.pointer, _id_header as jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const $Response_BuilderType()); - } - - static final _id_addHeader = _class.instanceMethodId( - r'addHeader', - r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', - ); - - static final _addHeader = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder addHeader(java.lang.String string, java.lang.String string1) + /// The type which includes information such as the signature of this class. +static const type = $OkHttpClient$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lokhttp3/OkHttpClient$Companion;', + ); + /// from: `static public final okhttp3.OkHttpClient$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - Response_Builder addHeader( - jni.JString string, - jni.JString string1, - ) { - return _addHeader(reference.pointer, _id_addHeader as jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const $Response_BuilderType()); - } +static OkHttpClient_Companion get Companion => _id_Companion.get(_class, const $OkHttpClient_Companion$Type()); - static final _id_removeHeader = _class.instanceMethodId( - r'removeHeader', - r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', + static final _id_-deprecated_dispatcher = _class.instanceMethodId( + r'-deprecated_dispatcher', + r'()Lokhttp3/Dispatcher;', ); - static final _removeHeader = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder removeHeader(java.lang.String string) + static final _-deprecated_dispatcher = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Dispatcher -deprecated_dispatcher()` /// The returned object must be released after use, by calling the [release] method. - Response_Builder removeHeader( - jni.JString string, - ) { - return _removeHeader(reference.pointer, - _id_removeHeader as jni.JMethodIDPtr, string.reference.pointer) - .object(const $Response_BuilderType()); + Dispatcher -deprecated_dispatcher(){ + + return _-deprecated_dispatcher(reference.pointer, _id_-deprecated_dispatcher as _$jni.JMethodIDPtr).object(const $Dispatcher$Type()); } - static final _id_headers = _class.instanceMethodId( - r'headers', - r'(Lokhttp3/Headers;)Lokhttp3/Response$Builder;', + static final _id_-deprecated_connectionPool = _class.instanceMethodId( + r'-deprecated_connectionPool', + r'()Lokhttp3/ConnectionPool;', ); - static final _headers = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder headers(okhttp3.Headers headers) + static final _-deprecated_connectionPool = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.ConnectionPool -deprecated_connectionPool()` /// The returned object must be released after use, by calling the [release] method. - Response_Builder headers( - Headers headers, - ) { - return _headers(reference.pointer, _id_headers as jni.JMethodIDPtr, - headers.reference.pointer) - .object(const $Response_BuilderType()); + ConnectionPool -deprecated_connectionPool(){ + + return _-deprecated_connectionPool(reference.pointer, _id_-deprecated_connectionPool as _$jni.JMethodIDPtr).object(const $ConnectionPool$Type()); } - static final _id_body = _class.instanceMethodId( - r'body', - r'(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder;', + static final _id_-deprecated_interceptors = _class.instanceMethodId( + r'-deprecated_interceptors', + r'()Ljava/util/List;', ); - static final _body = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder body(okhttp3.ResponseBody responseBody) + static final _-deprecated_interceptors = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.util.List -deprecated_interceptors()` /// The returned object must be released after use, by calling the [release] method. - Response_Builder body( - ResponseBody responseBody, - ) { - return _body(reference.pointer, _id_body as jni.JMethodIDPtr, - responseBody.reference.pointer) - .object(const $Response_BuilderType()); + _$jni.JList<_$jni.JObject> -deprecated_interceptors(){ + + return _-deprecated_interceptors(reference.pointer, _id_-deprecated_interceptors as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); } - static final _id_networkResponse = _class.instanceMethodId( - r'networkResponse', - r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', + static final _id_-deprecated_networkInterceptors = _class.instanceMethodId( + r'-deprecated_networkInterceptors', + r'()Ljava/util/List;', ); - static final _networkResponse = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder networkResponse(okhttp3.Response response) + static final _-deprecated_networkInterceptors = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.util.List -deprecated_networkInterceptors()` /// The returned object must be released after use, by calling the [release] method. - Response_Builder networkResponse( - Response response, - ) { - return _networkResponse(reference.pointer, - _id_networkResponse as jni.JMethodIDPtr, response.reference.pointer) - .object(const $Response_BuilderType()); + _$jni.JList<_$jni.JObject> -deprecated_networkInterceptors(){ + + return _-deprecated_networkInterceptors(reference.pointer, _id_-deprecated_networkInterceptors as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); } - static final _id_cacheResponse = _class.instanceMethodId( - r'cacheResponse', - r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', + static final _id_-deprecated_eventListenerFactory = _class.instanceMethodId( + r'-deprecated_eventListenerFactory', + r'()Lokhttp3/EventListener$Factory;', ); - static final _cacheResponse = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder cacheResponse(okhttp3.Response response) + static final _-deprecated_eventListenerFactory = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.EventListener$Factory -deprecated_eventListenerFactory()` /// The returned object must be released after use, by calling the [release] method. - Response_Builder cacheResponse( - Response response, - ) { - return _cacheResponse(reference.pointer, - _id_cacheResponse as jni.JMethodIDPtr, response.reference.pointer) - .object(const $Response_BuilderType()); + _$jni.JObject -deprecated_eventListenerFactory(){ + + return _-deprecated_eventListenerFactory(reference.pointer, _id_-deprecated_eventListenerFactory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_priorResponse = _class.instanceMethodId( - r'priorResponse', - r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', + static final _id_-deprecated_retryOnConnectionFailure = _class.instanceMethodId( + r'-deprecated_retryOnConnectionFailure', + r'()Z', ); - static final _priorResponse = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Response$Builder priorResponse(okhttp3.Response response) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder priorResponse( - Response response, - ) { - return _priorResponse(reference.pointer, - _id_priorResponse as jni.JMethodIDPtr, response.reference.pointer) - .object(const $Response_BuilderType()); + static final _-deprecated_retryOnConnectionFailure = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final boolean -deprecated_retryOnConnectionFailure()` + bool -deprecated_retryOnConnectionFailure(){ + + return _-deprecated_retryOnConnectionFailure(reference.pointer, _id_-deprecated_retryOnConnectionFailure as _$jni.JMethodIDPtr).boolean; } - static final _id_sentRequestAtMillis = _class.instanceMethodId( - r'sentRequestAtMillis', - r'(J)Lokhttp3/Response$Builder;', + static final _id_-deprecated_authenticator = _class.instanceMethodId( + r'-deprecated_authenticator', + r'()Lokhttp3/Authenticator;', ); - static final _sentRequestAtMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public okhttp3.Response$Builder sentRequestAtMillis(long j) + static final _-deprecated_authenticator = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Authenticator -deprecated_authenticator()` /// The returned object must be released after use, by calling the [release] method. - Response_Builder sentRequestAtMillis( - int j, - ) { - return _sentRequestAtMillis( - reference.pointer, _id_sentRequestAtMillis as jni.JMethodIDPtr, j) - .object(const $Response_BuilderType()); + _$jni.JObject -deprecated_authenticator(){ + + return _-deprecated_authenticator(reference.pointer, _id_-deprecated_authenticator as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_receivedResponseAtMillis = _class.instanceMethodId( - r'receivedResponseAtMillis', - r'(J)Lokhttp3/Response$Builder;', + static final _id_-deprecated_followRedirects = _class.instanceMethodId( + r'-deprecated_followRedirects', + r'()Z', ); - static final _receivedResponseAtMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public okhttp3.Response$Builder receivedResponseAtMillis(long j) - /// The returned object must be released after use, by calling the [release] method. - Response_Builder receivedResponseAtMillis( - int j, - ) { - return _receivedResponseAtMillis(reference.pointer, - _id_receivedResponseAtMillis as jni.JMethodIDPtr, j) - .object(const $Response_BuilderType()); + static final _-deprecated_followRedirects = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final boolean -deprecated_followRedirects()` + bool -deprecated_followRedirects(){ + + return _-deprecated_followRedirects(reference.pointer, _id_-deprecated_followRedirects as _$jni.JMethodIDPtr).boolean; } - static final _id_build = _class.instanceMethodId( - r'build', - r'()Lokhttp3/Response;', + static final _id_-deprecated_followSslRedirects = _class.instanceMethodId( + r'-deprecated_followSslRedirects', + r'()Z', ); - static final _build = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public okhttp3.Response build() - /// The returned object must be released after use, by calling the [release] method. - Response build() { - return _build(reference.pointer, _id_build as jni.JMethodIDPtr) - .object(const $ResponseType()); - } -} - -final class $Response_BuilderType extends jni.JObjType { - const $Response_BuilderType(); - - @override - String get signature => r'Lokhttp3/Response$Builder;'; - - @override - Response_Builder fromReference(jni.JReference reference) => - Response_Builder.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($Response_BuilderType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($Response_BuilderType) && - other is $Response_BuilderType; + static final _-deprecated_followSslRedirects = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final boolean -deprecated_followSslRedirects()` + bool -deprecated_followSslRedirects(){ + + return _-deprecated_followSslRedirects(reference.pointer, _id_-deprecated_followSslRedirects as _$jni.JMethodIDPtr).boolean; } -} -/// from: okhttp3.Response -class Response extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Response.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Response'); - - /// The type which includes information such as the signature of this class. - static const type = $ResponseType(); - static final _id_new0 = _class.constructorId( - r'(Lokhttp3/Request;Lokhttp3/Protocol;Ljava/lang/String;ILokhttp3/Handshake;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLokhttp3/internal/connection/Exchange;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - $Int32, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Int64, - ffi.Int64, - ffi.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer, - int, - int, - ffi.Pointer)>(); - - /// from: public void (okhttp3.Request request, okhttp3.Protocol protocol, java.lang.String string, int i, okhttp3.Handshake handshake, okhttp3.Headers headers, okhttp3.ResponseBody responseBody, okhttp3.Response response, okhttp3.Response response1, okhttp3.Response response2, long j, long j1, okhttp3.internal.connection.Exchange exchange) - /// The returned object must be released after use, by calling the [release] method. - factory Response( - Request request, - jni.JObject protocol, - jni.JString string, - int i, - jni.JObject handshake, - Headers headers, - ResponseBody responseBody, - Response response, - Response response1, - Response response2, - int j, - int j1, - jni.JObject exchange, - ) { - return Response.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - request.reference.pointer, - protocol.reference.pointer, - string.reference.pointer, - i, - handshake.reference.pointer, - headers.reference.pointer, - responseBody.reference.pointer, - response.reference.pointer, - response1.reference.pointer, - response2.reference.pointer, - j, - j1, - exchange.reference.pointer) - .reference); - } - - static final _id_request = _class.instanceMethodId( - r'request', - r'()Lokhttp3/Request;', + static final _id_-deprecated_cookieJar = _class.instanceMethodId( + r'-deprecated_cookieJar', + r'()Lokhttp3/CookieJar;', ); - static final _request = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Request request() + static final _-deprecated_cookieJar = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.CookieJar -deprecated_cookieJar()` /// The returned object must be released after use, by calling the [release] method. - Request request() { - return _request(reference.pointer, _id_request as jni.JMethodIDPtr) - .object(const $RequestType()); + _$jni.JObject -deprecated_cookieJar(){ + + return _-deprecated_cookieJar(reference.pointer, _id_-deprecated_cookieJar as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_protocol = _class.instanceMethodId( - r'protocol', - r'()Lokhttp3/Protocol;', + static final _id_-deprecated_cache = _class.instanceMethodId( + r'-deprecated_cache', + r'()Lokhttp3/Cache;', ); - static final _protocol = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Protocol protocol() + static final _-deprecated_cache = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Cache -deprecated_cache()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject protocol() { - return _protocol(reference.pointer, _id_protocol as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + Cache -deprecated_cache(){ + + return _-deprecated_cache(reference.pointer, _id_-deprecated_cache as _$jni.JMethodIDPtr).object(const $Cache$Type()); } - static final _id_message = _class.instanceMethodId( - r'message', - r'()Ljava/lang/String;', + static final _id_-deprecated_dns = _class.instanceMethodId( + r'-deprecated_dns', + r'()Lokhttp3/Dns;', ); - static final _message = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.lang.String message() + static final _-deprecated_dns = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Dns -deprecated_dns()` /// The returned object must be released after use, by calling the [release] method. - jni.JString message() { - return _message(reference.pointer, _id_message as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_code = _class.instanceMethodId( - r'code', - r'()I', - ); - - static final _code = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int code() - int code() { - return _code(reference.pointer, _id_code as jni.JMethodIDPtr).integer; + _$jni.JObject -deprecated_dns(){ + + return _-deprecated_dns(reference.pointer, _id_-deprecated_dns as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_handshake = _class.instanceMethodId( - r'handshake', - r'()Lokhttp3/Handshake;', + static final _id_-deprecated_proxy = _class.instanceMethodId( + r'-deprecated_proxy', + r'()Ljava/net/Proxy;', ); - static final _handshake = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Handshake handshake() + static final _-deprecated_proxy = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.net.Proxy -deprecated_proxy()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject handshake() { - return _handshake(reference.pointer, _id_handshake as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JObject -deprecated_proxy(){ + + return _-deprecated_proxy(reference.pointer, _id_-deprecated_proxy as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_headers = _class.instanceMethodId( - r'headers', - r'()Lokhttp3/Headers;', + static final _id_-deprecated_proxySelector = _class.instanceMethodId( + r'-deprecated_proxySelector', + r'()Ljava/net/ProxySelector;', ); - static final _headers = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Headers headers() + static final _-deprecated_proxySelector = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.net.ProxySelector -deprecated_proxySelector()` /// The returned object must be released after use, by calling the [release] method. - Headers headers() { - return _headers(reference.pointer, _id_headers as jni.JMethodIDPtr) - .object(const $HeadersType()); + _$jni.JObject -deprecated_proxySelector(){ + + return _-deprecated_proxySelector(reference.pointer, _id_-deprecated_proxySelector as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_body = _class.instanceMethodId( - r'body', - r'()Lokhttp3/ResponseBody;', + static final _id_-deprecated_proxyAuthenticator = _class.instanceMethodId( + r'-deprecated_proxyAuthenticator', + r'()Lokhttp3/Authenticator;', ); - static final _body = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.ResponseBody body() + static final _-deprecated_proxyAuthenticator = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.Authenticator -deprecated_proxyAuthenticator()` /// The returned object must be released after use, by calling the [release] method. - ResponseBody body() { - return _body(reference.pointer, _id_body as jni.JMethodIDPtr) - .object(const $ResponseBodyType()); + _$jni.JObject -deprecated_proxyAuthenticator(){ + + return _-deprecated_proxyAuthenticator(reference.pointer, _id_-deprecated_proxyAuthenticator as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_networkResponse = _class.instanceMethodId( - r'networkResponse', - r'()Lokhttp3/Response;', + static final _id_-deprecated_socketFactory = _class.instanceMethodId( + r'-deprecated_socketFactory', + r'()Ljavax/net/SocketFactory;', ); - static final _networkResponse = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Response networkResponse() + static final _-deprecated_socketFactory = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final javax.net.SocketFactory -deprecated_socketFactory()` /// The returned object must be released after use, by calling the [release] method. - Response networkResponse() { - return _networkResponse( - reference.pointer, _id_networkResponse as jni.JMethodIDPtr) - .object(const $ResponseType()); + _$jni.JObject -deprecated_socketFactory(){ + + return _-deprecated_socketFactory(reference.pointer, _id_-deprecated_socketFactory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_cacheResponse = _class.instanceMethodId( - r'cacheResponse', - r'()Lokhttp3/Response;', + static final _id_-deprecated_sslSocketFactory = _class.instanceMethodId( + r'-deprecated_sslSocketFactory', + r'()Ljavax/net/ssl/SSLSocketFactory;', ); - static final _cacheResponse = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Response cacheResponse() + static final _-deprecated_sslSocketFactory = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final javax.net.ssl.SSLSocketFactory -deprecated_sslSocketFactory()` /// The returned object must be released after use, by calling the [release] method. - Response cacheResponse() { - return _cacheResponse( - reference.pointer, _id_cacheResponse as jni.JMethodIDPtr) - .object(const $ResponseType()); + _$jni.JObject -deprecated_sslSocketFactory(){ + + return _-deprecated_sslSocketFactory(reference.pointer, _id_-deprecated_sslSocketFactory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_priorResponse = _class.instanceMethodId( - r'priorResponse', - r'()Lokhttp3/Response;', + static final _id_-deprecated_connectionSpecs = _class.instanceMethodId( + r'-deprecated_connectionSpecs', + r'()Ljava/util/List;', ); - static final _priorResponse = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Response priorResponse() + static final _-deprecated_connectionSpecs = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.util.List -deprecated_connectionSpecs()` /// The returned object must be released after use, by calling the [release] method. - Response priorResponse() { - return _priorResponse( - reference.pointer, _id_priorResponse as jni.JMethodIDPtr) - .object(const $ResponseType()); - } - - static final _id_sentRequestAtMillis = _class.instanceMethodId( - r'sentRequestAtMillis', - r'()J', - ); - - static final _sentRequestAtMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final long sentRequestAtMillis() - int sentRequestAtMillis() { - return _sentRequestAtMillis( - reference.pointer, _id_sentRequestAtMillis as jni.JMethodIDPtr) - .long; + _$jni.JList<_$jni.JObject> -deprecated_connectionSpecs(){ + + return _-deprecated_connectionSpecs(reference.pointer, _id_-deprecated_connectionSpecs as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); } - static final _id_receivedResponseAtMillis = _class.instanceMethodId( - r'receivedResponseAtMillis', - r'()J', + static final _id_-deprecated_protocols = _class.instanceMethodId( + r'-deprecated_protocols', + r'()Ljava/util/List;', ); - static final _receivedResponseAtMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final long receivedResponseAtMillis() - int receivedResponseAtMillis() { - return _receivedResponseAtMillis( - reference.pointer, _id_receivedResponseAtMillis as jni.JMethodIDPtr) - .long; - } - - static final _id_exchange = _class.instanceMethodId( - r'exchange', - r'()Lokhttp3/internal/connection/Exchange;', - ); - - static final _exchange = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.internal.connection.Exchange exchange() + static final _-deprecated_protocols = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.util.List -deprecated_protocols()` /// The returned object must be released after use, by calling the [release] method. - jni.JObject exchange() { - return _exchange(reference.pointer, _id_exchange as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + _$jni.JList<_$jni.JObject> -deprecated_protocols(){ + + return _-deprecated_protocols(reference.pointer, _id_-deprecated_protocols as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); } - static final _id_isSuccessful = _class.instanceMethodId( - r'isSuccessful', - r'()Z', + static final _id_-deprecated_hostnameVerifier = _class.instanceMethodId( + r'-deprecated_hostnameVerifier', + r'()Ljavax/net/ssl/HostnameVerifier;', ); - static final _isSuccessful = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final boolean isSuccessful() - bool isSuccessful() { - return _isSuccessful( - reference.pointer, _id_isSuccessful as jni.JMethodIDPtr) - .boolean; - } - - static final _id_headers1 = _class.instanceMethodId( - r'headers', - r'(Ljava/lang/String;)Ljava/util/List;', - ); - - static final _headers1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.util.List headers(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - jni.JList headers1( - jni.JString string, - ) { - return _headers1(reference.pointer, _id_headers1 as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JListType(jni.JStringType())); - } - - static final _id_header = _class.instanceMethodId( - r'header', - r'(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', - ); - - static final _header = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final java.lang.String header(java.lang.String string, java.lang.String string1) + static final _-deprecated_hostnameVerifier = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final javax.net.ssl.HostnameVerifier -deprecated_hostnameVerifier()` /// The returned object must be released after use, by calling the [release] method. - jni.JString header( - jni.JString string, - jni.JString string1, - ) { - return _header(reference.pointer, _id_header as jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const jni.JStringType()); + _$jni.JObject -deprecated_hostnameVerifier(){ + + return _-deprecated_hostnameVerifier(reference.pointer, _id_-deprecated_hostnameVerifier as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_trailers = _class.instanceMethodId( - r'trailers', - r'()Lokhttp3/Headers;', + static final _id_-deprecated_certificatePinner = _class.instanceMethodId( + r'-deprecated_certificatePinner', + r'()Lokhttp3/CertificatePinner;', ); - static final _trailers = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Headers trailers() + static final _-deprecated_certificatePinner = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final okhttp3.CertificatePinner -deprecated_certificatePinner()` /// The returned object must be released after use, by calling the [release] method. - Headers trailers() { - return _trailers(reference.pointer, _id_trailers as jni.JMethodIDPtr) - .object(const $HeadersType()); + _$jni.JObject -deprecated_certificatePinner(){ + + return _-deprecated_certificatePinner(reference.pointer, _id_-deprecated_certificatePinner as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } - static final _id_peekBody = _class.instanceMethodId( - r'peekBody', - r'(J)Lokhttp3/ResponseBody;', + static final _id_-deprecated_callTimeoutMillis = _class.instanceMethodId( + r'-deprecated_callTimeoutMillis', + r'()I', ); - static final _peekBody = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public final okhttp3.ResponseBody peekBody(long j) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody peekBody( - int j, - ) { - return _peekBody(reference.pointer, _id_peekBody as jni.JMethodIDPtr, j) - .object(const $ResponseBodyType()); + static final _-deprecated_callTimeoutMillis = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_callTimeoutMillis()` + int -deprecated_callTimeoutMillis(){ + + return _-deprecated_callTimeoutMillis(reference.pointer, _id_-deprecated_callTimeoutMillis as _$jni.JMethodIDPtr).integer; } - static final _id_newBuilder = _class.instanceMethodId( - r'newBuilder', - r'()Lokhttp3/Response$Builder;', + static final _id_-deprecated_connectTimeoutMillis = _class.instanceMethodId( + r'-deprecated_connectTimeoutMillis', + r'()I', ); - static final _newBuilder = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Response$Builder newBuilder() - /// The returned object must be released after use, by calling the [release] method. - Response_Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni.JMethodIDPtr) - .object(const $Response_BuilderType()); + static final _-deprecated_connectTimeoutMillis = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_connectTimeoutMillis()` + int -deprecated_connectTimeoutMillis(){ + + return _-deprecated_connectTimeoutMillis(reference.pointer, _id_-deprecated_connectTimeoutMillis as _$jni.JMethodIDPtr).integer; } - static final _id_isRedirect = _class.instanceMethodId( - r'isRedirect', - r'()Z', + static final _id_-deprecated_readTimeoutMillis = _class.instanceMethodId( + r'-deprecated_readTimeoutMillis', + r'()I', ); - static final _isRedirect = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final boolean isRedirect() - bool isRedirect() { - return _isRedirect(reference.pointer, _id_isRedirect as jni.JMethodIDPtr) - .boolean; + static final _-deprecated_readTimeoutMillis = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_readTimeoutMillis()` + int -deprecated_readTimeoutMillis(){ + + return _-deprecated_readTimeoutMillis(reference.pointer, _id_-deprecated_readTimeoutMillis as _$jni.JMethodIDPtr).integer; } - static final _id_challenges = _class.instanceMethodId( - r'challenges', - r'()Ljava/util/List;', + static final _id_-deprecated_writeTimeoutMillis = _class.instanceMethodId( + r'-deprecated_writeTimeoutMillis', + r'()I', ); - static final _challenges = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.List challenges() - /// The returned object must be released after use, by calling the [release] method. - jni.JList challenges() { - return _challenges(reference.pointer, _id_challenges as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); + static final _-deprecated_writeTimeoutMillis = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_writeTimeoutMillis()` + int -deprecated_writeTimeoutMillis(){ + + return _-deprecated_writeTimeoutMillis(reference.pointer, _id_-deprecated_writeTimeoutMillis as _$jni.JMethodIDPtr).integer; } - static final _id_cacheControl = _class.instanceMethodId( - r'cacheControl', - r'()Lokhttp3/CacheControl;', + static final _id_-deprecated_pingIntervalMillis = _class.instanceMethodId( + r'-deprecated_pingIntervalMillis', + r'()I', ); - static final _cacheControl = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.CacheControl cacheControl() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject cacheControl() { - return _cacheControl( - reference.pointer, _id_cacheControl as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + static final _-deprecated_pingIntervalMillis = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_pingIntervalMillis()` + int -deprecated_pingIntervalMillis(){ + + return _-deprecated_pingIntervalMillis(reference.pointer, _id_-deprecated_pingIntervalMillis as _$jni.JMethodIDPtr).integer; } - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); +} +final class $OkHttpClient$Type extends _$jni.JObjType { + - static final _close = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + const $OkHttpClient$Type( + + ); - /// from: public void close() - void close() { - _close(reference.pointer, _id_close as jni.JMethodIDPtr).check(); - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/OkHttpClient;'; - static final _id_toString1 = _class.instanceMethodId( - r'toString', - r'()Ljava/lang/String;', + @_$jni.internal + @_$core.override + OkHttpClient fromReference(_$jni.JReference reference) => OkHttpClient.fromReference( + + reference ); - static final _toString1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.String toString() - /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() { - return _toString1(reference.pointer, _id_toString1 as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - static final _id_header1 = _class.instanceMethodId( - r'header', - r'(Ljava/lang/String;)Ljava/lang/String;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _header1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$core.override + int get hashCode => ($OkHttpClient$Type).hashCode; - /// from: public final java.lang.String header(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - jni.JString header1( - jni.JString string, - ) { - return _header1(reference.pointer, _id_header1 as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JStringType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($OkHttpClient$Type) && + other is $OkHttpClient$Type; } } -final class $ResponseType extends jni.JObjType { - const $ResponseType(); +/// from: `okhttp3.Call$Factory` +class Call_Factory extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - @override - String get signature => r'Lokhttp3/Response;'; + - @override - Response fromReference(jni.JReference reference) => - Response.fromReference(reference); + @_$jni.internal + Call_Factory.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + static final _class = _$jni.JClass.forName(r'okhttp3/Call$Factory'); - @override - final superCount = 1; + /// The type which includes information such as the signature of this class. +static const type = $Call_Factory$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } - @override - int get hashCode => ($ResponseType).hashCode; + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - @override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseType) && other is $ResponseType; + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; } -} -/// from: okhttp3.ResponseBody$BomAwareReader -class ResponseBody_BomAwareReader extends jni.JObject { - @override - late final jni.JObjType $type = type; - - ResponseBody_BomAwareReader.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); - - /// The type which includes information such as the signature of this class. - static const type = $ResponseBody_BomAwareReaderType(); - static final _id_new0 = _class.constructorId( - r'(Lokio/BufferedSource;Ljava/nio/charset/Charset;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public void (okio.BufferedSource bufferedSource, java.nio.charset.Charset charset) - /// The returned object must be released after use, by calling the [release] method. - factory ResponseBody_BomAwareReader( - jni.JObject bufferedSource, - jni.JObject charset, + static void implementIn( + _$jni.JImplementer implementer, + $Call_Factory $impl, ) { - return ResponseBody_BomAwareReader.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - bufferedSource.reference.pointer, - charset.reference.pointer) - .reference); - } - - static final _id_read = _class.instanceMethodId( - r'read', - r'([CII)I', - ); - - static final _read = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32, $Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int)>(); - - /// from: public int read(char[] cs, int i, int i1) - int read( - jni.JArray cs, - int i, - int i1, + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.Call$Factory', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory Call_Factory.implement( + $Call_Factory $impl, ) { - return _read(reference.pointer, _id_read as jni.JMethodIDPtr, - cs.reference.pointer, i, i1) - .integer; + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return Call_Factory.fromReference( + + $i.implementReference(), + ); } + } +abstract base mixin class $Call_Factory { + factory $Call_Factory( + + ) = _$Call_Factory; + + + +} - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', +final class _$Call_Factory with $Call_Factory { + _$Call_Factory( + ); - static final _close = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + + - /// from: public void close() - void close() { - _close(reference.pointer, _id_close as jni.JMethodIDPtr).check(); - } } +final class $Call_Factory$Type extends _$jni.JObjType { + -final class $ResponseBody_BomAwareReaderType - extends jni.JObjType { - const $ResponseBody_BomAwareReaderType(); + @_$jni.internal + const $Call_Factory$Type( + + ); - @override - String get signature => r'Lokhttp3/ResponseBody$BomAwareReader;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Call$Factory;'; - @override - ResponseBody_BomAwareReader fromReference(jni.JReference reference) => - ResponseBody_BomAwareReader.fromReference(reference); + @_$jni.internal + @_$core.override + Call_Factory fromReference(_$jni.JReference reference) => Call_Factory.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ResponseBody_BomAwareReaderType).hashCode; + @_$core.override + int get hashCode => ($Call_Factory$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody_BomAwareReaderType) && - other is $ResponseBody_BomAwareReaderType; + return other.runtimeType == ($Call_Factory$Type) && + other is $Call_Factory$Type; } } -/// from: okhttp3.ResponseBody$Companion -class ResponseBody_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.Call` +class Call extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - ResponseBody_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/ResponseBody$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $ResponseBody_CompanionType(); - static final _id_create = _class.instanceMethodId( - r'create', - r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', - ); - - static final _create = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.ResponseBody create(java.lang.String string, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create( - jni.JString string, - jni.JObject mediaType, - ) { - return _create(reference.pointer, _id_create as jni.JMethodIDPtr, - string.reference.pointer, mediaType.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create1 = _class.instanceMethodId( - r'create', - r'([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;', - ); - - static final _create1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.ResponseBody create(byte[] bs, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create1( - jni.JArray bs, - jni.JObject mediaType, - ) { - return _create1(reference.pointer, _id_create1 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create2 = _class.instanceMethodId( - r'create', - r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', - ); - - static final _create2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.ResponseBody create(okio.ByteString byteString, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create2( - ByteString byteString, - jni.JObject mediaType, - ) { - return _create2(reference.pointer, _id_create2 as jni.JMethodIDPtr, - byteString.reference.pointer, mediaType.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create3 = _class.instanceMethodId( - r'create', - r'(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;', - ); - - static final _create3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - ffi.Int64 - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); - - /// from: public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create3( - jni.JObject bufferedSource, - jni.JObject mediaType, - int j, - ) { - return _create3(reference.pointer, _id_create3 as jni.JMethodIDPtr, - bufferedSource.reference.pointer, mediaType.reference.pointer, j) - .object(const $ResponseBodyType()); - } - - static final _id_create4 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;', - ); - - static final _create4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create4( - jni.JObject mediaType, - jni.JString string, + + + @_$jni.internal + Call.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/Call'); + + /// The type which includes information such as the signature of this class. +static const type = $Call$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { - return _create4(reference.pointer, _id_create4 as jni.JMethodIDPtr, - mediaType.reference.pointer, string.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create5 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;', - ); - - static final _create5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create5( - jni.JObject mediaType, - jni.JArray bs, + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, ) { - return _create5(reference.pointer, _id_create5 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create6 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;', - ); - - static final _create6 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create6( - jni.JObject mediaType, - ByteString byteString, + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } + + static void implementIn( + _$jni.JImplementer implementer, + $Call $impl, ) { - return _create6(reference.pointer, _id_create6 as jni.JMethodIDPtr, - mediaType.reference.pointer, byteString.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create7 = _class.instanceMethodId( - r'create', - r'(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;', - ); - - static final _create7 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Int64, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, ffi.Pointer)>(); - - /// from: public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource) - /// The returned object must be released after use, by calling the [release] method. - ResponseBody create7( - jni.JObject mediaType, - int j, - jni.JObject bufferedSource, + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.Call', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory Call.implement( + $Call $impl, ) { - return _create7(reference.pointer, _id_create7 as jni.JMethodIDPtr, - mediaType.reference.pointer, j, bufferedSource.reference.pointer) - .object(const $ResponseBodyType()); + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return Call.fromReference( + + $i.implementReference(), + ); } + } +abstract base mixin class $Call { + factory $Call( + + ) = _$Call; + + + +} - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', +final class _$Call with $Call { + _$Call( + ); - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + + - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory ResponseBody_Companion( - jni.JObject defaultConstructorMarker, - ) { - return ResponseBody_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); - } } +final class $Call$Type extends _$jni.JObjType { + -final class $ResponseBody_CompanionType - extends jni.JObjType { - const $ResponseBody_CompanionType(); + @_$jni.internal + const $Call$Type( + + ); - @override - String get signature => r'Lokhttp3/ResponseBody$Companion;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Call;'; - @override - ResponseBody_Companion fromReference(jni.JReference reference) => - ResponseBody_Companion.fromReference(reference); + @_$jni.internal + @_$core.override + Call fromReference(_$jni.JReference reference) => Call.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ResponseBody_CompanionType).hashCode; + @_$core.override + int get hashCode => ($Call$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody_CompanionType) && - other is $ResponseBody_CompanionType; + return other.runtimeType == ($Call$Type) && + other is $Call$Type; } } -/// from: okhttp3.ResponseBody -class ResponseBody extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.Headers$Builder` +class Headers_Builder extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - ResponseBody.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + - static final _class = jni.JClass.forName(r'okhttp3/ResponseBody'); + @_$jni.internal + Headers_Builder.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - /// The type which includes information such as the signature of this class. - static const type = $ResponseBodyType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/ResponseBody$Companion;', - ); + static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Builder'); - /// from: static public final okhttp3.ResponseBody$Companion Companion - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody_Companion get Companion => - _id_Companion.get(_class, const $ResponseBody_CompanionType()); - - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory ResponseBody() { - return ResponseBody.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } - - static final _id_contentType = _class.instanceMethodId( - r'contentType', - r'()Lokhttp3/MediaType;', - ); - - static final _contentType = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract okhttp3.MediaType contentType() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject contentType() { - return _contentType(reference.pointer, _id_contentType as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } + /// The type which includes information such as the signature of this class. +static const type = $Headers_Builder$Type(); +} +final class $Headers_Builder$Type extends _$jni.JObjType { + - static final _id_contentLength = _class.instanceMethodId( - r'contentLength', - r'()J', + @_$jni.internal + const $Headers_Builder$Type( + ); - static final _contentLength = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract long contentLength() - int contentLength() { - return _contentLength( - reference.pointer, _id_contentLength as jni.JMethodIDPtr) - .long; - } - - static final _id_byteStream = _class.instanceMethodId( - r'byteStream', - r'()Ljava/io/InputStream;', - ); - - static final _byteStream = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.io.InputStream byteStream() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject byteStream() { - return _byteStream(reference.pointer, _id_byteStream as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Headers$Builder;'; - static final _id_source = _class.instanceMethodId( - r'source', - r'()Lokio/BufferedSource;', + @_$jni.internal + @_$core.override + Headers_Builder fromReference(_$jni.JReference reference) => Headers_Builder.fromReference( + + reference ); - static final _source = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public abstract okio.BufferedSource source() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject source() { - return _source(reference.pointer, _id_source as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Headers_Builder$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Headers_Builder$Type) && + other is $Headers_Builder$Type; } +} - static final _id_bytes = _class.instanceMethodId( - r'bytes', - r'()[B', - ); +/// from: `okhttp3.Headers$Companion` +class Headers_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _bytes = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final byte[] bytes() + @_$jni.internal + Headers_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Companion'); + + /// The type which includes information such as the signature of this class. +static const type = $Headers_Companion$Type(); + static final _id_-deprecated_of = _class.instanceMethodId( + r'-deprecated_of', + r'([Ljava/lang/String;)Lokhttp3/Headers;', + ); + + static final _-deprecated_of = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okhttp3.Headers -deprecated_of(java.lang.String[] strings)` /// The returned object must be released after use, by calling the [release] method. - jni.JArray bytes() { - return _bytes(reference.pointer, _id_bytes as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jbyteType())); + Headers -deprecated_of(_$jni.JArray<_$jni.JString> strings, ){ + + return _-deprecated_of(reference.pointer, _id_-deprecated_of as _$jni.JMethodIDPtr, strings.reference.pointer).object(const $Headers$Type()); } - static final _id_byteString = _class.instanceMethodId( - r'byteString', - r'()Lokio/ByteString;', + static final _id_-deprecated_of$1 = _class.instanceMethodId( + r'-deprecated_of', + r'(Ljava/util/Map;)Lokhttp3/Headers;', ); - static final _byteString = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okio.ByteString byteString() + static final _-deprecated_of$1 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okhttp3.Headers -deprecated_of(java.util.Map map)` /// The returned object must be released after use, by calling the [release] method. - ByteString byteString() { - return _byteString(reference.pointer, _id_byteString as jni.JMethodIDPtr) - .object(const $ByteStringType()); + Headers -deprecated_of$1(_$jni.JMap<_$jni.JString, _$jni.JString> map, ){ + + return _-deprecated_of$1(reference.pointer, _id_-deprecated_of$1 as _$jni.JMethodIDPtr, map.reference.pointer).object(const $Headers$Type()); } - static final _id_charStream = _class.instanceMethodId( - r'charStream', - r'()Ljava/io/Reader;', +} +final class $Headers_Companion$Type extends _$jni.JObjType { + + + @_$jni.internal + const $Headers_Companion$Type( + + ); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Headers$Companion;'; + + @_$jni.internal + @_$core.override + Headers_Companion fromReference(_$jni.JReference reference) => Headers_Companion.fromReference( + + reference ); - static final _charStream = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public final java.io.Reader charStream() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject charStream() { - return _charStream(reference.pointer, _id_charStream as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Headers_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Headers_Companion$Type) && + other is $Headers_Companion$Type; } +} - static final _id_string = _class.instanceMethodId( - r'string', - r'()Ljava/lang/String;', - ); +/// from: `okhttp3.Headers` +class Headers extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _string = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final java.lang.String string() - /// The returned object must be released after use, by calling the [release] method. - jni.JString string() { - return _string(reference.pointer, _id_string as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); - - static final _close = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void close() - void close() { - _close(reference.pointer, _id_close as jni.JMethodIDPtr).check(); - } - - static final _id_create = _class.staticMethodId( - r'create', - r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', - ); - - static final _create = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.ResponseBody create(java.lang.String string, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create( - jni.JString string, - jni.JObject mediaType, - ) { - return _create(_class.reference.pointer, _id_create as jni.JMethodIDPtr, - string.reference.pointer, mediaType.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create1 = _class.staticMethodId( - r'create', - r'([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;', - ); - - static final _create1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.ResponseBody create(byte[] bs, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create1( - jni.JArray bs, - jni.JObject mediaType, - ) { - return _create1(_class.reference.pointer, _id_create1 as jni.JMethodIDPtr, - bs.reference.pointer, mediaType.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create2 = _class.staticMethodId( - r'create', - r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', - ); - - static final _create2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.ResponseBody create(okio.ByteString byteString, okhttp3.MediaType mediaType) - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create2( - ByteString byteString, - jni.JObject mediaType, - ) { - return _create2(_class.reference.pointer, _id_create2 as jni.JMethodIDPtr, - byteString.reference.pointer, mediaType.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create3 = _class.staticMethodId( - r'create', - r'(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;', - ); - - static final _create3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - ffi.Int64 - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer, int)>(); - - /// from: static public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j) - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create3( - jni.JObject bufferedSource, - jni.JObject mediaType, - int j, - ) { - return _create3(_class.reference.pointer, _id_create3 as jni.JMethodIDPtr, - bufferedSource.reference.pointer, mediaType.reference.pointer, j) - .object(const $ResponseBodyType()); - } - - static final _id_create4 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;', - ); - - static final _create4 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create4( - jni.JObject mediaType, - jni.JString string, - ) { - return _create4(_class.reference.pointer, _id_create4 as jni.JMethodIDPtr, - mediaType.reference.pointer, string.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create5 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;', - ); - - static final _create5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create5( - jni.JObject mediaType, - jni.JArray bs, - ) { - return _create5(_class.reference.pointer, _id_create5 as jni.JMethodIDPtr, - mediaType.reference.pointer, bs.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create6 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;', - ); - - static final _create6 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString) - /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create6( - jni.JObject mediaType, - ByteString byteString, - ) { - return _create6(_class.reference.pointer, _id_create6 as jni.JMethodIDPtr, - mediaType.reference.pointer, byteString.reference.pointer) - .object(const $ResponseBodyType()); - } - - static final _id_create7 = _class.staticMethodId( - r'create', - r'(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;', - ); - - static final _create7 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Int64, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, ffi.Pointer)>(); - - /// from: static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource) + @_$jni.internal + Headers.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/Headers'); + + /// The type which includes information such as the signature of this class. +static const type = $Headers$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lokhttp3/Headers$Companion;', + ); + /// from: `static public final okhttp3.Headers$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static ResponseBody create7( - jni.JObject mediaType, - int j, - jni.JObject bufferedSource, - ) { - return _create7(_class.reference.pointer, _id_create7 as jni.JMethodIDPtr, - mediaType.reference.pointer, j, bufferedSource.reference.pointer) - .object(const $ResponseBodyType()); +static Headers_Companion get Companion => _id_Companion.get(_class, const $Headers_Companion$Type()); + + static final _id_-deprecated_size = _class.instanceMethodId( + r'-deprecated_size', + r'()I', + ); + + static final _-deprecated_size = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_size()` + int -deprecated_size(){ + + return _-deprecated_size(reference.pointer, _id_-deprecated_size as _$jni.JMethodIDPtr).integer; } + } +final class $Headers$Type extends _$jni.JObjType { + -final class $ResponseBodyType extends jni.JObjType { - const $ResponseBodyType(); + @_$jni.internal + const $Headers$Type( + + ); - @override - String get signature => r'Lokhttp3/ResponseBody;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Headers;'; - @override - ResponseBody fromReference(jni.JReference reference) => - ResponseBody.fromReference(reference); + @_$jni.internal + @_$core.override + Headers fromReference(_$jni.JReference reference) => Headers.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ResponseBodyType).hashCode; + @_$core.override + int get hashCode => ($Headers$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ResponseBodyType) && - other is $ResponseBodyType; + return other.runtimeType == ($Headers$Type) && + other is $Headers$Type; } } -/// from: okhttp3.OkHttpClient$Builder -class OkHttpClient_Builder extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.Callback` +class Callback extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - OkHttpClient_Builder.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/OkHttpClient$Builder'); - - /// The type which includes information such as the signature of this class. - static const type = $OkHttpClient_BuilderType(); - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient_Builder() { - return OkHttpClient_Builder.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } + - static final _id_new1 = _class.constructorId( - r'(Lokhttp3/OkHttpClient;)V', - ); + @_$jni.internal + Callback.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _new1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _class = _$jni.JClass.forName(r'okhttp3/Callback'); - /// from: public void (okhttp3.OkHttpClient okHttpClient) - /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient_Builder.new1( - OkHttpClient okHttpClient, + /// The type which includes information such as the signature of this class. +static const type = $Callback$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { - return OkHttpClient_Builder.fromReference(_new1(_class.reference.pointer, - _id_new1 as jni.JMethodIDPtr, okHttpClient.reference.pointer) - .reference); + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } - static final _id_dispatcher = _class.instanceMethodId( - r'dispatcher', - r'(Lokhttp3/Dispatcher;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _dispatcher = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - /// from: public final okhttp3.OkHttpClient$Builder dispatcher(okhttp3.Dispatcher dispatcher) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder dispatcher( - Dispatcher dispatcher, + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, ) { - return _dispatcher(reference.pointer, _id_dispatcher as jni.JMethodIDPtr, - dispatcher.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; } - static final _id_connectionPool = _class.instanceMethodId( - r'connectionPool', - r'(Lokhttp3/ConnectionPool;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _connectionPool = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static void implementIn( + _$jni.JImplementer implementer, + $Callback $impl, + ) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.Callback', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } - /// from: public final okhttp3.OkHttpClient$Builder connectionPool(okhttp3.ConnectionPool connectionPool) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder connectionPool( - ConnectionPool connectionPool, + factory Callback.implement( + $Callback $impl, ) { - return _connectionPool( - reference.pointer, - _id_connectionPool as jni.JMethodIDPtr, - connectionPool.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return Callback.fromReference( + + $i.implementReference(), + ); } + } +abstract base mixin class $Callback { + factory $Callback( + + ) = _$Callback; - static final _id_interceptors = _class.instanceMethodId( - r'interceptors', - r'()Ljava/util/List;', + + +} + +final class _$Callback with $Callback { + _$Callback( + ); - static final _interceptors = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final java.util.List interceptors() - /// The returned object must be released after use, by calling the [release] method. - jni.JList interceptors() { - return _interceptors( - reference.pointer, _id_interceptors as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); - } - static final _id_addInterceptor = _class.instanceMethodId( - r'addInterceptor', - r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', - ); +} +final class $Callback$Type extends _$jni.JObjType { + - static final _addInterceptor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + const $Callback$Type( + + ); - /// from: public final okhttp3.OkHttpClient$Builder addInterceptor(okhttp3.Interceptor interceptor) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder addInterceptor( - jni.JObject interceptor, - ) { - return _addInterceptor( - reference.pointer, - _id_addInterceptor as jni.JMethodIDPtr, - interceptor.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Callback;'; - static final _id_networkInterceptors = _class.instanceMethodId( - r'networkInterceptors', - r'()Ljava/util/List;', + @_$jni.internal + @_$core.override + Callback fromReference(_$jni.JReference reference) => Callback.fromReference( + + reference ); - static final _networkInterceptors = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public final java.util.List networkInterceptors() - /// The returned object must be released after use, by calling the [release] method. - jni.JList networkInterceptors() { - return _networkInterceptors( - reference.pointer, _id_networkInterceptors as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Callback$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Callback$Type) && + other is $Callback$Type; } +} + +/// from: `okhttp3.ConnectionPool` +class ConnectionPool extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + + + @_$jni.internal + ConnectionPool.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/ConnectionPool'); + + /// The type which includes information such as the signature of this class. +static const type = $ConnectionPool$Type(); +} +final class $ConnectionPool$Type extends _$jni.JObjType { + - static final _id_addNetworkInterceptor = _class.instanceMethodId( - r'addNetworkInterceptor', - r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', + @_$jni.internal + const $ConnectionPool$Type( + ); - static final _addNetworkInterceptor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ConnectionPool;'; - /// from: public final okhttp3.OkHttpClient$Builder addNetworkInterceptor(okhttp3.Interceptor interceptor) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder addNetworkInterceptor( - jni.JObject interceptor, - ) { - return _addNetworkInterceptor( - reference.pointer, - _id_addNetworkInterceptor as jni.JMethodIDPtr, - interceptor.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_eventListener = _class.instanceMethodId( - r'eventListener', - r'(Lokhttp3/EventListener;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _eventListener = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder eventListener(okhttp3.EventListener eventListener) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder eventListener( - jni.JObject eventListener, - ) { - return _eventListener( - reference.pointer, - _id_eventListener as jni.JMethodIDPtr, - eventListener.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_eventListenerFactory = _class.instanceMethodId( - r'eventListenerFactory', - r'(Lokhttp3/EventListener$Factory;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _eventListenerFactory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder eventListenerFactory(okhttp3.EventListener$Factory factory) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder eventListenerFactory( - jni.JObject factory0, - ) { - return _eventListenerFactory( - reference.pointer, - _id_eventListenerFactory as jni.JMethodIDPtr, - factory0.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + @_$jni.internal + @_$core.override + ConnectionPool fromReference(_$jni.JReference reference) => ConnectionPool.fromReference( + + reference + ); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ConnectionPool$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ConnectionPool$Type) && + other is $ConnectionPool$Type; } +} - static final _id_retryOnConnectionFailure = _class.instanceMethodId( - r'retryOnConnectionFailure', - r'(Z)Lokhttp3/OkHttpClient$Builder;', - ); +/// from: `okhttp3.Dispatcher` +class Dispatcher extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + + + @_$jni.internal + Dispatcher.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/Dispatcher'); - static final _retryOnConnectionFailure = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + /// The type which includes information such as the signature of this class. +static const type = $Dispatcher$Type(); + static final _id_-deprecated_executorService = _class.instanceMethodId( + r'-deprecated_executorService', + r'()Ljava/util/concurrent/ExecutorService;', + ); - /// from: public final okhttp3.OkHttpClient$Builder retryOnConnectionFailure(boolean z) + static final _-deprecated_executorService = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.util.concurrent.ExecutorService -deprecated_executorService()` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder retryOnConnectionFailure( - bool z, - ) { - return _retryOnConnectionFailure(reference.pointer, - _id_retryOnConnectionFailure as jni.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient_BuilderType()); + ExecutorService -deprecated_executorService(){ + + return _-deprecated_executorService(reference.pointer, _id_-deprecated_executorService as _$jni.JMethodIDPtr).object(const $ExecutorService$Type()); } - static final _id_authenticator = _class.instanceMethodId( - r'authenticator', - r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', +} +final class $Dispatcher$Type extends _$jni.JObjType { + + + @_$jni.internal + const $Dispatcher$Type( + ); - static final _authenticator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Dispatcher;'; + + @_$jni.internal + @_$core.override + Dispatcher fromReference(_$jni.JReference reference) => Dispatcher.fromReference( + + reference + ); - /// from: public final okhttp3.OkHttpClient$Builder authenticator(okhttp3.Authenticator authenticator) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder authenticator( - jni.JObject authenticator, - ) { - return _authenticator( - reference.pointer, - _id_authenticator as jni.JMethodIDPtr, - authenticator.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Dispatcher$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Dispatcher$Type) && + other is $Dispatcher$Type; } +} - static final _id_followRedirects = _class.instanceMethodId( - r'followRedirects', - r'(Z)Lokhttp3/OkHttpClient$Builder;', - ); +/// from: `java.util.concurrent.ExecutorService` +class ExecutorService extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + - static final _followRedirects = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + @_$jni.internal + ExecutorService.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'java/util/concurrent/ExecutorService'); + + /// The type which includes information such as the signature of this class. +static const type = $ExecutorService$Type(); + static final _id_submit = _class.instanceMethodId( + r'submit', + r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;', + ); - /// from: public final okhttp3.OkHttpClient$Builder followRedirects(boolean z) + static final _submit = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.concurrent.Future submit(java.util.concurrent.Callable callable)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder followRedirects( - bool z, - ) { - return _followRedirects(reference.pointer, - _id_followRedirects as jni.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient_BuilderType()); + _$jni.JObject submit<$T extends _$jni.JObject>(_$jni.JObject callable, {required _$jni.JObjType<$T> T, }){ + + return _submit(reference.pointer, _id_submit as _$jni.JMethodIDPtr, callable.reference.pointer).object(const _$jni.JObjectType()); } - static final _id_followSslRedirects = _class.instanceMethodId( - r'followSslRedirects', - r'(Z)Lokhttp3/OkHttpClient$Builder;', + static final _id_submit$1 = _class.instanceMethodId( + r'submit', + r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;', ); - static final _followSslRedirects = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public final okhttp3.OkHttpClient$Builder followSslRedirects(boolean z) + static final _submit$1 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable, T object)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder followSslRedirects( - bool z, - ) { - return _followSslRedirects(reference.pointer, - _id_followSslRedirects as jni.JMethodIDPtr, z ? 1 : 0) - .object(const $OkHttpClient_BuilderType()); + _$jni.JObject submit$1<$T extends _$jni.JObject>(_$jni.JObject runnable, $T object, {_$jni.JObjType<$T>? T, }){ + T ??= _$jni.lowestCommonSuperType([object.$type, ]) as _$jni.JObjType<$T>; + return _submit$1(reference.pointer, _id_submit$1 as _$jni.JMethodIDPtr, runnable.reference.pointer, object.reference.pointer).object(const _$jni.JObjectType()); } - static final _id_cookieJar = _class.instanceMethodId( - r'cookieJar', - r'(Lokhttp3/CookieJar;)Lokhttp3/OkHttpClient$Builder;', + static final _id_submit$2 = _class.instanceMethodId( + r'submit', + r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;', ); - static final _cookieJar = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder cookieJar(okhttp3.CookieJar cookieJar) + static final _submit$2 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder cookieJar( - jni.JObject cookieJar, - ) { - return _cookieJar(reference.pointer, _id_cookieJar as jni.JMethodIDPtr, - cookieJar.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + _$jni.JObject submit$2(_$jni.JObject runnable, ){ + + return _submit$2(reference.pointer, _id_submit$2 as _$jni.JMethodIDPtr, runnable.reference.pointer).object(const _$jni.JObjectType()); } - static final _id_cache = _class.instanceMethodId( - r'cache', - r'(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder;', + static final _id_invokeAll = _class.instanceMethodId( + r'invokeAll', + r'(Ljava/util/Collection;)Ljava/util/List;', ); - static final _cache = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder cache(okhttp3.Cache cache) + static final _invokeAll = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.List invokeAll(java.util.Collection collection)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder cache( - Cache cache, - ) { - return _cache(reference.pointer, _id_cache as jni.JMethodIDPtr, - cache.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + _$jni.JList<_$jni.JObject> invokeAll<$T extends _$jni.JObject>(_$jni.JObject collection, {required _$jni.JObjType<$T> T, }){ + + return _invokeAll(reference.pointer, _id_invokeAll as _$jni.JMethodIDPtr, collection.reference.pointer).object(const _$jni.JListType(_$jni.JObjectType())); } - static final _id_dns = _class.instanceMethodId( - r'dns', - r'(Lokhttp3/Dns;)Lokhttp3/OkHttpClient$Builder;', + static final _id_invokeAll$1 = _class.instanceMethodId( + r'invokeAll', + r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;', ); - static final _dns = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder dns(okhttp3.Dns dns) + static final _invokeAll$1 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.List invokeAll(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder dns( - jni.JObject dns, - ) { - return _dns(reference.pointer, _id_dns as jni.JMethodIDPtr, - dns.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + _$jni.JList<_$jni.JObject> invokeAll$1<$T extends _$jni.JObject>(_$jni.JObject collection, int j, TimeUnit timeUnit, {required _$jni.JObjType<$T> T, }){ + + return _invokeAll$1(reference.pointer, _id_invokeAll$1 as _$jni.JMethodIDPtr, collection.reference.pointer, j, timeUnit.reference.pointer).object(const _$jni.JListType(_$jni.JObjectType())); } - static final _id_proxy = _class.instanceMethodId( - r'proxy', - r'(Ljava/net/Proxy;)Lokhttp3/OkHttpClient$Builder;', + static final _id_invokeAny = _class.instanceMethodId( + r'invokeAny', + r'(Ljava/util/Collection;)Ljava/lang/Object;', ); - static final _proxy = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder proxy(java.net.Proxy proxy) + static final _invokeAny = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract T invokeAny(java.util.Collection collection)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder proxy( - jni.JObject proxy, - ) { - return _proxy(reference.pointer, _id_proxy as jni.JMethodIDPtr, - proxy.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + $T invokeAny<$T extends _$jni.JObject>(_$jni.JObject collection, {required _$jni.JObjType<$T> T, }){ + + return _invokeAny(reference.pointer, _id_invokeAny as _$jni.JMethodIDPtr, collection.reference.pointer).object(T); } - static final _id_proxySelector = _class.instanceMethodId( - r'proxySelector', - r'(Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder;', + static final _id_invokeAny$1 = _class.instanceMethodId( + r'invokeAny', + r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;', ); - static final _proxySelector = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder proxySelector(java.net.ProxySelector proxySelector) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder proxySelector( - jni.JObject proxySelector, - ) { - return _proxySelector( - reference.pointer, - _id_proxySelector as jni.JMethodIDPtr, - proxySelector.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_proxyAuthenticator = _class.instanceMethodId( - r'proxyAuthenticator', - r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _proxyAuthenticator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder proxyAuthenticator(okhttp3.Authenticator authenticator) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder proxyAuthenticator( - jni.JObject authenticator, - ) { - return _proxyAuthenticator( - reference.pointer, - _id_proxyAuthenticator as jni.JMethodIDPtr, - authenticator.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_socketFactory = _class.instanceMethodId( - r'socketFactory', - r'(Ljavax/net/SocketFactory;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _socketFactory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder socketFactory(javax.net.SocketFactory socketFactory) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder socketFactory( - jni.JObject socketFactory, - ) { - return _socketFactory( - reference.pointer, - _id_socketFactory as jni.JMethodIDPtr, - socketFactory.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_sslSocketFactory = _class.instanceMethodId( - r'sslSocketFactory', - r'(Ljavax/net/ssl/SSLSocketFactory;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _sslSocketFactory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder sslSocketFactory( - jni.JObject sSLSocketFactory, - ) { - return _sslSocketFactory( - reference.pointer, - _id_sslSocketFactory as jni.JMethodIDPtr, - sSLSocketFactory.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_sslSocketFactory1 = _class.instanceMethodId( - r'sslSocketFactory', - r'(Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/X509TrustManager;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _sslSocketFactory1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory, javax.net.ssl.X509TrustManager x509TrustManager) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder sslSocketFactory1( - jni.JObject sSLSocketFactory, - jni.JObject x509TrustManager, - ) { - return _sslSocketFactory1( - reference.pointer, - _id_sslSocketFactory1 as jni.JMethodIDPtr, - sSLSocketFactory.reference.pointer, - x509TrustManager.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_connectionSpecs = _class.instanceMethodId( - r'connectionSpecs', - r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _connectionSpecs = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder connectionSpecs(java.util.List list) + static final _invokeAny$1 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract T invokeAny(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder connectionSpecs( - jni.JList list, - ) { - return _connectionSpecs(reference.pointer, - _id_connectionSpecs as jni.JMethodIDPtr, list.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + $T invokeAny$1<$T extends _$jni.JObject>(_$jni.JObject collection, int j, TimeUnit timeUnit, {required _$jni.JObjType<$T> T, }){ + + return _invokeAny$1(reference.pointer, _id_invokeAny$1 as _$jni.JMethodIDPtr, collection.reference.pointer, j, timeUnit.reference.pointer).object(T); } - static final _id_protocols = _class.instanceMethodId( - r'protocols', - r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _protocols = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder protocols(java.util.List list) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder protocols( - jni.JList list, + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { - return _protocols(reference.pointer, _id_protocols as jni.JMethodIDPtr, - list.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } - static final _id_hostnameVerifier = _class.instanceMethodId( - r'hostnameVerifier', - r'(Ljavax/net/ssl/HostnameVerifier;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _hostnameVerifier = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - /// from: public final okhttp3.OkHttpClient$Builder hostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder hostnameVerifier( - jni.JObject hostnameVerifier, - ) { - return _hostnameVerifier( - reference.pointer, - _id_hostnameVerifier as jni.JMethodIDPtr, - hostnameVerifier.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_certificatePinner = _class.instanceMethodId( - r'certificatePinner', - r'(Lokhttp3/CertificatePinner;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _certificatePinner = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder certificatePinner(okhttp3.CertificatePinner certificatePinner) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder certificatePinner( - jni.JObject certificatePinner, - ) { - return _certificatePinner( - reference.pointer, - _id_certificatePinner as jni.JMethodIDPtr, - certificatePinner.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_callTimeout = _class.instanceMethodId( - r'callTimeout', - r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _callTimeout = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64, ffi.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder callTimeout(long j, java.util.concurrent.TimeUnit timeUnit) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder callTimeout( - int j, - TimeUnit timeUnit, + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, ) { - return _callTimeout(reference.pointer, _id_callTimeout as jni.JMethodIDPtr, - j, timeUnit.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit( +$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); + } + if ($d == r'submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$1( +$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), +$a[1].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); + } + if ($d == r'submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$2( +$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); + } + if ($d == r'invokeAll(Ljava/util/Collection;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll( +$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); + } + if ($d == r'invokeAll(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll$1( +$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), +$a[1].as(const _$jni.JLongType(), releaseOriginal: true).longValue(releaseOriginal: true), +$a[2].as(const $TimeUnit$Type(), releaseOriginal: true), + ); + return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); + } + if ($d == r'invokeAny(Ljava/util/Collection;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny( +$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); + } + if ($d == r'invokeAny(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny$1( +$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), +$a[1].as(const _$jni.JLongType(), releaseOriginal: true).longValue(releaseOriginal: true), +$a[2].as(const $TimeUnit$Type(), releaseOriginal: true), + ); + return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); + } + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; } - static final _id_callTimeout1 = _class.instanceMethodId( - r'callTimeout', - r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _callTimeout1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder callTimeout(java.time.Duration duration) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder callTimeout1( - jni.JObject duration, + static void implementIn( + _$jni.JImplementer implementer, + $ExecutorService $impl, ) { - return _callTimeout1(reference.pointer, - _id_callTimeout1 as jni.JMethodIDPtr, duration.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'java.util.concurrent.ExecutorService', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; } - static final _id_connectTimeout = _class.instanceMethodId( - r'connectTimeout', - r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _connectTimeout = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64, ffi.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder connectTimeout(long j, java.util.concurrent.TimeUnit timeUnit) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder connectTimeout( - int j, - TimeUnit timeUnit, - ) { - return _connectTimeout( - reference.pointer, - _id_connectTimeout as jni.JMethodIDPtr, - j, - timeUnit.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_connectTimeout1 = _class.instanceMethodId( - r'connectTimeout', - r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _connectTimeout1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder connectTimeout(java.time.Duration duration) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder connectTimeout1( - jni.JObject duration, + factory ExecutorService.implement( + $ExecutorService $impl, ) { - return _connectTimeout1(reference.pointer, - _id_connectTimeout1 as jni.JMethodIDPtr, duration.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return ExecutorService.fromReference( + + $i.implementReference(), + ); + } } +abstract base mixin class $ExecutorService { + factory $ExecutorService( + {required _$jni.JObject Function(_$jni.JObject callable) submit, + required _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) submit$1, + required _$jni.JObject Function(_$jni.JObject runnable) submit$2, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) invokeAll, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAll$1, + required _$jni.JObject Function(_$jni.JObject collection) invokeAny, + required _$jni.JObject Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAny$1,} + ) = _$ExecutorService; + + + + _$jni.JObject submit(_$jni.JObject callable); + _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object); + _$jni.JObject submit$2(_$jni.JObject runnable); + _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection); + _$jni.JList<_$jni.JObject> invokeAll$1(_$jni.JObject collection, int j, TimeUnit timeUnit); + _$jni.JObject invokeAny(_$jni.JObject collection); + _$jni.JObject invokeAny$1(_$jni.JObject collection, int j, TimeUnit timeUnit); +} - static final _id_readTimeout = _class.instanceMethodId( - r'readTimeout', - r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', - ); +final class _$ExecutorService with $ExecutorService { + _$ExecutorService( + {required _$jni.JObject Function(_$jni.JObject callable) submit, + required _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) submit$1, + required _$jni.JObject Function(_$jni.JObject runnable) submit$2, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) invokeAll, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAll$1, + required _$jni.JObject Function(_$jni.JObject collection) invokeAny, + required _$jni.JObject Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAny$1,} + ) : _submit = submit, _submit$1 = submit$1, _submit$2 = submit$2, _invokeAll = invokeAll, _invokeAll$1 = invokeAll$1, _invokeAny = invokeAny, _invokeAny$1 = invokeAny$1; + + + + final _$jni.JObject Function(_$jni.JObject callable) _submit; + final _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) _submit$1; + final _$jni.JObject Function(_$jni.JObject runnable) _submit$2; + final _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) _invokeAll; + final _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAll$1; + final _$jni.JObject Function(_$jni.JObject collection) _invokeAny; + final _$jni.JObject Function(_$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAny$1; + + _$jni.JObject submit(_$jni.JObject callable) { + return _submit(callable); + } _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object) { + return _submit$1(runnable, object); + } _$jni.JObject submit$2(_$jni.JObject runnable) { + return _submit$2(runnable); + } _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection) { + return _invokeAll(collection); + } _$jni.JList<_$jni.JObject> invokeAll$1(_$jni.JObject collection, int j, TimeUnit timeUnit) { + return _invokeAll$1(collection, j, timeUnit); + } _$jni.JObject invokeAny(_$jni.JObject collection) { + return _invokeAny(collection); + } _$jni.JObject invokeAny$1(_$jni.JObject collection, int j, TimeUnit timeUnit) { + return _invokeAny$1(collection, j, timeUnit); + }} +final class $ExecutorService$Type extends _$jni.JObjType { + + + @_$jni.internal + const $ExecutorService$Type( + + ); + + @_$jni.internal + @_$core.override + String get signature => r'Ljava/util/concurrent/ExecutorService;'; - static final _readTimeout = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64, ffi.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + ExecutorService fromReference(_$jni.JReference reference) => ExecutorService.fromReference( + + reference + ); - /// from: public final okhttp3.OkHttpClient$Builder readTimeout(long j, java.util.concurrent.TimeUnit timeUnit) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder readTimeout( - int j, - TimeUnit timeUnit, - ) { - return _readTimeout(reference.pointer, _id_readTimeout as jni.JMethodIDPtr, - j, timeUnit.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - static final _id_readTimeout1 = _class.instanceMethodId( - r'readTimeout', - r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _readTimeout1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$core.override + int get hashCode => ($ExecutorService$Type).hashCode; - /// from: public final okhttp3.OkHttpClient$Builder readTimeout(java.time.Duration duration) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder readTimeout1( - jni.JObject duration, - ) { - return _readTimeout1(reference.pointer, - _id_readTimeout1 as jni.JMethodIDPtr, duration.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ExecutorService$Type) && + other is $ExecutorService$Type; } +} - static final _id_writeTimeout = _class.instanceMethodId( - r'writeTimeout', - r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _writeTimeout = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64, ffi.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); +/// from: `okhttp3.Cache$Companion` +class Cache_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - /// from: public final okhttp3.OkHttpClient$Builder writeTimeout(long j, java.util.concurrent.TimeUnit timeUnit) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder writeTimeout( - int j, - TimeUnit timeUnit, - ) { - return _writeTimeout(reference.pointer, - _id_writeTimeout as jni.JMethodIDPtr, j, timeUnit.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } + - static final _id_writeTimeout1 = _class.instanceMethodId( - r'writeTimeout', - r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', - ); + @_$jni.internal + Cache_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _writeTimeout1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Companion'); - /// from: public final okhttp3.OkHttpClient$Builder writeTimeout(java.time.Duration duration) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder writeTimeout1( - jni.JObject duration, - ) { - return _writeTimeout1(reference.pointer, - _id_writeTimeout1 as jni.JMethodIDPtr, duration.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } + /// The type which includes information such as the signature of this class. +static const type = $Cache_Companion$Type(); +} +final class $Cache_Companion$Type extends _$jni.JObjType { + - static final _id_pingInterval = _class.instanceMethodId( - r'pingInterval', - r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', + @_$jni.internal + const $Cache_Companion$Type( + ); - static final _pingInterval = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64, ffi.Pointer)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder pingInterval(long j, java.util.concurrent.TimeUnit timeUnit) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder pingInterval( - int j, - TimeUnit timeUnit, - ) { - return _pingInterval(reference.pointer, - _id_pingInterval as jni.JMethodIDPtr, j, timeUnit.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Cache$Companion;'; - static final _id_pingInterval1 = _class.instanceMethodId( - r'pingInterval', - r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', + @_$jni.internal + @_$core.override + Cache_Companion fromReference(_$jni.JReference reference) => Cache_Companion.fromReference( + + reference ); - static final _pingInterval1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder pingInterval(java.time.Duration duration) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder pingInterval1( - jni.JObject duration, - ) { - return _pingInterval1(reference.pointer, - _id_pingInterval1 as jni.JMethodIDPtr, duration.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( - r'minWebSocketMessageToCompress', - r'(J)Lokhttp3/OkHttpClient$Builder;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _minWebSocketMessageToCompress = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + @_$core.override + int get hashCode => ($Cache_Companion$Type).hashCode; - /// from: public final okhttp3.OkHttpClient$Builder minWebSocketMessageToCompress(long j) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder minWebSocketMessageToCompress( - int j, - ) { - return _minWebSocketMessageToCompress(reference.pointer, - _id_minWebSocketMessageToCompress as jni.JMethodIDPtr, j) - .object(const $OkHttpClient_BuilderType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Cache_Companion$Type) && + other is $Cache_Companion$Type; } +} - static final _id_build = _class.instanceMethodId( - r'build', - r'()Lokhttp3/OkHttpClient;', - ); +/// from: `okhttp3.Cache$Entry$Companion` +class Cache_Entry_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _build = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final okhttp3.OkHttpClient build() - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient build() { - return _build(reference.pointer, _id_build as jni.JMethodIDPtr) - .object(const $OkHttpClientType()); - } + @_$jni.internal + Cache_Entry_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Entry$Companion'); + + /// The type which includes information such as the signature of this class. +static const type = $Cache_Entry_Companion$Type(); } +final class $Cache_Entry_Companion$Type extends _$jni.JObjType { + -final class $OkHttpClient_BuilderType - extends jni.JObjType { - const $OkHttpClient_BuilderType(); + @_$jni.internal + const $Cache_Entry_Companion$Type( + + ); - @override - String get signature => r'Lokhttp3/OkHttpClient$Builder;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Cache$Entry$Companion;'; - @override - OkHttpClient_Builder fromReference(jni.JReference reference) => - OkHttpClient_Builder.fromReference(reference); + @_$jni.internal + @_$core.override + Cache_Entry_Companion fromReference(_$jni.JReference reference) => Cache_Entry_Companion.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($OkHttpClient_BuilderType).hashCode; + @_$core.override + int get hashCode => ($Cache_Entry_Companion$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient_BuilderType) && - other is $OkHttpClient_BuilderType; + return other.runtimeType == ($Cache_Entry_Companion$Type) && + other is $Cache_Entry_Companion$Type; } } -/// from: okhttp3.OkHttpClient$Companion -class OkHttpClient_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okhttp3.Cache` +class Cache extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - OkHttpClient_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + - static final _class = jni.JClass.forName(r'okhttp3/OkHttpClient$Companion'); + @_$jni.internal + Cache.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - /// The type which includes information such as the signature of this class. - static const type = $OkHttpClient_CompanionType(); - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); + static final _class = _$jni.JClass.forName(r'okhttp3/Cache'); + + /// The type which includes information such as the signature of this class. +static const type = $Cache$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lokhttp3/Cache$Companion;', + ); + /// from: `static public final okhttp3.Cache$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. +static Cache_Companion get Companion => _id_Companion.get(_class, const $Cache_Companion$Type()); - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _id_-deprecated_directory = _class.instanceMethodId( + r'-deprecated_directory', + r'()Ljava/io/File;', + ); - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) + static final _-deprecated_directory = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final java.io.File -deprecated_directory()` /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient_Companion( - jni.JObject defaultConstructorMarker, - ) { - return OkHttpClient_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); + _$jni.JObject -deprecated_directory(){ + + return _-deprecated_directory(reference.pointer, _id_-deprecated_directory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); } + } +final class $Cache$Type extends _$jni.JObjType { + -final class $OkHttpClient_CompanionType - extends jni.JObjType { - const $OkHttpClient_CompanionType(); + @_$jni.internal + const $Cache$Type( + + ); - @override - String get signature => r'Lokhttp3/OkHttpClient$Companion;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Cache;'; - @override - OkHttpClient_Companion fromReference(jni.JReference reference) => - OkHttpClient_Companion.fromReference(reference); + @_$jni.internal + @_$core.override + Cache fromReference(_$jni.JReference reference) => Cache.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($OkHttpClient_CompanionType).hashCode; + @_$core.override + int get hashCode => ($Cache$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient_CompanionType) && - other is $OkHttpClient_CompanionType; + return other.runtimeType == ($Cache$Type) && + other is $Cache$Type; } } -/// from: okhttp3.OkHttpClient -class OkHttpClient extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `com.example.ok_http.RedirectReceivedCallback` +class RedirectReceivedCallback extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - OkHttpClient.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + - static final _class = jni.JClass.forName(r'okhttp3/OkHttpClient'); + @_$jni.internal + RedirectReceivedCallback.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - /// The type which includes information such as the signature of this class. - static const type = $OkHttpClientType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/OkHttpClient$Companion;', - ); + static final _class = _$jni.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); - /// from: static public final okhttp3.OkHttpClient$Companion Companion - /// The returned object must be released after use, by calling the [release] method. - static OkHttpClient_Companion get Companion => - _id_Companion.get(_class, const $OkHttpClient_CompanionType()); + /// The type which includes information such as the signature of this class. +static const type = $RedirectReceivedCallback$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } - static final _id_new0 = _class.constructorId( - r'(Lokhttp3/OkHttpClient$Builder;)V', - ); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } - /// from: public void (okhttp3.OkHttpClient$Builder builder) - /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient( - OkHttpClient_Builder builder, + static void implementIn( + _$jni.JImplementer implementer, + $RedirectReceivedCallback $impl, ) { - return OkHttpClient.fromReference(_new0(_class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, builder.reference.pointer) - .reference); + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'com.example.ok_http.RedirectReceivedCallback', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; } - static final _id_dispatcher = _class.instanceMethodId( - r'dispatcher', - r'()Lokhttp3/Dispatcher;', - ); + factory RedirectReceivedCallback.implement( + $RedirectReceivedCallback $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return RedirectReceivedCallback.fromReference( + + $i.implementReference(), + ); + } + } +abstract base mixin class $RedirectReceivedCallback { + factory $RedirectReceivedCallback( + + ) = _$RedirectReceivedCallback; - static final _dispatcher = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final okhttp3.Dispatcher dispatcher() - /// The returned object must be released after use, by calling the [release] method. - Dispatcher dispatcher() { - return _dispatcher(reference.pointer, _id_dispatcher as jni.JMethodIDPtr) - .object(const $DispatcherType()); - } +} - static final _id_connectionPool = _class.instanceMethodId( - r'connectionPool', - r'()Lokhttp3/ConnectionPool;', +final class _$RedirectReceivedCallback with $RedirectReceivedCallback { + _$RedirectReceivedCallback( + ); - static final _connectionPool = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final okhttp3.ConnectionPool connectionPool() - /// The returned object must be released after use, by calling the [release] method. - ConnectionPool connectionPool() { - return _connectionPool( - reference.pointer, _id_connectionPool as jni.JMethodIDPtr) - .object(const $ConnectionPoolType()); - } - static final _id_interceptors = _class.instanceMethodId( - r'interceptors', - r'()Ljava/util/List;', - ); +} +final class $RedirectReceivedCallback$Type extends _$jni.JObjType { + - static final _interceptors = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + const $RedirectReceivedCallback$Type( + + ); - /// from: public final java.util.List interceptors() - /// The returned object must be released after use, by calling the [release] method. - jni.JList interceptors() { - return _interceptors( - reference.pointer, _id_interceptors as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); - } + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/RedirectReceivedCallback;'; - static final _id_networkInterceptors = _class.instanceMethodId( - r'networkInterceptors', - r'()Ljava/util/List;', + @_$jni.internal + @_$core.override + RedirectReceivedCallback fromReference(_$jni.JReference reference) => RedirectReceivedCallback.fromReference( + + reference ); - static final _networkInterceptors = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public final java.util.List networkInterceptors() - /// The returned object must be released after use, by calling the [release] method. - jni.JList networkInterceptors() { - return _networkInterceptors( - reference.pointer, _id_networkInterceptors as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); - } - - static final _id_eventListenerFactory = _class.instanceMethodId( - r'eventListenerFactory', - r'()Lokhttp3/EventListener$Factory;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _eventListenerFactory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$core.override + int get hashCode => ($RedirectReceivedCallback$Type).hashCode; - /// from: public final okhttp3.EventListener$Factory eventListenerFactory() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject eventListenerFactory() { - return _eventListenerFactory( - reference.pointer, _id_eventListenerFactory as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RedirectReceivedCallback$Type) && + other is $RedirectReceivedCallback$Type; } +} - static final _id_retryOnConnectionFailure = _class.instanceMethodId( - r'retryOnConnectionFailure', - r'()Z', - ); - - static final _retryOnConnectionFailure = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); +/// from: `com.example.ok_http.RedirectInterceptor$Companion` +class RedirectInterceptor_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - /// from: public final boolean retryOnConnectionFailure() - bool retryOnConnectionFailure() { - return _retryOnConnectionFailure( - reference.pointer, _id_retryOnConnectionFailure as jni.JMethodIDPtr) - .boolean; - } + - static final _id_authenticator = _class.instanceMethodId( - r'authenticator', - r'()Lokhttp3/Authenticator;', - ); + @_$jni.internal + RedirectInterceptor_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _authenticator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _class = _$jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor$Companion'); - /// from: public final okhttp3.Authenticator authenticator() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject authenticator() { - return _authenticator( - reference.pointer, _id_authenticator as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } + /// The type which includes information such as the signature of this class. +static const type = $RedirectInterceptor_Companion$Type(); +} +final class $RedirectInterceptor_Companion$Type extends _$jni.JObjType { + - static final _id_followRedirects = _class.instanceMethodId( - r'followRedirects', - r'()Z', + @_$jni.internal + const $RedirectInterceptor_Companion$Type( + ); - static final _followRedirects = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final boolean followRedirects() - bool followRedirects() { - return _followRedirects( - reference.pointer, _id_followRedirects as jni.JMethodIDPtr) - .boolean; - } + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; - static final _id_followSslRedirects = _class.instanceMethodId( - r'followSslRedirects', - r'()Z', + @_$jni.internal + @_$core.override + RedirectInterceptor_Companion fromReference(_$jni.JReference reference) => RedirectInterceptor_Companion.fromReference( + + reference ); - static final _followSslRedirects = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public final boolean followSslRedirects() - bool followSslRedirects() { - return _followSslRedirects( - reference.pointer, _id_followSslRedirects as jni.JMethodIDPtr) - .boolean; - } - - static final _id_cookieJar = _class.instanceMethodId( - r'cookieJar', - r'()Lokhttp3/CookieJar;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _cookieJar = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$core.override + int get hashCode => ($RedirectInterceptor_Companion$Type).hashCode; - /// from: public final okhttp3.CookieJar cookieJar() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject cookieJar() { - return _cookieJar(reference.pointer, _id_cookieJar as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RedirectInterceptor_Companion$Type) && + other is $RedirectInterceptor_Companion$Type; } +} - static final _id_cache = _class.instanceMethodId( - r'cache', - r'()Lokhttp3/Cache;', - ); - - static final _cache = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); +/// from: `com.example.ok_http.RedirectInterceptor` +class RedirectInterceptor extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - /// from: public final okhttp3.Cache cache() - /// The returned object must be released after use, by calling the [release] method. - Cache cache() { - return _cache(reference.pointer, _id_cache as jni.JMethodIDPtr) - .object(const $CacheType()); - } + - static final _id_dns = _class.instanceMethodId( - r'dns', - r'()Lokhttp3/Dns;', - ); + @_$jni.internal + RedirectInterceptor.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _dns = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _class = _$jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); - /// from: public final okhttp3.Dns dns() + /// The type which includes information such as the signature of this class. +static const type = $RedirectInterceptor$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lcom/example/ok_http/RedirectInterceptor$Companion;', + ); + /// from: `static public final com.example.ok_http.RedirectInterceptor$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - jni.JObject dns() { - return _dns(reference.pointer, _id_dns as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } +static RedirectInterceptor_Companion get Companion => _id_Companion.get(_class, const $RedirectInterceptor_Companion$Type()); - static final _id_proxy = _class.instanceMethodId( - r'proxy', - r'()Ljava/net/Proxy;', - ); +} +final class $RedirectInterceptor$Type extends _$jni.JObjType { + - static final _proxy = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + const $RedirectInterceptor$Type( + + ); - /// from: public final java.net.Proxy proxy() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject proxy() { - return _proxy(reference.pointer, _id_proxy as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/RedirectInterceptor;'; - static final _id_proxySelector = _class.instanceMethodId( - r'proxySelector', - r'()Ljava/net/ProxySelector;', + @_$jni.internal + @_$core.override + RedirectInterceptor fromReference(_$jni.JReference reference) => RedirectInterceptor.fromReference( + + reference ); - static final _proxySelector = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.net.ProxySelector proxySelector() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject proxySelector() { - return _proxySelector( - reference.pointer, _id_proxySelector as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - static final _id_proxyAuthenticator = _class.instanceMethodId( - r'proxyAuthenticator', - r'()Lokhttp3/Authenticator;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _proxyAuthenticator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$core.override + int get hashCode => ($RedirectInterceptor$Type).hashCode; - /// from: public final okhttp3.Authenticator proxyAuthenticator() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject proxyAuthenticator() { - return _proxyAuthenticator( - reference.pointer, _id_proxyAuthenticator as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RedirectInterceptor$Type) && + other is $RedirectInterceptor$Type; } +} - static final _id_socketFactory = _class.instanceMethodId( - r'socketFactory', - r'()Ljavax/net/SocketFactory;', - ); +/// from: `com.example.ok_http.AsyncInputStreamReader` +class AsyncInputStreamReader extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _socketFactory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final javax.net.SocketFactory socketFactory() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject socketFactory() { - return _socketFactory( - reference.pointer, _id_socketFactory as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } + @_$jni.internal + AsyncInputStreamReader.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _id_sslSocketFactory = _class.instanceMethodId( - r'sslSocketFactory', - r'()Ljavax/net/ssl/SSLSocketFactory;', - ); + static final _class = _$jni.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); + + /// The type which includes information such as the signature of this class. +static const type = $AsyncInputStreamReader$Type(); +} +final class $AsyncInputStreamReader$Type extends _$jni.JObjType { + - static final _sslSocketFactory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + const $AsyncInputStreamReader$Type( + + ); - /// from: public final javax.net.ssl.SSLSocketFactory sslSocketFactory() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject sslSocketFactory() { - return _sslSocketFactory( - reference.pointer, _id_sslSocketFactory as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } - - static final _id_x509TrustManager = _class.instanceMethodId( - r'x509TrustManager', - r'()Ljavax/net/ssl/X509TrustManager;', - ); - - static final _x509TrustManager = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final javax.net.ssl.X509TrustManager x509TrustManager() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject x509TrustManager() { - return _x509TrustManager( - reference.pointer, _id_x509TrustManager as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/AsyncInputStreamReader;'; - static final _id_connectionSpecs = _class.instanceMethodId( - r'connectionSpecs', - r'()Ljava/util/List;', + @_$jni.internal + @_$core.override + AsyncInputStreamReader fromReference(_$jni.JReference reference) => AsyncInputStreamReader.fromReference( + + reference ); - static final _connectionSpecs = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public final java.util.List connectionSpecs() - /// The returned object must be released after use, by calling the [release] method. - jni.JList connectionSpecs() { - return _connectionSpecs( - reference.pointer, _id_connectionSpecs as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); - } - - static final _id_protocols = _class.instanceMethodId( - r'protocols', - r'()Ljava/util/List;', - ); - - static final _protocols = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.List protocols() - /// The returned object must be released after use, by calling the [release] method. - jni.JList protocols() { - return _protocols(reference.pointer, _id_protocols as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); - } - - static final _id_hostnameVerifier = _class.instanceMethodId( - r'hostnameVerifier', - r'()Ljavax/net/ssl/HostnameVerifier;', - ); - - static final _hostnameVerifier = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final javax.net.ssl.HostnameVerifier hostnameVerifier() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject hostnameVerifier() { - return _hostnameVerifier( - reference.pointer, _id_hostnameVerifier as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } - - static final _id_certificatePinner = _class.instanceMethodId( - r'certificatePinner', - r'()Lokhttp3/CertificatePinner;', - ); - - static final _certificatePinner = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.CertificatePinner certificatePinner() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject certificatePinner() { - return _certificatePinner( - reference.pointer, _id_certificatePinner as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } - - static final _id_certificateChainCleaner = _class.instanceMethodId( - r'certificateChainCleaner', - r'()Lokhttp3/internal/tls/CertificateChainCleaner;', - ); - - static final _certificateChainCleaner = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.internal.tls.CertificateChainCleaner certificateChainCleaner() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject certificateChainCleaner() { - return _certificateChainCleaner( - reference.pointer, _id_certificateChainCleaner as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } - - static final _id_callTimeoutMillis = _class.instanceMethodId( - r'callTimeoutMillis', - r'()I', - ); - - static final _callTimeoutMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int callTimeoutMillis() - int callTimeoutMillis() { - return _callTimeoutMillis( - reference.pointer, _id_callTimeoutMillis as jni.JMethodIDPtr) - .integer; - } - - static final _id_connectTimeoutMillis = _class.instanceMethodId( - r'connectTimeoutMillis', - r'()I', - ); - - static final _connectTimeoutMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int connectTimeoutMillis() - int connectTimeoutMillis() { - return _connectTimeoutMillis( - reference.pointer, _id_connectTimeoutMillis as jni.JMethodIDPtr) - .integer; - } - - static final _id_readTimeoutMillis = _class.instanceMethodId( - r'readTimeoutMillis', - r'()I', - ); - - static final _readTimeoutMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int readTimeoutMillis() - int readTimeoutMillis() { - return _readTimeoutMillis( - reference.pointer, _id_readTimeoutMillis as jni.JMethodIDPtr) - .integer; - } - - static final _id_writeTimeoutMillis = _class.instanceMethodId( - r'writeTimeoutMillis', - r'()I', - ); - - static final _writeTimeoutMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int writeTimeoutMillis() - int writeTimeoutMillis() { - return _writeTimeoutMillis( - reference.pointer, _id_writeTimeoutMillis as jni.JMethodIDPtr) - .integer; - } - - static final _id_pingIntervalMillis = _class.instanceMethodId( - r'pingIntervalMillis', - r'()I', - ); - - static final _pingIntervalMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int pingIntervalMillis() - int pingIntervalMillis() { - return _pingIntervalMillis( - reference.pointer, _id_pingIntervalMillis as jni.JMethodIDPtr) - .integer; - } - - static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( - r'minWebSocketMessageToCompress', - r'()J', - ); - - static final _minWebSocketMessageToCompress = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final long minWebSocketMessageToCompress() - int minWebSocketMessageToCompress() { - return _minWebSocketMessageToCompress(reference.pointer, - _id_minWebSocketMessageToCompress as jni.JMethodIDPtr) - .long; - } - - static final _id_getRouteDatabase = _class.instanceMethodId( - r'getRouteDatabase', - r'()Lokhttp3/internal/connection/RouteDatabase;', - ); - - static final _getRouteDatabase = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.internal.connection.RouteDatabase getRouteDatabase() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject getRouteDatabase() { - return _getRouteDatabase( - reference.pointer, _id_getRouteDatabase as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } - - static final _id_new1 = _class.constructorId( - r'()V', - ); - - static final _new1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory OkHttpClient.new1() { - return OkHttpClient.fromReference( - _new1(_class.reference.pointer, _id_new1 as jni.JMethodIDPtr) - .reference); - } - - static final _id_newCall = _class.instanceMethodId( - r'newCall', - r'(Lokhttp3/Request;)Lokhttp3/Call;', - ); - - static final _newCall = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okhttp3.Call newCall(okhttp3.Request request) - /// The returned object must be released after use, by calling the [release] method. - Call newCall( - Request request, - ) { - return _newCall(reference.pointer, _id_newCall as jni.JMethodIDPtr, - request.reference.pointer) - .object(const $CallType()); - } - - static final _id_newWebSocket = _class.instanceMethodId( - r'newWebSocket', - r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', - ); - - static final _newWebSocket = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener) - /// The returned object must be released after use, by calling the [release] method. - WebSocket newWebSocket( - Request request, - jni.JObject webSocketListener, - ) { - return _newWebSocket( - reference.pointer, - _id_newWebSocket as jni.JMethodIDPtr, - request.reference.pointer, - webSocketListener.reference.pointer) - .object(const $WebSocketType()); - } - - static final _id_newBuilder = _class.instanceMethodId( - r'newBuilder', - r'()Lokhttp3/OkHttpClient$Builder;', - ); - - static final _newBuilder = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public okhttp3.OkHttpClient$Builder newBuilder() - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni.JMethodIDPtr) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_clone = _class.instanceMethodId( - r'clone', - r'()Ljava/lang/Object;', - ); - - static final _clone = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.Object clone() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject clone() { - return _clone(reference.pointer, _id_clone as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } -} - -final class $OkHttpClientType extends jni.JObjType { - const $OkHttpClientType(); - - @override - String get signature => r'Lokhttp3/OkHttpClient;'; - - @override - OkHttpClient fromReference(jni.JReference reference) => - OkHttpClient.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($OkHttpClientType).hashCode; + @_$core.override + int get hashCode => ($AsyncInputStreamReader$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClientType) && - other is $OkHttpClientType; + return other.runtimeType == ($AsyncInputStreamReader$Type) && + other is $AsyncInputStreamReader$Type; } } -/// from: okhttp3.Call$Factory -class Call_Factory extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `com.example.ok_http.DataCallback` +class DataCallback extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - Call_Factory.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Call$Factory'); - - /// The type which includes information such as the signature of this class. - static const type = $Call_FactoryType(); - static final _id_newCall = _class.instanceMethodId( - r'newCall', - r'(Lokhttp3/Request;)Lokhttp3/Call;', - ); - - static final _newCall = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public abstract okhttp3.Call newCall(okhttp3.Request request) - /// The returned object must be released after use, by calling the [release] method. - Call newCall( - Request request, - ) { - return _newCall(reference.pointer, _id_newCall as jni.JMethodIDPtr, - request.reference.pointer) - .object(const $CallType()); - } + - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; + @_$jni.internal + DataCallback.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'com/example/ok_http/DataCallback'); - static jni.JObjectPtr _$invoke( + /// The type which includes information such as the signature of this class. +static const type = $DataCallback$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { return _$invokeMethod( port, - $MethodInvocation.fromAddresses( + _$jni.MethodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -6398,321 +3236,150 @@ class Call_Factory extends jni.JObject { ); } - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static ffi.Pointer _$invokeMethod( + static _$jni.Pointer<_$jni.Void> _$invokeMethod( int $p, - $MethodInvocation $i, + _$jni.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == r'newCall(Lokhttp3/Request;)Lokhttp3/Call;') { - final $r = _$impls[$p]!.newCall( - $a[0].castTo(const $RequestType(), releaseOriginal: true), - ); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); } - return jni.nullptr; + return _$jni.nullptr; } - factory Call_Factory.implement( - $Call_FactoryImpl $impl, + static void implementIn( + _$jni.JImplementer implementer, + $DataCallback $impl, ) { - final $p = ReceivePort(); - final $x = Call_Factory.fromReference( - ProtectedJniExtensions.newPortProxy( - r'okhttp3.Call$Factory', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { if ($m == null) { _$impls.remove($p.sendPort.nativePort); $p.close(); return; } - final $i = $MethodInvocation.fromMessage($m as List); + final $i = _$jni.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); - return $x; + implementer.add( + r'com.example.ok_http.DataCallback', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; } -} - -abstract interface class $Call_FactoryImpl { - factory $Call_FactoryImpl({ - required Call Function(Request request) newCall, - }) = _$Call_FactoryImpl; - - Call newCall(Request request); -} -class _$Call_FactoryImpl implements $Call_FactoryImpl { - _$Call_FactoryImpl({ - required Call Function(Request request) newCall, - }) : _newCall = newCall; - - final Call Function(Request request) _newCall; - - Call newCall(Request request) { - return _newCall(request); + factory DataCallback.implement( + $DataCallback $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return DataCallback.fromReference( + + $i.implementReference(), + ); } -} - -final class $Call_FactoryType extends jni.JObjType { - const $Call_FactoryType(); - - @override - String get signature => r'Lokhttp3/Call$Factory;'; - - @override - Call_Factory fromReference(jni.JReference reference) => - Call_Factory.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($Call_FactoryType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($Call_FactoryType) && - other is $Call_FactoryType; } -} - -/// from: okhttp3.Call -class Call extends jni.JObject { - @override - late final jni.JObjType $type = type; +abstract base mixin class $DataCallback { + factory $DataCallback( + + ) = _$DataCallback; - Call.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + - static final _class = jni.JClass.forName(r'okhttp3/Call'); +} - /// The type which includes information such as the signature of this class. - static const type = $CallType(); - static final _id_request = _class.instanceMethodId( - r'request', - r'()Lokhttp3/Request;', +final class _$DataCallback with $DataCallback { + _$DataCallback( + ); - static final _request = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract okhttp3.Request request() - /// The returned object must be released after use, by calling the [release] method. - Request request() { - return _request(reference.pointer, _id_request as jni.JMethodIDPtr) - .object(const $RequestType()); - } - - static final _id_execute = _class.instanceMethodId( - r'execute', - r'()Lokhttp3/Response;', - ); + - static final _execute = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - /// from: public abstract okhttp3.Response execute() - /// The returned object must be released after use, by calling the [release] method. - Response execute() { - return _execute(reference.pointer, _id_execute as jni.JMethodIDPtr) - .object(const $ResponseType()); - } - - static final _id_enqueue = _class.instanceMethodId( - r'enqueue', - r'(Lokhttp3/Callback;)V', - ); - - static final _enqueue = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public abstract void enqueue(okhttp3.Callback callback) - void enqueue( - Callback callback, - ) { - _enqueue(reference.pointer, _id_enqueue as jni.JMethodIDPtr, - callback.reference.pointer) - .check(); - } +} +final class $DataCallback$Type extends _$jni.JObjType { + - static final _id_cancel = _class.instanceMethodId( - r'cancel', - r'()V', + @_$jni.internal + const $DataCallback$Type( + ); - static final _cancel = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract void cancel() - void cancel() { - _cancel(reference.pointer, _id_cancel as jni.JMethodIDPtr).check(); - } + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/DataCallback;'; - static final _id_isExecuted = _class.instanceMethodId( - r'isExecuted', - r'()Z', + @_$jni.internal + @_$core.override + DataCallback fromReference(_$jni.JReference reference) => DataCallback.fromReference( + + reference ); - static final _isExecuted = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public abstract boolean isExecuted() - bool isExecuted() { - return _isExecuted(reference.pointer, _id_isExecuted as jni.JMethodIDPtr) - .boolean; - } + @_$jni.internal + @_$core.override + final superCount = 1; - static final _id_isCanceled = _class.instanceMethodId( - r'isCanceled', - r'()Z', - ); + @_$core.override + int get hashCode => ($DataCallback$Type).hashCode; - static final _isCanceled = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract boolean isCanceled() - bool isCanceled() { - return _isCanceled(reference.pointer, _id_isCanceled as jni.JMethodIDPtr) - .boolean; - } - - static final _id_timeout = _class.instanceMethodId( - r'timeout', - r'()Lokio/Timeout;', - ); - - static final _timeout = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract okio.Timeout timeout() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject timeout() { - return _timeout(reference.pointer, _id_timeout as jni.JMethodIDPtr) - .object(const jni.JObjectType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($DataCallback$Type) && + other is $DataCallback$Type; } +} - static final _id_clone = _class.instanceMethodId( - r'clone', - r'()Lokhttp3/Call;', - ); +/// from: `okhttp3.WebSocket$Factory` +class WebSocket_Factory extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _clone = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public abstract okhttp3.Call clone() - /// The returned object must be released after use, by calling the [release] method. - Call clone() { - return _clone(reference.pointer, _id_clone as jni.JMethodIDPtr) - .object(const $CallType()); - } + @_$jni.internal + WebSocket_Factory.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; + static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket$Factory'); - static jni.JObjectPtr _$invoke( + /// The type which includes information such as the signature of this class. +static const type = $WebSocket_Factory$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { return _$invokeMethod( port, - $MethodInvocation.fromAddresses( + _$jni.MethodInvocation.fromAddresses( 0, descriptor.address, args.address, @@ -6720,7151 +3387,1005 @@ class Call extends jni.JObject { ); } - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static ffi.Pointer _$invokeMethod( + static _$jni.Pointer<_$jni.Void> _$invokeMethod( int $p, - $MethodInvocation $i, + _$jni.MethodInvocation $i, ) { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == r'request()Lokhttp3/Request;') { - final $r = _$impls[$p]!.request(); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - if ($d == r'execute()Lokhttp3/Response;') { - final $r = _$impls[$p]!.execute(); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - if ($d == r'enqueue(Lokhttp3/Callback;)V') { - _$impls[$p]!.enqueue( - $a[0].castTo(const $CallbackType(), releaseOriginal: true), - ); - return jni.nullptr; - } - if ($d == r'cancel()V') { - _$impls[$p]!.cancel(); - return jni.nullptr; - } - if ($d == r'isExecuted()Z') { - final $r = _$impls[$p]!.isExecuted(); - return jni.JBoolean($r).reference.toPointer(); - } - if ($d == r'isCanceled()Z') { - final $r = _$impls[$p]!.isCanceled(); - return jni.JBoolean($r).reference.toPointer(); - } - if ($d == r'timeout()Lokio/Timeout;') { - final $r = _$impls[$p]!.timeout(); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - if ($d == r'clone()Lokhttp3/Call;') { - final $r = _$impls[$p]!.clone(); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); } - return jni.nullptr; + return _$jni.nullptr; } - factory Call.implement( - $CallImpl $impl, + static void implementIn( + _$jni.JImplementer implementer, + $WebSocket_Factory $impl, ) { - final $p = ReceivePort(); - final $x = Call.fromReference( - ProtectedJniExtensions.newPortProxy( - r'okhttp3.Call', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { if ($m == null) { _$impls.remove($p.sendPort.nativePort); $p.close(); return; } - final $i = $MethodInvocation.fromMessage($m as List); + final $i = _$jni.MethodInvocation.fromMessage($m); final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); - return $x; - } -} - -abstract interface class $CallImpl { - factory $CallImpl({ - required Request Function() request, - required Response Function() execute, - required void Function(Callback callback) enqueue, - required void Function() cancel, - required bool Function() isExecuted, - required bool Function() isCanceled, - required jni.JObject Function() timeout, - required Call Function() clone, - }) = _$CallImpl; - - Request request(); - Response execute(); - void enqueue(Callback callback); - void cancel(); - bool isExecuted(); - bool isCanceled(); - jni.JObject timeout(); - Call clone(); -} - -class _$CallImpl implements $CallImpl { - _$CallImpl({ - required Request Function() request, - required Response Function() execute, - required void Function(Callback callback) enqueue, - required void Function() cancel, - required bool Function() isExecuted, - required bool Function() isCanceled, - required jni.JObject Function() timeout, - required Call Function() clone, - }) : _request = request, - _execute = execute, - _enqueue = enqueue, - _cancel = cancel, - _isExecuted = isExecuted, - _isCanceled = isCanceled, - _timeout = timeout, - _clone = clone; - - final Request Function() _request; - final Response Function() _execute; - final void Function(Callback callback) _enqueue; - final void Function() _cancel; - final bool Function() _isExecuted; - final bool Function() _isCanceled; - final jni.JObject Function() _timeout; - final Call Function() _clone; - - Request request() { - return _request(); - } - - Response execute() { - return _execute(); - } - - void enqueue(Callback callback) { - return _enqueue(callback); - } - - void cancel() { - return _cancel(); - } - - bool isExecuted() { - return _isExecuted(); - } - - bool isCanceled() { - return _isCanceled(); - } - - jni.JObject timeout() { - return _timeout(); - } - - Call clone() { - return _clone(); - } -} - -final class $CallType extends jni.JObjType { - const $CallType(); - - @override - String get signature => r'Lokhttp3/Call;'; - - @override - Call fromReference(jni.JReference reference) => Call.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($CallType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($CallType) && other is $CallType; - } -} - -/// from: okhttp3.Headers$Builder -class Headers_Builder extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Headers_Builder.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Headers$Builder'); - - /// The type which includes information such as the signature of this class. - static const type = $Headers_BuilderType(); - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory Headers_Builder() { - return Headers_Builder.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } - - static final _id_add = _class.instanceMethodId( - r'add', - r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', - ); - - static final _add = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder add(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder add( - jni.JString string, - ) { - return _add(reference.pointer, _id_add as jni.JMethodIDPtr, - string.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_add1 = _class.instanceMethodId( - r'add', - r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', - ); - - static final _add1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder add(java.lang.String string, java.lang.String string1) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder add1( - jni.JString string, - jni.JString string1, - ) { - return _add1(reference.pointer, _id_add1 as jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_addUnsafeNonAscii = _class.instanceMethodId( - r'addUnsafeNonAscii', - r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', - ); - - static final _addUnsafeNonAscii = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder addUnsafeNonAscii(java.lang.String string, java.lang.String string1) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder addUnsafeNonAscii( - jni.JString string, - jni.JString string1, - ) { - return _addUnsafeNonAscii( - reference.pointer, - _id_addUnsafeNonAscii as jni.JMethodIDPtr, - string.reference.pointer, - string1.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_addAll = _class.instanceMethodId( - r'addAll', - r'(Lokhttp3/Headers;)Lokhttp3/Headers$Builder;', - ); - - static final _addAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder addAll(okhttp3.Headers headers) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder addAll( - Headers headers, - ) { - return _addAll(reference.pointer, _id_addAll as jni.JMethodIDPtr, - headers.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_add2 = _class.instanceMethodId( - r'add', - r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', - ); - - static final _add2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder add(java.lang.String string, java.util.Date date) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder add2( - jni.JString string, - jni.JObject date, - ) { - return _add2(reference.pointer, _id_add2 as jni.JMethodIDPtr, - string.reference.pointer, date.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_add3 = _class.instanceMethodId( - r'add', - r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', - ); - - static final _add3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder add(java.lang.String string, java.time.Instant instant) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder add3( - jni.JString string, - jni.JObject instant, - ) { - return _add3(reference.pointer, _id_add3 as jni.JMethodIDPtr, - string.reference.pointer, instant.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_set0 = _class.instanceMethodId( - r'set', - r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', - ); - - static final _set0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder set(java.lang.String string, java.util.Date date) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder set0( - jni.JString string, - jni.JObject date, - ) { - return _set0(reference.pointer, _id_set0 as jni.JMethodIDPtr, - string.reference.pointer, date.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_set1 = _class.instanceMethodId( - r'set', - r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', - ); - - static final _set1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder set(java.lang.String string, java.time.Instant instant) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder set1( - jni.JString string, - jni.JObject instant, - ) { - return _set1(reference.pointer, _id_set1 as jni.JMethodIDPtr, - string.reference.pointer, instant.reference.pointer) - .object(const $Headers_BuilderType()); + implementer.add( + r'okhttp3.WebSocket$Factory', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; } - static final _id_removeAll = _class.instanceMethodId( - r'removeAll', - r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', - ); - - static final _removeAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder removeAll(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder removeAll( - jni.JString string, - ) { - return _removeAll(reference.pointer, _id_removeAll as jni.JMethodIDPtr, - string.reference.pointer) - .object(const $Headers_BuilderType()); - } - - static final _id_set2 = _class.instanceMethodId( - r'set', - r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', - ); - - static final _set2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okhttp3.Headers$Builder set(java.lang.String string, java.lang.String string1) - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder set2( - jni.JString string, - jni.JString string1, + factory WebSocket_Factory.implement( + $WebSocket_Factory $impl, ) { - return _set2(reference.pointer, _id_set2 as jni.JMethodIDPtr, - string.reference.pointer, string1.reference.pointer) - .object(const $Headers_BuilderType()); + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return WebSocket_Factory.fromReference( + + $i.implementReference(), + ); } - - static final _id_get0 = _class.instanceMethodId( - r'get', - r'(Ljava/lang/String;)Ljava/lang/String;', - ); - - static final _get0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.lang.String get(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - jni.JString get0( - jni.JString string, - ) { - return _get0(reference.pointer, _id_get0 as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JStringType()); } +abstract base mixin class $WebSocket_Factory { + factory $WebSocket_Factory( + + ) = _$WebSocket_Factory; - static final _id_build = _class.instanceMethodId( - r'build', - r'()Lokhttp3/Headers;', - ); - - static final _build = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + - /// from: public final okhttp3.Headers build() - /// The returned object must be released after use, by calling the [release] method. - Headers build() { - return _build(reference.pointer, _id_build as jni.JMethodIDPtr) - .object(const $HeadersType()); - } } -final class $Headers_BuilderType extends jni.JObjType { - const $Headers_BuilderType(); - - @override - String get signature => r'Lokhttp3/Headers$Builder;'; - - @override - Headers_Builder fromReference(jni.JReference reference) => - Headers_Builder.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($Headers_BuilderType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($Headers_BuilderType) && - other is $Headers_BuilderType; - } -} - -/// from: okhttp3.Headers$Companion -class Headers_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Headers_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Headers$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $Headers_CompanionType(); - static final _id_of = _class.instanceMethodId( - r'of', - r'([Ljava/lang/String;)Lokhttp3/Headers;', - ); - - static final _of = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.Headers of(java.lang.String[] strings) - /// The returned object must be released after use, by calling the [release] method. - Headers of( - jni.JArray strings, - ) { - return _of(reference.pointer, _id_of as jni.JMethodIDPtr, - strings.reference.pointer) - .object(const $HeadersType()); - } - - static final _id_of1 = _class.instanceMethodId( - r'of', - r'(Ljava/util/Map;)Lokhttp3/Headers;', - ); - - static final _of1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.Headers of(java.util.Map map) - /// The returned object must be released after use, by calling the [release] method. - Headers of1( - jni.JMap map, - ) { - return _of1(reference.pointer, _id_of1 as jni.JMethodIDPtr, - map.reference.pointer) - .object(const $HeadersType()); - } - - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory Headers_Companion( - jni.JObject defaultConstructorMarker, - ) { - return Headers_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); - } -} - -final class $Headers_CompanionType extends jni.JObjType { - const $Headers_CompanionType(); - - @override - String get signature => r'Lokhttp3/Headers$Companion;'; - - @override - Headers_Companion fromReference(jni.JReference reference) => - Headers_Companion.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($Headers_CompanionType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($Headers_CompanionType) && - other is $Headers_CompanionType; - } -} - -/// from: okhttp3.Headers -class Headers extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Headers.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Headers'); - - /// The type which includes information such as the signature of this class. - static const type = $HeadersType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/Headers$Companion;', - ); - - /// from: static public final okhttp3.Headers$Companion Companion - /// The returned object must be released after use, by calling the [release] method. - static Headers_Companion get Companion => - _id_Companion.get(_class, const $Headers_CompanionType()); - - static final _id_get0 = _class.instanceMethodId( - r'get', - r'(Ljava/lang/String;)Ljava/lang/String;', - ); - - static final _get0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.lang.String get(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - jni.JString get0( - jni.JString string, - ) { - return _get0(reference.pointer, _id_get0 as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JStringType()); - } - - static final _id_getDate = _class.instanceMethodId( - r'getDate', - r'(Ljava/lang/String;)Ljava/util/Date;', - ); - - static final _getDate = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.util.Date getDate(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - jni.JObject getDate( - jni.JString string, - ) { - return _getDate(reference.pointer, _id_getDate as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JObjectType()); - } - - static final _id_getInstant = _class.instanceMethodId( - r'getInstant', - r'(Ljava/lang/String;)Ljava/time/Instant;', - ); - - static final _getInstant = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.time.Instant getInstant(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - jni.JObject getInstant( - jni.JString string, - ) { - return _getInstant(reference.pointer, _id_getInstant as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JObjectType()); - } - - static final _id_size = _class.instanceMethodId( - r'size', - r'()I', - ); - - static final _size = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int size() - int size() { - return _size(reference.pointer, _id_size as jni.JMethodIDPtr).integer; - } - - static final _id_name = _class.instanceMethodId( - r'name', - r'(I)Ljava/lang/String;', - ); - - static final _name = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public final java.lang.String name(int i) - /// The returned object must be released after use, by calling the [release] method. - jni.JString name( - int i, - ) { - return _name(reference.pointer, _id_name as jni.JMethodIDPtr, i) - .object(const jni.JStringType()); - } - - static final _id_value = _class.instanceMethodId( - r'value', - r'(I)Ljava/lang/String;', - ); - - static final _value = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public final java.lang.String value(int i) - /// The returned object must be released after use, by calling the [release] method. - jni.JString value( - int i, - ) { - return _value(reference.pointer, _id_value as jni.JMethodIDPtr, i) - .object(const jni.JStringType()); - } - - static final _id_names = _class.instanceMethodId( - r'names', - r'()Ljava/util/Set;', - ); - - static final _names = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.Set names() - /// The returned object must be released after use, by calling the [release] method. - jni.JSet names() { - return _names(reference.pointer, _id_names as jni.JMethodIDPtr) - .object(const jni.JSetType(jni.JStringType())); - } - - static final _id_values = _class.instanceMethodId( - r'values', - r'(Ljava/lang/String;)Ljava/util/List;', - ); - - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.util.List values(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - jni.JList values( - jni.JString string, - ) { - return _values(reference.pointer, _id_values as jni.JMethodIDPtr, - string.reference.pointer) - .object(const jni.JListType(jni.JStringType())); - } - - static final _id_byteCount = _class.instanceMethodId( - r'byteCount', - r'()J', - ); - - static final _byteCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final long byteCount() - int byteCount() { - return _byteCount(reference.pointer, _id_byteCount as jni.JMethodIDPtr) - .long; - } - - static final _id_iterator = _class.instanceMethodId( - r'iterator', - r'()Ljava/util/Iterator;', - ); - - static final _iterator = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.util.Iterator iterator() - /// The returned object must be released after use, by calling the [release] method. - jni.JIterator iterator() { - return _iterator(reference.pointer, _id_iterator as jni.JMethodIDPtr) - .object(const jni.JIteratorType(jni.JObjectType())); - } - - static final _id_newBuilder = _class.instanceMethodId( - r'newBuilder', - r'()Lokhttp3/Headers$Builder;', - ); - - static final _newBuilder = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okhttp3.Headers$Builder newBuilder() - /// The returned object must be released after use, by calling the [release] method. - Headers_Builder newBuilder() { - return _newBuilder(reference.pointer, _id_newBuilder as jni.JMethodIDPtr) - .object(const $Headers_BuilderType()); - } - - static final _id_equals = _class.instanceMethodId( - r'equals', - r'(Ljava/lang/Object;)Z', - ); - - static final _equals = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public boolean equals(java.lang.Object object) - bool equals( - jni.JObject object, - ) { - return _equals(reference.pointer, _id_equals as jni.JMethodIDPtr, - object.reference.pointer) - .boolean; - } - - static final _id_hashCode1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); - - static final _hashCode1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public int hashCode() - int hashCode1() { - return _hashCode1(reference.pointer, _id_hashCode1 as jni.JMethodIDPtr) - .integer; - } - - static final _id_toString1 = _class.instanceMethodId( - r'toString', - r'()Ljava/lang/String;', - ); - - static final _toString1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.String toString() - /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() { - return _toString1(reference.pointer, _id_toString1 as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_toMultimap = _class.instanceMethodId( - r'toMultimap', - r'()Ljava/util/Map;', - ); - - static final _toMultimap = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.Map toMultimap() - /// The returned object must be released after use, by calling the [release] method. - jni.JMap> toMultimap() { - return _toMultimap(reference.pointer, _id_toMultimap as jni.JMethodIDPtr) - .object(const jni.JMapType( - jni.JStringType(), jni.JListType(jni.JStringType()))); - } - - static final _id_of = _class.staticMethodId( - r'of', - r'([Ljava/lang/String;)Lokhttp3/Headers;', - ); - - static final _of = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: static public final okhttp3.Headers of(java.lang.String[] strings) - /// The returned object must be released after use, by calling the [release] method. - static Headers of( - jni.JArray strings, - ) { - return _of(_class.reference.pointer, _id_of as jni.JMethodIDPtr, - strings.reference.pointer) - .object(const $HeadersType()); - } - - static final _id_of1 = _class.staticMethodId( - r'of', - r'(Ljava/util/Map;)Lokhttp3/Headers;', - ); - - static final _of1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: static public final okhttp3.Headers of(java.util.Map map) - /// The returned object must be released after use, by calling the [release] method. - static Headers of1( - jni.JMap map, - ) { - return _of1(_class.reference.pointer, _id_of1 as jni.JMethodIDPtr, - map.reference.pointer) - .object(const $HeadersType()); - } - - static final _id_new0 = _class.constructorId( - r'([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public void (java.lang.String[] strings, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory Headers( - jni.JArray strings, - jni.JObject defaultConstructorMarker, - ) { - return Headers.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - strings.reference.pointer, - defaultConstructorMarker.reference.pointer) - .reference); - } -} - -final class $HeadersType extends jni.JObjType { - const $HeadersType(); - - @override - String get signature => r'Lokhttp3/Headers;'; - - @override - Headers fromReference(jni.JReference reference) => - Headers.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($HeadersType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($HeadersType) && other is $HeadersType; - } -} - -/// from: okhttp3.Callback -class Callback extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Callback.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Callback'); - - /// The type which includes information such as the signature of this class. - static const type = $CallbackType(); - static final _id_onFailure = _class.instanceMethodId( - r'onFailure', - r'(Lokhttp3/Call;Ljava/io/IOException;)V', - ); - - static final _onFailure = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract void onFailure(okhttp3.Call call, java.io.IOException iOException) - void onFailure( - Call call, - jni.JObject iOException, - ) { - _onFailure(reference.pointer, _id_onFailure as jni.JMethodIDPtr, - call.reference.pointer, iOException.reference.pointer) - .check(); - } - - static final _id_onResponse = _class.instanceMethodId( - r'onResponse', - r'(Lokhttp3/Call;Lokhttp3/Response;)V', - ); - - static final _onResponse = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract void onResponse(okhttp3.Call call, okhttp3.Response response) - void onResponse( - Call call, - Response response, - ) { - _onResponse(reference.pointer, _id_onResponse as jni.JMethodIDPtr, - call.reference.pointer, response.reference.pointer) - .check(); - } - - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; - - static jni.JObjectPtr _$invoke( - int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); - - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'onFailure(Lokhttp3/Call;Ljava/io/IOException;)V') { - _$impls[$p]!.onFailure( - $a[0].castTo(const $CallType(), releaseOriginal: true), - $a[1].castTo(const jni.JObjectType(), releaseOriginal: true), - ); - return jni.nullptr; - } - if ($d == r'onResponse(Lokhttp3/Call;Lokhttp3/Response;)V') { - _$impls[$p]!.onResponse( - $a[0].castTo(const $CallType(), releaseOriginal: true), - $a[1].castTo(const $ResponseType(), releaseOriginal: true), - ); - return jni.nullptr; - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); - } - return jni.nullptr; - } - - factory Callback.implement( - $CallbackImpl $impl, - ) { - final $p = ReceivePort(); - final $x = Callback.fromReference( - ProtectedJniExtensions.newPortProxy( - r'okhttp3.Callback', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = $MethodInvocation.fromMessage($m as List); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); - }); - return $x; - } -} - -abstract interface class $CallbackImpl { - factory $CallbackImpl({ - required void Function(Call call, jni.JObject iOException) onFailure, - required void Function(Call call, Response response) onResponse, - }) = _$CallbackImpl; - - void onFailure(Call call, jni.JObject iOException); - void onResponse(Call call, Response response); -} - -class _$CallbackImpl implements $CallbackImpl { - _$CallbackImpl({ - required void Function(Call call, jni.JObject iOException) onFailure, - required void Function(Call call, Response response) onResponse, - }) : _onFailure = onFailure, - _onResponse = onResponse; - - final void Function(Call call, jni.JObject iOException) _onFailure; - final void Function(Call call, Response response) _onResponse; - - void onFailure(Call call, jni.JObject iOException) { - return _onFailure(call, iOException); - } - - void onResponse(Call call, Response response) { - return _onResponse(call, response); - } -} - -final class $CallbackType extends jni.JObjType { - const $CallbackType(); - - @override - String get signature => r'Lokhttp3/Callback;'; - - @override - Callback fromReference(jni.JReference reference) => - Callback.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($CallbackType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($CallbackType) && other is $CallbackType; - } -} - -/// from: okhttp3.ConnectionPool -class ConnectionPool extends jni.JObject { - @override - late final jni.JObjType $type = type; - - ConnectionPool.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/ConnectionPool'); - - /// The type which includes information such as the signature of this class. - static const type = $ConnectionPoolType(); - static final _id_new0 = _class.constructorId( - r'(Lokhttp3/internal/connection/RealConnectionPool;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (okhttp3.internal.connection.RealConnectionPool realConnectionPool) - /// The returned object must be released after use, by calling the [release] method. - factory ConnectionPool( - jni.JObject realConnectionPool, - ) { - return ConnectionPool.fromReference(_new0(_class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, realConnectionPool.reference.pointer) - .reference); - } - - static final _id_new1 = _class.constructorId( - r'(IJLjava/util/concurrent/TimeUnit;)V', - ); - - static final _new1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - $Int32, - ffi.Int64, - ffi.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - int, ffi.Pointer)>(); - - /// from: public void (int i, long j, java.util.concurrent.TimeUnit timeUnit) - /// The returned object must be released after use, by calling the [release] method. - factory ConnectionPool.new1( - int i, - int j, - TimeUnit timeUnit, - ) { - return ConnectionPool.fromReference(_new1(_class.reference.pointer, - _id_new1 as jni.JMethodIDPtr, i, j, timeUnit.reference.pointer) - .reference); - } - - static final _id_new2 = _class.constructorId( - r'()V', - ); - - static final _new2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory ConnectionPool.new2() { - return ConnectionPool.fromReference( - _new2(_class.reference.pointer, _id_new2 as jni.JMethodIDPtr) - .reference); - } - - static final _id_idleConnectionCount = _class.instanceMethodId( - r'idleConnectionCount', - r'()I', - ); - - static final _idleConnectionCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int idleConnectionCount() - int idleConnectionCount() { - return _idleConnectionCount( - reference.pointer, _id_idleConnectionCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_connectionCount = _class.instanceMethodId( - r'connectionCount', - r'()I', - ); - - static final _connectionCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int connectionCount() - int connectionCount() { - return _connectionCount( - reference.pointer, _id_connectionCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_evictAll = _class.instanceMethodId( - r'evictAll', - r'()V', - ); - - static final _evictAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final void evictAll() - void evictAll() { - _evictAll(reference.pointer, _id_evictAll as jni.JMethodIDPtr).check(); - } -} - -final class $ConnectionPoolType extends jni.JObjType { - const $ConnectionPoolType(); - - @override - String get signature => r'Lokhttp3/ConnectionPool;'; - - @override - ConnectionPool fromReference(jni.JReference reference) => - ConnectionPool.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($ConnectionPoolType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($ConnectionPoolType) && - other is $ConnectionPoolType; - } -} - -/// from: okhttp3.Dispatcher -class Dispatcher extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Dispatcher.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Dispatcher'); - - /// The type which includes information such as the signature of this class. - static const type = $DispatcherType(); - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory Dispatcher() { - return Dispatcher.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } - - static final _id_getMaxRequests = _class.instanceMethodId( - r'getMaxRequests', - r'()I', - ); - - static final _getMaxRequests = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int getMaxRequests() - int getMaxRequests() { - return _getMaxRequests( - reference.pointer, _id_getMaxRequests as jni.JMethodIDPtr) - .integer; - } - - static final _id_setMaxRequests = _class.instanceMethodId( - r'setMaxRequests', - r'(I)V', - ); - - static final _setMaxRequests = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public final void setMaxRequests(int i) - void setMaxRequests( - int i, - ) { - _setMaxRequests( - reference.pointer, _id_setMaxRequests as jni.JMethodIDPtr, i) - .check(); - } - - static final _id_getMaxRequestsPerHost = _class.instanceMethodId( - r'getMaxRequestsPerHost', - r'()I', - ); - - static final _getMaxRequestsPerHost = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int getMaxRequestsPerHost() - int getMaxRequestsPerHost() { - return _getMaxRequestsPerHost( - reference.pointer, _id_getMaxRequestsPerHost as jni.JMethodIDPtr) - .integer; - } - - static final _id_setMaxRequestsPerHost = _class.instanceMethodId( - r'setMaxRequestsPerHost', - r'(I)V', - ); - - static final _setMaxRequestsPerHost = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public final void setMaxRequestsPerHost(int i) - void setMaxRequestsPerHost( - int i, - ) { - _setMaxRequestsPerHost( - reference.pointer, _id_setMaxRequestsPerHost as jni.JMethodIDPtr, i) - .check(); - } - - static final _id_getIdleCallback = _class.instanceMethodId( - r'getIdleCallback', - r'()Ljava/lang/Runnable;', - ); - - static final _getIdleCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.lang.Runnable getIdleCallback() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject getIdleCallback() { - return _getIdleCallback( - reference.pointer, _id_getIdleCallback as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } - - static final _id_setIdleCallback = _class.instanceMethodId( - r'setIdleCallback', - r'(Ljava/lang/Runnable;)V', - ); - - static final _setIdleCallback = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final void setIdleCallback(java.lang.Runnable runnable) - void setIdleCallback( - jni.JObject runnable, - ) { - _setIdleCallback(reference.pointer, _id_setIdleCallback as jni.JMethodIDPtr, - runnable.reference.pointer) - .check(); - } - - static final _id_executorService = _class.instanceMethodId( - r'executorService', - r'()Ljava/util/concurrent/ExecutorService;', - ); - - static final _executorService = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.concurrent.ExecutorService executorService() - /// The returned object must be released after use, by calling the [release] method. - ExecutorService executorService() { - return _executorService( - reference.pointer, _id_executorService as jni.JMethodIDPtr) - .object(const $ExecutorServiceType()); - } - - static final _id_new1 = _class.constructorId( - r'(Ljava/util/concurrent/ExecutorService;)V', - ); - - static final _new1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (java.util.concurrent.ExecutorService executorService) - /// The returned object must be released after use, by calling the [release] method. - factory Dispatcher.new1( - ExecutorService executorService, - ) { - return Dispatcher.fromReference(_new1(_class.reference.pointer, - _id_new1 as jni.JMethodIDPtr, executorService.reference.pointer) - .reference); - } - - static final _id_cancelAll = _class.instanceMethodId( - r'cancelAll', - r'()V', - ); - - static final _cancelAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final void cancelAll() - void cancelAll() { - _cancelAll(reference.pointer, _id_cancelAll as jni.JMethodIDPtr).check(); - } - - static final _id_queuedCalls = _class.instanceMethodId( - r'queuedCalls', - r'()Ljava/util/List;', - ); - - static final _queuedCalls = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.List queuedCalls() - /// The returned object must be released after use, by calling the [release] method. - jni.JList queuedCalls() { - return _queuedCalls(reference.pointer, _id_queuedCalls as jni.JMethodIDPtr) - .object(const jni.JListType($CallType())); - } - - static final _id_runningCalls = _class.instanceMethodId( - r'runningCalls', - r'()Ljava/util/List;', - ); - - static final _runningCalls = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.List runningCalls() - /// The returned object must be released after use, by calling the [release] method. - jni.JList runningCalls() { - return _runningCalls( - reference.pointer, _id_runningCalls as jni.JMethodIDPtr) - .object(const jni.JListType($CallType())); - } - - static final _id_queuedCallsCount = _class.instanceMethodId( - r'queuedCallsCount', - r'()I', - ); - - static final _queuedCallsCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int queuedCallsCount() - int queuedCallsCount() { - return _queuedCallsCount( - reference.pointer, _id_queuedCallsCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_runningCallsCount = _class.instanceMethodId( - r'runningCallsCount', - r'()I', - ); - - static final _runningCallsCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int runningCallsCount() - int runningCallsCount() { - return _runningCallsCount( - reference.pointer, _id_runningCallsCount as jni.JMethodIDPtr) - .integer; - } -} - -final class $DispatcherType extends jni.JObjType { - const $DispatcherType(); - - @override - String get signature => r'Lokhttp3/Dispatcher;'; - - @override - Dispatcher fromReference(jni.JReference reference) => - Dispatcher.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($DispatcherType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($DispatcherType) && other is $DispatcherType; - } -} - -/// from: java.util.concurrent.ExecutorService -class ExecutorService extends jni.JObject { - @override - late final jni.JObjType $type = type; - - ExecutorService.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'java/util/concurrent/ExecutorService'); - - /// The type which includes information such as the signature of this class. - static const type = $ExecutorServiceType(); - static final _id_shutdown = _class.instanceMethodId( - r'shutdown', - r'()V', - ); - - static final _shutdown = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract void shutdown() - void shutdown() { - _shutdown(reference.pointer, _id_shutdown as jni.JMethodIDPtr).check(); - } - - static final _id_shutdownNow = _class.instanceMethodId( - r'shutdownNow', - r'()Ljava/util/List;', - ); - - static final _shutdownNow = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract java.util.List shutdownNow() - /// The returned object must be released after use, by calling the [release] method. - jni.JList shutdownNow() { - return _shutdownNow(reference.pointer, _id_shutdownNow as jni.JMethodIDPtr) - .object(const jni.JListType(jni.JObjectType())); - } - - static final _id_isShutdown = _class.instanceMethodId( - r'isShutdown', - r'()Z', - ); - - static final _isShutdown = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract boolean isShutdown() - bool isShutdown() { - return _isShutdown(reference.pointer, _id_isShutdown as jni.JMethodIDPtr) - .boolean; - } - - static final _id_isTerminated = _class.instanceMethodId( - r'isTerminated', - r'()Z', - ); - - static final _isTerminated = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract boolean isTerminated() - bool isTerminated() { - return _isTerminated( - reference.pointer, _id_isTerminated as jni.JMethodIDPtr) - .boolean; - } - - static final _id_awaitTermination = _class.instanceMethodId( - r'awaitTermination', - r'(JLjava/util/concurrent/TimeUnit;)Z', - ); - - static final _awaitTermination = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64, ffi.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); - - /// from: public abstract boolean awaitTermination(long j, java.util.concurrent.TimeUnit timeUnit) - bool awaitTermination( - int j, - TimeUnit timeUnit, - ) { - return _awaitTermination( - reference.pointer, - _id_awaitTermination as jni.JMethodIDPtr, - j, - timeUnit.reference.pointer) - .boolean; - } - - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; - - static jni.JObjectPtr _$invoke( - int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); - - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'shutdown()V') { - _$impls[$p]!.shutdown(); - return jni.nullptr; - } - if ($d == r'shutdownNow()Ljava/util/List;') { - final $r = _$impls[$p]!.shutdownNow(); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - if ($d == r'isShutdown()Z') { - final $r = _$impls[$p]!.isShutdown(); - return jni.JBoolean($r).reference.toPointer(); - } - if ($d == r'isTerminated()Z') { - final $r = _$impls[$p]!.isTerminated(); - return jni.JBoolean($r).reference.toPointer(); - } - if ($d == r'awaitTermination(JLjava/util/concurrent/TimeUnit;)Z') { - final $r = _$impls[$p]!.awaitTermination( - $a[0] - .castTo(const jni.JLongType(), releaseOriginal: true) - .longValue(releaseOriginal: true), - $a[1].castTo(const $TimeUnitType(), releaseOriginal: true), - ); - return jni.JBoolean($r).reference.toPointer(); - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); - } - return jni.nullptr; - } - - factory ExecutorService.implement( - $ExecutorServiceImpl $impl, - ) { - final $p = ReceivePort(); - final $x = ExecutorService.fromReference( - ProtectedJniExtensions.newPortProxy( - r'java.util.concurrent.ExecutorService', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = $MethodInvocation.fromMessage($m as List); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); - }); - return $x; - } -} - -abstract interface class $ExecutorServiceImpl { - factory $ExecutorServiceImpl({ - required void Function() shutdown, - required jni.JList Function() shutdownNow, - required bool Function() isShutdown, - required bool Function() isTerminated, - required bool Function(int j, TimeUnit timeUnit) awaitTermination, - }) = _$ExecutorServiceImpl; - - void shutdown(); - jni.JList shutdownNow(); - bool isShutdown(); - bool isTerminated(); - bool awaitTermination(int j, TimeUnit timeUnit); -} - -class _$ExecutorServiceImpl implements $ExecutorServiceImpl { - _$ExecutorServiceImpl({ - required void Function() shutdown, - required jni.JList Function() shutdownNow, - required bool Function() isShutdown, - required bool Function() isTerminated, - required bool Function(int j, TimeUnit timeUnit) awaitTermination, - }) : _shutdown = shutdown, - _shutdownNow = shutdownNow, - _isShutdown = isShutdown, - _isTerminated = isTerminated, - _awaitTermination = awaitTermination; - - final void Function() _shutdown; - final jni.JList Function() _shutdownNow; - final bool Function() _isShutdown; - final bool Function() _isTerminated; - final bool Function(int j, TimeUnit timeUnit) _awaitTermination; - - void shutdown() { - return _shutdown(); - } - - jni.JList shutdownNow() { - return _shutdownNow(); - } - - bool isShutdown() { - return _isShutdown(); - } - - bool isTerminated() { - return _isTerminated(); - } - - bool awaitTermination(int j, TimeUnit timeUnit) { - return _awaitTermination(j, timeUnit); - } -} - -final class $ExecutorServiceType extends jni.JObjType { - const $ExecutorServiceType(); - - @override - String get signature => r'Ljava/util/concurrent/ExecutorService;'; - - @override - ExecutorService fromReference(jni.JReference reference) => - ExecutorService.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($ExecutorServiceType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($ExecutorServiceType) && - other is $ExecutorServiceType; - } -} - -/// from: okhttp3.Cache$Companion -class Cache_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Cache_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Cache$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $Cache_CompanionType(); - static final _id_key = _class.instanceMethodId( - r'key', - r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', - ); - - static final _key = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final java.lang.String key(okhttp3.HttpUrl httpUrl) - /// The returned object must be released after use, by calling the [release] method. - jni.JString key( - jni.JObject httpUrl, - ) { - return _key(reference.pointer, _id_key as jni.JMethodIDPtr, - httpUrl.reference.pointer) - .object(const jni.JStringType()); - } - - static final _id_varyMatches = _class.instanceMethodId( - r'varyMatches', - r'(Lokhttp3/Response;Lokhttp3/Headers;Lokhttp3/Request;)Z', - ); - - static final _varyMatches = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: public final boolean varyMatches(okhttp3.Response response, okhttp3.Headers headers, okhttp3.Request request) - bool varyMatches( - Response response, - Headers headers, - Request request, - ) { - return _varyMatches( - reference.pointer, - _id_varyMatches as jni.JMethodIDPtr, - response.reference.pointer, - headers.reference.pointer, - request.reference.pointer) - .boolean; - } - - static final _id_hasVaryAll = _class.instanceMethodId( - r'hasVaryAll', - r'(Lokhttp3/Response;)Z', - ); - - static final _hasVaryAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final boolean hasVaryAll(okhttp3.Response response) - bool hasVaryAll( - Response response, - ) { - return _hasVaryAll(reference.pointer, _id_hasVaryAll as jni.JMethodIDPtr, - response.reference.pointer) - .boolean; - } - - static final _id_varyHeaders = _class.instanceMethodId( - r'varyHeaders', - r'(Lokhttp3/Response;)Lokhttp3/Headers;', - ); - - static final _varyHeaders = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.Headers varyHeaders(okhttp3.Response response) - /// The returned object must be released after use, by calling the [release] method. - Headers varyHeaders( - Response response, - ) { - return _varyHeaders(reference.pointer, _id_varyHeaders as jni.JMethodIDPtr, - response.reference.pointer) - .object(const $HeadersType()); - } - - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory Cache_Companion( - jni.JObject defaultConstructorMarker, - ) { - return Cache_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); - } -} - -final class $Cache_CompanionType extends jni.JObjType { - const $Cache_CompanionType(); - - @override - String get signature => r'Lokhttp3/Cache$Companion;'; - - @override - Cache_Companion fromReference(jni.JReference reference) => - Cache_Companion.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($Cache_CompanionType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($Cache_CompanionType) && - other is $Cache_CompanionType; - } -} - -/// from: okhttp3.Cache$Entry$Companion -class Cache_Entry_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Cache_Entry_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Cache$Entry$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $Cache_Entry_CompanionType(); - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory Cache_Entry_Companion( - jni.JObject defaultConstructorMarker, - ) { - return Cache_Entry_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); - } -} - -final class $Cache_Entry_CompanionType - extends jni.JObjType { - const $Cache_Entry_CompanionType(); - - @override - String get signature => r'Lokhttp3/Cache$Entry$Companion;'; - - @override - Cache_Entry_Companion fromReference(jni.JReference reference) => - Cache_Entry_Companion.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($Cache_Entry_CompanionType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($Cache_Entry_CompanionType) && - other is $Cache_Entry_CompanionType; - } -} - -/// from: okhttp3.Cache -class Cache extends jni.JObject { - @override - late final jni.JObjType $type = type; - - Cache.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/Cache'); - - /// The type which includes information such as the signature of this class. - static const type = $CacheType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/Cache$Companion;', - ); - - /// from: static public final okhttp3.Cache$Companion Companion - /// The returned object must be released after use, by calling the [release] method. - static Cache_Companion get Companion => - _id_Companion.get(_class, const $Cache_CompanionType()); - - static final _id_new0 = _class.constructorId( - r'(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Int64, - ffi.Pointer - )>)>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, ffi.Pointer)>(); - - /// from: public void (java.io.File file, long j, okhttp3.internal.io.FileSystem fileSystem) - /// The returned object must be released after use, by calling the [release] method. - factory Cache( - jni.JObject file, - int j, - jni.JObject fileSystem, - ) { - return Cache.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - file.reference.pointer, - j, - fileSystem.reference.pointer) - .reference); - } - - static final _id_isClosed = _class.instanceMethodId( - r'isClosed', - r'()Z', - ); - - static final _isClosed = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final boolean isClosed() - bool isClosed() { - return _isClosed(reference.pointer, _id_isClosed as jni.JMethodIDPtr) - .boolean; - } - - static final _id_new1 = _class.constructorId( - r'(Ljava/io/File;J)V', - ); - - static final _new1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, ffi.Int64)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); - - /// from: public void (java.io.File file, long j) - /// The returned object must be released after use, by calling the [release] method. - factory Cache.new1( - jni.JObject file, - int j, - ) { - return Cache.fromReference(_new1(_class.reference.pointer, - _id_new1 as jni.JMethodIDPtr, file.reference.pointer, j) - .reference); - } - - static final _id_initialize = _class.instanceMethodId( - r'initialize', - r'()V', - ); - - static final _initialize = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final void initialize() - void initialize() { - _initialize(reference.pointer, _id_initialize as jni.JMethodIDPtr).check(); - } - - static final _id_delete = _class.instanceMethodId( - r'delete', - r'()V', - ); - - static final _delete = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final void delete() - void delete() { - _delete(reference.pointer, _id_delete as jni.JMethodIDPtr).check(); - } - - static final _id_evictAll = _class.instanceMethodId( - r'evictAll', - r'()V', - ); - - static final _evictAll = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final void evictAll() - void evictAll() { - _evictAll(reference.pointer, _id_evictAll as jni.JMethodIDPtr).check(); - } - - static final _id_urls = _class.instanceMethodId( - r'urls', - r'()Ljava/util/Iterator;', - ); - - static final _urls = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.util.Iterator urls() - /// The returned object must be released after use, by calling the [release] method. - jni.JIterator urls() { - return _urls(reference.pointer, _id_urls as jni.JMethodIDPtr) - .object(const jni.JIteratorType(jni.JStringType())); - } - - static final _id_writeAbortCount = _class.instanceMethodId( - r'writeAbortCount', - r'()I', - ); - - static final _writeAbortCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int writeAbortCount() - int writeAbortCount() { - return _writeAbortCount( - reference.pointer, _id_writeAbortCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_writeSuccessCount = _class.instanceMethodId( - r'writeSuccessCount', - r'()I', - ); - - static final _writeSuccessCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int writeSuccessCount() - int writeSuccessCount() { - return _writeSuccessCount( - reference.pointer, _id_writeSuccessCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_size = _class.instanceMethodId( - r'size', - r'()J', - ); - - static final _size = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final long size() - int size() { - return _size(reference.pointer, _id_size as jni.JMethodIDPtr).long; - } - - static final _id_maxSize = _class.instanceMethodId( - r'maxSize', - r'()J', - ); - - static final _maxSize = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final long maxSize() - int maxSize() { - return _maxSize(reference.pointer, _id_maxSize as jni.JMethodIDPtr).long; - } - - static final _id_flush = _class.instanceMethodId( - r'flush', - r'()V', - ); - - static final _flush = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void flush() - void flush() { - _flush(reference.pointer, _id_flush as jni.JMethodIDPtr).check(); - } - - static final _id_close = _class.instanceMethodId( - r'close', - r'()V', - ); - - static final _close = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void close() - void close() { - _close(reference.pointer, _id_close as jni.JMethodIDPtr).check(); - } - - static final _id_directory = _class.instanceMethodId( - r'directory', - r'()Ljava/io/File;', - ); - - static final _directory = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final java.io.File directory() - /// The returned object must be released after use, by calling the [release] method. - jni.JObject directory() { - return _directory(reference.pointer, _id_directory as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } - - static final _id_networkCount = _class.instanceMethodId( - r'networkCount', - r'()I', - ); - - static final _networkCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int networkCount() - int networkCount() { - return _networkCount( - reference.pointer, _id_networkCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_hitCount = _class.instanceMethodId( - r'hitCount', - r'()I', - ); - - static final _hitCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int hitCount() - int hitCount() { - return _hitCount(reference.pointer, _id_hitCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_requestCount = _class.instanceMethodId( - r'requestCount', - r'()I', - ); - - static final _requestCount = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int requestCount() - int requestCount() { - return _requestCount( - reference.pointer, _id_requestCount as jni.JMethodIDPtr) - .integer; - } - - static final _id_key = _class.staticMethodId( - r'key', - r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', - ); - - static final _key = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: static public final java.lang.String key(okhttp3.HttpUrl httpUrl) - /// The returned object must be released after use, by calling the [release] method. - static jni.JString key( - jni.JObject httpUrl, - ) { - return _key(_class.reference.pointer, _id_key as jni.JMethodIDPtr, - httpUrl.reference.pointer) - .object(const jni.JStringType()); - } -} - -final class $CacheType extends jni.JObjType { - const $CacheType(); - - @override - String get signature => r'Lokhttp3/Cache;'; - - @override - Cache fromReference(jni.JReference reference) => - Cache.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($CacheType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($CacheType) && other is $CacheType; - } -} - -/// from: com.example.ok_http.RedirectReceivedCallback -class RedirectReceivedCallback extends jni.JObject { - @override - late final jni.JObjType $type = type; - - RedirectReceivedCallback.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); - - /// The type which includes information such as the signature of this class. - static const type = $RedirectReceivedCallbackType(); - static final _id_onRedirectReceived = _class.instanceMethodId( - r'onRedirectReceived', - r'(Lokhttp3/Response;Ljava/lang/String;)V', - ); - - static final _onRedirectReceived = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract void onRedirectReceived(okhttp3.Response response, java.lang.String string) - void onRedirectReceived( - Response response, - jni.JString string, - ) { - _onRedirectReceived( - reference.pointer, - _id_onRedirectReceived as jni.JMethodIDPtr, - response.reference.pointer, - string.reference.pointer) - .check(); - } - - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; - - static jni.JObjectPtr _$invoke( - int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); - - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'onRedirectReceived(Lokhttp3/Response;Ljava/lang/String;)V') { - _$impls[$p]!.onRedirectReceived( - $a[0].castTo(const $ResponseType(), releaseOriginal: true), - $a[1].castTo(const jni.JStringType(), releaseOriginal: true), - ); - return jni.nullptr; - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); - } - return jni.nullptr; - } - - factory RedirectReceivedCallback.implement( - $RedirectReceivedCallbackImpl $impl, - ) { - final $p = ReceivePort(); - final $x = RedirectReceivedCallback.fromReference( - ProtectedJniExtensions.newPortProxy( - r'com.example.ok_http.RedirectReceivedCallback', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = $MethodInvocation.fromMessage($m as List); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); - }); - return $x; - } -} - -abstract interface class $RedirectReceivedCallbackImpl { - factory $RedirectReceivedCallbackImpl({ - required void Function(Response response, jni.JString string) - onRedirectReceived, - }) = _$RedirectReceivedCallbackImpl; - - void onRedirectReceived(Response response, jni.JString string); -} - -class _$RedirectReceivedCallbackImpl implements $RedirectReceivedCallbackImpl { - _$RedirectReceivedCallbackImpl({ - required void Function(Response response, jni.JString string) - onRedirectReceived, - }) : _onRedirectReceived = onRedirectReceived; - - final void Function(Response response, jni.JString string) - _onRedirectReceived; - - void onRedirectReceived(Response response, jni.JString string) { - return _onRedirectReceived(response, string); - } -} - -final class $RedirectReceivedCallbackType - extends jni.JObjType { - const $RedirectReceivedCallbackType(); - - @override - String get signature => r'Lcom/example/ok_http/RedirectReceivedCallback;'; - - @override - RedirectReceivedCallback fromReference(jni.JReference reference) => - RedirectReceivedCallback.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($RedirectReceivedCallbackType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectReceivedCallbackType) && - other is $RedirectReceivedCallbackType; - } -} - -/// from: com.example.ok_http.RedirectInterceptor$Companion -class RedirectInterceptor_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; - - RedirectInterceptor_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $RedirectInterceptor_CompanionType(); - static final _id_addRedirectInterceptor = _class.instanceMethodId( - r'addRedirectInterceptor', - r'(Lokhttp3/OkHttpClient$Builder;IZLcom/example/ok_http/RedirectReceivedCallback;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _addRedirectInterceptor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - $Int32, - $Int32, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int, ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder addRedirectInterceptor(okhttp3.OkHttpClient$Builder builder, int i, boolean z, com.example.ok_http.RedirectReceivedCallback redirectReceivedCallback) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder addRedirectInterceptor( - OkHttpClient_Builder builder, - int i, - bool z, - RedirectReceivedCallback redirectReceivedCallback, - ) { - return _addRedirectInterceptor( - reference.pointer, - _id_addRedirectInterceptor as jni.JMethodIDPtr, - builder.reference.pointer, - i, - z ? 1 : 0, - redirectReceivedCallback.reference.pointer) - .object(const $OkHttpClient_BuilderType()); - } - - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory RedirectInterceptor_Companion( - jni.JObject defaultConstructorMarker, - ) { - return RedirectInterceptor_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); - } -} - -final class $RedirectInterceptor_CompanionType - extends jni.JObjType { - const $RedirectInterceptor_CompanionType(); - - @override - String get signature => - r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; - - @override - RedirectInterceptor_Companion fromReference(jni.JReference reference) => - RedirectInterceptor_Companion.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($RedirectInterceptor_CompanionType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptor_CompanionType) && - other is $RedirectInterceptor_CompanionType; - } -} - -/// from: com.example.ok_http.RedirectInterceptor -class RedirectInterceptor extends jni.JObject { - @override - late final jni.JObjType $type = type; - - RedirectInterceptor.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); - - /// The type which includes information such as the signature of this class. - static const type = $RedirectInterceptorType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lcom/example/ok_http/RedirectInterceptor$Companion;', - ); - - /// from: static public final com.example.ok_http.RedirectInterceptor$Companion Companion - /// The returned object must be released after use, by calling the [release] method. - static RedirectInterceptor_Companion get Companion => - _id_Companion.get(_class, const $RedirectInterceptor_CompanionType()); - - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory RedirectInterceptor() { - return RedirectInterceptor.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } -} - -final class $RedirectInterceptorType extends jni.JObjType { - const $RedirectInterceptorType(); - - @override - String get signature => r'Lcom/example/ok_http/RedirectInterceptor;'; - - @override - RedirectInterceptor fromReference(jni.JReference reference) => - RedirectInterceptor.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($RedirectInterceptorType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptorType) && - other is $RedirectInterceptorType; - } -} - -/// from: com.example.ok_http.AsyncInputStreamReader -class AsyncInputStreamReader extends jni.JObject { - @override - late final jni.JObjType $type = type; - - AsyncInputStreamReader.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); - - /// The type which includes information such as the signature of this class. - static const type = $AsyncInputStreamReaderType(); - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory AsyncInputStreamReader() { - return AsyncInputStreamReader.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } - - static final _id_readAsync = _class.instanceMethodId( - r'readAsync', - r'(Ljava/io/InputStream;Lcom/example/ok_http/DataCallback;)Ljava/util/concurrent/Future;', - ); - - static final _readAsync = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final java.util.concurrent.Future readAsync(java.io.InputStream inputStream, com.example.ok_http.DataCallback dataCallback) - /// The returned object must be released after use, by calling the [release] method. - jni.JObject readAsync( - jni.JObject inputStream, - DataCallback dataCallback, - ) { - return _readAsync(reference.pointer, _id_readAsync as jni.JMethodIDPtr, - inputStream.reference.pointer, dataCallback.reference.pointer) - .object(const jni.JObjectType()); - } - - static final _id_shutdown = _class.instanceMethodId( - r'shutdown', - r'()V', - ); - - static final _shutdown = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final void shutdown() - void shutdown() { - _shutdown(reference.pointer, _id_shutdown as jni.JMethodIDPtr).check(); - } -} - -final class $AsyncInputStreamReaderType - extends jni.JObjType { - const $AsyncInputStreamReaderType(); - - @override - String get signature => r'Lcom/example/ok_http/AsyncInputStreamReader;'; - - @override - AsyncInputStreamReader fromReference(jni.JReference reference) => - AsyncInputStreamReader.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($AsyncInputStreamReaderType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($AsyncInputStreamReaderType) && - other is $AsyncInputStreamReaderType; - } -} - -/// from: com.example.ok_http.DataCallback -class DataCallback extends jni.JObject { - @override - late final jni.JObjType $type = type; - - DataCallback.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'com/example/ok_http/DataCallback'); - - /// The type which includes information such as the signature of this class. - static const type = $DataCallbackType(); - static final _id_onDataRead = _class.instanceMethodId( - r'onDataRead', - r'([B)V', - ); - - static final _onDataRead = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public abstract void onDataRead(byte[] bs) - void onDataRead( - jni.JArray bs, - ) { - _onDataRead(reference.pointer, _id_onDataRead as jni.JMethodIDPtr, - bs.reference.pointer) - .check(); - } - - static final _id_onFinished = _class.instanceMethodId( - r'onFinished', - r'()V', - ); - - static final _onFinished = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract void onFinished() - void onFinished() { - _onFinished(reference.pointer, _id_onFinished as jni.JMethodIDPtr).check(); - } - - static final _id_onError = _class.instanceMethodId( - r'onError', - r'(Ljava/io/IOException;)V', - ); - - static final _onError = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public abstract void onError(java.io.IOException iOException) - void onError( - jni.JObject iOException, - ) { - _onError(reference.pointer, _id_onError as jni.JMethodIDPtr, - iOException.reference.pointer) - .check(); - } - - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; - - static jni.JObjectPtr _$invoke( - int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); - - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'onDataRead([B)V') { - _$impls[$p]!.onDataRead( - $a[0].castTo(const jni.JArrayType(jni.jbyteType()), - releaseOriginal: true), - ); - return jni.nullptr; - } - if ($d == r'onFinished()V') { - _$impls[$p]!.onFinished(); - return jni.nullptr; - } - if ($d == r'onError(Ljava/io/IOException;)V') { - _$impls[$p]!.onError( - $a[0].castTo(const jni.JObjectType(), releaseOriginal: true), - ); - return jni.nullptr; - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); - } - return jni.nullptr; - } - - factory DataCallback.implement( - $DataCallbackImpl $impl, - ) { - final $p = ReceivePort(); - final $x = DataCallback.fromReference( - ProtectedJniExtensions.newPortProxy( - r'com.example.ok_http.DataCallback', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = $MethodInvocation.fromMessage($m as List); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); - }); - return $x; - } -} - -abstract interface class $DataCallbackImpl { - factory $DataCallbackImpl({ - required void Function(jni.JArray bs) onDataRead, - required void Function() onFinished, - required void Function(jni.JObject iOException) onError, - }) = _$DataCallbackImpl; - - void onDataRead(jni.JArray bs); - void onFinished(); - void onError(jni.JObject iOException); -} - -class _$DataCallbackImpl implements $DataCallbackImpl { - _$DataCallbackImpl({ - required void Function(jni.JArray bs) onDataRead, - required void Function() onFinished, - required void Function(jni.JObject iOException) onError, - }) : _onDataRead = onDataRead, - _onFinished = onFinished, - _onError = onError; - - final void Function(jni.JArray bs) _onDataRead; - final void Function() _onFinished; - final void Function(jni.JObject iOException) _onError; - - void onDataRead(jni.JArray bs) { - return _onDataRead(bs); - } - - void onFinished() { - return _onFinished(); - } - - void onError(jni.JObject iOException) { - return _onError(iOException); - } -} - -final class $DataCallbackType extends jni.JObjType { - const $DataCallbackType(); - - @override - String get signature => r'Lcom/example/ok_http/DataCallback;'; - - @override - DataCallback fromReference(jni.JReference reference) => - DataCallback.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($DataCallbackType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($DataCallbackType) && - other is $DataCallbackType; - } -} - -/// from: okhttp3.WebSocket$Factory -class WebSocket_Factory extends jni.JObject { - @override - late final jni.JObjType $type = type; - - WebSocket_Factory.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/WebSocket$Factory'); - - /// The type which includes information such as the signature of this class. - static const type = $WebSocket_FactoryType(); - static final _id_newWebSocket = _class.instanceMethodId( - r'newWebSocket', - r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', - ); - - static final _newWebSocket = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener) - /// The returned object must be released after use, by calling the [release] method. - WebSocket newWebSocket( - Request request, - jni.JObject webSocketListener, - ) { - return _newWebSocket( - reference.pointer, - _id_newWebSocket as jni.JMethodIDPtr, - request.reference.pointer, - webSocketListener.reference.pointer) - .object(const $WebSocketType()); - } - - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; - - static jni.JObjectPtr _$invoke( - int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); - - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == - r'newWebSocket(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;') { - final $r = _$impls[$p]!.newWebSocket( - $a[0].castTo(const $RequestType(), releaseOriginal: true), - $a[1].castTo(const jni.JObjectType(), releaseOriginal: true), - ); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); - } - return jni.nullptr; - } - - factory WebSocket_Factory.implement( - $WebSocket_FactoryImpl $impl, - ) { - final $p = ReceivePort(); - final $x = WebSocket_Factory.fromReference( - ProtectedJniExtensions.newPortProxy( - r'okhttp3.WebSocket$Factory', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = $MethodInvocation.fromMessage($m as List); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); - }); - return $x; - } -} - -abstract interface class $WebSocket_FactoryImpl { - factory $WebSocket_FactoryImpl({ - required WebSocket Function(Request request, jni.JObject webSocketListener) - newWebSocket, - }) = _$WebSocket_FactoryImpl; - - WebSocket newWebSocket(Request request, jni.JObject webSocketListener); -} - -class _$WebSocket_FactoryImpl implements $WebSocket_FactoryImpl { - _$WebSocket_FactoryImpl({ - required WebSocket Function(Request request, jni.JObject webSocketListener) - newWebSocket, - }) : _newWebSocket = newWebSocket; - - final WebSocket Function(Request request, jni.JObject webSocketListener) - _newWebSocket; - - WebSocket newWebSocket(Request request, jni.JObject webSocketListener) { - return _newWebSocket(request, webSocketListener); - } -} - -final class $WebSocket_FactoryType extends jni.JObjType { - const $WebSocket_FactoryType(); - - @override - String get signature => r'Lokhttp3/WebSocket$Factory;'; - - @override - WebSocket_Factory fromReference(jni.JReference reference) => - WebSocket_Factory.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($WebSocket_FactoryType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocket_FactoryType) && - other is $WebSocket_FactoryType; - } -} - -/// from: okhttp3.WebSocket -class WebSocket extends jni.JObject { - @override - late final jni.JObjType $type = type; - - WebSocket.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okhttp3/WebSocket'); - - /// The type which includes information such as the signature of this class. - static const type = $WebSocketType(); - static final _id_request = _class.instanceMethodId( - r'request', - r'()Lokhttp3/Request;', - ); - - static final _request = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract okhttp3.Request request() - /// The returned object must be released after use, by calling the [release] method. - Request request() { - return _request(reference.pointer, _id_request as jni.JMethodIDPtr) - .object(const $RequestType()); - } - - static final _id_queueSize = _class.instanceMethodId( - r'queueSize', - r'()J', - ); - - static final _queueSize = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract long queueSize() - int queueSize() { - return _queueSize(reference.pointer, _id_queueSize as jni.JMethodIDPtr) - .long; - } - - static final _id_send = _class.instanceMethodId( - r'send', - r'(Ljava/lang/String;)Z', - ); - - static final _send = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public abstract boolean send(java.lang.String string) - bool send( - jni.JString string, - ) { - return _send(reference.pointer, _id_send as jni.JMethodIDPtr, - string.reference.pointer) - .boolean; - } - - static final _id_send1 = _class.instanceMethodId( - r'send', - r'(Lokio/ByteString;)Z', - ); - - static final _send1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public abstract boolean send(okio.ByteString byteString) - bool send1( - ByteString byteString, - ) { - return _send1(reference.pointer, _id_send1 as jni.JMethodIDPtr, - byteString.reference.pointer) - .boolean; - } - - static final _id_close = _class.instanceMethodId( - r'close', - r'(ILjava/lang/String;)Z', - ); - - static final _close = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<($Int32, ffi.Pointer)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); - - /// from: public abstract boolean close(int i, java.lang.String string) - bool close( - int i, - jni.JString string, - ) { - return _close(reference.pointer, _id_close as jni.JMethodIDPtr, i, - string.reference.pointer) - .boolean; - } - - static final _id_cancel = _class.instanceMethodId( - r'cancel', - r'()V', - ); - - static final _cancel = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public abstract void cancel() - void cancel() { - _cancel(reference.pointer, _id_cancel as jni.JMethodIDPtr).check(); - } - - /// Maps a specific port to the implemented interface. - static final Map _$impls = {}; - ReceivePort? _$p; - - static jni.JObjectPtr _$invoke( - int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); - - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'request()Lokhttp3/Request;') { - final $r = _$impls[$p]!.request(); - return ($r as jni.JObject) - .castTo(const jni.JObjectType()) - .reference - .toPointer(); - } - if ($d == r'queueSize()J') { - final $r = _$impls[$p]!.queueSize(); - return jni.JLong($r).reference.toPointer(); - } - if ($d == r'send(Ljava/lang/String;)Z') { - final $r = _$impls[$p]!.send( - $a[0].castTo(const jni.JStringType(), releaseOriginal: true), - ); - return jni.JBoolean($r).reference.toPointer(); - } - if ($d == r'send(Lokio/ByteString;)Z') { - final $r = _$impls[$p]!.send1( - $a[0].castTo(const $ByteStringType(), releaseOriginal: true), - ); - return jni.JBoolean($r).reference.toPointer(); - } - if ($d == r'close(ILjava/lang/String;)Z') { - final $r = _$impls[$p]!.close( - $a[0] - .castTo(const jni.JIntegerType(), releaseOriginal: true) - .intValue(releaseOriginal: true), - $a[1].castTo(const jni.JStringType(), releaseOriginal: true), - ); - return jni.JBoolean($r).reference.toPointer(); - } - if ($d == r'cancel()V') { - _$impls[$p]!.cancel(); - return jni.nullptr; - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); - } - return jni.nullptr; - } - - factory WebSocket.implement( - $WebSocketImpl $impl, - ) { - final $p = ReceivePort(); - final $x = WebSocket.fromReference( - ProtectedJniExtensions.newPortProxy( - r'okhttp3.WebSocket', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = $MethodInvocation.fromMessage($m as List); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); - }); - return $x; - } -} - -abstract interface class $WebSocketImpl { - factory $WebSocketImpl({ - required Request Function() request, - required int Function() queueSize, - required bool Function(jni.JString string) send, - required bool Function(ByteString byteString) send1, - required bool Function(int i, jni.JString string) close, - required void Function() cancel, - }) = _$WebSocketImpl; - - Request request(); - int queueSize(); - bool send(jni.JString string); - bool send1(ByteString byteString); - bool close(int i, jni.JString string); - void cancel(); -} - -class _$WebSocketImpl implements $WebSocketImpl { - _$WebSocketImpl({ - required Request Function() request, - required int Function() queueSize, - required bool Function(jni.JString string) send, - required bool Function(ByteString byteString) send1, - required bool Function(int i, jni.JString string) close, - required void Function() cancel, - }) : _request = request, - _queueSize = queueSize, - _send = send, - _send1 = send1, - _close = close, - _cancel = cancel; - - final Request Function() _request; - final int Function() _queueSize; - final bool Function(jni.JString string) _send; - final bool Function(ByteString byteString) _send1; - final bool Function(int i, jni.JString string) _close; - final void Function() _cancel; - - Request request() { - return _request(); - } - - int queueSize() { - return _queueSize(); - } - - bool send(jni.JString string) { - return _send(string); - } - - bool send1(ByteString byteString) { - return _send1(byteString); - } - - bool close(int i, jni.JString string) { - return _close(i, string); - } - - void cancel() { - return _cancel(); - } -} - -final class $WebSocketType extends jni.JObjType { - const $WebSocketType(); - - @override - String get signature => r'Lokhttp3/WebSocket;'; - - @override - WebSocket fromReference(jni.JReference reference) => - WebSocket.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($WebSocketType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketType) && other is $WebSocketType; - } -} - -/// from: com.example.ok_http.WebSocketListenerProxy$WebSocketListener -class WebSocketListenerProxy_WebSocketListener extends jni.JObject { - @override - late final jni.JObjType $type = - type; - - WebSocketListenerProxy_WebSocketListener.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName( - r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); - - /// The type which includes information such as the signature of this class. - static const type = $WebSocketListenerProxy_WebSocketListenerType(); - static final _id_onOpen = _class.instanceMethodId( - r'onOpen', - r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', - ); - - static final _onOpen = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response) - void onOpen( - WebSocket webSocket, - Response response, - ) { - _onOpen(reference.pointer, _id_onOpen as jni.JMethodIDPtr, - webSocket.reference.pointer, response.reference.pointer) - .check(); - } - - static final _id_onMessage = _class.instanceMethodId( - r'onMessage', - r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', - ); - - static final _onMessage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract void onMessage(okhttp3.WebSocket webSocket, java.lang.String string) - void onMessage( - WebSocket webSocket, - jni.JString string, - ) { - _onMessage(reference.pointer, _id_onMessage as jni.JMethodIDPtr, - webSocket.reference.pointer, string.reference.pointer) - .check(); - } - - static final _id_onMessage1 = _class.instanceMethodId( - r'onMessage', - r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', - ); - - static final _onMessage1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public abstract void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString) - void onMessage1( - WebSocket webSocket, - ByteString byteString, - ) { - _onMessage1(reference.pointer, _id_onMessage1 as jni.JMethodIDPtr, - webSocket.reference.pointer, byteString.reference.pointer) - .check(); - } - - static final _id_onClosing = _class.instanceMethodId( - r'onClosing', - r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', - ); - - static final _onClosing = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - $Int32, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, ffi.Pointer)>(); - - /// from: public abstract void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string) - void onClosing( - WebSocket webSocket, - int i, - jni.JString string, - ) { - _onClosing(reference.pointer, _id_onClosing as jni.JMethodIDPtr, - webSocket.reference.pointer, i, string.reference.pointer) - .check(); - } - - static final _id_onFailure = _class.instanceMethodId( - r'onFailure', - r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', - ); - - static final _onFailure = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: public abstract void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response) - void onFailure( - WebSocket webSocket, - jni.JObject throwable, - Response response, - ) { - _onFailure( - reference.pointer, - _id_onFailure as jni.JMethodIDPtr, - webSocket.reference.pointer, - throwable.reference.pointer, - response.reference.pointer) - .check(); - } - - /// Maps a specific port to the implemented interface. - static final Map _$impls = - {}; - ReceivePort? _$p; - - static jni.JObjectPtr _$invoke( - int port, - jni.JObjectPtr descriptor, - jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - $MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final ffi.Pointer< - ffi.NativeFunction< - jni.JObjectPtr Function( - ffi.Uint64, jni.JObjectPtr, jni.JObjectPtr)>> - _$invokePointer = ffi.Pointer.fromFunction(_$invoke); - - static ffi.Pointer _$invokeMethod( - int $p, - $MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - if ($d == r'onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V') { - _$impls[$p]!.onOpen( - $a[0].castTo(const $WebSocketType(), releaseOriginal: true), - $a[1].castTo(const $ResponseType(), releaseOriginal: true), - ); - return jni.nullptr; - } - if ($d == r'onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V') { - _$impls[$p]!.onMessage( - $a[0].castTo(const $WebSocketType(), releaseOriginal: true), - $a[1].castTo(const jni.JStringType(), releaseOriginal: true), - ); - return jni.nullptr; - } - if ($d == r'onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V') { - _$impls[$p]!.onMessage1( - $a[0].castTo(const $WebSocketType(), releaseOriginal: true), - $a[1].castTo(const $ByteStringType(), releaseOriginal: true), - ); - return jni.nullptr; - } - if ($d == r'onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V') { - _$impls[$p]!.onClosing( - $a[0].castTo(const $WebSocketType(), releaseOriginal: true), - $a[1] - .castTo(const jni.JIntegerType(), releaseOriginal: true) - .intValue(releaseOriginal: true), - $a[2].castTo(const jni.JStringType(), releaseOriginal: true), - ); - return jni.nullptr; - } - if ($d == - r'onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V') { - _$impls[$p]!.onFailure( - $a[0].castTo(const $WebSocketType(), releaseOriginal: true), - $a[1].castTo(const jni.JObjectType(), releaseOriginal: true), - $a[2].castTo(const $ResponseType(), releaseOriginal: true), - ); - return jni.nullptr; - } - } catch (e) { - return ProtectedJniExtensions.newDartException(e); - } - return jni.nullptr; - } - - factory WebSocketListenerProxy_WebSocketListener.implement( - $WebSocketListenerProxy_WebSocketListenerImpl $impl, - ) { - final $p = ReceivePort(); - final $x = WebSocketListenerProxy_WebSocketListener.fromReference( - ProtectedJniExtensions.newPortProxy( - r'com.example.ok_http.WebSocketListenerProxy$WebSocketListener', - $p, - _$invokePointer, - ), - ).._$p = $p; - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - $p.listen(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = $MethodInvocation.fromMessage($m as List); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - ProtectedJniExtensions.returnResult($i.result, $r); - }); - return $x; - } -} - -abstract interface class $WebSocketListenerProxy_WebSocketListenerImpl { - factory $WebSocketListenerProxy_WebSocketListenerImpl({ - required void Function(WebSocket webSocket, Response response) onOpen, - required void Function(WebSocket webSocket, jni.JString string) onMessage, - required void Function(WebSocket webSocket, ByteString byteString) - onMessage1, - required void Function(WebSocket webSocket, int i, jni.JString string) - onClosing, - required void Function( - WebSocket webSocket, jni.JObject throwable, Response response) - onFailure, - }) = _$WebSocketListenerProxy_WebSocketListenerImpl; - - void onOpen(WebSocket webSocket, Response response); - void onMessage(WebSocket webSocket, jni.JString string); - void onMessage1(WebSocket webSocket, ByteString byteString); - void onClosing(WebSocket webSocket, int i, jni.JString string); - void onFailure(WebSocket webSocket, jni.JObject throwable, Response response); -} - -class _$WebSocketListenerProxy_WebSocketListenerImpl - implements $WebSocketListenerProxy_WebSocketListenerImpl { - _$WebSocketListenerProxy_WebSocketListenerImpl({ - required void Function(WebSocket webSocket, Response response) onOpen, - required void Function(WebSocket webSocket, jni.JString string) onMessage, - required void Function(WebSocket webSocket, ByteString byteString) - onMessage1, - required void Function(WebSocket webSocket, int i, jni.JString string) - onClosing, - required void Function( - WebSocket webSocket, jni.JObject throwable, Response response) - onFailure, - }) : _onOpen = onOpen, - _onMessage = onMessage, - _onMessage1 = onMessage1, - _onClosing = onClosing, - _onFailure = onFailure; - - final void Function(WebSocket webSocket, Response response) _onOpen; - final void Function(WebSocket webSocket, jni.JString string) _onMessage; - final void Function(WebSocket webSocket, ByteString byteString) _onMessage1; - final void Function(WebSocket webSocket, int i, jni.JString string) - _onClosing; - final void Function( - WebSocket webSocket, jni.JObject throwable, Response response) _onFailure; - - void onOpen(WebSocket webSocket, Response response) { - return _onOpen(webSocket, response); - } - - void onMessage(WebSocket webSocket, jni.JString string) { - return _onMessage(webSocket, string); - } - - void onMessage1(WebSocket webSocket, ByteString byteString) { - return _onMessage1(webSocket, byteString); - } - - void onClosing(WebSocket webSocket, int i, jni.JString string) { - return _onClosing(webSocket, i, string); - } - - void onFailure( - WebSocket webSocket, jni.JObject throwable, Response response) { - return _onFailure(webSocket, throwable, response); - } -} - -final class $WebSocketListenerProxy_WebSocketListenerType - extends jni.JObjType { - const $WebSocketListenerProxy_WebSocketListenerType(); - - @override - String get signature => - r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; - - @override - WebSocketListenerProxy_WebSocketListener fromReference( - jni.JReference reference) => - WebSocketListenerProxy_WebSocketListener.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($WebSocketListenerProxy_WebSocketListenerType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == - ($WebSocketListenerProxy_WebSocketListenerType) && - other is $WebSocketListenerProxy_WebSocketListenerType; - } -} - -/// from: com.example.ok_http.WebSocketListenerProxy -class WebSocketListenerProxy extends jni.JObject { - @override - late final jni.JObjType $type = type; - - WebSocketListenerProxy.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); - - /// The type which includes information such as the signature of this class. - static const type = $WebSocketListenerProxyType(); - static final _id_new0 = _class.constructorId( - r'(Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (com.example.ok_http.WebSocketListenerProxy$WebSocketListener webSocketListener) - /// The returned object must be released after use, by calling the [release] method. - factory WebSocketListenerProxy( - WebSocketListenerProxy_WebSocketListener webSocketListener, - ) { - return WebSocketListenerProxy.fromReference(_new0(_class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, webSocketListener.reference.pointer) - .reference); - } - - static final _id_onOpen = _class.instanceMethodId( - r'onOpen', - r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', - ); - - static final _onOpen = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response) - void onOpen( - WebSocket webSocket, - Response response, - ) { - _onOpen(reference.pointer, _id_onOpen as jni.JMethodIDPtr, - webSocket.reference.pointer, response.reference.pointer) - .check(); - } - - static final _id_onMessage = _class.instanceMethodId( - r'onMessage', - r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', - ); - - static final _onMessage = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public void onMessage(okhttp3.WebSocket webSocket, java.lang.String string) - void onMessage( - WebSocket webSocket, - jni.JString string, - ) { - _onMessage(reference.pointer, _id_onMessage as jni.JMethodIDPtr, - webSocket.reference.pointer, string.reference.pointer) - .check(); - } - - static final _id_onMessage1 = _class.instanceMethodId( - r'onMessage', - r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', - ); - - static final _onMessage1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString) - void onMessage1( - WebSocket webSocket, - ByteString byteString, - ) { - _onMessage1(reference.pointer, _id_onMessage1 as jni.JMethodIDPtr, - webSocket.reference.pointer, byteString.reference.pointer) - .check(); - } - - static final _id_onClosing = _class.instanceMethodId( - r'onClosing', - r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', - ); - - static final _onClosing = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - $Int32, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, ffi.Pointer)>(); - - /// from: public void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string) - void onClosing( - WebSocket webSocket, - int i, - jni.JString string, - ) { - _onClosing(reference.pointer, _id_onClosing as jni.JMethodIDPtr, - webSocket.reference.pointer, i, string.reference.pointer) - .check(); - } - - static final _id_onFailure = _class.instanceMethodId( - r'onFailure', - r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', - ); - - static final _onFailure = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.Pointer, - ffi.Pointer, - ffi.Pointer)>(); - - /// from: public void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response) - void onFailure( - WebSocket webSocket, - jni.JObject throwable, - Response response, - ) { - _onFailure( - reference.pointer, - _id_onFailure as jni.JMethodIDPtr, - webSocket.reference.pointer, - throwable.reference.pointer, - response.reference.pointer) - .check(); - } -} - -final class $WebSocketListenerProxyType - extends jni.JObjType { - const $WebSocketListenerProxyType(); - - @override - String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy;'; - - @override - WebSocketListenerProxy fromReference(jni.JReference reference) => - WebSocketListenerProxy.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($WebSocketListenerProxyType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketListenerProxyType) && - other is $WebSocketListenerProxyType; - } -} - -/// from: okio.ByteString$Companion -class ByteString_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; - - ByteString_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okio/ByteString$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $ByteString_CompanionType(); - static final _id_of = _class.instanceMethodId( - r'of', - r'([B)Lokio/ByteString;', - ); - - static final _of = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okio.ByteString of(byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - ByteString of( - jni.JArray bs, - ) { - return _of( - reference.pointer, _id_of as jni.JMethodIDPtr, bs.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_of1 = _class.instanceMethodId( - r'of', - r'([BII)Lokio/ByteString;', - ); - - static final _of1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32, $Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int)>(); - - /// from: public final okio.ByteString of(byte[] bs, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - ByteString of1( - jni.JArray bs, - int i, - int i1, - ) { - return _of1(reference.pointer, _id_of1 as jni.JMethodIDPtr, - bs.reference.pointer, i, i1) - .object(const $ByteStringType()); - } - - static final _id_of2 = _class.instanceMethodId( - r'of', - r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', - ); - - static final _of2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okio.ByteString of(java.nio.ByteBuffer byteBuffer) - /// The returned object must be released after use, by calling the [release] method. - ByteString of2( - jni.JByteBuffer byteBuffer, - ) { - return _of2(reference.pointer, _id_of2 as jni.JMethodIDPtr, - byteBuffer.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_encodeUtf8 = _class.instanceMethodId( - r'encodeUtf8', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _encodeUtf8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okio.ByteString encodeUtf8(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - ByteString encodeUtf8( - jni.JString string, - ) { - return _encodeUtf8(reference.pointer, _id_encodeUtf8 as jni.JMethodIDPtr, - string.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_encodeString = _class.instanceMethodId( - r'encodeString', - r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', - ); - - static final _encodeString = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset) - /// The returned object must be released after use, by calling the [release] method. - ByteString encodeString( - jni.JString string, - jni.JObject charset, - ) { - return _encodeString( - reference.pointer, - _id_encodeString as jni.JMethodIDPtr, - string.reference.pointer, - charset.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_decodeBase64 = _class.instanceMethodId( - r'decodeBase64', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _decodeBase64 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okio.ByteString decodeBase64(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - ByteString decodeBase64( - jni.JString string, - ) { - return _decodeBase64(reference.pointer, - _id_decodeBase64 as jni.JMethodIDPtr, string.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_decodeHex = _class.instanceMethodId( - r'decodeHex', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _decodeHex = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okio.ByteString decodeHex(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - ByteString decodeHex( - jni.JString string, - ) { - return _decodeHex(reference.pointer, _id_decodeHex as jni.JMethodIDPtr, - string.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_read = _class.instanceMethodId( - r'read', - r'(Ljava/io/InputStream;I)Lokio/ByteString;', - ); - - static final _read = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); - - /// from: public final okio.ByteString read(java.io.InputStream inputStream, int i) - /// The returned object must be released after use, by calling the [release] method. - ByteString read( - jni.JObject inputStream, - int i, - ) { - return _read(reference.pointer, _id_read as jni.JMethodIDPtr, - inputStream.reference.pointer, i) - .object(const $ByteStringType()); - } - - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory ByteString_Companion( - jni.JObject defaultConstructorMarker, - ) { - return ByteString_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); - } -} - -final class $ByteString_CompanionType - extends jni.JObjType { - const $ByteString_CompanionType(); - - @override - String get signature => r'Lokio/ByteString$Companion;'; - - @override - ByteString_Companion fromReference(jni.JReference reference) => - ByteString_Companion.fromReference(reference); - - @override - jni.JObjType get superType => const jni.JObjectType(); - - @override - final superCount = 1; - - @override - int get hashCode => ($ByteString_CompanionType).hashCode; - - @override - bool operator ==(Object other) { - return other.runtimeType == ($ByteString_CompanionType) && - other is $ByteString_CompanionType; - } -} - -/// from: okio.ByteString -class ByteString extends jni.JObject { - @override - late final jni.JObjType $type = type; - - ByteString.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = jni.JClass.forName(r'okio/ByteString'); - - /// The type which includes information such as the signature of this class. - static const type = $ByteStringType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokio/ByteString$Companion;', - ); - - /// from: static public final okio.ByteString$Companion Companion - /// The returned object must be released after use, by calling the [release] method. - static ByteString_Companion get Companion => - _id_Companion.get(_class, const $ByteString_CompanionType()); - - static final _id_EMPTY = _class.staticFieldId( - r'EMPTY', - r'Lokio/ByteString;', - ); - - /// from: static public final okio.ByteString EMPTY - /// The returned object must be released after use, by calling the [release] method. - static ByteString get EMPTY => _id_EMPTY.get(_class, const $ByteStringType()); - - static final _id_new0 = _class.constructorId( - r'([B)V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void (byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - factory ByteString( - jni.JArray bs, - ) { - return ByteString.fromReference(_new0(_class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, bs.reference.pointer) - .reference); - } - - static final _id_utf8 = _class.instanceMethodId( - r'utf8', - r'()Ljava/lang/String;', - ); - - static final _utf8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.String utf8() - /// The returned object must be released after use, by calling the [release] method. - jni.JString utf8() { - return _utf8(reference.pointer, _id_utf8 as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_string = _class.instanceMethodId( - r'string', - r'(Ljava/nio/charset/Charset;)Ljava/lang/String;', - ); - - static final _string = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public java.lang.String string(java.nio.charset.Charset charset) - /// The returned object must be released after use, by calling the [release] method. - jni.JString string( - jni.JObject charset, - ) { - return _string(reference.pointer, _id_string as jni.JMethodIDPtr, - charset.reference.pointer) - .object(const jni.JStringType()); - } - - static final _id_base64 = _class.instanceMethodId( - r'base64', - r'()Ljava/lang/String;', - ); - - static final _base64 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.String base64() - /// The returned object must be released after use, by calling the [release] method. - jni.JString base64() { - return _base64(reference.pointer, _id_base64 as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_md5 = _class.instanceMethodId( - r'md5', - r'()Lokio/ByteString;', - ); - - static final _md5 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okio.ByteString md5() - /// The returned object must be released after use, by calling the [release] method. - ByteString md5() { - return _md5(reference.pointer, _id_md5 as jni.JMethodIDPtr) - .object(const $ByteStringType()); - } - - static final _id_sha1 = _class.instanceMethodId( - r'sha1', - r'()Lokio/ByteString;', - ); - - static final _sha1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okio.ByteString sha1() - /// The returned object must be released after use, by calling the [release] method. - ByteString sha1() { - return _sha1(reference.pointer, _id_sha1 as jni.JMethodIDPtr) - .object(const $ByteStringType()); - } - - static final _id_sha256 = _class.instanceMethodId( - r'sha256', - r'()Lokio/ByteString;', - ); - - static final _sha256 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okio.ByteString sha256() - /// The returned object must be released after use, by calling the [release] method. - ByteString sha256() { - return _sha256(reference.pointer, _id_sha256 as jni.JMethodIDPtr) - .object(const $ByteStringType()); - } - - static final _id_sha512 = _class.instanceMethodId( - r'sha512', - r'()Lokio/ByteString;', - ); - - static final _sha512 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final okio.ByteString sha512() - /// The returned object must be released after use, by calling the [release] method. - ByteString sha512() { - return _sha512(reference.pointer, _id_sha512 as jni.JMethodIDPtr) - .object(const $ByteStringType()); - } - - static final _id_hmacSha1 = _class.instanceMethodId( - r'hmacSha1', - r'(Lokio/ByteString;)Lokio/ByteString;', - ); - - static final _hmacSha1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okio.ByteString hmacSha1(okio.ByteString byteString) - /// The returned object must be released after use, by calling the [release] method. - ByteString hmacSha1( - ByteString byteString, - ) { - return _hmacSha1(reference.pointer, _id_hmacSha1 as jni.JMethodIDPtr, - byteString.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_hmacSha256 = _class.instanceMethodId( - r'hmacSha256', - r'(Lokio/ByteString;)Lokio/ByteString;', - ); - - static final _hmacSha256 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okio.ByteString hmacSha256(okio.ByteString byteString) - /// The returned object must be released after use, by calling the [release] method. - ByteString hmacSha256( - ByteString byteString, - ) { - return _hmacSha256(reference.pointer, _id_hmacSha256 as jni.JMethodIDPtr, - byteString.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_hmacSha512 = _class.instanceMethodId( - r'hmacSha512', - r'(Lokio/ByteString;)Lokio/ByteString;', - ); - - static final _hmacSha512 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public okio.ByteString hmacSha512(okio.ByteString byteString) - /// The returned object must be released after use, by calling the [release] method. - ByteString hmacSha512( - ByteString byteString, - ) { - return _hmacSha512(reference.pointer, _id_hmacSha512 as jni.JMethodIDPtr, - byteString.reference.pointer) - .object(const $ByteStringType()); - } - - static final _id_base64Url = _class.instanceMethodId( - r'base64Url', - r'()Ljava/lang/String;', - ); - - static final _base64Url = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.String base64Url() - /// The returned object must be released after use, by calling the [release] method. - jni.JString base64Url() { - return _base64Url(reference.pointer, _id_base64Url as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_hex = _class.instanceMethodId( - r'hex', - r'()Ljava/lang/String;', - ); - - static final _hex = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.String hex() - /// The returned object must be released after use, by calling the [release] method. - jni.JString hex() { - return _hex(reference.pointer, _id_hex as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_toAsciiLowercase = _class.instanceMethodId( - r'toAsciiLowercase', - r'()Lokio/ByteString;', - ); - - static final _toAsciiLowercase = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public okio.ByteString toAsciiLowercase() - /// The returned object must be released after use, by calling the [release] method. - ByteString toAsciiLowercase() { - return _toAsciiLowercase( - reference.pointer, _id_toAsciiLowercase as jni.JMethodIDPtr) - .object(const $ByteStringType()); - } - - static final _id_toAsciiUppercase = _class.instanceMethodId( - r'toAsciiUppercase', - r'()Lokio/ByteString;', - ); - - static final _toAsciiUppercase = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public okio.ByteString toAsciiUppercase() - /// The returned object must be released after use, by calling the [release] method. - ByteString toAsciiUppercase() { - return _toAsciiUppercase( - reference.pointer, _id_toAsciiUppercase as jni.JMethodIDPtr) - .object(const $ByteStringType()); - } - - static final _id_substring = _class.instanceMethodId( - r'substring', - r'(II)Lokio/ByteString;', - ); - - static final _substring = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32, $Int32)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int, int)>(); - - /// from: public okio.ByteString substring(int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - ByteString substring( - int i, - int i1, - ) { - return _substring( - reference.pointer, _id_substring as jni.JMethodIDPtr, i, i1) - .object(const $ByteStringType()); - } - - static final _id_getByte = _class.instanceMethodId( - r'getByte', - r'(I)B', - ); - - static final _getByte = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallByteMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public final byte getByte(int i) - int getByte( - int i, - ) { - return _getByte(reference.pointer, _id_getByte as jni.JMethodIDPtr, i).byte; - } - - static final _id_size = _class.instanceMethodId( - r'size', - r'()I', - ); - - static final _size = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public final int size() - int size() { - return _size(reference.pointer, _id_size as jni.JMethodIDPtr).integer; - } - - static final _id_toByteArray = _class.instanceMethodId( - r'toByteArray', - r'()[B', - ); - - static final _toByteArray = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public byte[] toByteArray() - /// The returned object must be released after use, by calling the [release] method. - jni.JArray toByteArray() { - return _toByteArray(reference.pointer, _id_toByteArray as jni.JMethodIDPtr) - .object(const jni.JArrayType(jni.jbyteType())); - } - - static final _id_asByteBuffer = _class.instanceMethodId( - r'asByteBuffer', - r'()Ljava/nio/ByteBuffer;', - ); - - static final _asByteBuffer = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.nio.ByteBuffer asByteBuffer() - /// The returned object must be released after use, by calling the [release] method. - jni.JByteBuffer asByteBuffer() { - return _asByteBuffer( - reference.pointer, _id_asByteBuffer as jni.JMethodIDPtr) - .object(const jni.JByteBufferType()); - } - - static final _id_write = _class.instanceMethodId( - r'write', - r'(Ljava/io/OutputStream;)V', - ); - - static final _write = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public void write(java.io.OutputStream outputStream) - void write( - jni.JObject outputStream, - ) { - _write(reference.pointer, _id_write as jni.JMethodIDPtr, - outputStream.reference.pointer) - .check(); - } - - static final _id_rangeEquals = _class.instanceMethodId( - r'rangeEquals', - r'(ILokio/ByteString;II)Z', - ); - - static final _rangeEquals = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - $Int32, - ffi.Pointer, - $Int32, - $Int32 - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer, int, int)>(); - - /// from: public boolean rangeEquals(int i, okio.ByteString byteString, int i1, int i2) - bool rangeEquals( - int i, - ByteString byteString, - int i1, - int i2, - ) { - return _rangeEquals(reference.pointer, _id_rangeEquals as jni.JMethodIDPtr, - i, byteString.reference.pointer, i1, i2) - .boolean; - } - - static final _id_rangeEquals1 = _class.instanceMethodId( - r'rangeEquals', - r'(I[BII)Z', - ); - - static final _rangeEquals1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - $Int32, - ffi.Pointer, - $Int32, - $Int32 - )>)>>('globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer, int, int)>(); - - /// from: public boolean rangeEquals(int i, byte[] bs, int i1, int i2) - bool rangeEquals1( - int i, - jni.JArray bs, - int i1, - int i2, - ) { - return _rangeEquals1( - reference.pointer, - _id_rangeEquals1 as jni.JMethodIDPtr, - i, - bs.reference.pointer, - i1, - i2) - .boolean; - } - - static final _id_copyInto = _class.instanceMethodId( - r'copyInto', - r'(I[BII)V', - ); - - static final _copyInto = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - $Int32, - ffi.Pointer, - $Int32, - $Int32 - )>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - int, ffi.Pointer, int, int)>(); - - /// from: public void copyInto(int i, byte[] bs, int i1, int i2) - void copyInto( - int i, - jni.JArray bs, - int i1, - int i2, - ) { - _copyInto(reference.pointer, _id_copyInto as jni.JMethodIDPtr, i, - bs.reference.pointer, i1, i2) - .check(); - } - - static final _id_startsWith = _class.instanceMethodId( - r'startsWith', - r'(Lokio/ByteString;)Z', - ); - - static final _startsWith = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final boolean startsWith(okio.ByteString byteString) - bool startsWith( - ByteString byteString, - ) { - return _startsWith(reference.pointer, _id_startsWith as jni.JMethodIDPtr, - byteString.reference.pointer) - .boolean; - } - - static final _id_startsWith1 = _class.instanceMethodId( - r'startsWith', - r'([B)Z', - ); - - static final _startsWith1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final boolean startsWith(byte[] bs) - bool startsWith1( - jni.JArray bs, - ) { - return _startsWith1(reference.pointer, _id_startsWith1 as jni.JMethodIDPtr, - bs.reference.pointer) - .boolean; - } - - static final _id_endsWith = _class.instanceMethodId( - r'endsWith', - r'(Lokio/ByteString;)Z', - ); - - static final _endsWith = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final boolean endsWith(okio.ByteString byteString) - bool endsWith( - ByteString byteString, - ) { - return _endsWith(reference.pointer, _id_endsWith as jni.JMethodIDPtr, - byteString.reference.pointer) - .boolean; - } - - static final _id_endsWith1 = _class.instanceMethodId( - r'endsWith', - r'([B)Z', - ); - - static final _endsWith1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final boolean endsWith(byte[] bs) - bool endsWith1( - jni.JArray bs, - ) { - return _endsWith1(reference.pointer, _id_endsWith1 as jni.JMethodIDPtr, - bs.reference.pointer) - .boolean; - } - - static final _id_indexOf = _class.instanceMethodId( - r'indexOf', - r'(Lokio/ByteString;I)I', - ); - - static final _indexOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); - - /// from: public final int indexOf(okio.ByteString byteString, int i) - int indexOf( - ByteString byteString, - int i, - ) { - return _indexOf(reference.pointer, _id_indexOf as jni.JMethodIDPtr, - byteString.reference.pointer, i) - .integer; - } - - static final _id_indexOf1 = _class.instanceMethodId( - r'indexOf', - r'([BI)I', - ); - - static final _indexOf1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); - - /// from: public int indexOf(byte[] bs, int i) - int indexOf1( - jni.JArray bs, - int i, - ) { - return _indexOf1(reference.pointer, _id_indexOf1 as jni.JMethodIDPtr, - bs.reference.pointer, i) - .integer; - } - - static final _id_lastIndexOf = _class.instanceMethodId( - r'lastIndexOf', - r'(Lokio/ByteString;I)I', - ); - - static final _lastIndexOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); - - /// from: public final int lastIndexOf(okio.ByteString byteString, int i) - int lastIndexOf( - ByteString byteString, - int i, - ) { - return _lastIndexOf(reference.pointer, _id_lastIndexOf as jni.JMethodIDPtr, - byteString.reference.pointer, i) - .integer; - } - - static final _id_lastIndexOf1 = _class.instanceMethodId( - r'lastIndexOf', - r'([BI)I', - ); - - static final _lastIndexOf1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); - - /// from: public int lastIndexOf(byte[] bs, int i) - int lastIndexOf1( - jni.JArray bs, - int i, - ) { - return _lastIndexOf1(reference.pointer, - _id_lastIndexOf1 as jni.JMethodIDPtr, bs.reference.pointer, i) - .integer; - } - - static final _id_equals = _class.instanceMethodId( - r'equals', - r'(Ljava/lang/Object;)Z', - ); - - static final _equals = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallBooleanMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public boolean equals(java.lang.Object object) - bool equals( - jni.JObject object, - ) { - return _equals(reference.pointer, _id_equals as jni.JMethodIDPtr, - object.reference.pointer) - .boolean; - } - - static final _id_hashCode1 = _class.instanceMethodId( - r'hashCode', - r'()I', - ); - - static final _hashCode1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public int hashCode() - int hashCode1() { - return _hashCode1(reference.pointer, _id_hashCode1 as jni.JMethodIDPtr) - .integer; - } - - static final _id_compareTo = _class.instanceMethodId( - r'compareTo', - r'(Lokio/ByteString;)I', - ); - - static final _compareTo = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public int compareTo(okio.ByteString byteString) - int compareTo( - ByteString byteString, - ) { - return _compareTo(reference.pointer, _id_compareTo as jni.JMethodIDPtr, - byteString.reference.pointer) - .integer; - } - - static final _id_toString1 = _class.instanceMethodId( - r'toString', - r'()Ljava/lang/String;', - ); - - static final _toString1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public java.lang.String toString() - /// The returned object must be released after use, by calling the [release] method. - jni.JString toString1() { - return _toString1(reference.pointer, _id_toString1 as jni.JMethodIDPtr) - .object(const jni.JStringType()); - } - - static final _id_substring1 = _class.instanceMethodId( - r'substring', - r'(I)Lokio/ByteString;', +final class _$WebSocket_Factory with $WebSocket_Factory { + _$WebSocket_Factory( + ); - static final _substring1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<($Int32,)>)>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + - /// from: public final okio.ByteString substring(int i) - /// The returned object must be released after use, by calling the [release] method. - ByteString substring1( - int i, - ) { - return _substring1(reference.pointer, _id_substring1 as jni.JMethodIDPtr, i) - .object(const $ByteStringType()); - } - static final _id_substring2 = _class.instanceMethodId( - r'substring', - r'()Lokio/ByteString;', - ); +} +final class $WebSocket_Factory$Type extends _$jni.JObjType { + - static final _substring2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + @_$jni.internal + const $WebSocket_Factory$Type( + + ); - /// from: public final okio.ByteString substring() - /// The returned object must be released after use, by calling the [release] method. - ByteString substring2() { - return _substring2(reference.pointer, _id_substring2 as jni.JMethodIDPtr) - .object(const $ByteStringType()); - } - - static final _id_indexOf2 = _class.instanceMethodId( - r'indexOf', - r'(Lokio/ByteString;)I', - ); - - static final _indexOf2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final int indexOf(okio.ByteString byteString) - int indexOf2( - ByteString byteString, - ) { - return _indexOf2(reference.pointer, _id_indexOf2 as jni.JMethodIDPtr, - byteString.reference.pointer) - .integer; - } - - static final _id_indexOf3 = _class.instanceMethodId( - r'indexOf', - r'([B)I', - ); - - static final _indexOf3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final int indexOf(byte[] bs) - int indexOf3( - jni.JArray bs, - ) { - return _indexOf3(reference.pointer, _id_indexOf3 as jni.JMethodIDPtr, - bs.reference.pointer) - .integer; - } - - static final _id_lastIndexOf2 = _class.instanceMethodId( - r'lastIndexOf', - r'(Lokio/ByteString;)I', - ); - - static final _lastIndexOf2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final int lastIndexOf(okio.ByteString byteString) - int lastIndexOf2( - ByteString byteString, - ) { - return _lastIndexOf2(reference.pointer, - _id_lastIndexOf2 as jni.JMethodIDPtr, byteString.reference.pointer) - .integer; - } - - static final _id_lastIndexOf3 = _class.instanceMethodId( - r'lastIndexOf', - r'([B)I', - ); - - static final _lastIndexOf3 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final int lastIndexOf(byte[] bs) - int lastIndexOf3( - jni.JArray bs, - ) { - return _lastIndexOf3(reference.pointer, - _id_lastIndexOf3 as jni.JMethodIDPtr, bs.reference.pointer) - .integer; - } + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/WebSocket$Factory;'; - static final _id_of = _class.staticMethodId( - r'of', - r'([B)Lokio/ByteString;', + @_$jni.internal + @_$core.override + WebSocket_Factory fromReference(_$jni.JReference reference) => WebSocket_Factory.fromReference( + + reference ); - static final _of = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: static public final okio.ByteString of(byte[] bs) - /// The returned object must be released after use, by calling the [release] method. - static ByteString of( - jni.JArray bs, - ) { - return _of(_class.reference.pointer, _id_of as jni.JMethodIDPtr, - bs.reference.pointer) - .object(const $ByteStringType()); - } + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - static final _id_of1 = _class.staticMethodId( - r'of', - r'([BII)Lokio/ByteString;', - ); + @_$jni.internal + @_$core.override + final superCount = 1; - static final _of1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32, $Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int, int)>(); + @_$core.override + int get hashCode => ($WebSocket_Factory$Type).hashCode; - /// from: static public final okio.ByteString of(byte[] bs, int i, int i1) - /// The returned object must be released after use, by calling the [release] method. - static ByteString of1( - jni.JArray bs, - int i, - int i1, - ) { - return _of1(_class.reference.pointer, _id_of1 as jni.JMethodIDPtr, - bs.reference.pointer, i, i1) - .object(const $ByteStringType()); + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($WebSocket_Factory$Type) && + other is $WebSocket_Factory$Type; } +} - static final _id_of2 = _class.staticMethodId( - r'of', - r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', - ); - - static final _of2 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); +/// from: `okhttp3.WebSocket` +class WebSocket extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - /// from: static public final okio.ByteString of(java.nio.ByteBuffer byteBuffer) - /// The returned object must be released after use, by calling the [release] method. - static ByteString of2( - jni.JByteBuffer byteBuffer, - ) { - return _of2(_class.reference.pointer, _id_of2 as jni.JMethodIDPtr, - byteBuffer.reference.pointer) - .object(const $ByteStringType()); - } + - static final _id_encodeUtf8 = _class.staticMethodId( - r'encodeUtf8', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); + @_$jni.internal + WebSocket.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _encodeUtf8 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket'); - /// from: static public final okio.ByteString encodeUtf8(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - static ByteString encodeUtf8( - jni.JString string, + /// The type which includes information such as the signature of this class. +static const type = $WebSocket$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { - return _encodeUtf8(_class.reference.pointer, - _id_encodeUtf8 as jni.JMethodIDPtr, string.reference.pointer) - .object(const $ByteStringType()); + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } - static final _id_encodeString = _class.staticMethodId( - r'encodeString', - r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', - ); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static final _encodeString = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs< - ( - ffi.Pointer, - ffi.Pointer - )>)>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, ffi.Pointer)>(); - - /// from: static public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset) - /// The returned object must be released after use, by calling the [release] method. - static ByteString encodeString( - jni.JString string, - jni.JObject charset, + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, ) { - return _encodeString( - _class.reference.pointer, - _id_encodeString as jni.JMethodIDPtr, - string.reference.pointer, - charset.reference.pointer) - .object(const $ByteStringType()); + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; } - static final _id_decodeBase64 = _class.staticMethodId( - r'decodeBase64', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _decodeBase64 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: static public final okio.ByteString decodeBase64(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - static ByteString decodeBase64( - jni.JString string, + static void implementIn( + _$jni.JImplementer implementer, + $WebSocket $impl, ) { - return _decodeBase64(_class.reference.pointer, - _id_decodeBase64 as jni.JMethodIDPtr, string.reference.pointer) - .object(const $ByteStringType()); + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.WebSocket', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; } - static final _id_decodeHex = _class.staticMethodId( - r'decodeHex', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _decodeHex = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: static public final okio.ByteString decodeHex(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - static ByteString decodeHex( - jni.JString string, + factory WebSocket.implement( + $WebSocket $impl, ) { - return _decodeHex(_class.reference.pointer, - _id_decodeHex as jni.JMethodIDPtr, string.reference.pointer) - .object(const $ByteStringType()); + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return WebSocket.fromReference( + + $i.implementReference(), + ); + } } +abstract base mixin class $WebSocket { + factory $WebSocket( + + ) = _$WebSocket; - static final _id_read = _class.staticMethodId( - r'read', - r'(Ljava/io/InputStream;I)Lokio/ByteString;', + + +} + +final class _$WebSocket with $WebSocket { + _$WebSocket( + ); - static final _read = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, $Int32)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + + - /// from: static public final okio.ByteString read(java.io.InputStream inputStream, int i) - /// The returned object must be released after use, by calling the [release] method. - static ByteString read( - jni.JObject inputStream, - int i, - ) { - return _read(_class.reference.pointer, _id_read as jni.JMethodIDPtr, - inputStream.reference.pointer, i) - .object(const $ByteStringType()); - } - - static final _id_compareTo1 = _class.instanceMethodId( - r'compareTo', - r'(Ljava/lang/Object;)I', - ); - - static final _compareTo1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallIntMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public int compareTo(java.lang.Object object) - int compareTo1( - jni.JObject object, - ) { - return _compareTo1(reference.pointer, _id_compareTo1 as jni.JMethodIDPtr, - object.reference.pointer) - .integer; - } } +final class $WebSocket$Type extends _$jni.JObjType { + -final class $ByteStringType extends jni.JObjType { - const $ByteStringType(); + @_$jni.internal + const $WebSocket$Type( + + ); - @override - String get signature => r'Lokio/ByteString;'; + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/WebSocket;'; - @override - ByteString fromReference(jni.JReference reference) => - ByteString.fromReference(reference); + @_$jni.internal + @_$core.override + WebSocket fromReference(_$jni.JReference reference) => WebSocket.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($ByteStringType).hashCode; + @_$core.override + int get hashCode => ($WebSocket$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ByteStringType) && other is $ByteStringType; + return other.runtimeType == ($WebSocket$Type) && + other is $WebSocket$Type; } } -/// from: com.example.ok_http.WebSocketInterceptor$Companion -class WebSocketInterceptor_Companion extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `com.example.ok_http.WebSocketListenerProxy$WebSocketListener` +class WebSocketListenerProxy_WebSocketListener extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - WebSocketInterceptor_Companion.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); - - static final _class = - jni.JClass.forName(r'com/example/ok_http/WebSocketInterceptor$Companion'); - - /// The type which includes information such as the signature of this class. - static const type = $WebSocketInterceptor_CompanionType(); - static final _id_addWSInterceptor = _class.instanceMethodId( - r'addWSInterceptor', - r'(Lokhttp3/OkHttpClient$Builder;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _addWSInterceptor = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public final okhttp3.OkHttpClient$Builder addWSInterceptor(okhttp3.OkHttpClient$Builder builder) - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder addWSInterceptor( - OkHttpClient_Builder builder, + + + @_$jni.internal + WebSocketListenerProxy_WebSocketListener.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); + + /// The type which includes information such as the signature of this class. +static const type = $WebSocketListenerProxy_WebSocketListener$Type(); + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, ) { - return _addWSInterceptor(reference.pointer, - _id_addWSInterceptor as jni.JMethodIDPtr, builder.reference.pointer) - .object(const $OkHttpClient_BuilderType()); + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } - static final _id_new0 = _class.constructorId( - r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', - ); + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_NewObject') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } - /// from: public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker) - /// The returned object must be released after use, by calling the [release] method. - factory WebSocketInterceptor_Companion( - jni.JObject defaultConstructorMarker, + static void implementIn( + _$jni.JImplementer implementer, + $WebSocketListenerProxy_WebSocketListener $impl, ) { - return WebSocketInterceptor_Companion.fromReference(_new0( - _class.reference.pointer, - _id_new0 as jni.JMethodIDPtr, - defaultConstructorMarker.reference.pointer) - .reference); + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'com.example.ok_http.WebSocketListenerProxy$WebSocketListener', + $p, + _$invokePointer, + [ + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory WebSocketListenerProxy_WebSocketListener.implement( + $WebSocketListenerProxy_WebSocketListener $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return WebSocketListenerProxy_WebSocketListener.fromReference( + + $i.implementReference(), + ); } + } +abstract base mixin class $WebSocketListenerProxy_WebSocketListener { + factory $WebSocketListenerProxy_WebSocketListener( + + ) = _$WebSocketListenerProxy_WebSocketListener; + + + +} + +final class _$WebSocketListenerProxy_WebSocketListener with $WebSocketListenerProxy_WebSocketListener { + _$WebSocketListenerProxy_WebSocketListener( + + ); + + + + } +final class $WebSocketListenerProxy_WebSocketListener$Type extends _$jni.JObjType { + -final class $WebSocketInterceptor_CompanionType - extends jni.JObjType { - const $WebSocketInterceptor_CompanionType(); + @_$jni.internal + const $WebSocketListenerProxy_WebSocketListener$Type( + + ); - @override - String get signature => - r'Lcom/example/ok_http/WebSocketInterceptor$Companion;'; + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; - @override - WebSocketInterceptor_Companion fromReference(jni.JReference reference) => - WebSocketInterceptor_Companion.fromReference(reference); + @_$jni.internal + @_$core.override + WebSocketListenerProxy_WebSocketListener fromReference(_$jni.JReference reference) => WebSocketListenerProxy_WebSocketListener.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($WebSocketInterceptor_CompanionType).hashCode; + @_$core.override + int get hashCode => ($WebSocketListenerProxy_WebSocketListener$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($WebSocketInterceptor_CompanionType) && - other is $WebSocketInterceptor_CompanionType; + return other.runtimeType == ($WebSocketListenerProxy_WebSocketListener$Type) && + other is $WebSocketListenerProxy_WebSocketListener$Type; } } -/// from: com.example.ok_http.WebSocketInterceptor -class WebSocketInterceptor extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `com.example.ok_http.WebSocketListenerProxy` +class WebSocketListenerProxy extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - WebSocketInterceptor.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + - static final _class = - jni.JClass.forName(r'com/example/ok_http/WebSocketInterceptor'); + @_$jni.internal + WebSocketListenerProxy.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - /// The type which includes information such as the signature of this class. - static const type = $WebSocketInterceptorType(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lcom/example/ok_http/WebSocketInterceptor$Companion;', - ); + static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); - /// from: static public final com.example.ok_http.WebSocketInterceptor$Companion Companion - /// The returned object must be released after use, by calling the [release] method. - static WebSocketInterceptor_Companion get Companion => - _id_Companion.get(_class, const $WebSocketInterceptor_CompanionType()); - - static final _id_new0 = _class.constructorId( - r'()V', - ); - - static final _new0 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_NewObject') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: public void () - /// The returned object must be released after use, by calling the [release] method. - factory WebSocketInterceptor() { - return WebSocketInterceptor.fromReference( - _new0(_class.reference.pointer, _id_new0 as jni.JMethodIDPtr) - .reference); - } + /// The type which includes information such as the signature of this class. +static const type = $WebSocketListenerProxy$Type(); } +final class $WebSocketListenerProxy$Type extends _$jni.JObjType { + -final class $WebSocketInterceptorType - extends jni.JObjType { - const $WebSocketInterceptorType(); + @_$jni.internal + const $WebSocketListenerProxy$Type( + + ); - @override - String get signature => r'Lcom/example/ok_http/WebSocketInterceptor;'; + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy;'; - @override - WebSocketInterceptor fromReference(jni.JReference reference) => - WebSocketInterceptor.fromReference(reference); + @_$jni.internal + @_$core.override + WebSocketListenerProxy fromReference(_$jni.JReference reference) => WebSocketListenerProxy.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($WebSocketInterceptorType).hashCode; + @_$core.override + int get hashCode => ($WebSocketListenerProxy$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($WebSocketInterceptorType) && - other is $WebSocketInterceptorType; + return other.runtimeType == ($WebSocketListenerProxy$Type) && + other is $WebSocketListenerProxy$Type; } } -/// from: java.util.concurrent.TimeUnit -class TimeUnit extends jni.JObject { - @override - late final jni.JObjType $type = type; +/// from: `okio.ByteString$Companion` +class ByteString_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - TimeUnit.fromReference( - jni.JReference reference, - ) : super.fromReference(reference); + + + @_$jni.internal + ByteString_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _class = jni.JClass.forName(r'java/util/concurrent/TimeUnit'); + static final _class = _$jni.JClass.forName(r'okio/ByteString$Companion'); - /// The type which includes information such as the signature of this class. - static const type = $TimeUnitType(); - static final _id_NANOSECONDS = _class.staticFieldId( - r'NANOSECONDS', - r'Ljava/util/concurrent/TimeUnit;', + /// The type which includes information such as the signature of this class. +static const type = $ByteString_Companion$Type(); + static final _id_-deprecated_decodeBase64 = _class.instanceMethodId( + r'-deprecated_decodeBase64', + r'(Ljava/lang/String;)Lokio/ByteString;', ); - /// from: static public final java.util.concurrent.TimeUnit NANOSECONDS + static final _-deprecated_decodeBase64 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okio.ByteString -deprecated_decodeBase64(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get NANOSECONDS => - _id_NANOSECONDS.get(_class, const $TimeUnitType()); + ByteString -deprecated_decodeBase64(_$jni.JString string, ){ + + return _-deprecated_decodeBase64(reference.pointer, _id_-deprecated_decodeBase64 as _$jni.JMethodIDPtr, string.reference.pointer).object(const $ByteString$Type()); + } - static final _id_MICROSECONDS = _class.staticFieldId( - r'MICROSECONDS', - r'Ljava/util/concurrent/TimeUnit;', + static final _id_-deprecated_decodeHex = _class.instanceMethodId( + r'-deprecated_decodeHex', + r'(Ljava/lang/String;)Lokio/ByteString;', ); - /// from: static public final java.util.concurrent.TimeUnit MICROSECONDS + static final _-deprecated_decodeHex = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okio.ByteString -deprecated_decodeHex(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get MICROSECONDS => - _id_MICROSECONDS.get(_class, const $TimeUnitType()); + ByteString -deprecated_decodeHex(_$jni.JString string, ){ + + return _-deprecated_decodeHex(reference.pointer, _id_-deprecated_decodeHex as _$jni.JMethodIDPtr, string.reference.pointer).object(const $ByteString$Type()); + } - static final _id_MILLISECONDS = _class.staticFieldId( - r'MILLISECONDS', - r'Ljava/util/concurrent/TimeUnit;', + static final _id_-deprecated_encodeString = _class.instanceMethodId( + r'-deprecated_encodeString', + r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', ); - /// from: static public final java.util.concurrent.TimeUnit MILLISECONDS + static final _-deprecated_encodeString = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okio.ByteString -deprecated_encodeString(java.lang.String string, java.nio.charset.Charset charset)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get MILLISECONDS => - _id_MILLISECONDS.get(_class, const $TimeUnitType()); + ByteString -deprecated_encodeString(_$jni.JString string, _$jni.JObject charset, ){ + + return _-deprecated_encodeString(reference.pointer, _id_-deprecated_encodeString as _$jni.JMethodIDPtr, string.reference.pointer, charset.reference.pointer).object(const $ByteString$Type()); + } - static final _id_SECONDS = _class.staticFieldId( - r'SECONDS', - r'Ljava/util/concurrent/TimeUnit;', + static final _id_-deprecated_encodeUtf8 = _class.instanceMethodId( + r'-deprecated_encodeUtf8', + r'(Ljava/lang/String;)Lokio/ByteString;', ); - /// from: static public final java.util.concurrent.TimeUnit SECONDS + static final _-deprecated_encodeUtf8 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okio.ByteString -deprecated_encodeUtf8(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get SECONDS => _id_SECONDS.get(_class, const $TimeUnitType()); + ByteString -deprecated_encodeUtf8(_$jni.JString string, ){ + + return _-deprecated_encodeUtf8(reference.pointer, _id_-deprecated_encodeUtf8 as _$jni.JMethodIDPtr, string.reference.pointer).object(const $ByteString$Type()); + } - static final _id_MINUTES = _class.staticFieldId( - r'MINUTES', - r'Ljava/util/concurrent/TimeUnit;', + static final _id_-deprecated_of = _class.instanceMethodId( + r'-deprecated_of', + r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', ); - /// from: static public final java.util.concurrent.TimeUnit MINUTES + static final _-deprecated_of = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public final okio.ByteString -deprecated_of(java.nio.ByteBuffer byteBuffer)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get MINUTES => _id_MINUTES.get(_class, const $TimeUnitType()); + ByteString -deprecated_of(_$jni.JByteBuffer byteBuffer, ){ + + return _-deprecated_of(reference.pointer, _id_-deprecated_of as _$jni.JMethodIDPtr, byteBuffer.reference.pointer).object(const $ByteString$Type()); + } - static final _id_HOURS = _class.staticFieldId( - r'HOURS', - r'Ljava/util/concurrent/TimeUnit;', + static final _id_-deprecated_of$1 = _class.instanceMethodId( + r'-deprecated_of', + r'([BII)Lokio/ByteString;', ); - /// from: static public final java.util.concurrent.TimeUnit HOURS + static final _-deprecated_of$1 = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32, _$jni.Int32)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); + /// from: `public final okio.ByteString -deprecated_of(byte[] bs, int i, int i1)` /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get HOURS => _id_HOURS.get(_class, const $TimeUnitType()); + ByteString -deprecated_of$1(_$jni.JArray<_$jni.jbyte> bs, int i, int i1, ){ + + return _-deprecated_of$1(reference.pointer, _id_-deprecated_of$1 as _$jni.JMethodIDPtr, bs.reference.pointer, i, i1).object(const $ByteString$Type()); + } - static final _id_DAYS = _class.staticFieldId( - r'DAYS', - r'Ljava/util/concurrent/TimeUnit;', + static final _id_-deprecated_read = _class.instanceMethodId( + r'-deprecated_read', + r'(Ljava/io/InputStream;I)Lokio/ByteString;', ); - /// from: static public final java.util.concurrent.TimeUnit DAYS - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit get DAYS => _id_DAYS.get(_class, const $TimeUnitType()); - - static final _id_values = _class.staticMethodId( - r'values', - r'()[Ljava/util/concurrent/TimeUnit;', - ); - - static final _values = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); - - /// from: static public java.util.concurrent.TimeUnit[] values() + static final _-deprecated_read = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>('globalEnv_CallObjectMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + /// from: `public final okio.ByteString -deprecated_read(java.io.InputStream inputStream, int i)` /// The returned object must be released after use, by calling the [release] method. - static jni.JArray values() { - return _values(_class.reference.pointer, _id_values as jni.JMethodIDPtr) - .object(const jni.JArrayType($TimeUnitType())); + ByteString -deprecated_read(_$jni.JObject inputStream, int i, ){ + + return _-deprecated_read(reference.pointer, _id_-deprecated_read as _$jni.JMethodIDPtr, inputStream.reference.pointer, i).object(const $ByteString$Type()); } - static final _id_valueOf = _class.staticMethodId( - r'valueOf', - r'(Ljava/lang/String;)Ljava/util/concurrent/TimeUnit;', - ); +} +final class $ByteString_Companion$Type extends _$jni.JObjType { + - static final _valueOf = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + const $ByteString_Companion$Type( + + ); - /// from: static public java.util.concurrent.TimeUnit valueOf(java.lang.String string) - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit valueOf( - jni.JString string, - ) { - return _valueOf(_class.reference.pointer, _id_valueOf as jni.JMethodIDPtr, - string.reference.pointer) - .object(const $TimeUnitType()); - } - - static final _id_convert = _class.instanceMethodId( - r'convert', - r'(JLjava/util/concurrent/TimeUnit;)J', - ); - - static final _convert = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64, ffi.Pointer)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, int, - ffi.Pointer)>(); - - /// from: public long convert(long j, java.util.concurrent.TimeUnit timeUnit) - int convert( - int j, - TimeUnit timeUnit, - ) { - return _convert(reference.pointer, _id_convert as jni.JMethodIDPtr, j, - timeUnit.reference.pointer) - .long; - } - - static final _id_convert1 = _class.instanceMethodId( - r'convert', - r'(Ljava/time/Duration;)J', - ); - - static final _convert1 = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); - - /// from: public long convert(java.time.Duration duration) - int convert1( - jni.JObject duration, - ) { - return _convert1(reference.pointer, _id_convert1 as jni.JMethodIDPtr, - duration.reference.pointer) - .long; - } + @_$jni.internal + @_$core.override + String get signature => r'Lokio/ByteString$Companion;'; - static final _id_toNanos = _class.instanceMethodId( - r'toNanos', - r'(J)J', + @_$jni.internal + @_$core.override + ByteString_Companion fromReference(_$jni.JReference reference) => ByteString_Companion.fromReference( + + reference ); - static final _toNanos = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public long toNanos(long j) - int toNanos( - int j, - ) { - return _toNanos(reference.pointer, _id_toNanos as jni.JMethodIDPtr, j).long; + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ByteString_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ByteString_Companion$Type) && + other is $ByteString_Companion$Type; } +} - static final _id_toMicros = _class.instanceMethodId( - r'toMicros', - r'(J)J', - ); +/// from: `okio.ByteString` +class ByteString extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _toMicros = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + - /// from: public long toMicros(long j) - int toMicros( - int j, - ) { - return _toMicros(reference.pointer, _id_toMicros as jni.JMethodIDPtr, j) - .long; - } + @_$jni.internal + ByteString.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _id_toMillis = _class.instanceMethodId( - r'toMillis', - r'(J)J', - ); + static final _class = _$jni.JClass.forName(r'okio/ByteString'); - static final _toMillis = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + /// The type which includes information such as the signature of this class. +static const type = $ByteString$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lokio/ByteString$Companion;', + ); + /// from: `static public final okio.ByteString$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. +static ByteString_Companion get Companion => _id_Companion.get(_class, const $ByteString_Companion$Type()); - /// from: public long toMillis(long j) - int toMillis( - int j, - ) { - return _toMillis(reference.pointer, _id_toMillis as jni.JMethodIDPtr, j) - .long; - } + static final _id_EMPTY = + _class.staticFieldId( + r'EMPTY', + r'Lokio/ByteString;', + ); + /// from: `static public final okio.ByteString EMPTY` + /// The returned object must be released after use, by calling the [release] method. +static ByteString get EMPTY => _id_EMPTY.get(_class, const $ByteString$Type()); - static final _id_toSeconds = _class.instanceMethodId( - r'toSeconds', - r'(J)J', + static final _id_-deprecated_getByte = _class.instanceMethodId( + r'-deprecated_getByte', + r'(I)B', ); - static final _toSeconds = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public long toSeconds(long j) - int toSeconds( - int j, - ) { - return _toSeconds(reference.pointer, _id_toSeconds as jni.JMethodIDPtr, j) - .long; + static final _-deprecated_getByte = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallByteMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + /// from: `public final byte -deprecated_getByte(int i)` + int -deprecated_getByte(int i, ){ + + return _-deprecated_getByte(reference.pointer, _id_-deprecated_getByte as _$jni.JMethodIDPtr, i).byte; } - static final _id_toMinutes = _class.instanceMethodId( - r'toMinutes', - r'(J)J', + static final _id_-deprecated_size = _class.instanceMethodId( + r'-deprecated_size', + r'()I', ); - static final _toMinutes = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); - - /// from: public long toMinutes(long j) - int toMinutes( - int j, - ) { - return _toMinutes(reference.pointer, _id_toMinutes as jni.JMethodIDPtr, j) - .long; + static final _-deprecated_size = _$jni.ProtectedJniExtensions + .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') + .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); + /// from: `public final int -deprecated_size()` + int -deprecated_size(){ + + return _-deprecated_size(reference.pointer, _id_-deprecated_size as _$jni.JMethodIDPtr).integer; } - static final _id_toHours = _class.instanceMethodId( - r'toHours', - r'(J)J', - ); +} +final class $ByteString$Type extends _$jni.JObjType { + - static final _toHours = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + @_$jni.internal + const $ByteString$Type( + + ); - /// from: public long toHours(long j) - int toHours( - int j, - ) { - return _toHours(reference.pointer, _id_toHours as jni.JMethodIDPtr, j).long; - } + @_$jni.internal + @_$core.override + String get signature => r'Lokio/ByteString;'; - static final _id_toDays = _class.instanceMethodId( - r'toDays', - r'(J)J', + @_$jni.internal + @_$core.override + ByteString fromReference(_$jni.JReference reference) => ByteString.fromReference( + + reference ); - static final _toDays = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallLongMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - /// from: public long toDays(long j) - int toDays( - int j, - ) { - return _toDays(reference.pointer, _id_toDays as jni.JMethodIDPtr, j).long; + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ByteString$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ByteString$Type) && + other is $ByteString$Type; } +} - static final _id_timedWait = _class.instanceMethodId( - r'timedWait', - r'(Ljava/lang/Object;J)V', - ); +/// from: `com.example.ok_http.WebSocketInterceptor$Companion` +class WebSocketInterceptor_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; - static final _timedWait = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, ffi.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); + - /// from: public void timedWait(java.lang.Object object, long j) - void timedWait( - jni.JObject object, - int j, - ) { - _timedWait(reference.pointer, _id_timedWait as jni.JMethodIDPtr, - object.reference.pointer, j) - .check(); - } - - static final _id_timedJoin = _class.instanceMethodId( - r'timedJoin', - r'(Ljava/lang/Thread;J)V', - ); - - static final _timedJoin = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer, ffi.Int64)>)>>( - 'globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer, int)>(); - - /// from: public void timedJoin(java.lang.Thread thread, long j) - void timedJoin( - jni.JObject thread, - int j, - ) { - _timedJoin(reference.pointer, _id_timedJoin as jni.JMethodIDPtr, - thread.reference.pointer, j) - .check(); - } + @_$jni.internal + WebSocketInterceptor_Companion.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketInterceptor$Companion'); - static final _id_sleep = _class.instanceMethodId( - r'sleep', - r'(J)V', + /// The type which includes information such as the signature of this class. +static const type = $WebSocketInterceptor_Companion$Type(); +} +final class $WebSocketInterceptor_Companion$Type extends _$jni.JObjType { + + + @_$jni.internal + const $WebSocketInterceptor_Companion$Type( + ); - static final _sleep = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JThrowablePtr Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Int64,)>)>>('globalEnv_CallVoidMethod') - .asFunction< - jni.JThrowablePtr Function( - ffi.Pointer, jni.JMethodIDPtr, int)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/WebSocketInterceptor$Companion;'; - /// from: public void sleep(long j) - void sleep( - int j, - ) { - _sleep(reference.pointer, _id_sleep as jni.JMethodIDPtr, j).check(); + @_$jni.internal + @_$core.override + WebSocketInterceptor_Companion fromReference(_$jni.JReference reference) => WebSocketInterceptor_Companion.fromReference( + + reference + ); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($WebSocketInterceptor_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($WebSocketInterceptor_Companion$Type) && + other is $WebSocketInterceptor_Companion$Type; } +} - static final _id_toChronoUnit = _class.instanceMethodId( - r'toChronoUnit', - r'()Ljava/time/temporal/ChronoUnit;', - ); +/// from: `com.example.ok_http.WebSocketInterceptor` +class WebSocketInterceptor extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + + + @_$jni.internal + WebSocketInterceptor.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); - static final _toChronoUnit = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>>('globalEnv_CallObjectMethod') - .asFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - )>(); + static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketInterceptor'); - /// from: public java.time.temporal.ChronoUnit toChronoUnit() + /// The type which includes information such as the signature of this class. +static const type = $WebSocketInterceptor$Type(); + static final _id_Companion = + _class.staticFieldId( + r'Companion', + r'Lcom/example/ok_http/WebSocketInterceptor$Companion;', + ); + /// from: `static public final com.example.ok_http.WebSocketInterceptor$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - jni.JObject toChronoUnit() { - return _toChronoUnit( - reference.pointer, _id_toChronoUnit as jni.JMethodIDPtr) - .object(const jni.JObjectType()); - } +static WebSocketInterceptor_Companion get Companion => _id_Companion.get(_class, const $WebSocketInterceptor_Companion$Type()); + +} +final class $WebSocketInterceptor$Type extends _$jni.JObjType { + - static final _id_of = _class.staticMethodId( - r'of', - r'(Ljava/time/temporal/ChronoUnit;)Ljava/util/concurrent/TimeUnit;', + @_$jni.internal + const $WebSocketInterceptor$Type( + ); - static final _of = ProtectedJniExtensions.lookup< - ffi.NativeFunction< - jni.JniResult Function( - ffi.Pointer, - jni.JMethodIDPtr, - ffi.VarArgs<(ffi.Pointer,)>)>>( - 'globalEnv_CallStaticObjectMethod') - .asFunction< - jni.JniResult Function(ffi.Pointer, jni.JMethodIDPtr, - ffi.Pointer)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/WebSocketInterceptor;'; + + @_$jni.internal + @_$core.override + WebSocketInterceptor fromReference(_$jni.JReference reference) => WebSocketInterceptor.fromReference( + + reference + ); - /// from: static public java.util.concurrent.TimeUnit of(java.time.temporal.ChronoUnit chronoUnit) - /// The returned object must be released after use, by calling the [release] method. - static TimeUnit of( - jni.JObject chronoUnit, - ) { - return _of(_class.reference.pointer, _id_of as jni.JMethodIDPtr, - chronoUnit.reference.pointer) - .object(const $TimeUnitType()); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($WebSocketInterceptor$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($WebSocketInterceptor$Type) && + other is $WebSocketInterceptor$Type; } } -final class $TimeUnitType extends jni.JObjType { - const $TimeUnitType(); +/// from: `java.util.concurrent.TimeUnit` +class TimeUnit extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + + + @_$jni.internal + TimeUnit.fromReference( + + _$jni.JReference reference, + ) : + $type = type, + super.fromReference( + + reference + ); + + static final _class = _$jni.JClass.forName(r'java/util/concurrent/TimeUnit'); + + /// The type which includes information such as the signature of this class. +static const type = $TimeUnit$Type(); + static final _id_NANOSECONDS = + _class.staticFieldId( + r'NANOSECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit NANOSECONDS` + /// The returned object must be released after use, by calling the [release] method. +static TimeUnit get NANOSECONDS => _id_NANOSECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_MICROSECONDS = + _class.staticFieldId( + r'MICROSECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit MICROSECONDS` + /// The returned object must be released after use, by calling the [release] method. +static TimeUnit get MICROSECONDS => _id_MICROSECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_MILLISECONDS = + _class.staticFieldId( + r'MILLISECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit MILLISECONDS` + /// The returned object must be released after use, by calling the [release] method. +static TimeUnit get MILLISECONDS => _id_MILLISECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_SECONDS = + _class.staticFieldId( + r'SECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit SECONDS` + /// The returned object must be released after use, by calling the [release] method. +static TimeUnit get SECONDS => _id_SECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_MINUTES = + _class.staticFieldId( + r'MINUTES', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit MINUTES` + /// The returned object must be released after use, by calling the [release] method. +static TimeUnit get MINUTES => _id_MINUTES.get(_class, const $TimeUnit$Type()); + + static final _id_HOURS = + _class.staticFieldId( + r'HOURS', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit HOURS` + /// The returned object must be released after use, by calling the [release] method. +static TimeUnit get HOURS => _id_HOURS.get(_class, const $TimeUnit$Type()); + + static final _id_DAYS = + _class.staticFieldId( + r'DAYS', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit DAYS` + /// The returned object must be released after use, by calling the [release] method. +static TimeUnit get DAYS => _id_DAYS.get(_class, const $TimeUnit$Type()); + +} +final class $TimeUnit$Type extends _$jni.JObjType { + + + @_$jni.internal + const $TimeUnit$Type( + + ); - @override + @_$jni.internal + @_$core.override String get signature => r'Ljava/util/concurrent/TimeUnit;'; - @override - TimeUnit fromReference(jni.JReference reference) => - TimeUnit.fromReference(reference); + @_$jni.internal + @_$core.override + TimeUnit fromReference(_$jni.JReference reference) => TimeUnit.fromReference( + + reference + ); - @override - jni.JObjType get superType => const jni.JObjectType(); + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); - @override + @_$jni.internal + @_$core.override final superCount = 1; - @override - int get hashCode => ($TimeUnitType).hashCode; + @_$core.override + int get hashCode => ($TimeUnit$Type).hashCode; - @override + @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($TimeUnitType) && other is $TimeUnitType; + return other.runtimeType == ($TimeUnit$Type) && + other is $TimeUnit$Type; } } + diff --git a/pkgs/ok_http/pubspec.yaml b/pkgs/ok_http/pubspec.yaml index 93759491e5..cc55dfad2d 100644 --- a/pkgs/ok_http/pubspec.yaml +++ b/pkgs/ok_http/pubspec.yaml @@ -13,13 +13,13 @@ dependencies: sdk: flutter http: ^1.2.1 http_profile: ^0.1.0 - jni: ^0.10.1 + jni: ^0.12.0 plugin_platform_interface: ^2.0.2 web_socket: ^0.1.5 dev_dependencies: dart_flutter_team_lints: ^3.0.0 - jnigen: ^0.10.0 + jnigen: ^0.12.1 flutter: plugin: From 5638282453c8fbc7a5cf7bcbe5874581c0d778d6 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Nov 2024 13:16:15 -0800 Subject: [PATCH 2/4] Switch to jnigen 0.12.2 --- pkgs/ok_http/lib/src/jni/bindings.dart | 2912 +++++++----------------- pkgs/ok_http/pubspec.yaml | 2 +- 2 files changed, 847 insertions(+), 2067 deletions(-) diff --git a/pkgs/ok_http/lib/src/jni/bindings.dart b/pkgs/ok_http/lib/src/jni/bindings.dart index 9df24d965f..4b606ec347 100644 --- a/pkgs/ok_http/lib/src/jni/bindings.dart +++ b/pkgs/ok_http/lib/src/jni/bindings.dart @@ -2,7 +2,6 @@ // Autogenerated by jnigen. DO NOT EDIT! - // ignore_for_file: annotate_overrides // ignore_for_file: argument_type_not_assignable // ignore_for_file: camel_case_extensions @@ -31,45 +30,33 @@ // ignore_for_file: unused_shown_name // ignore_for_file: use_super_parameters - import 'dart:core' show Object, String, bool, double, int; import 'dart:core' as _$core; import 'package:jni/_internal.dart' as _$jni; import 'package:jni/jni.dart' as _$jni; - /// from: `okhttp3.Request$Builder` class Request_Builder extends _$jni.JObject { @_$jni.internal @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Request_Builder.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Request$Builder'); - /// The type which includes information such as the signature of this class. -static const type = $Request_Builder$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Request_Builder$Type(); } -final class $Request_Builder$Type extends _$jni.JObjType { - +final class $Request_Builder$Type extends _$jni.JObjType { @_$jni.internal - const $Request_Builder$Type( - - ); + const $Request_Builder$Type(); @_$jni.internal @_$core.override @@ -77,10 +64,8 @@ final class $Request_Builder$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Request_Builder fromReference(_$jni.JReference reference) => Request_Builder.fromReference( - - reference - ); + Request_Builder fromReference(_$jni.JReference reference) => + Request_Builder.fromReference(reference); @_$jni.internal @_$core.override @@ -106,106 +91,21 @@ class Request extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Request.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Request'); - /// The type which includes information such as the signature of this class. -static const type = $Request$Type(); - static final _id_-deprecated_url = _class.instanceMethodId( - r'-deprecated_url', - r'()Lokhttp3/HttpUrl;', - ); - - static final _-deprecated_url = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.HttpUrl -deprecated_url()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_url(){ - - return _-deprecated_url(reference.pointer, _id_-deprecated_url as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_method = _class.instanceMethodId( - r'-deprecated_method', - r'()Ljava/lang/String;', - ); - - static final _-deprecated_method = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.lang.String -deprecated_method()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JString -deprecated_method(){ - - return _-deprecated_method(reference.pointer, _id_-deprecated_method as _$jni.JMethodIDPtr).object(const _$jni.JStringType()); - } - - static final _id_-deprecated_headers = _class.instanceMethodId( - r'-deprecated_headers', - r'()Lokhttp3/Headers;', - ); - - static final _-deprecated_headers = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Headers -deprecated_headers()` - /// The returned object must be released after use, by calling the [release] method. - Headers -deprecated_headers(){ - - return _-deprecated_headers(reference.pointer, _id_-deprecated_headers as _$jni.JMethodIDPtr).object(const $Headers$Type()); - } - - static final _id_-deprecated_body = _class.instanceMethodId( - r'-deprecated_body', - r'()Lokhttp3/RequestBody;', - ); - - static final _-deprecated_body = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.RequestBody -deprecated_body()` - /// The returned object must be released after use, by calling the [release] method. - RequestBody -deprecated_body(){ - - return _-deprecated_body(reference.pointer, _id_-deprecated_body as _$jni.JMethodIDPtr).object(const $RequestBody$Type()); - } - - static final _id_-deprecated_cacheControl = _class.instanceMethodId( - r'-deprecated_cacheControl', - r'()Lokhttp3/CacheControl;', - ); - - static final _-deprecated_cacheControl = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.CacheControl -deprecated_cacheControl()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_cacheControl(){ - - return _-deprecated_cacheControl(reference.pointer, _id_-deprecated_cacheControl as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - + /// The type which includes information such as the signature of this class. + static const type = $Request$Type(); } -final class $Request$Type extends _$jni.JObjType { - +final class $Request$Type extends _$jni.JObjType { @_$jni.internal - const $Request$Type( - - ); + const $Request$Type(); @_$jni.internal @_$core.override @@ -213,10 +113,8 @@ final class $Request$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Request fromReference(_$jni.JReference reference) => Request.fromReference( - - reference - ); + Request fromReference(_$jni.JReference reference) => + Request.fromReference(reference); @_$jni.internal @_$core.override @@ -231,8 +129,7 @@ final class $Request$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Request$Type) && - other is $Request$Type; + return other.runtimeType == ($Request$Type) && other is $Request$Type; } } @@ -242,31 +139,22 @@ class RequestBody_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal RequestBody_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $RequestBody_Companion$Type(); + /// The type which includes information such as the signature of this class. + static const type = $RequestBody_Companion$Type(); } -final class $RequestBody_Companion$Type extends _$jni.JObjType { - +final class $RequestBody_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $RequestBody_Companion$Type( - - ); + const $RequestBody_Companion$Type(); @_$jni.internal @_$core.override @@ -274,10 +162,8 @@ final class $RequestBody_Companion$Type extends _$jni.JObjType RequestBody_Companion.fromReference( - - reference - ); + RequestBody_Companion fromReference(_$jni.JReference reference) => + RequestBody_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -303,40 +189,30 @@ class RequestBody extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal RequestBody.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody'); - /// The type which includes information such as the signature of this class. -static const type = $RequestBody$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lokhttp3/RequestBody$Companion;', - ); + /// The type which includes information such as the signature of this class. + static const type = $RequestBody$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/RequestBody$Companion;', + ); + /// from: `static public final okhttp3.RequestBody$Companion Companion` /// The returned object must be released after use, by calling the [release] method. -static RequestBody_Companion get Companion => _id_Companion.get(_class, const $RequestBody_Companion$Type()); - + static RequestBody_Companion get Companion => + _id_Companion.get(_class, const $RequestBody_Companion$Type()); } -final class $RequestBody$Type extends _$jni.JObjType { - +final class $RequestBody$Type extends _$jni.JObjType { @_$jni.internal - const $RequestBody$Type( - - ); + const $RequestBody$Type(); @_$jni.internal @_$core.override @@ -344,10 +220,8 @@ final class $RequestBody$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - RequestBody fromReference(_$jni.JReference reference) => RequestBody.fromReference( - - reference - ); + RequestBody fromReference(_$jni.JReference reference) => + RequestBody.fromReference(reference); @_$jni.internal @_$core.override @@ -373,31 +247,21 @@ class Response_Builder extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Response_Builder.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Response$Builder'); - /// The type which includes information such as the signature of this class. -static const type = $Response_Builder$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Response_Builder$Type(); } -final class $Response_Builder$Type extends _$jni.JObjType { - +final class $Response_Builder$Type extends _$jni.JObjType { @_$jni.internal - const $Response_Builder$Type( - - ); + const $Response_Builder$Type(); @_$jni.internal @_$core.override @@ -405,10 +269,8 @@ final class $Response_Builder$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Response_Builder fromReference(_$jni.JReference reference) => Response_Builder.fromReference( - - reference - ); + Response_Builder fromReference(_$jni.JReference reference) => + Response_Builder.fromReference(reference); @_$jni.internal @_$core.override @@ -434,223 +296,21 @@ class Response extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Response.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Response'); - /// The type which includes information such as the signature of this class. -static const type = $Response$Type(); - static final _id_-deprecated_request = _class.instanceMethodId( - r'-deprecated_request', - r'()Lokhttp3/Request;', - ); - - static final _-deprecated_request = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Request -deprecated_request()` - /// The returned object must be released after use, by calling the [release] method. - Request -deprecated_request(){ - - return _-deprecated_request(reference.pointer, _id_-deprecated_request as _$jni.JMethodIDPtr).object(const $Request$Type()); - } - - static final _id_-deprecated_protocol = _class.instanceMethodId( - r'-deprecated_protocol', - r'()Lokhttp3/Protocol;', - ); - - static final _-deprecated_protocol = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Protocol -deprecated_protocol()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_protocol(){ - - return _-deprecated_protocol(reference.pointer, _id_-deprecated_protocol as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_code = _class.instanceMethodId( - r'-deprecated_code', - r'()I', - ); - - static final _-deprecated_code = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_code()` - int -deprecated_code(){ - - return _-deprecated_code(reference.pointer, _id_-deprecated_code as _$jni.JMethodIDPtr).integer; - } - - static final _id_-deprecated_message = _class.instanceMethodId( - r'-deprecated_message', - r'()Ljava/lang/String;', - ); - - static final _-deprecated_message = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.lang.String -deprecated_message()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JString -deprecated_message(){ - - return _-deprecated_message(reference.pointer, _id_-deprecated_message as _$jni.JMethodIDPtr).object(const _$jni.JStringType()); - } - - static final _id_-deprecated_handshake = _class.instanceMethodId( - r'-deprecated_handshake', - r'()Lokhttp3/Handshake;', - ); - - static final _-deprecated_handshake = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Handshake -deprecated_handshake()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_handshake(){ - - return _-deprecated_handshake(reference.pointer, _id_-deprecated_handshake as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_headers = _class.instanceMethodId( - r'-deprecated_headers', - r'()Lokhttp3/Headers;', - ); - - static final _-deprecated_headers = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Headers -deprecated_headers()` - /// The returned object must be released after use, by calling the [release] method. - Headers -deprecated_headers(){ - - return _-deprecated_headers(reference.pointer, _id_-deprecated_headers as _$jni.JMethodIDPtr).object(const $Headers$Type()); - } - - static final _id_-deprecated_body = _class.instanceMethodId( - r'-deprecated_body', - r'()Lokhttp3/ResponseBody;', - ); - - static final _-deprecated_body = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.ResponseBody -deprecated_body()` - /// The returned object must be released after use, by calling the [release] method. - ResponseBody -deprecated_body(){ - - return _-deprecated_body(reference.pointer, _id_-deprecated_body as _$jni.JMethodIDPtr).object(const $ResponseBody$Type()); - } - - static final _id_-deprecated_networkResponse = _class.instanceMethodId( - r'-deprecated_networkResponse', - r'()Lokhttp3/Response;', - ); - - static final _-deprecated_networkResponse = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Response -deprecated_networkResponse()` - /// The returned object must be released after use, by calling the [release] method. - Response -deprecated_networkResponse(){ - - return _-deprecated_networkResponse(reference.pointer, _id_-deprecated_networkResponse as _$jni.JMethodIDPtr).object(const $Response$Type()); - } - - static final _id_-deprecated_cacheResponse = _class.instanceMethodId( - r'-deprecated_cacheResponse', - r'()Lokhttp3/Response;', - ); - - static final _-deprecated_cacheResponse = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Response -deprecated_cacheResponse()` - /// The returned object must be released after use, by calling the [release] method. - Response -deprecated_cacheResponse(){ - - return _-deprecated_cacheResponse(reference.pointer, _id_-deprecated_cacheResponse as _$jni.JMethodIDPtr).object(const $Response$Type()); - } - - static final _id_-deprecated_priorResponse = _class.instanceMethodId( - r'-deprecated_priorResponse', - r'()Lokhttp3/Response;', - ); - - static final _-deprecated_priorResponse = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Response -deprecated_priorResponse()` - /// The returned object must be released after use, by calling the [release] method. - Response -deprecated_priorResponse(){ - - return _-deprecated_priorResponse(reference.pointer, _id_-deprecated_priorResponse as _$jni.JMethodIDPtr).object(const $Response$Type()); - } - - static final _id_-deprecated_cacheControl = _class.instanceMethodId( - r'-deprecated_cacheControl', - r'()Lokhttp3/CacheControl;', - ); - - static final _-deprecated_cacheControl = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.CacheControl -deprecated_cacheControl()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_cacheControl(){ - - return _-deprecated_cacheControl(reference.pointer, _id_-deprecated_cacheControl as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_sentRequestAtMillis = _class.instanceMethodId( - r'-deprecated_sentRequestAtMillis', - r'()J', - ); - - static final _-deprecated_sentRequestAtMillis = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final long -deprecated_sentRequestAtMillis()` - int -deprecated_sentRequestAtMillis(){ - - return _-deprecated_sentRequestAtMillis(reference.pointer, _id_-deprecated_sentRequestAtMillis as _$jni.JMethodIDPtr).long; - } - - static final _id_-deprecated_receivedResponseAtMillis = _class.instanceMethodId( - r'-deprecated_receivedResponseAtMillis', - r'()J', - ); - - static final _-deprecated_receivedResponseAtMillis = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallLongMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final long -deprecated_receivedResponseAtMillis()` - int -deprecated_receivedResponseAtMillis(){ - - return _-deprecated_receivedResponseAtMillis(reference.pointer, _id_-deprecated_receivedResponseAtMillis as _$jni.JMethodIDPtr).long; - } - + /// The type which includes information such as the signature of this class. + static const type = $Response$Type(); } -final class $Response$Type extends _$jni.JObjType { - +final class $Response$Type extends _$jni.JObjType { @_$jni.internal - const $Response$Type( - - ); + const $Response$Type(); @_$jni.internal @_$core.override @@ -658,10 +318,8 @@ final class $Response$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Response fromReference(_$jni.JReference reference) => Response.fromReference( - - reference - ); + Response fromReference(_$jni.JReference reference) => + Response.fromReference(reference); @_$jni.internal @_$core.override @@ -676,8 +334,7 @@ final class $Response$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Response$Type) && - other is $Response$Type; + return other.runtimeType == ($Response$Type) && other is $Response$Type; } } @@ -687,31 +344,23 @@ class ResponseBody_BomAwareReader extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal ResponseBody_BomAwareReader.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); + static final _class = + _$jni.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); - /// The type which includes information such as the signature of this class. -static const type = $ResponseBody_BomAwareReader$Type(); + /// The type which includes information such as the signature of this class. + static const type = $ResponseBody_BomAwareReader$Type(); } -final class $ResponseBody_BomAwareReader$Type extends _$jni.JObjType { - +final class $ResponseBody_BomAwareReader$Type + extends _$jni.JObjType { @_$jni.internal - const $ResponseBody_BomAwareReader$Type( - - ); + const $ResponseBody_BomAwareReader$Type(); @_$jni.internal @_$core.override @@ -719,10 +368,8 @@ final class $ResponseBody_BomAwareReader$Type extends _$jni.JObjType ResponseBody_BomAwareReader.fromReference( - - reference - ); + ResponseBody_BomAwareReader fromReference(_$jni.JReference reference) => + ResponseBody_BomAwareReader.fromReference(reference); @_$jni.internal @_$core.override @@ -748,31 +395,22 @@ class ResponseBody_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal ResponseBody_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $ResponseBody_Companion$Type(); + /// The type which includes information such as the signature of this class. + static const type = $ResponseBody_Companion$Type(); } -final class $ResponseBody_Companion$Type extends _$jni.JObjType { - +final class $ResponseBody_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $ResponseBody_Companion$Type( - - ); + const $ResponseBody_Companion$Type(); @_$jni.internal @_$core.override @@ -780,10 +418,8 @@ final class $ResponseBody_Companion$Type extends _$jni.JObjType ResponseBody_Companion.fromReference( - - reference - ); + ResponseBody_Companion fromReference(_$jni.JReference reference) => + ResponseBody_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -809,40 +445,30 @@ class ResponseBody extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal ResponseBody.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody'); - /// The type which includes information such as the signature of this class. -static const type = $ResponseBody$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lokhttp3/ResponseBody$Companion;', - ); + /// The type which includes information such as the signature of this class. + static const type = $ResponseBody$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/ResponseBody$Companion;', + ); + /// from: `static public final okhttp3.ResponseBody$Companion Companion` /// The returned object must be released after use, by calling the [release] method. -static ResponseBody_Companion get Companion => _id_Companion.get(_class, const $ResponseBody_Companion$Type()); - + static ResponseBody_Companion get Companion => + _id_Companion.get(_class, const $ResponseBody_Companion$Type()); } -final class $ResponseBody$Type extends _$jni.JObjType { - +final class $ResponseBody$Type extends _$jni.JObjType { @_$jni.internal - const $ResponseBody$Type( - - ); + const $ResponseBody$Type(); @_$jni.internal @_$core.override @@ -850,10 +476,8 @@ final class $ResponseBody$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - ResponseBody fromReference(_$jni.JReference reference) => ResponseBody.fromReference( - - reference - ); + ResponseBody fromReference(_$jni.JReference reference) => + ResponseBody.fromReference(reference); @_$jni.internal @_$core.override @@ -879,61 +503,22 @@ class OkHttpClient_Builder extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal OkHttpClient_Builder.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Builder'); - /// The type which includes information such as the signature of this class. -static const type = $OkHttpClient_Builder$Type(); - static final _id_-addInterceptor = _class.instanceMethodId( - r'-addInterceptor', - r'(Lkotlin/jvm/functions/Function1;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _-addInterceptor = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okhttp3.OkHttpClient$Builder -addInterceptor(kotlin.jvm.functions.Function1 function1)` - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder -addInterceptor(_$jni.JObject function1, ){ - - return _-addInterceptor(reference.pointer, _id_-addInterceptor as _$jni.JMethodIDPtr, function1.reference.pointer).object(const $OkHttpClient_Builder$Type()); - } - - static final _id_-addNetworkInterceptor = _class.instanceMethodId( - r'-addNetworkInterceptor', - r'(Lkotlin/jvm/functions/Function1;)Lokhttp3/OkHttpClient$Builder;', - ); - - static final _-addNetworkInterceptor = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okhttp3.OkHttpClient$Builder -addNetworkInterceptor(kotlin.jvm.functions.Function1 function1)` - /// The returned object must be released after use, by calling the [release] method. - OkHttpClient_Builder -addNetworkInterceptor(_$jni.JObject function1, ){ - - return _-addNetworkInterceptor(reference.pointer, _id_-addNetworkInterceptor as _$jni.JMethodIDPtr, function1.reference.pointer).object(const $OkHttpClient_Builder$Type()); - } - + /// The type which includes information such as the signature of this class. + static const type = $OkHttpClient_Builder$Type(); } -final class $OkHttpClient_Builder$Type extends _$jni.JObjType { - +final class $OkHttpClient_Builder$Type + extends _$jni.JObjType { @_$jni.internal - const $OkHttpClient_Builder$Type( - - ); + const $OkHttpClient_Builder$Type(); @_$jni.internal @_$core.override @@ -941,10 +526,8 @@ final class $OkHttpClient_Builder$Type extends _$jni.JObjType OkHttpClient_Builder.fromReference( - - reference - ); + OkHttpClient_Builder fromReference(_$jni.JReference reference) => + OkHttpClient_Builder.fromReference(reference); @_$jni.internal @_$core.override @@ -970,31 +553,22 @@ class OkHttpClient_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal OkHttpClient_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $OkHttpClient_Companion$Type(); + /// The type which includes information such as the signature of this class. + static const type = $OkHttpClient_Companion$Type(); } -final class $OkHttpClient_Companion$Type extends _$jni.JObjType { - +final class $OkHttpClient_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $OkHttpClient_Companion$Type( - - ); + const $OkHttpClient_Companion$Type(); @_$jni.internal @_$core.override @@ -1002,10 +576,8 @@ final class $OkHttpClient_Companion$Type extends _$jni.JObjType OkHttpClient_Companion.fromReference( - - reference - ); + OkHttpClient_Companion fromReference(_$jni.JReference reference) => + OkHttpClient_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -1031,422 +603,30 @@ class OkHttpClient extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal OkHttpClient.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient'); - /// The type which includes information such as the signature of this class. -static const type = $OkHttpClient$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lokhttp3/OkHttpClient$Companion;', - ); - /// from: `static public final okhttp3.OkHttpClient$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. -static OkHttpClient_Companion get Companion => _id_Companion.get(_class, const $OkHttpClient_Companion$Type()); - - static final _id_-deprecated_dispatcher = _class.instanceMethodId( - r'-deprecated_dispatcher', - r'()Lokhttp3/Dispatcher;', - ); - - static final _-deprecated_dispatcher = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Dispatcher -deprecated_dispatcher()` - /// The returned object must be released after use, by calling the [release] method. - Dispatcher -deprecated_dispatcher(){ - - return _-deprecated_dispatcher(reference.pointer, _id_-deprecated_dispatcher as _$jni.JMethodIDPtr).object(const $Dispatcher$Type()); - } - - static final _id_-deprecated_connectionPool = _class.instanceMethodId( - r'-deprecated_connectionPool', - r'()Lokhttp3/ConnectionPool;', - ); - - static final _-deprecated_connectionPool = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.ConnectionPool -deprecated_connectionPool()` - /// The returned object must be released after use, by calling the [release] method. - ConnectionPool -deprecated_connectionPool(){ - - return _-deprecated_connectionPool(reference.pointer, _id_-deprecated_connectionPool as _$jni.JMethodIDPtr).object(const $ConnectionPool$Type()); - } - - static final _id_-deprecated_interceptors = _class.instanceMethodId( - r'-deprecated_interceptors', - r'()Ljava/util/List;', - ); - - static final _-deprecated_interceptors = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.util.List -deprecated_interceptors()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> -deprecated_interceptors(){ - - return _-deprecated_interceptors(reference.pointer, _id_-deprecated_interceptors as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); - } - - static final _id_-deprecated_networkInterceptors = _class.instanceMethodId( - r'-deprecated_networkInterceptors', - r'()Ljava/util/List;', - ); - - static final _-deprecated_networkInterceptors = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.util.List -deprecated_networkInterceptors()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> -deprecated_networkInterceptors(){ - - return _-deprecated_networkInterceptors(reference.pointer, _id_-deprecated_networkInterceptors as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); - } - - static final _id_-deprecated_eventListenerFactory = _class.instanceMethodId( - r'-deprecated_eventListenerFactory', - r'()Lokhttp3/EventListener$Factory;', - ); - - static final _-deprecated_eventListenerFactory = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.EventListener$Factory -deprecated_eventListenerFactory()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_eventListenerFactory(){ - - return _-deprecated_eventListenerFactory(reference.pointer, _id_-deprecated_eventListenerFactory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_retryOnConnectionFailure = _class.instanceMethodId( - r'-deprecated_retryOnConnectionFailure', - r'()Z', - ); - - static final _-deprecated_retryOnConnectionFailure = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final boolean -deprecated_retryOnConnectionFailure()` - bool -deprecated_retryOnConnectionFailure(){ - - return _-deprecated_retryOnConnectionFailure(reference.pointer, _id_-deprecated_retryOnConnectionFailure as _$jni.JMethodIDPtr).boolean; - } - - static final _id_-deprecated_authenticator = _class.instanceMethodId( - r'-deprecated_authenticator', - r'()Lokhttp3/Authenticator;', - ); - - static final _-deprecated_authenticator = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Authenticator -deprecated_authenticator()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_authenticator(){ - - return _-deprecated_authenticator(reference.pointer, _id_-deprecated_authenticator as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_followRedirects = _class.instanceMethodId( - r'-deprecated_followRedirects', - r'()Z', - ); - - static final _-deprecated_followRedirects = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final boolean -deprecated_followRedirects()` - bool -deprecated_followRedirects(){ - - return _-deprecated_followRedirects(reference.pointer, _id_-deprecated_followRedirects as _$jni.JMethodIDPtr).boolean; - } - - static final _id_-deprecated_followSslRedirects = _class.instanceMethodId( - r'-deprecated_followSslRedirects', - r'()Z', - ); - - static final _-deprecated_followSslRedirects = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallBooleanMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final boolean -deprecated_followSslRedirects()` - bool -deprecated_followSslRedirects(){ - - return _-deprecated_followSslRedirects(reference.pointer, _id_-deprecated_followSslRedirects as _$jni.JMethodIDPtr).boolean; - } - - static final _id_-deprecated_cookieJar = _class.instanceMethodId( - r'-deprecated_cookieJar', - r'()Lokhttp3/CookieJar;', - ); - - static final _-deprecated_cookieJar = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.CookieJar -deprecated_cookieJar()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_cookieJar(){ - - return _-deprecated_cookieJar(reference.pointer, _id_-deprecated_cookieJar as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_cache = _class.instanceMethodId( - r'-deprecated_cache', - r'()Lokhttp3/Cache;', - ); - - static final _-deprecated_cache = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Cache -deprecated_cache()` - /// The returned object must be released after use, by calling the [release] method. - Cache -deprecated_cache(){ - - return _-deprecated_cache(reference.pointer, _id_-deprecated_cache as _$jni.JMethodIDPtr).object(const $Cache$Type()); - } - - static final _id_-deprecated_dns = _class.instanceMethodId( - r'-deprecated_dns', - r'()Lokhttp3/Dns;', - ); - - static final _-deprecated_dns = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Dns -deprecated_dns()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_dns(){ - - return _-deprecated_dns(reference.pointer, _id_-deprecated_dns as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_proxy = _class.instanceMethodId( - r'-deprecated_proxy', - r'()Ljava/net/Proxy;', - ); - - static final _-deprecated_proxy = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.net.Proxy -deprecated_proxy()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_proxy(){ - - return _-deprecated_proxy(reference.pointer, _id_-deprecated_proxy as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_proxySelector = _class.instanceMethodId( - r'-deprecated_proxySelector', - r'()Ljava/net/ProxySelector;', + /// The type which includes information such as the signature of this class. + static const type = $OkHttpClient$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/OkHttpClient$Companion;', ); - static final _-deprecated_proxySelector = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.net.ProxySelector -deprecated_proxySelector()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_proxySelector(){ - - return _-deprecated_proxySelector(reference.pointer, _id_-deprecated_proxySelector as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_proxyAuthenticator = _class.instanceMethodId( - r'-deprecated_proxyAuthenticator', - r'()Lokhttp3/Authenticator;', - ); - - static final _-deprecated_proxyAuthenticator = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.Authenticator -deprecated_proxyAuthenticator()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_proxyAuthenticator(){ - - return _-deprecated_proxyAuthenticator(reference.pointer, _id_-deprecated_proxyAuthenticator as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_socketFactory = _class.instanceMethodId( - r'-deprecated_socketFactory', - r'()Ljavax/net/SocketFactory;', - ); - - static final _-deprecated_socketFactory = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final javax.net.SocketFactory -deprecated_socketFactory()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_socketFactory(){ - - return _-deprecated_socketFactory(reference.pointer, _id_-deprecated_socketFactory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_sslSocketFactory = _class.instanceMethodId( - r'-deprecated_sslSocketFactory', - r'()Ljavax/net/ssl/SSLSocketFactory;', - ); - - static final _-deprecated_sslSocketFactory = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final javax.net.ssl.SSLSocketFactory -deprecated_sslSocketFactory()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_sslSocketFactory(){ - - return _-deprecated_sslSocketFactory(reference.pointer, _id_-deprecated_sslSocketFactory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_connectionSpecs = _class.instanceMethodId( - r'-deprecated_connectionSpecs', - r'()Ljava/util/List;', - ); - - static final _-deprecated_connectionSpecs = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.util.List -deprecated_connectionSpecs()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> -deprecated_connectionSpecs(){ - - return _-deprecated_connectionSpecs(reference.pointer, _id_-deprecated_connectionSpecs as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); - } - - static final _id_-deprecated_protocols = _class.instanceMethodId( - r'-deprecated_protocols', - r'()Ljava/util/List;', - ); - - static final _-deprecated_protocols = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.util.List -deprecated_protocols()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> -deprecated_protocols(){ - - return _-deprecated_protocols(reference.pointer, _id_-deprecated_protocols as _$jni.JMethodIDPtr).object(const _$jni.JListType(_$jni.JObjectType())); - } - - static final _id_-deprecated_hostnameVerifier = _class.instanceMethodId( - r'-deprecated_hostnameVerifier', - r'()Ljavax/net/ssl/HostnameVerifier;', - ); - - static final _-deprecated_hostnameVerifier = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final javax.net.ssl.HostnameVerifier -deprecated_hostnameVerifier()` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_hostnameVerifier(){ - - return _-deprecated_hostnameVerifier(reference.pointer, _id_-deprecated_hostnameVerifier as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_certificatePinner = _class.instanceMethodId( - r'-deprecated_certificatePinner', - r'()Lokhttp3/CertificatePinner;', - ); - - static final _-deprecated_certificatePinner = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final okhttp3.CertificatePinner -deprecated_certificatePinner()` + /// from: `static public final okhttp3.OkHttpClient$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_certificatePinner(){ - - return _-deprecated_certificatePinner(reference.pointer, _id_-deprecated_certificatePinner as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - - static final _id_-deprecated_callTimeoutMillis = _class.instanceMethodId( - r'-deprecated_callTimeoutMillis', - r'()I', - ); - - static final _-deprecated_callTimeoutMillis = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_callTimeoutMillis()` - int -deprecated_callTimeoutMillis(){ - - return _-deprecated_callTimeoutMillis(reference.pointer, _id_-deprecated_callTimeoutMillis as _$jni.JMethodIDPtr).integer; - } - - static final _id_-deprecated_connectTimeoutMillis = _class.instanceMethodId( - r'-deprecated_connectTimeoutMillis', - r'()I', - ); - - static final _-deprecated_connectTimeoutMillis = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_connectTimeoutMillis()` - int -deprecated_connectTimeoutMillis(){ - - return _-deprecated_connectTimeoutMillis(reference.pointer, _id_-deprecated_connectTimeoutMillis as _$jni.JMethodIDPtr).integer; - } - - static final _id_-deprecated_readTimeoutMillis = _class.instanceMethodId( - r'-deprecated_readTimeoutMillis', - r'()I', - ); - - static final _-deprecated_readTimeoutMillis = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_readTimeoutMillis()` - int -deprecated_readTimeoutMillis(){ - - return _-deprecated_readTimeoutMillis(reference.pointer, _id_-deprecated_readTimeoutMillis as _$jni.JMethodIDPtr).integer; - } - - static final _id_-deprecated_writeTimeoutMillis = _class.instanceMethodId( - r'-deprecated_writeTimeoutMillis', - r'()I', - ); - - static final _-deprecated_writeTimeoutMillis = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_writeTimeoutMillis()` - int -deprecated_writeTimeoutMillis(){ - - return _-deprecated_writeTimeoutMillis(reference.pointer, _id_-deprecated_writeTimeoutMillis as _$jni.JMethodIDPtr).integer; - } - - static final _id_-deprecated_pingIntervalMillis = _class.instanceMethodId( - r'-deprecated_pingIntervalMillis', - r'()I', - ); - - static final _-deprecated_pingIntervalMillis = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_pingIntervalMillis()` - int -deprecated_pingIntervalMillis(){ - - return _-deprecated_pingIntervalMillis(reference.pointer, _id_-deprecated_pingIntervalMillis as _$jni.JMethodIDPtr).integer; - } - + static OkHttpClient_Companion get Companion => + _id_Companion.get(_class, const $OkHttpClient_Companion$Type()); } -final class $OkHttpClient$Type extends _$jni.JObjType { - +final class $OkHttpClient$Type extends _$jni.JObjType { @_$jni.internal - const $OkHttpClient$Type( - - ); + const $OkHttpClient$Type(); @_$jni.internal @_$core.override @@ -1454,10 +634,8 @@ final class $OkHttpClient$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - OkHttpClient fromReference(_$jni.JReference reference) => OkHttpClient.fromReference( - - reference - ); + OkHttpClient fromReference(_$jni.JReference reference) => + OkHttpClient.fromReference(reference); @_$jni.internal @_$core.override @@ -1483,23 +661,17 @@ class Call_Factory extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Call_Factory.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Call$Factory'); - /// The type which includes information such as the signature of this class. -static const type = $Call_Factory$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Call_Factory$Type(); + /// Maps a specific port to the implemented interface. static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( @@ -1530,7 +702,7 @@ static const type = $Call_Factory$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -1555,10 +727,9 @@ static const type = $Call_Factory$Type(); r'okhttp3.Call$Factory', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -1568,36 +739,22 @@ static const type = $Call_Factory$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return Call_Factory.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $Call_Factory { - factory $Call_Factory( - - ) = _$Call_Factory; - - +} +abstract base mixin class $Call_Factory { + factory $Call_Factory() = _$Call_Factory; } final class _$Call_Factory with $Call_Factory { - _$Call_Factory( - - ); - - - - + _$Call_Factory(); } -final class $Call_Factory$Type extends _$jni.JObjType { - +final class $Call_Factory$Type extends _$jni.JObjType { @_$jni.internal - const $Call_Factory$Type( - - ); + const $Call_Factory$Type(); @_$jni.internal @_$core.override @@ -1605,10 +762,8 @@ final class $Call_Factory$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Call_Factory fromReference(_$jni.JReference reference) => Call_Factory.fromReference( - - reference - ); + Call_Factory fromReference(_$jni.JReference reference) => + Call_Factory.fromReference(reference); @_$jni.internal @_$core.override @@ -1634,23 +789,17 @@ class Call extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Call.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Call'); - /// The type which includes information such as the signature of this class. -static const type = $Call$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Call$Type(); + /// Maps a specific port to the implemented interface. static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( @@ -1681,7 +830,7 @@ static const type = $Call$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -1706,10 +855,9 @@ static const type = $Call$Type(); r'okhttp3.Call', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -1719,36 +867,22 @@ static const type = $Call$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return Call.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $Call { - factory $Call( - - ) = _$Call; - - +} +abstract base mixin class $Call { + factory $Call() = _$Call; } final class _$Call with $Call { - _$Call( - - ); - - - - + _$Call(); } -final class $Call$Type extends _$jni.JObjType { - +final class $Call$Type extends _$jni.JObjType { @_$jni.internal - const $Call$Type( - - ); + const $Call$Type(); @_$jni.internal @_$core.override @@ -1756,10 +890,8 @@ final class $Call$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Call fromReference(_$jni.JReference reference) => Call.fromReference( - - reference - ); + Call fromReference(_$jni.JReference reference) => + Call.fromReference(reference); @_$jni.internal @_$core.override @@ -1774,8 +906,7 @@ final class $Call$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Call$Type) && - other is $Call$Type; + return other.runtimeType == ($Call$Type) && other is $Call$Type; } } @@ -1785,31 +916,21 @@ class Headers_Builder extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Headers_Builder.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Builder'); - /// The type which includes information such as the signature of this class. -static const type = $Headers_Builder$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Headers_Builder$Type(); } -final class $Headers_Builder$Type extends _$jni.JObjType { - +final class $Headers_Builder$Type extends _$jni.JObjType { @_$jni.internal - const $Headers_Builder$Type( - - ); + const $Headers_Builder$Type(); @_$jni.internal @_$core.override @@ -1817,10 +938,8 @@ final class $Headers_Builder$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Headers_Builder fromReference(_$jni.JReference reference) => Headers_Builder.fromReference( - - reference - ); + Headers_Builder fromReference(_$jni.JReference reference) => + Headers_Builder.fromReference(reference); @_$jni.internal @_$core.override @@ -1846,61 +965,21 @@ class Headers_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Headers_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $Headers_Companion$Type(); - static final _id_-deprecated_of = _class.instanceMethodId( - r'-deprecated_of', - r'([Ljava/lang/String;)Lokhttp3/Headers;', - ); - - static final _-deprecated_of = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okhttp3.Headers -deprecated_of(java.lang.String[] strings)` - /// The returned object must be released after use, by calling the [release] method. - Headers -deprecated_of(_$jni.JArray<_$jni.JString> strings, ){ - - return _-deprecated_of(reference.pointer, _id_-deprecated_of as _$jni.JMethodIDPtr, strings.reference.pointer).object(const $Headers$Type()); - } - - static final _id_-deprecated_of$1 = _class.instanceMethodId( - r'-deprecated_of', - r'(Ljava/util/Map;)Lokhttp3/Headers;', - ); - - static final _-deprecated_of$1 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okhttp3.Headers -deprecated_of(java.util.Map map)` - /// The returned object must be released after use, by calling the [release] method. - Headers -deprecated_of$1(_$jni.JMap<_$jni.JString, _$jni.JString> map, ){ - - return _-deprecated_of$1(reference.pointer, _id_-deprecated_of$1 as _$jni.JMethodIDPtr, map.reference.pointer).object(const $Headers$Type()); - } - + /// The type which includes information such as the signature of this class. + static const type = $Headers_Companion$Type(); } -final class $Headers_Companion$Type extends _$jni.JObjType { - +final class $Headers_Companion$Type extends _$jni.JObjType { @_$jni.internal - const $Headers_Companion$Type( - - ); + const $Headers_Companion$Type(); @_$jni.internal @_$core.override @@ -1908,10 +987,8 @@ final class $Headers_Companion$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Headers_Companion fromReference(_$jni.JReference reference) => Headers_Companion.fromReference( - - reference - ); + Headers_Companion fromReference(_$jni.JReference reference) => + Headers_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -1937,54 +1014,30 @@ class Headers extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Headers.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Headers'); - /// The type which includes information such as the signature of this class. -static const type = $Headers$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lokhttp3/Headers$Companion;', - ); - /// from: `static public final okhttp3.Headers$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. -static Headers_Companion get Companion => _id_Companion.get(_class, const $Headers_Companion$Type()); - - static final _id_-deprecated_size = _class.instanceMethodId( - r'-deprecated_size', - r'()I', + /// The type which includes information such as the signature of this class. + static const type = $Headers$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/Headers$Companion;', ); - static final _-deprecated_size = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_size()` - int -deprecated_size(){ - - return _-deprecated_size(reference.pointer, _id_-deprecated_size as _$jni.JMethodIDPtr).integer; - } - + /// from: `static public final okhttp3.Headers$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static Headers_Companion get Companion => + _id_Companion.get(_class, const $Headers_Companion$Type()); } -final class $Headers$Type extends _$jni.JObjType { - +final class $Headers$Type extends _$jni.JObjType { @_$jni.internal - const $Headers$Type( - - ); + const $Headers$Type(); @_$jni.internal @_$core.override @@ -1992,10 +1045,8 @@ final class $Headers$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Headers fromReference(_$jni.JReference reference) => Headers.fromReference( - - reference - ); + Headers fromReference(_$jni.JReference reference) => + Headers.fromReference(reference); @_$jni.internal @_$core.override @@ -2010,8 +1061,7 @@ final class $Headers$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Headers$Type) && - other is $Headers$Type; + return other.runtimeType == ($Headers$Type) && other is $Headers$Type; } } @@ -2021,23 +1071,17 @@ class Callback extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Callback.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Callback'); - /// The type which includes information such as the signature of this class. -static const type = $Callback$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Callback$Type(); + /// Maps a specific port to the implemented interface. static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( @@ -2068,7 +1112,7 @@ static const type = $Callback$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -2093,10 +1137,9 @@ static const type = $Callback$Type(); r'okhttp3.Callback', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -2106,36 +1149,22 @@ static const type = $Callback$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return Callback.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $Callback { - factory $Callback( - - ) = _$Callback; - - +} +abstract base mixin class $Callback { + factory $Callback() = _$Callback; } final class _$Callback with $Callback { - _$Callback( - - ); - - - - + _$Callback(); } -final class $Callback$Type extends _$jni.JObjType { - +final class $Callback$Type extends _$jni.JObjType { @_$jni.internal - const $Callback$Type( - - ); + const $Callback$Type(); @_$jni.internal @_$core.override @@ -2143,10 +1172,8 @@ final class $Callback$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Callback fromReference(_$jni.JReference reference) => Callback.fromReference( - - reference - ); + Callback fromReference(_$jni.JReference reference) => + Callback.fromReference(reference); @_$jni.internal @_$core.override @@ -2161,8 +1188,7 @@ final class $Callback$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Callback$Type) && - other is $Callback$Type; + return other.runtimeType == ($Callback$Type) && other is $Callback$Type; } } @@ -2172,31 +1198,21 @@ class ConnectionPool extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal ConnectionPool.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/ConnectionPool'); - /// The type which includes information such as the signature of this class. -static const type = $ConnectionPool$Type(); + /// The type which includes information such as the signature of this class. + static const type = $ConnectionPool$Type(); } -final class $ConnectionPool$Type extends _$jni.JObjType { - +final class $ConnectionPool$Type extends _$jni.JObjType { @_$jni.internal - const $ConnectionPool$Type( - - ); + const $ConnectionPool$Type(); @_$jni.internal @_$core.override @@ -2204,10 +1220,8 @@ final class $ConnectionPool$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - ConnectionPool fromReference(_$jni.JReference reference) => ConnectionPool.fromReference( - - reference - ); + ConnectionPool fromReference(_$jni.JReference reference) => + ConnectionPool.fromReference(reference); @_$jni.internal @_$core.override @@ -2233,46 +1247,21 @@ class Dispatcher extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Dispatcher.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Dispatcher'); - /// The type which includes information such as the signature of this class. -static const type = $Dispatcher$Type(); - static final _id_-deprecated_executorService = _class.instanceMethodId( - r'-deprecated_executorService', - r'()Ljava/util/concurrent/ExecutorService;', - ); - - static final _-deprecated_executorService = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.util.concurrent.ExecutorService -deprecated_executorService()` - /// The returned object must be released after use, by calling the [release] method. - ExecutorService -deprecated_executorService(){ - - return _-deprecated_executorService(reference.pointer, _id_-deprecated_executorService as _$jni.JMethodIDPtr).object(const $ExecutorService$Type()); - } - + /// The type which includes information such as the signature of this class. + static const type = $Dispatcher$Type(); } -final class $Dispatcher$Type extends _$jni.JObjType { - +final class $Dispatcher$Type extends _$jni.JObjType { @_$jni.internal - const $Dispatcher$Type( - - ); + const $Dispatcher$Type(); @_$jni.internal @_$core.override @@ -2280,10 +1269,8 @@ final class $Dispatcher$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Dispatcher fromReference(_$jni.JReference reference) => Dispatcher.fromReference( - - reference - ); + Dispatcher fromReference(_$jni.JReference reference) => + Dispatcher.fromReference(reference); @_$jni.internal @_$core.override @@ -2298,8 +1285,7 @@ final class $Dispatcher$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Dispatcher$Type) && - other is $Dispatcher$Type; + return other.runtimeType == ($Dispatcher$Type) && other is $Dispatcher$Type; } } @@ -2309,36 +1295,42 @@ class ExecutorService extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal ExecutorService.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'java/util/concurrent/ExecutorService'); + static final _class = + _$jni.JClass.forName(r'java/util/concurrent/ExecutorService'); - /// The type which includes information such as the signature of this class. -static const type = $ExecutorService$Type(); + /// The type which includes information such as the signature of this class. + static const type = $ExecutorService$Type(); static final _id_submit = _class.instanceMethodId( r'submit', r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;', ); - static final _submit = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + static final _submit = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.concurrent.Future submit(java.util.concurrent.Callable callable)` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject submit<$T extends _$jni.JObject>(_$jni.JObject callable, {required _$jni.JObjType<$T> T, }){ - - return _submit(reference.pointer, _id_submit as _$jni.JMethodIDPtr, callable.reference.pointer).object(const _$jni.JObjectType()); + _$jni.JObject submit<$T extends _$jni.JObject>( + _$jni.JObject callable, { + required _$jni.JObjType<$T> T, + }) { + return _submit(reference.pointer, _id_submit as _$jni.JMethodIDPtr, + callable.reference.pointer) + .object(const _$jni.JObjectType()); } static final _id_submit$1 = _class.instanceMethodId( @@ -2346,14 +1338,36 @@ static const type = $ExecutorService$Type(); r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;', ); - static final _submit$1 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>(); + static final _submit$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable, T object)` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject submit$1<$T extends _$jni.JObject>(_$jni.JObject runnable, $T object, {_$jni.JObjType<$T>? T, }){ - T ??= _$jni.lowestCommonSuperType([object.$type, ]) as _$jni.JObjType<$T>; - return _submit$1(reference.pointer, _id_submit$1 as _$jni.JMethodIDPtr, runnable.reference.pointer, object.reference.pointer).object(const _$jni.JObjectType()); + _$jni.JObject submit$1<$T extends _$jni.JObject>( + _$jni.JObject runnable, + $T object, { + _$jni.JObjType<$T>? T, + }) { + T ??= _$jni.lowestCommonSuperType([ + object.$type, + ]) as _$jni.JObjType<$T>; + return _submit$1(reference.pointer, _id_submit$1 as _$jni.JMethodIDPtr, + runnable.reference.pointer, object.reference.pointer) + .object(const _$jni.JObjectType()); } static final _id_submit$2 = _class.instanceMethodId( @@ -2361,14 +1375,25 @@ static const type = $ExecutorService$Type(); r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;', ); - static final _submit$2 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + static final _submit$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable)` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject submit$2(_$jni.JObject runnable, ){ - - return _submit$2(reference.pointer, _id_submit$2 as _$jni.JMethodIDPtr, runnable.reference.pointer).object(const _$jni.JObjectType()); + _$jni.JObject submit$2( + _$jni.JObject runnable, + ) { + return _submit$2(reference.pointer, _id_submit$2 as _$jni.JMethodIDPtr, + runnable.reference.pointer) + .object(const _$jni.JObjectType()); } static final _id_invokeAll = _class.instanceMethodId( @@ -2376,14 +1401,26 @@ static const type = $ExecutorService$Type(); r'(Ljava/util/Collection;)Ljava/util/List;', ); - static final _invokeAll = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + static final _invokeAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.List invokeAll(java.util.Collection collection)` /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> invokeAll<$T extends _$jni.JObject>(_$jni.JObject collection, {required _$jni.JObjType<$T> T, }){ - - return _invokeAll(reference.pointer, _id_invokeAll as _$jni.JMethodIDPtr, collection.reference.pointer).object(const _$jni.JListType(_$jni.JObjectType())); + _$jni.JList<_$jni.JObject> invokeAll<$T extends _$jni.JObject>( + _$jni.JObject collection, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAll(reference.pointer, _id_invokeAll as _$jni.JMethodIDPtr, + collection.reference.pointer) + .object(const _$jni.JListType(_$jni.JObjectType())); } static final _id_invokeAll$1 = _class.instanceMethodId( @@ -2391,14 +1428,40 @@ static const type = $ExecutorService$Type(); r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;', ); - static final _invokeAll$1 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, _$jni.Pointer<_$jni.Void>)>(); + static final _invokeAll$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract java.util.List invokeAll(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> invokeAll$1<$T extends _$jni.JObject>(_$jni.JObject collection, int j, TimeUnit timeUnit, {required _$jni.JObjType<$T> T, }){ - - return _invokeAll$1(reference.pointer, _id_invokeAll$1 as _$jni.JMethodIDPtr, collection.reference.pointer, j, timeUnit.reference.pointer).object(const _$jni.JListType(_$jni.JObjectType())); + _$jni.JList<_$jni.JObject> invokeAll$1<$T extends _$jni.JObject>( + _$jni.JObject collection, + int j, + TimeUnit timeUnit, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAll$1( + reference.pointer, + _id_invokeAll$1 as _$jni.JMethodIDPtr, + collection.reference.pointer, + j, + timeUnit.reference.pointer) + .object(const _$jni.JListType(_$jni.JObjectType())); } static final _id_invokeAny = _class.instanceMethodId( @@ -2406,14 +1469,26 @@ static const type = $ExecutorService$Type(); r'(Ljava/util/Collection;)Ljava/lang/Object;', ); - static final _invokeAny = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + static final _invokeAny = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract T invokeAny(java.util.Collection collection)` /// The returned object must be released after use, by calling the [release] method. - $T invokeAny<$T extends _$jni.JObject>(_$jni.JObject collection, {required _$jni.JObjType<$T> T, }){ - - return _invokeAny(reference.pointer, _id_invokeAny as _$jni.JMethodIDPtr, collection.reference.pointer).object(T); + $T invokeAny<$T extends _$jni.JObject>( + _$jni.JObject collection, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAny(reference.pointer, _id_invokeAny as _$jni.JMethodIDPtr, + collection.reference.pointer) + .object(T); } static final _id_invokeAny$1 = _class.instanceMethodId( @@ -2421,14 +1496,40 @@ static const type = $ExecutorService$Type(); r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;', ); - static final _invokeAny$1 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, _$jni.Pointer<_$jni.Void>)>(); + static final _invokeAny$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); + /// from: `public abstract T invokeAny(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` /// The returned object must be released after use, by calling the [release] method. - $T invokeAny$1<$T extends _$jni.JObject>(_$jni.JObject collection, int j, TimeUnit timeUnit, {required _$jni.JObjType<$T> T, }){ - - return _invokeAny$1(reference.pointer, _id_invokeAny$1 as _$jni.JMethodIDPtr, collection.reference.pointer, j, timeUnit.reference.pointer).object(T); + $T invokeAny$1<$T extends _$jni.JObject>( + _$jni.JObject collection, + int j, + TimeUnit timeUnit, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAny$1( + reference.pointer, + _id_invokeAny$1 as _$jni.JMethodIDPtr, + collection.reference.pointer, + j, + timeUnit.reference.pointer) + .object(T); } /// Maps a specific port to the implemented interface. @@ -2461,53 +1562,82 @@ static const type = $ExecutorService$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == r'submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit( -$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); - } - if ($d == r'submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit$1( -$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), -$a[1].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); - } - if ($d == r'submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit$2( -$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); - } - if ($d == r'invokeAll(Ljava/util/Collection;)Ljava/util/List;') { - final $r = _$impls[$p]!.invokeAll( -$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); - } - if ($d == r'invokeAll(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;') { - final $r = _$impls[$p]!.invokeAll$1( -$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), -$a[1].as(const _$jni.JLongType(), releaseOriginal: true).longValue(releaseOriginal: true), -$a[2].as(const $TimeUnit$Type(), releaseOriginal: true), - ); - return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); - } - if ($d == r'invokeAny(Ljava/util/Collection;)Ljava/lang/Object;') { - final $r = _$impls[$p]!.invokeAny( -$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); - } - if ($d == r'invokeAny(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;') { - final $r = _$impls[$p]!.invokeAny$1( -$a[0].as(const _$jni.JObjectType(), releaseOriginal: true), -$a[1].as(const _$jni.JLongType(), releaseOriginal: true).longValue(releaseOriginal: true), -$a[2].as(const $TimeUnit$Type(), releaseOriginal: true), - ); - return ($r as _$jni.JObject).as(const _$jni.JObjectType()).reference.toPointer(); - } + if ($d == + r'submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == + r'submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$1( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + $a[1].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$2( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'invokeAll(Ljava/util/Collection;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == + r'invokeAll(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll$1( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + $a[1] + .as(const _$jni.JLongType(), releaseOriginal: true) + .longValue(releaseOriginal: true), + $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'invokeAny(Ljava/util/Collection;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == + r'invokeAny(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny$1( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + $a[1] + .as(const _$jni.JLongType(), releaseOriginal: true) + .longValue(releaseOriginal: true), + $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } @@ -2533,10 +1663,9 @@ $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), r'java.util.concurrent.ExecutorService', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -2546,76 +1675,109 @@ $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), final $i = _$jni.JImplementer(); implementIn($i, $impl); return ExecutorService.fromReference( - $i.implementReference(), ); } - } +} + abstract base mixin class $ExecutorService { - factory $ExecutorService( - {required _$jni.JObject Function(_$jni.JObject callable) submit, - required _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) submit$1, + factory $ExecutorService({ + required _$jni.JObject Function(_$jni.JObject callable) submit, + required _$jni.JObject Function( + _$jni.JObject runnable, _$jni.JObject object) + submit$1, required _$jni.JObject Function(_$jni.JObject runnable) submit$2, - required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) invokeAll, - required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAll$1, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) + invokeAll, + required _$jni.JList<_$jni.JObject> Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAll$1, required _$jni.JObject Function(_$jni.JObject collection) invokeAny, - required _$jni.JObject Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAny$1,} - ) = _$ExecutorService; - - + required _$jni.JObject Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAny$1, + }) = _$ExecutorService; _$jni.JObject submit(_$jni.JObject callable); _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object); _$jni.JObject submit$2(_$jni.JObject runnable); _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection); - _$jni.JList<_$jni.JObject> invokeAll$1(_$jni.JObject collection, int j, TimeUnit timeUnit); + _$jni.JList<_$jni.JObject> invokeAll$1( + _$jni.JObject collection, int j, TimeUnit timeUnit); _$jni.JObject invokeAny(_$jni.JObject collection); _$jni.JObject invokeAny$1(_$jni.JObject collection, int j, TimeUnit timeUnit); } final class _$ExecutorService with $ExecutorService { - _$ExecutorService( - {required _$jni.JObject Function(_$jni.JObject callable) submit, - required _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) submit$1, + _$ExecutorService({ + required _$jni.JObject Function(_$jni.JObject callable) submit, + required _$jni.JObject Function( + _$jni.JObject runnable, _$jni.JObject object) + submit$1, required _$jni.JObject Function(_$jni.JObject runnable) submit$2, - required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) invokeAll, - required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAll$1, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) + invokeAll, + required _$jni.JList<_$jni.JObject> Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAll$1, required _$jni.JObject Function(_$jni.JObject collection) invokeAny, - required _$jni.JObject Function(_$jni.JObject collection, int j, TimeUnit timeUnit) invokeAny$1,} - ) : _submit = submit, _submit$1 = submit$1, _submit$2 = submit$2, _invokeAll = invokeAll, _invokeAll$1 = invokeAll$1, _invokeAny = invokeAny, _invokeAny$1 = invokeAny$1; - - + required _$jni.JObject Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAny$1, + }) : _submit = submit, + _submit$1 = submit$1, + _submit$2 = submit$2, + _invokeAll = invokeAll, + _invokeAll$1 = invokeAll$1, + _invokeAny = invokeAny, + _invokeAny$1 = invokeAny$1; final _$jni.JObject Function(_$jni.JObject callable) _submit; - final _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) _submit$1; + final _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) + _submit$1; final _$jni.JObject Function(_$jni.JObject runnable) _submit$2; - final _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) _invokeAll; - final _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAll$1; + final _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) + _invokeAll; + final _$jni.JList<_$jni.JObject> Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAll$1; final _$jni.JObject Function(_$jni.JObject collection) _invokeAny; - final _$jni.JObject Function(_$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAny$1; + final _$jni.JObject Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAny$1; _$jni.JObject submit(_$jni.JObject callable) { return _submit(callable); - } _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object) { + } + + _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object) { return _submit$1(runnable, object); - } _$jni.JObject submit$2(_$jni.JObject runnable) { + } + + _$jni.JObject submit$2(_$jni.JObject runnable) { return _submit$2(runnable); - } _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection) { + } + + _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection) { return _invokeAll(collection); - } _$jni.JList<_$jni.JObject> invokeAll$1(_$jni.JObject collection, int j, TimeUnit timeUnit) { + } + + _$jni.JList<_$jni.JObject> invokeAll$1( + _$jni.JObject collection, int j, TimeUnit timeUnit) { return _invokeAll$1(collection, j, timeUnit); - } _$jni.JObject invokeAny(_$jni.JObject collection) { + } + + _$jni.JObject invokeAny(_$jni.JObject collection) { return _invokeAny(collection); - } _$jni.JObject invokeAny$1(_$jni.JObject collection, int j, TimeUnit timeUnit) { + } + + _$jni.JObject invokeAny$1( + _$jni.JObject collection, int j, TimeUnit timeUnit) { return _invokeAny$1(collection, j, timeUnit); - }} -final class $ExecutorService$Type extends _$jni.JObjType { - + } +} +final class $ExecutorService$Type extends _$jni.JObjType { @_$jni.internal - const $ExecutorService$Type( - - ); + const $ExecutorService$Type(); @_$jni.internal @_$core.override @@ -2623,10 +1785,8 @@ final class $ExecutorService$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - ExecutorService fromReference(_$jni.JReference reference) => ExecutorService.fromReference( - - reference - ); + ExecutorService fromReference(_$jni.JReference reference) => + ExecutorService.fromReference(reference); @_$jni.internal @_$core.override @@ -2652,31 +1812,21 @@ class Cache_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Cache_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $Cache_Companion$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Cache_Companion$Type(); } -final class $Cache_Companion$Type extends _$jni.JObjType { - +final class $Cache_Companion$Type extends _$jni.JObjType { @_$jni.internal - const $Cache_Companion$Type( - - ); + const $Cache_Companion$Type(); @_$jni.internal @_$core.override @@ -2684,10 +1834,8 @@ final class $Cache_Companion$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Cache_Companion fromReference(_$jni.JReference reference) => Cache_Companion.fromReference( - - reference - ); + Cache_Companion fromReference(_$jni.JReference reference) => + Cache_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -2713,31 +1861,22 @@ class Cache_Entry_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Cache_Entry_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Entry$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $Cache_Entry_Companion$Type(); + /// The type which includes information such as the signature of this class. + static const type = $Cache_Entry_Companion$Type(); } -final class $Cache_Entry_Companion$Type extends _$jni.JObjType { - +final class $Cache_Entry_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $Cache_Entry_Companion$Type( - - ); + const $Cache_Entry_Companion$Type(); @_$jni.internal @_$core.override @@ -2745,10 +1884,8 @@ final class $Cache_Entry_Companion$Type extends _$jni.JObjType Cache_Entry_Companion.fromReference( - - reference - ); + Cache_Entry_Companion fromReference(_$jni.JReference reference) => + Cache_Entry_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -2774,55 +1911,30 @@ class Cache extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal Cache.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/Cache'); - /// The type which includes information such as the signature of this class. -static const type = $Cache$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lokhttp3/Cache$Companion;', - ); - /// from: `static public final okhttp3.Cache$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. -static Cache_Companion get Companion => _id_Companion.get(_class, const $Cache_Companion$Type()); - - static final _id_-deprecated_directory = _class.instanceMethodId( - r'-deprecated_directory', - r'()Ljava/io/File;', + /// The type which includes information such as the signature of this class. + static const type = $Cache$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/Cache$Companion;', ); - static final _-deprecated_directory = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final java.io.File -deprecated_directory()` + /// from: `static public final okhttp3.Cache$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject -deprecated_directory(){ - - return _-deprecated_directory(reference.pointer, _id_-deprecated_directory as _$jni.JMethodIDPtr).object(const _$jni.JObjectType()); - } - + static Cache_Companion get Companion => + _id_Companion.get(_class, const $Cache_Companion$Type()); } -final class $Cache$Type extends _$jni.JObjType { - +final class $Cache$Type extends _$jni.JObjType { @_$jni.internal - const $Cache$Type( - - ); + const $Cache$Type(); @_$jni.internal @_$core.override @@ -2830,10 +1942,8 @@ final class $Cache$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - Cache fromReference(_$jni.JReference reference) => Cache.fromReference( - - reference - ); + Cache fromReference(_$jni.JReference reference) => + Cache.fromReference(reference); @_$jni.internal @_$core.override @@ -2848,8 +1958,7 @@ final class $Cache$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Cache$Type) && - other is $Cache$Type; + return other.runtimeType == ($Cache$Type) && other is $Cache$Type; } } @@ -2859,23 +1968,18 @@ class RedirectReceivedCallback extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal RedirectReceivedCallback.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); + + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); + /// The type which includes information such as the signature of this class. + static const type = $RedirectReceivedCallback$Type(); - /// The type which includes information such as the signature of this class. -static const type = $RedirectReceivedCallback$Type(); /// Maps a specific port to the implemented interface. static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( @@ -2906,7 +2010,7 @@ static const type = $RedirectReceivedCallback$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -2931,10 +2035,9 @@ static const type = $RedirectReceivedCallback$Type(); r'com.example.ok_http.RedirectReceivedCallback', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -2944,36 +2047,23 @@ static const type = $RedirectReceivedCallback$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return RedirectReceivedCallback.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $RedirectReceivedCallback { - factory $RedirectReceivedCallback( - - ) = _$RedirectReceivedCallback; - - +} +abstract base mixin class $RedirectReceivedCallback { + factory $RedirectReceivedCallback() = _$RedirectReceivedCallback; } final class _$RedirectReceivedCallback with $RedirectReceivedCallback { - _$RedirectReceivedCallback( - - ); - - - - + _$RedirectReceivedCallback(); } -final class $RedirectReceivedCallback$Type extends _$jni.JObjType { - +final class $RedirectReceivedCallback$Type + extends _$jni.JObjType { @_$jni.internal - const $RedirectReceivedCallback$Type( - - ); + const $RedirectReceivedCallback$Type(); @_$jni.internal @_$core.override @@ -2981,10 +2071,8 @@ final class $RedirectReceivedCallback$Type extends _$jni.JObjType RedirectReceivedCallback.fromReference( - - reference - ); + RedirectReceivedCallback fromReference(_$jni.JReference reference) => + RedirectReceivedCallback.fromReference(reference); @_$jni.internal @_$core.override @@ -3010,42 +2098,33 @@ class RedirectInterceptor_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal RedirectInterceptor_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor$Companion'); + static final _class = _$jni.JClass.forName( + r'com/example/ok_http/RedirectInterceptor$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $RedirectInterceptor_Companion$Type(); + /// The type which includes information such as the signature of this class. + static const type = $RedirectInterceptor_Companion$Type(); } -final class $RedirectInterceptor_Companion$Type extends _$jni.JObjType { - +final class $RedirectInterceptor_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $RedirectInterceptor_Companion$Type( - - ); + const $RedirectInterceptor_Companion$Type(); @_$jni.internal @_$core.override - String get signature => r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; + String get signature => + r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; @_$jni.internal @_$core.override - RedirectInterceptor_Companion fromReference(_$jni.JReference reference) => RedirectInterceptor_Companion.fromReference( - - reference - ); + RedirectInterceptor_Companion fromReference(_$jni.JReference reference) => + RedirectInterceptor_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -3071,40 +2150,32 @@ class RedirectInterceptor extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal RedirectInterceptor.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); + + /// The type which includes information such as the signature of this class. + static const type = $RedirectInterceptor$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lcom/example/ok_http/RedirectInterceptor$Companion;', + ); - /// The type which includes information such as the signature of this class. -static const type = $RedirectInterceptor$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lcom/example/ok_http/RedirectInterceptor$Companion;', - ); /// from: `static public final com.example.ok_http.RedirectInterceptor$Companion Companion` /// The returned object must be released after use, by calling the [release] method. -static RedirectInterceptor_Companion get Companion => _id_Companion.get(_class, const $RedirectInterceptor_Companion$Type()); - + static RedirectInterceptor_Companion get Companion => + _id_Companion.get(_class, const $RedirectInterceptor_Companion$Type()); } -final class $RedirectInterceptor$Type extends _$jni.JObjType { - +final class $RedirectInterceptor$Type + extends _$jni.JObjType { @_$jni.internal - const $RedirectInterceptor$Type( - - ); + const $RedirectInterceptor$Type(); @_$jni.internal @_$core.override @@ -3112,10 +2183,8 @@ final class $RedirectInterceptor$Type extends _$jni.JObjType RedirectInterceptor.fromReference( - - reference - ); + RedirectInterceptor fromReference(_$jni.JReference reference) => + RedirectInterceptor.fromReference(reference); @_$jni.internal @_$core.override @@ -3141,31 +2210,23 @@ class AsyncInputStreamReader extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal AsyncInputStreamReader.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); - /// The type which includes information such as the signature of this class. -static const type = $AsyncInputStreamReader$Type(); + /// The type which includes information such as the signature of this class. + static const type = $AsyncInputStreamReader$Type(); } -final class $AsyncInputStreamReader$Type extends _$jni.JObjType { - +final class $AsyncInputStreamReader$Type + extends _$jni.JObjType { @_$jni.internal - const $AsyncInputStreamReader$Type( - - ); + const $AsyncInputStreamReader$Type(); @_$jni.internal @_$core.override @@ -3173,10 +2234,8 @@ final class $AsyncInputStreamReader$Type extends _$jni.JObjType AsyncInputStreamReader.fromReference( - - reference - ); + AsyncInputStreamReader fromReference(_$jni.JReference reference) => + AsyncInputStreamReader.fromReference(reference); @_$jni.internal @_$core.override @@ -3202,23 +2261,18 @@ class DataCallback extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal DataCallback.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); + + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/DataCallback'); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/DataCallback'); + /// The type which includes information such as the signature of this class. + static const type = $DataCallback$Type(); - /// The type which includes information such as the signature of this class. -static const type = $DataCallback$Type(); /// Maps a specific port to the implemented interface. static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( @@ -3249,7 +2303,7 @@ static const type = $DataCallback$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -3274,10 +2328,9 @@ static const type = $DataCallback$Type(); r'com.example.ok_http.DataCallback', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -3287,36 +2340,22 @@ static const type = $DataCallback$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return DataCallback.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $DataCallback { - factory $DataCallback( - - ) = _$DataCallback; - - +} +abstract base mixin class $DataCallback { + factory $DataCallback() = _$DataCallback; } final class _$DataCallback with $DataCallback { - _$DataCallback( - - ); - - - - + _$DataCallback(); } -final class $DataCallback$Type extends _$jni.JObjType { - +final class $DataCallback$Type extends _$jni.JObjType { @_$jni.internal - const $DataCallback$Type( - - ); + const $DataCallback$Type(); @_$jni.internal @_$core.override @@ -3324,10 +2363,8 @@ final class $DataCallback$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - DataCallback fromReference(_$jni.JReference reference) => DataCallback.fromReference( - - reference - ); + DataCallback fromReference(_$jni.JReference reference) => + DataCallback.fromReference(reference); @_$jni.internal @_$core.override @@ -3353,23 +2390,17 @@ class WebSocket_Factory extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal WebSocket_Factory.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket$Factory'); - /// The type which includes information such as the signature of this class. -static const type = $WebSocket_Factory$Type(); + /// The type which includes information such as the signature of this class. + static const type = $WebSocket_Factory$Type(); + /// Maps a specific port to the implemented interface. static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( @@ -3400,7 +2431,7 @@ static const type = $WebSocket_Factory$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -3425,10 +2456,9 @@ static const type = $WebSocket_Factory$Type(); r'okhttp3.WebSocket$Factory', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -3438,36 +2468,22 @@ static const type = $WebSocket_Factory$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return WebSocket_Factory.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $WebSocket_Factory { - factory $WebSocket_Factory( - - ) = _$WebSocket_Factory; - - +} +abstract base mixin class $WebSocket_Factory { + factory $WebSocket_Factory() = _$WebSocket_Factory; } final class _$WebSocket_Factory with $WebSocket_Factory { - _$WebSocket_Factory( - - ); - - - - + _$WebSocket_Factory(); } -final class $WebSocket_Factory$Type extends _$jni.JObjType { - +final class $WebSocket_Factory$Type extends _$jni.JObjType { @_$jni.internal - const $WebSocket_Factory$Type( - - ); + const $WebSocket_Factory$Type(); @_$jni.internal @_$core.override @@ -3475,10 +2491,8 @@ final class $WebSocket_Factory$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - WebSocket_Factory fromReference(_$jni.JReference reference) => WebSocket_Factory.fromReference( - - reference - ); + WebSocket_Factory fromReference(_$jni.JReference reference) => + WebSocket_Factory.fromReference(reference); @_$jni.internal @_$core.override @@ -3504,23 +2518,17 @@ class WebSocket extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal WebSocket.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket'); - /// The type which includes information such as the signature of this class. -static const type = $WebSocket$Type(); + /// The type which includes information such as the signature of this class. + static const type = $WebSocket$Type(); + /// Maps a specific port to the implemented interface. static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( @@ -3551,7 +2559,7 @@ static const type = $WebSocket$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -3576,10 +2584,9 @@ static const type = $WebSocket$Type(); r'okhttp3.WebSocket', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -3589,36 +2596,22 @@ static const type = $WebSocket$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return WebSocket.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $WebSocket { - factory $WebSocket( - - ) = _$WebSocket; - - +} +abstract base mixin class $WebSocket { + factory $WebSocket() = _$WebSocket; } final class _$WebSocket with $WebSocket { - _$WebSocket( - - ); - - - - + _$WebSocket(); } -final class $WebSocket$Type extends _$jni.JObjType { - +final class $WebSocket$Type extends _$jni.JObjType { @_$jni.internal - const $WebSocket$Type( - - ); + const $WebSocket$Type(); @_$jni.internal @_$core.override @@ -3626,10 +2619,8 @@ final class $WebSocket$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - WebSocket fromReference(_$jni.JReference reference) => WebSocket.fromReference( - - reference - ); + WebSocket fromReference(_$jni.JReference reference) => + WebSocket.fromReference(reference); @_$jni.internal @_$core.override @@ -3644,8 +2635,7 @@ final class $WebSocket$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($WebSocket$Type) && - other is $WebSocket$Type; + return other.runtimeType == ($WebSocket$Type) && other is $WebSocket$Type; } } @@ -3655,25 +2645,21 @@ class WebSocketListenerProxy_WebSocketListener extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal WebSocketListenerProxy_WebSocketListener.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); + static final _class = _$jni.JClass.forName( + r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); + + /// The type which includes information such as the signature of this class. + static const type = $WebSocketListenerProxy_WebSocketListener$Type(); - /// The type which includes information such as the signature of this class. -static const type = $WebSocketListenerProxy_WebSocketListener$Type(); /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; + static final _$core.Map + _$impls = {}; static _$jni.JObjectPtr _$invoke( int port, _$jni.JObjectPtr descriptor, @@ -3702,7 +2688,7 @@ static const type = $WebSocketListenerProxy_WebSocketListener$Type(); try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - } catch (e) { + } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } return _$jni.nullptr; @@ -3727,10 +2713,9 @@ static const type = $WebSocketListenerProxy_WebSocketListener$Type(); r'com.example.ok_http.WebSocketListenerProxy$WebSocketListener', $p, _$invokePointer, - [ - ], + [], ); - final $a = $p.sendPort.nativePort; + final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } @@ -3740,47 +2725,36 @@ static const type = $WebSocketListenerProxy_WebSocketListener$Type(); final $i = _$jni.JImplementer(); implementIn($i, $impl); return WebSocketListenerProxy_WebSocketListener.fromReference( - $i.implementReference(), ); } - } -abstract base mixin class $WebSocketListenerProxy_WebSocketListener { - factory $WebSocketListenerProxy_WebSocketListener( - - ) = _$WebSocketListenerProxy_WebSocketListener; - - - } -final class _$WebSocketListenerProxy_WebSocketListener with $WebSocketListenerProxy_WebSocketListener { - _$WebSocketListenerProxy_WebSocketListener( - - ); - - - +abstract base mixin class $WebSocketListenerProxy_WebSocketListener { + factory $WebSocketListenerProxy_WebSocketListener() = + _$WebSocketListenerProxy_WebSocketListener; +} +final class _$WebSocketListenerProxy_WebSocketListener + with $WebSocketListenerProxy_WebSocketListener { + _$WebSocketListenerProxy_WebSocketListener(); } -final class $WebSocketListenerProxy_WebSocketListener$Type extends _$jni.JObjType { - +final class $WebSocketListenerProxy_WebSocketListener$Type + extends _$jni.JObjType { @_$jni.internal - const $WebSocketListenerProxy_WebSocketListener$Type( - - ); + const $WebSocketListenerProxy_WebSocketListener$Type(); @_$jni.internal @_$core.override - String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; + String get signature => + r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; @_$jni.internal @_$core.override - WebSocketListenerProxy_WebSocketListener fromReference(_$jni.JReference reference) => WebSocketListenerProxy_WebSocketListener.fromReference( - - reference - ); + WebSocketListenerProxy_WebSocketListener fromReference( + _$jni.JReference reference) => + WebSocketListenerProxy_WebSocketListener.fromReference(reference); @_$jni.internal @_$core.override @@ -3795,7 +2769,8 @@ final class $WebSocketListenerProxy_WebSocketListener$Type extends _$jni.JObjTyp @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($WebSocketListenerProxy_WebSocketListener$Type) && + return other.runtimeType == + ($WebSocketListenerProxy_WebSocketListener$Type) && other is $WebSocketListenerProxy_WebSocketListener$Type; } } @@ -3806,31 +2781,23 @@ class WebSocketListenerProxy extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal WebSocketListenerProxy.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); - /// The type which includes information such as the signature of this class. -static const type = $WebSocketListenerProxy$Type(); + /// The type which includes information such as the signature of this class. + static const type = $WebSocketListenerProxy$Type(); } -final class $WebSocketListenerProxy$Type extends _$jni.JObjType { - +final class $WebSocketListenerProxy$Type + extends _$jni.JObjType { @_$jni.internal - const $WebSocketListenerProxy$Type( - - ); + const $WebSocketListenerProxy$Type(); @_$jni.internal @_$core.override @@ -3838,10 +2805,8 @@ final class $WebSocketListenerProxy$Type extends _$jni.JObjType WebSocketListenerProxy.fromReference( - - reference - ); + WebSocketListenerProxy fromReference(_$jni.JReference reference) => + WebSocketListenerProxy.fromReference(reference); @_$jni.internal @_$core.override @@ -3867,136 +2832,22 @@ class ByteString_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal ByteString_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okio/ByteString$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $ByteString_Companion$Type(); - static final _id_-deprecated_decodeBase64 = _class.instanceMethodId( - r'-deprecated_decodeBase64', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _-deprecated_decodeBase64 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okio.ByteString -deprecated_decodeBase64(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - ByteString -deprecated_decodeBase64(_$jni.JString string, ){ - - return _-deprecated_decodeBase64(reference.pointer, _id_-deprecated_decodeBase64 as _$jni.JMethodIDPtr, string.reference.pointer).object(const $ByteString$Type()); - } - - static final _id_-deprecated_decodeHex = _class.instanceMethodId( - r'-deprecated_decodeHex', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _-deprecated_decodeHex = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okio.ByteString -deprecated_decodeHex(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - ByteString -deprecated_decodeHex(_$jni.JString string, ){ - - return _-deprecated_decodeHex(reference.pointer, _id_-deprecated_decodeHex as _$jni.JMethodIDPtr, string.reference.pointer).object(const $ByteString$Type()); - } - - static final _id_-deprecated_encodeString = _class.instanceMethodId( - r'-deprecated_encodeString', - r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', - ); - - static final _-deprecated_encodeString = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okio.ByteString -deprecated_encodeString(java.lang.String string, java.nio.charset.Charset charset)` - /// The returned object must be released after use, by calling the [release] method. - ByteString -deprecated_encodeString(_$jni.JString string, _$jni.JObject charset, ){ - - return _-deprecated_encodeString(reference.pointer, _id_-deprecated_encodeString as _$jni.JMethodIDPtr, string.reference.pointer, charset.reference.pointer).object(const $ByteString$Type()); - } - - static final _id_-deprecated_encodeUtf8 = _class.instanceMethodId( - r'-deprecated_encodeUtf8', - r'(Ljava/lang/String;)Lokio/ByteString;', - ); - - static final _-deprecated_encodeUtf8 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okio.ByteString -deprecated_encodeUtf8(java.lang.String string)` - /// The returned object must be released after use, by calling the [release] method. - ByteString -deprecated_encodeUtf8(_$jni.JString string, ){ - - return _-deprecated_encodeUtf8(reference.pointer, _id_-deprecated_encodeUtf8 as _$jni.JMethodIDPtr, string.reference.pointer).object(const $ByteString$Type()); - } - - static final _id_-deprecated_of = _class.instanceMethodId( - r'-deprecated_of', - r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', - ); - - static final _-deprecated_of = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public final okio.ByteString -deprecated_of(java.nio.ByteBuffer byteBuffer)` - /// The returned object must be released after use, by calling the [release] method. - ByteString -deprecated_of(_$jni.JByteBuffer byteBuffer, ){ - - return _-deprecated_of(reference.pointer, _id_-deprecated_of as _$jni.JMethodIDPtr, byteBuffer.reference.pointer).object(const $ByteString$Type()); - } - - static final _id_-deprecated_of$1 = _class.instanceMethodId( - r'-deprecated_of', - r'([BII)Lokio/ByteString;', - ); - - static final _-deprecated_of$1 = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32, _$jni.Int32)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); - /// from: `public final okio.ByteString -deprecated_of(byte[] bs, int i, int i1)` - /// The returned object must be released after use, by calling the [release] method. - ByteString -deprecated_of$1(_$jni.JArray<_$jni.jbyte> bs, int i, int i1, ){ - - return _-deprecated_of$1(reference.pointer, _id_-deprecated_of$1 as _$jni.JMethodIDPtr, bs.reference.pointer, i, i1).object(const $ByteString$Type()); - } - - static final _id_-deprecated_read = _class.instanceMethodId( - r'-deprecated_read', - r'(Ljava/io/InputStream;I)Lokio/ByteString;', - ); - - static final _-deprecated_read = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>('globalEnv_CallObjectMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); - /// from: `public final okio.ByteString -deprecated_read(java.io.InputStream inputStream, int i)` - /// The returned object must be released after use, by calling the [release] method. - ByteString -deprecated_read(_$jni.JObject inputStream, int i, ){ - - return _-deprecated_read(reference.pointer, _id_-deprecated_read as _$jni.JMethodIDPtr, inputStream.reference.pointer, i).object(const $ByteString$Type()); - } - + /// The type which includes information such as the signature of this class. + static const type = $ByteString_Companion$Type(); } -final class $ByteString_Companion$Type extends _$jni.JObjType { - +final class $ByteString_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $ByteString_Companion$Type( - - ); + const $ByteString_Companion$Type(); @_$jni.internal @_$core.override @@ -4004,10 +2855,8 @@ final class $ByteString_Companion$Type extends _$jni.JObjType ByteString_Companion.fromReference( - - reference - ); + ByteString_Companion fromReference(_$jni.JReference reference) => + ByteString_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -4033,77 +2882,40 @@ class ByteString extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal ByteString.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'okio/ByteString'); - /// The type which includes information such as the signature of this class. -static const type = $ByteString$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lokio/ByteString$Companion;', - ); - /// from: `static public final okio.ByteString$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. -static ByteString_Companion get Companion => _id_Companion.get(_class, const $ByteString_Companion$Type()); - - static final _id_EMPTY = - _class.staticFieldId( - r'EMPTY', - r'Lokio/ByteString;', - ); - /// from: `static public final okio.ByteString EMPTY` - /// The returned object must be released after use, by calling the [release] method. -static ByteString get EMPTY => _id_EMPTY.get(_class, const $ByteString$Type()); - - static final _id_-deprecated_getByte = _class.instanceMethodId( - r'-deprecated_getByte', - r'(I)B', + /// The type which includes information such as the signature of this class. + static const type = $ByteString$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokio/ByteString$Companion;', ); - static final _-deprecated_getByte = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallByteMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); - /// from: `public final byte -deprecated_getByte(int i)` - int -deprecated_getByte(int i, ){ - - return _-deprecated_getByte(reference.pointer, _id_-deprecated_getByte as _$jni.JMethodIDPtr, i).byte; - } + /// from: `static public final okio.ByteString$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static ByteString_Companion get Companion => + _id_Companion.get(_class, const $ByteString_Companion$Type()); - static final _id_-deprecated_size = _class.instanceMethodId( - r'-deprecated_size', - r'()I', + static final _id_EMPTY = _class.staticFieldId( + r'EMPTY', + r'Lokio/ByteString;', ); - static final _-deprecated_size = _$jni.ProtectedJniExtensions - .lookup<_$jni.NativeFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>>('globalEnv_CallIntMethod') - .asFunction<_$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, )>(); - /// from: `public final int -deprecated_size()` - int -deprecated_size(){ - - return _-deprecated_size(reference.pointer, _id_-deprecated_size as _$jni.JMethodIDPtr).integer; - } - + /// from: `static public final okio.ByteString EMPTY` + /// The returned object must be released after use, by calling the [release] method. + static ByteString get EMPTY => + _id_EMPTY.get(_class, const $ByteString$Type()); } -final class $ByteString$Type extends _$jni.JObjType { - +final class $ByteString$Type extends _$jni.JObjType { @_$jni.internal - const $ByteString$Type( - - ); + const $ByteString$Type(); @_$jni.internal @_$core.override @@ -4111,10 +2923,8 @@ final class $ByteString$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - ByteString fromReference(_$jni.JReference reference) => ByteString.fromReference( - - reference - ); + ByteString fromReference(_$jni.JReference reference) => + ByteString.fromReference(reference); @_$jni.internal @_$core.override @@ -4129,8 +2939,7 @@ final class $ByteString$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ByteString$Type) && - other is $ByteString$Type; + return other.runtimeType == ($ByteString$Type) && other is $ByteString$Type; } } @@ -4140,42 +2949,33 @@ class WebSocketInterceptor_Companion extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal WebSocketInterceptor_Companion.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketInterceptor$Companion'); + static final _class = _$jni.JClass.forName( + r'com/example/ok_http/WebSocketInterceptor$Companion'); - /// The type which includes information such as the signature of this class. -static const type = $WebSocketInterceptor_Companion$Type(); + /// The type which includes information such as the signature of this class. + static const type = $WebSocketInterceptor_Companion$Type(); } -final class $WebSocketInterceptor_Companion$Type extends _$jni.JObjType { - +final class $WebSocketInterceptor_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $WebSocketInterceptor_Companion$Type( - - ); + const $WebSocketInterceptor_Companion$Type(); @_$jni.internal @_$core.override - String get signature => r'Lcom/example/ok_http/WebSocketInterceptor$Companion;'; + String get signature => + r'Lcom/example/ok_http/WebSocketInterceptor$Companion;'; @_$jni.internal @_$core.override - WebSocketInterceptor_Companion fromReference(_$jni.JReference reference) => WebSocketInterceptor_Companion.fromReference( - - reference - ); + WebSocketInterceptor_Companion fromReference(_$jni.JReference reference) => + WebSocketInterceptor_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -4201,40 +3001,32 @@ class WebSocketInterceptor extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal WebSocketInterceptor.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); + + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/WebSocketInterceptor'); - static final _class = _$jni.JClass.forName(r'com/example/ok_http/WebSocketInterceptor'); + /// The type which includes information such as the signature of this class. + static const type = $WebSocketInterceptor$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lcom/example/ok_http/WebSocketInterceptor$Companion;', + ); - /// The type which includes information such as the signature of this class. -static const type = $WebSocketInterceptor$Type(); - static final _id_Companion = - _class.staticFieldId( - r'Companion', - r'Lcom/example/ok_http/WebSocketInterceptor$Companion;', - ); /// from: `static public final com.example.ok_http.WebSocketInterceptor$Companion Companion` /// The returned object must be released after use, by calling the [release] method. -static WebSocketInterceptor_Companion get Companion => _id_Companion.get(_class, const $WebSocketInterceptor_Companion$Type()); - + static WebSocketInterceptor_Companion get Companion => + _id_Companion.get(_class, const $WebSocketInterceptor_Companion$Type()); } -final class $WebSocketInterceptor$Type extends _$jni.JObjType { - +final class $WebSocketInterceptor$Type + extends _$jni.JObjType { @_$jni.internal - const $WebSocketInterceptor$Type( - - ); + const $WebSocketInterceptor$Type(); @_$jni.internal @_$core.override @@ -4242,10 +3034,8 @@ final class $WebSocketInterceptor$Type extends _$jni.JObjType WebSocketInterceptor.fromReference( - - reference - ); + WebSocketInterceptor fromReference(_$jni.JReference reference) => + WebSocketInterceptor.fromReference(reference); @_$jni.internal @_$core.override @@ -4271,94 +3061,88 @@ class TimeUnit extends _$jni.JObject { @_$core.override final _$jni.JObjType $type; - - @_$jni.internal TimeUnit.fromReference( - _$jni.JReference reference, - ) : - $type = type, - super.fromReference( - - reference - ); + ) : $type = type, + super.fromReference(reference); static final _class = _$jni.JClass.forName(r'java/util/concurrent/TimeUnit'); - /// The type which includes information such as the signature of this class. -static const type = $TimeUnit$Type(); - static final _id_NANOSECONDS = - _class.staticFieldId( - r'NANOSECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); + /// The type which includes information such as the signature of this class. + static const type = $TimeUnit$Type(); + static final _id_NANOSECONDS = _class.staticFieldId( + r'NANOSECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); + /// from: `static public final java.util.concurrent.TimeUnit NANOSECONDS` /// The returned object must be released after use, by calling the [release] method. -static TimeUnit get NANOSECONDS => _id_NANOSECONDS.get(_class, const $TimeUnit$Type()); + static TimeUnit get NANOSECONDS => + _id_NANOSECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_MICROSECONDS = _class.staticFieldId( + r'MICROSECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); - static final _id_MICROSECONDS = - _class.staticFieldId( - r'MICROSECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); /// from: `static public final java.util.concurrent.TimeUnit MICROSECONDS` /// The returned object must be released after use, by calling the [release] method. -static TimeUnit get MICROSECONDS => _id_MICROSECONDS.get(_class, const $TimeUnit$Type()); + static TimeUnit get MICROSECONDS => + _id_MICROSECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_MILLISECONDS = _class.staticFieldId( + r'MILLISECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); - static final _id_MILLISECONDS = - _class.staticFieldId( - r'MILLISECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); /// from: `static public final java.util.concurrent.TimeUnit MILLISECONDS` /// The returned object must be released after use, by calling the [release] method. -static TimeUnit get MILLISECONDS => _id_MILLISECONDS.get(_class, const $TimeUnit$Type()); + static TimeUnit get MILLISECONDS => + _id_MILLISECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_SECONDS = _class.staticFieldId( + r'SECONDS', + r'Ljava/util/concurrent/TimeUnit;', + ); - static final _id_SECONDS = - _class.staticFieldId( - r'SECONDS', - r'Ljava/util/concurrent/TimeUnit;', - ); /// from: `static public final java.util.concurrent.TimeUnit SECONDS` /// The returned object must be released after use, by calling the [release] method. -static TimeUnit get SECONDS => _id_SECONDS.get(_class, const $TimeUnit$Type()); + static TimeUnit get SECONDS => + _id_SECONDS.get(_class, const $TimeUnit$Type()); + + static final _id_MINUTES = _class.staticFieldId( + r'MINUTES', + r'Ljava/util/concurrent/TimeUnit;', + ); - static final _id_MINUTES = - _class.staticFieldId( - r'MINUTES', - r'Ljava/util/concurrent/TimeUnit;', - ); /// from: `static public final java.util.concurrent.TimeUnit MINUTES` /// The returned object must be released after use, by calling the [release] method. -static TimeUnit get MINUTES => _id_MINUTES.get(_class, const $TimeUnit$Type()); + static TimeUnit get MINUTES => + _id_MINUTES.get(_class, const $TimeUnit$Type()); + + static final _id_HOURS = _class.staticFieldId( + r'HOURS', + r'Ljava/util/concurrent/TimeUnit;', + ); - static final _id_HOURS = - _class.staticFieldId( - r'HOURS', - r'Ljava/util/concurrent/TimeUnit;', - ); /// from: `static public final java.util.concurrent.TimeUnit HOURS` /// The returned object must be released after use, by calling the [release] method. -static TimeUnit get HOURS => _id_HOURS.get(_class, const $TimeUnit$Type()); + static TimeUnit get HOURS => _id_HOURS.get(_class, const $TimeUnit$Type()); + + static final _id_DAYS = _class.staticFieldId( + r'DAYS', + r'Ljava/util/concurrent/TimeUnit;', + ); - static final _id_DAYS = - _class.staticFieldId( - r'DAYS', - r'Ljava/util/concurrent/TimeUnit;', - ); /// from: `static public final java.util.concurrent.TimeUnit DAYS` /// The returned object must be released after use, by calling the [release] method. -static TimeUnit get DAYS => _id_DAYS.get(_class, const $TimeUnit$Type()); - + static TimeUnit get DAYS => _id_DAYS.get(_class, const $TimeUnit$Type()); } -final class $TimeUnit$Type extends _$jni.JObjType { - +final class $TimeUnit$Type extends _$jni.JObjType { @_$jni.internal - const $TimeUnit$Type( - - ); + const $TimeUnit$Type(); @_$jni.internal @_$core.override @@ -4366,10 +3150,8 @@ final class $TimeUnit$Type extends _$jni.JObjType { @_$jni.internal @_$core.override - TimeUnit fromReference(_$jni.JReference reference) => TimeUnit.fromReference( - - reference - ); + TimeUnit fromReference(_$jni.JReference reference) => + TimeUnit.fromReference(reference); @_$jni.internal @_$core.override @@ -4384,8 +3166,6 @@ final class $TimeUnit$Type extends _$jni.JObjType { @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($TimeUnit$Type) && - other is $TimeUnit$Type; + return other.runtimeType == ($TimeUnit$Type) && other is $TimeUnit$Type; } } - diff --git a/pkgs/ok_http/pubspec.yaml b/pkgs/ok_http/pubspec.yaml index cc55dfad2d..f703f6e36f 100644 --- a/pkgs/ok_http/pubspec.yaml +++ b/pkgs/ok_http/pubspec.yaml @@ -19,7 +19,7 @@ dependencies: dev_dependencies: dart_flutter_team_lints: ^3.0.0 - jnigen: ^0.12.1 + jnigen: ^0.12.2 flutter: plugin: From c43564a5a71aa5d1ce64b86633148d20ffe70186 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Nov 2024 14:12:20 -0800 Subject: [PATCH 3/4] Upgrade to jnigen 0.12.2 --- pkgs/ok_http/jnigen.yaml | 68 - pkgs/ok_http/lib/src/jni/bindings.dart | 15591 +++++++++++++++-- pkgs/ok_http/lib/src/ok_http_client.dart | 12 +- pkgs/ok_http/lib/src/ok_http_web_socket.dart | 11 +- 4 files changed, 13763 insertions(+), 1919 deletions(-) diff --git a/pkgs/ok_http/jnigen.yaml b/pkgs/ok_http/jnigen.yaml index 1fc2c5c03d..0ce3e1c414 100644 --- a/pkgs/ok_http/jnigen.yaml +++ b/pkgs/ok_http/jnigen.yaml @@ -35,73 +35,5 @@ classes: - "com.example.ok_http.WebSocketInterceptor" - "java.util.concurrent.TimeUnit" -# Exclude the deprecated methods listed below -# They cause syntax errors during the `dart format` step of JNIGen. -exclude: - methods: - - "okhttp3.Request#-deprecated_url" - - "okhttp3.Request#-deprecated_method" - - "okhttp3.Request#-deprecated_headers" - - "okhttp3.Request#-deprecated_body" - - "okhttp3.Request#-deprecated_cacheControl" - - "okhttp3.Response#-deprecated_request" - - "okhttp3.Response#-deprecated_protocol" - - "okhttp3.Response#-deprecated_code" - - "okhttp3.Response#-deprecated_message" - - "okhttp3.Response#-deprecated_handshake" - - "okhttp3.Response#-deprecated_headers" - - "okhttp3.Response#-deprecated_body" - - "okhttp3.Response#-deprecated_networkResponse" - - "okhttp3.Response#-deprecated_priorResponse" - - "okhttp3.Response#-deprecated_cacheResponse" - - "okhttp3.Response#-deprecated_cacheControl" - - "okhttp3.Response#-deprecated_sentRequestAtMillis" - - "okhttp3.Response#-deprecated_receivedResponseAtMillis" - - "okhttp3.OkHttpClient#-deprecated_dispatcher" - - "okhttp3.OkHttpClient#-deprecated_connectionPool" - - "okhttp3.OkHttpClient#-deprecated_interceptors" - - "okhttp3.OkHttpClient#-deprecated_networkInterceptors" - - "okhttp3.OkHttpClient#-deprecated_eventListenerFactory" - - "okhttp3.OkHttpClient#-deprecated_retryOnConnectionFailure" - - "okhttp3.OkHttpClient#-deprecated_authenticator" - - "okhttp3.OkHttpClient#-deprecated_followRedirects" - - "okhttp3.OkHttpClient#-deprecated_followSslRedirects" - - "okhttp3.OkHttpClient#-deprecated_cookieJar" - - "okhttp3.OkHttpClient#-deprecated_cache" - - "okhttp3.OkHttpClient#-deprecated_dns" - - "okhttp3.OkHttpClient#-deprecated_proxy" - - "okhttp3.OkHttpClient#-deprecated_proxySelector" - - "okhttp3.OkHttpClient#-deprecated_proxyAuthenticator" - - "okhttp3.OkHttpClient#-deprecated_socketFactory" - - "okhttp3.OkHttpClient#-deprecated_sslSocketFactory" - - "okhttp3.OkHttpClient#-deprecated_connectionSpecs" - - "okhttp3.OkHttpClient#-deprecated_hostnameVerifier" - - "okhttp3.OkHttpClient#-deprecated_certificatePinner" - - "okhttp3.OkHttpClient#-deprecated_callTimeoutMillis" - - "okhttp3.OkHttpClient#-deprecated_connectTimeoutMillis" - - "okhttp3.OkHttpClient#-deprecated_readTimeoutMillis" - - "okhttp3.OkHttpClient#-deprecated_writeTimeoutMillis" - - "okhttp3.OkHttpClient#-deprecated_pingIntervalMillis" - - "okhttp3.OkHttpClient#-deprecated_protocols" - - 'okhttp3.OkHttpClient\$Builder#-addInterceptor' - - 'okhttp3.OkHttpClient\$Builder#-addNetworkInterceptor' - - 'okhttp3.Headers\$Companion#-deprecated_of' - - "okhttp3.Headers#-deprecated_size" - - "okhttp3.Dispatcher#-deprecated_executorService" - - "okhttp3.Cache#-deprecated_directory" - - "java.util.concurrent.ExecutorService#invokeAll" - - "java.util.concurrent.ExecutorService#invokeAny" - - "java.util.concurrent.ExecutorService#submit" - - "okio.ByteString$Companion#-deprecated_getByte" - - "okio.ByteString$Companion#-deprecated_size" - - 'okio.ByteString\$Companion#-deprecated_decodeBase64' - - 'okio.ByteString\$Companion#-deprecated_decodeHex' - - 'okio.ByteString\$Companion#-deprecated_encodeString' - - 'okio.ByteString\$Companion#-deprecated_encodeUtf8' - - 'okio.ByteString\$Companion#-deprecated_of' - - 'okio.ByteString\$Companion#-deprecated_read' - - "okio.ByteString#-deprecated_getByte" - - "okio.ByteString#-deprecated_size" - preamble: | // ignore_for_file: prefer_expression_function_bodies diff --git a/pkgs/ok_http/lib/src/jni/bindings.dart b/pkgs/ok_http/lib/src/jni/bindings.dart index 4b606ec347..833c40727a 100644 --- a/pkgs/ok_http/lib/src/jni/bindings.dart +++ b/pkgs/ok_http/lib/src/jni/bindings.dart @@ -52,274 +52,588 @@ class Request_Builder extends _$jni.JObject { /// The type which includes information such as the signature of this class. static const type = $Request_Builder$Type(); -} + static final _id_new$ = _class.constructorId( + r'()V', + ); -final class $Request_Builder$Type extends _$jni.JObjType { - @_$jni.internal - const $Request_Builder$Type(); + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Request$Builder;'; + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory Request_Builder() { + return Request_Builder.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); + } - @_$jni.internal - @_$core.override - Request_Builder fromReference(_$jni.JReference reference) => - Request_Builder.fromReference(reference); + static final _id_new$1 = _class.constructorId( + r'(Lokhttp3/Request;)V', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public void (okhttp3.Request request)` + /// The returned object must be released after use, by calling the [release] method. + factory Request_Builder.new$1( + Request request, + ) { + return Request_Builder.fromReference(_new$1(_class.reference.pointer, + _id_new$1 as _$jni.JMethodIDPtr, request.reference.pointer) + .reference); + } - @_$core.override - int get hashCode => ($Request_Builder$Type).hashCode; + static final _id_url = _class.instanceMethodId( + r'url', + r'(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Request_Builder$Type) && - other is $Request_Builder$Type; + static final _url = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Request$Builder url(okhttp3.HttpUrl httpUrl)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder url( + _$jni.JObject httpUrl, + ) { + return _url(reference.pointer, _id_url as _$jni.JMethodIDPtr, + httpUrl.reference.pointer) + .object(const $Request_Builder$Type()); } -} -/// from: `okhttp3.Request` -class Request extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_url$1 = _class.instanceMethodId( + r'url', + r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', + ); - @_$jni.internal - Request.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _url$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = _$jni.JClass.forName(r'okhttp3/Request'); + /// from: `public okhttp3.Request$Builder url(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder url$1( + _$jni.JString string, + ) { + return _url$1(reference.pointer, _id_url$1 as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const $Request_Builder$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $Request$Type(); -} + static final _id_url$2 = _class.instanceMethodId( + r'url', + r'(Ljava/net/URL;)Lokhttp3/Request$Builder;', + ); -final class $Request$Type extends _$jni.JObjType { - @_$jni.internal - const $Request$Type(); + static final _url$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Request;'; + /// from: `public okhttp3.Request$Builder url(java.net.URL uRL)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder url$2( + _$jni.JObject uRL, + ) { + return _url$2(reference.pointer, _id_url$2 as _$jni.JMethodIDPtr, + uRL.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$jni.internal - @_$core.override - Request fromReference(_$jni.JReference reference) => - Request.fromReference(reference); + static final _id_header = _class.instanceMethodId( + r'header', + r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _header = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public okhttp3.Request$Builder header(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder header( + _$jni.JString string, + _$jni.JString string1, + ) { + return _header(reference.pointer, _id_header as _$jni.JMethodIDPtr, + string.reference.pointer, string1.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$core.override - int get hashCode => ($Request$Type).hashCode; + static final _id_addHeader = _class.instanceMethodId( + r'addHeader', + r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Request$Builder;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Request$Type) && other is $Request$Type; + static final _addHeader = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Request$Builder addHeader(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder addHeader( + _$jni.JString string, + _$jni.JString string1, + ) { + return _addHeader(reference.pointer, _id_addHeader as _$jni.JMethodIDPtr, + string.reference.pointer, string1.reference.pointer) + .object(const $Request_Builder$Type()); } -} -/// from: `okhttp3.RequestBody$Companion` -class RequestBody_Companion extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_removeHeader = _class.instanceMethodId( + r'removeHeader', + r'(Ljava/lang/String;)Lokhttp3/Request$Builder;', + ); - @_$jni.internal - RequestBody_Companion.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _removeHeader = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody$Companion'); + /// from: `public okhttp3.Request$Builder removeHeader(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder removeHeader( + _$jni.JString string, + ) { + return _removeHeader(reference.pointer, + _id_removeHeader as _$jni.JMethodIDPtr, string.reference.pointer) + .object(const $Request_Builder$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $RequestBody_Companion$Type(); -} + static final _id_headers = _class.instanceMethodId( + r'headers', + r'(Lokhttp3/Headers;)Lokhttp3/Request$Builder;', + ); -final class $RequestBody_Companion$Type - extends _$jni.JObjType { - @_$jni.internal - const $RequestBody_Companion$Type(); + static final _headers = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/RequestBody$Companion;'; + /// from: `public okhttp3.Request$Builder headers(okhttp3.Headers headers)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder headers( + Headers headers, + ) { + return _headers(reference.pointer, _id_headers as _$jni.JMethodIDPtr, + headers.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$jni.internal - @_$core.override - RequestBody_Companion fromReference(_$jni.JReference reference) => - RequestBody_Companion.fromReference(reference); + static final _id_cacheControl = _class.instanceMethodId( + r'cacheControl', + r'(Lokhttp3/CacheControl;)Lokhttp3/Request$Builder;', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _cacheControl = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public okhttp3.Request$Builder cacheControl(okhttp3.CacheControl cacheControl)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder cacheControl( + _$jni.JObject cacheControl, + ) { + return _cacheControl( + reference.pointer, + _id_cacheControl as _$jni.JMethodIDPtr, + cacheControl.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$core.override - int get hashCode => ($RequestBody_Companion$Type).hashCode; + static final _id_get = _class.instanceMethodId( + r'get', + r'()Lokhttp3/Request$Builder;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($RequestBody_Companion$Type) && - other is $RequestBody_Companion$Type; + static final _get = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public okhttp3.Request$Builder get()` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder get() { + return _get(reference.pointer, _id_get as _$jni.JMethodIDPtr) + .object(const $Request_Builder$Type()); } -} -/// from: `okhttp3.RequestBody` -class RequestBody extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_head = _class.instanceMethodId( + r'head', + r'()Lokhttp3/Request$Builder;', + ); - @_$jni.internal - RequestBody.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _head = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody'); + /// from: `public okhttp3.Request$Builder head()` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder head() { + return _head(reference.pointer, _id_head as _$jni.JMethodIDPtr) + .object(const $Request_Builder$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $RequestBody$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/RequestBody$Companion;', + static final _id_post = _class.instanceMethodId( + r'post', + r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', ); - /// from: `static public final okhttp3.RequestBody$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. - static RequestBody_Companion get Companion => - _id_Companion.get(_class, const $RequestBody_Companion$Type()); -} + static final _post = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); -final class $RequestBody$Type extends _$jni.JObjType { - @_$jni.internal - const $RequestBody$Type(); + /// from: `public okhttp3.Request$Builder post(okhttp3.RequestBody requestBody)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder post( + RequestBody requestBody, + ) { + return _post(reference.pointer, _id_post as _$jni.JMethodIDPtr, + requestBody.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/RequestBody;'; + static final _id_delete = _class.instanceMethodId( + r'delete', + r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', + ); - @_$jni.internal - @_$core.override - RequestBody fromReference(_$jni.JReference reference) => - RequestBody.fromReference(reference); + static final _delete = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + /// from: `public okhttp3.Request$Builder delete(okhttp3.RequestBody requestBody)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder delete( + RequestBody requestBody, + ) { + return _delete(reference.pointer, _id_delete as _$jni.JMethodIDPtr, + requestBody.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_put = _class.instanceMethodId( + r'put', + r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', + ); - @_$core.override - int get hashCode => ($RequestBody$Type).hashCode; + static final _put = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($RequestBody$Type) && - other is $RequestBody$Type; + /// from: `public okhttp3.Request$Builder put(okhttp3.RequestBody requestBody)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder put( + RequestBody requestBody, + ) { + return _put(reference.pointer, _id_put as _$jni.JMethodIDPtr, + requestBody.reference.pointer) + .object(const $Request_Builder$Type()); } -} -/// from: `okhttp3.Response$Builder` -class Response_Builder extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_patch = _class.instanceMethodId( + r'patch', + r'(Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', + ); - @_$jni.internal - Response_Builder.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _patch = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = _$jni.JClass.forName(r'okhttp3/Response$Builder'); + /// from: `public okhttp3.Request$Builder patch(okhttp3.RequestBody requestBody)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder patch( + RequestBody requestBody, + ) { + return _patch(reference.pointer, _id_patch as _$jni.JMethodIDPtr, + requestBody.reference.pointer) + .object(const $Request_Builder$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $Response_Builder$Type(); -} + static final _id_method = _class.instanceMethodId( + r'method', + r'(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;', + ); -final class $Response_Builder$Type extends _$jni.JObjType { - @_$jni.internal - const $Response_Builder$Type(); + static final _method = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Response$Builder;'; + /// from: `public okhttp3.Request$Builder method(java.lang.String string, okhttp3.RequestBody requestBody)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder method( + _$jni.JString string, + RequestBody requestBody, + ) { + return _method(reference.pointer, _id_method as _$jni.JMethodIDPtr, + string.reference.pointer, requestBody.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$jni.internal - @_$core.override - Response_Builder fromReference(_$jni.JReference reference) => - Response_Builder.fromReference(reference); + static final _id_tag = _class.instanceMethodId( + r'tag', + r'(Ljava/lang/Object;)Lokhttp3/Request$Builder;', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _tag = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public okhttp3.Request$Builder tag(java.lang.Object object)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder tag( + _$jni.JObject object, + ) { + return _tag(reference.pointer, _id_tag as _$jni.JMethodIDPtr, + object.reference.pointer) + .object(const $Request_Builder$Type()); + } - @_$core.override - int get hashCode => ($Response_Builder$Type).hashCode; + static final _id_tag$1 = _class.instanceMethodId( + r'tag', + r'(Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Response_Builder$Type) && - other is $Response_Builder$Type; + static final _tag$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Request$Builder tag(java.lang.Class class, T object)` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder tag$1<$T extends _$jni.JObject>( + _$jni.JObject class$, + $T object, { + _$jni.JObjType<$T>? T, + }) { + T ??= _$jni.lowestCommonSuperType([ + object.$type, + ]) as _$jni.JObjType<$T>; + return _tag$1(reference.pointer, _id_tag$1 as _$jni.JMethodIDPtr, + class$.reference.pointer, object.reference.pointer) + .object(const $Request_Builder$Type()); } -} -/// from: `okhttp3.Response` -class Response extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_build = _class.instanceMethodId( + r'build', + r'()Lokhttp3/Request;', + ); - @_$jni.internal - Response.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _build = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - static final _class = _$jni.JClass.forName(r'okhttp3/Response'); + /// from: `public okhttp3.Request build()` + /// The returned object must be released after use, by calling the [release] method. + Request build() { + return _build(reference.pointer, _id_build as _$jni.JMethodIDPtr) + .object(const $Request$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $Response$Type(); + static final _id_delete$1 = _class.instanceMethodId( + r'delete', + r'()Lokhttp3/Request$Builder;', + ); + + static final _delete$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Request$Builder delete()` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder delete$1() { + return _delete$1(reference.pointer, _id_delete$1 as _$jni.JMethodIDPtr) + .object(const $Request_Builder$Type()); + } } -final class $Response$Type extends _$jni.JObjType { +final class $Request_Builder$Type extends _$jni.JObjType { @_$jni.internal - const $Response$Type(); + const $Request_Builder$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/Response;'; + String get signature => r'Lokhttp3/Request$Builder;'; @_$jni.internal @_$core.override - Response fromReference(_$jni.JReference reference) => - Response.fromReference(reference); + Request_Builder fromReference(_$jni.JReference reference) => + Request_Builder.fromReference(reference); @_$jni.internal @_$core.override @@ -330,154 +644,386 @@ final class $Response$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($Response$Type).hashCode; + int get hashCode => ($Request_Builder$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Response$Type) && other is $Response$Type; + return other.runtimeType == ($Request_Builder$Type) && + other is $Request_Builder$Type; } } -/// from: `okhttp3.ResponseBody$BomAwareReader` -class ResponseBody_BomAwareReader extends _$jni.JObject { +/// from: `okhttp3.Request` +class Request extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - ResponseBody_BomAwareReader.fromReference( + Request.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = - _$jni.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); + static final _class = _$jni.JClass.forName(r'okhttp3/Request'); /// The type which includes information such as the signature of this class. - static const type = $ResponseBody_BomAwareReader$Type(); -} - -final class $ResponseBody_BomAwareReader$Type - extends _$jni.JObjType { - @_$jni.internal - const $ResponseBody_BomAwareReader$Type(); - - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/ResponseBody$BomAwareReader;'; - - @_$jni.internal - @_$core.override - ResponseBody_BomAwareReader fromReference(_$jni.JReference reference) => - ResponseBody_BomAwareReader.fromReference(reference); - - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static const type = $Request$Type(); + static final _id_new$ = _class.constructorId( + r'(Lokhttp3/HttpUrl;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/RequestBody;Ljava/util/Map;)V', + ); - @_$jni.internal - @_$core.override - final superCount = 1; + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); - @_$core.override - int get hashCode => ($ResponseBody_BomAwareReader$Type).hashCode; + /// from: `public void (okhttp3.HttpUrl httpUrl, java.lang.String string, okhttp3.Headers headers, okhttp3.RequestBody requestBody, java.util.Map map)` + /// The returned object must be released after use, by calling the [release] method. + factory Request( + _$jni.JObject httpUrl, + _$jni.JString string, + Headers headers, + RequestBody requestBody, + _$jni.JMap<_$jni.JObject, _$jni.JObject> map, + ) { + return Request.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + httpUrl.reference.pointer, + string.reference.pointer, + headers.reference.pointer, + requestBody.reference.pointer, + map.reference.pointer) + .reference); + } - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody_BomAwareReader$Type) && - other is $ResponseBody_BomAwareReader$Type; + static final _id_url = _class.instanceMethodId( + r'url', + r'()Lokhttp3/HttpUrl;', + ); + + static final _url = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.HttpUrl url()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject url() { + return _url(reference.pointer, _id_url as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); } -} -/// from: `okhttp3.ResponseBody$Companion` -class ResponseBody_Companion extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_method = _class.instanceMethodId( + r'method', + r'()Ljava/lang/String;', + ); - @_$jni.internal - ResponseBody_Companion.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _method = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody$Companion'); + /// from: `public final java.lang.String method()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString method() { + return _method(reference.pointer, _id_method as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } - /// The type which includes information such as the signature of this class. - static const type = $ResponseBody_Companion$Type(); -} + static final _id_headers = _class.instanceMethodId( + r'headers', + r'()Lokhttp3/Headers;', + ); -final class $ResponseBody_Companion$Type - extends _$jni.JObjType { - @_$jni.internal - const $ResponseBody_Companion$Type(); + static final _headers = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/ResponseBody$Companion;'; + /// from: `public final okhttp3.Headers headers()` + /// The returned object must be released after use, by calling the [release] method. + Headers headers() { + return _headers(reference.pointer, _id_headers as _$jni.JMethodIDPtr) + .object(const $Headers$Type()); + } - @_$jni.internal - @_$core.override - ResponseBody_Companion fromReference(_$jni.JReference reference) => - ResponseBody_Companion.fromReference(reference); + static final _id_body = _class.instanceMethodId( + r'body', + r'()Lokhttp3/RequestBody;', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _body = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public final okhttp3.RequestBody body()` + /// The returned object must be released after use, by calling the [release] method. + RequestBody body() { + return _body(reference.pointer, _id_body as _$jni.JMethodIDPtr) + .object(const $RequestBody$Type()); + } - @_$core.override - int get hashCode => ($ResponseBody_Companion$Type).hashCode; + static final _id_isHttps = _class.instanceMethodId( + r'isHttps', + r'()Z', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody_Companion$Type) && - other is $ResponseBody_Companion$Type; + static final _isHttps = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final boolean isHttps()` + bool isHttps() { + return _isHttps(reference.pointer, _id_isHttps as _$jni.JMethodIDPtr) + .boolean; } -} -/// from: `okhttp3.ResponseBody` -class ResponseBody extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_header = _class.instanceMethodId( + r'header', + r'(Ljava/lang/String;)Ljava/lang/String;', + ); - @_$jni.internal - ResponseBody.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _header = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody'); + /// from: `public final java.lang.String header(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString header( + _$jni.JString string, + ) { + return _header(reference.pointer, _id_header as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JStringType()); + } - /// The type which includes information such as the signature of this class. - static const type = $ResponseBody$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/ResponseBody$Companion;', + static final _id_headers$1 = _class.instanceMethodId( + r'headers', + r'(Ljava/lang/String;)Ljava/util/List;', ); - /// from: `static public final okhttp3.ResponseBody$Companion Companion` + static final _headers$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.util.List headers(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static ResponseBody_Companion get Companion => - _id_Companion.get(_class, const $ResponseBody_Companion$Type()); + _$jni.JList<_$jni.JString> headers$1( + _$jni.JString string, + ) { + return _headers$1(reference.pointer, _id_headers$1 as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JListType(_$jni.JStringType())); + } + + static final _id_tag = _class.instanceMethodId( + r'tag', + r'()Ljava/lang/Object;', + ); + + static final _tag = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.lang.Object tag()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject tag() { + return _tag(reference.pointer, _id_tag as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_tag$1 = _class.instanceMethodId( + r'tag', + r'(Ljava/lang/Class;)Ljava/lang/Object;', + ); + + static final _tag$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final T tag(java.lang.Class class)` + /// The returned object must be released after use, by calling the [release] method. + $T tag$1<$T extends _$jni.JObject>( + _$jni.JObject class$, { + required _$jni.JObjType<$T> T, + }) { + return _tag$1(reference.pointer, _id_tag$1 as _$jni.JMethodIDPtr, + class$.reference.pointer) + .object(T); + } + + static final _id_newBuilder = _class.instanceMethodId( + r'newBuilder', + r'()Lokhttp3/Request$Builder;', + ); + + static final _newBuilder = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Request$Builder newBuilder()` + /// The returned object must be released after use, by calling the [release] method. + Request_Builder newBuilder() { + return _newBuilder(reference.pointer, _id_newBuilder as _$jni.JMethodIDPtr) + .object(const $Request_Builder$Type()); + } + + static final _id_cacheControl = _class.instanceMethodId( + r'cacheControl', + r'()Lokhttp3/CacheControl;', + ); + + static final _cacheControl = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.CacheControl cacheControl()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject cacheControl() { + return _cacheControl( + reference.pointer, _id_cacheControl as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_toString$1 = _class.instanceMethodId( + r'toString', + r'()Ljava/lang/String;', + ); + + static final _toString$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String toString()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString toString$1() { + return _toString$1(reference.pointer, _id_toString$1 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } } -final class $ResponseBody$Type extends _$jni.JObjType { +final class $Request$Type extends _$jni.JObjType { @_$jni.internal - const $ResponseBody$Type(); + const $Request$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/ResponseBody;'; + String get signature => r'Lokhttp3/Request;'; @_$jni.internal @_$core.override - ResponseBody fromReference(_$jni.JReference reference) => - ResponseBody.fromReference(reference); + Request fromReference(_$jni.JReference reference) => + Request.fromReference(reference); @_$jni.internal @_$core.override @@ -488,46 +1034,8864 @@ final class $ResponseBody$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($ResponseBody$Type).hashCode; + int get hashCode => ($Request$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($ResponseBody$Type) && - other is $ResponseBody$Type; + return other.runtimeType == ($Request$Type) && other is $Request$Type; } } -/// from: `okhttp3.OkHttpClient$Builder` -class OkHttpClient_Builder extends _$jni.JObject { +/// from: `okhttp3.RequestBody$Companion` +class RequestBody_Companion extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; + + @_$jni.internal + RequestBody_Companion.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody$Companion'); + + /// The type which includes information such as the signature of this class. + static const type = $RequestBody_Companion$Type(); + static final _id_create = _class.instanceMethodId( + r'create', + r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create( + _$jni.JString string, + _$jni.JObject mediaType, + ) { + return _create(reference.pointer, _id_create as _$jni.JMethodIDPtr, + string.reference.pointer, mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$1 = _class.instanceMethodId( + r'create', + r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$1( + ByteString byteString, + _$jni.JObject mediaType, + ) { + return _create$1(reference.pointer, _id_create$1 as _$jni.JMethodIDPtr, + byteString.reference.pointer, mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$2 = _class.instanceMethodId( + r'create', + r'([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;', + ); + + static final _create$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int, + int)>(); + + /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$2( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + int i, + int i1, + ) { + return _create$2(reference.pointer, _id_create$2 as _$jni.JMethodIDPtr, + bs.reference.pointer, mediaType.reference.pointer, i, i1) + .object(const $RequestBody$Type()); + } + + static final _id_create$3 = _class.instanceMethodId( + r'create', + r'(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$3( + _$jni.JObject file, + _$jni.JObject mediaType, + ) { + return _create$3(reference.pointer, _id_create$3 as _$jni.JMethodIDPtr, + file.reference.pointer, mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$4 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;', + ); + + static final _create$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$4( + _$jni.JObject mediaType, + _$jni.JString string, + ) { + return _create$4(reference.pointer, _id_create$4 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, string.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$5 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;', + ); + + static final _create$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$5( + _$jni.JObject mediaType, + ByteString byteString, + ) { + return _create$5(reference.pointer, _id_create$5 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, byteString.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$6 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;', + ); + + static final _create$6 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int, + int)>(); + + /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$6( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + int i, + int i1, + ) { + return _create$6(reference.pointer, _id_create$6 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, bs.reference.pointer, i, i1) + .object(const $RequestBody$Type()); + } + + static final _id_create$7 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;', + ); + + static final _create$7 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$7( + _$jni.JObject mediaType, + _$jni.JObject file, + ) { + return _create$7(reference.pointer, _id_create$7 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, file.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$8 = _class.instanceMethodId( + r'create', + r'([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;', + ); + + static final _create$8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); + + /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$8( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + int i, + ) { + return _create$8(reference.pointer, _id_create$8 as _$jni.JMethodIDPtr, + bs.reference.pointer, mediaType.reference.pointer, i) + .object(const $RequestBody$Type()); + } + + static final _id_create$9 = _class.instanceMethodId( + r'create', + r'([BLokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create$9 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$9( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + ) { + return _create$9(reference.pointer, _id_create$9 as _$jni.JMethodIDPtr, + bs.reference.pointer, mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$10 = _class.instanceMethodId( + r'create', + r'([B)Lokhttp3/RequestBody;', + ); + + static final _create$10 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$10( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _create$10(reference.pointer, _id_create$10 as _$jni.JMethodIDPtr, + bs.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$11 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;', + ); + + static final _create$11 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); + + /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$11( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + int i, + ) { + return _create$11(reference.pointer, _id_create$11 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, bs.reference.pointer, i) + .object(const $RequestBody$Type()); + } + + static final _id_create$12 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;', + ); + + static final _create$12 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + RequestBody create$12( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _create$12(reference.pointer, _id_create$12 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, bs.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory RequestBody_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return RequestBody_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } +} + +final class $RequestBody_Companion$Type + extends _$jni.JObjType { + @_$jni.internal + const $RequestBody_Companion$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/RequestBody$Companion;'; + + @_$jni.internal + @_$core.override + RequestBody_Companion fromReference(_$jni.JReference reference) => + RequestBody_Companion.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($RequestBody_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RequestBody_Companion$Type) && + other is $RequestBody_Companion$Type; + } +} + +/// from: `okhttp3.RequestBody` +class RequestBody extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + RequestBody.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/RequestBody'); + + /// The type which includes information such as the signature of this class. + static const type = $RequestBody$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/RequestBody$Companion;', + ); + + /// from: `static public final okhttp3.RequestBody$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody_Companion get Companion => + _id_Companion.get(_class, const $RequestBody_Companion$Type()); + + static final _id_contentType = _class.instanceMethodId( + r'contentType', + r'()Lokhttp3/MediaType;', + ); + + static final _contentType = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okhttp3.MediaType contentType()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject contentType() { + return _contentType( + reference.pointer, _id_contentType as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_contentLength = _class.instanceMethodId( + r'contentLength', + r'()J', + ); + + static final _contentLength = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public long contentLength()` + int contentLength() { + return _contentLength( + reference.pointer, _id_contentLength as _$jni.JMethodIDPtr) + .long; + } + + static final _id_writeTo = _class.instanceMethodId( + r'writeTo', + r'(Lokio/BufferedSink;)V', + ); + + static final _writeTo = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract void writeTo(okio.BufferedSink bufferedSink)` + void writeTo( + _$jni.JObject bufferedSink, + ) { + _writeTo(reference.pointer, _id_writeTo as _$jni.JMethodIDPtr, + bufferedSink.reference.pointer) + .check(); + } + + static final _id_isDuplex = _class.instanceMethodId( + r'isDuplex', + r'()Z', + ); + + static final _isDuplex = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public boolean isDuplex()` + bool isDuplex() { + return _isDuplex(reference.pointer, _id_isDuplex as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_isOneShot = _class.instanceMethodId( + r'isOneShot', + r'()Z', + ); + + static final _isOneShot = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public boolean isOneShot()` + bool isOneShot() { + return _isOneShot(reference.pointer, _id_isOneShot as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_create = _class.staticMethodId( + r'create', + r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(java.lang.String string, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create( + _$jni.JString string, + _$jni.JObject mediaType, + ) { + return _create(_class.reference.pointer, _id_create as _$jni.JMethodIDPtr, + string.reference.pointer, mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$1 = _class.staticMethodId( + r'create', + r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$1( + ByteString byteString, + _$jni.JObject mediaType, + ) { + return _create$1( + _class.reference.pointer, + _id_create$1 as _$jni.JMethodIDPtr, + byteString.reference.pointer, + mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$2 = _class.staticMethodId( + r'create', + r'([BLokhttp3/MediaType;II)Lokhttp3/RequestBody;', + ); + + static final _create$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int, + int)>(); + + /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$2( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + int i, + int i1, + ) { + return _create$2( + _class.reference.pointer, + _id_create$2 as _$jni.JMethodIDPtr, + bs.reference.pointer, + mediaType.reference.pointer, + i, + i1) + .object(const $RequestBody$Type()); + } + + static final _id_create$3 = _class.staticMethodId( + r'create', + r'(Ljava/io/File;Lokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(java.io.File file, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$3( + _$jni.JObject file, + _$jni.JObject mediaType, + ) { + return _create$3( + _class.reference.pointer, + _id_create$3 as _$jni.JMethodIDPtr, + file.reference.pointer, + mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$4 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/RequestBody;', + ); + + static final _create$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$4( + _$jni.JObject mediaType, + _$jni.JString string, + ) { + return _create$4( + _class.reference.pointer, + _id_create$4 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + string.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$5 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/RequestBody;', + ); + + static final _create$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$5( + _$jni.JObject mediaType, + ByteString byteString, + ) { + return _create$5( + _class.reference.pointer, + _id_create$5 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + byteString.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$6 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody;', + ); + + static final _create$6 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int, + int)>(); + + /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$6( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + int i, + int i1, + ) { + return _create$6( + _class.reference.pointer, + _id_create$6 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + bs.reference.pointer, + i, + i1) + .object(const $RequestBody$Type()); + } + + static final _id_create$7 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;Ljava/io/File;)Lokhttp3/RequestBody;', + ); + + static final _create$7 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, java.io.File file)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$7( + _$jni.JObject mediaType, + _$jni.JObject file, + ) { + return _create$7( + _class.reference.pointer, + _id_create$7 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + file.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$8 = _class.staticMethodId( + r'create', + r'([BLokhttp3/MediaType;I)Lokhttp3/RequestBody;', + ); + + static final _create$8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); + + /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType, int i)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$8( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + int i, + ) { + return _create$8( + _class.reference.pointer, + _id_create$8 as _$jni.JMethodIDPtr, + bs.reference.pointer, + mediaType.reference.pointer, + i) + .object(const $RequestBody$Type()); + } + + static final _id_create$9 = _class.staticMethodId( + r'create', + r'([BLokhttp3/MediaType;)Lokhttp3/RequestBody;', + ); + + static final _create$9 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(byte[] bs, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$9( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + ) { + return _create$9( + _class.reference.pointer, + _id_create$9 as _$jni.JMethodIDPtr, + bs.reference.pointer, + mediaType.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$10 = _class.staticMethodId( + r'create', + r'([B)Lokhttp3/RequestBody;', + ); + + static final _create$10 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$10( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _create$10(_class.reference.pointer, + _id_create$10 as _$jni.JMethodIDPtr, bs.reference.pointer) + .object(const $RequestBody$Type()); + } + + static final _id_create$11 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody;', + ); + + static final _create$11 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); + + /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs, int i)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$11( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + int i, + ) { + return _create$11( + _class.reference.pointer, + _id_create$11 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + bs.reference.pointer, + i) + .object(const $RequestBody$Type()); + } + + static final _id_create$12 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;[B)Lokhttp3/RequestBody;', + ); + + static final _create$12 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.RequestBody create(okhttp3.MediaType mediaType, byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + static RequestBody create$12( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _create$12( + _class.reference.pointer, + _id_create$12 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + bs.reference.pointer) + .object(const $RequestBody$Type()); + } +} + +final class $RequestBody$Type extends _$jni.JObjType { + @_$jni.internal + const $RequestBody$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/RequestBody;'; + + @_$jni.internal + @_$core.override + RequestBody fromReference(_$jni.JReference reference) => + RequestBody.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($RequestBody$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RequestBody$Type) && + other is $RequestBody$Type; + } +} + +/// from: `okhttp3.Response$Builder` +class Response_Builder extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Response_Builder.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Response$Builder'); + + /// The type which includes information such as the signature of this class. + static const type = $Response_Builder$Type(); + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory Response_Builder() { + return Response_Builder.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); + } + + static final _id_new$1 = _class.constructorId( + r'(Lokhttp3/Response;)V', + ); + + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (okhttp3.Response response)` + /// The returned object must be released after use, by calling the [release] method. + factory Response_Builder.new$1( + Response response, + ) { + return Response_Builder.fromReference(_new$1(_class.reference.pointer, + _id_new$1 as _$jni.JMethodIDPtr, response.reference.pointer) + .reference); + } + + static final _id_request = _class.instanceMethodId( + r'request', + r'(Lokhttp3/Request;)Lokhttp3/Response$Builder;', + ); + + static final _request = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder request(okhttp3.Request request)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder request( + Request request, + ) { + return _request(reference.pointer, _id_request as _$jni.JMethodIDPtr, + request.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_protocol = _class.instanceMethodId( + r'protocol', + r'(Lokhttp3/Protocol;)Lokhttp3/Response$Builder;', + ); + + static final _protocol = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder protocol(okhttp3.Protocol protocol)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder protocol( + _$jni.JObject protocol, + ) { + return _protocol(reference.pointer, _id_protocol as _$jni.JMethodIDPtr, + protocol.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_code = _class.instanceMethodId( + r'code', + r'(I)Lokhttp3/Response$Builder;', + ); + + static final _code = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public okhttp3.Response$Builder code(int i)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder code( + int i, + ) { + return _code(reference.pointer, _id_code as _$jni.JMethodIDPtr, i) + .object(const $Response_Builder$Type()); + } + + static final _id_message = _class.instanceMethodId( + r'message', + r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', + ); + + static final _message = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder message(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder message( + _$jni.JString string, + ) { + return _message(reference.pointer, _id_message as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_handshake = _class.instanceMethodId( + r'handshake', + r'(Lokhttp3/Handshake;)Lokhttp3/Response$Builder;', + ); + + static final _handshake = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder handshake(okhttp3.Handshake handshake)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder handshake( + _$jni.JObject handshake, + ) { + return _handshake(reference.pointer, _id_handshake as _$jni.JMethodIDPtr, + handshake.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_header = _class.instanceMethodId( + r'header', + r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', + ); + + static final _header = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder header(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder header( + _$jni.JString string, + _$jni.JString string1, + ) { + return _header(reference.pointer, _id_header as _$jni.JMethodIDPtr, + string.reference.pointer, string1.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_addHeader = _class.instanceMethodId( + r'addHeader', + r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Response$Builder;', + ); + + static final _addHeader = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder addHeader(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder addHeader( + _$jni.JString string, + _$jni.JString string1, + ) { + return _addHeader(reference.pointer, _id_addHeader as _$jni.JMethodIDPtr, + string.reference.pointer, string1.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_removeHeader = _class.instanceMethodId( + r'removeHeader', + r'(Ljava/lang/String;)Lokhttp3/Response$Builder;', + ); + + static final _removeHeader = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder removeHeader(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder removeHeader( + _$jni.JString string, + ) { + return _removeHeader(reference.pointer, + _id_removeHeader as _$jni.JMethodIDPtr, string.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_headers = _class.instanceMethodId( + r'headers', + r'(Lokhttp3/Headers;)Lokhttp3/Response$Builder;', + ); + + static final _headers = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder headers(okhttp3.Headers headers)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder headers( + Headers headers, + ) { + return _headers(reference.pointer, _id_headers as _$jni.JMethodIDPtr, + headers.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_body = _class.instanceMethodId( + r'body', + r'(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder;', + ); + + static final _body = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder body(okhttp3.ResponseBody responseBody)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder body( + ResponseBody responseBody, + ) { + return _body(reference.pointer, _id_body as _$jni.JMethodIDPtr, + responseBody.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_networkResponse = _class.instanceMethodId( + r'networkResponse', + r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', + ); + + static final _networkResponse = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder networkResponse(okhttp3.Response response)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder networkResponse( + Response response, + ) { + return _networkResponse( + reference.pointer, + _id_networkResponse as _$jni.JMethodIDPtr, + response.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_cacheResponse = _class.instanceMethodId( + r'cacheResponse', + r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', + ); + + static final _cacheResponse = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder cacheResponse(okhttp3.Response response)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder cacheResponse( + Response response, + ) { + return _cacheResponse(reference.pointer, + _id_cacheResponse as _$jni.JMethodIDPtr, response.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_priorResponse = _class.instanceMethodId( + r'priorResponse', + r'(Lokhttp3/Response;)Lokhttp3/Response$Builder;', + ); + + static final _priorResponse = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Response$Builder priorResponse(okhttp3.Response response)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder priorResponse( + Response response, + ) { + return _priorResponse(reference.pointer, + _id_priorResponse as _$jni.JMethodIDPtr, response.reference.pointer) + .object(const $Response_Builder$Type()); + } + + static final _id_sentRequestAtMillis = _class.instanceMethodId( + r'sentRequestAtMillis', + r'(J)Lokhttp3/Response$Builder;', + ); + + static final _sentRequestAtMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public okhttp3.Response$Builder sentRequestAtMillis(long j)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder sentRequestAtMillis( + int j, + ) { + return _sentRequestAtMillis( + reference.pointer, _id_sentRequestAtMillis as _$jni.JMethodIDPtr, j) + .object(const $Response_Builder$Type()); + } + + static final _id_receivedResponseAtMillis = _class.instanceMethodId( + r'receivedResponseAtMillis', + r'(J)Lokhttp3/Response$Builder;', + ); + + static final _receivedResponseAtMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public okhttp3.Response$Builder receivedResponseAtMillis(long j)` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder receivedResponseAtMillis( + int j, + ) { + return _receivedResponseAtMillis(reference.pointer, + _id_receivedResponseAtMillis as _$jni.JMethodIDPtr, j) + .object(const $Response_Builder$Type()); + } + + static final _id_build = _class.instanceMethodId( + r'build', + r'()Lokhttp3/Response;', + ); + + static final _build = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public okhttp3.Response build()` + /// The returned object must be released after use, by calling the [release] method. + Response build() { + return _build(reference.pointer, _id_build as _$jni.JMethodIDPtr) + .object(const $Response$Type()); + } +} + +final class $Response_Builder$Type extends _$jni.JObjType { + @_$jni.internal + const $Response_Builder$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Response$Builder;'; + + @_$jni.internal + @_$core.override + Response_Builder fromReference(_$jni.JReference reference) => + Response_Builder.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Response_Builder$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Response_Builder$Type) && + other is $Response_Builder$Type; + } +} + +/// from: `okhttp3.Response` +class Response extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Response.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Response'); + + /// The type which includes information such as the signature of this class. + static const type = $Response$Type(); + static final _id_new$ = _class.constructorId( + r'(Lokhttp3/Request;Lokhttp3/Protocol;Ljava/lang/String;ILokhttp3/Handshake;Lokhttp3/Headers;Lokhttp3/ResponseBody;Lokhttp3/Response;Lokhttp3/Response;Lokhttp3/Response;JJLokhttp3/internal/connection/Exchange;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int, + int, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (okhttp3.Request request, okhttp3.Protocol protocol, java.lang.String string, int i, okhttp3.Handshake handshake, okhttp3.Headers headers, okhttp3.ResponseBody responseBody, okhttp3.Response response, okhttp3.Response response1, okhttp3.Response response2, long j, long j1, okhttp3.internal.connection.Exchange exchange)` + /// The returned object must be released after use, by calling the [release] method. + factory Response( + Request request, + _$jni.JObject protocol, + _$jni.JString string, + int i, + _$jni.JObject handshake, + Headers headers, + ResponseBody responseBody, + Response response, + Response response1, + Response response2, + int j, + int j1, + _$jni.JObject exchange, + ) { + return Response.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + request.reference.pointer, + protocol.reference.pointer, + string.reference.pointer, + i, + handshake.reference.pointer, + headers.reference.pointer, + responseBody.reference.pointer, + response.reference.pointer, + response1.reference.pointer, + response2.reference.pointer, + j, + j1, + exchange.reference.pointer) + .reference); + } + + static final _id_request = _class.instanceMethodId( + r'request', + r'()Lokhttp3/Request;', + ); + + static final _request = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Request request()` + /// The returned object must be released after use, by calling the [release] method. + Request request() { + return _request(reference.pointer, _id_request as _$jni.JMethodIDPtr) + .object(const $Request$Type()); + } + + static final _id_protocol = _class.instanceMethodId( + r'protocol', + r'()Lokhttp3/Protocol;', + ); + + static final _protocol = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Protocol protocol()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject protocol() { + return _protocol(reference.pointer, _id_protocol as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_message = _class.instanceMethodId( + r'message', + r'()Ljava/lang/String;', + ); + + static final _message = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.lang.String message()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString message() { + return _message(reference.pointer, _id_message as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } + + static final _id_code = _class.instanceMethodId( + r'code', + r'()I', + ); + + static final _code = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int code()` + int code() { + return _code(reference.pointer, _id_code as _$jni.JMethodIDPtr).integer; + } + + static final _id_handshake = _class.instanceMethodId( + r'handshake', + r'()Lokhttp3/Handshake;', + ); + + static final _handshake = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Handshake handshake()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject handshake() { + return _handshake(reference.pointer, _id_handshake as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_headers = _class.instanceMethodId( + r'headers', + r'()Lokhttp3/Headers;', + ); + + static final _headers = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Headers headers()` + /// The returned object must be released after use, by calling the [release] method. + Headers headers() { + return _headers(reference.pointer, _id_headers as _$jni.JMethodIDPtr) + .object(const $Headers$Type()); + } + + static final _id_body = _class.instanceMethodId( + r'body', + r'()Lokhttp3/ResponseBody;', + ); + + static final _body = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.ResponseBody body()` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody body() { + return _body(reference.pointer, _id_body as _$jni.JMethodIDPtr) + .object(const $ResponseBody$Type()); + } + + static final _id_networkResponse = _class.instanceMethodId( + r'networkResponse', + r'()Lokhttp3/Response;', + ); + + static final _networkResponse = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Response networkResponse()` + /// The returned object must be released after use, by calling the [release] method. + Response networkResponse() { + return _networkResponse( + reference.pointer, _id_networkResponse as _$jni.JMethodIDPtr) + .object(const $Response$Type()); + } + + static final _id_cacheResponse = _class.instanceMethodId( + r'cacheResponse', + r'()Lokhttp3/Response;', + ); + + static final _cacheResponse = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Response cacheResponse()` + /// The returned object must be released after use, by calling the [release] method. + Response cacheResponse() { + return _cacheResponse( + reference.pointer, _id_cacheResponse as _$jni.JMethodIDPtr) + .object(const $Response$Type()); + } + + static final _id_priorResponse = _class.instanceMethodId( + r'priorResponse', + r'()Lokhttp3/Response;', + ); + + static final _priorResponse = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Response priorResponse()` + /// The returned object must be released after use, by calling the [release] method. + Response priorResponse() { + return _priorResponse( + reference.pointer, _id_priorResponse as _$jni.JMethodIDPtr) + .object(const $Response$Type()); + } + + static final _id_sentRequestAtMillis = _class.instanceMethodId( + r'sentRequestAtMillis', + r'()J', + ); + + static final _sentRequestAtMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final long sentRequestAtMillis()` + int sentRequestAtMillis() { + return _sentRequestAtMillis( + reference.pointer, _id_sentRequestAtMillis as _$jni.JMethodIDPtr) + .long; + } + + static final _id_receivedResponseAtMillis = _class.instanceMethodId( + r'receivedResponseAtMillis', + r'()J', + ); + + static final _receivedResponseAtMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final long receivedResponseAtMillis()` + int receivedResponseAtMillis() { + return _receivedResponseAtMillis(reference.pointer, + _id_receivedResponseAtMillis as _$jni.JMethodIDPtr) + .long; + } + + static final _id_exchange = _class.instanceMethodId( + r'exchange', + r'()Lokhttp3/internal/connection/Exchange;', + ); + + static final _exchange = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.internal.connection.Exchange exchange()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject exchange() { + return _exchange(reference.pointer, _id_exchange as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_isSuccessful = _class.instanceMethodId( + r'isSuccessful', + r'()Z', + ); + + static final _isSuccessful = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final boolean isSuccessful()` + bool isSuccessful() { + return _isSuccessful( + reference.pointer, _id_isSuccessful as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_headers$1 = _class.instanceMethodId( + r'headers', + r'(Ljava/lang/String;)Ljava/util/List;', + ); + + static final _headers$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.util.List headers(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JString> headers$1( + _$jni.JString string, + ) { + return _headers$1(reference.pointer, _id_headers$1 as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JListType(_$jni.JStringType())); + } + + static final _id_header = _class.instanceMethodId( + r'header', + r'(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', + ); + + static final _header = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.lang.String header(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString header( + _$jni.JString string, + _$jni.JString string1, + ) { + return _header(reference.pointer, _id_header as _$jni.JMethodIDPtr, + string.reference.pointer, string1.reference.pointer) + .object(const _$jni.JStringType()); + } + + static final _id_trailers = _class.instanceMethodId( + r'trailers', + r'()Lokhttp3/Headers;', + ); + + static final _trailers = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Headers trailers()` + /// The returned object must be released after use, by calling the [release] method. + Headers trailers() { + return _trailers(reference.pointer, _id_trailers as _$jni.JMethodIDPtr) + .object(const $Headers$Type()); + } + + static final _id_peekBody = _class.instanceMethodId( + r'peekBody', + r'(J)Lokhttp3/ResponseBody;', + ); + + static final _peekBody = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final okhttp3.ResponseBody peekBody(long j)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody peekBody( + int j, + ) { + return _peekBody(reference.pointer, _id_peekBody as _$jni.JMethodIDPtr, j) + .object(const $ResponseBody$Type()); + } + + static final _id_newBuilder = _class.instanceMethodId( + r'newBuilder', + r'()Lokhttp3/Response$Builder;', + ); + + static final _newBuilder = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Response$Builder newBuilder()` + /// The returned object must be released after use, by calling the [release] method. + Response_Builder newBuilder() { + return _newBuilder(reference.pointer, _id_newBuilder as _$jni.JMethodIDPtr) + .object(const $Response_Builder$Type()); + } + + static final _id_isRedirect = _class.instanceMethodId( + r'isRedirect', + r'()Z', + ); + + static final _isRedirect = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final boolean isRedirect()` + bool isRedirect() { + return _isRedirect(reference.pointer, _id_isRedirect as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_challenges = _class.instanceMethodId( + r'challenges', + r'()Ljava/util/List;', + ); + + static final _challenges = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List challenges()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> challenges() { + return _challenges(reference.pointer, _id_challenges as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_cacheControl = _class.instanceMethodId( + r'cacheControl', + r'()Lokhttp3/CacheControl;', + ); + + static final _cacheControl = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.CacheControl cacheControl()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject cacheControl() { + return _cacheControl( + reference.pointer, _id_cacheControl as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_close = _class.instanceMethodId( + r'close', + r'()V', + ); + + static final _close = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void close()` + void close() { + _close(reference.pointer, _id_close as _$jni.JMethodIDPtr).check(); + } + + static final _id_toString$1 = _class.instanceMethodId( + r'toString', + r'()Ljava/lang/String;', + ); + + static final _toString$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String toString()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString toString$1() { + return _toString$1(reference.pointer, _id_toString$1 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } + + static final _id_header$1 = _class.instanceMethodId( + r'header', + r'(Ljava/lang/String;)Ljava/lang/String;', + ); + + static final _header$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.lang.String header(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString header$1( + _$jni.JString string, + ) { + return _header$1(reference.pointer, _id_header$1 as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JStringType()); + } +} + +final class $Response$Type extends _$jni.JObjType { + @_$jni.internal + const $Response$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Response;'; + + @_$jni.internal + @_$core.override + Response fromReference(_$jni.JReference reference) => + Response.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Response$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Response$Type) && other is $Response$Type; + } +} + +/// from: `okhttp3.ResponseBody$BomAwareReader` +class ResponseBody_BomAwareReader extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + ResponseBody_BomAwareReader.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = + _$jni.JClass.forName(r'okhttp3/ResponseBody$BomAwareReader'); + + /// The type which includes information such as the signature of this class. + static const type = $ResponseBody_BomAwareReader$Type(); + static final _id_new$ = _class.constructorId( + r'(Lokio/BufferedSource;Ljava/nio/charset/Charset;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (okio.BufferedSource bufferedSource, java.nio.charset.Charset charset)` + /// The returned object must be released after use, by calling the [release] method. + factory ResponseBody_BomAwareReader( + _$jni.JObject bufferedSource, + _$jni.JObject charset, + ) { + return ResponseBody_BomAwareReader.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + bufferedSource.reference.pointer, + charset.reference.pointer) + .reference); + } + + static final _id_read = _class.instanceMethodId( + r'read', + r'([CII)I', + ); + + static final _read = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); + + /// from: `public int read(char[] cs, int i, int i1)` + int read( + _$jni.JArray<_$jni.jchar> cs, + int i, + int i1, + ) { + return _read(reference.pointer, _id_read as _$jni.JMethodIDPtr, + cs.reference.pointer, i, i1) + .integer; + } + + static final _id_close = _class.instanceMethodId( + r'close', + r'()V', + ); + + static final _close = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void close()` + void close() { + _close(reference.pointer, _id_close as _$jni.JMethodIDPtr).check(); + } +} + +final class $ResponseBody_BomAwareReader$Type + extends _$jni.JObjType { + @_$jni.internal + const $ResponseBody_BomAwareReader$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ResponseBody$BomAwareReader;'; + + @_$jni.internal + @_$core.override + ResponseBody_BomAwareReader fromReference(_$jni.JReference reference) => + ResponseBody_BomAwareReader.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ResponseBody_BomAwareReader$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ResponseBody_BomAwareReader$Type) && + other is $ResponseBody_BomAwareReader$Type; + } +} + +/// from: `okhttp3.ResponseBody$Companion` +class ResponseBody_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + ResponseBody_Companion.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody$Companion'); + + /// The type which includes information such as the signature of this class. + static const type = $ResponseBody_Companion$Type(); + static final _id_create = _class.instanceMethodId( + r'create', + r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', + ); + + static final _create = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.ResponseBody create(java.lang.String string, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create( + _$jni.JString string, + _$jni.JObject mediaType, + ) { + return _create(reference.pointer, _id_create as _$jni.JMethodIDPtr, + string.reference.pointer, mediaType.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$1 = _class.instanceMethodId( + r'create', + r'([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;', + ); + + static final _create$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.ResponseBody create(byte[] bs, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create$1( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + ) { + return _create$1(reference.pointer, _id_create$1 as _$jni.JMethodIDPtr, + bs.reference.pointer, mediaType.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$2 = _class.instanceMethodId( + r'create', + r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', + ); + + static final _create$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.ResponseBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create$2( + ByteString byteString, + _$jni.JObject mediaType, + ) { + return _create$2(reference.pointer, _id_create$2 as _$jni.JMethodIDPtr, + byteString.reference.pointer, mediaType.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$3 = _class.instanceMethodId( + r'create', + r'(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;', + ); + + static final _create$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int64 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); + + /// from: `public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create$3( + _$jni.JObject bufferedSource, + _$jni.JObject mediaType, + int j, + ) { + return _create$3(reference.pointer, _id_create$3 as _$jni.JMethodIDPtr, + bufferedSource.reference.pointer, mediaType.reference.pointer, j) + .object(const $ResponseBody$Type()); + } + + static final _id_create$4 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;', + ); + + static final _create$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create$4( + _$jni.JObject mediaType, + _$jni.JString string, + ) { + return _create$4(reference.pointer, _id_create$4 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, string.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$5 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;', + ); + + static final _create$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create$5( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _create$5(reference.pointer, _id_create$5 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, bs.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$6 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;', + ); + + static final _create$6 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create$6( + _$jni.JObject mediaType, + ByteString byteString, + ) { + return _create$6(reference.pointer, _id_create$6 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, byteString.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$7 = _class.instanceMethodId( + r'create', + r'(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;', + ); + + static final _create$7 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource)` + /// The returned object must be released after use, by calling the [release] method. + ResponseBody create$7( + _$jni.JObject mediaType, + int j, + _$jni.JObject bufferedSource, + ) { + return _create$7(reference.pointer, _id_create$7 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, j, bufferedSource.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory ResponseBody_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return ResponseBody_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } +} + +final class $ResponseBody_Companion$Type + extends _$jni.JObjType { + @_$jni.internal + const $ResponseBody_Companion$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ResponseBody$Companion;'; + + @_$jni.internal + @_$core.override + ResponseBody_Companion fromReference(_$jni.JReference reference) => + ResponseBody_Companion.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ResponseBody_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ResponseBody_Companion$Type) && + other is $ResponseBody_Companion$Type; + } +} + +/// from: `okhttp3.ResponseBody` +class ResponseBody extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + ResponseBody.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/ResponseBody'); + + /// The type which includes information such as the signature of this class. + static const type = $ResponseBody$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/ResponseBody$Companion;', + ); + + /// from: `static public final okhttp3.ResponseBody$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody_Companion get Companion => + _id_Companion.get(_class, const $ResponseBody_Companion$Type()); + + static final _id_contentType = _class.instanceMethodId( + r'contentType', + r'()Lokhttp3/MediaType;', + ); + + static final _contentType = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okhttp3.MediaType contentType()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject contentType() { + return _contentType( + reference.pointer, _id_contentType as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_contentLength = _class.instanceMethodId( + r'contentLength', + r'()J', + ); + + static final _contentLength = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract long contentLength()` + int contentLength() { + return _contentLength( + reference.pointer, _id_contentLength as _$jni.JMethodIDPtr) + .long; + } + + static final _id_byteStream = _class.instanceMethodId( + r'byteStream', + r'()Ljava/io/InputStream;', + ); + + static final _byteStream = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.io.InputStream byteStream()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject byteStream() { + return _byteStream(reference.pointer, _id_byteStream as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_source = _class.instanceMethodId( + r'source', + r'()Lokio/BufferedSource;', + ); + + static final _source = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okio.BufferedSource source()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject source() { + return _source(reference.pointer, _id_source as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_bytes = _class.instanceMethodId( + r'bytes', + r'()[B', + ); + + static final _bytes = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final byte[] bytes()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JArray<_$jni.jbyte> bytes() { + return _bytes(reference.pointer, _id_bytes as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jbyteType())); + } + + static final _id_byteString = _class.instanceMethodId( + r'byteString', + r'()Lokio/ByteString;', + ); + + static final _byteString = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okio.ByteString byteString()` + /// The returned object must be released after use, by calling the [release] method. + ByteString byteString() { + return _byteString(reference.pointer, _id_byteString as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); + } + + static final _id_charStream = _class.instanceMethodId( + r'charStream', + r'()Ljava/io/Reader;', + ); + + static final _charStream = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.io.Reader charStream()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject charStream() { + return _charStream(reference.pointer, _id_charStream as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_string = _class.instanceMethodId( + r'string', + r'()Ljava/lang/String;', + ); + + static final _string = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.lang.String string()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString string() { + return _string(reference.pointer, _id_string as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } + + static final _id_close = _class.instanceMethodId( + r'close', + r'()V', + ); + + static final _close = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void close()` + void close() { + _close(reference.pointer, _id_close as _$jni.JMethodIDPtr).check(); + } + + static final _id_create = _class.staticMethodId( + r'create', + r'(Ljava/lang/String;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', + ); + + static final _create = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.ResponseBody create(java.lang.String string, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create( + _$jni.JString string, + _$jni.JObject mediaType, + ) { + return _create(_class.reference.pointer, _id_create as _$jni.JMethodIDPtr, + string.reference.pointer, mediaType.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$1 = _class.staticMethodId( + r'create', + r'([BLokhttp3/MediaType;)Lokhttp3/ResponseBody;', + ); + + static final _create$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.ResponseBody create(byte[] bs, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create$1( + _$jni.JArray<_$jni.jbyte> bs, + _$jni.JObject mediaType, + ) { + return _create$1( + _class.reference.pointer, + _id_create$1 as _$jni.JMethodIDPtr, + bs.reference.pointer, + mediaType.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$2 = _class.staticMethodId( + r'create', + r'(Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/ResponseBody;', + ); + + static final _create$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.ResponseBody create(okio.ByteString byteString, okhttp3.MediaType mediaType)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create$2( + ByteString byteString, + _$jni.JObject mediaType, + ) { + return _create$2( + _class.reference.pointer, + _id_create$2 as _$jni.JMethodIDPtr, + byteString.reference.pointer, + mediaType.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$3 = _class.staticMethodId( + r'create', + r'(Lokio/BufferedSource;Lokhttp3/MediaType;J)Lokhttp3/ResponseBody;', + ); + + static final _create$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Int64 + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + int)>(); + + /// from: `static public final okhttp3.ResponseBody create(okio.BufferedSource bufferedSource, okhttp3.MediaType mediaType, long j)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create$3( + _$jni.JObject bufferedSource, + _$jni.JObject mediaType, + int j, + ) { + return _create$3( + _class.reference.pointer, + _id_create$3 as _$jni.JMethodIDPtr, + bufferedSource.reference.pointer, + mediaType.reference.pointer, + j) + .object(const $ResponseBody$Type()); + } + + static final _id_create$4 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;Ljava/lang/String;)Lokhttp3/ResponseBody;', + ); + + static final _create$4 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create$4( + _$jni.JObject mediaType, + _$jni.JString string, + ) { + return _create$4( + _class.reference.pointer, + _id_create$4 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + string.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$5 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;[B)Lokhttp3/ResponseBody;', + ); + + static final _create$5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create$5( + _$jni.JObject mediaType, + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _create$5( + _class.reference.pointer, + _id_create$5 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + bs.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$6 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;Lokio/ByteString;)Lokhttp3/ResponseBody;', + ); + + static final _create$6 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, okio.ByteString byteString)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create$6( + _$jni.JObject mediaType, + ByteString byteString, + ) { + return _create$6( + _class.reference.pointer, + _id_create$6 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + byteString.reference.pointer) + .object(const $ResponseBody$Type()); + } + + static final _id_create$7 = _class.staticMethodId( + r'create', + r'(Lokhttp3/MediaType;JLokio/BufferedSource;)Lokhttp3/ResponseBody;', + ); + + static final _create$7 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.ResponseBody create(okhttp3.MediaType mediaType, long j, okio.BufferedSource bufferedSource)` + /// The returned object must be released after use, by calling the [release] method. + static ResponseBody create$7( + _$jni.JObject mediaType, + int j, + _$jni.JObject bufferedSource, + ) { + return _create$7( + _class.reference.pointer, + _id_create$7 as _$jni.JMethodIDPtr, + mediaType.reference.pointer, + j, + bufferedSource.reference.pointer) + .object(const $ResponseBody$Type()); + } +} + +final class $ResponseBody$Type extends _$jni.JObjType { + @_$jni.internal + const $ResponseBody$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ResponseBody;'; + + @_$jni.internal + @_$core.override + ResponseBody fromReference(_$jni.JReference reference) => + ResponseBody.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ResponseBody$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ResponseBody$Type) && + other is $ResponseBody$Type; + } +} + +/// from: `okhttp3.OkHttpClient$Builder` +class OkHttpClient_Builder extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + OkHttpClient_Builder.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Builder'); + + /// The type which includes information such as the signature of this class. + static const type = $OkHttpClient_Builder$Type(); + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory OkHttpClient_Builder() { + return OkHttpClient_Builder.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); + } + + static final _id_new$1 = _class.constructorId( + r'(Lokhttp3/OkHttpClient;)V', + ); + + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (okhttp3.OkHttpClient okHttpClient)` + /// The returned object must be released after use, by calling the [release] method. + factory OkHttpClient_Builder.new$1( + OkHttpClient okHttpClient, + ) { + return OkHttpClient_Builder.fromReference(_new$1(_class.reference.pointer, + _id_new$1 as _$jni.JMethodIDPtr, okHttpClient.reference.pointer) + .reference); + } + + static final _id_dispatcher = _class.instanceMethodId( + r'dispatcher', + r'(Lokhttp3/Dispatcher;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _dispatcher = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder dispatcher(okhttp3.Dispatcher dispatcher)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder dispatcher( + Dispatcher dispatcher, + ) { + return _dispatcher(reference.pointer, _id_dispatcher as _$jni.JMethodIDPtr, + dispatcher.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_connectionPool = _class.instanceMethodId( + r'connectionPool', + r'(Lokhttp3/ConnectionPool;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _connectionPool = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder connectionPool(okhttp3.ConnectionPool connectionPool)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder connectionPool( + ConnectionPool connectionPool, + ) { + return _connectionPool( + reference.pointer, + _id_connectionPool as _$jni.JMethodIDPtr, + connectionPool.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_interceptors = _class.instanceMethodId( + r'interceptors', + r'()Ljava/util/List;', + ); + + static final _interceptors = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List interceptors()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> interceptors() { + return _interceptors( + reference.pointer, _id_interceptors as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_addInterceptor = _class.instanceMethodId( + r'addInterceptor', + r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _addInterceptor = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder addInterceptor(okhttp3.Interceptor interceptor)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder addInterceptor( + _$jni.JObject interceptor, + ) { + return _addInterceptor( + reference.pointer, + _id_addInterceptor as _$jni.JMethodIDPtr, + interceptor.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_networkInterceptors = _class.instanceMethodId( + r'networkInterceptors', + r'()Ljava/util/List;', + ); + + static final _networkInterceptors = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List networkInterceptors()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> networkInterceptors() { + return _networkInterceptors( + reference.pointer, _id_networkInterceptors as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_addNetworkInterceptor = _class.instanceMethodId( + r'addNetworkInterceptor', + r'(Lokhttp3/Interceptor;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _addNetworkInterceptor = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder addNetworkInterceptor(okhttp3.Interceptor interceptor)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder addNetworkInterceptor( + _$jni.JObject interceptor, + ) { + return _addNetworkInterceptor( + reference.pointer, + _id_addNetworkInterceptor as _$jni.JMethodIDPtr, + interceptor.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_eventListener = _class.instanceMethodId( + r'eventListener', + r'(Lokhttp3/EventListener;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _eventListener = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder eventListener(okhttp3.EventListener eventListener)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder eventListener( + _$jni.JObject eventListener, + ) { + return _eventListener( + reference.pointer, + _id_eventListener as _$jni.JMethodIDPtr, + eventListener.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_eventListenerFactory = _class.instanceMethodId( + r'eventListenerFactory', + r'(Lokhttp3/EventListener$Factory;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _eventListenerFactory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder eventListenerFactory(okhttp3.EventListener$Factory factory)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder eventListenerFactory( + _$jni.JObject factory, + ) { + return _eventListenerFactory( + reference.pointer, + _id_eventListenerFactory as _$jni.JMethodIDPtr, + factory.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_retryOnConnectionFailure = _class.instanceMethodId( + r'retryOnConnectionFailure', + r'(Z)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _retryOnConnectionFailure = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder retryOnConnectionFailure(boolean z)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder retryOnConnectionFailure( + bool z, + ) { + return _retryOnConnectionFailure(reference.pointer, + _id_retryOnConnectionFailure as _$jni.JMethodIDPtr, z ? 1 : 0) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_authenticator = _class.instanceMethodId( + r'authenticator', + r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _authenticator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder authenticator(okhttp3.Authenticator authenticator)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder authenticator( + _$jni.JObject authenticator, + ) { + return _authenticator( + reference.pointer, + _id_authenticator as _$jni.JMethodIDPtr, + authenticator.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_followRedirects = _class.instanceMethodId( + r'followRedirects', + r'(Z)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _followRedirects = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder followRedirects(boolean z)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder followRedirects( + bool z, + ) { + return _followRedirects(reference.pointer, + _id_followRedirects as _$jni.JMethodIDPtr, z ? 1 : 0) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_followSslRedirects = _class.instanceMethodId( + r'followSslRedirects', + r'(Z)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _followSslRedirects = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder followSslRedirects(boolean z)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder followSslRedirects( + bool z, + ) { + return _followSslRedirects(reference.pointer, + _id_followSslRedirects as _$jni.JMethodIDPtr, z ? 1 : 0) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_cookieJar = _class.instanceMethodId( + r'cookieJar', + r'(Lokhttp3/CookieJar;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _cookieJar = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder cookieJar(okhttp3.CookieJar cookieJar)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder cookieJar( + _$jni.JObject cookieJar, + ) { + return _cookieJar(reference.pointer, _id_cookieJar as _$jni.JMethodIDPtr, + cookieJar.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_cache = _class.instanceMethodId( + r'cache', + r'(Lokhttp3/Cache;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _cache = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder cache(okhttp3.Cache cache)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder cache( + Cache cache, + ) { + return _cache(reference.pointer, _id_cache as _$jni.JMethodIDPtr, + cache.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_dns = _class.instanceMethodId( + r'dns', + r'(Lokhttp3/Dns;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _dns = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder dns(okhttp3.Dns dns)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder dns( + _$jni.JObject dns, + ) { + return _dns(reference.pointer, _id_dns as _$jni.JMethodIDPtr, + dns.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_proxy = _class.instanceMethodId( + r'proxy', + r'(Ljava/net/Proxy;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _proxy = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder proxy(java.net.Proxy proxy)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder proxy( + _$jni.JObject proxy, + ) { + return _proxy(reference.pointer, _id_proxy as _$jni.JMethodIDPtr, + proxy.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_proxySelector = _class.instanceMethodId( + r'proxySelector', + r'(Ljava/net/ProxySelector;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _proxySelector = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder proxySelector(java.net.ProxySelector proxySelector)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder proxySelector( + _$jni.JObject proxySelector, + ) { + return _proxySelector( + reference.pointer, + _id_proxySelector as _$jni.JMethodIDPtr, + proxySelector.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_proxyAuthenticator = _class.instanceMethodId( + r'proxyAuthenticator', + r'(Lokhttp3/Authenticator;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _proxyAuthenticator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder proxyAuthenticator(okhttp3.Authenticator authenticator)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder proxyAuthenticator( + _$jni.JObject authenticator, + ) { + return _proxyAuthenticator( + reference.pointer, + _id_proxyAuthenticator as _$jni.JMethodIDPtr, + authenticator.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_socketFactory = _class.instanceMethodId( + r'socketFactory', + r'(Ljavax/net/SocketFactory;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _socketFactory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder socketFactory(javax.net.SocketFactory socketFactory)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder socketFactory( + _$jni.JObject socketFactory, + ) { + return _socketFactory( + reference.pointer, + _id_socketFactory as _$jni.JMethodIDPtr, + socketFactory.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_sslSocketFactory = _class.instanceMethodId( + r'sslSocketFactory', + r'(Ljavax/net/ssl/SSLSocketFactory;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _sslSocketFactory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder sslSocketFactory( + _$jni.JObject sSLSocketFactory, + ) { + return _sslSocketFactory( + reference.pointer, + _id_sslSocketFactory as _$jni.JMethodIDPtr, + sSLSocketFactory.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_sslSocketFactory$1 = _class.instanceMethodId( + r'sslSocketFactory', + r'(Ljavax/net/ssl/SSLSocketFactory;Ljavax/net/ssl/X509TrustManager;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _sslSocketFactory$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder sslSocketFactory(javax.net.ssl.SSLSocketFactory sSLSocketFactory, javax.net.ssl.X509TrustManager x509TrustManager)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder sslSocketFactory$1( + _$jni.JObject sSLSocketFactory, + _$jni.JObject x509TrustManager, + ) { + return _sslSocketFactory$1( + reference.pointer, + _id_sslSocketFactory$1 as _$jni.JMethodIDPtr, + sSLSocketFactory.reference.pointer, + x509TrustManager.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_connectionSpecs = _class.instanceMethodId( + r'connectionSpecs', + r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _connectionSpecs = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder connectionSpecs(java.util.List list)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder connectionSpecs( + _$jni.JList<_$jni.JObject> list, + ) { + return _connectionSpecs(reference.pointer, + _id_connectionSpecs as _$jni.JMethodIDPtr, list.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_protocols = _class.instanceMethodId( + r'protocols', + r'(Ljava/util/List;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _protocols = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder protocols(java.util.List list)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder protocols( + _$jni.JList<_$jni.JObject> list, + ) { + return _protocols(reference.pointer, _id_protocols as _$jni.JMethodIDPtr, + list.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_hostnameVerifier = _class.instanceMethodId( + r'hostnameVerifier', + r'(Ljavax/net/ssl/HostnameVerifier;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _hostnameVerifier = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder hostnameVerifier(javax.net.ssl.HostnameVerifier hostnameVerifier)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder hostnameVerifier( + _$jni.JObject hostnameVerifier, + ) { + return _hostnameVerifier( + reference.pointer, + _id_hostnameVerifier as _$jni.JMethodIDPtr, + hostnameVerifier.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_certificatePinner = _class.instanceMethodId( + r'certificatePinner', + r'(Lokhttp3/CertificatePinner;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _certificatePinner = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder certificatePinner(okhttp3.CertificatePinner certificatePinner)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder certificatePinner( + _$jni.JObject certificatePinner, + ) { + return _certificatePinner( + reference.pointer, + _id_certificatePinner as _$jni.JMethodIDPtr, + certificatePinner.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_callTimeout = _class.instanceMethodId( + r'callTimeout', + r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _callTimeout = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder callTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder callTimeout( + int j, + TimeUnit timeUnit, + ) { + return _callTimeout( + reference.pointer, + _id_callTimeout as _$jni.JMethodIDPtr, + j, + timeUnit.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_callTimeout$1 = _class.instanceMethodId( + r'callTimeout', + r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _callTimeout$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder callTimeout(java.time.Duration duration)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder callTimeout$1( + _$jni.JObject duration, + ) { + return _callTimeout$1(reference.pointer, + _id_callTimeout$1 as _$jni.JMethodIDPtr, duration.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_connectTimeout = _class.instanceMethodId( + r'connectTimeout', + r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _connectTimeout = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder connectTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder connectTimeout( + int j, + TimeUnit timeUnit, + ) { + return _connectTimeout( + reference.pointer, + _id_connectTimeout as _$jni.JMethodIDPtr, + j, + timeUnit.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_connectTimeout$1 = _class.instanceMethodId( + r'connectTimeout', + r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _connectTimeout$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder connectTimeout(java.time.Duration duration)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder connectTimeout$1( + _$jni.JObject duration, + ) { + return _connectTimeout$1( + reference.pointer, + _id_connectTimeout$1 as _$jni.JMethodIDPtr, + duration.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_readTimeout = _class.instanceMethodId( + r'readTimeout', + r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _readTimeout = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder readTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder readTimeout( + int j, + TimeUnit timeUnit, + ) { + return _readTimeout( + reference.pointer, + _id_readTimeout as _$jni.JMethodIDPtr, + j, + timeUnit.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_readTimeout$1 = _class.instanceMethodId( + r'readTimeout', + r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _readTimeout$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder readTimeout(java.time.Duration duration)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder readTimeout$1( + _$jni.JObject duration, + ) { + return _readTimeout$1(reference.pointer, + _id_readTimeout$1 as _$jni.JMethodIDPtr, duration.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_writeTimeout = _class.instanceMethodId( + r'writeTimeout', + r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _writeTimeout = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder writeTimeout(long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder writeTimeout( + int j, + TimeUnit timeUnit, + ) { + return _writeTimeout( + reference.pointer, + _id_writeTimeout as _$jni.JMethodIDPtr, + j, + timeUnit.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_writeTimeout$1 = _class.instanceMethodId( + r'writeTimeout', + r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _writeTimeout$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder writeTimeout(java.time.Duration duration)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder writeTimeout$1( + _$jni.JObject duration, + ) { + return _writeTimeout$1( + reference.pointer, + _id_writeTimeout$1 as _$jni.JMethodIDPtr, + duration.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_pingInterval = _class.instanceMethodId( + r'pingInterval', + r'(JLjava/util/concurrent/TimeUnit;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _pingInterval = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder pingInterval(long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder pingInterval( + int j, + TimeUnit timeUnit, + ) { + return _pingInterval( + reference.pointer, + _id_pingInterval as _$jni.JMethodIDPtr, + j, + timeUnit.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_pingInterval$1 = _class.instanceMethodId( + r'pingInterval', + r'(Ljava/time/Duration;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _pingInterval$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder pingInterval(java.time.Duration duration)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder pingInterval$1( + _$jni.JObject duration, + ) { + return _pingInterval$1( + reference.pointer, + _id_pingInterval$1 as _$jni.JMethodIDPtr, + duration.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( + r'minWebSocketMessageToCompress', + r'(J)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _minWebSocketMessageToCompress = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Int64,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder minWebSocketMessageToCompress(long j)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder minWebSocketMessageToCompress( + int j, + ) { + return _minWebSocketMessageToCompress(reference.pointer, + _id_minWebSocketMessageToCompress as _$jni.JMethodIDPtr, j) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_build = _class.instanceMethodId( + r'build', + r'()Lokhttp3/OkHttpClient;', + ); + + static final _build = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.OkHttpClient build()` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient build() { + return _build(reference.pointer, _id_build as _$jni.JMethodIDPtr) + .object(const $OkHttpClient$Type()); + } +} + +final class $OkHttpClient_Builder$Type + extends _$jni.JObjType { + @_$jni.internal + const $OkHttpClient_Builder$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/OkHttpClient$Builder;'; + + @_$jni.internal + @_$core.override + OkHttpClient_Builder fromReference(_$jni.JReference reference) => + OkHttpClient_Builder.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($OkHttpClient_Builder$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($OkHttpClient_Builder$Type) && + other is $OkHttpClient_Builder$Type; + } +} + +/// from: `okhttp3.OkHttpClient$Companion` +class OkHttpClient_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + OkHttpClient_Companion.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Companion'); + + /// The type which includes information such as the signature of this class. + static const type = $OkHttpClient_Companion$Type(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory OkHttpClient_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return OkHttpClient_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } +} + +final class $OkHttpClient_Companion$Type + extends _$jni.JObjType { + @_$jni.internal + const $OkHttpClient_Companion$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/OkHttpClient$Companion;'; + + @_$jni.internal + @_$core.override + OkHttpClient_Companion fromReference(_$jni.JReference reference) => + OkHttpClient_Companion.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($OkHttpClient_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($OkHttpClient_Companion$Type) && + other is $OkHttpClient_Companion$Type; + } +} + +/// from: `okhttp3.OkHttpClient` +class OkHttpClient extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + OkHttpClient.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient'); + + /// The type which includes information such as the signature of this class. + static const type = $OkHttpClient$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/OkHttpClient$Companion;', + ); + + /// from: `static public final okhttp3.OkHttpClient$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static OkHttpClient_Companion get Companion => + _id_Companion.get(_class, const $OkHttpClient_Companion$Type()); + + static final _id_new$ = _class.constructorId( + r'(Lokhttp3/OkHttpClient$Builder;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (okhttp3.OkHttpClient$Builder builder)` + /// The returned object must be released after use, by calling the [release] method. + factory OkHttpClient( + OkHttpClient_Builder builder, + ) { + return OkHttpClient.fromReference(_new$(_class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, builder.reference.pointer) + .reference); + } + + static final _id_dispatcher = _class.instanceMethodId( + r'dispatcher', + r'()Lokhttp3/Dispatcher;', + ); + + static final _dispatcher = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Dispatcher dispatcher()` + /// The returned object must be released after use, by calling the [release] method. + Dispatcher dispatcher() { + return _dispatcher(reference.pointer, _id_dispatcher as _$jni.JMethodIDPtr) + .object(const $Dispatcher$Type()); + } + + static final _id_connectionPool = _class.instanceMethodId( + r'connectionPool', + r'()Lokhttp3/ConnectionPool;', + ); + + static final _connectionPool = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.ConnectionPool connectionPool()` + /// The returned object must be released after use, by calling the [release] method. + ConnectionPool connectionPool() { + return _connectionPool( + reference.pointer, _id_connectionPool as _$jni.JMethodIDPtr) + .object(const $ConnectionPool$Type()); + } + + static final _id_interceptors = _class.instanceMethodId( + r'interceptors', + r'()Ljava/util/List;', + ); + + static final _interceptors = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List interceptors()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> interceptors() { + return _interceptors( + reference.pointer, _id_interceptors as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_networkInterceptors = _class.instanceMethodId( + r'networkInterceptors', + r'()Ljava/util/List;', + ); + + static final _networkInterceptors = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List networkInterceptors()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> networkInterceptors() { + return _networkInterceptors( + reference.pointer, _id_networkInterceptors as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_eventListenerFactory = _class.instanceMethodId( + r'eventListenerFactory', + r'()Lokhttp3/EventListener$Factory;', + ); + + static final _eventListenerFactory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.EventListener$Factory eventListenerFactory()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject eventListenerFactory() { + return _eventListenerFactory( + reference.pointer, _id_eventListenerFactory as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_retryOnConnectionFailure = _class.instanceMethodId( + r'retryOnConnectionFailure', + r'()Z', + ); + + static final _retryOnConnectionFailure = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final boolean retryOnConnectionFailure()` + bool retryOnConnectionFailure() { + return _retryOnConnectionFailure(reference.pointer, + _id_retryOnConnectionFailure as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_authenticator = _class.instanceMethodId( + r'authenticator', + r'()Lokhttp3/Authenticator;', + ); + + static final _authenticator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Authenticator authenticator()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject authenticator() { + return _authenticator( + reference.pointer, _id_authenticator as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_followRedirects = _class.instanceMethodId( + r'followRedirects', + r'()Z', + ); + + static final _followRedirects = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final boolean followRedirects()` + bool followRedirects() { + return _followRedirects( + reference.pointer, _id_followRedirects as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_followSslRedirects = _class.instanceMethodId( + r'followSslRedirects', + r'()Z', + ); + + static final _followSslRedirects = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final boolean followSslRedirects()` + bool followSslRedirects() { + return _followSslRedirects( + reference.pointer, _id_followSslRedirects as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_cookieJar = _class.instanceMethodId( + r'cookieJar', + r'()Lokhttp3/CookieJar;', + ); + + static final _cookieJar = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.CookieJar cookieJar()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject cookieJar() { + return _cookieJar(reference.pointer, _id_cookieJar as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_cache = _class.instanceMethodId( + r'cache', + r'()Lokhttp3/Cache;', + ); + + static final _cache = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Cache cache()` + /// The returned object must be released after use, by calling the [release] method. + Cache cache() { + return _cache(reference.pointer, _id_cache as _$jni.JMethodIDPtr) + .object(const $Cache$Type()); + } + + static final _id_dns = _class.instanceMethodId( + r'dns', + r'()Lokhttp3/Dns;', + ); + + static final _dns = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Dns dns()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject dns() { + return _dns(reference.pointer, _id_dns as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_proxy = _class.instanceMethodId( + r'proxy', + r'()Ljava/net/Proxy;', + ); + + static final _proxy = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.net.Proxy proxy()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject proxy() { + return _proxy(reference.pointer, _id_proxy as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_proxySelector = _class.instanceMethodId( + r'proxySelector', + r'()Ljava/net/ProxySelector;', + ); + + static final _proxySelector = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.net.ProxySelector proxySelector()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject proxySelector() { + return _proxySelector( + reference.pointer, _id_proxySelector as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_proxyAuthenticator = _class.instanceMethodId( + r'proxyAuthenticator', + r'()Lokhttp3/Authenticator;', + ); + + static final _proxyAuthenticator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Authenticator proxyAuthenticator()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject proxyAuthenticator() { + return _proxyAuthenticator( + reference.pointer, _id_proxyAuthenticator as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_socketFactory = _class.instanceMethodId( + r'socketFactory', + r'()Ljavax/net/SocketFactory;', + ); + + static final _socketFactory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final javax.net.SocketFactory socketFactory()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject socketFactory() { + return _socketFactory( + reference.pointer, _id_socketFactory as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_sslSocketFactory = _class.instanceMethodId( + r'sslSocketFactory', + r'()Ljavax/net/ssl/SSLSocketFactory;', + ); + + static final _sslSocketFactory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final javax.net.ssl.SSLSocketFactory sslSocketFactory()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject sslSocketFactory() { + return _sslSocketFactory( + reference.pointer, _id_sslSocketFactory as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_x509TrustManager = _class.instanceMethodId( + r'x509TrustManager', + r'()Ljavax/net/ssl/X509TrustManager;', + ); + + static final _x509TrustManager = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final javax.net.ssl.X509TrustManager x509TrustManager()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject x509TrustManager() { + return _x509TrustManager( + reference.pointer, _id_x509TrustManager as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_connectionSpecs = _class.instanceMethodId( + r'connectionSpecs', + r'()Ljava/util/List;', + ); + + static final _connectionSpecs = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List connectionSpecs()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> connectionSpecs() { + return _connectionSpecs( + reference.pointer, _id_connectionSpecs as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_protocols = _class.instanceMethodId( + r'protocols', + r'()Ljava/util/List;', + ); + + static final _protocols = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List protocols()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> protocols() { + return _protocols(reference.pointer, _id_protocols as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_hostnameVerifier = _class.instanceMethodId( + r'hostnameVerifier', + r'()Ljavax/net/ssl/HostnameVerifier;', + ); + + static final _hostnameVerifier = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final javax.net.ssl.HostnameVerifier hostnameVerifier()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject hostnameVerifier() { + return _hostnameVerifier( + reference.pointer, _id_hostnameVerifier as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_certificatePinner = _class.instanceMethodId( + r'certificatePinner', + r'()Lokhttp3/CertificatePinner;', + ); + + static final _certificatePinner = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.CertificatePinner certificatePinner()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject certificatePinner() { + return _certificatePinner( + reference.pointer, _id_certificatePinner as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_certificateChainCleaner = _class.instanceMethodId( + r'certificateChainCleaner', + r'()Lokhttp3/internal/tls/CertificateChainCleaner;', + ); + + static final _certificateChainCleaner = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.internal.tls.CertificateChainCleaner certificateChainCleaner()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject certificateChainCleaner() { + return _certificateChainCleaner(reference.pointer, + _id_certificateChainCleaner as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_callTimeoutMillis = _class.instanceMethodId( + r'callTimeoutMillis', + r'()I', + ); + + static final _callTimeoutMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int callTimeoutMillis()` + int callTimeoutMillis() { + return _callTimeoutMillis( + reference.pointer, _id_callTimeoutMillis as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_connectTimeoutMillis = _class.instanceMethodId( + r'connectTimeoutMillis', + r'()I', + ); + + static final _connectTimeoutMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int connectTimeoutMillis()` + int connectTimeoutMillis() { + return _connectTimeoutMillis( + reference.pointer, _id_connectTimeoutMillis as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_readTimeoutMillis = _class.instanceMethodId( + r'readTimeoutMillis', + r'()I', + ); + + static final _readTimeoutMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int readTimeoutMillis()` + int readTimeoutMillis() { + return _readTimeoutMillis( + reference.pointer, _id_readTimeoutMillis as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_writeTimeoutMillis = _class.instanceMethodId( + r'writeTimeoutMillis', + r'()I', + ); + + static final _writeTimeoutMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int writeTimeoutMillis()` + int writeTimeoutMillis() { + return _writeTimeoutMillis( + reference.pointer, _id_writeTimeoutMillis as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_pingIntervalMillis = _class.instanceMethodId( + r'pingIntervalMillis', + r'()I', + ); + + static final _pingIntervalMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int pingIntervalMillis()` + int pingIntervalMillis() { + return _pingIntervalMillis( + reference.pointer, _id_pingIntervalMillis as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_minWebSocketMessageToCompress = _class.instanceMethodId( + r'minWebSocketMessageToCompress', + r'()J', + ); + + static final _minWebSocketMessageToCompress = + _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final long minWebSocketMessageToCompress()` + int minWebSocketMessageToCompress() { + return _minWebSocketMessageToCompress(reference.pointer, + _id_minWebSocketMessageToCompress as _$jni.JMethodIDPtr) + .long; + } + + static final _id_getRouteDatabase = _class.instanceMethodId( + r'getRouteDatabase', + r'()Lokhttp3/internal/connection/RouteDatabase;', + ); + + static final _getRouteDatabase = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.internal.connection.RouteDatabase getRouteDatabase()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject getRouteDatabase() { + return _getRouteDatabase( + reference.pointer, _id_getRouteDatabase as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_new$1 = _class.constructorId( + r'()V', + ); + + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory OkHttpClient.new$1() { + return OkHttpClient.fromReference( + _new$1(_class.reference.pointer, _id_new$1 as _$jni.JMethodIDPtr) + .reference); + } + + static final _id_newCall = _class.instanceMethodId( + r'newCall', + r'(Lokhttp3/Request;)Lokhttp3/Call;', + ); + + static final _newCall = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.Call newCall(okhttp3.Request request)` + /// The returned object must be released after use, by calling the [release] method. + Call newCall( + Request request, + ) { + return _newCall(reference.pointer, _id_newCall as _$jni.JMethodIDPtr, + request.reference.pointer) + .object(const $Call$Type()); + } + + static final _id_newWebSocket = _class.instanceMethodId( + r'newWebSocket', + r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', + ); + + static final _newWebSocket = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener)` + /// The returned object must be released after use, by calling the [release] method. + WebSocket newWebSocket( + Request request, + _$jni.JObject webSocketListener, + ) { + return _newWebSocket( + reference.pointer, + _id_newWebSocket as _$jni.JMethodIDPtr, + request.reference.pointer, + webSocketListener.reference.pointer) + .object(const $WebSocket$Type()); + } + + static final _id_newBuilder = _class.instanceMethodId( + r'newBuilder', + r'()Lokhttp3/OkHttpClient$Builder;', + ); + + static final _newBuilder = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public okhttp3.OkHttpClient$Builder newBuilder()` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder newBuilder() { + return _newBuilder(reference.pointer, _id_newBuilder as _$jni.JMethodIDPtr) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_clone = _class.instanceMethodId( + r'clone', + r'()Ljava/lang/Object;', + ); + + static final _clone = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public java.lang.Object clone()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject clone() { + return _clone(reference.pointer, _id_clone as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } +} + +final class $OkHttpClient$Type extends _$jni.JObjType { + @_$jni.internal + const $OkHttpClient$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/OkHttpClient;'; + + @_$jni.internal + @_$core.override + OkHttpClient fromReference(_$jni.JReference reference) => + OkHttpClient.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($OkHttpClient$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($OkHttpClient$Type) && + other is $OkHttpClient$Type; + } +} + +/// from: `okhttp3.Call$Factory` +class Call_Factory extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Call_Factory.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Call$Factory'); + + /// The type which includes information such as the signature of this class. + static const type = $Call_Factory$Type(); + static final _id_newCall = _class.instanceMethodId( + r'newCall', + r'(Lokhttp3/Request;)Lokhttp3/Call;', + ); + + static final _newCall = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract okhttp3.Call newCall(okhttp3.Request request)` + /// The returned object must be released after use, by calling the [release] method. + Call newCall( + Request request, + ) { + return _newCall(reference.pointer, _id_newCall as _$jni.JMethodIDPtr, + request.reference.pointer) + .object(const $Call$Type()); + } + + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'newCall(Lokhttp3/Request;)Lokhttp3/Call;') { + final $r = _$impls[$p]!.newCall( + $a[0].as(const $Request$Type(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } + + static void implementIn( + _$jni.JImplementer implementer, + $Call_Factory $impl, + ) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.Call$Factory', + $p, + _$invokePointer, + [], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory Call_Factory.implement( + $Call_Factory $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return Call_Factory.fromReference( + $i.implementReference(), + ); + } +} + +abstract base mixin class $Call_Factory { + factory $Call_Factory({ + required Call Function(Request request) newCall, + }) = _$Call_Factory; + + Call newCall(Request request); +} + +final class _$Call_Factory with $Call_Factory { + _$Call_Factory({ + required Call Function(Request request) newCall, + }) : _newCall = newCall; + + final Call Function(Request request) _newCall; + + Call newCall(Request request) { + return _newCall(request); + } +} + +final class $Call_Factory$Type extends _$jni.JObjType { + @_$jni.internal + const $Call_Factory$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Call$Factory;'; + + @_$jni.internal + @_$core.override + Call_Factory fromReference(_$jni.JReference reference) => + Call_Factory.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Call_Factory$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Call_Factory$Type) && + other is $Call_Factory$Type; + } +} + +/// from: `okhttp3.Call` +class Call extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Call.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Call'); + + /// The type which includes information such as the signature of this class. + static const type = $Call$Type(); + static final _id_request = _class.instanceMethodId( + r'request', + r'()Lokhttp3/Request;', + ); + + static final _request = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okhttp3.Request request()` + /// The returned object must be released after use, by calling the [release] method. + Request request() { + return _request(reference.pointer, _id_request as _$jni.JMethodIDPtr) + .object(const $Request$Type()); + } + + static final _id_execute = _class.instanceMethodId( + r'execute', + r'()Lokhttp3/Response;', + ); + + static final _execute = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okhttp3.Response execute()` + /// The returned object must be released after use, by calling the [release] method. + Response execute() { + return _execute(reference.pointer, _id_execute as _$jni.JMethodIDPtr) + .object(const $Response$Type()); + } + + static final _id_enqueue = _class.instanceMethodId( + r'enqueue', + r'(Lokhttp3/Callback;)V', + ); + + static final _enqueue = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract void enqueue(okhttp3.Callback callback)` + void enqueue( + Callback callback, + ) { + _enqueue(reference.pointer, _id_enqueue as _$jni.JMethodIDPtr, + callback.reference.pointer) + .check(); + } + + static final _id_cancel = _class.instanceMethodId( + r'cancel', + r'()V', + ); + + static final _cancel = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract void cancel()` + void cancel() { + _cancel(reference.pointer, _id_cancel as _$jni.JMethodIDPtr).check(); + } + + static final _id_isExecuted = _class.instanceMethodId( + r'isExecuted', + r'()Z', + ); + + static final _isExecuted = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract boolean isExecuted()` + bool isExecuted() { + return _isExecuted(reference.pointer, _id_isExecuted as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_isCanceled = _class.instanceMethodId( + r'isCanceled', + r'()Z', + ); + + static final _isCanceled = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract boolean isCanceled()` + bool isCanceled() { + return _isCanceled(reference.pointer, _id_isCanceled as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_timeout = _class.instanceMethodId( + r'timeout', + r'()Lokio/Timeout;', + ); + + static final _timeout = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okio.Timeout timeout()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject timeout() { + return _timeout(reference.pointer, _id_timeout as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_clone = _class.instanceMethodId( + r'clone', + r'()Lokhttp3/Call;', + ); + + static final _clone = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okhttp3.Call clone()` + /// The returned object must be released after use, by calling the [release] method. + Call clone() { + return _clone(reference.pointer, _id_clone as _$jni.JMethodIDPtr) + .object(const $Call$Type()); + } + + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'request()Lokhttp3/Request;') { + final $r = _$impls[$p]!.request(); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'execute()Lokhttp3/Response;') { + final $r = _$impls[$p]!.execute(); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'enqueue(Lokhttp3/Callback;)V') { + _$impls[$p]!.enqueue( + $a[0].as(const $Callback$Type(), releaseOriginal: true), + ); + return _$jni.nullptr; + } + if ($d == r'cancel()V') { + _$impls[$p]!.cancel(); + return _$jni.nullptr; + } + if ($d == r'isExecuted()Z') { + final $r = _$impls[$p]!.isExecuted(); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == r'isCanceled()Z') { + final $r = _$impls[$p]!.isCanceled(); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == r'timeout()Lokio/Timeout;') { + final $r = _$impls[$p]!.timeout(); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'clone()Lokhttp3/Call;') { + final $r = _$impls[$p]!.clone(); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } + + static void implementIn( + _$jni.JImplementer implementer, + $Call $impl, + ) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.Call', + $p, + _$invokePointer, + [ + if ($impl.enqueue$async) r'enqueue(Lokhttp3/Callback;)V', + if ($impl.cancel$async) r'cancel()V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory Call.implement( + $Call $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return Call.fromReference( + $i.implementReference(), + ); + } +} + +abstract base mixin class $Call { + factory $Call({ + required Request Function() request, + required Response Function() execute, + required void Function(Callback callback) enqueue, + bool enqueue$async, + required void Function() cancel, + bool cancel$async, + required bool Function() isExecuted, + required bool Function() isCanceled, + required _$jni.JObject Function() timeout, + required Call Function() clone, + }) = _$Call; + + Request request(); + Response execute(); + void enqueue(Callback callback); + bool get enqueue$async => false; + void cancel(); + bool get cancel$async => false; + bool isExecuted(); + bool isCanceled(); + _$jni.JObject timeout(); + Call clone(); +} + +final class _$Call with $Call { + _$Call({ + required Request Function() request, + required Response Function() execute, + required void Function(Callback callback) enqueue, + this.enqueue$async = false, + required void Function() cancel, + this.cancel$async = false, + required bool Function() isExecuted, + required bool Function() isCanceled, + required _$jni.JObject Function() timeout, + required Call Function() clone, + }) : _request = request, + _execute = execute, + _enqueue = enqueue, + _cancel = cancel, + _isExecuted = isExecuted, + _isCanceled = isCanceled, + _timeout = timeout, + _clone = clone; + + final Request Function() _request; + final Response Function() _execute; + final void Function(Callback callback) _enqueue; + final bool enqueue$async; + final void Function() _cancel; + final bool cancel$async; + final bool Function() _isExecuted; + final bool Function() _isCanceled; + final _$jni.JObject Function() _timeout; + final Call Function() _clone; + + Request request() { + return _request(); + } + + Response execute() { + return _execute(); + } + + void enqueue(Callback callback) { + return _enqueue(callback); + } + + void cancel() { + return _cancel(); + } + + bool isExecuted() { + return _isExecuted(); + } + + bool isCanceled() { + return _isCanceled(); + } + + _$jni.JObject timeout() { + return _timeout(); + } + + Call clone() { + return _clone(); + } +} + +final class $Call$Type extends _$jni.JObjType { + @_$jni.internal + const $Call$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Call;'; + + @_$jni.internal + @_$core.override + Call fromReference(_$jni.JReference reference) => + Call.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Call$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Call$Type) && other is $Call$Type; + } +} + +/// from: `okhttp3.Headers$Builder` +class Headers_Builder extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Headers_Builder.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Builder'); + + /// The type which includes information such as the signature of this class. + static const type = $Headers_Builder$Type(); + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory Headers_Builder() { + return Headers_Builder.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); + } + + static final _id_add = _class.instanceMethodId( + r'add', + r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', + ); + + static final _add = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder add(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder add( + _$jni.JString string, + ) { + return _add(reference.pointer, _id_add as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_add$1 = _class.instanceMethodId( + r'add', + r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', + ); + + static final _add$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder add$1( + _$jni.JString string, + _$jni.JString string1, + ) { + return _add$1(reference.pointer, _id_add$1 as _$jni.JMethodIDPtr, + string.reference.pointer, string1.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_addUnsafeNonAscii = _class.instanceMethodId( + r'addUnsafeNonAscii', + r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', + ); + + static final _addUnsafeNonAscii = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder addUnsafeNonAscii(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder addUnsafeNonAscii( + _$jni.JString string, + _$jni.JString string1, + ) { + return _addUnsafeNonAscii( + reference.pointer, + _id_addUnsafeNonAscii as _$jni.JMethodIDPtr, + string.reference.pointer, + string1.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_addAll = _class.instanceMethodId( + r'addAll', + r'(Lokhttp3/Headers;)Lokhttp3/Headers$Builder;', + ); + + static final _addAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder addAll(okhttp3.Headers headers)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder addAll( + Headers headers, + ) { + return _addAll(reference.pointer, _id_addAll as _$jni.JMethodIDPtr, + headers.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_add$2 = _class.instanceMethodId( + r'add', + r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', + ); + + static final _add$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.util.Date date)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder add$2( + _$jni.JString string, + _$jni.JObject date, + ) { + return _add$2(reference.pointer, _id_add$2 as _$jni.JMethodIDPtr, + string.reference.pointer, date.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_add$3 = _class.instanceMethodId( + r'add', + r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', + ); + + static final _add$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder add(java.lang.String string, java.time.Instant instant)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder add$3( + _$jni.JString string, + _$jni.JObject instant, + ) { + return _add$3(reference.pointer, _id_add$3 as _$jni.JMethodIDPtr, + string.reference.pointer, instant.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_set = _class.instanceMethodId( + r'set', + r'(Ljava/lang/String;Ljava/util/Date;)Lokhttp3/Headers$Builder;', + ); + + static final _set = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.util.Date date)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder set( + _$jni.JString string, + _$jni.JObject date, + ) { + return _set(reference.pointer, _id_set as _$jni.JMethodIDPtr, + string.reference.pointer, date.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_set$1 = _class.instanceMethodId( + r'set', + r'(Ljava/lang/String;Ljava/time/Instant;)Lokhttp3/Headers$Builder;', + ); + + static final _set$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.time.Instant instant)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder set$1( + _$jni.JString string, + _$jni.JObject instant, + ) { + return _set$1(reference.pointer, _id_set$1 as _$jni.JMethodIDPtr, + string.reference.pointer, instant.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_removeAll = _class.instanceMethodId( + r'removeAll', + r'(Ljava/lang/String;)Lokhttp3/Headers$Builder;', + ); + + static final _removeAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder removeAll(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder removeAll( + _$jni.JString string, + ) { + return _removeAll(reference.pointer, _id_removeAll as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_set$2 = _class.instanceMethodId( + r'set', + r'(Ljava/lang/String;Ljava/lang/String;)Lokhttp3/Headers$Builder;', + ); + + static final _set$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers$Builder set(java.lang.String string, java.lang.String string1)` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder set$2( + _$jni.JString string, + _$jni.JString string1, + ) { + return _set$2(reference.pointer, _id_set$2 as _$jni.JMethodIDPtr, + string.reference.pointer, string1.reference.pointer) + .object(const $Headers_Builder$Type()); + } + + static final _id_get = _class.instanceMethodId( + r'get', + r'(Ljava/lang/String;)Ljava/lang/String;', + ); + + static final _get = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.lang.String get(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString get( + _$jni.JString string, + ) { + return _get(reference.pointer, _id_get as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JStringType()); + } + + static final _id_build = _class.instanceMethodId( + r'build', + r'()Lokhttp3/Headers;', + ); + + static final _build = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Headers build()` + /// The returned object must be released after use, by calling the [release] method. + Headers build() { + return _build(reference.pointer, _id_build as _$jni.JMethodIDPtr) + .object(const $Headers$Type()); + } +} + +final class $Headers_Builder$Type extends _$jni.JObjType { + @_$jni.internal + const $Headers_Builder$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Headers$Builder;'; + + @_$jni.internal + @_$core.override + Headers_Builder fromReference(_$jni.JReference reference) => + Headers_Builder.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Headers_Builder$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Headers_Builder$Type) && + other is $Headers_Builder$Type; + } +} + +/// from: `okhttp3.Headers$Companion` +class Headers_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Headers_Companion.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Companion'); + + /// The type which includes information such as the signature of this class. + static const type = $Headers_Companion$Type(); + static final _id_of = _class.instanceMethodId( + r'of', + r'([Ljava/lang/String;)Lokhttp3/Headers;', + ); + + static final _of = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers of(java.lang.String[] strings)` + /// The returned object must be released after use, by calling the [release] method. + Headers of( + _$jni.JArray<_$jni.JString> strings, + ) { + return _of(reference.pointer, _id_of as _$jni.JMethodIDPtr, + strings.reference.pointer) + .object(const $Headers$Type()); + } + + static final _id_of$1 = _class.instanceMethodId( + r'of', + r'(Ljava/util/Map;)Lokhttp3/Headers;', + ); + + static final _of$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.Headers of(java.util.Map map)` + /// The returned object must be released after use, by calling the [release] method. + Headers of$1( + _$jni.JMap<_$jni.JString, _$jni.JString> map, + ) { + return _of$1(reference.pointer, _id_of$1 as _$jni.JMethodIDPtr, + map.reference.pointer) + .object(const $Headers$Type()); + } + + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory Headers_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return Headers_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } +} + +final class $Headers_Companion$Type extends _$jni.JObjType { + @_$jni.internal + const $Headers_Companion$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Headers$Companion;'; + + @_$jni.internal + @_$core.override + Headers_Companion fromReference(_$jni.JReference reference) => + Headers_Companion.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Headers_Companion$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Headers_Companion$Type) && + other is $Headers_Companion$Type; + } +} + +/// from: `okhttp3.Headers` +class Headers extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Headers.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Headers'); + + /// The type which includes information such as the signature of this class. + static const type = $Headers$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/Headers$Companion;', + ); + + /// from: `static public final okhttp3.Headers$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static Headers_Companion get Companion => + _id_Companion.get(_class, const $Headers_Companion$Type()); + + static final _id_get = _class.instanceMethodId( + r'get', + r'(Ljava/lang/String;)Ljava/lang/String;', + ); + + static final _get = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.lang.String get(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString get( + _$jni.JString string, + ) { + return _get(reference.pointer, _id_get as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JStringType()); + } + + static final _id_getDate = _class.instanceMethodId( + r'getDate', + r'(Ljava/lang/String;)Ljava/util/Date;', + ); + + static final _getDate = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.util.Date getDate(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject getDate( + _$jni.JString string, + ) { + return _getDate(reference.pointer, _id_getDate as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JObjectType()); + } + + static final _id_getInstant = _class.instanceMethodId( + r'getInstant', + r'(Ljava/lang/String;)Ljava/time/Instant;', + ); + + static final _getInstant = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.time.Instant getInstant(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject getInstant( + _$jni.JString string, + ) { + return _getInstant(reference.pointer, _id_getInstant as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JObjectType()); + } + + static final _id_size = _class.instanceMethodId( + r'size', + r'()I', + ); + + static final _size = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int size()` + int size() { + return _size(reference.pointer, _id_size as _$jni.JMethodIDPtr).integer; + } + + static final _id_name = _class.instanceMethodId( + r'name', + r'(I)Ljava/lang/String;', + ); + + static final _name = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final java.lang.String name(int i)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString name( + int i, + ) { + return _name(reference.pointer, _id_name as _$jni.JMethodIDPtr, i) + .object(const _$jni.JStringType()); + } + + static final _id_value = _class.instanceMethodId( + r'value', + r'(I)Ljava/lang/String;', + ); + + static final _value = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final java.lang.String value(int i)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString value( + int i, + ) { + return _value(reference.pointer, _id_value as _$jni.JMethodIDPtr, i) + .object(const _$jni.JStringType()); + } + + static final _id_names = _class.instanceMethodId( + r'names', + r'()Ljava/util/Set;', + ); + + static final _names = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.Set names()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JSet<_$jni.JString> names() { + return _names(reference.pointer, _id_names as _$jni.JMethodIDPtr) + .object(const _$jni.JSetType(_$jni.JStringType())); + } + + static final _id_values = _class.instanceMethodId( + r'values', + r'(Ljava/lang/String;)Ljava/util/List;', + ); + + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final java.util.List values(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JString> values( + _$jni.JString string, + ) { + return _values(reference.pointer, _id_values as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const _$jni.JListType(_$jni.JStringType())); + } + + static final _id_byteCount = _class.instanceMethodId( + r'byteCount', + r'()J', + ); + + static final _byteCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final long byteCount()` + int byteCount() { + return _byteCount(reference.pointer, _id_byteCount as _$jni.JMethodIDPtr) + .long; + } + + static final _id_iterator = _class.instanceMethodId( + r'iterator', + r'()Ljava/util/Iterator;', + ); + + static final _iterator = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public java.util.Iterator iterator()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JIterator<_$jni.JObject> iterator() { + return _iterator(reference.pointer, _id_iterator as _$jni.JMethodIDPtr) + .object(const _$jni.JIteratorType(_$jni.JObjectType())); + } + + static final _id_newBuilder = _class.instanceMethodId( + r'newBuilder', + r'()Lokhttp3/Headers$Builder;', + ); + + static final _newBuilder = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okhttp3.Headers$Builder newBuilder()` + /// The returned object must be released after use, by calling the [release] method. + Headers_Builder newBuilder() { + return _newBuilder(reference.pointer, _id_newBuilder as _$jni.JMethodIDPtr) + .object(const $Headers_Builder$Type()); + } + + static final _id_equals = _class.instanceMethodId( + r'equals', + r'(Ljava/lang/Object;)Z', + ); + + static final _equals = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public boolean equals(java.lang.Object object)` + bool equals( + _$jni.JObject object, + ) { + return _equals(reference.pointer, _id_equals as _$jni.JMethodIDPtr, + object.reference.pointer) + .boolean; + } + + static final _id_hashCode$1 = _class.instanceMethodId( + r'hashCode', + r'()I', + ); + + static final _hashCode$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public int hashCode()` + int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1 as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_toString$1 = _class.instanceMethodId( + r'toString', + r'()Ljava/lang/String;', + ); + + static final _toString$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String toString()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString toString$1() { + return _toString$1(reference.pointer, _id_toString$1 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } + + static final _id_toMultimap = _class.instanceMethodId( + r'toMultimap', + r'()Ljava/util/Map;', + ); + + static final _toMultimap = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.Map toMultimap()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JMap<_$jni.JString, _$jni.JList<_$jni.JString>> toMultimap() { + return _toMultimap(reference.pointer, _id_toMultimap as _$jni.JMethodIDPtr) + .object(const _$jni.JMapType( + _$jni.JStringType(), _$jni.JListType(_$jni.JStringType()))); + } + + static final _id_of = _class.staticMethodId( + r'of', + r'([Ljava/lang/String;)Lokhttp3/Headers;', + ); + + static final _of = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.Headers of(java.lang.String[] strings)` + /// The returned object must be released after use, by calling the [release] method. + static Headers of( + _$jni.JArray<_$jni.JString> strings, + ) { + return _of(_class.reference.pointer, _id_of as _$jni.JMethodIDPtr, + strings.reference.pointer) + .object(const $Headers$Type()); + } + + static final _id_of$1 = _class.staticMethodId( + r'of', + r'(Ljava/util/Map;)Lokhttp3/Headers;', + ); + + static final _of$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okhttp3.Headers of(java.util.Map map)` + /// The returned object must be released after use, by calling the [release] method. + static Headers of$1( + _$jni.JMap<_$jni.JString, _$jni.JString> map, + ) { + return _of$1(_class.reference.pointer, _id_of$1 as _$jni.JMethodIDPtr, + map.reference.pointer) + .object(const $Headers$Type()); + } + + static final _id_new$ = _class.constructorId( + r'([Ljava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (java.lang.String[] strings, kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory Headers( + _$jni.JArray<_$jni.JString> strings, + _$jni.JObject defaultConstructorMarker, + ) { + return Headers.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + strings.reference.pointer, + defaultConstructorMarker.reference.pointer) + .reference); + } +} + +final class $Headers$Type extends _$jni.JObjType { + @_$jni.internal + const $Headers$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Headers;'; + + @_$jni.internal + @_$core.override + Headers fromReference(_$jni.JReference reference) => + Headers.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Headers$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Headers$Type) && other is $Headers$Type; + } +} + +/// from: `okhttp3.Callback` +class Callback extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Callback.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Callback'); + + /// The type which includes information such as the signature of this class. + static const type = $Callback$Type(); + static final _id_onFailure = _class.instanceMethodId( + r'onFailure', + r'(Lokhttp3/Call;Ljava/io/IOException;)V', + ); + + static final _onFailure = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract void onFailure(okhttp3.Call call, java.io.IOException iOException)` + void onFailure( + Call call, + _$jni.JObject iOException, + ) { + _onFailure(reference.pointer, _id_onFailure as _$jni.JMethodIDPtr, + call.reference.pointer, iOException.reference.pointer) + .check(); + } + + static final _id_onResponse = _class.instanceMethodId( + r'onResponse', + r'(Lokhttp3/Call;Lokhttp3/Response;)V', + ); + + static final _onResponse = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract void onResponse(okhttp3.Call call, okhttp3.Response response)` + void onResponse( + Call call, + Response response, + ) { + _onResponse(reference.pointer, _id_onResponse as _$jni.JMethodIDPtr, + call.reference.pointer, response.reference.pointer) + .check(); + } + + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'onFailure(Lokhttp3/Call;Ljava/io/IOException;)V') { + _$impls[$p]!.onFailure( + $a[0].as(const $Call$Type(), releaseOriginal: true), + $a[1].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return _$jni.nullptr; + } + if ($d == r'onResponse(Lokhttp3/Call;Lokhttp3/Response;)V') { + _$impls[$p]!.onResponse( + $a[0].as(const $Call$Type(), releaseOriginal: true), + $a[1].as(const $Response$Type(), releaseOriginal: true), + ); + return _$jni.nullptr; + } + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } + + static void implementIn( + _$jni.JImplementer implementer, + $Callback $impl, + ) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.Callback', + $p, + _$invokePointer, + [ + if ($impl.onFailure$async) + r'onFailure(Lokhttp3/Call;Ljava/io/IOException;)V', + if ($impl.onResponse$async) + r'onResponse(Lokhttp3/Call;Lokhttp3/Response;)V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory Callback.implement( + $Callback $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return Callback.fromReference( + $i.implementReference(), + ); + } +} + +abstract base mixin class $Callback { + factory $Callback({ + required void Function(Call call, _$jni.JObject iOException) onFailure, + bool onFailure$async, + required void Function(Call call, Response response) onResponse, + bool onResponse$async, + }) = _$Callback; + + void onFailure(Call call, _$jni.JObject iOException); + bool get onFailure$async => false; + void onResponse(Call call, Response response); + bool get onResponse$async => false; +} + +final class _$Callback with $Callback { + _$Callback({ + required void Function(Call call, _$jni.JObject iOException) onFailure, + this.onFailure$async = false, + required void Function(Call call, Response response) onResponse, + this.onResponse$async = false, + }) : _onFailure = onFailure, + _onResponse = onResponse; + + final void Function(Call call, _$jni.JObject iOException) _onFailure; + final bool onFailure$async; + final void Function(Call call, Response response) _onResponse; + final bool onResponse$async; + + void onFailure(Call call, _$jni.JObject iOException) { + return _onFailure(call, iOException); + } + + void onResponse(Call call, Response response) { + return _onResponse(call, response); + } +} + +final class $Callback$Type extends _$jni.JObjType { + @_$jni.internal + const $Callback$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Callback;'; + + @_$jni.internal + @_$core.override + Callback fromReference(_$jni.JReference reference) => + Callback.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Callback$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Callback$Type) && other is $Callback$Type; + } +} + +/// from: `okhttp3.ConnectionPool` +class ConnectionPool extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + ConnectionPool.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/ConnectionPool'); + + /// The type which includes information such as the signature of this class. + static const type = $ConnectionPool$Type(); + static final _id_new$ = _class.constructorId( + r'(Lokhttp3/internal/connection/RealConnectionPool;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (okhttp3.internal.connection.RealConnectionPool realConnectionPool)` + /// The returned object must be released after use, by calling the [release] method. + factory ConnectionPool( + _$jni.JObject realConnectionPool, + ) { + return ConnectionPool.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + realConnectionPool.reference.pointer) + .reference); + } + + static final _id_new$1 = _class.constructorId( + r'(IJLjava/util/concurrent/TimeUnit;)V', + ); + + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (int i, long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + factory ConnectionPool.new$1( + int i, + int j, + TimeUnit timeUnit, + ) { + return ConnectionPool.fromReference(_new$1(_class.reference.pointer, + _id_new$1 as _$jni.JMethodIDPtr, i, j, timeUnit.reference.pointer) + .reference); + } + + static final _id_new$2 = _class.constructorId( + r'()V', + ); + + static final _new$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory ConnectionPool.new$2() { + return ConnectionPool.fromReference( + _new$2(_class.reference.pointer, _id_new$2 as _$jni.JMethodIDPtr) + .reference); + } + + static final _id_idleConnectionCount = _class.instanceMethodId( + r'idleConnectionCount', + r'()I', + ); + + static final _idleConnectionCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int idleConnectionCount()` + int idleConnectionCount() { + return _idleConnectionCount( + reference.pointer, _id_idleConnectionCount as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_connectionCount = _class.instanceMethodId( + r'connectionCount', + r'()I', + ); + + static final _connectionCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int connectionCount()` + int connectionCount() { + return _connectionCount( + reference.pointer, _id_connectionCount as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_evictAll = _class.instanceMethodId( + r'evictAll', + r'()V', + ); + + static final _evictAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final void evictAll()` + void evictAll() { + _evictAll(reference.pointer, _id_evictAll as _$jni.JMethodIDPtr).check(); + } +} + +final class $ConnectionPool$Type extends _$jni.JObjType { + @_$jni.internal + const $ConnectionPool$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/ConnectionPool;'; + + @_$jni.internal + @_$core.override + ConnectionPool fromReference(_$jni.JReference reference) => + ConnectionPool.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($ConnectionPool$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($ConnectionPool$Type) && + other is $ConnectionPool$Type; + } +} + +/// from: `okhttp3.Dispatcher` +class Dispatcher extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + Dispatcher.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/Dispatcher'); + + /// The type which includes information such as the signature of this class. + static const type = $Dispatcher$Type(); + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory Dispatcher() { + return Dispatcher.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); + } + + static final _id_getMaxRequests = _class.instanceMethodId( + r'getMaxRequests', + r'()I', + ); + + static final _getMaxRequests = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int getMaxRequests()` + int getMaxRequests() { + return _getMaxRequests( + reference.pointer, _id_getMaxRequests as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_setMaxRequests = _class.instanceMethodId( + r'setMaxRequests', + r'(I)V', + ); + + static final _setMaxRequests = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final void setMaxRequests(int i)` + void setMaxRequests( + int i, + ) { + _setMaxRequests( + reference.pointer, _id_setMaxRequests as _$jni.JMethodIDPtr, i) + .check(); + } + + static final _id_getMaxRequestsPerHost = _class.instanceMethodId( + r'getMaxRequestsPerHost', + r'()I', + ); + + static final _getMaxRequestsPerHost = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int getMaxRequestsPerHost()` + int getMaxRequestsPerHost() { + return _getMaxRequestsPerHost( + reference.pointer, _id_getMaxRequestsPerHost as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_setMaxRequestsPerHost = _class.instanceMethodId( + r'setMaxRequestsPerHost', + r'(I)V', + ); + + static final _setMaxRequestsPerHost = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final void setMaxRequestsPerHost(int i)` + void setMaxRequestsPerHost( + int i, + ) { + _setMaxRequestsPerHost(reference.pointer, + _id_setMaxRequestsPerHost as _$jni.JMethodIDPtr, i) + .check(); + } + + static final _id_getIdleCallback = _class.instanceMethodId( + r'getIdleCallback', + r'()Ljava/lang/Runnable;', + ); + + static final _getIdleCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.lang.Runnable getIdleCallback()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject getIdleCallback() { + return _getIdleCallback( + reference.pointer, _id_getIdleCallback as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_setIdleCallback = _class.instanceMethodId( + r'setIdleCallback', + r'(Ljava/lang/Runnable;)V', + ); + + static final _setIdleCallback = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final void setIdleCallback(java.lang.Runnable runnable)` + void setIdleCallback( + _$jni.JObject runnable, + ) { + _setIdleCallback( + reference.pointer, + _id_setIdleCallback as _$jni.JMethodIDPtr, + runnable.reference.pointer) + .check(); + } + + static final _id_executorService = _class.instanceMethodId( + r'executorService', + r'()Ljava/util/concurrent/ExecutorService;', + ); + + static final _executorService = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.concurrent.ExecutorService executorService()` + /// The returned object must be released after use, by calling the [release] method. + ExecutorService executorService() { + return _executorService( + reference.pointer, _id_executorService as _$jni.JMethodIDPtr) + .object(const $ExecutorService$Type()); + } + + static final _id_new$1 = _class.constructorId( + r'(Ljava/util/concurrent/ExecutorService;)V', + ); + + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (java.util.concurrent.ExecutorService executorService)` + /// The returned object must be released after use, by calling the [release] method. + factory Dispatcher.new$1( + ExecutorService executorService, + ) { + return Dispatcher.fromReference(_new$1(_class.reference.pointer, + _id_new$1 as _$jni.JMethodIDPtr, executorService.reference.pointer) + .reference); + } + + static final _id_cancelAll = _class.instanceMethodId( + r'cancelAll', + r'()V', + ); + + static final _cancelAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final void cancelAll()` + void cancelAll() { + _cancelAll(reference.pointer, _id_cancelAll as _$jni.JMethodIDPtr).check(); + } + + static final _id_queuedCalls = _class.instanceMethodId( + r'queuedCalls', + r'()Ljava/util/List;', + ); + + static final _queuedCalls = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List queuedCalls()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList queuedCalls() { + return _queuedCalls( + reference.pointer, _id_queuedCalls as _$jni.JMethodIDPtr) + .object(const _$jni.JListType($Call$Type())); + } + + static final _id_runningCalls = _class.instanceMethodId( + r'runningCalls', + r'()Ljava/util/List;', + ); + + static final _runningCalls = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final java.util.List runningCalls()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList runningCalls() { + return _runningCalls( + reference.pointer, _id_runningCalls as _$jni.JMethodIDPtr) + .object(const _$jni.JListType($Call$Type())); + } + + static final _id_queuedCallsCount = _class.instanceMethodId( + r'queuedCallsCount', + r'()I', + ); + + static final _queuedCallsCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int queuedCallsCount()` + int queuedCallsCount() { + return _queuedCallsCount( + reference.pointer, _id_queuedCallsCount as _$jni.JMethodIDPtr) + .integer; + } + + static final _id_runningCallsCount = _class.instanceMethodId( + r'runningCallsCount', + r'()I', + ); + + static final _runningCallsCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int runningCallsCount()` + int runningCallsCount() { + return _runningCallsCount( + reference.pointer, _id_runningCallsCount as _$jni.JMethodIDPtr) + .integer; + } +} + +final class $Dispatcher$Type extends _$jni.JObjType { + @_$jni.internal + const $Dispatcher$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/Dispatcher;'; + + @_$jni.internal + @_$core.override + Dispatcher fromReference(_$jni.JReference reference) => + Dispatcher.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($Dispatcher$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($Dispatcher$Type) && other is $Dispatcher$Type; + } +} + +/// from: `java.util.concurrent.ExecutorService` +class ExecutorService extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + ExecutorService.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = + _$jni.JClass.forName(r'java/util/concurrent/ExecutorService'); + + /// The type which includes information such as the signature of this class. + static const type = $ExecutorService$Type(); + static final _id_shutdown = _class.instanceMethodId( + r'shutdown', + r'()V', + ); + + static final _shutdown = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract void shutdown()` + void shutdown() { + _shutdown(reference.pointer, _id_shutdown as _$jni.JMethodIDPtr).check(); + } + + static final _id_shutdownNow = _class.instanceMethodId( + r'shutdownNow', + r'()Ljava/util/List;', + ); + + static final _shutdownNow = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract java.util.List shutdownNow()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> shutdownNow() { + return _shutdownNow( + reference.pointer, _id_shutdownNow as _$jni.JMethodIDPtr) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_isShutdown = _class.instanceMethodId( + r'isShutdown', + r'()Z', + ); + + static final _isShutdown = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract boolean isShutdown()` + bool isShutdown() { + return _isShutdown(reference.pointer, _id_isShutdown as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_isTerminated = _class.instanceMethodId( + r'isTerminated', + r'()Z', + ); + + static final _isTerminated = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract boolean isTerminated()` + bool isTerminated() { + return _isTerminated( + reference.pointer, _id_isTerminated as _$jni.JMethodIDPtr) + .boolean; + } + + static final _id_awaitTermination = _class.instanceMethodId( + r'awaitTermination', + r'(JLjava/util/concurrent/TimeUnit;)Z', + ); + + static final _awaitTermination = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract boolean awaitTermination(long j, java.util.concurrent.TimeUnit timeUnit)` + bool awaitTermination( + int j, + TimeUnit timeUnit, + ) { + return _awaitTermination( + reference.pointer, + _id_awaitTermination as _$jni.JMethodIDPtr, + j, + timeUnit.reference.pointer) + .boolean; + } + + static final _id_submit = _class.instanceMethodId( + r'submit', + r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;', + ); + + static final _submit = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract java.util.concurrent.Future submit(java.util.concurrent.Callable callable)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject submit<$T extends _$jni.JObject>( + _$jni.JObject callable, { + required _$jni.JObjType<$T> T, + }) { + return _submit(reference.pointer, _id_submit as _$jni.JMethodIDPtr, + callable.reference.pointer) + .object(const _$jni.JObjectType()); + } + + static final _id_submit$1 = _class.instanceMethodId( + r'submit', + r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;', + ); + + static final _submit$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable, T object)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject submit$1<$T extends _$jni.JObject>( + _$jni.JObject runnable, + $T object, { + _$jni.JObjType<$T>? T, + }) { + T ??= _$jni.lowestCommonSuperType([ + object.$type, + ]) as _$jni.JObjType<$T>; + return _submit$1(reference.pointer, _id_submit$1 as _$jni.JMethodIDPtr, + runnable.reference.pointer, object.reference.pointer) + .object(const _$jni.JObjectType()); + } + + static final _id_submit$2 = _class.instanceMethodId( + r'submit', + r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;', + ); + + static final _submit$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject submit$2( + _$jni.JObject runnable, + ) { + return _submit$2(reference.pointer, _id_submit$2 as _$jni.JMethodIDPtr, + runnable.reference.pointer) + .object(const _$jni.JObjectType()); + } + + static final _id_invokeAll = _class.instanceMethodId( + r'invokeAll', + r'(Ljava/util/Collection;)Ljava/util/List;', + ); + + static final _invokeAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract java.util.List invokeAll(java.util.Collection collection)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> invokeAll<$T extends _$jni.JObject>( + _$jni.JObject collection, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAll(reference.pointer, _id_invokeAll as _$jni.JMethodIDPtr, + collection.reference.pointer) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_invokeAll$1 = _class.instanceMethodId( + r'invokeAll', + r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;', + ); + + static final _invokeAll$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract java.util.List invokeAll(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JList<_$jni.JObject> invokeAll$1<$T extends _$jni.JObject>( + _$jni.JObject collection, + int j, + TimeUnit timeUnit, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAll$1( + reference.pointer, + _id_invokeAll$1 as _$jni.JMethodIDPtr, + collection.reference.pointer, + j, + timeUnit.reference.pointer) + .object(const _$jni.JListType(_$jni.JObjectType())); + } + + static final _id_invokeAny = _class.instanceMethodId( + r'invokeAny', + r'(Ljava/util/Collection;)Ljava/lang/Object;', + ); + + static final _invokeAny = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract T invokeAny(java.util.Collection collection)` + /// The returned object must be released after use, by calling the [release] method. + $T invokeAny<$T extends _$jni.JObject>( + _$jni.JObject collection, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAny(reference.pointer, _id_invokeAny as _$jni.JMethodIDPtr, + collection.reference.pointer) + .object(T); + } + + static final _id_invokeAny$1 = _class.instanceMethodId( + r'invokeAny', + r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;', + ); + + static final _invokeAny$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract T invokeAny(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` + /// The returned object must be released after use, by calling the [release] method. + $T invokeAny$1<$T extends _$jni.JObject>( + _$jni.JObject collection, + int j, + TimeUnit timeUnit, { + required _$jni.JObjType<$T> T, + }) { + return _invokeAny$1( + reference.pointer, + _id_invokeAny$1 as _$jni.JMethodIDPtr, + collection.reference.pointer, + j, + timeUnit.reference.pointer) + .object(T); + } + + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'shutdown()V') { + _$impls[$p]!.shutdown(); + return _$jni.nullptr; + } + if ($d == r'shutdownNow()Ljava/util/List;') { + final $r = _$impls[$p]!.shutdownNow(); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'isShutdown()Z') { + final $r = _$impls[$p]!.isShutdown(); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == r'isTerminated()Z') { + final $r = _$impls[$p]!.isTerminated(); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == r'awaitTermination(JLjava/util/concurrent/TimeUnit;)Z') { + final $r = _$impls[$p]!.awaitTermination( + $a[0] + .as(const _$jni.JLongType(), releaseOriginal: true) + .longValue(releaseOriginal: true), + $a[1].as(const $TimeUnit$Type(), releaseOriginal: true), + ); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == + r'submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == + r'submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$1( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + $a[1].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;') { + final $r = _$impls[$p]!.submit$2( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'invokeAll(Ljava/util/Collection;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == + r'invokeAll(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;') { + final $r = _$impls[$p]!.invokeAll$1( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + $a[1] + .as(const _$jni.JLongType(), releaseOriginal: true) + .longValue(releaseOriginal: true), + $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'invokeAny(Ljava/util/Collection;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == + r'invokeAny(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;') { + final $r = _$impls[$p]!.invokeAny$1( + $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + $a[1] + .as(const _$jni.JLongType(), releaseOriginal: true) + .longValue(releaseOriginal: true), + $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), + ); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } + + static void implementIn( + _$jni.JImplementer implementer, + $ExecutorService $impl, + ) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'java.util.concurrent.ExecutorService', + $p, + _$invokePointer, + [ + if ($impl.shutdown$async) r'shutdown()V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory ExecutorService.implement( + $ExecutorService $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return ExecutorService.fromReference( + $i.implementReference(), + ); + } +} + +abstract base mixin class $ExecutorService { + factory $ExecutorService({ + required void Function() shutdown, + bool shutdown$async, + required _$jni.JList<_$jni.JObject> Function() shutdownNow, + required bool Function() isShutdown, + required bool Function() isTerminated, + required bool Function(int j, TimeUnit timeUnit) awaitTermination, + required _$jni.JObject Function(_$jni.JObject callable) submit, + required _$jni.JObject Function( + _$jni.JObject runnable, _$jni.JObject object) + submit$1, + required _$jni.JObject Function(_$jni.JObject runnable) submit$2, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) + invokeAll, + required _$jni.JList<_$jni.JObject> Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAll$1, + required _$jni.JObject Function(_$jni.JObject collection) invokeAny, + required _$jni.JObject Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAny$1, + }) = _$ExecutorService; + + void shutdown(); + bool get shutdown$async => false; + _$jni.JList<_$jni.JObject> shutdownNow(); + bool isShutdown(); + bool isTerminated(); + bool awaitTermination(int j, TimeUnit timeUnit); + _$jni.JObject submit(_$jni.JObject callable); + _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object); + _$jni.JObject submit$2(_$jni.JObject runnable); + _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection); + _$jni.JList<_$jni.JObject> invokeAll$1( + _$jni.JObject collection, int j, TimeUnit timeUnit); + _$jni.JObject invokeAny(_$jni.JObject collection); + _$jni.JObject invokeAny$1(_$jni.JObject collection, int j, TimeUnit timeUnit); +} + +final class _$ExecutorService with $ExecutorService { + _$ExecutorService({ + required void Function() shutdown, + this.shutdown$async = false, + required _$jni.JList<_$jni.JObject> Function() shutdownNow, + required bool Function() isShutdown, + required bool Function() isTerminated, + required bool Function(int j, TimeUnit timeUnit) awaitTermination, + required _$jni.JObject Function(_$jni.JObject callable) submit, + required _$jni.JObject Function( + _$jni.JObject runnable, _$jni.JObject object) + submit$1, + required _$jni.JObject Function(_$jni.JObject runnable) submit$2, + required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) + invokeAll, + required _$jni.JList<_$jni.JObject> Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAll$1, + required _$jni.JObject Function(_$jni.JObject collection) invokeAny, + required _$jni.JObject Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) + invokeAny$1, + }) : _shutdown = shutdown, + _shutdownNow = shutdownNow, + _isShutdown = isShutdown, + _isTerminated = isTerminated, + _awaitTermination = awaitTermination, + _submit = submit, + _submit$1 = submit$1, + _submit$2 = submit$2, + _invokeAll = invokeAll, + _invokeAll$1 = invokeAll$1, + _invokeAny = invokeAny, + _invokeAny$1 = invokeAny$1; + + final void Function() _shutdown; + final bool shutdown$async; + final _$jni.JList<_$jni.JObject> Function() _shutdownNow; + final bool Function() _isShutdown; + final bool Function() _isTerminated; + final bool Function(int j, TimeUnit timeUnit) _awaitTermination; + final _$jni.JObject Function(_$jni.JObject callable) _submit; + final _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) + _submit$1; + final _$jni.JObject Function(_$jni.JObject runnable) _submit$2; + final _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) + _invokeAll; + final _$jni.JList<_$jni.JObject> Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAll$1; + final _$jni.JObject Function(_$jni.JObject collection) _invokeAny; + final _$jni.JObject Function( + _$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAny$1; + + void shutdown() { + return _shutdown(); + } + + _$jni.JList<_$jni.JObject> shutdownNow() { + return _shutdownNow(); + } + + bool isShutdown() { + return _isShutdown(); + } + + bool isTerminated() { + return _isTerminated(); + } + + bool awaitTermination(int j, TimeUnit timeUnit) { + return _awaitTermination(j, timeUnit); + } + + _$jni.JObject submit(_$jni.JObject callable) { + return _submit(callable); + } + + _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object) { + return _submit$1(runnable, object); + } + + _$jni.JObject submit$2(_$jni.JObject runnable) { + return _submit$2(runnable); + } - @_$jni.internal - OkHttpClient_Builder.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection) { + return _invokeAll(collection); + } - static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Builder'); + _$jni.JList<_$jni.JObject> invokeAll$1( + _$jni.JObject collection, int j, TimeUnit timeUnit) { + return _invokeAll$1(collection, j, timeUnit); + } - /// The type which includes information such as the signature of this class. - static const type = $OkHttpClient_Builder$Type(); + _$jni.JObject invokeAny(_$jni.JObject collection) { + return _invokeAny(collection); + } + + _$jni.JObject invokeAny$1( + _$jni.JObject collection, int j, TimeUnit timeUnit) { + return _invokeAny$1(collection, j, timeUnit); + } } -final class $OkHttpClient_Builder$Type - extends _$jni.JObjType { +final class $ExecutorService$Type extends _$jni.JObjType { @_$jni.internal - const $OkHttpClient_Builder$Type(); + const $ExecutorService$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/OkHttpClient$Builder;'; + String get signature => r'Ljava/util/concurrent/ExecutorService;'; @_$jni.internal @_$core.override - OkHttpClient_Builder fromReference(_$jni.JReference reference) => - OkHttpClient_Builder.fromReference(reference); + ExecutorService fromReference(_$jni.JReference reference) => + ExecutorService.fromReference(reference); @_$jni.internal @_$core.override @@ -538,104 +9902,187 @@ final class $OkHttpClient_Builder$Type final superCount = 1; @_$core.override - int get hashCode => ($OkHttpClient_Builder$Type).hashCode; + int get hashCode => ($ExecutorService$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient_Builder$Type) && - other is $OkHttpClient_Builder$Type; + return other.runtimeType == ($ExecutorService$Type) && + other is $ExecutorService$Type; } } -/// from: `okhttp3.OkHttpClient$Companion` -class OkHttpClient_Companion extends _$jni.JObject { +/// from: `okhttp3.Cache$Companion` +class Cache_Companion extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - OkHttpClient_Companion.fromReference( + Cache_Companion.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient$Companion'); + static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Companion'); /// The type which includes information such as the signature of this class. - static const type = $OkHttpClient_Companion$Type(); -} + static const type = $Cache_Companion$Type(); + static final _id_key = _class.instanceMethodId( + r'key', + r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', + ); -final class $OkHttpClient_Companion$Type - extends _$jni.JObjType { - @_$jni.internal - const $OkHttpClient_Companion$Type(); + static final _key = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/OkHttpClient$Companion;'; + /// from: `public final java.lang.String key(okhttp3.HttpUrl httpUrl)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString key( + _$jni.JObject httpUrl, + ) { + return _key(reference.pointer, _id_key as _$jni.JMethodIDPtr, + httpUrl.reference.pointer) + .object(const _$jni.JStringType()); + } - @_$jni.internal - @_$core.override - OkHttpClient_Companion fromReference(_$jni.JReference reference) => - OkHttpClient_Companion.fromReference(reference); + static final _id_varyMatches = _class.instanceMethodId( + r'varyMatches', + r'(Lokhttp3/Response;Lokhttp3/Headers;Lokhttp3/Request;)Z', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _varyMatches = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public final boolean varyMatches(okhttp3.Response response, okhttp3.Headers headers, okhttp3.Request request)` + bool varyMatches( + Response response, + Headers headers, + Request request, + ) { + return _varyMatches( + reference.pointer, + _id_varyMatches as _$jni.JMethodIDPtr, + response.reference.pointer, + headers.reference.pointer, + request.reference.pointer) + .boolean; + } - @_$core.override - int get hashCode => ($OkHttpClient_Companion$Type).hashCode; + static final _id_hasVaryAll = _class.instanceMethodId( + r'hasVaryAll', + r'(Lokhttp3/Response;)Z', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient_Companion$Type) && - other is $OkHttpClient_Companion$Type; + static final _hasVaryAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final boolean hasVaryAll(okhttp3.Response response)` + bool hasVaryAll( + Response response, + ) { + return _hasVaryAll(reference.pointer, _id_hasVaryAll as _$jni.JMethodIDPtr, + response.reference.pointer) + .boolean; } -} -/// from: `okhttp3.OkHttpClient` -class OkHttpClient extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_varyHeaders = _class.instanceMethodId( + r'varyHeaders', + r'(Lokhttp3/Response;)Lokhttp3/Headers;', + ); - @_$jni.internal - OkHttpClient.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _varyHeaders = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = _$jni.JClass.forName(r'okhttp3/OkHttpClient'); + /// from: `public final okhttp3.Headers varyHeaders(okhttp3.Response response)` + /// The returned object must be released after use, by calling the [release] method. + Headers varyHeaders( + Response response, + ) { + return _varyHeaders(reference.pointer, + _id_varyHeaders as _$jni.JMethodIDPtr, response.reference.pointer) + .object(const $Headers$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $OkHttpClient$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/OkHttpClient$Companion;', + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', ); - /// from: `static public final okhttp3.OkHttpClient$Companion Companion` + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` /// The returned object must be released after use, by calling the [release] method. - static OkHttpClient_Companion get Companion => - _id_Companion.get(_class, const $OkHttpClient_Companion$Type()); + factory Cache_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return Cache_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } } -final class $OkHttpClient$Type extends _$jni.JObjType { +final class $Cache_Companion$Type extends _$jni.JObjType { @_$jni.internal - const $OkHttpClient$Type(); + const $Cache_Companion$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/OkHttpClient;'; + String get signature => r'Lokhttp3/Cache$Companion;'; @_$jni.internal @_$core.override - OkHttpClient fromReference(_$jni.JReference reference) => - OkHttpClient.fromReference(reference); + Cache_Companion fromReference(_$jni.JReference reference) => + Cache_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -646,124 +10093,72 @@ final class $OkHttpClient$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($OkHttpClient$Type).hashCode; + int get hashCode => ($Cache_Companion$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($OkHttpClient$Type) && - other is $OkHttpClient$Type; + return other.runtimeType == ($Cache_Companion$Type) && + other is $Cache_Companion$Type; } } -/// from: `okhttp3.Call$Factory` -class Call_Factory extends _$jni.JObject { +/// from: `okhttp3.Cache$Entry$Companion` +class Cache_Entry_Companion extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - Call_Factory.fromReference( + Cache_Entry_Companion.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'okhttp3/Call$Factory'); + static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Entry$Companion'); /// The type which includes information such as the signature of this class. - static const type = $Call_Factory$Type(); - - /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; - static _$jni.JObjectPtr _$invoke( - int port, - _$jni.JObjectPtr descriptor, - _$jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - _$jni.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } - - static final _$jni.Pointer< - _$jni.NativeFunction< - _$jni.JObjectPtr Function( - _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> - _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - - static _$jni.Pointer<_$jni.Void> _$invokeMethod( - int $p, - _$jni.MethodInvocation $i, - ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - } catch (e) { - return _$jni.ProtectedJniExtensions.newDartException(e); - } - return _$jni.nullptr; - } + static const type = $Cache_Entry_Companion$Type(); + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); - static void implementIn( - _$jni.JImplementer implementer, - $Call_Factory $impl, - ) { - late final _$jni.RawReceivePort $p; - $p = _$jni.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = _$jni.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - _$jni.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'okhttp3.Call$Factory', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - factory Call_Factory.implement( - $Call_Factory $impl, + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory Cache_Entry_Companion( + _$jni.JObject defaultConstructorMarker, ) { - final $i = _$jni.JImplementer(); - implementIn($i, $impl); - return Call_Factory.fromReference( - $i.implementReference(), - ); + return Cache_Entry_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); } } -abstract base mixin class $Call_Factory { - factory $Call_Factory() = _$Call_Factory; -} - -final class _$Call_Factory with $Call_Factory { - _$Call_Factory(); -} - -final class $Call_Factory$Type extends _$jni.JObjType { +final class $Cache_Entry_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $Call_Factory$Type(); + const $Cache_Entry_Companion$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/Call$Factory;'; + String get signature => r'Lokhttp3/Cache$Entry$Companion;'; @_$jni.internal @_$core.override - Call_Factory fromReference(_$jni.JReference reference) => - Call_Factory.fromReference(reference); + Cache_Entry_Companion fromReference(_$jni.JReference reference) => + Cache_Entry_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -774,279 +10169,491 @@ final class $Call_Factory$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($Call_Factory$Type).hashCode; + int get hashCode => ($Cache_Entry_Companion$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Call_Factory$Type) && - other is $Call_Factory$Type; + return other.runtimeType == ($Cache_Entry_Companion$Type) && + other is $Cache_Entry_Companion$Type; } } -/// from: `okhttp3.Call` -class Call extends _$jni.JObject { +/// from: `okhttp3.Cache` +class Cache extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - Call.fromReference( + Cache.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'okhttp3/Call'); + static final _class = _$jni.JClass.forName(r'okhttp3/Cache'); /// The type which includes information such as the signature of this class. - static const type = $Call$Type(); + static const type = $Cache$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lokhttp3/Cache$Companion;', + ); - /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; - static _$jni.JObjectPtr _$invoke( - int port, - _$jni.JObjectPtr descriptor, - _$jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - _$jni.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); - } + /// from: `static public final okhttp3.Cache$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static Cache_Companion get Companion => + _id_Companion.get(_class, const $Cache_Companion$Type()); - static final _$jni.Pointer< + static final _id_new$ = _class.constructorId( + r'(Ljava/io/File;JLokhttp3/internal/io/FileSystem;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< _$jni.NativeFunction< - _$jni.JObjectPtr Function( - _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> - _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int64, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); - static _$jni.Pointer<_$jni.Void> _$invokeMethod( - int $p, - _$jni.MethodInvocation $i, + /// from: `public void (java.io.File file, long j, okhttp3.internal.io.FileSystem fileSystem)` + /// The returned object must be released after use, by calling the [release] method. + factory Cache( + _$jni.JObject file, + int j, + _$jni.JObject fileSystem, ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - } catch (e) { - return _$jni.ProtectedJniExtensions.newDartException(e); - } - return _$jni.nullptr; + return Cache.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + file.reference.pointer, + j, + fileSystem.reference.pointer) + .reference); } - static void implementIn( - _$jni.JImplementer implementer, - $Call $impl, - ) { - late final _$jni.RawReceivePort $p; - $p = _$jni.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = _$jni.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - _$jni.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'okhttp3.Call', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; + static final _id_isClosed = _class.instanceMethodId( + r'isClosed', + r'()Z', + ); + + static final _isClosed = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final boolean isClosed()` + bool isClosed() { + return _isClosed(reference.pointer, _id_isClosed as _$jni.JMethodIDPtr) + .boolean; } - factory Call.implement( - $Call $impl, + static final _id_new$1 = _class.constructorId( + r'(Ljava/io/File;J)V', + ); + + static final _new$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int64)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + + /// from: `public void (java.io.File file, long j)` + /// The returned object must be released after use, by calling the [release] method. + factory Cache.new$1( + _$jni.JObject file, + int j, ) { - final $i = _$jni.JImplementer(); - implementIn($i, $impl); - return Call.fromReference( - $i.implementReference(), - ); + return Cache.fromReference(_new$1(_class.reference.pointer, + _id_new$1 as _$jni.JMethodIDPtr, file.reference.pointer, j) + .reference); } -} -abstract base mixin class $Call { - factory $Call() = _$Call; -} + static final _id_initialize = _class.instanceMethodId( + r'initialize', + r'()V', + ); -final class _$Call with $Call { - _$Call(); -} + static final _initialize = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final void initialize()` + void initialize() { + _initialize(reference.pointer, _id_initialize as _$jni.JMethodIDPtr) + .check(); + } -final class $Call$Type extends _$jni.JObjType { - @_$jni.internal - const $Call$Type(); + static final _id_delete = _class.instanceMethodId( + r'delete', + r'()V', + ); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Call;'; + static final _delete = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final void delete()` + void delete() { + _delete(reference.pointer, _id_delete as _$jni.JMethodIDPtr).check(); + } - @_$jni.internal - @_$core.override - Call fromReference(_$jni.JReference reference) => - Call.fromReference(reference); + static final _id_evictAll = _class.instanceMethodId( + r'evictAll', + r'()V', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _evictAll = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final void evictAll()` + void evictAll() { + _evictAll(reference.pointer, _id_evictAll as _$jni.JMethodIDPtr).check(); + } - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_urls = _class.instanceMethodId( + r'urls', + r'()Ljava/util/Iterator;', + ); - @_$core.override - int get hashCode => ($Call$Type).hashCode; + static final _urls = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Call$Type) && other is $Call$Type; + /// from: `public final java.util.Iterator urls()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JIterator<_$jni.JString> urls() { + return _urls(reference.pointer, _id_urls as _$jni.JMethodIDPtr) + .object(const _$jni.JIteratorType(_$jni.JStringType())); } -} -/// from: `okhttp3.Headers$Builder` -class Headers_Builder extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - Headers_Builder.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _id_writeAbortCount = _class.instanceMethodId( + r'writeAbortCount', + r'()I', + ); - static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Builder'); + static final _writeAbortCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int writeAbortCount()` + int writeAbortCount() { + return _writeAbortCount( + reference.pointer, _id_writeAbortCount as _$jni.JMethodIDPtr) + .integer; + } - /// The type which includes information such as the signature of this class. - static const type = $Headers_Builder$Type(); -} + static final _id_writeSuccessCount = _class.instanceMethodId( + r'writeSuccessCount', + r'()I', + ); -final class $Headers_Builder$Type extends _$jni.JObjType { - @_$jni.internal - const $Headers_Builder$Type(); + static final _writeSuccessCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int writeSuccessCount()` + int writeSuccessCount() { + return _writeSuccessCount( + reference.pointer, _id_writeSuccessCount as _$jni.JMethodIDPtr) + .integer; + } - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Headers$Builder;'; + static final _id_size = _class.instanceMethodId( + r'size', + r'()J', + ); - @_$jni.internal - @_$core.override - Headers_Builder fromReference(_$jni.JReference reference) => - Headers_Builder.fromReference(reference); + static final _size = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + /// from: `public final long size()` + int size() { + return _size(reference.pointer, _id_size as _$jni.JMethodIDPtr).long; + } - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_maxSize = _class.instanceMethodId( + r'maxSize', + r'()J', + ); - @_$core.override - int get hashCode => ($Headers_Builder$Type).hashCode; + static final _maxSize = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers_Builder$Type) && - other is $Headers_Builder$Type; + /// from: `public final long maxSize()` + int maxSize() { + return _maxSize(reference.pointer, _id_maxSize as _$jni.JMethodIDPtr).long; } -} -/// from: `okhttp3.Headers$Companion` -class Headers_Companion extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_flush = _class.instanceMethodId( + r'flush', + r'()V', + ); - @_$jni.internal - Headers_Companion.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _flush = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void flush()` + void flush() { + _flush(reference.pointer, _id_flush as _$jni.JMethodIDPtr).check(); + } - static final _class = _$jni.JClass.forName(r'okhttp3/Headers$Companion'); + static final _id_close = _class.instanceMethodId( + r'close', + r'()V', + ); - /// The type which includes information such as the signature of this class. - static const type = $Headers_Companion$Type(); -} + static final _close = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void close()` + void close() { + _close(reference.pointer, _id_close as _$jni.JMethodIDPtr).check(); + } -final class $Headers_Companion$Type extends _$jni.JObjType { - @_$jni.internal - const $Headers_Companion$Type(); + static final _id_directory = _class.instanceMethodId( + r'directory', + r'()Ljava/io/File;', + ); - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Headers$Companion;'; + static final _directory = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - Headers_Companion fromReference(_$jni.JReference reference) => - Headers_Companion.fromReference(reference); + /// from: `public final java.io.File directory()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject directory() { + return _directory(reference.pointer, _id_directory as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _id_networkCount = _class.instanceMethodId( + r'networkCount', + r'()I', + ); - @_$jni.internal - @_$core.override - final superCount = 1; + static final _networkCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int networkCount()` + int networkCount() { + return _networkCount( + reference.pointer, _id_networkCount as _$jni.JMethodIDPtr) + .integer; + } - @_$core.override - int get hashCode => ($Headers_Companion$Type).hashCode; + static final _id_hitCount = _class.instanceMethodId( + r'hitCount', + r'()I', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Headers_Companion$Type) && - other is $Headers_Companion$Type; + static final _hitCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int hitCount()` + int hitCount() { + return _hitCount(reference.pointer, _id_hitCount as _$jni.JMethodIDPtr) + .integer; } -} - -/// from: `okhttp3.Headers` -class Headers extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - @_$jni.internal - Headers.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _id_requestCount = _class.instanceMethodId( + r'requestCount', + r'()I', + ); - static final _class = _$jni.JClass.forName(r'okhttp3/Headers'); + static final _requestCount = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int requestCount()` + int requestCount() { + return _requestCount( + reference.pointer, _id_requestCount as _$jni.JMethodIDPtr) + .integer; + } - /// The type which includes information such as the signature of this class. - static const type = $Headers$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/Headers$Companion;', + static final _id_key = _class.staticMethodId( + r'key', + r'(Lokhttp3/HttpUrl;)Ljava/lang/String;', ); - /// from: `static public final okhttp3.Headers$Companion Companion` + static final _key = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final java.lang.String key(okhttp3.HttpUrl httpUrl)` /// The returned object must be released after use, by calling the [release] method. - static Headers_Companion get Companion => - _id_Companion.get(_class, const $Headers_Companion$Type()); + static _$jni.JString key( + _$jni.JObject httpUrl, + ) { + return _key(_class.reference.pointer, _id_key as _$jni.JMethodIDPtr, + httpUrl.reference.pointer) + .object(const _$jni.JStringType()); + } } -final class $Headers$Type extends _$jni.JObjType { +final class $Cache$Type extends _$jni.JObjType { @_$jni.internal - const $Headers$Type(); + const $Cache$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/Headers;'; + String get signature => r'Lokhttp3/Cache;'; @_$jni.internal @_$core.override - Headers fromReference(_$jni.JReference reference) => - Headers.fromReference(reference); + Cache fromReference(_$jni.JReference reference) => + Cache.fromReference(reference); @_$jni.internal @_$core.override @@ -1057,33 +10664,68 @@ final class $Headers$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($Headers$Type).hashCode; + int get hashCode => ($Cache$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Headers$Type) && other is $Headers$Type; + return other.runtimeType == ($Cache$Type) && other is $Cache$Type; } } -/// from: `okhttp3.Callback` -class Callback extends _$jni.JObject { +/// from: `com.example.ok_http.RedirectReceivedCallback` +class RedirectReceivedCallback extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - Callback.fromReference( + RedirectReceivedCallback.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'okhttp3/Callback'); + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); /// The type which includes information such as the signature of this class. - static const type = $Callback$Type(); + static const type = $RedirectReceivedCallback$Type(); + static final _id_onRedirectReceived = _class.instanceMethodId( + r'onRedirectReceived', + r'(Lokhttp3/Response;Ljava/lang/String;)V', + ); + + static final _onRedirectReceived = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract void onRedirectReceived(okhttp3.Response response, java.lang.String string)` + void onRedirectReceived( + Response response, + _$jni.JString string, + ) { + _onRedirectReceived( + reference.pointer, + _id_onRedirectReceived as _$jni.JMethodIDPtr, + response.reference.pointer, + string.reference.pointer) + .check(); + } /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; + static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( int port, _$jni.JObjectPtr descriptor, @@ -1112,6 +10754,13 @@ class Callback extends _$jni.JObject { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; + if ($d == r'onRedirectReceived(Lokhttp3/Response;Ljava/lang/String;)V') { + _$impls[$p]!.onRedirectReceived( + $a[0].as(const $Response$Type(), releaseOriginal: true), + $a[1].as(const _$jni.JStringType(), releaseOriginal: true), + ); + return _$jni.nullptr; + } } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } @@ -1120,7 +10769,7 @@ class Callback extends _$jni.JObject { static void implementIn( _$jni.JImplementer implementer, - $Callback $impl, + $RedirectReceivedCallback $impl, ) { late final _$jni.RawReceivePort $p; $p = _$jni.RawReceivePort(($m) { @@ -1134,46 +10783,191 @@ class Callback extends _$jni.JObject { _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( - r'okhttp3.Callback', + r'com.example.ok_http.RedirectReceivedCallback', $p, _$invokePointer, - [], + [ + if ($impl.onRedirectReceived$async) + r'onRedirectReceived(Lokhttp3/Response;Ljava/lang/String;)V', + ], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory Callback.implement( - $Callback $impl, + factory RedirectReceivedCallback.implement( + $RedirectReceivedCallback $impl, ) { final $i = _$jni.JImplementer(); implementIn($i, $impl); - return Callback.fromReference( + return RedirectReceivedCallback.fromReference( $i.implementReference(), ); } } -abstract base mixin class $Callback { - factory $Callback() = _$Callback; +abstract base mixin class $RedirectReceivedCallback { + factory $RedirectReceivedCallback({ + required void Function(Response response, _$jni.JString string) + onRedirectReceived, + bool onRedirectReceived$async, + }) = _$RedirectReceivedCallback; + + void onRedirectReceived(Response response, _$jni.JString string); + bool get onRedirectReceived$async => false; +} + +final class _$RedirectReceivedCallback with $RedirectReceivedCallback { + _$RedirectReceivedCallback({ + required void Function(Response response, _$jni.JString string) + onRedirectReceived, + this.onRedirectReceived$async = false, + }) : _onRedirectReceived = onRedirectReceived; + + final void Function(Response response, _$jni.JString string) + _onRedirectReceived; + final bool onRedirectReceived$async; + + void onRedirectReceived(Response response, _$jni.JString string) { + return _onRedirectReceived(response, string); + } +} + +final class $RedirectReceivedCallback$Type + extends _$jni.JObjType { + @_$jni.internal + const $RedirectReceivedCallback$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/RedirectReceivedCallback;'; + + @_$jni.internal + @_$core.override + RedirectReceivedCallback fromReference(_$jni.JReference reference) => + RedirectReceivedCallback.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($RedirectReceivedCallback$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($RedirectReceivedCallback$Type) && + other is $RedirectReceivedCallback$Type; + } } -final class _$Callback with $Callback { - _$Callback(); +/// from: `com.example.ok_http.RedirectInterceptor$Companion` +class RedirectInterceptor_Companion extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + RedirectInterceptor_Companion.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName( + r'com/example/ok_http/RedirectInterceptor$Companion'); + + /// The type which includes information such as the signature of this class. + static const type = $RedirectInterceptor_Companion$Type(); + static final _id_addRedirectInterceptor = _class.instanceMethodId( + r'addRedirectInterceptor', + r'(Lokhttp3/OkHttpClient$Builder;IZLcom/example/ok_http/RedirectReceivedCallback;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _addRedirectInterceptor = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + int, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder addRedirectInterceptor(okhttp3.OkHttpClient$Builder builder, int i, boolean z, com.example.ok_http.RedirectReceivedCallback redirectReceivedCallback)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder addRedirectInterceptor( + OkHttpClient_Builder builder, + int i, + bool z, + RedirectReceivedCallback redirectReceivedCallback, + ) { + return _addRedirectInterceptor( + reference.pointer, + _id_addRedirectInterceptor as _$jni.JMethodIDPtr, + builder.reference.pointer, + i, + z ? 1 : 0, + redirectReceivedCallback.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory RedirectInterceptor_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return RedirectInterceptor_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } } -final class $Callback$Type extends _$jni.JObjType { +final class $RedirectInterceptor_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $Callback$Type(); + const $RedirectInterceptor_Companion$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/Callback;'; + String get signature => + r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; @_$jni.internal @_$core.override - Callback fromReference(_$jni.JReference reference) => - Callback.fromReference(reference); + RedirectInterceptor_Companion fromReference(_$jni.JReference reference) => + RedirectInterceptor_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -1184,93 +10978,80 @@ final class $Callback$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($Callback$Type).hashCode; + int get hashCode => ($RedirectInterceptor_Companion$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Callback$Type) && other is $Callback$Type; + return other.runtimeType == ($RedirectInterceptor_Companion$Type) && + other is $RedirectInterceptor_Companion$Type; } } -/// from: `okhttp3.ConnectionPool` -class ConnectionPool extends _$jni.JObject { +/// from: `com.example.ok_http.RedirectInterceptor` +class RedirectInterceptor extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - ConnectionPool.fromReference( + RedirectInterceptor.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'okhttp3/ConnectionPool'); + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); /// The type which includes information such as the signature of this class. - static const type = $ConnectionPool$Type(); -} - -final class $ConnectionPool$Type extends _$jni.JObjType { - @_$jni.internal - const $ConnectionPool$Type(); - - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/ConnectionPool;'; - - @_$jni.internal - @_$core.override - ConnectionPool fromReference(_$jni.JReference reference) => - ConnectionPool.fromReference(reference); + static const type = $RedirectInterceptor$Type(); + static final _id_Companion = _class.staticFieldId( + r'Companion', + r'Lcom/example/ok_http/RedirectInterceptor$Companion;', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + /// from: `static public final com.example.ok_http.RedirectInterceptor$Companion Companion` + /// The returned object must be released after use, by calling the [release] method. + static RedirectInterceptor_Companion get Companion => + _id_Companion.get(_class, const $RedirectInterceptor_Companion$Type()); - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_new$ = _class.constructorId( + r'()V', + ); - @_$core.override - int get hashCode => ($ConnectionPool$Type).hashCode; + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($ConnectionPool$Type) && - other is $ConnectionPool$Type; + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory RedirectInterceptor() { + return RedirectInterceptor.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); } } -/// from: `okhttp3.Dispatcher` -class Dispatcher extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - Dispatcher.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = _$jni.JClass.forName(r'okhttp3/Dispatcher'); - - /// The type which includes information such as the signature of this class. - static const type = $Dispatcher$Type(); -} - -final class $Dispatcher$Type extends _$jni.JObjType { +final class $RedirectInterceptor$Type + extends _$jni.JObjType { @_$jni.internal - const $Dispatcher$Type(); + const $RedirectInterceptor$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/Dispatcher;'; + String get signature => r'Lcom/example/ok_http/RedirectInterceptor;'; @_$jni.internal @_$core.override - Dispatcher fromReference(_$jni.JReference reference) => - Dispatcher.fromReference(reference); + RedirectInterceptor fromReference(_$jni.JReference reference) => + RedirectInterceptor.fromReference(reference); @_$jni.internal @_$core.override @@ -1281,64 +11062,62 @@ final class $Dispatcher$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($Dispatcher$Type).hashCode; + int get hashCode => ($RedirectInterceptor$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Dispatcher$Type) && other is $Dispatcher$Type; + return other.runtimeType == ($RedirectInterceptor$Type) && + other is $RedirectInterceptor$Type; } } -/// from: `java.util.concurrent.ExecutorService` -class ExecutorService extends _$jni.JObject { +/// from: `com.example.ok_http.AsyncInputStreamReader` +class AsyncInputStreamReader extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - ExecutorService.fromReference( + AsyncInputStreamReader.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); static final _class = - _$jni.JClass.forName(r'java/util/concurrent/ExecutorService'); + _$jni.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); /// The type which includes information such as the signature of this class. - static const type = $ExecutorService$Type(); - static final _id_submit = _class.instanceMethodId( - r'submit', - r'(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;', + static const type = $AsyncInputStreamReader$Type(); + static final _id_new$ = _class.constructorId( + r'()V', ); - static final _submit = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( - 'globalEnv_CallObjectMethod') + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - /// from: `public abstract java.util.concurrent.Future submit(java.util.concurrent.Callable callable)` + /// from: `public void ()` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject submit<$T extends _$jni.JObject>( - _$jni.JObject callable, { - required _$jni.JObjType<$T> T, - }) { - return _submit(reference.pointer, _id_submit as _$jni.JMethodIDPtr, - callable.reference.pointer) - .object(const _$jni.JObjectType()); + factory AsyncInputStreamReader() { + return AsyncInputStreamReader.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); } - static final _id_submit$1 = _class.instanceMethodId( - r'submit', - r'(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;', + static final _id_readAsync = _class.instanceMethodId( + r'readAsync', + r'(Ljava/io/InputStream;Lcom/example/ok_http/DataCallback;)Ljava/util/concurrent/Future;', ); - static final _submit$1 = _$jni.ProtectedJniExtensions.lookup< + static final _readAsync = _$jni.ProtectedJniExtensions.lookup< _$jni.NativeFunction< _$jni.JniResult Function( _$jni.Pointer<_$jni.Void>, @@ -1355,185 +11134,164 @@ class ExecutorService extends _$jni.JObject { _$jni.Pointer<_$jni.Void>, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable, T object)` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject submit$1<$T extends _$jni.JObject>( - _$jni.JObject runnable, - $T object, { - _$jni.JObjType<$T>? T, - }) { - T ??= _$jni.lowestCommonSuperType([ - object.$type, - ]) as _$jni.JObjType<$T>; - return _submit$1(reference.pointer, _id_submit$1 as _$jni.JMethodIDPtr, - runnable.reference.pointer, object.reference.pointer) - .object(const _$jni.JObjectType()); - } - - static final _id_submit$2 = _class.instanceMethodId( - r'submit', - r'(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;', - ); - - static final _submit$2 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( - 'globalEnv_CallObjectMethod') - .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - - /// from: `public abstract java.util.concurrent.Future submit(java.lang.Runnable runnable)` + /// from: `public final java.util.concurrent.Future readAsync(java.io.InputStream inputStream, com.example.ok_http.DataCallback dataCallback)` /// The returned object must be released after use, by calling the [release] method. - _$jni.JObject submit$2( - _$jni.JObject runnable, + _$jni.JObject readAsync( + _$jni.JObject inputStream, + DataCallback dataCallback, ) { - return _submit$2(reference.pointer, _id_submit$2 as _$jni.JMethodIDPtr, - runnable.reference.pointer) + return _readAsync(reference.pointer, _id_readAsync as _$jni.JMethodIDPtr, + inputStream.reference.pointer, dataCallback.reference.pointer) .object(const _$jni.JObjectType()); } - static final _id_invokeAll = _class.instanceMethodId( - r'invokeAll', - r'(Ljava/util/Collection;)Ljava/util/List;', + static final _id_shutdown = _class.instanceMethodId( + r'shutdown', + r'()V', ); - static final _invokeAll = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( - 'globalEnv_CallObjectMethod') + static final _shutdown = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - - /// from: `public abstract java.util.List invokeAll(java.util.Collection collection)` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> invokeAll<$T extends _$jni.JObject>( - _$jni.JObject collection, { - required _$jni.JObjType<$T> T, - }) { - return _invokeAll(reference.pointer, _id_invokeAll as _$jni.JMethodIDPtr, - collection.reference.pointer) - .object(const _$jni.JListType(_$jni.JObjectType())); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final void shutdown()` + void shutdown() { + _shutdown(reference.pointer, _id_shutdown as _$jni.JMethodIDPtr).check(); } +} - static final _id_invokeAll$1 = _class.instanceMethodId( - r'invokeAll', - r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;', - ); +final class $AsyncInputStreamReader$Type + extends _$jni.JObjType { + @_$jni.internal + const $AsyncInputStreamReader$Type(); - static final _invokeAll$1 = _$jni.ProtectedJniExtensions.lookup< - _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< - ( - _$jni.Pointer<_$jni.Void>, - _$jni.Int64, - _$jni.Pointer<_$jni.Void> - )>)>>('globalEnv_CallObjectMethod') - .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - int, - _$jni.Pointer<_$jni.Void>)>(); + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/AsyncInputStreamReader;'; - /// from: `public abstract java.util.List invokeAll(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` - /// The returned object must be released after use, by calling the [release] method. - _$jni.JList<_$jni.JObject> invokeAll$1<$T extends _$jni.JObject>( - _$jni.JObject collection, - int j, - TimeUnit timeUnit, { - required _$jni.JObjType<$T> T, - }) { - return _invokeAll$1( - reference.pointer, - _id_invokeAll$1 as _$jni.JMethodIDPtr, - collection.reference.pointer, - j, - timeUnit.reference.pointer) - .object(const _$jni.JListType(_$jni.JObjectType())); + @_$jni.internal + @_$core.override + AsyncInputStreamReader fromReference(_$jni.JReference reference) => + AsyncInputStreamReader.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($AsyncInputStreamReader$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($AsyncInputStreamReader$Type) && + other is $AsyncInputStreamReader$Type; } +} - static final _id_invokeAny = _class.instanceMethodId( - r'invokeAny', - r'(Ljava/util/Collection;)Ljava/lang/Object;', +/// from: `com.example.ok_http.DataCallback` +class DataCallback extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + DataCallback.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/DataCallback'); + + /// The type which includes information such as the signature of this class. + static const type = $DataCallback$Type(); + static final _id_onDataRead = _class.instanceMethodId( + r'onDataRead', + r'([B)V', ); - static final _invokeAny = _$jni.ProtectedJniExtensions.lookup< + static final _onDataRead = _$jni.ProtectedJniExtensions.lookup< _$jni.NativeFunction< - _$jni.JniResult Function( + _$jni.JThrowablePtr Function( _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( - 'globalEnv_CallObjectMethod') + 'globalEnv_CallVoidMethod') .asFunction< - _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - /// from: `public abstract T invokeAny(java.util.Collection collection)` - /// The returned object must be released after use, by calling the [release] method. - $T invokeAny<$T extends _$jni.JObject>( - _$jni.JObject collection, { - required _$jni.JObjType<$T> T, - }) { - return _invokeAny(reference.pointer, _id_invokeAny as _$jni.JMethodIDPtr, - collection.reference.pointer) - .object(T); + /// from: `public abstract void onDataRead(byte[] bs)` + void onDataRead( + _$jni.JArray<_$jni.jbyte> bs, + ) { + _onDataRead(reference.pointer, _id_onDataRead as _$jni.JMethodIDPtr, + bs.reference.pointer) + .check(); } - static final _id_invokeAny$1 = _class.instanceMethodId( - r'invokeAny', - r'(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;', + static final _id_onFinished = _class.instanceMethodId( + r'onFinished', + r'()V', ); - static final _invokeAny$1 = _$jni.ProtectedJniExtensions.lookup< + static final _onFinished = _$jni.ProtectedJniExtensions.lookup< _$jni.NativeFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.VarArgs< - ( - _$jni.Pointer<_$jni.Void>, - _$jni.Int64, - _$jni.Pointer<_$jni.Void> - )>)>>('globalEnv_CallObjectMethod') + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') .asFunction< - _$jni.JniResult Function( - _$jni.Pointer<_$jni.Void>, - _$jni.JMethodIDPtr, - _$jni.Pointer<_$jni.Void>, - int, - _$jni.Pointer<_$jni.Void>)>(); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract void onFinished()` + void onFinished() { + _onFinished(reference.pointer, _id_onFinished as _$jni.JMethodIDPtr) + .check(); + } - /// from: `public abstract T invokeAny(java.util.Collection collection, long j, java.util.concurrent.TimeUnit timeUnit)` - /// The returned object must be released after use, by calling the [release] method. - $T invokeAny$1<$T extends _$jni.JObject>( - _$jni.JObject collection, - int j, - TimeUnit timeUnit, { - required _$jni.JObjType<$T> T, - }) { - return _invokeAny$1( - reference.pointer, - _id_invokeAny$1 as _$jni.JMethodIDPtr, - collection.reference.pointer, - j, - timeUnit.reference.pointer) - .object(T); + static final _id_onError = _class.instanceMethodId( + r'onError', + r'(Ljava/io/IOException;)V', + ); + + static final _onError = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract void onError(java.io.IOException iOException)` + void onError( + _$jni.JObject iOException, + ) { + _onError(reference.pointer, _id_onError as _$jni.JMethodIDPtr, + iOException.reference.pointer) + .check(); } /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; + static final _$core.Map _$impls = {}; static _$jni.JObjectPtr _$invoke( int port, _$jni.JObjectPtr descriptor, @@ -1562,76 +11320,237 @@ class ExecutorService extends _$jni.JObject { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; - if ($d == - r'submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit( - $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject) - .as(const _$jni.JObjectType()) - .reference - .toPointer(); - } - if ($d == - r'submit(Ljava/lang/Runnable;Ljava/lang/Object;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit$1( - $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - $a[1].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject) - .as(const _$jni.JObjectType()) - .reference - .toPointer(); - } - if ($d == r'submit(Ljava/lang/Runnable;)Ljava/util/concurrent/Future;') { - final $r = _$impls[$p]!.submit$2( - $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), + if ($d == r'onDataRead([B)V') { + _$impls[$p]!.onDataRead( + $a[0].as(const _$jni.JArrayType(_$jni.jbyteType()), + releaseOriginal: true), ); - return ($r as _$jni.JObject) - .as(const _$jni.JObjectType()) - .reference - .toPointer(); + return _$jni.nullptr; } - if ($d == r'invokeAll(Ljava/util/Collection;)Ljava/util/List;') { - final $r = _$impls[$p]!.invokeAll( - $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject) - .as(const _$jni.JObjectType()) - .reference - .toPointer(); + if ($d == r'onFinished()V') { + _$impls[$p]!.onFinished(); + return _$jni.nullptr; } - if ($d == - r'invokeAll(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/util/List;') { - final $r = _$impls[$p]!.invokeAll$1( + if ($d == r'onError(Ljava/io/IOException;)V') { + _$impls[$p]!.onError( $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - $a[1] - .as(const _$jni.JLongType(), releaseOriginal: true) - .longValue(releaseOriginal: true), - $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), ); - return ($r as _$jni.JObject) - .as(const _$jni.JObjectType()) - .reference - .toPointer(); + return _$jni.nullptr; } - if ($d == r'invokeAny(Ljava/util/Collection;)Ljava/lang/Object;') { - final $r = _$impls[$p]!.invokeAny( - $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - ); - return ($r as _$jni.JObject) - .as(const _$jni.JObjectType()) - .reference - .toPointer(); + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; + } + + static void implementIn( + _$jni.JImplementer implementer, + $DataCallback $impl, + ) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'com.example.ok_http.DataCallback', + $p, + _$invokePointer, + [ + if ($impl.onDataRead$async) r'onDataRead([B)V', + if ($impl.onFinished$async) r'onFinished()V', + if ($impl.onError$async) r'onError(Ljava/io/IOException;)V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; + } + + factory DataCallback.implement( + $DataCallback $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return DataCallback.fromReference( + $i.implementReference(), + ); + } +} + +abstract base mixin class $DataCallback { + factory $DataCallback({ + required void Function(_$jni.JArray<_$jni.jbyte> bs) onDataRead, + bool onDataRead$async, + required void Function() onFinished, + bool onFinished$async, + required void Function(_$jni.JObject iOException) onError, + bool onError$async, + }) = _$DataCallback; + + void onDataRead(_$jni.JArray<_$jni.jbyte> bs); + bool get onDataRead$async => false; + void onFinished(); + bool get onFinished$async => false; + void onError(_$jni.JObject iOException); + bool get onError$async => false; +} + +final class _$DataCallback with $DataCallback { + _$DataCallback({ + required void Function(_$jni.JArray<_$jni.jbyte> bs) onDataRead, + this.onDataRead$async = false, + required void Function() onFinished, + this.onFinished$async = false, + required void Function(_$jni.JObject iOException) onError, + this.onError$async = false, + }) : _onDataRead = onDataRead, + _onFinished = onFinished, + _onError = onError; + + final void Function(_$jni.JArray<_$jni.jbyte> bs) _onDataRead; + final bool onDataRead$async; + final void Function() _onFinished; + final bool onFinished$async; + final void Function(_$jni.JObject iOException) _onError; + final bool onError$async; + + void onDataRead(_$jni.JArray<_$jni.jbyte> bs) { + return _onDataRead(bs); + } + + void onFinished() { + return _onFinished(); + } + + void onError(_$jni.JObject iOException) { + return _onError(iOException); + } +} + +final class $DataCallback$Type extends _$jni.JObjType { + @_$jni.internal + const $DataCallback$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lcom/example/ok_http/DataCallback;'; + + @_$jni.internal + @_$core.override + DataCallback fromReference(_$jni.JReference reference) => + DataCallback.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($DataCallback$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($DataCallback$Type) && + other is $DataCallback$Type; + } +} + +/// from: `okhttp3.WebSocket$Factory` +class WebSocket_Factory extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + WebSocket_Factory.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket$Factory'); + + /// The type which includes information such as the signature of this class. + static const type = $WebSocket_Factory$Type(); + static final _id_newWebSocket = _class.instanceMethodId( + r'newWebSocket', + r'(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;', + ); + + static final _newWebSocket = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract okhttp3.WebSocket newWebSocket(okhttp3.Request request, okhttp3.WebSocketListener webSocketListener)` + /// The returned object must be released after use, by calling the [release] method. + WebSocket newWebSocket( + Request request, + _$jni.JObject webSocketListener, + ) { + return _newWebSocket( + reference.pointer, + _id_newWebSocket as _$jni.JMethodIDPtr, + request.reference.pointer, + webSocketListener.reference.pointer) + .object(const $WebSocket$Type()); + } + + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); + } + + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; if ($d == - r'invokeAny(Ljava/util/Collection;JLjava/util/concurrent/TimeUnit;)Ljava/lang/Object;') { - final $r = _$impls[$p]!.invokeAny$1( - $a[0].as(const _$jni.JObjectType(), releaseOriginal: true), - $a[1] - .as(const _$jni.JLongType(), releaseOriginal: true) - .longValue(releaseOriginal: true), - $a[2].as(const $TimeUnit$Type(), releaseOriginal: true), + r'newWebSocket(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket;') { + final $r = _$impls[$p]!.newWebSocket( + $a[0].as(const $Request$Type(), releaseOriginal: true), + $a[1].as(const _$jni.JObjectType(), releaseOriginal: true), ); return ($r as _$jni.JObject) .as(const _$jni.JObjectType()) @@ -1646,7 +11565,7 @@ class ExecutorService extends _$jni.JObject { static void implementIn( _$jni.JImplementer implementer, - $ExecutorService $impl, + $WebSocket_Factory $impl, ) { late final _$jni.RawReceivePort $p; $p = _$jni.RawReceivePort(($m) { @@ -1660,7 +11579,7 @@ class ExecutorService extends _$jni.JObject { _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( - r'java.util.concurrent.ExecutorService', + r'okhttp3.WebSocket$Factory', $p, _$invokePointer, [], @@ -1669,173 +11588,426 @@ class ExecutorService extends _$jni.JObject { _$impls[$a] = $impl; } - factory ExecutorService.implement( - $ExecutorService $impl, + factory WebSocket_Factory.implement( + $WebSocket_Factory $impl, ) { final $i = _$jni.JImplementer(); implementIn($i, $impl); - return ExecutorService.fromReference( + return WebSocket_Factory.fromReference( $i.implementReference(), ); } } -abstract base mixin class $ExecutorService { - factory $ExecutorService({ - required _$jni.JObject Function(_$jni.JObject callable) submit, - required _$jni.JObject Function( - _$jni.JObject runnable, _$jni.JObject object) - submit$1, - required _$jni.JObject Function(_$jni.JObject runnable) submit$2, - required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) - invokeAll, - required _$jni.JList<_$jni.JObject> Function( - _$jni.JObject collection, int j, TimeUnit timeUnit) - invokeAll$1, - required _$jni.JObject Function(_$jni.JObject collection) invokeAny, - required _$jni.JObject Function( - _$jni.JObject collection, int j, TimeUnit timeUnit) - invokeAny$1, - }) = _$ExecutorService; +abstract base mixin class $WebSocket_Factory { + factory $WebSocket_Factory({ + required WebSocket Function( + Request request, _$jni.JObject webSocketListener) + newWebSocket, + }) = _$WebSocket_Factory; - _$jni.JObject submit(_$jni.JObject callable); - _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object); - _$jni.JObject submit$2(_$jni.JObject runnable); - _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection); - _$jni.JList<_$jni.JObject> invokeAll$1( - _$jni.JObject collection, int j, TimeUnit timeUnit); - _$jni.JObject invokeAny(_$jni.JObject collection); - _$jni.JObject invokeAny$1(_$jni.JObject collection, int j, TimeUnit timeUnit); + WebSocket newWebSocket(Request request, _$jni.JObject webSocketListener); } -final class _$ExecutorService with $ExecutorService { - _$ExecutorService({ - required _$jni.JObject Function(_$jni.JObject callable) submit, - required _$jni.JObject Function( - _$jni.JObject runnable, _$jni.JObject object) - submit$1, - required _$jni.JObject Function(_$jni.JObject runnable) submit$2, - required _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) - invokeAll, - required _$jni.JList<_$jni.JObject> Function( - _$jni.JObject collection, int j, TimeUnit timeUnit) - invokeAll$1, - required _$jni.JObject Function(_$jni.JObject collection) invokeAny, - required _$jni.JObject Function( - _$jni.JObject collection, int j, TimeUnit timeUnit) - invokeAny$1, - }) : _submit = submit, - _submit$1 = submit$1, - _submit$2 = submit$2, - _invokeAll = invokeAll, - _invokeAll$1 = invokeAll$1, - _invokeAny = invokeAny, - _invokeAny$1 = invokeAny$1; +final class _$WebSocket_Factory with $WebSocket_Factory { + _$WebSocket_Factory({ + required WebSocket Function( + Request request, _$jni.JObject webSocketListener) + newWebSocket, + }) : _newWebSocket = newWebSocket; - final _$jni.JObject Function(_$jni.JObject callable) _submit; - final _$jni.JObject Function(_$jni.JObject runnable, _$jni.JObject object) - _submit$1; - final _$jni.JObject Function(_$jni.JObject runnable) _submit$2; - final _$jni.JList<_$jni.JObject> Function(_$jni.JObject collection) - _invokeAll; - final _$jni.JList<_$jni.JObject> Function( - _$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAll$1; - final _$jni.JObject Function(_$jni.JObject collection) _invokeAny; - final _$jni.JObject Function( - _$jni.JObject collection, int j, TimeUnit timeUnit) _invokeAny$1; + final WebSocket Function(Request request, _$jni.JObject webSocketListener) + _newWebSocket; - _$jni.JObject submit(_$jni.JObject callable) { - return _submit(callable); + WebSocket newWebSocket(Request request, _$jni.JObject webSocketListener) { + return _newWebSocket(request, webSocketListener); } +} - _$jni.JObject submit$1(_$jni.JObject runnable, _$jni.JObject object) { - return _submit$1(runnable, object); +final class $WebSocket_Factory$Type extends _$jni.JObjType { + @_$jni.internal + const $WebSocket_Factory$Type(); + + @_$jni.internal + @_$core.override + String get signature => r'Lokhttp3/WebSocket$Factory;'; + + @_$jni.internal + @_$core.override + WebSocket_Factory fromReference(_$jni.JReference reference) => + WebSocket_Factory.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($WebSocket_Factory$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == ($WebSocket_Factory$Type) && + other is $WebSocket_Factory$Type; + } +} + +/// from: `okhttp3.WebSocket` +class WebSocket extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + WebSocket.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket'); + + /// The type which includes information such as the signature of this class. + static const type = $WebSocket$Type(); + static final _id_request = _class.instanceMethodId( + r'request', + r'()Lokhttp3/Request;', + ); + + static final _request = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract okhttp3.Request request()` + /// The returned object must be released after use, by calling the [release] method. + Request request() { + return _request(reference.pointer, _id_request as _$jni.JMethodIDPtr) + .object(const $Request$Type()); } - _$jni.JObject submit$2(_$jni.JObject runnable) { - return _submit$2(runnable); + static final _id_queueSize = _class.instanceMethodId( + r'queueSize', + r'()J', + ); + + static final _queueSize = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract long queueSize()` + int queueSize() { + return _queueSize(reference.pointer, _id_queueSize as _$jni.JMethodIDPtr) + .long; + } + + static final _id_send = _class.instanceMethodId( + r'send', + r'(Ljava/lang/String;)Z', + ); + + static final _send = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract boolean send(java.lang.String string)` + bool send( + _$jni.JString string, + ) { + return _send(reference.pointer, _id_send as _$jni.JMethodIDPtr, + string.reference.pointer) + .boolean; + } + + static final _id_send$1 = _class.instanceMethodId( + r'send', + r'(Lokio/ByteString;)Z', + ); + + static final _send$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract boolean send(okio.ByteString byteString)` + bool send$1( + ByteString byteString, + ) { + return _send$1(reference.pointer, _id_send$1 as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .boolean; + } + + static final _id_close = _class.instanceMethodId( + r'close', + r'(ILjava/lang/String;)Z', + ); + + static final _close = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int32, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public abstract boolean close(int i, java.lang.String string)` + bool close( + int i, + _$jni.JString string, + ) { + return _close(reference.pointer, _id_close as _$jni.JMethodIDPtr, i, + string.reference.pointer) + .boolean; + } + + static final _id_cancel = _class.instanceMethodId( + r'cancel', + r'()V', + ); + + static final _cancel = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public abstract void cancel()` + void cancel() { + _cancel(reference.pointer, _id_cancel as _$jni.JMethodIDPtr).check(); + } + + /// Maps a specific port to the implemented interface. + static final _$core.Map _$impls = {}; + static _$jni.JObjectPtr _$invoke( + int port, + _$jni.JObjectPtr descriptor, + _$jni.JObjectPtr args, + ) { + return _$invokeMethod( + port, + _$jni.MethodInvocation.fromAddresses( + 0, + descriptor.address, + args.address, + ), + ); } - _$jni.JList<_$jni.JObject> invokeAll(_$jni.JObject collection) { - return _invokeAll(collection); - } + static final _$jni.Pointer< + _$jni.NativeFunction< + _$jni.JObjectPtr Function( + _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> + _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); - _$jni.JList<_$jni.JObject> invokeAll$1( - _$jni.JObject collection, int j, TimeUnit timeUnit) { - return _invokeAll$1(collection, j, timeUnit); + static _$jni.Pointer<_$jni.Void> _$invokeMethod( + int $p, + _$jni.MethodInvocation $i, + ) { + try { + final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); + final $a = $i.args; + if ($d == r'request()Lokhttp3/Request;') { + final $r = _$impls[$p]!.request(); + return ($r as _$jni.JObject) + .as(const _$jni.JObjectType()) + .reference + .toPointer(); + } + if ($d == r'queueSize()J') { + final $r = _$impls[$p]!.queueSize(); + return _$jni.JLong($r).reference.toPointer(); + } + if ($d == r'send(Ljava/lang/String;)Z') { + final $r = _$impls[$p]!.send( + $a[0].as(const _$jni.JStringType(), releaseOriginal: true), + ); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == r'send(Lokio/ByteString;)Z') { + final $r = _$impls[$p]!.send$1( + $a[0].as(const $ByteString$Type(), releaseOriginal: true), + ); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == r'close(ILjava/lang/String;)Z') { + final $r = _$impls[$p]!.close( + $a[0] + .as(const _$jni.JIntegerType(), releaseOriginal: true) + .intValue(releaseOriginal: true), + $a[1].as(const _$jni.JStringType(), releaseOriginal: true), + ); + return _$jni.JBoolean($r).reference.toPointer(); + } + if ($d == r'cancel()V') { + _$impls[$p]!.cancel(); + return _$jni.nullptr; + } + } catch (e) { + return _$jni.ProtectedJniExtensions.newDartException(e); + } + return _$jni.nullptr; } - _$jni.JObject invokeAny(_$jni.JObject collection) { - return _invokeAny(collection); + static void implementIn( + _$jni.JImplementer implementer, + $WebSocket $impl, + ) { + late final _$jni.RawReceivePort $p; + $p = _$jni.RawReceivePort(($m) { + if ($m == null) { + _$impls.remove($p.sendPort.nativePort); + $p.close(); + return; + } + final $i = _$jni.MethodInvocation.fromMessage($m); + final $r = _$invokeMethod($p.sendPort.nativePort, $i); + _$jni.ProtectedJniExtensions.returnResult($i.result, $r); + }); + implementer.add( + r'okhttp3.WebSocket', + $p, + _$invokePointer, + [ + if ($impl.cancel$async) r'cancel()V', + ], + ); + final $a = $p.sendPort.nativePort; + _$impls[$a] = $impl; } - _$jni.JObject invokeAny$1( - _$jni.JObject collection, int j, TimeUnit timeUnit) { - return _invokeAny$1(collection, j, timeUnit); + factory WebSocket.implement( + $WebSocket $impl, + ) { + final $i = _$jni.JImplementer(); + implementIn($i, $impl); + return WebSocket.fromReference( + $i.implementReference(), + ); } } -final class $ExecutorService$Type extends _$jni.JObjType { - @_$jni.internal - const $ExecutorService$Type(); - - @_$jni.internal - @_$core.override - String get signature => r'Ljava/util/concurrent/ExecutorService;'; - - @_$jni.internal - @_$core.override - ExecutorService fromReference(_$jni.JReference reference) => - ExecutorService.fromReference(reference); - - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); - - @_$jni.internal - @_$core.override - final superCount = 1; +abstract base mixin class $WebSocket { + factory $WebSocket({ + required Request Function() request, + required int Function() queueSize, + required bool Function(_$jni.JString string) send, + required bool Function(ByteString byteString) send$1, + required bool Function(int i, _$jni.JString string) close, + required void Function() cancel, + bool cancel$async, + }) = _$WebSocket; + + Request request(); + int queueSize(); + bool send(_$jni.JString string); + bool send$1(ByteString byteString); + bool close(int i, _$jni.JString string); + void cancel(); + bool get cancel$async => false; +} - @_$core.override - int get hashCode => ($ExecutorService$Type).hashCode; +final class _$WebSocket with $WebSocket { + _$WebSocket({ + required Request Function() request, + required int Function() queueSize, + required bool Function(_$jni.JString string) send, + required bool Function(ByteString byteString) send$1, + required bool Function(int i, _$jni.JString string) close, + required void Function() cancel, + this.cancel$async = false, + }) : _request = request, + _queueSize = queueSize, + _send = send, + _send$1 = send$1, + _close = close, + _cancel = cancel; + + final Request Function() _request; + final int Function() _queueSize; + final bool Function(_$jni.JString string) _send; + final bool Function(ByteString byteString) _send$1; + final bool Function(int i, _$jni.JString string) _close; + final void Function() _cancel; + final bool cancel$async; + + Request request() { + return _request(); + } - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($ExecutorService$Type) && - other is $ExecutorService$Type; + int queueSize() { + return _queueSize(); } -} -/// from: `okhttp3.Cache$Companion` -class Cache_Companion extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + bool send(_$jni.JString string) { + return _send(string); + } - @_$jni.internal - Cache_Companion.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + bool send$1(ByteString byteString) { + return _send$1(byteString); + } - static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Companion'); + bool close(int i, _$jni.JString string) { + return _close(i, string); + } - /// The type which includes information such as the signature of this class. - static const type = $Cache_Companion$Type(); + void cancel() { + return _cancel(); + } } -final class $Cache_Companion$Type extends _$jni.JObjType { +final class $WebSocket$Type extends _$jni.JObjType { @_$jni.internal - const $Cache_Companion$Type(); + const $WebSocket$Type(); @_$jni.internal @_$core.override - String get signature => r'Lokhttp3/Cache$Companion;'; + String get signature => r'Lokhttp3/WebSocket;'; @_$jni.internal @_$core.override - Cache_Companion fromReference(_$jni.JReference reference) => - Cache_Companion.fromReference(reference); + WebSocket fromReference(_$jni.JReference reference) => + WebSocket.fromReference(reference); @_$jni.internal @_$core.override @@ -1846,142 +12018,204 @@ final class $Cache_Companion$Type extends _$jni.JObjType { final superCount = 1; @_$core.override - int get hashCode => ($Cache_Companion$Type).hashCode; + int get hashCode => ($WebSocket$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($Cache_Companion$Type) && - other is $Cache_Companion$Type; + return other.runtimeType == ($WebSocket$Type) && other is $WebSocket$Type; } } -/// from: `okhttp3.Cache$Entry$Companion` -class Cache_Entry_Companion extends _$jni.JObject { +/// from: `com.example.ok_http.WebSocketListenerProxy$WebSocketListener` +class WebSocketListenerProxy_WebSocketListener extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - Cache_Entry_Companion.fromReference( + WebSocketListenerProxy_WebSocketListener.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName(r'okhttp3/Cache$Entry$Companion'); + static final _class = _$jni.JClass.forName( + r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); /// The type which includes information such as the signature of this class. - static const type = $Cache_Entry_Companion$Type(); -} - -final class $Cache_Entry_Companion$Type - extends _$jni.JObjType { - @_$jni.internal - const $Cache_Entry_Companion$Type(); - - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Cache$Entry$Companion;'; - - @_$jni.internal - @_$core.override - Cache_Entry_Companion fromReference(_$jni.JReference reference) => - Cache_Entry_Companion.fromReference(reference); - - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); - - @_$jni.internal - @_$core.override - final superCount = 1; + static const type = $WebSocketListenerProxy_WebSocketListener$Type(); + static final _id_onOpen = _class.instanceMethodId( + r'onOpen', + r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', + ); - @_$core.override - int get hashCode => ($Cache_Entry_Companion$Type).hashCode; + static final _onOpen = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Cache_Entry_Companion$Type) && - other is $Cache_Entry_Companion$Type; + /// from: `public abstract void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)` + void onOpen( + WebSocket webSocket, + Response response, + ) { + _onOpen(reference.pointer, _id_onOpen as _$jni.JMethodIDPtr, + webSocket.reference.pointer, response.reference.pointer) + .check(); } -} - -/// from: `okhttp3.Cache` -class Cache extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - - @_$jni.internal - Cache.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); - - static final _class = _$jni.JClass.forName(r'okhttp3/Cache'); - /// The type which includes information such as the signature of this class. - static const type = $Cache$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokhttp3/Cache$Companion;', + static final _id_onMessage = _class.instanceMethodId( + r'onMessage', + r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', ); - /// from: `static public final okhttp3.Cache$Companion Companion` - /// The returned object must be released after use, by calling the [release] method. - static Cache_Companion get Companion => - _id_Companion.get(_class, const $Cache_Companion$Type()); -} + static final _onMessage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); -final class $Cache$Type extends _$jni.JObjType { - @_$jni.internal - const $Cache$Type(); + /// from: `public abstract void onMessage(okhttp3.WebSocket webSocket, java.lang.String string)` + void onMessage( + WebSocket webSocket, + _$jni.JString string, + ) { + _onMessage(reference.pointer, _id_onMessage as _$jni.JMethodIDPtr, + webSocket.reference.pointer, string.reference.pointer) + .check(); + } - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/Cache;'; + static final _id_onMessage$1 = _class.instanceMethodId( + r'onMessage', + r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', + ); - @_$jni.internal - @_$core.override - Cache fromReference(_$jni.JReference reference) => - Cache.fromReference(reference); + static final _onMessage$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + /// from: `public abstract void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString)` + void onMessage$1( + WebSocket webSocket, + ByteString byteString, + ) { + _onMessage$1(reference.pointer, _id_onMessage$1 as _$jni.JMethodIDPtr, + webSocket.reference.pointer, byteString.reference.pointer) + .check(); + } - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_onClosing = _class.instanceMethodId( + r'onClosing', + r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', + ); - @_$core.override - int get hashCode => ($Cache$Type).hashCode; + static final _onClosing = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($Cache$Type) && other is $Cache$Type; + /// from: `public abstract void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string)` + void onClosing( + WebSocket webSocket, + int i, + _$jni.JString string, + ) { + _onClosing(reference.pointer, _id_onClosing as _$jni.JMethodIDPtr, + webSocket.reference.pointer, i, string.reference.pointer) + .check(); } -} - -/// from: `com.example.ok_http.RedirectReceivedCallback` -class RedirectReceivedCallback extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - @_$jni.internal - RedirectReceivedCallback.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _id_onFailure = _class.instanceMethodId( + r'onFailure', + r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', + ); - static final _class = - _$jni.JClass.forName(r'com/example/ok_http/RedirectReceivedCallback'); + static final _onFailure = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); - /// The type which includes information such as the signature of this class. - static const type = $RedirectReceivedCallback$Type(); + /// from: `public abstract void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response)` + void onFailure( + WebSocket webSocket, + _$jni.JObject throwable, + Response response, + ) { + _onFailure( + reference.pointer, + _id_onFailure as _$jni.JMethodIDPtr, + webSocket.reference.pointer, + throwable.reference.pointer, + response.reference.pointer) + .check(); + } /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; + static final _$core.Map + _$impls = {}; static _$jni.JObjectPtr _$invoke( int port, _$jni.JObjectPtr descriptor, @@ -2010,6 +12244,46 @@ class RedirectReceivedCallback extends _$jni.JObject { try { final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); final $a = $i.args; + if ($d == r'onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V') { + _$impls[$p]!.onOpen( + $a[0].as(const $WebSocket$Type(), releaseOriginal: true), + $a[1].as(const $Response$Type(), releaseOriginal: true), + ); + return _$jni.nullptr; + } + if ($d == r'onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V') { + _$impls[$p]!.onMessage( + $a[0].as(const $WebSocket$Type(), releaseOriginal: true), + $a[1].as(const _$jni.JStringType(), releaseOriginal: true), + ); + return _$jni.nullptr; + } + if ($d == r'onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V') { + _$impls[$p]!.onMessage$1( + $a[0].as(const $WebSocket$Type(), releaseOriginal: true), + $a[1].as(const $ByteString$Type(), releaseOriginal: true), + ); + return _$jni.nullptr; + } + if ($d == r'onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V') { + _$impls[$p]!.onClosing( + $a[0].as(const $WebSocket$Type(), releaseOriginal: true), + $a[1] + .as(const _$jni.JIntegerType(), releaseOriginal: true) + .intValue(releaseOriginal: true), + $a[2].as(const _$jni.JStringType(), releaseOriginal: true), + ); + return _$jni.nullptr; + } + if ($d == + r'onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V') { + _$impls[$p]!.onFailure( + $a[0].as(const $WebSocket$Type(), releaseOriginal: true), + $a[1].as(const _$jni.JObjectType(), releaseOriginal: true), + $a[2].as(const $Response$Type(), releaseOriginal: true), + ); + return _$jni.nullptr; + } } catch (e) { return _$jni.ProtectedJniExtensions.newDartException(e); } @@ -2018,7 +12292,7 @@ class RedirectReceivedCallback extends _$jni.JObject { static void implementIn( _$jni.JImplementer implementer, - $RedirectReceivedCallback $impl, + $WebSocketListenerProxy_WebSocketListener $impl, ) { late final _$jni.RawReceivePort $p; $p = _$jni.RawReceivePort(($m) { @@ -2032,47 +12306,388 @@ class RedirectReceivedCallback extends _$jni.JObject { _$jni.ProtectedJniExtensions.returnResult($i.result, $r); }); implementer.add( - r'com.example.ok_http.RedirectReceivedCallback', + r'com.example.ok_http.WebSocketListenerProxy$WebSocketListener', $p, _$invokePointer, - [], + [ + if ($impl.onOpen$async) + r'onOpen(Lokhttp3/WebSocket;Lokhttp3/Response;)V', + if ($impl.onMessage$async) + r'onMessage(Lokhttp3/WebSocket;Ljava/lang/String;)V', + if ($impl.onMessage$1$async) + r'onMessage(Lokhttp3/WebSocket;Lokio/ByteString;)V', + if ($impl.onClosing$async) + r'onClosing(Lokhttp3/WebSocket;ILjava/lang/String;)V', + if ($impl.onFailure$async) + r'onFailure(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', + ], ); final $a = $p.sendPort.nativePort; _$impls[$a] = $impl; } - factory RedirectReceivedCallback.implement( - $RedirectReceivedCallback $impl, + factory WebSocketListenerProxy_WebSocketListener.implement( + $WebSocketListenerProxy_WebSocketListener $impl, ) { final $i = _$jni.JImplementer(); implementIn($i, $impl); - return RedirectReceivedCallback.fromReference( + return WebSocketListenerProxy_WebSocketListener.fromReference( $i.implementReference(), ); } } -abstract base mixin class $RedirectReceivedCallback { - factory $RedirectReceivedCallback() = _$RedirectReceivedCallback; +abstract base mixin class $WebSocketListenerProxy_WebSocketListener { + factory $WebSocketListenerProxy_WebSocketListener({ + required void Function(WebSocket webSocket, Response response) onOpen, + bool onOpen$async, + required void Function(WebSocket webSocket, _$jni.JString string) onMessage, + bool onMessage$async, + required void Function(WebSocket webSocket, ByteString byteString) + onMessage$1, + bool onMessage$1$async, + required void Function(WebSocket webSocket, int i, _$jni.JString string) + onClosing, + bool onClosing$async, + required void Function( + WebSocket webSocket, _$jni.JObject throwable, Response response) + onFailure, + bool onFailure$async, + }) = _$WebSocketListenerProxy_WebSocketListener; + + void onOpen(WebSocket webSocket, Response response); + bool get onOpen$async => false; + void onMessage(WebSocket webSocket, _$jni.JString string); + bool get onMessage$async => false; + void onMessage$1(WebSocket webSocket, ByteString byteString); + bool get onMessage$1$async => false; + void onClosing(WebSocket webSocket, int i, _$jni.JString string); + bool get onClosing$async => false; + void onFailure( + WebSocket webSocket, _$jni.JObject throwable, Response response); + bool get onFailure$async => false; +} + +final class _$WebSocketListenerProxy_WebSocketListener + with $WebSocketListenerProxy_WebSocketListener { + _$WebSocketListenerProxy_WebSocketListener({ + required void Function(WebSocket webSocket, Response response) onOpen, + this.onOpen$async = false, + required void Function(WebSocket webSocket, _$jni.JString string) onMessage, + this.onMessage$async = false, + required void Function(WebSocket webSocket, ByteString byteString) + onMessage$1, + this.onMessage$1$async = false, + required void Function(WebSocket webSocket, int i, _$jni.JString string) + onClosing, + this.onClosing$async = false, + required void Function( + WebSocket webSocket, _$jni.JObject throwable, Response response) + onFailure, + this.onFailure$async = false, + }) : _onOpen = onOpen, + _onMessage = onMessage, + _onMessage$1 = onMessage$1, + _onClosing = onClosing, + _onFailure = onFailure; + + final void Function(WebSocket webSocket, Response response) _onOpen; + final bool onOpen$async; + final void Function(WebSocket webSocket, _$jni.JString string) _onMessage; + final bool onMessage$async; + final void Function(WebSocket webSocket, ByteString byteString) _onMessage$1; + final bool onMessage$1$async; + final void Function(WebSocket webSocket, int i, _$jni.JString string) + _onClosing; + final bool onClosing$async; + final void Function( + WebSocket webSocket, _$jni.JObject throwable, Response response) + _onFailure; + final bool onFailure$async; + + void onOpen(WebSocket webSocket, Response response) { + return _onOpen(webSocket, response); + } + + void onMessage(WebSocket webSocket, _$jni.JString string) { + return _onMessage(webSocket, string); + } + + void onMessage$1(WebSocket webSocket, ByteString byteString) { + return _onMessage$1(webSocket, byteString); + } + + void onClosing(WebSocket webSocket, int i, _$jni.JString string) { + return _onClosing(webSocket, i, string); + } + + void onFailure( + WebSocket webSocket, _$jni.JObject throwable, Response response) { + return _onFailure(webSocket, throwable, response); + } +} + +final class $WebSocketListenerProxy_WebSocketListener$Type + extends _$jni.JObjType { + @_$jni.internal + const $WebSocketListenerProxy_WebSocketListener$Type(); + + @_$jni.internal + @_$core.override + String get signature => + r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; + + @_$jni.internal + @_$core.override + WebSocketListenerProxy_WebSocketListener fromReference( + _$jni.JReference reference) => + WebSocketListenerProxy_WebSocketListener.fromReference(reference); + + @_$jni.internal + @_$core.override + _$jni.JObjType get superType => const _$jni.JObjectType(); + + @_$jni.internal + @_$core.override + final superCount = 1; + + @_$core.override + int get hashCode => ($WebSocketListenerProxy_WebSocketListener$Type).hashCode; + + @_$core.override + bool operator ==(Object other) { + return other.runtimeType == + ($WebSocketListenerProxy_WebSocketListener$Type) && + other is $WebSocketListenerProxy_WebSocketListener$Type; + } } -final class _$RedirectReceivedCallback with $RedirectReceivedCallback { - _$RedirectReceivedCallback(); +/// from: `com.example.ok_http.WebSocketListenerProxy` +class WebSocketListenerProxy extends _$jni.JObject { + @_$jni.internal + @_$core.override + final _$jni.JObjType $type; + + @_$jni.internal + WebSocketListenerProxy.fromReference( + _$jni.JReference reference, + ) : $type = type, + super.fromReference(reference); + + static final _class = + _$jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); + + /// The type which includes information such as the signature of this class. + static const type = $WebSocketListenerProxy$Type(); + static final _id_new$ = _class.constructorId( + r'(Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void (com.example.ok_http.WebSocketListenerProxy$WebSocketListener webSocketListener)` + /// The returned object must be released after use, by calling the [release] method. + factory WebSocketListenerProxy( + WebSocketListenerProxy_WebSocketListener webSocketListener, + ) { + return WebSocketListenerProxy.fromReference(_new$(_class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, webSocketListener.reference.pointer) + .reference); + } + + static final _id_onOpen = _class.instanceMethodId( + r'onOpen', + r'(Lokhttp3/WebSocket;Lokhttp3/Response;)V', + ); + + static final _onOpen = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void onOpen(okhttp3.WebSocket webSocket, okhttp3.Response response)` + void onOpen( + WebSocket webSocket, + Response response, + ) { + _onOpen(reference.pointer, _id_onOpen as _$jni.JMethodIDPtr, + webSocket.reference.pointer, response.reference.pointer) + .check(); + } + + static final _id_onMessage = _class.instanceMethodId( + r'onMessage', + r'(Lokhttp3/WebSocket;Ljava/lang/String;)V', + ); + + static final _onMessage = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void onMessage(okhttp3.WebSocket webSocket, java.lang.String string)` + void onMessage( + WebSocket webSocket, + _$jni.JString string, + ) { + _onMessage(reference.pointer, _id_onMessage as _$jni.JMethodIDPtr, + webSocket.reference.pointer, string.reference.pointer) + .check(); + } + + static final _id_onMessage$1 = _class.instanceMethodId( + r'onMessage', + r'(Lokhttp3/WebSocket;Lokio/ByteString;)V', + ); + + static final _onMessage$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void onMessage(okhttp3.WebSocket webSocket, okio.ByteString byteString)` + void onMessage$1( + WebSocket webSocket, + ByteString byteString, + ) { + _onMessage$1(reference.pointer, _id_onMessage$1 as _$jni.JMethodIDPtr, + webSocket.reference.pointer, byteString.reference.pointer) + .check(); + } + + static final _id_onClosing = _class.instanceMethodId( + r'onClosing', + r'(Lokhttp3/WebSocket;ILjava/lang/String;)V', + ); + + static final _onClosing = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + int, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void onClosing(okhttp3.WebSocket webSocket, int i, java.lang.String string)` + void onClosing( + WebSocket webSocket, + int i, + _$jni.JString string, + ) { + _onClosing(reference.pointer, _id_onClosing as _$jni.JMethodIDPtr, + webSocket.reference.pointer, i, string.reference.pointer) + .check(); + } + + static final _id_onFailure = _class.instanceMethodId( + r'onFailure', + r'(Lokhttp3/WebSocket;Ljava/lang/Throwable;Lokhttp3/Response;)V', + ); + + static final _onFailure = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public void onFailure(okhttp3.WebSocket webSocket, java.lang.Throwable throwable, okhttp3.Response response)` + void onFailure( + WebSocket webSocket, + _$jni.JObject throwable, + Response response, + ) { + _onFailure( + reference.pointer, + _id_onFailure as _$jni.JMethodIDPtr, + webSocket.reference.pointer, + throwable.reference.pointer, + response.reference.pointer) + .check(); + } } -final class $RedirectReceivedCallback$Type - extends _$jni.JObjType { +final class $WebSocketListenerProxy$Type + extends _$jni.JObjType { @_$jni.internal - const $RedirectReceivedCallback$Type(); + const $WebSocketListenerProxy$Type(); @_$jni.internal @_$core.override - String get signature => r'Lcom/example/ok_http/RedirectReceivedCallback;'; + String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy;'; @_$jni.internal @_$core.override - RedirectReceivedCallback fromReference(_$jni.JReference reference) => - RedirectReceivedCallback.fromReference(reference); + WebSocketListenerProxy fromReference(_$jni.JReference reference) => + WebSocketListenerProxy.fromReference(reference); @_$jni.internal @_$core.override @@ -2083,48 +12698,298 @@ final class $RedirectReceivedCallback$Type final superCount = 1; @_$core.override - int get hashCode => ($RedirectReceivedCallback$Type).hashCode; + int get hashCode => ($WebSocketListenerProxy$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($RedirectReceivedCallback$Type) && - other is $RedirectReceivedCallback$Type; + return other.runtimeType == ($WebSocketListenerProxy$Type) && + other is $WebSocketListenerProxy$Type; } } -/// from: `com.example.ok_http.RedirectInterceptor$Companion` -class RedirectInterceptor_Companion extends _$jni.JObject { +/// from: `okio.ByteString$Companion` +class ByteString_Companion extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - RedirectInterceptor_Companion.fromReference( + ByteString_Companion.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = _$jni.JClass.forName( - r'com/example/ok_http/RedirectInterceptor$Companion'); + static final _class = _$jni.JClass.forName(r'okio/ByteString$Companion'); /// The type which includes information such as the signature of this class. - static const type = $RedirectInterceptor_Companion$Type(); + static const type = $ByteString_Companion$Type(); + static final _id_of = _class.instanceMethodId( + r'of', + r'([B)Lokio/ByteString;', + ); + + static final _of = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okio.ByteString of(byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + ByteString of( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _of(reference.pointer, _id_of as _$jni.JMethodIDPtr, + bs.reference.pointer) + .object(const $ByteString$Type()); + } + + static final _id_of$1 = _class.instanceMethodId( + r'of', + r'([BII)Lokio/ByteString;', + ); + + static final _of$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); + + /// from: `public final okio.ByteString of(byte[] bs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + ByteString of$1( + _$jni.JArray<_$jni.jbyte> bs, + int i, + int i1, + ) { + return _of$1(reference.pointer, _id_of$1 as _$jni.JMethodIDPtr, + bs.reference.pointer, i, i1) + .object(const $ByteString$Type()); + } + + static final _id_of$2 = _class.instanceMethodId( + r'of', + r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', + ); + + static final _of$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okio.ByteString of(java.nio.ByteBuffer byteBuffer)` + /// The returned object must be released after use, by calling the [release] method. + ByteString of$2( + _$jni.JByteBuffer byteBuffer, + ) { + return _of$2(reference.pointer, _id_of$2 as _$jni.JMethodIDPtr, + byteBuffer.reference.pointer) + .object(const $ByteString$Type()); + } + + static final _id_encodeUtf8 = _class.instanceMethodId( + r'encodeUtf8', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); + + static final _encodeUtf8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okio.ByteString encodeUtf8(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + ByteString encodeUtf8( + _$jni.JString string, + ) { + return _encodeUtf8(reference.pointer, _id_encodeUtf8 as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const $ByteString$Type()); + } + + static final _id_encodeString = _class.instanceMethodId( + r'encodeString', + r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', + ); + + static final _encodeString = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset)` + /// The returned object must be released after use, by calling the [release] method. + ByteString encodeString( + _$jni.JString string, + _$jni.JObject charset, + ) { + return _encodeString( + reference.pointer, + _id_encodeString as _$jni.JMethodIDPtr, + string.reference.pointer, + charset.reference.pointer) + .object(const $ByteString$Type()); + } + + static final _id_decodeBase64 = _class.instanceMethodId( + r'decodeBase64', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); + + static final _decodeBase64 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okio.ByteString decodeBase64(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + ByteString decodeBase64( + _$jni.JString string, + ) { + return _decodeBase64(reference.pointer, + _id_decodeBase64 as _$jni.JMethodIDPtr, string.reference.pointer) + .object(const $ByteString$Type()); + } + + static final _id_decodeHex = _class.instanceMethodId( + r'decodeHex', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); + + static final _decodeHex = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okio.ByteString decodeHex(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + ByteString decodeHex( + _$jni.JString string, + ) { + return _decodeHex(reference.pointer, _id_decodeHex as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const $ByteString$Type()); + } + + static final _id_read = _class.instanceMethodId( + r'read', + r'(Ljava/io/InputStream;I)Lokio/ByteString;', + ); + + static final _read = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + + /// from: `public final okio.ByteString read(java.io.InputStream inputStream, int i)` + /// The returned object must be released after use, by calling the [release] method. + ByteString read( + _$jni.JObject inputStream, + int i, + ) { + return _read(reference.pointer, _id_read as _$jni.JMethodIDPtr, + inputStream.reference.pointer, i) + .object(const $ByteString$Type()); + } + + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory ByteString_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return ByteString_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } } -final class $RedirectInterceptor_Companion$Type - extends _$jni.JObjType { +final class $ByteString_Companion$Type + extends _$jni.JObjType { @_$jni.internal - const $RedirectInterceptor_Companion$Type(); + const $ByteString_Companion$Type(); @_$jni.internal @_$core.override - String get signature => - r'Lcom/example/ok_http/RedirectInterceptor$Companion;'; + String get signature => r'Lokio/ByteString$Companion;'; @_$jni.internal @_$core.override - RedirectInterceptor_Companion fromReference(_$jni.JReference reference) => - RedirectInterceptor_Companion.fromReference(reference); + ByteString_Companion fromReference(_$jni.JReference reference) => + ByteString_Companion.fromReference(reference); @_$jni.internal @_$core.override @@ -2135,782 +13000,1363 @@ final class $RedirectInterceptor_Companion$Type final superCount = 1; @_$core.override - int get hashCode => ($RedirectInterceptor_Companion$Type).hashCode; + int get hashCode => ($ByteString_Companion$Type).hashCode; @_$core.override bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptor_Companion$Type) && - other is $RedirectInterceptor_Companion$Type; + return other.runtimeType == ($ByteString_Companion$Type) && + other is $ByteString_Companion$Type; } } -/// from: `com.example.ok_http.RedirectInterceptor` -class RedirectInterceptor extends _$jni.JObject { +/// from: `okio.ByteString` +class ByteString extends _$jni.JObject { @_$jni.internal @_$core.override - final _$jni.JObjType $type; + final _$jni.JObjType $type; @_$jni.internal - RedirectInterceptor.fromReference( + ByteString.fromReference( _$jni.JReference reference, ) : $type = type, super.fromReference(reference); - static final _class = - _$jni.JClass.forName(r'com/example/ok_http/RedirectInterceptor'); + static final _class = _$jni.JClass.forName(r'okio/ByteString'); /// The type which includes information such as the signature of this class. - static const type = $RedirectInterceptor$Type(); + static const type = $ByteString$Type(); static final _id_Companion = _class.staticFieldId( r'Companion', - r'Lcom/example/ok_http/RedirectInterceptor$Companion;', + r'Lokio/ByteString$Companion;', ); - /// from: `static public final com.example.ok_http.RedirectInterceptor$Companion Companion` + /// from: `static public final okio.ByteString$Companion Companion` /// The returned object must be released after use, by calling the [release] method. - static RedirectInterceptor_Companion get Companion => - _id_Companion.get(_class, const $RedirectInterceptor_Companion$Type()); -} + static ByteString_Companion get Companion => + _id_Companion.get(_class, const $ByteString_Companion$Type()); -final class $RedirectInterceptor$Type - extends _$jni.JObjType { - @_$jni.internal - const $RedirectInterceptor$Type(); + static final _id_EMPTY = _class.staticFieldId( + r'EMPTY', + r'Lokio/ByteString;', + ); - @_$jni.internal - @_$core.override - String get signature => r'Lcom/example/ok_http/RedirectInterceptor;'; + /// from: `static public final okio.ByteString EMPTY` + /// The returned object must be released after use, by calling the [release] method. + static ByteString get EMPTY => + _id_EMPTY.get(_class, const $ByteString$Type()); - @_$jni.internal - @_$core.override - RedirectInterceptor fromReference(_$jni.JReference reference) => - RedirectInterceptor.fromReference(reference); + static final _id_new$ = _class.constructorId( + r'([B)V', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public void (byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + factory ByteString( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return ByteString.fromReference(_new$(_class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, bs.reference.pointer) + .reference); + } - @_$core.override - int get hashCode => ($RedirectInterceptor$Type).hashCode; + static final _id_utf8 = _class.instanceMethodId( + r'utf8', + r'()Ljava/lang/String;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($RedirectInterceptor$Type) && - other is $RedirectInterceptor$Type; + static final _utf8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public java.lang.String utf8()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString utf8() { + return _utf8(reference.pointer, _id_utf8 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); } -} -/// from: `com.example.ok_http.AsyncInputStreamReader` -class AsyncInputStreamReader extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_string = _class.instanceMethodId( + r'string', + r'(Ljava/nio/charset/Charset;)Ljava/lang/String;', + ); - @_$jni.internal - AsyncInputStreamReader.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _string = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = - _$jni.JClass.forName(r'com/example/ok_http/AsyncInputStreamReader'); + /// from: `public java.lang.String string(java.nio.charset.Charset charset)` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString string( + _$jni.JObject charset, + ) { + return _string(reference.pointer, _id_string as _$jni.JMethodIDPtr, + charset.reference.pointer) + .object(const _$jni.JStringType()); + } - /// The type which includes information such as the signature of this class. - static const type = $AsyncInputStreamReader$Type(); -} + static final _id_base64 = _class.instanceMethodId( + r'base64', + r'()Ljava/lang/String;', + ); -final class $AsyncInputStreamReader$Type - extends _$jni.JObjType { - @_$jni.internal - const $AsyncInputStreamReader$Type(); + static final _base64 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - String get signature => r'Lcom/example/ok_http/AsyncInputStreamReader;'; + /// from: `public java.lang.String base64()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString base64() { + return _base64(reference.pointer, _id_base64 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } - @_$jni.internal - @_$core.override - AsyncInputStreamReader fromReference(_$jni.JReference reference) => - AsyncInputStreamReader.fromReference(reference); + static final _id_md5 = _class.instanceMethodId( + r'md5', + r'()Lokio/ByteString;', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _md5 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public final okio.ByteString md5()` + /// The returned object must be released after use, by calling the [release] method. + ByteString md5() { + return _md5(reference.pointer, _id_md5 as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); + } - @_$core.override - int get hashCode => ($AsyncInputStreamReader$Type).hashCode; + static final _id_sha1 = _class.instanceMethodId( + r'sha1', + r'()Lokio/ByteString;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($AsyncInputStreamReader$Type) && - other is $AsyncInputStreamReader$Type; + static final _sha1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okio.ByteString sha1()` + /// The returned object must be released after use, by calling the [release] method. + ByteString sha1() { + return _sha1(reference.pointer, _id_sha1 as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); } -} -/// from: `com.example.ok_http.DataCallback` -class DataCallback extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_sha256 = _class.instanceMethodId( + r'sha256', + r'()Lokio/ByteString;', + ); - @_$jni.internal - DataCallback.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _sha256 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - static final _class = - _$jni.JClass.forName(r'com/example/ok_http/DataCallback'); + /// from: `public final okio.ByteString sha256()` + /// The returned object must be released after use, by calling the [release] method. + ByteString sha256() { + return _sha256(reference.pointer, _id_sha256 as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $DataCallback$Type(); + static final _id_sha512 = _class.instanceMethodId( + r'sha512', + r'()Lokio/ByteString;', + ); - /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; - static _$jni.JObjectPtr _$invoke( - int port, - _$jni.JObjectPtr descriptor, - _$jni.JObjectPtr args, - ) { - return _$invokeMethod( - port, - _$jni.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); + static final _sha512 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final okio.ByteString sha512()` + /// The returned object must be released after use, by calling the [release] method. + ByteString sha512() { + return _sha512(reference.pointer, _id_sha512 as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); } - static final _$jni.Pointer< - _$jni.NativeFunction< - _$jni.JObjectPtr Function( - _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> - _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + static final _id_hmacSha1 = _class.instanceMethodId( + r'hmacSha1', + r'(Lokio/ByteString;)Lokio/ByteString;', + ); - static _$jni.Pointer<_$jni.Void> _$invokeMethod( - int $p, - _$jni.MethodInvocation $i, + static final _hmacSha1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okio.ByteString hmacSha1(okio.ByteString byteString)` + /// The returned object must be released after use, by calling the [release] method. + ByteString hmacSha1( + ByteString byteString, ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - } catch (e) { - return _$jni.ProtectedJniExtensions.newDartException(e); - } - return _$jni.nullptr; + return _hmacSha1(reference.pointer, _id_hmacSha1 as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .object(const $ByteString$Type()); } - static void implementIn( - _$jni.JImplementer implementer, - $DataCallback $impl, + static final _id_hmacSha256 = _class.instanceMethodId( + r'hmacSha256', + r'(Lokio/ByteString;)Lokio/ByteString;', + ); + + static final _hmacSha256 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okio.ByteString hmacSha256(okio.ByteString byteString)` + /// The returned object must be released after use, by calling the [release] method. + ByteString hmacSha256( + ByteString byteString, ) { - late final _$jni.RawReceivePort $p; - $p = _$jni.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = _$jni.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - _$jni.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'com.example.ok_http.DataCallback', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; + return _hmacSha256(reference.pointer, _id_hmacSha256 as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .object(const $ByteString$Type()); } - factory DataCallback.implement( - $DataCallback $impl, + static final _id_hmacSha512 = _class.instanceMethodId( + r'hmacSha512', + r'(Lokio/ByteString;)Lokio/ByteString;', + ); + + static final _hmacSha512 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public okio.ByteString hmacSha512(okio.ByteString byteString)` + /// The returned object must be released after use, by calling the [release] method. + ByteString hmacSha512( + ByteString byteString, ) { - final $i = _$jni.JImplementer(); - implementIn($i, $impl); - return DataCallback.fromReference( - $i.implementReference(), - ); + return _hmacSha512(reference.pointer, _id_hmacSha512 as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .object(const $ByteString$Type()); } -} -abstract base mixin class $DataCallback { - factory $DataCallback() = _$DataCallback; -} + static final _id_base64Url = _class.instanceMethodId( + r'base64Url', + r'()Ljava/lang/String;', + ); -final class _$DataCallback with $DataCallback { - _$DataCallback(); -} + static final _base64Url = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); -final class $DataCallback$Type extends _$jni.JObjType { - @_$jni.internal - const $DataCallback$Type(); + /// from: `public java.lang.String base64Url()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString base64Url() { + return _base64Url(reference.pointer, _id_base64Url as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } - @_$jni.internal - @_$core.override - String get signature => r'Lcom/example/ok_http/DataCallback;'; + static final _id_hex = _class.instanceMethodId( + r'hex', + r'()Ljava/lang/String;', + ); - @_$jni.internal - @_$core.override - DataCallback fromReference(_$jni.JReference reference) => - DataCallback.fromReference(reference); + static final _hex = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + /// from: `public java.lang.String hex()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString hex() { + return _hex(reference.pointer, _id_hex as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_toAsciiLowercase = _class.instanceMethodId( + r'toAsciiLowercase', + r'()Lokio/ByteString;', + ); - @_$core.override - int get hashCode => ($DataCallback$Type).hashCode; + static final _toAsciiLowercase = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($DataCallback$Type) && - other is $DataCallback$Type; + /// from: `public okio.ByteString toAsciiLowercase()` + /// The returned object must be released after use, by calling the [release] method. + ByteString toAsciiLowercase() { + return _toAsciiLowercase( + reference.pointer, _id_toAsciiLowercase as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); } -} -/// from: `okhttp3.WebSocket$Factory` -class WebSocket_Factory extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_toAsciiUppercase = _class.instanceMethodId( + r'toAsciiUppercase', + r'()Lokio/ByteString;', + ); - @_$jni.internal - WebSocket_Factory.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _toAsciiUppercase = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket$Factory'); + /// from: `public okio.ByteString toAsciiUppercase()` + /// The returned object must be released after use, by calling the [release] method. + ByteString toAsciiUppercase() { + return _toAsciiUppercase( + reference.pointer, _id_toAsciiUppercase as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $WebSocket_Factory$Type(); + static final _id_substring = _class.instanceMethodId( + r'substring', + r'(II)Lokio/ByteString;', + ); - /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; - static _$jni.JObjectPtr _$invoke( - int port, - _$jni.JObjectPtr descriptor, - _$jni.JObjectPtr args, + static final _substring = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32, _$jni.Int32)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int, int)>(); + + /// from: `public okio.ByteString substring(int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + ByteString substring( + int i, + int i1, ) { - return _$invokeMethod( - port, - _$jni.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); + return _substring( + reference.pointer, _id_substring as _$jni.JMethodIDPtr, i, i1) + .object(const $ByteString$Type()); } - static final _$jni.Pointer< + static final _id_getByte = _class.instanceMethodId( + r'getByte', + r'(I)B', + ); + + static final _getByte = _$jni.ProtectedJniExtensions.lookup< _$jni.NativeFunction< - _$jni.JObjectPtr Function( - _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> - _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallByteMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); - static _$jni.Pointer<_$jni.Void> _$invokeMethod( - int $p, - _$jni.MethodInvocation $i, + /// from: `public final byte getByte(int i)` + int getByte( + int i, ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - } catch (e) { - return _$jni.ProtectedJniExtensions.newDartException(e); - } - return _$jni.nullptr; + return _getByte(reference.pointer, _id_getByte as _$jni.JMethodIDPtr, i) + .byte; } - static void implementIn( - _$jni.JImplementer implementer, - $WebSocket_Factory $impl, - ) { - late final _$jni.RawReceivePort $p; - $p = _$jni.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = _$jni.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - _$jni.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'okhttp3.WebSocket$Factory', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; - } + static final _id_size = _class.instanceMethodId( + r'size', + r'()I', + ); - factory WebSocket_Factory.implement( - $WebSocket_Factory $impl, - ) { - final $i = _$jni.JImplementer(); - implementIn($i, $impl); - return WebSocket_Factory.fromReference( - $i.implementReference(), - ); + static final _size = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public final int size()` + int size() { + return _size(reference.pointer, _id_size as _$jni.JMethodIDPtr).integer; } -} -abstract base mixin class $WebSocket_Factory { - factory $WebSocket_Factory() = _$WebSocket_Factory; -} + static final _id_toByteArray = _class.instanceMethodId( + r'toByteArray', + r'()[B', + ); -final class _$WebSocket_Factory with $WebSocket_Factory { - _$WebSocket_Factory(); -} + static final _toByteArray = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); -final class $WebSocket_Factory$Type extends _$jni.JObjType { - @_$jni.internal - const $WebSocket_Factory$Type(); + /// from: `public byte[] toByteArray()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JArray<_$jni.jbyte> toByteArray() { + return _toByteArray( + reference.pointer, _id_toByteArray as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType(_$jni.jbyteType())); + } - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/WebSocket$Factory;'; + static final _id_asByteBuffer = _class.instanceMethodId( + r'asByteBuffer', + r'()Ljava/nio/ByteBuffer;', + ); - @_$jni.internal - @_$core.override - WebSocket_Factory fromReference(_$jni.JReference reference) => - WebSocket_Factory.fromReference(reference); + static final _asByteBuffer = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + /// from: `public java.nio.ByteBuffer asByteBuffer()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JByteBuffer asByteBuffer() { + return _asByteBuffer( + reference.pointer, _id_asByteBuffer as _$jni.JMethodIDPtr) + .object(const _$jni.JByteBufferType()); + } - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_write = _class.instanceMethodId( + r'write', + r'(Ljava/io/OutputStream;)V', + ); - @_$core.override - int get hashCode => ($WebSocket_Factory$Type).hashCode; + static final _write = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocket_Factory$Type) && - other is $WebSocket_Factory$Type; + /// from: `public void write(java.io.OutputStream outputStream)` + void write( + _$jni.JObject outputStream, + ) { + _write(reference.pointer, _id_write as _$jni.JMethodIDPtr, + outputStream.reference.pointer) + .check(); } -} - -/// from: `okhttp3.WebSocket` -class WebSocket extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; - @_$jni.internal - WebSocket.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _id_rangeEquals = _class.instanceMethodId( + r'rangeEquals', + r'(ILokio/ByteString;II)Z', + ); - static final _class = _$jni.JClass.forName(r'okhttp3/WebSocket'); + static final _rangeEquals = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>, int, int)>(); + + /// from: `public boolean rangeEquals(int i, okio.ByteString byteString, int i1, int i2)` + bool rangeEquals( + int i, + ByteString byteString, + int i1, + int i2, + ) { + return _rangeEquals( + reference.pointer, + _id_rangeEquals as _$jni.JMethodIDPtr, + i, + byteString.reference.pointer, + i1, + i2) + .boolean; + } - /// The type which includes information such as the signature of this class. - static const type = $WebSocket$Type(); + static final _id_rangeEquals$1 = _class.instanceMethodId( + r'rangeEquals', + r'(I[BII)Z', + ); - /// Maps a specific port to the implemented interface. - static final _$core.Map _$impls = {}; - static _$jni.JObjectPtr _$invoke( - int port, - _$jni.JObjectPtr descriptor, - _$jni.JObjectPtr args, + static final _rangeEquals$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>, int, int)>(); + + /// from: `public boolean rangeEquals(int i, byte[] bs, int i1, int i2)` + bool rangeEquals$1( + int i, + _$jni.JArray<_$jni.jbyte> bs, + int i1, + int i2, ) { - return _$invokeMethod( - port, - _$jni.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); + return _rangeEquals$1( + reference.pointer, + _id_rangeEquals$1 as _$jni.JMethodIDPtr, + i, + bs.reference.pointer, + i1, + i2) + .boolean; } - static final _$jni.Pointer< + static final _id_copyInto = _class.instanceMethodId( + r'copyInto', + r'(I[BII)V', + ); + + static final _copyInto = _$jni.ProtectedJniExtensions.lookup< _$jni.NativeFunction< - _$jni.JObjectPtr Function( - _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> - _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Int32, + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>, int, int)>(); + + /// from: `public void copyInto(int i, byte[] bs, int i1, int i2)` + void copyInto( + int i, + _$jni.JArray<_$jni.jbyte> bs, + int i1, + int i2, + ) { + _copyInto(reference.pointer, _id_copyInto as _$jni.JMethodIDPtr, i, + bs.reference.pointer, i1, i2) + .check(); + } - static _$jni.Pointer<_$jni.Void> _$invokeMethod( - int $p, - _$jni.MethodInvocation $i, + static final _id_startsWith = _class.instanceMethodId( + r'startsWith', + r'(Lokio/ByteString;)Z', + ); + + static final _startsWith = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final boolean startsWith(okio.ByteString byteString)` + bool startsWith( + ByteString byteString, ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - } catch (e) { - return _$jni.ProtectedJniExtensions.newDartException(e); - } - return _$jni.nullptr; + return _startsWith(reference.pointer, _id_startsWith as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .boolean; } - static void implementIn( - _$jni.JImplementer implementer, - $WebSocket $impl, + static final _id_startsWith$1 = _class.instanceMethodId( + r'startsWith', + r'([B)Z', + ); + + static final _startsWith$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final boolean startsWith(byte[] bs)` + bool startsWith$1( + _$jni.JArray<_$jni.jbyte> bs, ) { - late final _$jni.RawReceivePort $p; - $p = _$jni.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = _$jni.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - _$jni.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'okhttp3.WebSocket', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; + return _startsWith$1(reference.pointer, + _id_startsWith$1 as _$jni.JMethodIDPtr, bs.reference.pointer) + .boolean; } - factory WebSocket.implement( - $WebSocket $impl, + static final _id_endsWith = _class.instanceMethodId( + r'endsWith', + r'(Lokio/ByteString;)Z', + ); + + static final _endsWith = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final boolean endsWith(okio.ByteString byteString)` + bool endsWith( + ByteString byteString, ) { - final $i = _$jni.JImplementer(); - implementIn($i, $impl); - return WebSocket.fromReference( - $i.implementReference(), - ); + return _endsWith(reference.pointer, _id_endsWith as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .boolean; } -} -abstract base mixin class $WebSocket { - factory $WebSocket() = _$WebSocket; -} + static final _id_endsWith$1 = _class.instanceMethodId( + r'endsWith', + r'([B)Z', + ); -final class _$WebSocket with $WebSocket { - _$WebSocket(); -} + static final _endsWith$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); -final class $WebSocket$Type extends _$jni.JObjType { - @_$jni.internal - const $WebSocket$Type(); + /// from: `public final boolean endsWith(byte[] bs)` + bool endsWith$1( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _endsWith$1(reference.pointer, _id_endsWith$1 as _$jni.JMethodIDPtr, + bs.reference.pointer) + .boolean; + } - @_$jni.internal - @_$core.override - String get signature => r'Lokhttp3/WebSocket;'; + static final _id_indexOf = _class.instanceMethodId( + r'indexOf', + r'(Lokio/ByteString;I)I', + ); - @_$jni.internal - @_$core.override - WebSocket fromReference(_$jni.JReference reference) => - WebSocket.fromReference(reference); + static final _indexOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + /// from: `public final int indexOf(okio.ByteString byteString, int i)` + int indexOf( + ByteString byteString, + int i, + ) { + return _indexOf(reference.pointer, _id_indexOf as _$jni.JMethodIDPtr, + byteString.reference.pointer, i) + .integer; + } - @_$jni.internal - @_$core.override - final superCount = 1; + static final _id_indexOf$1 = _class.instanceMethodId( + r'indexOf', + r'([BI)I', + ); - @_$core.override - int get hashCode => ($WebSocket$Type).hashCode; + static final _indexOf$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocket$Type) && other is $WebSocket$Type; + /// from: `public int indexOf(byte[] bs, int i)` + int indexOf$1( + _$jni.JArray<_$jni.jbyte> bs, + int i, + ) { + return _indexOf$1(reference.pointer, _id_indexOf$1 as _$jni.JMethodIDPtr, + bs.reference.pointer, i) + .integer; } -} -/// from: `com.example.ok_http.WebSocketListenerProxy$WebSocketListener` -class WebSocketListenerProxy_WebSocketListener extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_lastIndexOf = _class.instanceMethodId( + r'lastIndexOf', + r'(Lokio/ByteString;I)I', + ); - @_$jni.internal - WebSocketListenerProxy_WebSocketListener.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _lastIndexOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); - static final _class = _$jni.JClass.forName( - r'com/example/ok_http/WebSocketListenerProxy$WebSocketListener'); + /// from: `public final int lastIndexOf(okio.ByteString byteString, int i)` + int lastIndexOf( + ByteString byteString, + int i, + ) { + return _lastIndexOf( + reference.pointer, + _id_lastIndexOf as _$jni.JMethodIDPtr, + byteString.reference.pointer, + i) + .integer; + } - /// The type which includes information such as the signature of this class. - static const type = $WebSocketListenerProxy_WebSocketListener$Type(); + static final _id_lastIndexOf$1 = _class.instanceMethodId( + r'lastIndexOf', + r'([BI)I', + ); - /// Maps a specific port to the implemented interface. - static final _$core.Map - _$impls = {}; - static _$jni.JObjectPtr _$invoke( - int port, - _$jni.JObjectPtr descriptor, - _$jni.JObjectPtr args, + static final _lastIndexOf$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + + /// from: `public int lastIndexOf(byte[] bs, int i)` + int lastIndexOf$1( + _$jni.JArray<_$jni.jbyte> bs, + int i, ) { - return _$invokeMethod( - port, - _$jni.MethodInvocation.fromAddresses( - 0, - descriptor.address, - args.address, - ), - ); + return _lastIndexOf$1(reference.pointer, + _id_lastIndexOf$1 as _$jni.JMethodIDPtr, bs.reference.pointer, i) + .integer; } - static final _$jni.Pointer< - _$jni.NativeFunction< - _$jni.JObjectPtr Function( - _$jni.Int64, _$jni.JObjectPtr, _$jni.JObjectPtr)>> - _$invokePointer = _$jni.Pointer.fromFunction(_$invoke); + static final _id_equals = _class.instanceMethodId( + r'equals', + r'(Ljava/lang/Object;)Z', + ); - static _$jni.Pointer<_$jni.Void> _$invokeMethod( - int $p, - _$jni.MethodInvocation $i, + static final _equals = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallBooleanMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public boolean equals(java.lang.Object object)` + bool equals( + _$jni.JObject object, ) { - try { - final $d = $i.methodDescriptor.toDartString(releaseOriginal: true); - final $a = $i.args; - } catch (e) { - return _$jni.ProtectedJniExtensions.newDartException(e); - } - return _$jni.nullptr; + return _equals(reference.pointer, _id_equals as _$jni.JMethodIDPtr, + object.reference.pointer) + .boolean; } - static void implementIn( - _$jni.JImplementer implementer, - $WebSocketListenerProxy_WebSocketListener $impl, - ) { - late final _$jni.RawReceivePort $p; - $p = _$jni.RawReceivePort(($m) { - if ($m == null) { - _$impls.remove($p.sendPort.nativePort); - $p.close(); - return; - } - final $i = _$jni.MethodInvocation.fromMessage($m); - final $r = _$invokeMethod($p.sendPort.nativePort, $i); - _$jni.ProtectedJniExtensions.returnResult($i.result, $r); - }); - implementer.add( - r'com.example.ok_http.WebSocketListenerProxy$WebSocketListener', - $p, - _$invokePointer, - [], - ); - final $a = $p.sendPort.nativePort; - _$impls[$a] = $impl; + static final _id_hashCode$1 = _class.instanceMethodId( + r'hashCode', + r'()I', + ); + + static final _hashCode$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public int hashCode()` + int hashCode$1() { + return _hashCode$1(reference.pointer, _id_hashCode$1 as _$jni.JMethodIDPtr) + .integer; } - factory WebSocketListenerProxy_WebSocketListener.implement( - $WebSocketListenerProxy_WebSocketListener $impl, + static final _id_compareTo = _class.instanceMethodId( + r'compareTo', + r'(Lokio/ByteString;)I', + ); + + static final _compareTo = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public int compareTo(okio.ByteString byteString)` + int compareTo( + ByteString byteString, ) { - final $i = _$jni.JImplementer(); - implementIn($i, $impl); - return WebSocketListenerProxy_WebSocketListener.fromReference( - $i.implementReference(), - ); + return _compareTo(reference.pointer, _id_compareTo as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .integer; } -} -abstract base mixin class $WebSocketListenerProxy_WebSocketListener { - factory $WebSocketListenerProxy_WebSocketListener() = - _$WebSocketListenerProxy_WebSocketListener; -} + static final _id_toString$1 = _class.instanceMethodId( + r'toString', + r'()Ljava/lang/String;', + ); -final class _$WebSocketListenerProxy_WebSocketListener - with $WebSocketListenerProxy_WebSocketListener { - _$WebSocketListenerProxy_WebSocketListener(); -} + static final _toString$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); -final class $WebSocketListenerProxy_WebSocketListener$Type - extends _$jni.JObjType { - @_$jni.internal - const $WebSocketListenerProxy_WebSocketListener$Type(); + /// from: `public java.lang.String toString()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JString toString$1() { + return _toString$1(reference.pointer, _id_toString$1 as _$jni.JMethodIDPtr) + .object(const _$jni.JStringType()); + } - @_$jni.internal - @_$core.override - String get signature => - r'Lcom/example/ok_http/WebSocketListenerProxy$WebSocketListener;'; + static final _id_substring$1 = _class.instanceMethodId( + r'substring', + r'(I)Lokio/ByteString;', + ); - @_$jni.internal - @_$core.override - WebSocketListenerProxy_WebSocketListener fromReference( - _$jni.JReference reference) => - WebSocketListenerProxy_WebSocketListener.fromReference(reference); + static final _substring$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int32,)>)>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public final okio.ByteString substring(int i)` + /// The returned object must be released after use, by calling the [release] method. + ByteString substring$1( + int i, + ) { + return _substring$1( + reference.pointer, _id_substring$1 as _$jni.JMethodIDPtr, i) + .object(const $ByteString$Type()); + } - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _id_substring$2 = _class.instanceMethodId( + r'substring', + r'()Lokio/ByteString;', + ); - @_$jni.internal - @_$core.override - final superCount = 1; + static final _substring$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); - @_$core.override - int get hashCode => ($WebSocketListenerProxy_WebSocketListener$Type).hashCode; + /// from: `public final okio.ByteString substring()` + /// The returned object must be released after use, by calling the [release] method. + ByteString substring$2() { + return _substring$2( + reference.pointer, _id_substring$2 as _$jni.JMethodIDPtr) + .object(const $ByteString$Type()); + } - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == - ($WebSocketListenerProxy_WebSocketListener$Type) && - other is $WebSocketListenerProxy_WebSocketListener$Type; + static final _id_indexOf$2 = _class.instanceMethodId( + r'indexOf', + r'(Lokio/ByteString;)I', + ); + + static final _indexOf$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final int indexOf(okio.ByteString byteString)` + int indexOf$2( + ByteString byteString, + ) { + return _indexOf$2(reference.pointer, _id_indexOf$2 as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .integer; } -} -/// from: `com.example.ok_http.WebSocketListenerProxy` -class WebSocketListenerProxy extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_indexOf$3 = _class.instanceMethodId( + r'indexOf', + r'([B)I', + ); - @_$jni.internal - WebSocketListenerProxy.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _indexOf$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = - _$jni.JClass.forName(r'com/example/ok_http/WebSocketListenerProxy'); + /// from: `public final int indexOf(byte[] bs)` + int indexOf$3( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _indexOf$3(reference.pointer, _id_indexOf$3 as _$jni.JMethodIDPtr, + bs.reference.pointer) + .integer; + } - /// The type which includes information such as the signature of this class. - static const type = $WebSocketListenerProxy$Type(); -} + static final _id_lastIndexOf$2 = _class.instanceMethodId( + r'lastIndexOf', + r'(Lokio/ByteString;)I', + ); -final class $WebSocketListenerProxy$Type - extends _$jni.JObjType { - @_$jni.internal - const $WebSocketListenerProxy$Type(); + static final _lastIndexOf$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - String get signature => r'Lcom/example/ok_http/WebSocketListenerProxy;'; + /// from: `public final int lastIndexOf(okio.ByteString byteString)` + int lastIndexOf$2( + ByteString byteString, + ) { + return _lastIndexOf$2( + reference.pointer, + _id_lastIndexOf$2 as _$jni.JMethodIDPtr, + byteString.reference.pointer) + .integer; + } - @_$jni.internal - @_$core.override - WebSocketListenerProxy fromReference(_$jni.JReference reference) => - WebSocketListenerProxy.fromReference(reference); + static final _id_lastIndexOf$3 = _class.instanceMethodId( + r'lastIndexOf', + r'([B)I', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _lastIndexOf$3 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallIntMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `public final int lastIndexOf(byte[] bs)` + int lastIndexOf$3( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _lastIndexOf$3(reference.pointer, + _id_lastIndexOf$3 as _$jni.JMethodIDPtr, bs.reference.pointer) + .integer; + } - @_$core.override - int get hashCode => ($WebSocketListenerProxy$Type).hashCode; + static final _id_of = _class.staticMethodId( + r'of', + r'([B)Lokio/ByteString;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($WebSocketListenerProxy$Type) && - other is $WebSocketListenerProxy$Type; + static final _of = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okio.ByteString of(byte[] bs)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString of( + _$jni.JArray<_$jni.jbyte> bs, + ) { + return _of(_class.reference.pointer, _id_of as _$jni.JMethodIDPtr, + bs.reference.pointer) + .object(const $ByteString$Type()); } -} -/// from: `okio.ByteString$Companion` -class ByteString_Companion extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_of$1 = _class.staticMethodId( + r'of', + r'([BII)Lokio/ByteString;', + ); - @_$jni.internal - ByteString_Companion.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _of$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Int32, + _$jni.Int32 + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int, int)>(); - static final _class = _$jni.JClass.forName(r'okio/ByteString$Companion'); + /// from: `static public final okio.ByteString of(byte[] bs, int i, int i1)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString of$1( + _$jni.JArray<_$jni.jbyte> bs, + int i, + int i1, + ) { + return _of$1(_class.reference.pointer, _id_of$1 as _$jni.JMethodIDPtr, + bs.reference.pointer, i, i1) + .object(const $ByteString$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $ByteString_Companion$Type(); -} + static final _id_of$2 = _class.staticMethodId( + r'of', + r'(Ljava/nio/ByteBuffer;)Lokio/ByteString;', + ); -final class $ByteString_Companion$Type - extends _$jni.JObjType { - @_$jni.internal - const $ByteString_Companion$Type(); + static final _of$2 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - String get signature => r'Lokio/ByteString$Companion;'; + /// from: `static public final okio.ByteString of(java.nio.ByteBuffer byteBuffer)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString of$2( + _$jni.JByteBuffer byteBuffer, + ) { + return _of$2(_class.reference.pointer, _id_of$2 as _$jni.JMethodIDPtr, + byteBuffer.reference.pointer) + .object(const $ByteString$Type()); + } - @_$jni.internal - @_$core.override - ByteString_Companion fromReference(_$jni.JReference reference) => - ByteString_Companion.fromReference(reference); + static final _id_encodeUtf8 = _class.staticMethodId( + r'encodeUtf8', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); - @_$jni.internal - @_$core.override - _$jni.JObjType get superType => const _$jni.JObjectType(); + static final _encodeUtf8 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - @_$jni.internal - @_$core.override - final superCount = 1; + /// from: `static public final okio.ByteString encodeUtf8(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString encodeUtf8( + _$jni.JString string, + ) { + return _encodeUtf8(_class.reference.pointer, + _id_encodeUtf8 as _$jni.JMethodIDPtr, string.reference.pointer) + .object(const $ByteString$Type()); + } - @_$core.override - int get hashCode => ($ByteString_Companion$Type).hashCode; + static final _id_encodeString = _class.staticMethodId( + r'encodeString', + r'(Ljava/lang/String;Ljava/nio/charset/Charset;)Lokio/ByteString;', + ); - @_$core.override - bool operator ==(Object other) { - return other.runtimeType == ($ByteString_Companion$Type) && - other is $ByteString_Companion$Type; + static final _encodeString = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs< + ( + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void> + )>)>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.Pointer<_$jni.Void>, + _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okio.ByteString encodeString(java.lang.String string, java.nio.charset.Charset charset)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString encodeString( + _$jni.JString string, + _$jni.JObject charset, + ) { + return _encodeString( + _class.reference.pointer, + _id_encodeString as _$jni.JMethodIDPtr, + string.reference.pointer, + charset.reference.pointer) + .object(const $ByteString$Type()); } -} -/// from: `okio.ByteString` -class ByteString extends _$jni.JObject { - @_$jni.internal - @_$core.override - final _$jni.JObjType $type; + static final _id_decodeBase64 = _class.staticMethodId( + r'decodeBase64', + r'(Ljava/lang/String;)Lokio/ByteString;', + ); - @_$jni.internal - ByteString.fromReference( - _$jni.JReference reference, - ) : $type = type, - super.fromReference(reference); + static final _decodeBase64 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); - static final _class = _$jni.JClass.forName(r'okio/ByteString'); + /// from: `static public final okio.ByteString decodeBase64(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static ByteString decodeBase64( + _$jni.JString string, + ) { + return _decodeBase64(_class.reference.pointer, + _id_decodeBase64 as _$jni.JMethodIDPtr, string.reference.pointer) + .object(const $ByteString$Type()); + } - /// The type which includes information such as the signature of this class. - static const type = $ByteString$Type(); - static final _id_Companion = _class.staticFieldId( - r'Companion', - r'Lokio/ByteString$Companion;', + static final _id_decodeHex = _class.staticMethodId( + r'decodeHex', + r'(Ljava/lang/String;)Lokio/ByteString;', ); - /// from: `static public final okio.ByteString$Companion Companion` + static final _decodeHex = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public final okio.ByteString decodeHex(java.lang.String string)` /// The returned object must be released after use, by calling the [release] method. - static ByteString_Companion get Companion => - _id_Companion.get(_class, const $ByteString_Companion$Type()); + static ByteString decodeHex( + _$jni.JString string, + ) { + return _decodeHex(_class.reference.pointer, + _id_decodeHex as _$jni.JMethodIDPtr, string.reference.pointer) + .object(const $ByteString$Type()); + } - static final _id_EMPTY = _class.staticFieldId( - r'EMPTY', - r'Lokio/ByteString;', + static final _id_read = _class.staticMethodId( + r'read', + r'(Ljava/io/InputStream;I)Lokio/ByteString;', ); - /// from: `static public final okio.ByteString EMPTY` + static final _read = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int32)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + + /// from: `static public final okio.ByteString read(java.io.InputStream inputStream, int i)` /// The returned object must be released after use, by calling the [release] method. - static ByteString get EMPTY => - _id_EMPTY.get(_class, const $ByteString$Type()); + static ByteString read( + _$jni.JObject inputStream, + int i, + ) { + return _read(_class.reference.pointer, _id_read as _$jni.JMethodIDPtr, + inputStream.reference.pointer, i) + .object(const $ByteString$Type()); + } } final class $ByteString$Type extends _$jni.JObjType { @@ -2960,6 +14406,60 @@ class WebSocketInterceptor_Companion extends _$jni.JObject { /// The type which includes information such as the signature of this class. static const type = $WebSocketInterceptor_Companion$Type(); + static final _id_addWSInterceptor = _class.instanceMethodId( + r'addWSInterceptor', + r'(Lokhttp3/OkHttpClient$Builder;)Lokhttp3/OkHttpClient$Builder;', + ); + + static final _addWSInterceptor = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public final okhttp3.OkHttpClient$Builder addWSInterceptor(okhttp3.OkHttpClient$Builder builder)` + /// The returned object must be released after use, by calling the [release] method. + OkHttpClient_Builder addWSInterceptor( + OkHttpClient_Builder builder, + ) { + return _addWSInterceptor( + reference.pointer, + _id_addWSInterceptor as _$jni.JMethodIDPtr, + builder.reference.pointer) + .object(const $OkHttpClient_Builder$Type()); + } + + static final _id_new$ = _class.constructorId( + r'(Lkotlin/jvm/internal/DefaultConstructorMarker;)V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `synthetic public void (kotlin.jvm.internal.DefaultConstructorMarker defaultConstructorMarker)` + /// The returned object must be released after use, by calling the [release] method. + factory WebSocketInterceptor_Companion( + _$jni.JObject defaultConstructorMarker, + ) { + return WebSocketInterceptor_Companion.fromReference(_new$( + _class.reference.pointer, + _id_new$ as _$jni.JMethodIDPtr, + defaultConstructorMarker.reference.pointer) + .reference); + } } final class $WebSocketInterceptor_Companion$Type @@ -3021,6 +14521,30 @@ class WebSocketInterceptor extends _$jni.JObject { /// The returned object must be released after use, by calling the [release] method. static WebSocketInterceptor_Companion get Companion => _id_Companion.get(_class, const $WebSocketInterceptor_Companion$Type()); + + static final _id_new$ = _class.constructorId( + r'()V', + ); + + static final _new$ = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_NewObject') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public void ()` + /// The returned object must be released after use, by calling the [release] method. + factory WebSocketInterceptor() { + return WebSocketInterceptor.fromReference( + _new$(_class.reference.pointer, _id_new$ as _$jni.JMethodIDPtr) + .reference); + } } final class $WebSocketInterceptor$Type @@ -3138,6 +14662,395 @@ class TimeUnit extends _$jni.JObject { /// from: `static public final java.util.concurrent.TimeUnit DAYS` /// The returned object must be released after use, by calling the [release] method. static TimeUnit get DAYS => _id_DAYS.get(_class, const $TimeUnit$Type()); + + static final _id_values = _class.staticMethodId( + r'values', + r'()[Ljava/util/concurrent/TimeUnit;', + ); + + static final _values = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `static public java.util.concurrent.TimeUnit[] values()` + /// The returned object must be released after use, by calling the [release] method. + static _$jni.JArray values() { + return _values(_class.reference.pointer, _id_values as _$jni.JMethodIDPtr) + .object(const _$jni.JArrayType($TimeUnit$Type())); + } + + static final _id_valueOf = _class.staticMethodId( + r'valueOf', + r'(Ljava/lang/String;)Ljava/util/concurrent/TimeUnit;', + ); + + static final _valueOf = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public java.util.concurrent.TimeUnit valueOf(java.lang.String string)` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit valueOf( + _$jni.JString string, + ) { + return _valueOf(_class.reference.pointer, _id_valueOf as _$jni.JMethodIDPtr, + string.reference.pointer) + .object(const $TimeUnit$Type()); + } + + static final _id_convert = _class.instanceMethodId( + r'convert', + r'(JLjava/util/concurrent/TimeUnit;)J', + ); + + static final _convert = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Int64, _$jni.Pointer<_$jni.Void>)>)>>( + 'globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, int, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public long convert(long j, java.util.concurrent.TimeUnit timeUnit)` + int convert( + int j, + TimeUnit timeUnit, + ) { + return _convert(reference.pointer, _id_convert as _$jni.JMethodIDPtr, j, + timeUnit.reference.pointer) + .long; + } + + static final _id_convert$1 = _class.instanceMethodId( + r'convert', + r'(Ljava/time/Duration;)J', + ); + + static final _convert$1 = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `public long convert(java.time.Duration duration)` + int convert$1( + _$jni.JObject duration, + ) { + return _convert$1(reference.pointer, _id_convert$1 as _$jni.JMethodIDPtr, + duration.reference.pointer) + .long; + } + + static final _id_toNanos = _class.instanceMethodId( + r'toNanos', + r'(J)J', + ); + + static final _toNanos = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public long toNanos(long j)` + int toNanos( + int j, + ) { + return _toNanos(reference.pointer, _id_toNanos as _$jni.JMethodIDPtr, j) + .long; + } + + static final _id_toMicros = _class.instanceMethodId( + r'toMicros', + r'(J)J', + ); + + static final _toMicros = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public long toMicros(long j)` + int toMicros( + int j, + ) { + return _toMicros(reference.pointer, _id_toMicros as _$jni.JMethodIDPtr, j) + .long; + } + + static final _id_toMillis = _class.instanceMethodId( + r'toMillis', + r'(J)J', + ); + + static final _toMillis = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public long toMillis(long j)` + int toMillis( + int j, + ) { + return _toMillis(reference.pointer, _id_toMillis as _$jni.JMethodIDPtr, j) + .long; + } + + static final _id_toSeconds = _class.instanceMethodId( + r'toSeconds', + r'(J)J', + ); + + static final _toSeconds = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public long toSeconds(long j)` + int toSeconds( + int j, + ) { + return _toSeconds(reference.pointer, _id_toSeconds as _$jni.JMethodIDPtr, j) + .long; + } + + static final _id_toMinutes = _class.instanceMethodId( + r'toMinutes', + r'(J)J', + ); + + static final _toMinutes = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public long toMinutes(long j)` + int toMinutes( + int j, + ) { + return _toMinutes(reference.pointer, _id_toMinutes as _$jni.JMethodIDPtr, j) + .long; + } + + static final _id_toHours = _class.instanceMethodId( + r'toHours', + r'(J)J', + ); + + static final _toHours = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public long toHours(long j)` + int toHours( + int j, + ) { + return _toHours(reference.pointer, _id_toHours as _$jni.JMethodIDPtr, j) + .long; + } + + static final _id_toDays = _class.instanceMethodId( + r'toDays', + r'(J)J', + ); + + static final _toDays = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallLongMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public long toDays(long j)` + int toDays( + int j, + ) { + return _toDays(reference.pointer, _id_toDays as _$jni.JMethodIDPtr, j).long; + } + + static final _id_timedWait = _class.instanceMethodId( + r'timedWait', + r'(Ljava/lang/Object;J)V', + ); + + static final _timedWait = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int64)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + + /// from: `public void timedWait(java.lang.Object object, long j)` + void timedWait( + _$jni.JObject object, + int j, + ) { + _timedWait(reference.pointer, _id_timedWait as _$jni.JMethodIDPtr, + object.reference.pointer, j) + .check(); + } + + static final _id_timedJoin = _class.instanceMethodId( + r'timedJoin', + r'(Ljava/lang/Thread;J)V', + ); + + static final _timedJoin = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni + .VarArgs<(_$jni.Pointer<_$jni.Void>, _$jni.Int64)>)>>( + 'globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>, int)>(); + + /// from: `public void timedJoin(java.lang.Thread thread, long j)` + void timedJoin( + _$jni.JObject thread, + int j, + ) { + _timedJoin(reference.pointer, _id_timedJoin as _$jni.JMethodIDPtr, + thread.reference.pointer, j) + .check(); + } + + static final _id_sleep = _class.instanceMethodId( + r'sleep', + r'(J)V', + ); + + static final _sleep = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Int64,)>)>>('globalEnv_CallVoidMethod') + .asFunction< + _$jni.JThrowablePtr Function( + _$jni.Pointer<_$jni.Void>, _$jni.JMethodIDPtr, int)>(); + + /// from: `public void sleep(long j)` + void sleep( + int j, + ) { + _sleep(reference.pointer, _id_sleep as _$jni.JMethodIDPtr, j).check(); + } + + static final _id_toChronoUnit = _class.instanceMethodId( + r'toChronoUnit', + r'()Ljava/time/temporal/ChronoUnit;', + ); + + static final _toChronoUnit = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>>('globalEnv_CallObjectMethod') + .asFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + )>(); + + /// from: `public java.time.temporal.ChronoUnit toChronoUnit()` + /// The returned object must be released after use, by calling the [release] method. + _$jni.JObject toChronoUnit() { + return _toChronoUnit( + reference.pointer, _id_toChronoUnit as _$jni.JMethodIDPtr) + .object(const _$jni.JObjectType()); + } + + static final _id_of = _class.staticMethodId( + r'of', + r'(Ljava/time/temporal/ChronoUnit;)Ljava/util/concurrent/TimeUnit;', + ); + + static final _of = _$jni.ProtectedJniExtensions.lookup< + _$jni.NativeFunction< + _$jni.JniResult Function( + _$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, + _$jni.VarArgs<(_$jni.Pointer<_$jni.Void>,)>)>>( + 'globalEnv_CallStaticObjectMethod') + .asFunction< + _$jni.JniResult Function(_$jni.Pointer<_$jni.Void>, + _$jni.JMethodIDPtr, _$jni.Pointer<_$jni.Void>)>(); + + /// from: `static public java.util.concurrent.TimeUnit of(java.time.temporal.ChronoUnit chronoUnit)` + /// The returned object must be released after use, by calling the [release] method. + static TimeUnit of( + _$jni.JObject chronoUnit, + ) { + return _of(_class.reference.pointer, _id_of as _$jni.JMethodIDPtr, + chronoUnit.reference.pointer) + .object(const $TimeUnit$Type()); + } } final class $TimeUnit$Type extends _$jni.JObjType { diff --git a/pkgs/ok_http/lib/src/ok_http_client.dart b/pkgs/ok_http/lib/src/ok_http_client.dart index 27af5bf3d7..5b81b34b8b 100644 --- a/pkgs/ok_http/lib/src/ok_http_client.dart +++ b/pkgs/ok_http/lib/src/ok_http_client.dart @@ -92,7 +92,7 @@ class OkHttpClient extends BaseClient { OkHttpClient({ this.configuration = const OkHttpClientConfiguration(), }) { - _client = bindings.OkHttpClient.new1(); + _client = bindings.OkHttpClient_Builder().build(); } @override @@ -170,7 +170,7 @@ class OkHttpClient extends BaseClient { final responseCompleter = Completer(); - var reqBuilder = bindings.Request_Builder().url1(requestUrl.toJString()); + var reqBuilder = bindings.Request_Builder().url$1(requestUrl.toJString()); requestHeaders.forEach((headerName, headerValue) { reqBuilder.addHeader(headerName.toJString(), headerValue.toJString()); @@ -180,7 +180,7 @@ class OkHttpClient extends BaseClient { // So, we need to handle this case separately. bindings.RequestBody okReqBody; if (requestMethod != 'GET' && requestMethod != 'HEAD') { - okReqBody = bindings.RequestBody.create10(requestBody.toJArray()); + okReqBody = bindings.RequestBody.create$10(requestBody.toJArray()); } else { okReqBody = bindings.RequestBody.fromReference(jNullReference); } @@ -203,7 +203,7 @@ class OkHttpClient extends BaseClient { _client.newBuilder().followRedirects(false), maxRedirects, followRedirects, bindings.RedirectReceivedCallback.implement( - bindings.$RedirectReceivedCallbackImpl( + bindings.$RedirectReceivedCallback( onRedirectReceived: (response, newLocation) { profile?.responseData.addRedirect(HttpProfileRedirectData( statusCode: response.code(), @@ -229,7 +229,7 @@ class OkHttpClient extends BaseClient { // https://square.github.io/okhttp/5.x/okhttp/okhttp3/-call/enqueue.html reqConfiguredClient .newCall(reqBuilder.build()) - .enqueue(bindings.Callback.implement(bindings.$CallbackImpl( + .enqueue(bindings.Callback.implement(bindings.$Callback( onResponse: (bindings.Call call, bindings.Response response) { var reader = bindings.AsyncInputStreamReader(); var respBodyStreamController = StreamController>(); @@ -258,7 +258,7 @@ class OkHttpClient extends BaseClient { reader.readAsync( responseBodyByteStream, bindings.DataCallback.implement( - bindings.$DataCallbackImpl( + bindings.$DataCallback( onDataRead: (JArray bytesRead) { var data = bytesRead.toUint8List(); diff --git a/pkgs/ok_http/lib/src/ok_http_web_socket.dart b/pkgs/ok_http/lib/src/ok_http_web_socket.dart index 16ed95ed1a..4d72994192 100644 --- a/pkgs/ok_http/lib/src/ok_http_web_socket.dart +++ b/pkgs/ok_http/lib/src/ok_http_web_socket.dart @@ -82,9 +82,8 @@ class OkHttpWebSocket implements WebSocket { throw ArgumentError.value( url, 'url', 'only ws: and wss: schemes are supported'); } - final requestBuilder = - bindings.Request_Builder().url1(url.toString().toJString()); + bindings.Request_Builder().url$1(url.toString().toJString()); if (protocols != null) { requestBuilder.addHeader('Sec-WebSocket-Protocol'.toJString(), @@ -97,12 +96,12 @@ class OkHttpWebSocket implements WebSocket { requestBuilder.build(), bindings.WebSocketListenerProxy( bindings.WebSocketListenerProxy_WebSocketListener.implement( - bindings.$WebSocketListenerProxy_WebSocketListenerImpl( + bindings.$WebSocketListenerProxy_WebSocketListener( onOpen: (webSocket, response) { _webSocket = webSocket; var protocolHeader = - response.header1('sec-websocket-protocol'.toJString()); + response.header$1('sec-websocket-protocol'.toJString()); if (!protocolHeader.isNull) { _protocol = protocolHeader.toDartString(releaseOriginal: true); if (!(protocols?.contains(_protocol) ?? true)) { @@ -119,7 +118,7 @@ class OkHttpWebSocket implements WebSocket { if (_events.isClosed) return; _events.add(TextDataReceived(string.toDartString())); }, - onMessage1: + onMessage$1: (bindings.WebSocket webSocket, bindings.ByteString byteString) { if (_events.isClosed) return; _events.add( @@ -202,7 +201,7 @@ class OkHttpWebSocket implements WebSocket { if (_events.isClosed) { throw WebSocketConnectionClosed(); } - _webSocket.send1(bindings.ByteString.of(b.toJArray())); + _webSocket.send$1(bindings.ByteString.of(b.toJArray())); } @override From 797253de9c2a2843614f553a594bbc5be82b62a5 Mon Sep 17 00:00:00 2001 From: Brian Quinlan Date: Mon, 18 Nov 2024 14:15:30 -0800 Subject: [PATCH 4/4] Update CHANGELOG.md --- pkgs/ok_http/CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/ok_http/CHANGELOG.md b/pkgs/ok_http/CHANGELOG.md index a6a2fd3f4e..baba046e98 100644 --- a/pkgs/ok_http/CHANGELOG.md +++ b/pkgs/ok_http/CHANGELOG.md @@ -2,6 +2,7 @@ - `OkHttpClient` now receives an `OkHttpClientConfiguration` to configure the client on a per-call basis. - `OkHttpClient` supports setting four types of timeouts: [`connectTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/connect-timeout.html), [`readTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/read-timeout.html), [`writeTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/write-timeout.html), and [`callTimeout`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-ok-http-client/-builder/call-timeout.html), using the `OkHttpClientConfiguration`. +- Update to `jnigen` 0.12.2 ## 0.1.0