From 5f745302365cfeb063b464dbdef288294e762c1a Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 4 Nov 2025 01:48:35 +0200 Subject: [PATCH 1/7] Added the MLKit Prompting API --- config.json | 16 +++ .../PublicAPI/PublicAPI.Shipped.txt | 1 + .../PublicAPI/PublicAPI.Unshipped.txt | 93 +++++++++++++ .../genai-common/Transforms/EnumFields.xml | 21 +++ .../genai-common/Transforms/EnumMethods.xml | 7 + .../genai-common/Transforms/Metadata.xml | 10 ++ .../PublicAPI/PublicAPI.Shipped.txt | 1 + .../PublicAPI/PublicAPI.Unshipped.txt | 124 ++++++++++++++++++ .../genai-prompt/Transforms/EnumFields.xml | 8 ++ .../genai-prompt/Transforms/EnumMethods.xml | 6 + .../genai-prompt/Transforms/Metadata.xml | 24 ++++ 11 files changed, 311 insertions(+) create mode 100644 source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Shipped.txt create mode 100644 source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt create mode 100644 source/com.google.mlkit/genai-common/Transforms/EnumFields.xml create mode 100644 source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml create mode 100644 source/com.google.mlkit/genai-common/Transforms/Metadata.xml create mode 100644 source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Shipped.txt create mode 100644 source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt create mode 100644 source/com.google.mlkit/genai-prompt/Transforms/EnumFields.xml create mode 100644 source/com.google.mlkit/genai-prompt/Transforms/EnumMethods.xml create mode 100644 source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml diff --git a/config.json b/config.json index 96c59e714..16f59597a 100644 --- a/config.json +++ b/config.json @@ -4128,6 +4128,22 @@ "nugetId": "Xamarin.Google.MLKit.FaceDetection", "type": "xbd" }, + { + "groupId": "com.google.mlkit", + "artifactId": "genai-common", + "version": "1.0.0-beta2", + "nugetVersion": "1.0.0.0-beta2", + "nugetId": "Xamarin.Google.MLKit.GenAI.Common", + "type": "xbd" + }, + { + "groupId": "com.google.mlkit", + "artifactId": "genai-prompt", + "version": "1.0.0-alpha1", + "nugetVersion": "1.0.0.0-alpha1", + "nugetId": "Xamarin.Google.MLKit.GenAI.Prompt", + "type": "xbd" + }, { "groupId": "com.google.mlkit", "artifactId": "image-labeling", diff --git a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Shipped.txt b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Shipped.txt new file mode 100644 index 000000000..7dc5c5811 --- /dev/null +++ b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Shipped.txt @@ -0,0 +1 @@ +#nullable enable diff --git a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt new file mode 100644 index 000000000..252fe630e --- /dev/null +++ b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt @@ -0,0 +1,93 @@ +#nullable enable +Google.MLKit.GenAI.Common.Audio.AudioSource +Google.MLKit.GenAI.Common.Audio.AudioSource.AudioSource(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Common.BaseOptions +Google.MLKit.GenAI.Common.BaseOptions.BaseOptions() -> void +Google.MLKit.GenAI.Common.BaseOptions.BaseOptions(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Common.BaseRequest +Google.MLKit.GenAI.Common.BaseRequest.BaseRequest() -> void +Google.MLKit.GenAI.Common.BaseRequest.BaseRequest(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Common.BaseRequest.IOverrideRequestKind +Google.MLKit.GenAI.Common.DownloadStatus +Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.Component1() -> Google.MLKit.GenAI.Common.GenAiException! +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.Copy(Google.MLKit.GenAI.Common.GenAiException! e) -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed! +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.DownloadFailed(Google.MLKit.GenAI.Common.GenAiException! e) -> void +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.GetE() -> Google.MLKit.GenAI.Common.GenAiException! +Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress +Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.Component1() -> long +Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.Copy(long totalBytesDownloaded) -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress! +Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.DownloadProgress(long totalBytesDownloaded) -> void +Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.TotalBytesDownloaded.get -> long +Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted +Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.BytesToDownload.get -> long +Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.Component1() -> long +Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.Copy(long bytesToDownload) -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted! +Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.DownloadStarted(long bytesToDownload) -> void +Google.MLKit.GenAI.Common.DownloadStatus.DownloadStatus(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Common.FeatureStatus +Google.MLKit.GenAI.Common.FeatureStatusAttribute +Google.MLKit.GenAI.Common.FeatureStatusAttribute.FeatureStatusAttribute() -> void +Google.MLKit.GenAI.Common.FeatureStatusConsts +Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.AicoreIncompatible = -101 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.BackgroundUseBlocked = 30 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.Busy = 9 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.CacheProcessingError = -103 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.Cancelled = 7 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.InvalidInputImage = -102 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.NeedsSystemUpdate = 604 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.NotAvailable = 8 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.NotEnoughDiskSpace = 501 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.PerAppBatteryUseQuotaExceeded = 27 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.RequestProcessingError = 4 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.RequestTooLarge = 12 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.RequestTooSmall = -100 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.ResponseGenerationError = 15 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.ResponseProcessingError = 11 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiErrorCode.Unknown = 0 -> Google.MLKit.GenAI.Common.GenAiErrorCode +Google.MLKit.GenAI.Common.GenAiException +Google.MLKit.GenAI.Common.GenAiException.GenAiException(Java.Lang.Throwable? cause, Google.MLKit.GenAI.Common.GenAiErrorCode errorCode) -> void +Google.MLKit.GenAI.Common.GenAiException.GenAiException(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Common.GenAiException.GenAiException(string! message, Java.Lang.Throwable? cause, Google.MLKit.GenAI.Common.GenAiErrorCode errorCode) -> void +Google.MLKit.GenAI.Common.IDownloadCallback +Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadCompleted() -> void +Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadFailed(Google.MLKit.GenAI.Common.GenAiException! p0) -> void +Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadProgress(long p0) -> void +Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadStarted(long p0) -> void +Google.MLKit.GenAI.Common.IFeatureStatus +Google.MLKit.GenAI.Common.IStreamingCallback +Google.MLKit.GenAI.Common.IStreamingCallback.OnNewText(string! p0) -> void +abstract Google.MLKit.GenAI.Common.BaseOptions.TargetVersion.get -> Java.Lang.Integer? +abstract Google.MLKit.GenAI.Common.BaseRequest.OverrideRequestKind.get -> Java.Lang.Integer? +const Google.MLKit.GenAI.Common.FeatureStatus.Available = 3 -> int +const Google.MLKit.GenAI.Common.FeatureStatus.Downloadable = 1 -> int +const Google.MLKit.GenAI.Common.FeatureStatus.Downloading = 2 -> int +const Google.MLKit.GenAI.Common.FeatureStatus.Unavailable = 0 -> int +override Google.MLKit.GenAI.Common.Audio.AudioSource.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.Audio.AudioSource.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Common.Audio.AudioSource.ThresholdType.get -> System.Type! +override Google.MLKit.GenAI.Common.BaseOptions.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.BaseOptions.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Common.BaseOptions.ThresholdType.get -> System.Type! +override Google.MLKit.GenAI.Common.BaseRequest.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.BaseRequest.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Common.BaseRequest.ThresholdType.get -> System.Type! +override Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.DownloadStatus.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.DownloadStatus.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Common.DownloadStatus.ThresholdType.get -> System.Type! +override Google.MLKit.GenAI.Common.GenAiException.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.GenAiException.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Common.GenAiException.ThresholdType.get -> System.Type! +static Google.MLKit.GenAI.Common.Audio.AudioSource.FromMic() -> Google.MLKit.GenAI.Common.Audio.AudioSource! +static Google.MLKit.GenAI.Common.Audio.AudioSource.FromPfd(Android.OS.ParcelFileDescriptor! pfd) -> Google.MLKit.GenAI.Common.Audio.AudioSource! +static Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted.Instance.get -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted! +virtual Google.MLKit.GenAI.Common.Audio.AudioSource.Pfd.get -> Android.OS.ParcelFileDescriptor? +virtual Google.MLKit.GenAI.Common.BaseOptions.TargetVersionOrDefault.get -> int +virtual Google.MLKit.GenAI.Common.BaseRequest.OverrideRequestKindOrDefault.get -> int +virtual Google.MLKit.GenAI.Common.GenAiException.ErrorCode.get -> Google.MLKit.GenAI.Common.GenAiErrorCode diff --git a/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml b/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml new file mode 100644 index 000000000..a22774634 --- /dev/null +++ b/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml b/source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml new file mode 100644 index 000000000..7f2c509b5 --- /dev/null +++ b/source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/source/com.google.mlkit/genai-common/Transforms/Metadata.xml b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml new file mode 100644 index 000000000..60eb32434 --- /dev/null +++ b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Shipped.txt b/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Shipped.txt new file mode 100644 index 000000000..7dc5c5811 --- /dev/null +++ b/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Shipped.txt @@ -0,0 +1 @@ +#nullable enable diff --git a/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt b/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt new file mode 100644 index 000000000..ebdb6c92c --- /dev/null +++ b/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt @@ -0,0 +1,124 @@ +#nullable enable +Google.MLKit.GenAI.Prompt.Candidate +Google.MLKit.GenAI.Prompt.Candidate.FinishReason.get -> Google.MLKit.GenAI.Prompt.CandidateFinishReason +Google.MLKit.GenAI.Prompt.Candidate.Text.get -> string! +Google.MLKit.GenAI.Prompt.CandidateFinishReason +Google.MLKit.GenAI.Prompt.CandidateFinishReason.MaxTokens = 1 -> Google.MLKit.GenAI.Prompt.CandidateFinishReason +Google.MLKit.GenAI.Prompt.CandidateFinishReason.Other = -100 -> Google.MLKit.GenAI.Prompt.CandidateFinishReason +Google.MLKit.GenAI.Prompt.CandidateFinishReason.Stop = 0 -> Google.MLKit.GenAI.Prompt.CandidateFinishReason +Google.MLKit.GenAI.Prompt.CountTokensResponse +Google.MLKit.GenAI.Prompt.CountTokensResponse.CountTokensResponse(int totalTokens) -> void +Google.MLKit.GenAI.Prompt.CountTokensResponse.TotalTokens.get -> int +Google.MLKit.GenAI.Prompt.GenerateContentRequest +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.Build() -> Google.MLKit.GenAI.Prompt.GenerateContentRequest! +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.Builder(Google.MLKit.GenAI.Prompt.ImagePart! image, Google.MLKit.GenAI.Prompt.TextPart! text) -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.Builder(Google.MLKit.GenAI.Prompt.TextPart! text) -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.CandidateCount.get -> Java.Lang.Integer? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.CandidateCount.set -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.MaxOutputTokens.get -> Java.Lang.Integer? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.MaxOutputTokens.set -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.PromptPrefix.get -> Google.MLKit.GenAI.Prompt.PromptPrefix? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.PromptPrefix.set -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.Seed.get -> Java.Lang.Integer? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.Seed.set -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.Temperature.get -> Java.Lang.Float? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.Temperature.set -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.TopK.get -> Java.Lang.Integer? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.TopK.set -> void +Google.MLKit.GenAI.Prompt.GenerateContentRequest.CandidateCount.get -> int +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Image.get -> Google.MLKit.GenAI.Prompt.ImagePart? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.MaxOutputTokens.get -> int +Google.MLKit.GenAI.Prompt.GenerateContentRequest.PromptPrefix.get -> Google.MLKit.GenAI.Prompt.PromptPrefix? +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Seed.get -> int +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Temperature.get -> float +Google.MLKit.GenAI.Prompt.GenerateContentRequest.Text.get -> Google.MLKit.GenAI.Prompt.TextPart! +Google.MLKit.GenAI.Prompt.GenerateContentRequest.TopK.get -> int +Google.MLKit.GenAI.Prompt.GenerateContentResponse +Google.MLKit.GenAI.Prompt.GenerateContentResponse.Candidates.get -> System.Collections.Generic.IList! +Google.MLKit.GenAI.Prompt.Generation +Google.MLKit.GenAI.Prompt.Generation.Client.get -> Google.MLKit.GenAI.Prompt.IGenerativeModel! +Google.MLKit.GenAI.Prompt.Generation.GetClient(Google.MLKit.GenAI.Prompt.GenerationConfig! options) -> Google.MLKit.GenAI.Prompt.IGenerativeModel! +Google.MLKit.GenAI.Prompt.GenerationConfig +Google.MLKit.GenAI.Prompt.GenerationConfig.Builder +Google.MLKit.GenAI.Prompt.GenerationConfig.Builder.Build() -> Google.MLKit.GenAI.Prompt.GenerationConfig! +Google.MLKit.GenAI.Prompt.GenerationConfig.Builder.Builder() -> void +Google.MLKit.GenAI.Prompt.GenerationConfig.Builder.WorkerExecutor.get -> Java.Util.Concurrent.IExecutorService? +Google.MLKit.GenAI.Prompt.GenerationConfig.Builder.WorkerExecutor.set -> void +Google.MLKit.GenAI.Prompt.GenerationConfig.WorkerExecutor.get -> Java.Util.Concurrent.IExecutorService? +Google.MLKit.GenAI.Prompt.IGenerativeModel +Google.MLKit.GenAI.Prompt.IGenerativeModel.CheckStatus(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.ClearCaches(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.Close() -> void +Google.MLKit.GenAI.Prompt.IGenerativeModel.CountTokens(Google.MLKit.GenAI.Prompt.GenerateContentRequest! request, Kotlin.Coroutines.IContinuation! p1) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.Download() -> Xamarin.KotlinX.Coroutines.Flow.IFlow! +Google.MLKit.GenAI.Prompt.IGenerativeModel.GenerateContent(Google.MLKit.GenAI.Prompt.GenerateContentRequest! request, Google.MLKit.GenAI.Common.IStreamingCallback! streamingCallback, Kotlin.Coroutines.IContinuation! p2) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.GenerateContent(Google.MLKit.GenAI.Prompt.GenerateContentRequest! request, Kotlin.Coroutines.IContinuation! p1) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.GenerateContent(string! prompt, Google.MLKit.GenAI.Common.IStreamingCallback! streamingCallback, Kotlin.Coroutines.IContinuation! p2) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.GenerateContent(string! prompt, Kotlin.Coroutines.IContinuation! p1) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.GenerateContentStream(Google.MLKit.GenAI.Prompt.GenerateContentRequest! request) -> Xamarin.KotlinX.Coroutines.Flow.IFlow! +Google.MLKit.GenAI.Prompt.IGenerativeModel.GenerateContentStream(string! prompt) -> Xamarin.KotlinX.Coroutines.Flow.IFlow! +Google.MLKit.GenAI.Prompt.IGenerativeModel.GetBaseModelName(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.GetTokenLimit(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.Warmup(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? +Google.MLKit.GenAI.Prompt.IGenerativeModel.Zza() -> Google.Common.Util.Concurrent.IListenableFuture! +Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzb(Google.MLKit.GenAI.Prompt.GenerateContentRequest! p0) -> Google.Common.Util.Concurrent.IListenableFuture! +Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzc(Google.MLKit.GenAI.Common.IDownloadCallback! p0) -> Google.Common.Util.Concurrent.IListenableFuture! +Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzd() -> Google.Common.Util.Concurrent.IListenableFuture! +Google.MLKit.GenAI.Prompt.IGenerativeModel.Zze() -> Google.Common.Util.Concurrent.IListenableFuture! +Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzf() -> Java.Util.Concurrent.IExecutorService! +Google.MLKit.GenAI.Prompt.ImagePart +Google.MLKit.GenAI.Prompt.ImagePart.Bitmap.get -> Android.Graphics.Bitmap! +Google.MLKit.GenAI.Prompt.ImagePart.Component1() -> Android.Graphics.Bitmap! +Google.MLKit.GenAI.Prompt.ImagePart.Copy(Android.Graphics.Bitmap! bitmap) -> Google.MLKit.GenAI.Prompt.ImagePart! +Google.MLKit.GenAI.Prompt.ImagePart.Height.get -> int +Google.MLKit.GenAI.Prompt.ImagePart.ImagePart(Android.Graphics.Bitmap! bitmap) -> void +Google.MLKit.GenAI.Prompt.ImagePart.ImagePart(Android.Net.Uri! uri) -> void +Google.MLKit.GenAI.Prompt.ImagePart.ImagePart(byte[]! blob) -> void +Google.MLKit.GenAI.Prompt.ImagePart.Width.get -> int +Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures +Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerativeModelFutures() -> void +Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerativeModelFutures(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Prompt.Part +Google.MLKit.GenAI.Prompt.Part.Part(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Prompt.PromptPrefix +Google.MLKit.GenAI.Prompt.PromptPrefix.Component1() -> string! +Google.MLKit.GenAI.Prompt.PromptPrefix.Copy(string! textString) -> Google.MLKit.GenAI.Prompt.PromptPrefix! +Google.MLKit.GenAI.Prompt.PromptPrefix.PromptPrefix(string! textString) -> void +Google.MLKit.GenAI.Prompt.PromptPrefix.TextString.get -> string! +Google.MLKit.GenAI.Prompt.TextPart +Google.MLKit.GenAI.Prompt.TextPart.Component1() -> string! +Google.MLKit.GenAI.Prompt.TextPart.Copy(string! textString) -> Google.MLKit.GenAI.Prompt.TextPart! +Google.MLKit.GenAI.Prompt.TextPart.TextPart(string! textString) -> void +Google.MLKit.GenAI.Prompt.TextPart.TextString.get -> string! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.BaseModelName.get -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.CheckStatus() -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.ClearCaches() -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.CountTokens(Google.MLKit.GenAI.Prompt.GenerateContentRequest! request) -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.Download(Google.MLKit.GenAI.Common.IDownloadCallback! callback) -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerateContent(Google.MLKit.GenAI.Prompt.GenerateContentRequest! request) -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerateContent(Google.MLKit.GenAI.Prompt.GenerateContentRequest! request, Google.MLKit.GenAI.Common.IStreamingCallback! callback) -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerateContent(string! prompt) -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerateContent(string! prompt, Google.MLKit.GenAI.Common.IStreamingCallback! callback) -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerativeModel.get -> Google.MLKit.GenAI.Prompt.IGenerativeModel! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.TokenLimit.get -> Google.Common.Util.Concurrent.IListenableFuture! +abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.Warmup() -> Google.Common.Util.Concurrent.IListenableFuture! +override Google.MLKit.GenAI.Prompt.Candidate.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.CountTokensResponse.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.GenerateContentRequest.Builder.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.GenerateContentRequest.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.GenerateContentResponse.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.Generation.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.GenerationConfig.Builder.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.GenerationConfig.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.ImagePart.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.ThresholdType.get -> System.Type! +override Google.MLKit.GenAI.Prompt.Part.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.Part.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Prompt.Part.ThresholdType.get -> System.Type! +override Google.MLKit.GenAI.Prompt.PromptPrefix.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Prompt.TextPart.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +static Google.MLKit.GenAI.Prompt.Generation.Instance.get -> Google.MLKit.GenAI.Prompt.Generation! +static Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.From(Google.MLKit.GenAI.Prompt.IGenerativeModel! generativeModel) -> Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures! diff --git a/source/com.google.mlkit/genai-prompt/Transforms/EnumFields.xml b/source/com.google.mlkit/genai-prompt/Transforms/EnumFields.xml new file mode 100644 index 000000000..0a520149e --- /dev/null +++ b/source/com.google.mlkit/genai-prompt/Transforms/EnumFields.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/source/com.google.mlkit/genai-prompt/Transforms/EnumMethods.xml b/source/com.google.mlkit/genai-prompt/Transforms/EnumMethods.xml new file mode 100644 index 000000000..b16f21dba --- /dev/null +++ b/source/com.google.mlkit/genai-prompt/Transforms/EnumMethods.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml b/source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml new file mode 100644 index 000000000..0b54f3b8e --- /dev/null +++ b/source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml @@ -0,0 +1,24 @@ + + + + + CompanionStatic + + DefaultStatic + + + + + + + + + + + + + + + + + From d0879dabec95fb876cde6ed78a1ac1443824e480 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 4 Nov 2025 03:12:58 +0200 Subject: [PATCH 2/7] fix APIs --- .../PublicAPI/PublicAPI.Unshipped.txt | 8 +------- .../genai-common/Transforms/Metadata.xml | 19 +++++++++++++++++++ .../PublicAPI/PublicAPI.Unshipped.txt | 12 ------------ .../genai-prompt/Transforms/Metadata.xml | 10 +++++++--- 4 files changed, 27 insertions(+), 22 deletions(-) diff --git a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt index 252fe630e..f863264cf 100644 --- a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt +++ b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt @@ -11,19 +11,13 @@ Google.MLKit.GenAI.Common.BaseRequest.IOverrideRequestKind Google.MLKit.GenAI.Common.DownloadStatus Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed -Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.Component1() -> Google.MLKit.GenAI.Common.GenAiException! -Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.Copy(Google.MLKit.GenAI.Common.GenAiException! e) -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed! Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.DownloadFailed(Google.MLKit.GenAI.Common.GenAiException! e) -> void -Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.GetE() -> Google.MLKit.GenAI.Common.GenAiException! +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.Exception.get -> Google.MLKit.GenAI.Common.GenAiException! Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress -Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.Component1() -> long -Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.Copy(long totalBytesDownloaded) -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress! Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.DownloadProgress(long totalBytesDownloaded) -> void Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.TotalBytesDownloaded.get -> long Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.BytesToDownload.get -> long -Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.Component1() -> long -Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.Copy(long bytesToDownload) -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted! Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.DownloadStarted(long bytesToDownload) -> void Google.MLKit.GenAI.Common.DownloadStatus.DownloadStatus(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void Google.MLKit.GenAI.Common.FeatureStatus diff --git a/source/com.google.mlkit/genai-common/Transforms/Metadata.xml b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml index 60eb32434..521a2916d 100644 --- a/source/com.google.mlkit/genai-common/Transforms/Metadata.xml +++ b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml @@ -7,4 +7,23 @@ + + + + + + + + + + + + + + + + + + GetException + diff --git a/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt b/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt index ebdb6c92c..8ed77b055 100644 --- a/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt +++ b/source/com.google.mlkit/genai-prompt/PublicAPI/PublicAPI.Unshipped.txt @@ -61,16 +61,8 @@ Google.MLKit.GenAI.Prompt.IGenerativeModel.GenerateContentStream(string! prompt) Google.MLKit.GenAI.Prompt.IGenerativeModel.GetBaseModelName(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? Google.MLKit.GenAI.Prompt.IGenerativeModel.GetTokenLimit(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? Google.MLKit.GenAI.Prompt.IGenerativeModel.Warmup(Kotlin.Coroutines.IContinuation! p0) -> Java.Lang.Object? -Google.MLKit.GenAI.Prompt.IGenerativeModel.Zza() -> Google.Common.Util.Concurrent.IListenableFuture! -Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzb(Google.MLKit.GenAI.Prompt.GenerateContentRequest! p0) -> Google.Common.Util.Concurrent.IListenableFuture! -Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzc(Google.MLKit.GenAI.Common.IDownloadCallback! p0) -> Google.Common.Util.Concurrent.IListenableFuture! -Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzd() -> Google.Common.Util.Concurrent.IListenableFuture! -Google.MLKit.GenAI.Prompt.IGenerativeModel.Zze() -> Google.Common.Util.Concurrent.IListenableFuture! -Google.MLKit.GenAI.Prompt.IGenerativeModel.Zzf() -> Java.Util.Concurrent.IExecutorService! Google.MLKit.GenAI.Prompt.ImagePart Google.MLKit.GenAI.Prompt.ImagePart.Bitmap.get -> Android.Graphics.Bitmap! -Google.MLKit.GenAI.Prompt.ImagePart.Component1() -> Android.Graphics.Bitmap! -Google.MLKit.GenAI.Prompt.ImagePart.Copy(Android.Graphics.Bitmap! bitmap) -> Google.MLKit.GenAI.Prompt.ImagePart! Google.MLKit.GenAI.Prompt.ImagePart.Height.get -> int Google.MLKit.GenAI.Prompt.ImagePart.ImagePart(Android.Graphics.Bitmap! bitmap) -> void Google.MLKit.GenAI.Prompt.ImagePart.ImagePart(Android.Net.Uri! uri) -> void @@ -82,13 +74,9 @@ Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.GenerativeModelFutures(nin Google.MLKit.GenAI.Prompt.Part Google.MLKit.GenAI.Prompt.Part.Part(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void Google.MLKit.GenAI.Prompt.PromptPrefix -Google.MLKit.GenAI.Prompt.PromptPrefix.Component1() -> string! -Google.MLKit.GenAI.Prompt.PromptPrefix.Copy(string! textString) -> Google.MLKit.GenAI.Prompt.PromptPrefix! Google.MLKit.GenAI.Prompt.PromptPrefix.PromptPrefix(string! textString) -> void Google.MLKit.GenAI.Prompt.PromptPrefix.TextString.get -> string! Google.MLKit.GenAI.Prompt.TextPart -Google.MLKit.GenAI.Prompt.TextPart.Component1() -> string! -Google.MLKit.GenAI.Prompt.TextPart.Copy(string! textString) -> Google.MLKit.GenAI.Prompt.TextPart! Google.MLKit.GenAI.Prompt.TextPart.TextPart(string! textString) -> void Google.MLKit.GenAI.Prompt.TextPart.TextString.get -> string! abstract Google.MLKit.GenAI.Prompt.Java.GenerativeModelFutures.BaseModelName.get -> Google.Common.Util.Concurrent.IListenableFuture! diff --git a/source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml b/source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml index 0b54f3b8e..724402cf9 100644 --- a/source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml +++ b/source/com.google.mlkit/genai-prompt/Transforms/Metadata.xml @@ -17,8 +17,12 @@ - - - + + + + + + + From dd35f88d394fd29ce43adaaccaa01d7bd5357c75 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 4 Nov 2025 03:19:06 +0200 Subject: [PATCH 3/7] casing --- .../PublicAPI/PublicAPI.Unshipped.txt | 56 +++++++++---------- .../genai-common/Transforms/EnumFields.xml | 2 +- .../genai-common/Transforms/EnumMethods.xml | 4 +- .../genai-common/Transforms/Metadata.xml | 3 + 4 files changed, 34 insertions(+), 31 deletions(-) diff --git a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt index f863264cf..481e978f3 100644 --- a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt +++ b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt @@ -11,8 +11,8 @@ Google.MLKit.GenAI.Common.BaseRequest.IOverrideRequestKind Google.MLKit.GenAI.Common.DownloadStatus Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed -Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.DownloadFailed(Google.MLKit.GenAI.Common.GenAiException! e) -> void -Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.Exception.get -> Google.MLKit.GenAI.Common.GenAiException! +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.DownloadFailed(Google.MLKit.GenAI.Common.GenAIException! e) -> void +Google.MLKit.GenAI.Common.DownloadStatus.DownloadFailed.Exception.get -> Google.MLKit.GenAI.Common.GenAIException! Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.DownloadProgress(long totalBytesDownloaded) -> void Google.MLKit.GenAI.Common.DownloadStatus.DownloadProgress.TotalBytesDownloaded.get -> long @@ -24,30 +24,30 @@ Google.MLKit.GenAI.Common.FeatureStatus Google.MLKit.GenAI.Common.FeatureStatusAttribute Google.MLKit.GenAI.Common.FeatureStatusAttribute.FeatureStatusAttribute() -> void Google.MLKit.GenAI.Common.FeatureStatusConsts -Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.AicoreIncompatible = -101 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.BackgroundUseBlocked = 30 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.Busy = 9 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.CacheProcessingError = -103 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.Cancelled = 7 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.InvalidInputImage = -102 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.NeedsSystemUpdate = 604 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.NotAvailable = 8 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.NotEnoughDiskSpace = 501 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.PerAppBatteryUseQuotaExceeded = 27 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.RequestProcessingError = 4 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.RequestTooLarge = 12 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.RequestTooSmall = -100 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.ResponseGenerationError = 15 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.ResponseProcessingError = 11 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiErrorCode.Unknown = 0 -> Google.MLKit.GenAI.Common.GenAiErrorCode -Google.MLKit.GenAI.Common.GenAiException -Google.MLKit.GenAI.Common.GenAiException.GenAiException(Java.Lang.Throwable? cause, Google.MLKit.GenAI.Common.GenAiErrorCode errorCode) -> void -Google.MLKit.GenAI.Common.GenAiException.GenAiException(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void -Google.MLKit.GenAI.Common.GenAiException.GenAiException(string! message, Java.Lang.Throwable? cause, Google.MLKit.GenAI.Common.GenAiErrorCode errorCode) -> void +Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.AicoreIncompatible = -101 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.BackgroundUseBlocked = 30 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.Busy = 9 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.CacheProcessingError = -103 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.Cancelled = 7 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.InvalidInputImage = -102 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.NeedsSystemUpdate = 604 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.NotAvailable = 8 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.NotEnoughDiskSpace = 501 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.PerAppBatteryUseQuotaExceeded = 27 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.RequestProcessingError = 4 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.RequestTooLarge = 12 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.RequestTooSmall = -100 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.ResponseGenerationError = 15 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.ResponseProcessingError = 11 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.Unknown = 0 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIException +Google.MLKit.GenAI.Common.GenAIException.GenAIException(Java.Lang.Throwable? cause, Google.MLKit.GenAI.Common.GenAIErrorCode errorCode) -> void +Google.MLKit.GenAI.Common.GenAIException.GenAIException(nint javaReference, Android.Runtime.JniHandleOwnership transfer) -> void +Google.MLKit.GenAI.Common.GenAIException.GenAIException(string! message, Java.Lang.Throwable? cause, Google.MLKit.GenAI.Common.GenAIErrorCode errorCode) -> void Google.MLKit.GenAI.Common.IDownloadCallback Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadCompleted() -> void -Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadFailed(Google.MLKit.GenAI.Common.GenAiException! p0) -> void +Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadFailed(Google.MLKit.GenAI.Common.GenAIException! p0) -> void Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadProgress(long p0) -> void Google.MLKit.GenAI.Common.IDownloadCallback.OnDownloadStarted(long p0) -> void Google.MLKit.GenAI.Common.IFeatureStatus @@ -75,13 +75,13 @@ override Google.MLKit.GenAI.Common.DownloadStatus.DownloadStarted.JniPeerMembers override Google.MLKit.GenAI.Common.DownloadStatus.JniPeerMembers.get -> Java.Interop.JniPeerMembers! override Google.MLKit.GenAI.Common.DownloadStatus.ThresholdClass.get -> nint override Google.MLKit.GenAI.Common.DownloadStatus.ThresholdType.get -> System.Type! -override Google.MLKit.GenAI.Common.GenAiException.JniPeerMembers.get -> Java.Interop.JniPeerMembers! -override Google.MLKit.GenAI.Common.GenAiException.ThresholdClass.get -> nint -override Google.MLKit.GenAI.Common.GenAiException.ThresholdType.get -> System.Type! +override Google.MLKit.GenAI.Common.GenAIException.JniPeerMembers.get -> Java.Interop.JniPeerMembers! +override Google.MLKit.GenAI.Common.GenAIException.ThresholdClass.get -> nint +override Google.MLKit.GenAI.Common.GenAIException.ThresholdType.get -> System.Type! static Google.MLKit.GenAI.Common.Audio.AudioSource.FromMic() -> Google.MLKit.GenAI.Common.Audio.AudioSource! static Google.MLKit.GenAI.Common.Audio.AudioSource.FromPfd(Android.OS.ParcelFileDescriptor! pfd) -> Google.MLKit.GenAI.Common.Audio.AudioSource! static Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted.Instance.get -> Google.MLKit.GenAI.Common.DownloadStatus.DownloadCompleted! virtual Google.MLKit.GenAI.Common.Audio.AudioSource.Pfd.get -> Android.OS.ParcelFileDescriptor? virtual Google.MLKit.GenAI.Common.BaseOptions.TargetVersionOrDefault.get -> int virtual Google.MLKit.GenAI.Common.BaseRequest.OverrideRequestKindOrDefault.get -> int -virtual Google.MLKit.GenAI.Common.GenAiException.ErrorCode.get -> Google.MLKit.GenAI.Common.GenAiErrorCode +virtual Google.MLKit.GenAI.Common.GenAIException.ErrorCode.get -> Google.MLKit.GenAI.Common.GenAIErrorCode diff --git a/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml b/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml index a22774634..100b70ac4 100644 --- a/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml +++ b/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml @@ -1,6 +1,6 @@ - + diff --git a/source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml b/source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml index 7f2c509b5..6352d862e 100644 --- a/source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml +++ b/source/com.google.mlkit/genai-common/Transforms/EnumMethods.xml @@ -1,7 +1,7 @@ - - + + diff --git a/source/com.google.mlkit/genai-common/Transforms/Metadata.xml b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml index 521a2916d..37637c7b9 100644 --- a/source/com.google.mlkit/genai-common/Transforms/Metadata.xml +++ b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml @@ -26,4 +26,7 @@ GetException + + GenAIException + From e1668077526e9654522da1b78b03a4c0a54cdb59 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 08:29:05 -0600 Subject: [PATCH 4/7] Initial plan (#1313) Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> From f0adb989cf5a2cd9f60add13cd762fd86fb850a1 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Tue, 4 Nov 2025 17:09:25 +0200 Subject: [PATCH 5/7] done --- published-namespaces.txt | 5 +++++ .../genai-common/PublicAPI/PublicAPI.Unshipped.txt | 2 +- .../com.google.mlkit/genai-common/Transforms/EnumFields.xml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/published-namespaces.txt b/published-namespaces.txt index 4b72ac1d7..609f6f408 100644 --- a/published-namespaces.txt +++ b/published-namespaces.txt @@ -1148,6 +1148,11 @@ Google.Internal.Firebase.InAppMessaging.V1.SdkServing Google.Logging.Type Google.Longrunning Google.MediaPipe.Tasks.GenAI.LlmInference +Google.MLKit.GenAI.Common +Google.MLKit.GenAI.Common.Audio +Google.MLKit.GenAI.Common.Internal +Google.MLKit.GenAI.Prompt +Google.MLKit.GenAI.Prompt.Java Google.MLKit.Vision.Digitalink.Common Google.MLKit.Vision.Digitalink.Common.Downloading Google.MLKit.Vision.Digitalink.Common.Internal diff --git a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt index 481e978f3..445231fd3 100644 --- a/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt +++ b/source/com.google.mlkit/genai-common/PublicAPI/PublicAPI.Unshipped.txt @@ -25,7 +25,7 @@ Google.MLKit.GenAI.Common.FeatureStatusAttribute Google.MLKit.GenAI.Common.FeatureStatusAttribute.FeatureStatusAttribute() -> void Google.MLKit.GenAI.Common.FeatureStatusConsts Google.MLKit.GenAI.Common.GenAIErrorCode -Google.MLKit.GenAI.Common.GenAIErrorCode.AicoreIncompatible = -101 -> Google.MLKit.GenAI.Common.GenAIErrorCode +Google.MLKit.GenAI.Common.GenAIErrorCode.AICoreIncompatible = -101 -> Google.MLKit.GenAI.Common.GenAIErrorCode Google.MLKit.GenAI.Common.GenAIErrorCode.BackgroundUseBlocked = 30 -> Google.MLKit.GenAI.Common.GenAIErrorCode Google.MLKit.GenAI.Common.GenAIErrorCode.Busy = 9 -> Google.MLKit.GenAI.Common.GenAIErrorCode Google.MLKit.GenAI.Common.GenAIErrorCode.CacheProcessingError = -103 -> Google.MLKit.GenAI.Common.GenAIErrorCode diff --git a/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml b/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml index 100b70ac4..90d8cfb0b 100644 --- a/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml +++ b/source/com.google.mlkit/genai-common/Transforms/EnumFields.xml @@ -1,7 +1,7 @@ - + From e3b3028518072047942ca2508095e3ea62281265 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Tue, 4 Nov 2025 13:43:44 -0600 Subject: [PATCH 6/7] Remove internal namespace from published-namespaces Removed 'Google.MLKit.GenAI.Common.Internal' from the list. --- published-namespaces.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/published-namespaces.txt b/published-namespaces.txt index 609f6f408..d762168db 100644 --- a/published-namespaces.txt +++ b/published-namespaces.txt @@ -1150,7 +1150,6 @@ Google.Longrunning Google.MediaPipe.Tasks.GenAI.LlmInference Google.MLKit.GenAI.Common Google.MLKit.GenAI.Common.Audio -Google.MLKit.GenAI.Common.Internal Google.MLKit.GenAI.Prompt Google.MLKit.GenAI.Prompt.Java Google.MLKit.Vision.Digitalink.Common From 65d5abb29d0c1f27d843352633ef74b00c190b8e Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Wed, 5 Nov 2025 16:13:59 +0200 Subject: [PATCH 7/7] Update source/com.google.mlkit/genai-common/Transforms/Metadata.xml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../com.google.mlkit/genai-common/Transforms/Metadata.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/com.google.mlkit/genai-common/Transforms/Metadata.xml b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml index 37637c7b9..11b0795fd 100644 --- a/source/com.google.mlkit/genai-common/Transforms/Metadata.xml +++ b/source/com.google.mlkit/genai-common/Transforms/Metadata.xml @@ -8,13 +8,6 @@ - - - - - - -