static IntPtr n_FindLiteExtensionByNumber_Lcom_google_protobuf_MessageLite_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, int p1) { global::Com.Google.Protobuf.ExtensionRegistryLite __this = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.ExtensionRegistryLite> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Java.Lang.Object p0 = global::Java.Lang.Object.GetObject <global::Java.Lang.Object> (native_p0, JniHandleOwnership.DoNotTransfer); IntPtr __ret = JNIEnv.ToLocalJniHandle(__this.FindLiteExtensionByNumber(p0, p1)); return(__ret); }
static bool n_A_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I(IntPtr jnienv, IntPtr native__this, IntPtr native_p0, IntPtr native_p1, int p2) { global::Com.Google.Protobuf.GeneratedMessageLite __this = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.GeneratedMessageLite> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); global::Com.Google.Protobuf.CodedInputStream p0 = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.CodedInputStream> (native_p0, JniHandleOwnership.DoNotTransfer); global::Com.Google.Protobuf.ExtensionRegistryLite p1 = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.ExtensionRegistryLite> (native_p1, JniHandleOwnership.DoNotTransfer); bool __ret = __this.A(p0, p1, p2); return(__ret); }
protected virtual bool A(global::Com.Google.Protobuf.CodedInputStream p0, global::Com.Google.Protobuf.ExtensionRegistryLite p1, int p2) { if (id_a_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I == IntPtr.Zero) { id_a_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I = JNIEnv.GetMethodID(class_ref, "a", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;I)Z"); } bool __ret; if (GetType() == ThresholdType) { __ret = JNIEnv.CallBooleanMethod(Handle, id_a_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_I, new JValue(p0), new JValue(p1), new JValue(p2)); } else { __ret = JNIEnv.CallNonvirtualBooleanMethod(Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "a", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;I)Z"), new JValue(p0), new JValue(p1), new JValue(p2)); } return(__ret); }
static IntPtr n_GetUnmodifiable(IntPtr jnienv, IntPtr native__this) { global::Com.Google.Protobuf.ExtensionRegistryLite __this = global::Java.Lang.Object.GetObject <global::Com.Google.Protobuf.ExtensionRegistryLite> (jnienv, native__this, JniHandleOwnership.DoNotTransfer); return(JNIEnv.ToLocalJniHandle(__this.Unmodifiable)); }
public override unsafe IMessageLiteBuilder MergeFrom(global::Com.Google.Protobuf.CodedInputStream p0, global::Com.Google.Protobuf.ExtensionRegistryLite p1) { if (id_mergeFrom_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_ == IntPtr.Zero) { id_mergeFrom_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_ = JNIEnv.GetMethodID(class_ref, "mergeFrom", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/GeneratedMessageLite$Builder;"); } try { JValue *__args = stackalloc JValue[2]; __args[0] = new JValue(p0); __args[1] = new JValue(p1); IMessageLiteBuilder __ret; if (((object)this).GetType() == ThresholdType) { __ret = (IMessageLiteBuilder)global::Java.Lang.Object.GetObject <global::Java.Lang.Object>(JNIEnv.CallObjectMethod(((global::Java.Lang.Object) this).Handle, id_mergeFrom_Lcom_google_protobuf_CodedInputStream_Lcom_google_protobuf_ExtensionRegistryLite_, __args), JniHandleOwnership.TransferLocalRef); } else { __ret = (IMessageLiteBuilder)global::Java.Lang.Object.GetObject <global::Java.Lang.Object>(JNIEnv.CallNonvirtualObjectMethod(((global::Java.Lang.Object) this).Handle, ThresholdClass, JNIEnv.GetMethodID(ThresholdClass, "mergeFrom", "(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/GeneratedMessageLite$Builder;"), __args), JniHandleOwnership.TransferLocalRef); } return(__ret); } finally { } }