Skip to main content

engage/generated/unity_engine/networking/
unitywebrequest.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-networking-unitywebrequest-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/unitywebrequest/UnityWebRequest_UnityWebRequestError.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct UnityWebRequest_UnityWebRequestError {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for UnityWebRequest_UnityWebRequestError {
21        const NAME: &'static str = "UnityWebRequest.UnityWebRequestError";
22        const NAMESPACE: &'static str = "UnityEngine.Networking";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for UnityWebRequest_UnityWebRequestError {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl UnityWebRequest_UnityWebRequestError {
35        pub fn ok() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn unknown() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn sdk_error() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn unsupported_protocol() -> Self {
48            Self { value: 3 }
49        }
50
51        pub fn malformatted_url() -> Self {
52            Self { value: 4 }
53        }
54
55        pub fn cannot_resolve_proxy() -> Self {
56            Self { value: 5 }
57        }
58
59        pub fn cannot_resolve_host() -> Self {
60            Self { value: 6 }
61        }
62
63        pub fn cannot_connect_to_host() -> Self {
64            Self { value: 7 }
65        }
66
67        pub fn access_denied() -> Self {
68            Self { value: 8 }
69        }
70
71        pub fn generic_http_error() -> Self {
72            Self { value: 9 }
73        }
74
75        pub fn write_error() -> Self {
76            Self { value: 10 }
77        }
78
79        pub fn read_error() -> Self {
80            Self { value: 11 }
81        }
82
83        pub fn out_of_memory() -> Self {
84            Self { value: 12 }
85        }
86
87        pub fn timeout() -> Self {
88            Self { value: 13 }
89        }
90
91        pub fn http_post_error() -> Self {
92            Self { value: 14 }
93        }
94
95        pub fn ssl_cannot_connect() -> Self {
96            Self { value: 15 }
97        }
98
99        pub fn aborted() -> Self {
100            Self { value: 16 }
101        }
102
103        pub fn too_many_redirects() -> Self {
104            Self { value: 17 }
105        }
106
107        pub fn received_no_data() -> Self {
108            Self { value: 18 }
109        }
110
111        pub fn ssl_not_supported() -> Self {
112            Self { value: 19 }
113        }
114
115        pub fn failed_to_send_data() -> Self {
116            Self { value: 20 }
117        }
118
119        pub fn failed_to_receive_data() -> Self {
120            Self { value: 21 }
121        }
122
123        pub fn ssl_certificate_error() -> Self {
124            Self { value: 22 }
125        }
126
127        pub fn ssl_cipher_not_available() -> Self {
128            Self { value: 23 }
129        }
130
131        pub fn sslca_cert_error() -> Self {
132            Self { value: 24 }
133        }
134
135        pub fn unrecognized_content_encoding() -> Self {
136            Self { value: 25 }
137        }
138
139        pub fn login_failed() -> Self {
140            Self { value: 26 }
141        }
142
143        pub fn ssl_shutdown_failed() -> Self {
144            Self { value: 27 }
145        }
146
147        pub fn no_internet_connection() -> Self {
148            Self { value: 28 }
149        }
150    }
151
152    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/unitywebrequest/UnityWebRequest_UnityWebRequestMethod.md"))]
153    #[repr(C)]
154    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
155    pub struct UnityWebRequest_UnityWebRequestMethod {
156        pub value: i32,
157    }
158    impl ::unity::ClassIdentity for UnityWebRequest_UnityWebRequestMethod {
159        const NAME: &'static str = "UnityWebRequest.UnityWebRequestMethod";
160        const NAMESPACE: &'static str = "UnityEngine.Networking";
161
162        fn class() -> ::unity::Class {
163            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
164            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
165        }
166    }
167    impl ::unity::IlType for UnityWebRequest_UnityWebRequestMethod {
168        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
169            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
170        }
171    }
172    impl UnityWebRequest_UnityWebRequestMethod {
173        pub fn get() -> Self {
174            Self { value: 0 }
175        }
176
177        pub fn post() -> Self {
178            Self { value: 1 }
179        }
180
181        pub fn put() -> Self {
182            Self { value: 2 }
183        }
184
185        pub fn head() -> Self {
186            Self { value: 3 }
187        }
188
189        pub fn custom() -> Self {
190            Self { value: 4 }
191        }
192    }
193
194    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/unitywebrequest/UnityWebRequest.md"))]
195    #[::unity::class(namespace = "UnityEngine.Networking", name = "UnityWebRequest")]
196    #[parent(crate::system::object::Object)]
197    pub struct UnityWebRequest {
198        #[offset(16)]
199        #[rename(name = "m_Ptr")]
200        pub m_ptr: ::unity::IntPtr,
201        #[offset(24)]
202        #[rename(name = "m_DownloadHandler")]
203        pub m_download_handler: crate::unity_engine::networking::downloadhandler::DownloadHandler,
204        #[offset(32)]
205        #[rename(name = "m_UploadHandler")]
206        pub m_upload_handler: crate::unity_engine::networking::uploadhandler::UploadHandler,
207        #[offset(40)]
208        #[rename(name = "m_CertificateHandler")]
209        pub m_certificate_handler: crate::unity_engine::networking::certificatehandler::CertificateHandler,
210        #[static_field]
211        #[rename(name = "kHttpVerbGET")]
212        pub k_http_verb_get: ::unity::Il2CppString,
213        #[static_field]
214        #[rename(name = "kHttpVerbHEAD")]
215        pub k_http_verb_head: ::unity::Il2CppString,
216        #[static_field]
217        #[rename(name = "kHttpVerbPOST")]
218        pub k_http_verb_post: ::unity::Il2CppString,
219        #[static_field]
220        #[rename(name = "kHttpVerbPUT")]
221        pub k_http_verb_put: ::unity::Il2CppString,
222        #[static_field]
223        #[rename(name = "kHttpVerbCREATE")]
224        pub k_http_verb_create: ::unity::Il2CppString,
225        #[static_field]
226        #[rename(name = "kHttpVerbDELETE")]
227        pub k_http_verb_delete: ::unity::Il2CppString,
228    }
229
230    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/networking/unitywebrequest/UnityWebRequest_Result.md"))]
231    #[repr(C)]
232    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
233    pub struct UnityWebRequest_Result {
234        pub value: i32,
235    }
236    impl ::unity::ClassIdentity for UnityWebRequest_Result {
237        const NAME: &'static str = "UnityWebRequest.Result";
238        const NAMESPACE: &'static str = "UnityEngine.Networking";
239
240        fn class() -> ::unity::Class {
241            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
242            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
243        }
244    }
245    impl ::unity::IlType for UnityWebRequest_Result {
246        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
247            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
248        }
249    }
250    impl UnityWebRequest_Result {
251        pub fn in_progress() -> Self {
252            Self { value: 0 }
253        }
254
255        pub fn success() -> Self {
256            Self { value: 1 }
257        }
258
259        pub fn connection_error() -> Self {
260            Self { value: 2 }
261        }
262
263        pub fn protocol_error() -> Self {
264            Self { value: 3 }
265        }
266
267        pub fn data_processing_error() -> Self {
268            Self { value: 4 }
269        }
270    }
271}
272
273#[cfg(feature = "unity_engine-networking-unitywebrequest-types")]
274pub use __types::*;
275
276#[cfg(feature = "unity_engine-networking-unitywebrequest")]
277impl UnityWebRequest {
278    #[doc = "`GetWebErrorString(crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError)` overload"]
279    pub fn get_web_error_string(
280        err: impl ::core::convert::Into<crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError>,
281    ) -> ::unity::Il2CppString {
282        unsafe {
283            ::unity::il2cpp_call!((::unity::module_base()+0x3f18b20usize)as*mut u8, ::unity::Il2CppString;
284(crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError)::core::convert::Into::into(err))
285        }
286    }
287
288    #[doc = "`GetHTTPStatusString(i64)` overload"]
289    pub fn get_http_status_string(response_code: impl ::core::convert::Into<i64>) -> ::unity::Il2CppString {
290        unsafe {
291            ::unity::il2cpp_call!((::unity::module_base()+0x3f18b70usize)as*mut u8, ::unity::Il2CppString;
292(i64)::core::convert::Into::into(response_code))
293        }
294    }
295
296    #[doc = "`Create()` overload"]
297    pub fn create() -> ::unity::IntPtr {
298        unsafe {
299            ::unity::il2cpp_call!((::unity::module_base()+0x3f18c20usize)as*mut u8, ::unity::IntPtr;
300            )
301        }
302    }
303
304    #[doc = "`Get(::unity::Il2CppString)` overload"]
305    pub fn get(uri: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest {
306        unsafe {
307            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b3b0usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest;
308(::unity::Il2CppString)::core::convert::Into::into(uri))
309        }
310    }
311
312    #[doc = "`Post(::unity::Il2CppString, crate::unity_engine::wwwform::WWWForm)` overload"]
313    pub fn post(
314        uri: impl ::core::convert::Into<::unity::Il2CppString>,
315        form_data: impl ::core::convert::Into<crate::unity_engine::wwwform::WWWForm>,
316    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest {
317        unsafe {
318            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b490usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest;
319(::unity::Il2CppString)::core::convert::Into::into(uri),(crate::unity_engine::wwwform::WWWForm)::core::convert::Into::into(form_data))
320        }
321    }
322
323    #[doc = "`SetupPost(crate::unity_engine::networking::unitywebrequest::UnityWebRequest, crate::unity_engine::wwwform::WWWForm)` overload"]
324    pub fn setup_post(
325        request: impl ::core::convert::Into<crate::unity_engine::networking::unitywebrequest::UnityWebRequest>,
326        form_data: impl ::core::convert::Into<crate::unity_engine::wwwform::WWWForm>,
327    ) -> () {
328        unsafe {
329            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b530usize)as*mut u8,();
330(crate::unity_engine::networking::unitywebrequest::UnityWebRequest)::core::convert::Into::into(request),(crate::unity_engine::wwwform::WWWForm)::core::convert::Into::into(form_data))
331        }
332    }
333}
334
335#[cfg(feature = "unity_engine-networking-unitywebrequest")]
336pub trait IUnityWebRequestMethods: IUnityWebRequest {
337    #[doc = "`get_disposeCertificateHandlerOnDispose()` overload"]
338    fn get_dispose_certificate_handler_on_dispose(self) -> bool {
339        unsafe {
340            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
341            ::unity::il2cpp_call!((::unity::module_base()+0x3f18bc0usize)as*mut u8,bool;
342(UnityWebRequest)__receiver)
343        }
344    }
345    #[doc = "`set_disposeCertificateHandlerOnDispose(bool)` overload"]
346    fn set_dispose_certificate_handler_on_dispose(self, value: impl ::core::convert::Into<bool>) -> () {
347        unsafe {
348            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
349            ::unity::il2cpp_call!((::unity::module_base()+0x3f18bd0usize)as*mut u8,();
350(UnityWebRequest)__receiver,(bool)::core::convert::Into::into(value))
351        }
352    }
353    #[doc = "`get_disposeDownloadHandlerOnDispose()` overload"]
354    fn get_dispose_download_handler_on_dispose(self) -> bool {
355        unsafe {
356            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357            ::unity::il2cpp_call!((::unity::module_base()+0x3f18be0usize)as*mut u8,bool;
358(UnityWebRequest)__receiver)
359        }
360    }
361    #[doc = "`set_disposeDownloadHandlerOnDispose(bool)` overload"]
362    fn set_dispose_download_handler_on_dispose(self, value: impl ::core::convert::Into<bool>) -> () {
363        unsafe {
364            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
365            ::unity::il2cpp_call!((::unity::module_base()+0x3f18bf0usize)as*mut u8,();
366(UnityWebRequest)__receiver,(bool)::core::convert::Into::into(value))
367        }
368    }
369    #[doc = "`get_disposeUploadHandlerOnDispose()` overload"]
370    fn get_dispose_upload_handler_on_dispose(self) -> bool {
371        unsafe {
372            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
373            ::unity::il2cpp_call!((::unity::module_base()+0x3f18c00usize)as*mut u8,bool;
374(UnityWebRequest)__receiver)
375        }
376    }
377    #[doc = "`set_disposeUploadHandlerOnDispose(bool)` overload"]
378    fn set_dispose_upload_handler_on_dispose(self, value: impl ::core::convert::Into<bool>) -> () {
379        unsafe {
380            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381            ::unity::il2cpp_call!((::unity::module_base()+0x3f18c10usize)as*mut u8,();
382(UnityWebRequest)__receiver,(bool)::core::convert::Into::into(value))
383        }
384    }
385    #[doc = "`Release()` overload"]
386    fn release(self) -> () {
387        unsafe {
388            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
389            ::unity::il2cpp_call!((::unity::module_base()+0x3f18c60usize)as*mut u8,();
390(UnityWebRequest)__receiver)
391        }
392    }
393    #[doc = "`InternalDestroy()` overload"]
394    fn internal_destroy(self) -> () {
395        unsafe {
396            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
397            ::unity::il2cpp_call!((::unity::module_base()+0x3f18cb0usize)as*mut u8,();
398(UnityWebRequest)__receiver)
399        }
400    }
401    #[doc = "`InternalSetDefaults()` overload"]
402    fn internal_set_defaults(self) -> () {
403        unsafe {
404            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
405            ::unity::il2cpp_call!((::unity::module_base()+0x3f18db0usize)as*mut u8,();
406(UnityWebRequest)__receiver)
407        }
408    }
409    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
410    fn ctor(self, url: impl ::core::convert::Into<::unity::Il2CppString>, method: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
411        unsafe {
412            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
413            ::unity::il2cpp_call!((::unity::module_base()+0x3f18dd0usize)as*mut u8,();
414(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url),(::unity::Il2CppString)::core::convert::Into::into(method))
415        }
416    }
417    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::networking::downloadhandler::DownloadHandler, crate::unity_engine::networking::uploadhandler::UploadHandler)` overload"]
418    fn ctor_2(
419        self,
420        url: impl ::core::convert::Into<::unity::Il2CppString>,
421        method: impl ::core::convert::Into<::unity::Il2CppString>,
422        download_handler: impl ::core::convert::Into<crate::unity_engine::networking::downloadhandler::DownloadHandler>,
423        upload_handler: impl ::core::convert::Into<crate::unity_engine::networking::uploadhandler::UploadHandler>,
424    ) -> () {
425        unsafe {
426            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
427            ::unity::il2cpp_call!((::unity::module_base()+0x3f19120usize)as*mut u8,();
428(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url),(::unity::Il2CppString)::core::convert::Into::into(method),(crate::unity_engine::networking::downloadhandler::DownloadHandler)::core::convert::Into::into(download_handler),(crate::unity_engine::networking::uploadhandler::UploadHandler)::core::convert::Into::into(upload_handler))
429        }
430    }
431    #[doc = "`Finalize()` overload"]
432    fn finalize(self) -> () {
433        unsafe {
434            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
435            {
436                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
437                let __vi = *__vt.get(1usize).unwrap_or_else(|| {
438                    panic!(
439                        "unity: virtual slot {}
440 out of range (vtable len {}
441) on the runtime class behind {}
442 (method `{}
443`)",
444                        1usize,
445                        __vt.len(),
446                        <UnityWebRequest as ::unity::ClassIdentity>::NAME,
447                        "Finalize",
448                    )
449                });
450                let __inner: extern "C" fn(UnityWebRequest, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
451                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
452                __inner(__receiver, __mi)
453            }
454        }
455    }
456    #[doc = "`Dispose()` overload"]
457    fn dispose(self) -> () {
458        unsafe {
459            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
460            {
461                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
462                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
463                    panic!(
464                        "unity: virtual slot {}
465 out of range (vtable len {}
466) on the runtime class behind {}
467 (method `{}
468`)",
469                        4usize,
470                        __vt.len(),
471                        <UnityWebRequest as ::unity::ClassIdentity>::NAME,
472                        "Dispose",
473                    )
474                });
475                let __inner: extern "C" fn(UnityWebRequest, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
476                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
477                __inner(__receiver, __mi)
478            }
479        }
480    }
481    #[doc = "`DisposeHandlers()` overload"]
482    fn dispose_handlers(self) -> () {
483        unsafe {
484            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
485            ::unity::il2cpp_call!((::unity::module_base()+0x3f19570usize)as*mut u8,();
486(UnityWebRequest)__receiver)
487        }
488    }
489    #[doc = "`BeginWebRequest()` overload"]
490    fn begin_web_request(self) -> crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation {
491        unsafe {
492            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
493            ::unity::il2cpp_call!((::unity::module_base()+0x3f198a0usize)as*mut u8,crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation;
494(UnityWebRequest)__receiver)
495        }
496    }
497    #[doc = "`SendWebRequest()` overload"]
498    fn send_web_request(self) -> crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation {
499        unsafe {
500            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
501            ::unity::il2cpp_call!((::unity::module_base()+0x3f198f0usize)as*mut u8,crate::unity_engine::networking::unitywebrequestasyncoperation::UnityWebRequestAsyncOperation;
502(UnityWebRequest)__receiver)
503        }
504    }
505    #[doc = "`Abort()` overload"]
506    fn abort(self) -> () {
507        unsafe {
508            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
509            ::unity::il2cpp_call!((::unity::module_base()+0x3f18d60usize)as*mut u8,();
510(UnityWebRequest)__receiver)
511        }
512    }
513    #[doc = "`SetMethod(crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod)` overload"]
514    fn set_method(
515        self,
516        method_type: impl ::core::convert::Into<crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod>,
517    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
518        unsafe {
519            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
520            ::unity::il2cpp_call!((::unity::module_base()+0x3f19970usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
521(UnityWebRequest)__receiver,(crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod)::core::convert::Into::into(method_type))
522        }
523    }
524    #[doc = "`InternalSetMethod(crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod)` overload"]
525    fn internal_set_method(
526        self,
527        method_type: impl ::core::convert::Into<crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod>,
528    ) -> () {
529        unsafe {
530            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
531            ::unity::il2cpp_call!((::unity::module_base()+0x3f199c0usize)as*mut u8,();
532(UnityWebRequest)__receiver,(crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod)::core::convert::Into::into(method_type))
533        }
534    }
535    #[doc = "`SetCustomMethod(::unity::Il2CppString)` overload"]
536    fn set_custom_method(
537        self,
538        custom_method_name: impl ::core::convert::Into<::unity::Il2CppString>,
539    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
540        unsafe {
541            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
542            ::unity::il2cpp_call!((::unity::module_base()+0x3f19b20usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
543(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(custom_method_name))
544        }
545    }
546    #[doc = "`InternalSetCustomMethod(::unity::Il2CppString)` overload"]
547    fn internal_set_custom_method(self, custom_method_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
548        unsafe {
549            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
550            ::unity::il2cpp_call!((::unity::module_base()+0x3f19b70usize)as*mut u8,();
551(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(custom_method_name))
552        }
553    }
554    #[doc = "`GetMethod()` overload"]
555    fn get_method(self) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod {
556        unsafe {
557            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
558            ::unity::il2cpp_call!((::unity::module_base()+0x3f19c80usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestMethod;
559(UnityWebRequest)__receiver)
560        }
561    }
562    #[doc = "`GetCustomMethod()` overload"]
563    fn get_custom_method(self) -> ::unity::Il2CppString {
564        unsafe {
565            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
566            ::unity::il2cpp_call!((::unity::module_base()+0x3f19cd0usize)as*mut u8, ::unity::Il2CppString;
567(UnityWebRequest)__receiver)
568        }
569    }
570    #[doc = "`set_method(::unity::Il2CppString)` overload"]
571    fn set_method_2(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
572        unsafe {
573            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
574            ::unity::il2cpp_call!((::unity::module_base()+0x3f18f60usize)as*mut u8,();
575(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
576        }
577    }
578    #[doc = "`GetError()` overload"]
579    fn get_error(self) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
580        unsafe {
581            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
582            ::unity::il2cpp_call!((::unity::module_base()+0x3f19e80usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
583(UnityWebRequest)__receiver)
584        }
585    }
586    #[doc = "`get_url()` overload"]
587    fn get_url(self) -> ::unity::Il2CppString {
588        unsafe {
589            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
590            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a140usize)as*mut u8, ::unity::Il2CppString;
591(UnityWebRequest)__receiver)
592        }
593    }
594    #[doc = "`set_url(::unity::Il2CppString)` overload"]
595    fn set_url(self, value: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
596        unsafe {
597            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
598            ::unity::il2cpp_call!((::unity::module_base()+0x3f18ec0usize)as*mut u8,();
599(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(value))
600        }
601    }
602    #[doc = "`InternalSetUrl(::unity::Il2CppString)` overload"]
603    fn internal_set_url(self, url: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
604        unsafe {
605            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
606            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a5a0usize)as*mut u8,();
607(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(url))
608        }
609    }
610    #[doc = "`get_responseCode()` overload"]
611    fn get_response_code(self) -> i64 {
612        unsafe {
613            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
614            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a0f0usize)as*mut u8,i64;
615(UnityWebRequest)__receiver)
616        }
617    }
618    #[doc = "`IsExecuting()` overload"]
619    fn is_executing(self) -> bool {
620        unsafe {
621            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
622            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a700usize)as*mut u8,bool;
623(UnityWebRequest)__receiver)
624        }
625    }
626    #[doc = "`get_isModifiable()` overload"]
627    fn get_is_modifiable(self) -> bool {
628        unsafe {
629            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
630            ::unity::il2cpp_call!((::unity::module_base()+0x3f19ad0usize)as*mut u8,bool;
631(UnityWebRequest)__receiver)
632        }
633    }
634    #[doc = "`get_isDone()` overload"]
635    fn get_is_done(self) -> bool {
636        unsafe {
637            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
638            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a750usize)as*mut u8,bool;
639(UnityWebRequest)__receiver)
640        }
641    }
642    #[doc = "`get_result()` overload"]
643    fn get_result(self) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_Result {
644        unsafe {
645            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
646            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a0a0usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_Result;
647(UnityWebRequest)__receiver)
648        }
649    }
650    #[doc = "`GetDownloadProgress()` overload"]
651    fn get_download_progress(self) -> f32 {
652        unsafe {
653            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
654            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a7a0usize)as*mut u8,f32;
655(UnityWebRequest)__receiver)
656        }
657    }
658    #[doc = "`get_downloadedBytes()` overload"]
659    fn get_downloaded_bytes(self) -> u64 {
660        unsafe {
661            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
662            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a8d0usize)as*mut u8,u64;
663(UnityWebRequest)__receiver)
664        }
665    }
666    #[doc = "`SetRedirectLimitFromScripting(i32)` overload"]
667    fn set_redirect_limit_from_scripting(self, limit: impl ::core::convert::Into<i32>) -> () {
668        unsafe {
669            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
670            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a920usize)as*mut u8,();
671(UnityWebRequest)__receiver,(i32)::core::convert::Into::into(limit))
672        }
673    }
674    #[doc = "`set_redirectLimit(i32)` overload"]
675    fn set_redirect_limit(self, value: impl ::core::convert::Into<i32>) -> () {
676        unsafe {
677            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
678            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a970usize)as*mut u8,();
679(UnityWebRequest)__receiver,(i32)::core::convert::Into::into(value))
680        }
681    }
682    #[doc = "`SetChunked(bool)` overload"]
683    fn set_chunked(
684        self,
685        chunked: impl ::core::convert::Into<bool>,
686    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
687        unsafe {
688            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
689            ::unity::il2cpp_call!((::unity::module_base()+0x3f1a9c0usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
690(UnityWebRequest)__receiver,(bool)::core::convert::Into::into(chunked))
691        }
692    }
693    #[doc = "`set_chunkedTransfer(bool)` overload"]
694    fn set_chunked_transfer(self, value: impl ::core::convert::Into<bool>) -> () {
695        unsafe {
696            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
697            ::unity::il2cpp_call!((::unity::module_base()+0x3f1aa10usize)as*mut u8,();
698(UnityWebRequest)__receiver,(bool)::core::convert::Into::into(value))
699        }
700    }
701    #[doc = "`InternalSetRequestHeader(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
702    fn internal_set_request_header(
703        self,
704        name: impl ::core::convert::Into<::unity::Il2CppString>,
705        value: impl ::core::convert::Into<::unity::Il2CppString>,
706    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
707        unsafe {
708            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
709            ::unity::il2cpp_call!((::unity::module_base()+0x3f1ab20usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
710(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(value))
711        }
712    }
713    #[doc = "`SetRequestHeader(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
714    fn set_request_header(
715        self,
716        name: impl ::core::convert::Into<::unity::Il2CppString>,
717        value: impl ::core::convert::Into<::unity::Il2CppString>,
718    ) -> () {
719        unsafe {
720            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
721            ::unity::il2cpp_call!((::unity::module_base()+0x3f1ab80usize)as*mut u8,();
722(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(value))
723        }
724    }
725    #[doc = "`GetResponseHeader(::unity::Il2CppString)` overload"]
726    fn get_response_header(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> ::unity::Il2CppString {
727        unsafe {
728            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
729            ::unity::il2cpp_call!((::unity::module_base()+0x3f1ad00usize)as*mut u8, ::unity::Il2CppString;
730(UnityWebRequest)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
731        }
732    }
733    #[doc = "`GetResponseHeaderKeys()` overload"]
734    fn get_response_header_keys(self) -> ::unity::Array<::unity::Il2CppString> {
735        unsafe {
736            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
737            ::unity::il2cpp_call!((::unity::module_base()+0x3f1ad50usize)as*mut u8, ::unity::Array< ::unity::Il2CppString> ;
738(UnityWebRequest)__receiver)
739        }
740    }
741    #[doc = "`GetResponseHeaders()` overload"]
742    fn get_response_headers(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2<::unity::Il2CppString, ::unity::Il2CppString> {
743        unsafe {
744            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
745            ::unity::il2cpp_call!((::unity::module_base()+0x3f1ada0usize)as*mut u8,crate::system::collections::generic::dictionary_2::Dictionary_2< ::unity::Il2CppString, ::unity::Il2CppString> ;
746(UnityWebRequest)__receiver)
747        }
748    }
749    #[doc = "`SetUploadHandler(crate::unity_engine::networking::uploadhandler::UploadHandler)` overload"]
750    fn set_upload_handler(
751        self,
752        uh: impl ::core::convert::Into<crate::unity_engine::networking::uploadhandler::UploadHandler>,
753    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
754        unsafe {
755            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
756            ::unity::il2cpp_call!((::unity::module_base()+0x3f1afd0usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
757(UnityWebRequest)__receiver,(crate::unity_engine::networking::uploadhandler::UploadHandler)::core::convert::Into::into(uh))
758        }
759    }
760    #[doc = "`get_uploadHandler()` overload"]
761    fn get_upload_handler(self) -> crate::unity_engine::networking::uploadhandler::UploadHandler {
762        unsafe {
763            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
764            ::unity::il2cpp_call!((::unity::module_base()+0x3f19800usize)as*mut u8,crate::unity_engine::networking::uploadhandler::UploadHandler;
765(UnityWebRequest)__receiver)
766        }
767    }
768    #[doc = "`SetDownloadHandler(crate::unity_engine::networking::downloadhandler::DownloadHandler)` overload"]
769    fn set_download_handler(
770        self,
771        dh: impl ::core::convert::Into<crate::unity_engine::networking::downloadhandler::DownloadHandler>,
772    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
773        unsafe {
774            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
775            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b020usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
776(UnityWebRequest)__receiver,(crate::unity_engine::networking::downloadhandler::DownloadHandler)::core::convert::Into::into(dh))
777        }
778    }
779    #[doc = "`get_downloadHandler()` overload"]
780    fn get_download_handler(self) -> crate::unity_engine::networking::downloadhandler::DownloadHandler {
781        unsafe {
782            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
783            ::unity::il2cpp_call!((::unity::module_base()+0x3f197f0usize)as*mut u8,crate::unity_engine::networking::downloadhandler::DownloadHandler;
784(UnityWebRequest)__receiver)
785        }
786    }
787    #[doc = "`SetCertificateHandler(crate::unity_engine::networking::certificatehandler::CertificateHandler)` overload"]
788    fn set_certificate_handler(
789        self,
790        ch: impl ::core::convert::Into<crate::unity_engine::networking::certificatehandler::CertificateHandler>,
791    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
792        unsafe {
793            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
794            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b070usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
795(UnityWebRequest)__receiver,(crate::unity_engine::networking::certificatehandler::CertificateHandler)::core::convert::Into::into(ch))
796        }
797    }
798    #[doc = "`get_certificateHandler()` overload"]
799    fn get_certificate_handler(self) -> crate::unity_engine::networking::certificatehandler::CertificateHandler {
800        unsafe {
801            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
802            ::unity::il2cpp_call!((::unity::module_base()+0x3f19890usize)as*mut u8,crate::unity_engine::networking::certificatehandler::CertificateHandler;
803(UnityWebRequest)__receiver)
804        }
805    }
806    #[doc = "`SetTimeoutMsec(i32)` overload"]
807    fn set_timeout_msec(
808        self,
809        timeout: impl ::core::convert::Into<i32>,
810    ) -> crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError {
811        unsafe {
812            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
813            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b1e0usize)as*mut u8,crate::unity_engine::networking::unitywebrequest::UnityWebRequest_UnityWebRequestError;
814(UnityWebRequest)__receiver,(i32)::core::convert::Into::into(timeout))
815        }
816    }
817    #[doc = "`set_timeout(i32)` overload"]
818    fn set_timeout(self, value: impl ::core::convert::Into<i32>) -> () {
819        unsafe {
820            let __receiver = <UnityWebRequest as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
821            ::unity::il2cpp_call!((::unity::module_base()+0x3f1b230usize)as*mut u8,();
822(UnityWebRequest)__receiver,(i32)::core::convert::Into::into(value))
823        }
824    }
825}
826
827#[cfg(feature = "unity_engine-networking-unitywebrequest")]
828impl<__T: IUnityWebRequest> IUnityWebRequestMethods for __T {}
829
830#[cfg(feature = "unity_engine-networking-unitywebrequest")]
831impl UnityWebRequest {
832    pub fn get_web_error_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
833        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
834    }
835
836    pub fn get_http_status_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
837        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
838    }
839
840    pub fn get_dispose_certificate_handler_on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
841        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
842    }
843
844    pub fn set_dispose_certificate_handler_on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
845        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
846    }
847
848    pub fn get_dispose_download_handler_on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
849        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
850    }
851
852    pub fn set_dispose_download_handler_on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
853        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
854    }
855
856    pub fn get_dispose_upload_handler_on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
857        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
858    }
859
860    pub fn set_dispose_upload_handler_on_dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
861        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
862    }
863
864    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
865        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
866    }
867
868    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
869        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
870    }
871
872    pub fn internal_destroy_method_info() -> &'static ::unity::il2cpp::MethodInfo {
873        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
874    }
875
876    pub fn internal_set_defaults_method_info() -> &'static ::unity::il2cpp::MethodInfo {
877        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
878    }
879
880    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
881        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
882    }
883
884    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
885        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
886    }
887
888    pub fn finalize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
889        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
890    }
891
892    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
893        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
894    }
895
896    pub fn dispose_handlers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
897        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
898    }
899
900    pub fn begin_web_request_method_info() -> &'static ::unity::il2cpp::MethodInfo {
901        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
902    }
903
904    pub fn send_web_request_method_info() -> &'static ::unity::il2cpp::MethodInfo {
905        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
906    }
907
908    pub fn abort_method_info() -> &'static ::unity::il2cpp::MethodInfo {
909        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
910    }
911
912    pub fn set_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
913        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
914    }
915
916    pub fn internal_set_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
917        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
918    }
919
920    pub fn set_custom_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
921        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
922    }
923
924    pub fn internal_set_custom_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
925        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
926    }
927
928    pub fn get_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
929        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
930    }
931
932    pub fn get_custom_method_method_info() -> &'static ::unity::il2cpp::MethodInfo {
933        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
934    }
935
936    pub fn set_method_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
937        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
938    }
939
940    pub fn get_error_method_info() -> &'static ::unity::il2cpp::MethodInfo {
941        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
942    }
943
944    pub fn get_url_method_info() -> &'static ::unity::il2cpp::MethodInfo {
945        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
946    }
947
948    pub fn set_url_method_info() -> &'static ::unity::il2cpp::MethodInfo {
949        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
950    }
951
952    pub fn internal_set_url_method_info() -> &'static ::unity::il2cpp::MethodInfo {
953        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
954    }
955
956    pub fn get_response_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
957        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
958    }
959
960    pub fn is_executing_method_info() -> &'static ::unity::il2cpp::MethodInfo {
961        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
962    }
963
964    pub fn get_is_modifiable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
965        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
966    }
967
968    pub fn get_is_done_method_info() -> &'static ::unity::il2cpp::MethodInfo {
969        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
970    }
971
972    pub fn get_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
973        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
974    }
975
976    pub fn get_download_progress_method_info() -> &'static ::unity::il2cpp::MethodInfo {
977        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
978    }
979
980    pub fn get_downloaded_bytes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
981        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
982    }
983
984    pub fn set_redirect_limit_from_scripting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
985        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
986    }
987
988    pub fn set_redirect_limit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
989        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
990    }
991
992    pub fn set_chunked_method_info() -> &'static ::unity::il2cpp::MethodInfo {
993        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
994    }
995
996    pub fn set_chunked_transfer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
997        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
998    }
999
1000    pub fn internal_set_request_header_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1001        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
1002    }
1003
1004    pub fn set_request_header_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1005        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[48]
1006    }
1007
1008    pub fn get_response_header_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1009        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[49]
1010    }
1011
1012    pub fn get_response_header_keys_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1013        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[50]
1014    }
1015
1016    pub fn get_response_headers_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1017        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[51]
1018    }
1019
1020    pub fn set_upload_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1021        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[52]
1022    }
1023
1024    pub fn get_upload_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1025        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[53]
1026    }
1027
1028    pub fn set_download_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1029        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[55]
1030    }
1031
1032    pub fn get_download_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1033        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[56]
1034    }
1035
1036    pub fn set_certificate_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1037        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[58]
1038    }
1039
1040    pub fn get_certificate_handler_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1041        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[59]
1042    }
1043
1044    pub fn set_timeout_msec_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1045        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[61]
1046    }
1047
1048    pub fn set_timeout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1049        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[62]
1050    }
1051
1052    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1053        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[63]
1054    }
1055
1056    pub fn post_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1057        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[64]
1058    }
1059
1060    pub fn setup_post_method_info() -> &'static ::unity::il2cpp::MethodInfo {
1061        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[65]
1062    }
1063}
1064
1065#[cfg(feature = "unity_engine-networking-unitywebrequest")]
1066impl UnityWebRequest {
1067    #[doc = "Direct (non-virtual) call to `UnityWebRequest`'s own `Finalize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1068    pub unsafe fn finalize(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1069        let __mi = Self::finalize_method_info();
1070        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1071        __inner(this.into(), ::core::option::Option::None)
1072    }
1073
1074    #[doc = "Direct (non-virtual) call to `UnityWebRequest`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
1075    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
1076        let __mi = Self::dispose_method_info();
1077        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
1078        __inner(this.into(), ::core::option::Option::None)
1079    }
1080}
1081
1082#[cfg(feature = "unity_engine-networking-unitywebrequest")]
1083impl UnityWebRequest {
1084    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString)` — overload selector"]
1085    pub fn new(url: ::unity::Il2CppString, method: ::unity::Il2CppString) -> Self {
1086        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1087            panic!(
1088                "{}
1089::{}
1090 failed to instantiate",
1091                ::core::stringify!(UnityWebRequest),
1092                ::core::stringify!(new),
1093            )
1094        });
1095        <Self as IUnityWebRequestMethods>::ctor(this, url, method);
1096        this
1097    }
1098
1099    #[doc = "`.ctor(::unity::Il2CppString, ::unity::Il2CppString, crate::unity_engine::networking::downloadhandler::DownloadHandler, crate::unity_engine::networking::uploadhandler::UploadHandler)` — overload selector"]
1100    pub fn new_2(
1101        url: ::unity::Il2CppString,
1102        method: ::unity::Il2CppString,
1103        download_handler: crate::unity_engine::networking::downloadhandler::DownloadHandler,
1104        upload_handler: crate::unity_engine::networking::uploadhandler::UploadHandler,
1105    ) -> Self {
1106        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
1107            panic!(
1108                "{}
1109::{}
1110 failed to instantiate",
1111                ::core::stringify!(UnityWebRequest),
1112                ::core::stringify!(new_2),
1113            )
1114        });
1115        <Self as IUnityWebRequestMethods>::ctor_2(this, url, method, download_handler, upload_handler);
1116        this
1117    }
1118}
1119
1120#[cfg(feature = "unity_engine-networking-unitywebrequest")]
1121#[doc(hidden)]
1122pub mod prelude {
1123    pub use super::{
1124        IUnityWebRequest, IUnityWebRequestMethods, UnityWebRequest, UnityWebRequest_Result, UnityWebRequest_UnityWebRequestError,
1125        UnityWebRequest_UnityWebRequestMethod,
1126    };
1127    #[cfg(feature = "system-object")]
1128    pub use crate::system::object::IObjectMethods;
1129    #[cfg(feature = "system-enum")]
1130    pub use crate::system::r#enum::IEnumMethods;
1131    #[cfg(feature = "system-valuetype")]
1132    pub use crate::system::valuetype::IValueTypeMethods;
1133    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
1134}