From bac51fdecf470e9bcdcef75adf1dbe69f104ec82 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 3 Aug 2026 06:21:17 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ....Gemini.GeminiClient.AuthTokensCreate.g.cs | 30 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 28 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 30 +- ...ini.GeminiClient.CachedContentsCreate.g.cs | 26 +- ...mini.GeminiClient.CachedContentsPatch.g.cs | 26 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 10 +- ....GeminiClient.CorporaPermissionsPatch.g.cs | 10 +- ...i.GeminiClient.DynamicGenerateContent.g.cs | 36 +- ...niClient.DynamicStreamGenerateContent.g.cs | 36 +- ....DynamicStreamGenerateContentAsStream.g.cs | 36 +- ...emini.GeminiClient.EnvironmentsCreate.g.cs | 10 +- ...miniClient.FileSearchStoresImportFile.g.cs | 10 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 18 +- ...Gemini.GeminiClient.ModelsCountTokens.g.cs | 10 +- ...emini.GeminiClient.ModelsEmbedContent.g.cs | 10 +- ...ni.GeminiClient.ModelsGenerateContent.g.cs | 36 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 36 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 36 +- ...Gemini.GeminiClient.TunedModelsCreate.g.cs | 36 +- ...miniClient.TunedModelsGenerateContent.g.cs | 36 +- ....Gemini.GeminiClient.TunedModelsPatch.g.cs | 36 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 10 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 10 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 36 +- ...edModelsStreamGenerateContentAsStream.g.cs | 36 +- ...Gemini.IGeminiClient.AuthTokensCreate.g.cs | 24 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 22 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 24 +- ...ni.IGeminiClient.CachedContentsCreate.g.cs | 20 +- ...ini.IGeminiClient.CachedContentsPatch.g.cs | 20 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 8 +- ...IGeminiClient.CorporaPermissionsPatch.g.cs | 8 +- ....IGeminiClient.DynamicGenerateContent.g.cs | 28 +- ...niClient.DynamicStreamGenerateContent.g.cs | 28 +- ....DynamicStreamGenerateContentAsStream.g.cs | 28 +- ...mini.IGeminiClient.EnvironmentsCreate.g.cs | 8 +- ...miniClient.FileSearchStoresImportFile.g.cs | 8 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 14 +- ...emini.IGeminiClient.ModelsCountTokens.g.cs | 8 +- ...mini.IGeminiClient.ModelsEmbedContent.g.cs | 8 +- ...i.IGeminiClient.ModelsGenerateContent.g.cs | 28 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 28 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 28 +- ...emini.IGeminiClient.TunedModelsCreate.g.cs | 28 +- ...miniClient.TunedModelsGenerateContent.g.cs | 28 +- ...Gemini.IGeminiClient.TunedModelsPatch.g.cs | 28 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 8 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 8 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 28 +- ...edModelsStreamGenerateContentAsStream.g.cs | 28 +- .../Google.Gemini.JsonSerializerContext.g.cs | 762 +- ...gle.Gemini.JsonSerializerContextTypes.g.cs | 654 +- ...gle.Gemini.Models.AttributionSourceId.g.cs | 24 +- ...gle.Gemini.Models.AudioResponseFormat.g.cs | 48 +- ...emini.Models.AudioTranscriptionConfig.g.cs | 66 +- .../Google.Gemini.Models.AuthToken.g.cs | 68 +- ...ini.Models.AutomaticActivityDetection.g.cs | 58 +- ...ini.Models.BatchEmbedContentsResponse.g.cs | 24 +- .../Google.Gemini.Models.BatchStats.g.cs | 26 +- ...emini.Models.BidiGenerateContentSetup.g.cs | 108 +- .../Google.Gemini.Models.CachedContent.g.cs | 110 +- .../Google.Gemini.Models.Candidate.g.cs | 148 +- .../Google.Gemini.Models.CitationSource.g.cs | 28 +- ...gle.Gemini.Models.CodeExecutionResult.g.cs | 24 +- .../Google.Gemini.Models.ComputerUse.g.cs | 22 +- .../Google.Gemini.Models.Content.g.cs | 24 +- .../Google.Gemini.Models.Corpus.g.cs | 28 +- ...ogle.Gemini.Models.CountTokensRequest.g.cs | 24 +- ...gle.Gemini.Models.CountTokensResponse.g.cs | 26 +- ...emini.Models.CreateEnvironmentRequest.g.cs | 22 +- ...ini.Models.CustomLongRunningOperation.g.cs | 52 +- .../Google.Gemini.Models.CustomMetadata.g.cs | 22 +- .../Google.Gemini.Models.Document.g.cs | 102 +- .../Google.Gemini.Models.EgressRule.g.cs | 24 +- ...oogle.Gemini.Models.EmbedContentBatch.g.cs | 122 +- ...Gemini.Models.EmbedContentBatchOutput.g.cs | 24 +- ....Gemini.Models.EmbedContentBatchStats.g.cs | 40 +- ...ogle.Gemini.Models.EmbedContentConfig.g.cs | 68 +- ...gle.Gemini.Models.EmbedContentRequest.g.cs | 52 +- ....Gemini.Models.EmbeddingUsageMetadata.g.cs | 26 +- .../Google.Gemini.Models.Environment.g.cs | 116 +- .../Generated/Google.Gemini.Models.File.g.cs | 170 +- .../Google.Gemini.Models.FileData.g.cs | 24 +- .../Google.Gemini.Models.FileSearch.g.cs | 24 +- .../Google.Gemini.Models.FileSearchStore.g.cs | 88 +- ...gle.Gemini.Models.FunctionDeclaration.g.cs | 38 +- ...Google.Gemini.Models.FunctionResponse.g.cs | 24 +- ...le.Gemini.Models.GenerateContentBatch.g.cs | 126 +- ....Gemini.Models.GenerateContentRequest.g.cs | 74 +- ...Gemini.Models.GenerateContentResponse.g.cs | 40 +- .../Google.Gemini.Models.GeneratedFile.g.cs | 34 +- ...Google.Gemini.Models.GenerationConfig.g.cs | 288 +- ...erativelanguageV1betaGroundingSupport.g.cs | 46 +- ...ogleAiGenerativelanguageV1betaSegment.g.cs | 38 +- .../Google.Gemini.Models.GroundingChunk.g.cs | 46 +- ...i.Models.GroundingChunkCustomMetadata.g.cs | 22 +- ...oogle.Gemini.Models.GroundingMetadata.g.cs | 60 +- .../Google.Gemini.Models.Hyperparameters.g.cs | 38 +- .../Generated/Google.Gemini.Models.Image.g.cs | 24 +- ...gle.Gemini.Models.ImageResponseFormat.g.cs | 24 +- ...oogle.Gemini.Models.ImportFileRequest.g.cs | 24 +- ...ni.Models.InlinedEmbedContentResponse.g.cs | 24 +- .../Google.Gemini.Models.InlinedResponse.g.cs | 22 +- .../Google.Gemini.Models.LatLng.g.cs | 24 +- ...ini.Models.ListCachedContentsResponse.g.cs | 24 +- ...emini.Models.ListEnvironmentsResponse.g.cs | 24 +- ...i.Models.ListFileSearchStoresResponse.g.cs | 24 +- ...ogle.Gemini.Models.ListModelsResponse.g.cs | 24 +- ...Gemini.Models.ListPermissionsResponse.g.cs | 24 +- .../Google.Gemini.Models.LogprobsResult.g.cs | 22 +- .../Generated/Google.Gemini.Models.Maps.g.cs | 24 +- .../Generated/Google.Gemini.Models.Model.g.cs | 150 +- .../Google.Gemini.Models.ModelStatus.g.cs | 24 +- .../Google.Gemini.Models.Operation.g.cs | 46 +- .../Generated/Google.Gemini.Models.Part.g.cs | 156 +- .../Google.Gemini.Models.Permission.g.cs | 48 +- ...gle.Gemini.Models.RealtimeInputConfig.g.cs | 26 +- ...le.Gemini.Models.ResponseFormatConfig.g.cs | 28 +- ...Google.Gemini.Models.RetrievedContext.g.cs | 58 +- .../Google.Gemini.Models.ReviewSnippet.g.cs | 22 +- .../Google.Gemini.Models.SafetyRating.g.cs | 24 +- .../Google.Gemini.Models.Schema.g.cs | 258 +- .../Google.Gemini.Models.Source.g.cs | 50 +- .../Google.Gemini.Models.SpeechConfig.g.cs | 24 +- .../Google.Gemini.Models.Status.g.cs | 24 +- ...Gemini.Models.StreamableHttpTransport.g.cs | 38 +- .../Google.Gemini.Models.ThinkingConfig.g.cs | 24 +- .../Generated/Google.Gemini.Models.Tool.g.cs | 96 +- .../Google.Gemini.Models.ToolCall.g.cs | 24 +- .../Google.Gemini.Models.ToolConfig.g.cs | 22 +- .../Google.Gemini.Models.ToolResponse.g.cs | 24 +- .../Google.Gemini.Models.TunedModel.g.cs | 136 +- ...Google.Gemini.Models.TunedModelSource.g.cs | 24 +- .../Google.Gemini.Models.TuningSnapshot.g.cs | 52 +- .../Google.Gemini.Models.TuningTask.g.cs | 64 +- ...Models.UploadToFileSearchStoreRequest.g.cs | 38 +- .../Google.Gemini.Models.UrlMetadata.g.cs | 24 +- .../Google.Gemini.Models.UsageMetadata.g.cs | 138 +- .../Generated/Google.Gemini.Models.Web.g.cs | 26 +- ...Google.Gemini.Models.WhiteSpaceConfig.g.cs | 24 +- src/libs/Google.Gemini/openapi.json | 9474 ++++++++--------- 141 files changed, 8363 insertions(+), 8363 deletions(-) diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs index df855d32d..fc17fd026 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.AuthTokensCreate.g.cs @@ -425,45 +425,45 @@ partial void ProcessAuthTokensCreateResponseContent( /// /// Creates a token that can be used to constrain the behavior of a BidiGenerateContent session. /// + /// + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. + /// /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// + /// + /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. + /// + /// + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// /// /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. /// /// /// Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future. /// - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. - /// - /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. - /// - /// - /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task AuthTokensCreateAsync( + string? newSessionExpireTime = default, string? fieldMask = default, + string? interactionId = default, + int? uses = default, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, string? expireTime = default, - string? newSessionExpireTime = default, - int? uses = default, - string? interactionId = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.AuthToken { + NewSessionExpireTime = newSessionExpireTime, FieldMask = fieldMask, + InteractionId = interactionId, + Uses = uses, BidiGenerateContentSetup = bidiGenerateContentSetup, ExpireTime = expireTime, - NewSessionExpireTime = newSessionExpireTime, - Uses = uses, - InteractionId = interactionId, }; return await AuthTokensCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs index 49435c458..f8d25bf61 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs @@ -448,21 +448,21 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent( /// /// /// - /// - /// Required. The user-defined name of this batch. + /// + /// Configures the input to the batch request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// Stats about the batch. /// + /// + /// Required. The user-defined name of this batch. + /// /// /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Configures the input to the batch request. - /// /// /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// @@ -472,22 +472,22 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent( public async global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync( string batchesId, string? updateMask = default, - string? displayName = default, + global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, + string? model = default, global::Google.Gemini.EmbedContentBatchStats? batchStats = default, + string? displayName = default, string? priority = default, - string? model = default, - global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, global::Google.Gemini.EmbedContentBatchOutput? output = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.EmbedContentBatch { - DisplayName = displayName, + InputConfig = inputConfig, + Model = model, BatchStats = batchStats, + DisplayName = displayName, Priority = priority, - Model = model, - InputConfig = inputConfig, Output = output, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs index 35344a43c..7277863eb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs @@ -448,23 +448,23 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent( /// /// /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Configures the input to the batch request. + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// - /// - /// Required. The user-defined name of this batch. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// Stats about the batch. /// - /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// + /// Configures the input to the batch request. + /// + /// + /// Required. The user-defined name of this batch. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -472,23 +472,23 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent( public async global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync( string batchesId, string? updateMask = default, + string? priority = default, + global::Google.Gemini.GenerateContentBatchOutput? output = default, string? model = default, + global::Google.Gemini.BatchStats? batchStats = default, global::Google.Gemini.InputConfig? inputConfig = default, - global::Google.Gemini.GenerateContentBatchOutput? output = default, string? displayName = default, - global::Google.Gemini.BatchStats? batchStats = default, - string? priority = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentBatch { + Priority = priority, + Output = output, Model = model, + BatchStats = batchStats, InputConfig = inputConfig, - Output = output, DisplayName = displayName, - BatchStats = batchStats, - Priority = priority, }; return await BatchesUpdateGenerateContentBatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs index f90672328..fb626d493 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs @@ -425,8 +425,8 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Creates CachedContent resource. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -434,8 +434,11 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Metadata on the usage of the cached content. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Input only. New TTL for this resource, input only. /// /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response @@ -449,36 +452,33 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// Input only. New TTL for this resource, input only. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CachedContentsCreateAsync( - string? displayName = default, + global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, + string? ttl = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.ToolConfig? toolConfig = default, string? expireTime = default, string? model = default, - string? ttl = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CachedContent { - DisplayName = displayName, + SystemInstruction = systemInstruction, Contents = contents, UsageMetadata = usageMetadata, - SystemInstruction = systemInstruction, + DisplayName = displayName, + Ttl = ttl, Tools = tools, ToolConfig = toolConfig, ExpireTime = expireTime, Model = model, - Ttl = ttl, }; return await CachedContentsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs index 5c5017814..b51878e04 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs @@ -448,8 +448,8 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -457,8 +457,11 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// Metadata on the usage of the cached content. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Input only. New TTL for this resource, input only. /// /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response @@ -472,38 +475,35 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// Input only. New TTL for this resource, input only. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, - string? displayName = default, + global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, + string? ttl = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.ToolConfig? toolConfig = default, string? expireTime = default, string? model = default, - string? ttl = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CachedContent { - DisplayName = displayName, + SystemInstruction = systemInstruction, Contents = contents, UsageMetadata = usageMetadata, - SystemInstruction = systemInstruction, + DisplayName = displayName, + Ttl = ttl, Tools = tools, ToolConfig = toolConfig, ExpireTime = expireTime, Model = model, - Ttl = ttl, }; return await CachedContentsPatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs index c8ec7f866..6961b2340 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs @@ -438,28 +438,28 @@ partial void ProcessCorporaPermissionsCreateResponseContent( /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync( string corporaId, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { Role = role, - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, }; return await CorporaPermissionsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs index 198dc316a..a64bbbc91 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs @@ -461,12 +461,12 @@ partial void ProcessCorporaPermissionsPatchResponseContent( /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -475,16 +475,16 @@ partial void ProcessCorporaPermissionsPatchResponseContent( string corporaId, string? updateMask = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { Role = role, - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, }; return await CorporaPermissionsPatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs index f327ebff7..652a31f4f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs @@ -438,32 +438,32 @@ partial void ProcessDynamicGenerateContentResponseContent( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -471,30 +471,30 @@ partial void ProcessDynamicGenerateContentResponseContent( public async global::System.Threading.Tasks.Task DynamicGenerateContentAsync( string dynamicId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; return await DynamicGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs index c7ee53d8b..81bcb337b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs @@ -438,32 +438,32 @@ partial void ProcessDynamicStreamGenerateContentResponseContent( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -471,30 +471,30 @@ partial void ProcessDynamicStreamGenerateContentResponseContent( public async global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync( string dynamicId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; return await DynamicStreamGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs index 6255bc944..f1c308680 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs @@ -379,32 +379,32 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -412,30 +412,30 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse( public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync( string dynamicId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; var __enumerable = DynamicStreamGenerateContentAsStreamAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs index 82305be0f..3f58d48e9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs @@ -425,12 +425,12 @@ partial void ProcessEnvironmentsCreateResponseContent( /// /// Creates an environment. /// - /// - /// Network egress mode. - /// /// /// Network egress configuration for the environment. /// + /// + /// Network egress mode. + /// /// /// Sources to be mounted into the environment. /// @@ -438,16 +438,16 @@ partial void ProcessEnvironmentsCreateResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task EnvironmentsCreateAsync( - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::System.Collections.Generic.IList? sources = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CreateEnvironmentRequest { - NetworkMode = networkMode, NetworkAllowlist = networkAllowlist, + NetworkMode = networkMode, Sources = sources, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs index 945fb3d52..6eebaf777 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs @@ -435,31 +435,31 @@ partial void ProcessFileSearchStoresImportFileResponseContent( /// Imports a `File` from File Service to a `FileSearchStore`. /// /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// /// Required. The name of the `File` to import. Example: `files/abc-123` /// /// /// Custom metadata to be associated with the file. /// + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync( string fileSearchStoresId, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? fileName = default, global::System.Collections.Generic.IList? customMetadata = default, + global::Google.Gemini.ChunkingConfig? chunkingConfig = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.ImportFileRequest { - ChunkingConfig = chunkingConfig, FileName = fileName, CustomMetadata = customMetadata, + ChunkingConfig = chunkingConfig, }; return await FileSearchStoresImportFileAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs index 3375da821..e447cdfd3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs @@ -435,36 +435,36 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent( /// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document. /// /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// - /// - /// Custom metadata to be associated with the data. + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// /// /// Optional. Display name of the created document. /// + /// + /// Custom metadata to be associated with the data. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync( string fileSearchStoresId, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? mimeType = default, - global::System.Collections.Generic.IList? customMetadata = default, + global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? displayName = default, + global::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.UploadToFileSearchStoreRequest { - ChunkingConfig = chunkingConfig, MimeType = mimeType, - CustomMetadata = customMetadata, + ChunkingConfig = chunkingConfig, DisplayName = displayName, + CustomMetadata = customMetadata, }; return await MediaUploadToFileSearchStoreAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs index fee650dd1..e1d939a47 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs @@ -435,26 +435,26 @@ partial void ProcessModelsCountTokensResponseContent( /// Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens. /// /// - /// - /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. - /// /// /// Request to generate a completion from the model. /// + /// + /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ModelsCountTokensAsync( string modelsId, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequest? generateContentRequest = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CountTokensRequest { - Contents = contents, GenerateContentRequest = generateContentRequest, + Contents = contents, }; return await ModelsCountTokensAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs index 9181ee76f..c4e0cb916 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs @@ -437,31 +437,31 @@ partial void ProcessModelsEmbedContentResponseContent( /// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding). /// /// + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Configurations for the EmbedContent request. /// - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ModelsEmbedContentAsync( string modelsId, + string? model = default, global::Google.Gemini.Content? content = default, global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, - string? model = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.EmbedContentRequest { + Model = model, Content = content, EmbedContentConfig = embedContentConfig, - Model = model, }; return await ModelsEmbedContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs index 58c980605..a4bc30b6f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs @@ -438,32 +438,32 @@ partial void ProcessModelsGenerateContentResponseContent( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -471,30 +471,30 @@ partial void ProcessModelsGenerateContentResponseContent( public async global::System.Threading.Tasks.Task ModelsGenerateContentAsync( string modelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; return await ModelsGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs index bb49e9d66..4e53796e5 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs @@ -438,32 +438,32 @@ partial void ProcessModelsStreamGenerateContentResponseContent( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -471,30 +471,30 @@ partial void ProcessModelsStreamGenerateContentResponseContent( public async global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync( string modelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; return await ModelsStreamGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs index a6c3419be..722f1029e 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs @@ -379,32 +379,32 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -412,30 +412,30 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse( public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync( string modelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; var __enumerable = ModelsStreamGenerateContentAsStreamAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs index 2d53808c0..7a7dd4f8b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs @@ -438,29 +438,29 @@ partial void ProcessTunedModelsCreateResponseContent( /// Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222 /// /// + /// + /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// /// /// Optional. A short description of this model. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// /// /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. List of project numbers that have read access to the tuned model. + /// + /// Tuning tasks that create tuned models. + /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuned model as a source for training a new model. /// - /// - /// Tuning tasks that create tuned models. - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. List of project numbers that have read access to the tuned model. /// /// /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. @@ -470,28 +470,28 @@ partial void ProcessTunedModelsCreateResponseContent( /// public async global::System.Threading.Tasks.Task TunedModelsCreateAsync( string? tunedModelId = default, + string? displayName = default, float? temperature = default, string? description = default, - string? baseModel = default, float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, global::Google.Gemini.TuningTask? tuningTask = default, - string? displayName = default, + string? baseModel = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, int? topK = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.TunedModel { + DisplayName = displayName, Temperature = temperature, Description = description, - BaseModel = baseModel, TopP = topP, - ReaderProjectNumbers = readerProjectNumbers, - TunedModelSource = tunedModelSource, TuningTask = tuningTask, - DisplayName = displayName, + BaseModel = baseModel, + TunedModelSource = tunedModelSource, + ReaderProjectNumbers = readerProjectNumbers, TopK = topK, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs index a388b1a4b..062aff84b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs @@ -438,32 +438,32 @@ partial void ProcessTunedModelsGenerateContentResponseContent( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -471,30 +471,30 @@ partial void ProcessTunedModelsGenerateContentResponseContent( public async global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync( string tunedModelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; return await TunedModelsGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs index ec5f7e738..a30d6b30a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs @@ -448,29 +448,29 @@ partial void ProcessTunedModelsPatchResponseContent( /// /// /// + /// + /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// /// /// Optional. A short description of this model. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// /// /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. List of project numbers that have read access to the tuned model. + /// + /// Tuning tasks that create tuned models. + /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuned model as a source for training a new model. /// - /// - /// Tuning tasks that create tuned models. - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. List of project numbers that have read access to the tuned model. /// /// /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. @@ -481,28 +481,28 @@ partial void ProcessTunedModelsPatchResponseContent( public async global::System.Threading.Tasks.Task TunedModelsPatchAsync( string tunedModelsId, string? updateMask = default, + string? displayName = default, float? temperature = default, string? description = default, - string? baseModel = default, float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, global::Google.Gemini.TuningTask? tuningTask = default, - string? displayName = default, + string? baseModel = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, int? topK = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.TunedModel { + DisplayName = displayName, Temperature = temperature, Description = description, - BaseModel = baseModel, TopP = topP, - ReaderProjectNumbers = readerProjectNumbers, - TunedModelSource = tunedModelSource, TuningTask = tuningTask, - DisplayName = displayName, + BaseModel = baseModel, + TunedModelSource = tunedModelSource, + ReaderProjectNumbers = readerProjectNumbers, TopK = topK, }; diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs index 984df9bc4..2f74e3cc2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs @@ -438,28 +438,28 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent( /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync( string tunedModelsId, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { Role = role, - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, }; return await TunedModelsPermissionsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs index a61ff9381..d42075448 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs @@ -461,12 +461,12 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent( /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -475,16 +475,16 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent( string permissionsId, string? updateMask = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.Permission { Role = role, - EmailAddress = emailAddress, GranteeType = granteeType, + EmailAddress = emailAddress, }; return await TunedModelsPermissionsPatchAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs index 3e46da600..5150d6f41 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs @@ -438,32 +438,32 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -471,30 +471,30 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent( public async global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync( string tunedModelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; return await TunedModelsStreamGenerateContentAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs index e50b16757..d3881c165 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs @@ -379,32 +379,32 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse( /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -412,30 +412,30 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse( public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync( string tunedModelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, [global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentRequest { SafetySettings = safetySettings, - ToolConfig = toolConfig, + CachedContent = cachedContent, Tools = tools, + ToolConfig = toolConfig, + Model = model, SystemInstruction = systemInstruction, Contents = contents, - ServiceTier = serviceTier, Store = store, GenerationConfig = generationConfig, - Model = model, - CachedContent = cachedContent, + ServiceTier = serviceTier, }; var __enumerable = TunedModelsStreamGenerateContentAsStreamAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs index 9da7c0bad..549217da0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.AuthTokensCreate.g.cs @@ -31,34 +31,34 @@ public partial interface IGeminiClient /// /// Creates a token that can be used to constrain the behavior of a BidiGenerateContent session. /// + /// + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. + /// /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// + /// + /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. + /// + /// + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// /// /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. /// /// /// Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future. /// - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. - /// - /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. - /// - /// - /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task AuthTokensCreateAsync( + string? newSessionExpireTime = default, string? fieldMask = default, + string? interactionId = default, + int? uses = default, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, string? expireTime = default, - string? newSessionExpireTime = default, - int? uses = default, - string? interactionId = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs index 85d791161..5492a6367 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs @@ -41,21 +41,21 @@ public partial interface IGeminiClient /// /// /// - /// - /// Required. The user-defined name of this batch. + /// + /// Configures the input to the batch request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// Stats about the batch. /// + /// + /// Required. The user-defined name of this batch. + /// /// /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Configures the input to the batch request. - /// /// /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// @@ -65,11 +65,11 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync( string batchesId, string? updateMask = default, - string? displayName = default, + global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, + string? model = default, global::Google.Gemini.EmbedContentBatchStats? batchStats = default, + string? displayName = default, string? priority = default, - string? model = default, - global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, global::Google.Gemini.EmbedContentBatchOutput? output = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs index 48da48b49..4e9d7fda8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs @@ -41,23 +41,23 @@ public partial interface IGeminiClient /// /// /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Configures the input to the batch request. + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// - /// - /// Required. The user-defined name of this batch. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// Stats about the batch. /// - /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. + /// + /// Configures the input to the batch request. + /// + /// + /// Required. The user-defined name of this batch. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -65,12 +65,12 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync( string batchesId, string? updateMask = default, + string? priority = default, + global::Google.Gemini.GenerateContentBatchOutput? output = default, string? model = default, + global::Google.Gemini.BatchStats? batchStats = default, global::Google.Gemini.InputConfig? inputConfig = default, - global::Google.Gemini.GenerateContentBatchOutput? output = default, string? displayName = default, - global::Google.Gemini.BatchStats? batchStats = default, - string? priority = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs index c53b24d9d..88cc8d844 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs @@ -31,8 +31,8 @@ public partial interface IGeminiClient /// /// Creates CachedContent resource. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -40,8 +40,11 @@ public partial interface IGeminiClient /// /// Metadata on the usage of the cached content. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Input only. New TTL for this resource, input only. /// /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response @@ -55,22 +58,19 @@ public partial interface IGeminiClient /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// Input only. New TTL for this resource, input only. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CachedContentsCreateAsync( - string? displayName = default, + global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, + string? ttl = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.ToolConfig? toolConfig = default, string? expireTime = default, string? model = default, - string? ttl = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs index 4cdd871a1..441690a56 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs @@ -41,8 +41,8 @@ public partial interface IGeminiClient /// /// /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -50,8 +50,11 @@ public partial interface IGeminiClient /// /// Metadata on the usage of the cached content. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// + /// Input only. New TTL for this resource, input only. /// /// /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response @@ -65,24 +68,21 @@ public partial interface IGeminiClient /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// Input only. New TTL for this resource, input only. - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, - string? displayName = default, + global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, - global::Google.Gemini.Content? systemInstruction = default, + string? displayName = default, + string? ttl = default, global::System.Collections.Generic.IList? tools = default, global::Google.Gemini.ToolConfig? toolConfig = default, string? expireTime = default, string? model = default, - string? ttl = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs index 9fdaa4879..d00a997c8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs @@ -39,20 +39,20 @@ public partial interface IGeminiClient /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task CorporaPermissionsCreateAsync( string corporaId, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs index 52e19f8e1..61d0e8e47 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs @@ -49,12 +49,12 @@ public partial interface IGeminiClient /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -63,8 +63,8 @@ public partial interface IGeminiClient string corporaId, string? updateMask = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs index 11bb9b869..c9a5187cc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs @@ -39,32 +39,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -72,15 +72,15 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task DynamicGenerateContentAsync( string dynamicId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs index a2a84e6c0..d344cce41 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs @@ -39,32 +39,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -72,15 +72,15 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync( string dynamicId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs index 3fa1029b9..2bce476ab 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs @@ -25,32 +25,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -58,15 +58,15 @@ public partial interface IGeminiClient global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync( string dynamicId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs index 1d947e876..7dc8d6dec 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs @@ -31,12 +31,12 @@ public partial interface IGeminiClient /// /// Creates an environment. /// - /// - /// Network egress mode. - /// /// /// Network egress configuration for the environment. /// + /// + /// Network egress mode. + /// /// /// Sources to be mounted into the environment. /// @@ -44,8 +44,8 @@ public partial interface IGeminiClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task EnvironmentsCreateAsync( - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::System.Collections.Generic.IList? sources = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs index 44182be1e..f429f2598 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs @@ -36,23 +36,23 @@ public partial interface IGeminiClient /// Imports a `File` from File Service to a `FileSearchStore`. /// /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// /// Required. The name of the `File` to import. Example: `files/abc-123` /// /// /// Custom metadata to be associated with the file. /// + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task FileSearchStoresImportFileAsync( string fileSearchStoresId, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? fileName = default, global::System.Collections.Generic.IList? customMetadata = default, + global::Google.Gemini.ChunkingConfig? chunkingConfig = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs index 621aa7b61..b7f732670 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs @@ -36,27 +36,27 @@ public partial interface IGeminiClient /// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document. /// /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// - /// - /// Custom metadata to be associated with the data. + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// /// /// Optional. Display name of the created document. /// + /// + /// Custom metadata to be associated with the data. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync( string fileSearchStoresId, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? mimeType = default, - global::System.Collections.Generic.IList? customMetadata = default, + global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? displayName = default, + global::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs index a6d6ed6c6..e386931b0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsCountTokens.g.cs @@ -36,19 +36,19 @@ public partial interface IGeminiClient /// Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens. /// /// - /// - /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. - /// /// /// Request to generate a completion from the model. /// + /// + /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ModelsCountTokensAsync( string modelsId, - global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.GenerateContentRequest? generateContentRequest = default, + global::System.Collections.Generic.IList? contents = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs index a0ce1945b..2f5b194ef 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs @@ -38,23 +38,23 @@ public partial interface IGeminiClient /// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding). /// /// + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Configurations for the EmbedContent request. /// - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` - /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task ModelsEmbedContentAsync( string modelsId, + string? model = default, global::Google.Gemini.Content? content = default, global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, - string? model = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs index 188714ffa..8a8a151b5 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs @@ -39,32 +39,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -72,15 +72,15 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task ModelsGenerateContentAsync( string modelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs index e4225c9f4..cc21cdf8c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs @@ -39,32 +39,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -72,15 +72,15 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync( string modelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs index b218654e1..50cb12cca 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs @@ -25,32 +25,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -58,15 +58,15 @@ public partial interface IGeminiClient global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync( string modelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs index 7fa713b10..04904ddf5 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs @@ -36,29 +36,29 @@ public partial interface IGeminiClient /// Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222 /// /// + /// + /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// /// /// Optional. A short description of this model. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// /// /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. List of project numbers that have read access to the tuned model. + /// + /// Tuning tasks that create tuned models. + /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuned model as a source for training a new model. /// - /// - /// Tuning tasks that create tuned models. - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. List of project numbers that have read access to the tuned model. /// /// /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. @@ -68,14 +68,14 @@ public partial interface IGeminiClient /// global::System.Threading.Tasks.Task TunedModelsCreateAsync( string? tunedModelId = default, + string? displayName = default, float? temperature = default, string? description = default, - string? baseModel = default, float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, global::Google.Gemini.TuningTask? tuningTask = default, - string? displayName = default, + string? baseModel = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, int? topK = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs index 92bec52a4..92d0410f9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs @@ -39,32 +39,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -72,15 +72,15 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync( string tunedModelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs index a54cda887..dfdf77044 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs @@ -41,29 +41,29 @@ public partial interface IGeminiClient /// /// /// + /// + /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// /// /// Optional. A short description of this model. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// /// /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. List of project numbers that have read access to the tuned model. + /// + /// Tuning tasks that create tuned models. + /// + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuned model as a source for training a new model. /// - /// - /// Tuning tasks that create tuned models. - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. List of project numbers that have read access to the tuned model. /// /// /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. @@ -74,14 +74,14 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task TunedModelsPatchAsync( string tunedModelsId, string? updateMask = default, + string? displayName = default, float? temperature = default, string? description = default, - string? baseModel = default, float? topP = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - global::Google.Gemini.TunedModelSource? tunedModelSource = default, global::Google.Gemini.TuningTask? tuningTask = default, - string? displayName = default, + string? baseModel = default, + global::Google.Gemini.TunedModelSource? tunedModelSource = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, int? topK = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs index ac83efb9a..201791e76 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs @@ -39,20 +39,20 @@ public partial interface IGeminiClient /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Threading.Tasks.Task TunedModelsPermissionsCreateAsync( string tunedModelsId, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs index ecc922215..e32f36847 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs @@ -49,12 +49,12 @@ public partial interface IGeminiClient /// /// Required. The role granted by this permission. /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -63,8 +63,8 @@ public partial interface IGeminiClient string permissionsId, string? updateMask = default, global::Google.Gemini.PermissionRole? role = default, - string? emailAddress = default, global::Google.Gemini.PermissionGranteeType? granteeType = default, + string? emailAddress = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs index 613021129..7d7cb8766 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs @@ -39,32 +39,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -72,15 +72,15 @@ public partial interface IGeminiClient global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync( string tunedModelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs index e7ec117e9..f2ee4b275 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs @@ -25,32 +25,32 @@ public partial interface IGeminiClient /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -58,15 +58,15 @@ public partial interface IGeminiClient global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync( string tunedModelsId, global::System.Collections.Generic.IList? safetySettings = default, - global::Google.Gemini.ToolConfig? toolConfig = default, + string? cachedContent = default, global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + string? model = default, global::Google.Gemini.Content? systemInstruction = default, global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - string? model = default, - string? cachedContent = default, + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs index c1996f4d9..2c33997c8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs @@ -13,546 +13,546 @@ namespace Google.Gemini DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter), typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter), typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter), typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.JsonSerializerContextTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchEntryPoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkStringList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningTask))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Hyperparameters))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Dataset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningSnapshot))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContentEmbedding))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolutionLevel), TypeInfoPropertyName = "V1mainMediaResolutionLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCount))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequests))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.File))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Model))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponses))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Blob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.McpServer))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StreamableHttpTransport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Content))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SessionResumptionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Tool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearchRetrieval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleMaps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingAttribution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AttributionSourceId))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Content))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchGenerateContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExamples))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExample))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRule))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputEmbedContentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequests))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.HistoryConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContextWindowCompressionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfigMode), TypeInfoPropertyName = "FunctionCallingConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRating))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigActivityHandling), TypeInfoPropertyName = "RealtimeInputConfigActivityHandling2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigTurnCoverage), TypeInfoPropertyName = "RealtimeInputConfigTurnCoverage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponses))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Document))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DocumentState), TypeInfoPropertyName = "DocumentState2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatDelivery), TypeInfoPropertyName = "ImageResponseFormatDelivery2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatMimeType), TypeInfoPropertyName = "ImageResponseFormatMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatAspectRatio), TypeInfoPropertyName = "ImageResponseFormatAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatDelivery), TypeInfoPropertyName = "ImageResponseFormatDelivery2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatImageSize), TypeInfoPropertyName = "ImageResponseFormatImageSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningTask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Dataset))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Hyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Permission))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionRole), TypeInfoPropertyName = "PermissionRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionGranteeType), TypeInfoPropertyName = "PermissionGranteeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Interval))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySetting))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImportFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ChunkingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListEnvironmentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Environment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TranslationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageHints))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfigTaskType), TypeInfoPropertyName = "EmbedContentConfigTaskType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseScheduling), TypeInfoPropertyName = "FunctionResponseScheduling2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponsePart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.MultiSpeakerVoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeakerVoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadToFileSearchStoreRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContextMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StringList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCount))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequestServiceTier), TypeInfoPropertyName = "GenerateContentRequestServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomLongRunningOperation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Web))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SemanticRetrieverChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRating))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingCategory), TypeInfoPropertyName = "SafetyRatingCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingProbability), TypeInfoPropertyName = "SafetyRatingProbability2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListCorporaResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Corpus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionEndOfSpeechSensitivity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionStartOfSpeechSensitivity2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageAuto))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TopCandidates))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Image))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievedContext))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResultCandidate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SessionResumptionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigTurnCoverage), TypeInfoPropertyName = "RealtimeInputConfigTurnCoverage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfigActivityHandling), TypeInfoPropertyName = "RealtimeInputConfigActivityHandling2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.File))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Candidate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CandidateFinishReason), TypeInfoPropertyName = "CandidateFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageSearch))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Empty))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListGeneratedFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievedContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Image))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ReviewSnippet))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListCachedContentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedback))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Source))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkEgressAllowlist))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkMode), TypeInfoPropertyName = "EnvironmentNetworkMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchEmbedContentsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchTypes))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeakerVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExample))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatMimeType), TypeInfoPropertyName = "AudioResponseFormatMimeType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatDelivery), TypeInfoPropertyName = "AudioResponseFormatDelivery2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Permission))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionRole), TypeInfoPropertyName = "PermissionRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionGranteeType), TypeInfoPropertyName = "PermissionGranteeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseDisabledSafetyPolicie), TypeInfoPropertyName = "ComputerUseDisabledSafetyPolicie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoFileMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormatMimeType), TypeInfoPropertyName = "TextResponseFormatMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatMimeType), TypeInfoPropertyName = "AudioResponseFormatMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListModelsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Model))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolutionLevel), TypeInfoPropertyName = "V1mainMediaResolutionLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AuthToken))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LatLng))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListPermissionsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WhiteSpaceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AsyncBatchEmbedContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfigMode), TypeInfoPropertyName = "DynamicRetrievalConfigMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySetting))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequestServiceTier), TypeInfoPropertyName = "GenerateContentRequestServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContextWindowCompressionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SlidingWindow))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponses))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SchemaType), TypeInfoPropertyName = "SchemaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkCustomMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkStringList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSource), TypeInfoPropertyName = "FileSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileState), TypeInfoPropertyName = "FileState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ResponseFormatConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PlaceAnswerSources))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequests))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Part))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadataUrlRetrievalStatus), TypeInfoPropertyName = "UrlMetadataUrlRetrievalStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearchStore))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCode))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Blob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StringList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearchRetrieval))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleMaps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.McpServer))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContextMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSearchStore))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TranslationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Candidate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.MultiSpeakerVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkCustomMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFileState), TypeInfoPropertyName = "GeneratedFileState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListOperationsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Operation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingCategory), TypeInfoPropertyName = "SafetySettingCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequests))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ResponseFormatConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormat))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModel))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelState), TypeInfoPropertyName = "TunedModelState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputEmbedContentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchStats))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchState), TypeInfoPropertyName = "EmbedContentBatchState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequestTaskType), TypeInfoPropertyName = "EmbedContentRequestTaskType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Interval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListDocumentsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Document))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Operation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListOperationsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFileSearchStoresResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListTunedModelsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContentEmbedding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigResponseModalitie), TypeInfoPropertyName = "GenerationConfigResponseModalitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Part))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GeneratedFileState), TypeInfoPropertyName = "GeneratedFileState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFileSearchStoresResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.HistoryConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PlaceAnswerSources))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ReviewSnippet))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfigMode), TypeInfoPropertyName = "DynamicRetrievalConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponsePart))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListEnvironmentsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Environment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WhiteSpaceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SlidingWindow))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageHints))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SemanticRetrieverChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoFileMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListTunedModelsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchEmbedContentsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkEgressAllowlist))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequestNetworkMode), TypeInfoPropertyName = "CreateEnvironmentRequestNetworkMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Source))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchGenerateContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListCachedContentsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUseDisabledSafetyPolicie), TypeInfoPropertyName = "ComputerUseDisabledSafetyPolicie2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SchemaType), TypeInfoPropertyName = "SchemaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TopCandidates))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchState), TypeInfoPropertyName = "GenerateContentBatchState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingAttribution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AttributionSourceId))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ChunkingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseScheduling), TypeInfoPropertyName = "FunctionResponseScheduling2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentStatus), TypeInfoPropertyName = "EnvironmentStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkMode), TypeInfoPropertyName = "EnvironmentNetworkMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImportFileRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRule))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionStartOfSpeechSensitivity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity), TypeInfoPropertyName = "AutomaticActivityDetectionEndOfSpeechSensitivity2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LatLng))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DocumentState), TypeInfoPropertyName = "DocumentState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingCategory), TypeInfoPropertyName = "SafetySettingCategory2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfigMode), TypeInfoPropertyName = "FunctionCallingConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StreamableHttpTransport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageAuto))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadToFileSearchStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileState), TypeInfoPropertyName = "FileState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileSource), TypeInfoPropertyName = "FileSource2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingCategory), TypeInfoPropertyName = "SafetyRatingCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetyRatingProbability), TypeInfoPropertyName = "SafetyRatingProbability2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedResponses))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlMetadataUrlRetrievalStatus), TypeInfoPropertyName = "UrlMetadataUrlRetrievalStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListCorporaResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Corpus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AuthToken))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningExamples))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFilesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CustomLongRunningOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AsyncBatchEmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentRequestTaskType), TypeInfoPropertyName = "EmbedContentRequestTaskType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CandidateFinishReason), TypeInfoPropertyName = "CandidateFinishReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListGeneratedFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfigTaskType), TypeInfoPropertyName = "EmbedContentConfigTaskType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListDocumentsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchEmbedContentsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchEntryPoint))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormatMimeType), TypeInfoPropertyName = "TextResponseFormatMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListPermissionsResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs index f7f066891..625843155 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs @@ -28,1152 +28,1152 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Google.Gemini.SearchEntryPoint? Type0 { get; set; } + public global::Google.Gemini.GroundingChunkStringList? Type0 { get; set; } /// /// /// - public string? Type1 { get; set; } + public global::System.Collections.Generic.IList? Type1 { get; set; } /// /// /// - public byte[]? Type2 { get; set; } + public string? Type2 { get; set; } /// /// /// - public global::Google.Gemini.TuningSnapshot? Type3 { get; set; } + public global::Google.Gemini.FunctionDeclaration? Type3 { get; set; } /// /// /// - public int? Type4 { get; set; } + public global::Google.Gemini.Schema? Type4 { get; set; } /// /// /// - public float? Type5 { get; set; } + public global::Google.Gemini.FunctionDeclarationBehavior? Type5 { get; set; } /// /// /// - public global::Google.Gemini.ThinkingConfig? Type6 { get; set; } + public object? Type6 { get; set; } /// /// /// - public bool? Type7 { get; set; } + public global::Google.Gemini.TuningTask? Type7 { get; set; } /// /// /// - public global::Google.Gemini.ThinkingConfigThinkingLevel? Type8 { get; set; } + public global::Google.Gemini.Hyperparameters? Type8 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatchOutput? Type9 { get; set; } + public global::Google.Gemini.Dataset? Type9 { get; set; } /// /// /// - public global::Google.Gemini.InlinedResponses? Type10 { get; set; } + public global::System.Collections.Generic.IList? Type10 { get; set; } /// /// /// - public global::Google.Gemini.CitationSource? Type11 { get; set; } + public global::Google.Gemini.TuningSnapshot? Type11 { get; set; } /// /// /// - public global::Google.Gemini.Status? Type12 { get; set; } + public global::Google.Gemini.EmbedContentResponse? Type12 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type13 { get; set; } + public global::Google.Gemini.ContentEmbedding? Type13 { get; set; } /// /// /// - public object? Type14 { get; set; } + public global::Google.Gemini.EmbeddingUsageMetadata? Type14 { get; set; } /// /// /// - public global::Google.Gemini.Blob? Type15 { get; set; } + public global::Google.Gemini.WebSearch? Type15 { get; set; } /// /// /// - public global::Google.Gemini.McpServer? Type16 { get; set; } + public global::Google.Gemini.ModelStatus? Type16 { get; set; } /// /// /// - public global::Google.Gemini.StreamableHttpTransport? Type17 { get; set; } + public global::Google.Gemini.ModelStatusModelStage? Type17 { get; set; } /// /// /// - public global::Google.Gemini.Tool? Type18 { get; set; } + public global::Google.Gemini.V1mainMediaResolution? Type18 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecution? Type19 { get; set; } + public global::Google.Gemini.V1mainMediaResolutionLevel? Type19 { get; set; } /// /// /// - public global::Google.Gemini.GoogleSearch? Type20 { get; set; } + public global::Google.Gemini.UsageMetadata? Type20 { get; set; } /// /// /// - public global::Google.Gemini.GoogleSearchRetrieval? Type21 { get; set; } + public global::System.Collections.Generic.IList? Type21 { get; set; } /// /// /// - public global::Google.Gemini.GoogleMaps? Type22 { get; set; } + public global::Google.Gemini.ModalityTokenCount? Type22 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type23 { get; set; } + public int? Type23 { get; set; } /// /// /// - public global::Google.Gemini.FunctionDeclaration? Type24 { get; set; } + public global::Google.Gemini.UsageMetadataServiceTier? Type24 { get; set; } /// /// /// - public global::Google.Gemini.UrlContext? Type25 { get; set; } + public global::Google.Gemini.InlinedRequests? Type25 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUse? Type26 { get; set; } + public global::System.Collections.Generic.IList? Type26 { get; set; } /// /// /// - public global::Google.Gemini.FileSearch? Type27 { get; set; } + public global::Google.Gemini.InlinedRequest? Type27 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type28 { get; set; } + public global::Google.Gemini.UrlContext? Type28 { get; set; } /// /// /// - public global::Google.Gemini.GroundingAttribution? Type29 { get; set; } + public global::Google.Gemini.RegisterFilesResponse? Type29 { get; set; } /// /// /// - public global::Google.Gemini.AttributionSourceId? Type30 { get; set; } + public global::System.Collections.Generic.IList? Type30 { get; set; } /// /// /// - public global::Google.Gemini.Content? Type31 { get; set; } + public global::Google.Gemini.File? Type31 { get; set; } /// /// /// - public global::Google.Gemini.BatchGenerateContentRequest? Type32 { get; set; } + public global::Google.Gemini.GroundingPassageId? Type32 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatch? Type33 { get; set; } + public global::Google.Gemini.Model? Type33 { get; set; } /// /// /// - public global::Google.Gemini.TuningExamples? Type34 { get; set; } + public float? Type34 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type35 { get; set; } + public bool? Type35 { get; set; } /// /// /// - public global::Google.Gemini.TuningExample? Type36 { get; set; } + public global::Google.Gemini.BidiGenerateContentSetup? Type36 { get; set; } /// /// /// - public global::Google.Gemini.EgressRule? Type37 { get; set; } + public global::Google.Gemini.Content? Type37 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type38 { get; set; } + public global::Google.Gemini.GenerationConfig? Type38 { get; set; } /// /// /// - public global::Google.Gemini.InputEmbedContentConfig? Type39 { get; set; } + public global::Google.Gemini.SessionResumptionConfig? Type39 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentRequests? Type40 { get; set; } + public global::System.Collections.Generic.IList? Type40 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormat? Type41 { get; set; } + public global::Google.Gemini.Tool? Type41 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatMimeType? Type42 { get; set; } + public global::Google.Gemini.AudioTranscriptionConfig? Type42 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatAspectRatio? Type43 { get; set; } + public global::Google.Gemini.HistoryConfig? Type43 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatDelivery? Type44 { get; set; } + public global::Google.Gemini.RealtimeInputConfig? Type44 { get; set; } /// /// /// - public global::Google.Gemini.ImageResponseFormatImageSize? Type45 { get; set; } + public global::Google.Gemini.ContextWindowCompressionConfig? Type45 { get; set; } /// /// /// - public global::Google.Gemini.GroundingPassageId? Type46 { get; set; } + public global::Google.Gemini.FunctionCallingConfig? Type46 { get; set; } /// /// /// - public global::Google.Gemini.TuningTask? Type47 { get; set; } + public global::Google.Gemini.FunctionCallingConfigMode? Type47 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type48 { get; set; } + public global::Google.Gemini.PromptFeedback? Type48 { get; set; } /// /// /// - public global::Google.Gemini.Dataset? Type49 { get; set; } + public global::Google.Gemini.PromptFeedbackBlockReason? Type49 { get; set; } /// /// /// - public global::Google.Gemini.Hyperparameters? Type50 { get; set; } + public global::System.Collections.Generic.IList? Type50 { get; set; } /// /// /// - public global::Google.Gemini.CountTokensRequest? Type51 { get; set; } + public global::Google.Gemini.SafetyRating? Type51 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type52 { get; set; } + public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type52 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentRequest? Type53 { get; set; } + public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type53 { get; set; } /// /// /// - public global::Google.Gemini.RetrievalMetadata? Type54 { get; set; } + public global::Google.Gemini.AutomaticActivityDetection? Type54 { get; set; } /// /// /// - public global::Google.Gemini.CachedContent? Type55 { get; set; } + public global::Google.Gemini.EmbedContentBatchOutput? Type55 { get; set; } /// /// /// - public global::Google.Gemini.CachedContentUsageMetadata? Type56 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponses? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::Google.Gemini.Document? Type57 { get; set; } /// /// /// - public global::Google.Gemini.ToolConfig? Type58 { get; set; } + public global::System.Collections.Generic.IList? Type58 { get; set; } /// /// /// - public global::Google.Gemini.FileData? Type59 { get; set; } + public global::Google.Gemini.CustomMetadata? Type59 { get; set; } /// /// /// - public global::Google.Gemini.ImportFileRequest? Type60 { get; set; } + public global::Google.Gemini.DocumentState? Type60 { get; set; } /// /// /// - public global::Google.Gemini.ChunkingConfig? Type61 { get; set; } + public global::Google.Gemini.ImageResponseFormat? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::Google.Gemini.ImageResponseFormatDelivery? Type62 { get; set; } /// /// /// - public global::Google.Gemini.CustomMetadata? Type63 { get; set; } + public global::Google.Gemini.ImageResponseFormatMimeType? Type63 { get; set; } /// /// /// - public global::Google.Gemini.ListEnvironmentsResponse? Type64 { get; set; } + public global::Google.Gemini.ImageResponseFormatAspectRatio? Type64 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type65 { get; set; } + public global::Google.Gemini.ImageResponseFormatImageSize? Type65 { get; set; } /// /// /// - public global::Google.Gemini.Environment? Type66 { get; set; } + public global::Google.Gemini.Permission? Type66 { get; set; } /// /// /// - public global::Google.Gemini.TranslationConfig? Type67 { get; set; } + public global::Google.Gemini.PermissionRole? Type67 { get; set; } /// /// /// - public global::Google.Gemini.LanguageHints? Type68 { get; set; } + public global::Google.Gemini.PermissionGranteeType? Type68 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type69 { get; set; } + public global::Google.Gemini.Interval? Type69 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentConfig? Type70 { get; set; } + public global::Google.Gemini.GenerateContentRequest? Type70 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentConfigTaskType? Type71 { get; set; } + public global::System.Collections.Generic.IList? Type71 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponse? Type72 { get; set; } + public global::Google.Gemini.SafetySetting? Type72 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponseScheduling? Type73 { get; set; } + public global::Google.Gemini.ToolConfig? Type73 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type74 { get; set; } + public global::System.Collections.Generic.IList? Type74 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponsePart? Type75 { get; set; } + public global::Google.Gemini.GenerateContentRequestServiceTier? Type75 { get; set; } /// /// /// - public global::Google.Gemini.MultiSpeakerVoiceConfig? Type76 { get; set; } + public global::Google.Gemini.CustomLongRunningOperation? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public global::Google.Gemini.Status? Type77 { get; set; } /// /// /// - public global::Google.Gemini.SpeakerVoiceConfig? Type78 { get; set; } + public global::Google.Gemini.GroundingChunk? Type78 { get; set; } /// /// /// - public global::Google.Gemini.ImageSearch? Type79 { get; set; } + public global::Google.Gemini.Maps? Type79 { get; set; } /// /// /// - public global::Google.Gemini.ToolCall? Type80 { get; set; } + public global::Google.Gemini.Web? Type80 { get; set; } /// /// /// - public global::Google.Gemini.ToolCallToolType? Type81 { get; set; } + public global::Google.Gemini.Image? Type81 { get; set; } /// /// /// - public global::Google.Gemini.UploadToFileSearchStoreRequest? Type82 { get; set; } + public global::Google.Gemini.RetrievedContext? Type82 { get; set; } /// /// /// - public global::Google.Gemini.UrlContextMetadata? Type83 { get; set; } + public global::Google.Gemini.LogprobsResultCandidate? Type83 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type84 { get; set; } + public global::Google.Gemini.ImageSearch? Type84 { get; set; } /// /// /// - public global::Google.Gemini.UrlMetadata? Type85 { get; set; } + public global::Google.Gemini.Empty? Type85 { get; set; } /// /// /// - public global::Google.Gemini.TransferOwnershipRequest? Type86 { get; set; } + public global::Google.Gemini.SearchTypes? Type86 { get; set; } /// /// /// - public global::Google.Gemini.StringList? Type87 { get; set; } + public global::Google.Gemini.BatchStats? Type87 { get; set; } /// /// /// - public global::Google.Gemini.InlinedRequest? Type88 { get; set; } + public global::Google.Gemini.SpeakerVoiceConfig? Type88 { get; set; } /// /// /// - public global::Google.Gemini.CitationMetadata? Type89 { get; set; } + public global::Google.Gemini.VoiceConfig? Type89 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type90 { get; set; } + public global::Google.Gemini.TuningExample? Type90 { get; set; } /// /// /// - public global::Google.Gemini.EmbeddingUsageMetadata? Type91 { get; set; } + public global::Google.Gemini.PrebuiltVoiceConfig? Type91 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type92 { get; set; } + public global::Google.Gemini.AudioResponseFormat? Type92 { get; set; } /// /// /// - public global::Google.Gemini.ModalityTokenCount? Type93 { get; set; } + public global::Google.Gemini.AudioResponseFormatDelivery? Type93 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchStats? Type94 { get; set; } + public global::Google.Gemini.AudioResponseFormatMimeType? Type94 { get; set; } /// /// /// - public global::Google.Gemini.Web? Type95 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type95 { get; set; } /// /// /// - public global::Google.Gemini.VoiceConfig? Type96 { get; set; } + public global::Google.Gemini.ListModelsResponse? Type96 { get; set; } /// /// /// - public global::Google.Gemini.PrebuiltVoiceConfig? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::Google.Gemini.SemanticRetrieverChunk? Type98 { get; set; } + public global::Google.Gemini.Part? Type98 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRating? Type99 { get; set; } + public global::Google.Gemini.ToolResponse? Type99 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRatingCategory? Type100 { get; set; } + public global::Google.Gemini.ToolCall? Type100 { get; set; } /// /// /// - public global::Google.Gemini.SafetyRatingProbability? Type101 { get; set; } + public global::Google.Gemini.FileData? Type101 { get; set; } /// /// /// - public global::Google.Gemini.ListCorporaResponse? Type102 { get; set; } + public byte[]? Type102 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type103 { get; set; } + public global::Google.Gemini.VideoMetadata? Type103 { get; set; } /// /// /// - public global::Google.Gemini.Corpus? Type104 { get; set; } + public global::Google.Gemini.FunctionResponse? Type104 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetection? Type105 { get; set; } + public global::Google.Gemini.FunctionCall? Type105 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type106 { get; set; } + public global::Google.Gemini.ExecutableCode? Type106 { get; set; } /// /// /// - public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type107 { get; set; } + public global::Google.Gemini.Blob? Type107 { get; set; } /// /// /// - public global::Google.Gemini.AudioTranscriptionConfig? Type108 { get; set; } + public global::Google.Gemini.CodeExecutionResult? Type108 { get; set; } /// /// /// - public global::Google.Gemini.LanguageAuto? Type109 { get; set; } + public global::Google.Gemini.StringList? Type109 { get; set; } /// /// /// - public global::Google.Gemini.LogprobsResult? Type110 { get; set; } + public global::Google.Gemini.GoogleSearchRetrieval? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::Google.Gemini.GoogleMaps? Type111 { get; set; } /// /// /// - public global::Google.Gemini.TopCandidates? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::Google.Gemini.McpServer? Type113 { get; set; } /// /// /// - public global::Google.Gemini.LogprobsResultCandidate? Type114 { get; set; } + public global::System.Collections.Generic.IList? Type114 { get; set; } /// /// /// - public global::Google.Gemini.SessionResumptionConfig? Type115 { get; set; } + public global::Google.Gemini.FileSearch? Type115 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfig? Type116 { get; set; } + public global::Google.Gemini.GoogleSearch? Type116 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type117 { get; set; } + public global::Google.Gemini.CodeExecution? Type117 { get; set; } /// /// /// - public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type118 { get; set; } + public global::Google.Gemini.ComputerUse? Type118 { get; set; } /// /// /// - public global::Google.Gemini.ModalityTokenCountModality? Type119 { get; set; } + public global::Google.Gemini.UrlContextMetadata? Type119 { get; set; } /// /// /// - public global::Google.Gemini.CreateFileResponse? Type120 { get; set; } + public global::System.Collections.Generic.IList? Type120 { get; set; } /// /// /// - public global::Google.Gemini.File? Type121 { get; set; } + public global::Google.Gemini.UrlMetadata? Type121 { get; set; } /// /// /// - public global::Google.Gemini.Candidate? Type122 { get; set; } + public global::System.Collections.Generic.IList? Type122 { get; set; } /// /// /// - public double? Type123 { get; set; } + public global::System.Collections.Generic.IList? Type123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type124 { get; set; } + public global::Google.Gemini.FileSearchStore? Type124 { get; set; } /// /// /// - public global::Google.Gemini.GroundingMetadata? Type125 { get; set; } + public global::Google.Gemini.TranslationConfig? Type125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type126 { get; set; } + public global::Google.Gemini.GenerateContentResponse? Type126 { get; set; } /// /// /// - public global::Google.Gemini.CandidateFinishReason? Type127 { get; set; } + public global::System.Collections.Generic.IList? Type127 { get; set; } /// /// /// - public global::Google.Gemini.Empty? Type128 { get; set; } + public global::Google.Gemini.Candidate? Type128 { get; set; } /// /// /// - public global::Google.Gemini.ImageConfig? Type129 { get; set; } + public global::Google.Gemini.SpeechConfig? Type129 { get; set; } /// /// /// - public global::Google.Gemini.ListGeneratedFilesResponse? Type130 { get; set; } + public global::Google.Gemini.MultiSpeakerVoiceConfig? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::Google.Gemini.GroundingChunkCustomMetadata? Type131 { get; set; } /// /// /// - public global::Google.Gemini.GeneratedFile? Type132 { get; set; } + public global::Google.Gemini.CachedContentUsageMetadata? Type132 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunk? Type133 { get; set; } + public global::Google.Gemini.GeneratedFile? Type133 { get; set; } /// /// /// - public global::Google.Gemini.RetrievedContext? Type134 { get; set; } + public global::Google.Gemini.GeneratedFileState? Type134 { get; set; } /// /// /// - public global::Google.Gemini.Image? Type135 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponse? Type135 { get; set; } /// /// /// - public global::Google.Gemini.Maps? Type136 { get; set; } + public global::Google.Gemini.ListOperationsResponse? Type136 { get; set; } /// /// /// - public global::Google.Gemini.ReviewSnippet? Type137 { get; set; } + public global::System.Collections.Generic.IList? Type137 { get; set; } /// /// /// - public global::Google.Gemini.ListCachedContentsResponse? Type138 { get; set; } + public global::Google.Gemini.Operation? Type138 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type139 { get; set; } + public global::Google.Gemini.RetrievalConfig? Type139 { get; set; } /// /// /// - public global::Google.Gemini.PromptFeedback? Type140 { get; set; } + public global::Google.Gemini.CodeExecutionResultOutcome? Type140 { get; set; } /// /// /// - public global::Google.Gemini.PromptFeedbackBlockReason? Type141 { get; set; } + public global::Google.Gemini.SafetySettingCategory? Type141 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type142 { get; set; } + public global::Google.Gemini.SafetySettingThreshold? Type142 { get; set; } /// /// /// - public global::Google.Gemini.Source? Type143 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequests? Type143 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type144 { get; set; } + public global::System.Collections.Generic.IList? Type144 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentStatus? Type145 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequest? Type145 { get; set; } /// /// /// - public global::Google.Gemini.EnvironmentNetworkMode? Type146 { get; set; } + public global::Google.Gemini.ResponseFormatConfig? Type146 { get; set; } /// /// /// - public global::Google.Gemini.BatchEmbedContentsRequest? Type147 { get; set; } + public global::Google.Gemini.TextResponseFormat? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::Google.Gemini.TunedModel? Type148 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentRequest? Type149 { get; set; } + public global::Google.Gemini.TunedModelState? Type149 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecutionResult? Type150 { get; set; } + public global::Google.Gemini.TunedModelSource? Type150 { get; set; } /// /// /// - public global::Google.Gemini.CodeExecutionResultOutcome? Type151 { get; set; } + public global::Google.Gemini.EmbedContentBatch? Type151 { get; set; } /// /// /// - public global::Google.Gemini.InlinedResponse? Type152 { get; set; } + public global::Google.Gemini.InputEmbedContentConfig? Type152 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentResponse? Type153 { get; set; } + public global::Google.Gemini.EmbedContentBatchStats? Type153 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormat? Type154 { get; set; } + public global::Google.Gemini.EmbedContentBatchState? Type154 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormatMimeType? Type155 { get; set; } + public global::Google.Gemini.InlinedResponse? Type155 { get; set; } /// /// /// - public global::Google.Gemini.AudioResponseFormatDelivery? Type156 { get; set; } + public global::Google.Gemini.CountTokensResponse? Type156 { get; set; } /// /// /// - public global::Google.Gemini.Permission? Type157 { get; set; } + public global::Google.Gemini.ListFileSearchStoresResponse? Type157 { get; set; } /// /// /// - public global::Google.Gemini.PermissionRole? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::Google.Gemini.PermissionGranteeType? Type159 { get; set; } + public global::Google.Gemini.RegisterFilesRequest? Type159 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type160 { get; set; } + public global::Google.Gemini.GenerationConfigMediaResolution? Type160 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type161 { get; set; } + public global::System.Collections.Generic.IList? Type161 { get; set; } /// /// /// - public global::Google.Gemini.ComputerUseEnvironment? Type162 { get; set; } + public global::Google.Gemini.GenerationConfigResponseModalitie? Type162 { get; set; } /// /// /// - public global::Google.Gemini.VideoFileMetadata? Type163 { get; set; } + public global::Google.Gemini.ThinkingConfig? Type163 { get; set; } /// /// /// - public global::Google.Gemini.TextResponseFormat? Type164 { get; set; } + public global::Google.Gemini.ImageConfig? Type164 { get; set; } /// /// /// - public global::Google.Gemini.TextResponseFormatMimeType? Type165 { get; set; } + public global::Google.Gemini.PlaceAnswerSources? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::System.Collections.Generic.IList? Type166 { get; set; } /// /// /// - public global::Google.Gemini.ModelStatus? Type167 { get; set; } + public global::Google.Gemini.ReviewSnippet? Type167 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type168 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfig? Type168 { get; set; } /// /// /// - public global::Google.Gemini.UsageMetadata? Type169 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfigMode? Type169 { get; set; } /// /// /// - public global::Google.Gemini.ListModelsResponse? Type170 { get; set; } + public global::Google.Gemini.FunctionResponsePart? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::Google.Gemini.FunctionResponseBlob? Type171 { get; set; } /// /// /// - public global::Google.Gemini.Model? Type172 { get; set; } + public global::Google.Gemini.ListEnvironmentsResponse? Type172 { get; set; } /// /// /// - public global::Google.Gemini.V1mainMediaResolution? Type173 { get; set; } + public global::System.Collections.Generic.IList? Type173 { get; set; } /// /// /// - public global::Google.Gemini.V1mainMediaResolutionLevel? Type174 { get; set; } + public global::Google.Gemini.Environment? Type174 { get; set; } /// /// /// - public global::Google.Gemini.AuthToken? Type175 { get; set; } + public global::Google.Gemini.WhiteSpaceConfig? Type175 { get; set; } /// /// /// - public global::Google.Gemini.BidiGenerateContentSetup? Type176 { get; set; } + public global::Google.Gemini.SlidingWindow? Type176 { get; set; } /// /// /// - public global::Google.Gemini.RetrievalConfig? Type177 { get; set; } + public global::Google.Gemini.CachedContent? Type177 { get; set; } /// /// /// - public global::Google.Gemini.LatLng? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// /// /// - public global::Google.Gemini.ListPermissionsResponse? Type179 { get; set; } + public global::Google.Gemini.LanguageHints? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type180 { get; set; } + public global::Google.Gemini.CitationMetadata? Type180 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentResponse? Type181 { get; set; } + public global::System.Collections.Generic.IList? Type181 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentResponse? Type182 { get; set; } + public global::Google.Gemini.CitationSource? Type182 { get; set; } /// /// /// - public global::Google.Gemini.WhiteSpaceConfig? Type183 { get; set; } + public global::Google.Gemini.SemanticRetrieverChunk? Type183 { get; set; } /// /// /// - public global::Google.Gemini.CountTokensResponse? Type184 { get; set; } + public global::Google.Gemini.VideoFileMetadata? Type184 { get; set; } /// /// /// - public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatch? Type186 { get; set; } + public global::Google.Gemini.ListTunedModelsResponse? Type186 { get; set; } /// /// /// - public global::Google.Gemini.SpeechConfig? Type187 { get; set; } + public global::System.Collections.Generic.IList? Type187 { get; set; } /// /// /// - public global::Google.Gemini.DynamicRetrievalConfig? Type188 { get; set; } + public global::Google.Gemini.TransferOwnershipRequest? Type188 { get; set; } /// /// /// - public global::Google.Gemini.DynamicRetrievalConfigMode? Type189 { get; set; } + public global::Google.Gemini.BatchEmbedContentsResponse? Type189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type190 { get; set; } + public global::System.Collections.Generic.IList? Type190 { get; set; } /// /// /// - public global::Google.Gemini.SafetySetting? Type191 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequest? Type191 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentRequestServiceTier? Type192 { get; set; } + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type192 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfig? Type193 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type193 { get; set; } /// /// /// - public global::Google.Gemini.ContextWindowCompressionConfig? Type194 { get; set; } + public global::System.Collections.Generic.IList? Type194 { get; set; } /// /// /// - public global::Google.Gemini.SlidingWindow? Type195 { get; set; } + public global::Google.Gemini.Source? Type195 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentResponses? Type196 { get; set; } + public global::Google.Gemini.SourceType? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::Google.Gemini.BatchGenerateContentRequest? Type197 { get; set; } /// /// /// - public global::Google.Gemini.Schema? Type198 { get; set; } + public global::Google.Gemini.GenerateContentBatch? Type198 { get; set; } /// /// /// - public global::Google.Gemini.SchemaType? Type199 { get; set; } + public global::Google.Gemini.InputConfig? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::Google.Gemini.ListCachedContentsResponse? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunkCustomMetadata? Type202 { get; set; } + public global::Google.Gemini.CreateFileRequest? Type202 { get; set; } /// /// /// - public global::Google.Gemini.GroundingChunkStringList? Type203 { get; set; } + public global::Google.Gemini.ComputerUseEnvironment? Type203 { get; set; } /// /// /// - public global::Google.Gemini.FileSource? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type204 { get; set; } /// /// /// - public global::Google.Gemini.FileState? Type205 { get; set; } + public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type205 { get; set; } /// /// /// - public global::Google.Gemini.RegisterFilesResponse? Type206 { get; set; } + public global::System.Collections.Generic.Dictionary? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::Google.Gemini.ResponseFormatConfig? Type208 { get; set; } + public global::Google.Gemini.SchemaType? Type208 { get; set; } /// /// /// - public global::Google.Gemini.PlaceAnswerSources? Type209 { get; set; } + public double? Type209 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::Google.Gemini.TransferOwnershipResponse? Type210 { get; set; } /// /// /// - public global::Google.Gemini.InlinedRequests? Type211 { get; set; } + public global::Google.Gemini.LogprobsResult? Type211 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type212 { get; set; } + public global::System.Collections.Generic.IList? Type212 { get; set; } /// /// /// - public global::Google.Gemini.TunedModelSource? Type213 { get; set; } + public global::Google.Gemini.TopCandidates? Type213 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchOutput? Type214 { get; set; } + public global::System.Collections.Generic.IList? Type214 { get; set; } /// /// /// - public global::Google.Gemini.ModelStatusModelStage? Type215 { get; set; } + public global::Google.Gemini.GenerateContentBatchOutput? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::Google.Gemini.GenerateContentBatchState? Type216 { get; set; } /// /// /// - public global::Google.Gemini.VideoMetadata? Type217 { get; set; } + public global::Google.Gemini.GroundingAttribution? Type217 { get; set; } /// /// /// - public global::Google.Gemini.FunctionResponseBlob? Type218 { get; set; } + public global::Google.Gemini.AttributionSourceId? Type218 { get; set; } /// /// /// - public global::Google.Gemini.UsageMetadataServiceTier? Type219 { get; set; } + public global::Google.Gemini.ChunkingConfig? Type219 { get; set; } /// /// /// - public global::Google.Gemini.TransferOwnershipResponse? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::Google.Gemini.FileSearchStore? Type222 { get; set; } + public global::Google.Gemini.FunctionResponseScheduling? Type222 { get; set; } /// /// /// - public global::Google.Gemini.FunctionDeclarationBehavior? Type223 { get; set; } + public global::System.Collections.Generic.IList? Type223 { get; set; } /// /// /// - public global::Google.Gemini.ExecutableCode? Type224 { get; set; } + public global::Google.Gemini.EnvironmentStatus? Type224 { get; set; } /// /// /// - public global::Google.Gemini.ExecutableCodeLanguage? Type225 { get; set; } + public global::Google.Gemini.EnvironmentNetworkMode? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Google.Gemini.ThinkingConfigThinkingLevel? Type226 { get; set; } /// /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type227 { get; set; } + public global::Google.Gemini.ImportFileRequest? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::System.Collections.Generic.IList? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::Google.Gemini.EgressRule? Type229 { get; set; } /// /// /// - public global::Google.Gemini.InlinedEmbedContentRequest? Type230 { get; set; } + public global::Google.Gemini.CreateFileResponse? Type230 { get; set; } /// /// /// - public global::Google.Gemini.TunedModel? Type231 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type231 { get; set; } /// /// /// - public global::Google.Gemini.TunedModelState? Type232 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type232 { get; set; } /// /// /// - public global::Google.Gemini.BatchStats? Type233 { get; set; } + public global::Google.Gemini.LatLng? Type233 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentBatchState? Type234 { get; set; } + public global::Google.Gemini.ExecutableCodeLanguage? Type234 { get; set; } /// /// /// - public global::Google.Gemini.EmbedContentRequestTaskType? Type235 { get; set; } + public global::System.Collections.Generic.Dictionary? Type235 { get; set; } /// /// /// - public global::Google.Gemini.Interval? Type236 { get; set; } + public global::System.Collections.Generic.IList? Type236 { get; set; } /// /// /// - public global::Google.Gemini.ListDocumentsResponse? Type237 { get; set; } + public global::Google.Gemini.StreamableHttpTransport? Type237 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type238 { get; set; } + public global::Google.Gemini.ToolCallToolType? Type238 { get; set; } /// /// /// - public global::Google.Gemini.Document? Type239 { get; set; } + public global::Google.Gemini.LanguageAuto? Type239 { get; set; } /// /// /// - public global::Google.Gemini.Operation? Type240 { get; set; } + public global::Google.Gemini.UploadToFileSearchStoreRequest? Type240 { get; set; } /// /// /// - public global::Google.Gemini.SearchTypes? Type241 { get; set; } + public global::Google.Gemini.FileState? Type241 { get; set; } /// /// /// - public global::Google.Gemini.WebSearch? Type242 { get; set; } + public global::Google.Gemini.FileSource? Type242 { get; set; } /// /// /// - public global::Google.Gemini.ListOperationsResponse? Type243 { get; set; } + public global::Google.Gemini.SafetyRatingCategory? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Google.Gemini.SafetyRatingProbability? Type244 { get; set; } /// /// /// - public global::Google.Gemini.RegisterFilesRequest? Type245 { get; set; } + public global::Google.Gemini.InlinedResponses? Type245 { get; set; } /// /// /// - public global::Google.Gemini.ListTunedModelsResponse? Type246 { get; set; } + public global::System.Collections.Generic.IList? Type246 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type247 { get; set; } + public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type247 { get; set; } /// /// /// - public global::Google.Gemini.ContentEmbedding? Type248 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type248 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type249 { get; set; } + public global::Google.Gemini.ListCorporaResponse? Type249 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type250 { get; set; } + public global::System.Collections.Generic.IList? Type250 { get; set; } /// /// /// - public global::Google.Gemini.InputConfig? Type251 { get; set; } + public global::Google.Gemini.Corpus? Type251 { get; set; } /// /// /// - public global::Google.Gemini.SourceType? Type252 { get; set; } + public global::Google.Gemini.AuthToken? Type252 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type253 { get; set; } + public global::Google.Gemini.TuningExamples? Type253 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfigResponseModalitie? Type254 { get; set; } + public global::Google.Gemini.ToolResponseToolType? Type254 { get; set; } /// /// /// - public global::Google.Gemini.GenerationConfigMediaResolution? Type255 { get; set; } + public global::Google.Gemini.CountTokensRequest? Type255 { get; set; } /// /// /// - public global::Google.Gemini.Part? Type256 { get; set; } + public global::Google.Gemini.ListFilesResponse? Type256 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCall? Type257 { get; set; } + public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type257 { get; set; } /// /// /// - public global::Google.Gemini.ToolResponse? Type258 { get; set; } + public global::Google.Gemini.EmbedContentRequest? Type258 { get; set; } /// /// /// - public global::Google.Gemini.GeneratedFileState? Type259 { get; set; } + public global::Google.Gemini.EmbedContentConfig? Type259 { get; set; } /// /// /// - public global::Google.Gemini.ListFileSearchStoresResponse? Type260 { get; set; } + public global::Google.Gemini.EmbedContentRequestTaskType? Type260 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type261 { get; set; } + public global::Google.Gemini.CandidateFinishReason? Type261 { get; set; } /// /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type262 { get; set; } + public global::Google.Gemini.GroundingMetadata? Type262 { get; set; } /// /// /// - public global::Google.Gemini.HistoryConfig? Type263 { get; set; } + public global::System.Collections.Generic.IList? Type263 { get; set; } /// /// /// - public global::Google.Gemini.ToolResponseToolType? Type264 { get; set; } + public global::Google.Gemini.ListGeneratedFilesResponse? Type264 { get; set; } /// /// /// - public global::Google.Gemini.BatchEmbedContentsResponse? Type265 { get; set; } + public global::System.Collections.Generic.IList? Type265 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::Google.Gemini.RetrievalMetadata? Type266 { get; set; } /// /// /// - public global::Google.Gemini.CreateEnvironmentRequest? Type267 { get; set; } + public global::Google.Gemini.EmbedContentConfigTaskType? Type267 { get; set; } /// /// /// - public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type268 { get; set; } + public global::Google.Gemini.ListDocumentsResponse? Type268 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCallingConfig? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type270 { get; set; } + public global::Google.Gemini.ModalityTokenCountModality? Type270 { get; set; } /// /// /// - public global::Google.Gemini.CreateFileRequest? Type271 { get; set; } + public global::Google.Gemini.BatchEmbedContentsRequest? Type271 { get; set; } /// /// /// - public global::Google.Gemini.GenerateContentBatchState? Type272 { get; set; } + public global::System.Collections.Generic.IList? Type272 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type273 { get; set; } + public global::System.Collections.Generic.IList? Type273 { get; set; } /// /// /// - public global::Google.Gemini.DocumentState? Type274 { get; set; } + public global::Google.Gemini.SearchEntryPoint? Type274 { get; set; } /// /// /// - public global::Google.Gemini.SafetySettingCategory? Type275 { get; set; } + public global::System.Collections.Generic.IList? Type275 { get; set; } /// /// /// - public global::Google.Gemini.SafetySettingThreshold? Type276 { get; set; } + public global::Google.Gemini.TextResponseFormatMimeType? Type276 { get; set; } /// /// /// - public global::Google.Gemini.FunctionCallingConfigMode? Type277 { get; set; } + public global::Google.Gemini.ListPermissionsResponse? Type277 { get; set; } /// /// /// - public global::Google.Gemini.ListFilesResponse? Type278 { get; set; } + public global::System.Collections.Generic.IList? Type278 { get; set; } /// /// /// - public global::Google.Gemini.CustomLongRunningOperation? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType4 { get; set; } + public global::System.Collections.Generic.List? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// @@ -1181,95 +1181,95 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType19 { get; set; } + public global::System.Collections.Generic.List? ListType19 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType20 { get; set; } + public global::System.Collections.Generic.List? ListType20 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType21 { get; set; } + public global::System.Collections.Generic.List? ListType21 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType22 { get; set; } + public global::System.Collections.Generic.List? ListType22 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType23 { get; set; } + public global::System.Collections.Generic.List? ListType23 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType24 { get; set; } + public global::System.Collections.Generic.List? ListType24 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType25 { get; set; } + public global::System.Collections.Generic.List? ListType25 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType26 { get; set; } + public global::System.Collections.Generic.List? ListType26 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType27 { get; set; } + public global::System.Collections.Generic.List? ListType27 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType28 { get; set; } + public global::System.Collections.Generic.List? ListType28 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType29 { get; set; } + public global::System.Collections.Generic.List? ListType29 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType30 { get; set; } + public global::System.Collections.Generic.List? ListType30 { get; set; } /// /// /// @@ -1277,70 +1277,70 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType32 { get; set; } + public global::System.Collections.Generic.List? ListType32 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType33 { get; set; } + public global::System.Collections.Generic.List? ListType33 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType34 { get; set; } + public global::System.Collections.Generic.List? ListType34 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType35 { get; set; } + public global::System.Collections.Generic.List? ListType35 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType36 { get; set; } + public global::System.Collections.Generic.List? ListType36 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType37 { get; set; } + public global::System.Collections.Generic.List? ListType37 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType38 { get; set; } + public global::System.Collections.Generic.List? ListType38 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType39 { get; set; } + public global::System.Collections.Generic.List? ListType39 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType40 { get; set; } + public global::System.Collections.Generic.List? ListType40 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType41 { get; set; } + public global::System.Collections.Generic.List? ListType41 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType42 { get; set; } + public global::System.Collections.Generic.List? ListType42 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType43 { get; set; } + public global::System.Collections.Generic.List? ListType43 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType44 { get; set; } + public global::System.Collections.Generic.List? ListType44 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType45 { get; set; } + public global::System.Collections.Generic.List? ListType45 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType46 { get; set; } + public global::System.Collections.Generic.List? ListType46 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType47 { get; set; } + public global::System.Collections.Generic.List? ListType47 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType48 { get; set; } + public global::System.Collections.Generic.List? ListType48 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs index 31aabb542..5f9a1bf97 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AttributionSourceId.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class AttributionSourceId { - /// - /// Identifier for a part within a `GroundingPassage`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingPassage")] - public global::Google.Gemini.GroundingPassageId? GroundingPassage { get; set; } - /// /// Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`. /// [global::System.Text.Json.Serialization.JsonPropertyName("semanticRetrieverChunk")] public global::Google.Gemini.SemanticRetrieverChunk? SemanticRetrieverChunk { get; set; } + /// + /// Identifier for a part within a `GroundingPassage`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groundingPassage")] + public global::Google.Gemini.GroundingPassageId? GroundingPassage { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class AttributionSourceId /// /// Initializes a new instance of the class. /// - /// - /// Identifier for a part within a `GroundingPassage`. - /// /// /// Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`. /// + /// + /// Identifier for a part within a `GroundingPassage`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AttributionSourceId( - global::Google.Gemini.GroundingPassageId? groundingPassage, - global::Google.Gemini.SemanticRetrieverChunk? semanticRetrieverChunk) + global::Google.Gemini.SemanticRetrieverChunk? semanticRetrieverChunk, + global::Google.Gemini.GroundingPassageId? groundingPassage) { - this.GroundingPassage = groundingPassage; this.SemanticRetrieverChunk = semanticRetrieverChunk; + this.GroundingPassage = groundingPassage; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs index 51af03321..7a1f8631e 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioResponseFormat.g.cs @@ -8,19 +8,6 @@ namespace Google.Gemini /// public sealed partial class AudioResponseFormat { - /// - /// Optional. The MIME type of the audio output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter))] - public global::Google.Gemini.AudioResponseFormatMimeType? MimeType { get; set; } - - /// - /// Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("bitRate")] - public int? BitRate { get; set; } - /// /// Optional. The delivery mode for the audio output. /// @@ -34,6 +21,19 @@ public sealed partial class AudioResponseFormat [global::System.Text.Json.Serialization.JsonPropertyName("sampleRate")] public int? SampleRate { get; set; } + /// + /// Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("bitRate")] + public int? BitRate { get; set; } + + /// + /// Optional. The MIME type of the audio output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter))] + public global::Google.Gemini.AudioResponseFormatMimeType? MimeType { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,31 +43,31 @@ public sealed partial class AudioResponseFormat /// /// Initializes a new instance of the class. /// - /// - /// Optional. The MIME type of the audio output. - /// - /// - /// Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). - /// /// /// Optional. The delivery mode for the audio output. /// /// /// Optional. Sample rate in Hz. /// + /// + /// Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). + /// + /// + /// Optional. The MIME type of the audio output. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioResponseFormat( - global::Google.Gemini.AudioResponseFormatMimeType? mimeType, - int? bitRate, global::Google.Gemini.AudioResponseFormatDelivery? delivery, - int? sampleRate) + int? sampleRate, + int? bitRate, + global::Google.Gemini.AudioResponseFormatMimeType? mimeType) { - this.MimeType = mimeType; - this.BitRate = bitRate; this.Delivery = delivery; this.SampleRate = sampleRate; + this.BitRate = bitRate; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs index fc840ea8c..064f1030b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AudioTranscriptionConfig.g.cs @@ -11,49 +11,49 @@ namespace Google.Gemini public sealed partial class AudioTranscriptionConfig { /// - /// Provides hints to the model about possible languages present in the audio. + /// Optional. Configures word-level timestamp generation. /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageHints")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.LanguageHints? LanguageHints { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("wordTimestamp")] + public bool? WordTimestamp { get; set; } /// - /// Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. + /// Indicates the language of the audio should be automatically detected. /// - [global::System.Text.Json.Serialization.JsonPropertyName("adaptationPhrases")] + [global::System.Text.Json.Serialization.JsonPropertyName("languageAuto")] [global::System.Obsolete("This property marked as deprecated.")] - public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } + public global::Google.Gemini.LanguageAuto? LanguageAuto { get; set; } /// - /// Indicates the language of the audio should be automatically detected. + /// Provides hints to the model about possible languages present in the audio. /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageAuto")] + [global::System.Text.Json.Serialization.JsonPropertyName("languageHints")] [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.LanguageAuto? LanguageAuto { get; set; } + public global::Google.Gemini.LanguageHints? LanguageHints { get; set; } /// - /// Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. + /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageCodes")] - public global::System.Collections.Generic.IList? LanguageCodes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("customVocabulary")] + public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } /// - /// Optional. Configures speaker diarization. + /// Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. /// - [global::System.Text.Json.Serialization.JsonPropertyName("diarization")] - public bool? Diarization { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("languageCodes")] + public global::System.Collections.Generic.IList? LanguageCodes { get; set; } /// - /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). + /// Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. /// - [global::System.Text.Json.Serialization.JsonPropertyName("customVocabulary")] - public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("adaptationPhrases")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } /// - /// Optional. Configures word-level timestamp generation. + /// Optional. Configures speaker diarization. /// - [global::System.Text.Json.Serialization.JsonPropertyName("wordTimestamp")] - public bool? WordTimestamp { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("diarization")] + public bool? Diarization { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -64,31 +64,31 @@ public sealed partial class AudioTranscriptionConfig /// /// Initializes a new instance of the class. /// + /// + /// Optional. Configures word-level timestamp generation. + /// + /// + /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). + /// /// /// Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection. /// /// /// Optional. Configures speaker diarization. /// - /// - /// Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon). - /// - /// - /// Optional. Configures word-level timestamp generation. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioTranscriptionConfig( - global::System.Collections.Generic.IList? languageCodes, - bool? diarization, + bool? wordTimestamp, global::System.Collections.Generic.IList? customVocabulary, - bool? wordTimestamp) + global::System.Collections.Generic.IList? languageCodes, + bool? diarization) { + this.WordTimestamp = wordTimestamp; + this.CustomVocabulary = customVocabulary; this.LanguageCodes = languageCodes; this.Diarization = diarization; - this.CustomVocabulary = customVocabulary; - this.WordTimestamp = wordTimestamp; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs index 289b278c8..4c44c3087 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AuthToken.g.cs @@ -8,12 +8,30 @@ namespace Google.Gemini /// public sealed partial class AuthToken { + /// + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("newSessionExpireTime")] + public string? NewSessionExpireTime { get; set; } + /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// [global::System.Text.Json.Serialization.JsonPropertyName("fieldMask")] public string? FieldMask { get; set; } + /// + /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("interactionId")] + public string? InteractionId { get; set; } + + /// + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("uses")] + public int? Uses { get; set; } + /// /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. /// @@ -33,24 +51,6 @@ public sealed partial class AuthToken [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("newSessionExpireTime")] - public string? NewSessionExpireTime { get; set; } - - /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("uses")] - public int? Uses { get; set; } - - /// - /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("interactionId")] - public string? InteractionId { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -60,9 +60,18 @@ public sealed partial class AuthToken /// /// Initializes a new instance of the class. /// + /// + /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. + /// /// /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection. /// + /// + /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. + /// + /// + /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. + /// /// /// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages. /// @@ -73,34 +82,25 @@ public sealed partial class AuthToken /// Output only. Identifier. The token itself.
/// Included only in responses /// - /// - /// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future. - /// - /// - /// Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1. - /// - /// - /// Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AuthToken( + string? newSessionExpireTime, string? fieldMask, + string? interactionId, + int? uses, global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup, string? expireTime, - string? name, - string? newSessionExpireTime, - int? uses, - string? interactionId) + string? name) { + this.NewSessionExpireTime = newSessionExpireTime; this.FieldMask = fieldMask; + this.InteractionId = interactionId; + this.Uses = uses; this.BidiGenerateContentSetup = bidiGenerateContentSetup; this.ExpireTime = expireTime; this.Name = name; - this.NewSessionExpireTime = newSessionExpireTime; - this.Uses = uses; - this.InteractionId = interactionId; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs index f8b9012e8..65077aaef 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.AutomaticActivityDetection.g.cs @@ -9,16 +9,17 @@ namespace Google.Gemini public sealed partial class AutomaticActivityDetection { /// - /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. + /// Optional. Determines how likely speech is to be detected. /// - [global::System.Text.Json.Serialization.JsonPropertyName("prefixPaddingMs")] - public int? PrefixPaddingMs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("startOfSpeechSensitivity")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter))] + public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? StartOfSpeechSensitivity { get; set; } /// - /// Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency. + /// Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals. /// - [global::System.Text.Json.Serialization.JsonPropertyName("silenceDurationMs")] - public int? SilenceDurationMs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] + public bool? Disabled { get; set; } /// /// Optional. Determines how likely detected speech is ended. @@ -28,17 +29,16 @@ public sealed partial class AutomaticActivityDetection public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? EndOfSpeechSensitivity { get; set; } /// - /// Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals. + /// Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency. /// - [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] - public bool? Disabled { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("silenceDurationMs")] + public int? SilenceDurationMs { get; set; } /// - /// Optional. Determines how likely speech is to be detected. + /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. /// - [global::System.Text.Json.Serialization.JsonPropertyName("startOfSpeechSensitivity")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter))] - public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? StartOfSpeechSensitivity { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("prefixPaddingMs")] + public int? PrefixPaddingMs { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -49,36 +49,36 @@ public sealed partial class AutomaticActivityDetection /// /// Initializes a new instance of the class. /// - /// - /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. + /// + /// Optional. Determines how likely speech is to be detected. /// - /// - /// Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency. + /// + /// Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals. /// /// /// Optional. Determines how likely detected speech is ended. /// - /// - /// Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals. + /// + /// Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency. /// - /// - /// Optional. Determines how likely speech is to be detected. + /// + /// Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AutomaticActivityDetection( - int? prefixPaddingMs, - int? silenceDurationMs, - global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity, + global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? startOfSpeechSensitivity, bool? disabled, - global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? startOfSpeechSensitivity) + global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity, + int? silenceDurationMs, + int? prefixPaddingMs) { - this.PrefixPaddingMs = prefixPaddingMs; - this.SilenceDurationMs = silenceDurationMs; - this.EndOfSpeechSensitivity = endOfSpeechSensitivity; - this.Disabled = disabled; this.StartOfSpeechSensitivity = startOfSpeechSensitivity; + this.Disabled = disabled; + this.EndOfSpeechSensitivity = endOfSpeechSensitivity; + this.SilenceDurationMs = silenceDurationMs; + this.PrefixPaddingMs = prefixPaddingMs; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs index 7db4b5ba8..1bd6145a2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchEmbedContentsResponse.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class BatchEmbedContentsResponse { - /// - /// Metadata on the usage of the embedding request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] - public global::Google.Gemini.EmbeddingUsageMetadata? UsageMetadata { get; set; } - /// /// Output only. The embeddings for each request, in the same order as provided in the batch request.
/// Included only in responses @@ -21,6 +15,12 @@ public sealed partial class BatchEmbedContentsResponse [global::System.Text.Json.Serialization.JsonPropertyName("embeddings")] public global::System.Collections.Generic.IList? Embeddings { get; set; } + /// + /// Metadata on the usage of the embedding request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] + public global::Google.Gemini.EmbeddingUsageMetadata? UsageMetadata { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class BatchEmbedContentsResponse /// /// Initializes a new instance of the class. /// - /// - /// Metadata on the usage of the embedding request. - /// /// /// Output only. The embeddings for each request, in the same order as provided in the batch request.
/// Included only in responses /// + /// + /// Metadata on the usage of the embedding request. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BatchEmbedContentsResponse( - global::Google.Gemini.EmbeddingUsageMetadata? usageMetadata, - global::System.Collections.Generic.IList? embeddings) + global::System.Collections.Generic.IList? embeddings, + global::Google.Gemini.EmbeddingUsageMetadata? usageMetadata) { - this.UsageMetadata = usageMetadata; this.Embeddings = embeddings; + this.UsageMetadata = usageMetadata; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs index 553a71812..561bc5481 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BatchStats.g.cs @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class BatchStats { - /// - /// Output only. The number of requests that failed to be processed.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] - public string? FailedRequestCount { get; set; } - /// /// Output only. The number of requests in the batch.
/// Included only in responses @@ -29,6 +22,13 @@ public sealed partial class BatchStats [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] public string? SuccessfulRequestCount { get; set; } + /// + /// Output only. The number of requests that failed to be processed.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] + public string? FailedRequestCount { get; set; } + /// /// Output only. The number of requests that are still pending processing.
/// Included only in responses @@ -45,10 +45,6 @@ public sealed partial class BatchStats /// /// Initializes a new instance of the class. /// - /// - /// Output only. The number of requests that failed to be processed.
- /// Included only in responses - /// /// /// Output only. The number of requests in the batch.
/// Included only in responses @@ -57,6 +53,10 @@ public sealed partial class BatchStats /// Output only. The number of requests that were successfully processed.
/// Included only in responses /// + /// + /// Output only. The number of requests that failed to be processed.
+ /// Included only in responses + /// /// /// Output only. The number of requests that are still pending processing.
/// Included only in responses @@ -65,14 +65,14 @@ public sealed partial class BatchStats [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BatchStats( - string? failedRequestCount, string? requestCount, string? successfulRequestCount, + string? failedRequestCount, string? pendingRequestCount) { - this.FailedRequestCount = failedRequestCount; this.RequestCount = requestCount; this.SuccessfulRequestCount = successfulRequestCount; + this.FailedRequestCount = failedRequestCount; this.PendingRequestCount = pendingRequestCount; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs index 0beeae8e4..4d6bd078d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.BidiGenerateContentSetup.g.cs @@ -8,6 +8,18 @@ namespace Google.Gemini ///
public sealed partial class BidiGenerateContentSetup { + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } + + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] + public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } + /// /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` /// @@ -21,10 +33,16 @@ public sealed partial class BidiGenerateContentSetup public global::Google.Gemini.SessionResumptionConfig? SessionResumption { get; set; } /// - /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. + /// Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("contextWindowCompression")] - public global::Google.Gemini.ContextWindowCompressionConfig? ContextWindowCompression { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } + + /// + /// The audio transcription configuration. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inputAudioTranscription")] + public global::Google.Gemini.AudioTranscriptionConfig? InputAudioTranscription { get; set; } /// /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. @@ -33,16 +51,16 @@ public sealed partial class BidiGenerateContentSetup public global::Google.Gemini.HistoryConfig? HistoryConfig { get; set; } /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// Configures the realtime input behavior in `BidiGenerateContent`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] - public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("realtimeInputConfig")] + public global::Google.Gemini.RealtimeInputConfig? RealtimeInputConfig { get; set; } /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. /// - [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("contextWindowCompression")] + public global::Google.Gemini.ContextWindowCompressionConfig? ContextWindowCompression { get; set; } /// /// The audio transcription configuration. @@ -50,24 +68,6 @@ public sealed partial class BidiGenerateContentSetup [global::System.Text.Json.Serialization.JsonPropertyName("outputAudioTranscription")] public global::Google.Gemini.AudioTranscriptionConfig? OutputAudioTranscription { get; set; } - /// - /// Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } - - /// - /// Configures the realtime input behavior in `BidiGenerateContent`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("realtimeInputConfig")] - public global::Google.Gemini.RealtimeInputConfig? RealtimeInputConfig { get; set; } - - /// - /// The audio transcription configuration. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inputAudioTranscription")] - public global::Google.Gemini.AudioTranscriptionConfig? InputAudioTranscription { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -77,61 +77,61 @@ public sealed partial class BidiGenerateContentSetup /// /// Initializes a new instance of the class. /// + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// /// /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` /// /// /// Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages. /// - /// - /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. - /// - /// - /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. - /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. - /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. /// - /// + /// /// The audio transcription configuration. /// - /// - /// Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. + /// + /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. /// /// /// Configures the realtime input behavior in `BidiGenerateContent`. /// - /// + /// + /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. + /// + /// /// The audio transcription configuration. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BidiGenerateContentSetup( + global::Google.Gemini.Content? systemInstruction, + global::Google.Gemini.GenerationConfig? generationConfig, string? model, global::Google.Gemini.SessionResumptionConfig? sessionResumption, - global::Google.Gemini.ContextWindowCompressionConfig? contextWindowCompression, - global::Google.Gemini.HistoryConfig? historyConfig, - global::Google.Gemini.GenerationConfig? generationConfig, - global::Google.Gemini.Content? systemInstruction, - global::Google.Gemini.AudioTranscriptionConfig? outputAudioTranscription, global::System.Collections.Generic.IList? tools, + global::Google.Gemini.AudioTranscriptionConfig? inputAudioTranscription, + global::Google.Gemini.HistoryConfig? historyConfig, global::Google.Gemini.RealtimeInputConfig? realtimeInputConfig, - global::Google.Gemini.AudioTranscriptionConfig? inputAudioTranscription) + global::Google.Gemini.ContextWindowCompressionConfig? contextWindowCompression, + global::Google.Gemini.AudioTranscriptionConfig? outputAudioTranscription) { + this.SystemInstruction = systemInstruction; + this.GenerationConfig = generationConfig; this.Model = model; this.SessionResumption = sessionResumption; - this.ContextWindowCompression = contextWindowCompression; - this.HistoryConfig = historyConfig; - this.GenerationConfig = generationConfig; - this.SystemInstruction = systemInstruction; - this.OutputAudioTranscription = outputAudioTranscription; this.Tools = tools; - this.RealtimeInputConfig = realtimeInputConfig; this.InputAudioTranscription = inputAudioTranscription; + this.HistoryConfig = historyConfig; + this.RealtimeInputConfig = realtimeInputConfig; + this.ContextWindowCompression = contextWindowCompression; + this.OutputAudioTranscription = outputAudioTranscription; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs index ad13058d0..c5ef9ce01 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CachedContent.g.cs @@ -9,10 +9,17 @@ namespace Google.Gemini public sealed partial class CachedContent { /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } /// /// Optional. Input only. Immutable. The content to cache. @@ -27,30 +34,29 @@ public sealed partial class CachedContent public global::Google.Gemini.CachedContentUsageMetadata? UsageMetadata { get; set; } /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// - [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response + /// Input only. New TTL for this resource, input only. /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] + public string? Ttl { get; set; } /// - /// Output only. Creation time of the cache entry.
+ /// Output only. When the cache entry was last updated in UTC time.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// - /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
- /// Included only in responses + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. @@ -58,13 +64,6 @@ public sealed partial class CachedContent [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } - /// - /// Output only. When the cache entry was last updated in UTC time.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } - /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// @@ -78,10 +77,11 @@ public sealed partial class CachedContent public string? Model { get; set; } /// - /// Input only. New TTL for this resource, input only. + /// Output only. Creation time of the cache entry.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] - public string? Ttl { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -92,8 +92,12 @@ public sealed partial class CachedContent /// /// Initializes a new instance of the class. /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
+ /// Included only in responses + /// + /// + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Optional. Input only. Immutable. The content to cache. @@ -101,65 +105,61 @@ public sealed partial class CachedContent /// /// Metadata on the usage of the cached content. /// - /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response + /// + /// Input only. New TTL for this resource, input only. /// - /// - /// Output only. Creation time of the cache entry.
+ /// + /// Output only. When the cache entry was last updated in UTC time.
/// Included only in responses /// - /// - /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
- /// Included only in responses + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Output only. When the cache entry was last updated in UTC time.
- /// Included only in responses - /// /// /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// /// /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// - /// - /// Input only. New TTL for this resource, input only. + /// + /// Output only. Creation time of the cache entry.
+ /// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CachedContent( - string? displayName, + string? name, + global::Google.Gemini.Content? systemInstruction, global::System.Collections.Generic.IList? contents, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata, - global::Google.Gemini.Content? systemInstruction, + string? displayName, + string? ttl, + string? updateTime, global::System.Collections.Generic.IList? tools, - string? createTime, - string? name, global::Google.Gemini.ToolConfig? toolConfig, - string? updateTime, string? expireTime, string? model, - string? ttl) + string? createTime) { - this.DisplayName = displayName; + this.Name = name; + this.SystemInstruction = systemInstruction; this.Contents = contents; this.UsageMetadata = usageMetadata; - this.SystemInstruction = systemInstruction; + this.DisplayName = displayName; + this.Ttl = ttl; + this.UpdateTime = updateTime; this.Tools = tools; - this.CreateTime = createTime; - this.Name = name; this.ToolConfig = toolConfig; - this.UpdateTime = updateTime; this.ExpireTime = expireTime; this.Model = model; - this.Ttl = ttl; + this.CreateTime = createTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs index 8d6596175..589b9fdb3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Candidate.g.cs @@ -9,49 +9,49 @@ namespace Google.Gemini public sealed partial class Candidate { /// - /// Output only. Index of the candidate in the list of response candidates.
- /// Included only in responses + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("index")] - public int? Index { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::Google.Gemini.Content? Content { get; set; } /// - /// Output only. Average log probability score of the candidate.
- /// Included only in responses + /// List of ratings for the safety of a response candidate. There is at most one rating per category. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("avgLogprobs")] - public double? AvgLogprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("safetyRatings")] + public global::System.Collections.Generic.IList? SafetyRatings { get; set; } /// - /// A collection of source attributions for a piece of content. + /// Metadata related to url context retrieval tool. /// - [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] - public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("urlContextMetadata")] + public global::Google.Gemini.UrlContextMetadata? UrlContextMetadata { get; set; } /// - /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
+ /// Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("groundingAttributions")] - public global::System.Collections.Generic.IList? GroundingAttributions { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("finishMessage")] + public string? FinishMessage { get; set; } /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. + /// Logprobs Result /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::Google.Gemini.Content? Content { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("logprobsResult")] + public global::Google.Gemini.LogprobsResult? LogprobsResult { get; set; } /// - /// Metadata returned to client when grounding is enabled. + /// A collection of source attributions for a piece of content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingMetadata")] - public global::Google.Gemini.GroundingMetadata? GroundingMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] + public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } /// - /// List of ratings for the safety of a response candidate. There is at most one rating per category. + /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("safetyRatings")] - public global::System.Collections.Generic.IList? SafetyRatings { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("finishReason")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter))] + public global::Google.Gemini.CandidateFinishReason? FinishReason { get; set; } /// /// Output only. Token count for this candidate.
@@ -61,31 +61,31 @@ public sealed partial class Candidate public int? TokenCount { get; set; } /// - /// Metadata related to url context retrieval tool. + /// Metadata returned to client when grounding is enabled. /// - [global::System.Text.Json.Serialization.JsonPropertyName("urlContextMetadata")] - public global::Google.Gemini.UrlContextMetadata? UrlContextMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingMetadata")] + public global::Google.Gemini.GroundingMetadata? GroundingMetadata { get; set; } /// - /// Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
+ /// Output only. Average log probability score of the candidate.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finishMessage")] - public string? FinishMessage { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("avgLogprobs")] + public double? AvgLogprobs { get; set; } /// - /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
+ /// Output only. Index of the candidate in the list of response candidates.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finishReason")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter))] - public global::Google.Gemini.CandidateFinishReason? FinishReason { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("index")] + public int? Index { get; set; } /// - /// Logprobs Result + /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("logprobsResult")] - public global::Google.Gemini.LogprobsResult? LogprobsResult { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingAttributions")] + public global::System.Collections.Generic.IList? GroundingAttributions { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -96,34 +96,12 @@ public sealed partial class Candidate /// /// Initializes a new instance of the class. /// - /// - /// Output only. Index of the candidate in the list of response candidates.
- /// Included only in responses - /// - /// - /// Output only. Average log probability score of the candidate.
- /// Included only in responses - /// - /// - /// A collection of source attributions for a piece of content. - /// - /// - /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
- /// Included only in responses - /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// - /// - /// Metadata returned to client when grounding is enabled. - /// /// /// List of ratings for the safety of a response candidate. There is at most one rating per category. /// - /// - /// Output only. Token count for this candidate.
- /// Included only in responses - /// /// /// Metadata related to url context retrieval tool. /// @@ -131,42 +109,64 @@ public sealed partial class Candidate /// Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.
/// Included only in responses /// + /// + /// Logprobs Result + /// + /// + /// A collection of source attributions for a piece of content. + /// /// /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
/// Included only in responses /// - /// - /// Logprobs Result + /// + /// Output only. Token count for this candidate.
+ /// Included only in responses + /// + /// + /// Metadata returned to client when grounding is enabled. + /// + /// + /// Output only. Average log probability score of the candidate.
+ /// Included only in responses + /// + /// + /// Output only. Index of the candidate in the list of response candidates.
+ /// Included only in responses + /// + /// + /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
+ /// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Candidate( - int? index, - double? avgLogprobs, - global::Google.Gemini.CitationMetadata? citationMetadata, - global::System.Collections.Generic.IList? groundingAttributions, global::Google.Gemini.Content? content, - global::Google.Gemini.GroundingMetadata? groundingMetadata, global::System.Collections.Generic.IList? safetyRatings, - int? tokenCount, global::Google.Gemini.UrlContextMetadata? urlContextMetadata, string? finishMessage, + global::Google.Gemini.LogprobsResult? logprobsResult, + global::Google.Gemini.CitationMetadata? citationMetadata, global::Google.Gemini.CandidateFinishReason? finishReason, - global::Google.Gemini.LogprobsResult? logprobsResult) + int? tokenCount, + global::Google.Gemini.GroundingMetadata? groundingMetadata, + double? avgLogprobs, + int? index, + global::System.Collections.Generic.IList? groundingAttributions) { - this.Index = index; - this.AvgLogprobs = avgLogprobs; - this.CitationMetadata = citationMetadata; - this.GroundingAttributions = groundingAttributions; this.Content = content; - this.GroundingMetadata = groundingMetadata; this.SafetyRatings = safetyRatings; - this.TokenCount = tokenCount; this.UrlContextMetadata = urlContextMetadata; this.FinishMessage = finishMessage; - this.FinishReason = finishReason; this.LogprobsResult = logprobsResult; + this.CitationMetadata = citationMetadata; + this.FinishReason = finishReason; + this.TokenCount = tokenCount; + this.GroundingMetadata = groundingMetadata; + this.AvgLogprobs = avgLogprobs; + this.Index = index; + this.GroundingAttributions = groundingAttributions; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs index 81c0742b6..96515f46d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CitationSource.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class CitationSource { /// - /// Optional. End of the attributed segment, exclusive. + /// Optional. URI that is attributed as a source for a portion of the text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("endIndex")] - public int? EndIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. @@ -27,10 +27,10 @@ public sealed partial class CitationSource public int? StartIndex { get; set; } /// - /// Optional. URI that is attributed as a source for a portion of the text. + /// Optional. End of the attributed segment, exclusive. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("endIndex")] + public int? EndIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,8 +41,8 @@ public sealed partial class CitationSource /// /// Initializes a new instance of the class. /// - /// - /// Optional. End of the attributed segment, exclusive. + /// + /// Optional. URI that is attributed as a source for a portion of the text. /// /// /// Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. @@ -50,22 +50,22 @@ public sealed partial class CitationSource /// /// Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes. /// - /// - /// Optional. URI that is attributed as a source for a portion of the text. + /// + /// Optional. End of the attributed segment, exclusive. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CitationSource( - int? endIndex, + string? uri, string? license, int? startIndex, - string? uri) + int? endIndex) { - this.EndIndex = endIndex; + this.Uri = uri; this.License = license; this.StartIndex = startIndex; - this.Uri = uri; + this.EndIndex = endIndex; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs index 857028fb5..11556e1a7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResult.g.cs @@ -14,12 +14,6 @@ public sealed partial class CodeExecutionResult [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } - /// - /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public string? Output { get; set; } - /// /// Required. Outcome of the code execution. /// @@ -27,6 +21,12 @@ public sealed partial class CodeExecutionResult [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter))] public global::Google.Gemini.CodeExecutionResultOutcome? Outcome { get; set; } + /// + /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public string? Output { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,23 +39,23 @@ public sealed partial class CodeExecutionResult /// /// Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id. /// - /// - /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. - /// /// /// Required. Outcome of the code execution. /// + /// + /// Optional. Contains stdout when code execution is successful, stderr or other description otherwise. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CodeExecutionResult( string? id, - string? output, - global::Google.Gemini.CodeExecutionResultOutcome? outcome) + global::Google.Gemini.CodeExecutionResultOutcome? outcome, + string? output) { this.Id = id; - this.Output = output; this.Outcome = outcome; + this.Output = output; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs index b0a220bca..b1d994398 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUse.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ComputerUse { - /// - /// Optional. Disabled safety policies for computer use. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("disabledSafetyPolicies")] - public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } - /// /// Required. The environment being operated. /// @@ -27,6 +21,12 @@ public sealed partial class ComputerUse [global::System.Text.Json.Serialization.JsonPropertyName("excludedPredefinedFunctions")] public global::System.Collections.Generic.IList? ExcludedPredefinedFunctions { get; set; } + /// + /// Optional. Disabled safety policies for computer use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabledSafetyPolicies")] + public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } + /// /// Optional. Whether enable the prompt injection detection check on computer-use request. /// @@ -42,15 +42,15 @@ public sealed partial class ComputerUse /// /// Initializes a new instance of the class. /// - /// - /// Optional. Disabled safety policies for computer use. - /// /// /// Required. The environment being operated. /// /// /// Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions. /// + /// + /// Optional. Disabled safety policies for computer use. + /// /// /// Optional. Whether enable the prompt injection detection check on computer-use request. /// @@ -58,14 +58,14 @@ public sealed partial class ComputerUse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ComputerUse( - global::System.Collections.Generic.IList? disabledSafetyPolicies, global::Google.Gemini.ComputerUseEnvironment? environment, global::System.Collections.Generic.IList? excludedPredefinedFunctions, + global::System.Collections.Generic.IList? disabledSafetyPolicies, bool? enablePromptInjectionDetection) { - this.DisabledSafetyPolicies = disabledSafetyPolicies; this.Environment = environment; this.ExcludedPredefinedFunctions = excludedPredefinedFunctions; + this.DisabledSafetyPolicies = disabledSafetyPolicies; this.EnablePromptInjectionDetection = enablePromptInjectionDetection; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs index db1b7f3ee..c53213b98 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Content.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class Content { - /// - /// Ordered `Parts` that constitute a single message. Parts may have different MIME types. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("parts")] - public global::System.Collections.Generic.IList? Parts { get; set; } - /// /// Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset. /// [global::System.Text.Json.Serialization.JsonPropertyName("role")] public string? Role { get; set; } + /// + /// Ordered `Parts` that constitute a single message. Parts may have different MIME types. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parts")] + public global::System.Collections.Generic.IList? Parts { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class Content /// /// Initializes a new instance of the class. /// - /// - /// Ordered `Parts` that constitute a single message. Parts may have different MIME types. - /// /// /// Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset. /// + /// + /// Ordered `Parts` that constitute a single message. Parts may have different MIME types. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Content( - global::System.Collections.Generic.IList? parts, - string? role) + string? role, + global::System.Collections.Generic.IList? parts) { - this.Parts = parts; this.Role = role; + this.Parts = parts; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs index 7cdce421e..5f937ba2f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Corpus.g.cs @@ -9,11 +9,11 @@ namespace Google.Gemini public sealed partial class Corpus { /// - /// Output only. The Timestamp of when the `Corpus` was created.
+ /// Output only. The Timestamp of when the `Corpus` was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// /// Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the "corpora/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`
@@ -29,11 +29,11 @@ public sealed partial class Corpus public string? DisplayName { get; set; } /// - /// Output only. The Timestamp of when the `Corpus` was last updated.
+ /// Output only. The Timestamp of when the `Corpus` was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -44,8 +44,8 @@ public sealed partial class Corpus /// /// Initializes a new instance of the class. /// - /// - /// Output only. The Timestamp of when the `Corpus` was created.
+ /// + /// Output only. The Timestamp of when the `Corpus` was last updated.
/// Included only in responses /// /// @@ -55,23 +55,23 @@ public sealed partial class Corpus /// /// Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" /// - /// - /// Output only. The Timestamp of when the `Corpus` was last updated.
+ /// + /// Output only. The Timestamp of when the `Corpus` was created.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Corpus( - string? createTime, + string? updateTime, string? name, string? displayName, - string? updateTime) + string? createTime) { - this.CreateTime = createTime; + this.UpdateTime = updateTime; this.Name = name; this.DisplayName = displayName; - this.UpdateTime = updateTime; + this.CreateTime = createTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs index 263ea346e..b3630d1d9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensRequest.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class CountTokensRequest { - /// - /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contents")] - public global::System.Collections.Generic.IList? Contents { get; set; } - /// /// Request to generate a completion from the model. /// [global::System.Text.Json.Serialization.JsonPropertyName("generateContentRequest")] public global::Google.Gemini.GenerateContentRequest? GenerateContentRequest { get; set; } + /// + /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("contents")] + public global::System.Collections.Generic.IList? Contents { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class CountTokensRequest /// /// Initializes a new instance of the class. /// - /// - /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. - /// /// /// Request to generate a completion from the model. /// + /// + /// Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CountTokensRequest( - global::System.Collections.Generic.IList? contents, - global::Google.Gemini.GenerateContentRequest? generateContentRequest) + global::Google.Gemini.GenerateContentRequest? generateContentRequest, + global::System.Collections.Generic.IList? contents) { - this.Contents = contents; this.GenerateContentRequest = generateContentRequest; + this.Contents = contents; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs index bb73d8bb2..9be7f089f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CountTokensResponse.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini /// public sealed partial class CountTokensResponse { + /// + /// Output only. List of modalities that were processed in the request input.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] + public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + /// /// Number of tokens in the cached part of the prompt (the cached content). /// @@ -21,13 +28,6 @@ public sealed partial class CountTokensResponse [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } - /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] - public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } - /// /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. /// @@ -43,6 +43,10 @@ public sealed partial class CountTokensResponse /// /// Initializes a new instance of the class. /// + /// + /// Output only. List of modalities that were processed in the request input.
+ /// Included only in responses + /// /// /// Number of tokens in the cached part of the prompt (the cached content). /// @@ -50,10 +54,6 @@ public sealed partial class CountTokensResponse /// Output only. List of modalities that were processed in the cached content.
/// Included only in responses /// - /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses - /// /// /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. /// @@ -61,14 +61,14 @@ public sealed partial class CountTokensResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CountTokensResponse( + global::System.Collections.Generic.IList? promptTokensDetails, int? cachedContentTokenCount, global::System.Collections.Generic.IList? cacheTokensDetails, - global::System.Collections.Generic.IList? promptTokensDetails, int? totalTokens) { + this.PromptTokensDetails = promptTokensDetails; this.CachedContentTokenCount = cachedContentTokenCount; this.CacheTokensDetails = cacheTokensDetails; - this.PromptTokensDetails = promptTokensDetails; this.TotalTokens = totalTokens; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs index cde520017..b0ca940b0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CreateEnvironmentRequest.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini ///
public sealed partial class CreateEnvironmentRequest { + /// + /// Network egress configuration for the environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } + /// /// Network egress mode. /// @@ -15,12 +21,6 @@ public sealed partial class CreateEnvironmentRequest [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter))] public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? NetworkMode { get; set; } - /// - /// Network egress configuration for the environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } - /// /// Sources to be mounted into the environment. /// @@ -36,12 +36,12 @@ public sealed partial class CreateEnvironmentRequest /// /// Initializes a new instance of the class. /// - /// - /// Network egress mode. - /// /// /// Network egress configuration for the environment. /// + /// + /// Network egress mode. + /// /// /// Sources to be mounted into the environment. /// @@ -49,12 +49,12 @@ public sealed partial class CreateEnvironmentRequest [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEnvironmentRequest( - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode, global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode, global::System.Collections.Generic.IList? sources) { - this.NetworkMode = networkMode; this.NetworkAllowlist = networkAllowlist; + this.NetworkMode = networkMode; this.Sources = sources; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs index c74241754..12b6257de 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomLongRunningOperation.g.cs @@ -9,16 +9,10 @@ namespace Google.Gemini public sealed partial class CustomLongRunningOperation { /// - /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { get; set; } /// /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. @@ -27,10 +21,10 @@ public sealed partial class CustomLongRunningOperation public bool? Done { get; set; } /// - /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public object? Response { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } /// /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. @@ -38,6 +32,12 @@ public sealed partial class CustomLongRunningOperation [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } + /// + /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -47,36 +47,36 @@ public sealed partial class CustomLongRunningOperation /// /// Initializes a new instance of the class. /// - /// - /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. /// /// /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. /// - /// - /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// /// /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. /// + /// + /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomLongRunningOperation( - string? name, - global::Google.Gemini.Status? error, - bool? done, object? response, - object? metadata) + bool? done, + global::Google.Gemini.Status? error, + object? metadata, + string? name) { - this.Name = name; - this.Error = error; - this.Done = done; this.Response = response; + this.Done = done; + this.Error = error; this.Metadata = metadata; + this.Name = name; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs index 7d4a174b4..45b6081bc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CustomMetadata.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class CustomMetadata { - /// - /// The string value of the metadata to store. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] - public string? StringValue { get; set; } - /// /// Required. The key of the metadata to store. /// @@ -26,6 +20,12 @@ public sealed partial class CustomMetadata [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] public float? NumericValue { get; set; } + /// + /// The string value of the metadata to store. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] + public string? StringValue { get; set; } + /// /// User provided string values assigned to a single metadata key. /// @@ -41,15 +41,15 @@ public sealed partial class CustomMetadata /// /// Initializes a new instance of the class. /// - /// - /// The string value of the metadata to store. - /// /// /// Required. The key of the metadata to store. /// /// /// The numeric value of the metadata to store. /// + /// + /// The string value of the metadata to store. + /// /// /// User provided string values assigned to a single metadata key. /// @@ -57,14 +57,14 @@ public sealed partial class CustomMetadata [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomMetadata( - string? stringValue, string? key, float? numericValue, + string? stringValue, global::Google.Gemini.StringList? stringListValue) { - this.StringValue = stringValue; this.Key = key; this.NumericValue = numericValue; + this.StringValue = stringValue; this.StringListValue = stringListValue; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs index f66af54a4..6d1f750f3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Document.g.cs @@ -9,23 +9,24 @@ namespace Google.Gemini public sealed partial class Document { /// - /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. + /// Output only. The Timestamp of when the `Document` was last updated.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] - public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// - /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" + /// Output only. The size of raw bytes ingested into the Document.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// - /// Output only. The mime type of the Document.
- /// Included only in responses + /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] + public global::System.Collections.Generic.IList? CustomMetadata { get; set; } /// /// Output only. The Timestamp of when the `Document` was created.
@@ -35,32 +36,31 @@ public sealed partial class Document public string? CreateTime { get; set; } /// - /// Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c` + /// Output only. Current state of the `Document`.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter))] + public global::Google.Gemini.DocumentState? State { get; set; } /// - /// Output only. The Timestamp of when the `Document` was last updated.
- /// Included only in responses + /// Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c` ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Output only. Current state of the `Document`.
+ /// Output only. The mime type of the Document.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter))] - public global::Google.Gemini.DocumentState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { get; set; } /// - /// Output only. The size of raw bytes ingested into the Document.
- /// Included only in responses + /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,56 +71,56 @@ public sealed partial class Document /// /// Initializes a new instance of the class. /// - /// - /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. - /// - /// - /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" - /// - /// - /// Output only. The mime type of the Document.
+ /// + /// Output only. The Timestamp of when the `Document` was last updated.
/// Included only in responses /// - /// - /// Output only. The Timestamp of when the `Document` was created.
+ /// + /// Output only. The size of raw bytes ingested into the Document.
/// Included only in responses /// - /// - /// Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c` + /// + /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. /// - /// - /// Output only. The Timestamp of when the `Document` was last updated.
+ /// + /// Output only. The Timestamp of when the `Document` was created.
/// Included only in responses /// /// /// Output only. Current state of the `Document`.
/// Included only in responses /// - /// - /// Output only. The size of raw bytes ingested into the Document.
+ /// + /// Immutable. Identifier. The `Document` resource name. The ID (name excluding the "fileSearchStores/*/documents/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c` + /// + /// + /// Output only. The mime type of the Document.
/// Included only in responses /// + /// + /// Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: "Semantic Retriever Documentation" + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Document( + string? updateTime, + string? sizeBytes, global::System.Collections.Generic.IList? customMetadata, - string? displayName, - string? mimeType, string? createTime, - string? name, - string? updateTime, global::Google.Gemini.DocumentState? state, - string? sizeBytes) + string? name, + string? mimeType, + string? displayName) { + this.UpdateTime = updateTime; + this.SizeBytes = sizeBytes; this.CustomMetadata = customMetadata; - this.DisplayName = displayName; - this.MimeType = mimeType; this.CreateTime = createTime; - this.Name = name; - this.UpdateTime = updateTime; this.State = state; - this.SizeBytes = sizeBytes; + this.Name = name; + this.MimeType = mimeType; + this.DisplayName = displayName; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs index a81ad4cf5..b9d5bebe1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EgressRule.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class EgressRule { - /// - /// The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("domain")] - public string? Domain { get; set; } - /// /// Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). Value: header value (e.g., "Bearer your-token"). /// [global::System.Text.Json.Serialization.JsonPropertyName("transform")] public global::System.Collections.Generic.Dictionary? Transform { get; set; } + /// + /// The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("domain")] + public string? Domain { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class EgressRule /// /// Initializes a new instance of the class. /// - /// - /// The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains. - /// /// /// Headers to inject into requests matching this rule. Key: header name (e.g., "Authorization"). Value: header value (e.g., "Bearer your-token"). /// + /// + /// The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EgressRule( - string? domain, - global::System.Collections.Generic.Dictionary? transform) + global::System.Collections.Generic.Dictionary? transform, + string? domain) { - this.Domain = domain; this.Transform = transform; + this.Domain = domain; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs index 94d3c0336..67d8eaca3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatch.g.cs @@ -9,24 +9,30 @@ namespace Google.Gemini public sealed partial class EmbedContentBatch { /// - /// Required. The user-defined name of this batch. + /// Output only. The time at which the batch was last updated.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
- /// Included only in responses + /// Configures the input to the batch request. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] + public global::Google.Gemini.InputEmbedContentConfig? InputConfig { get; set; } /// - /// Output only. The time at which the batch was last updated.
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// Output only. The time at which the batch was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Stats about the batch. @@ -35,11 +41,18 @@ public sealed partial class EmbedContentBatch public global::Google.Gemini.EmbedContentBatchStats? BatchStats { get; set; } /// - /// Output only. The time at which the batch was created.
+ /// Output only. The state of the batch.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter))] + public global::Google.Gemini.EmbedContentBatchState? State { get; set; } + + /// + /// Required. The user-defined name of this batch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// /// Output only. The time at which the batch processing completed.
@@ -55,16 +68,11 @@ public sealed partial class EmbedContentBatch public string? Priority { get; set; } /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Configures the input to the batch request. + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] - public global::Google.Gemini.InputEmbedContentConfig? InputConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. @@ -72,14 +80,6 @@ public sealed partial class EmbedContentBatch [global::System.Text.Json.Serialization.JsonPropertyName("output")] public global::Google.Gemini.EmbedContentBatchOutput? Output { get; set; } - /// - /// Output only. The state of the batch.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter))] - public global::Google.Gemini.EmbedContentBatchState? State { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -89,24 +89,30 @@ public sealed partial class EmbedContentBatch /// /// Initializes a new instance of the class. /// - /// - /// Required. The user-defined name of this batch. - /// - /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
- /// Included only in responses - /// /// /// Output only. The time at which the batch was last updated.
/// Included only in responses /// - /// - /// Stats about the batch. + /// + /// Configures the input to the batch request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// Output only. The time at which the batch was created.
/// Included only in responses /// + /// + /// Stats about the batch. + /// + /// + /// Output only. The state of the batch.
+ /// Included only in responses + /// + /// + /// Required. The user-defined name of this batch. + /// /// /// Output only. The time at which the batch processing completed.
/// Included only in responses @@ -114,46 +120,40 @@ public sealed partial class EmbedContentBatch /// /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Configures the input to the batch request. + /// + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses /// /// /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// - /// - /// Output only. The state of the batch.
- /// Included only in responses - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatch( - string? displayName, - string? name, string? updateTime, - global::Google.Gemini.EmbedContentBatchStats? batchStats, + global::Google.Gemini.InputEmbedContentConfig? inputConfig, + string? model, string? createTime, + global::Google.Gemini.EmbedContentBatchStats? batchStats, + global::Google.Gemini.EmbedContentBatchState? state, + string? displayName, string? endTime, string? priority, - string? model, - global::Google.Gemini.InputEmbedContentConfig? inputConfig, - global::Google.Gemini.EmbedContentBatchOutput? output, - global::Google.Gemini.EmbedContentBatchState? state) + string? name, + global::Google.Gemini.EmbedContentBatchOutput? output) { - this.DisplayName = displayName; - this.Name = name; this.UpdateTime = updateTime; - this.BatchStats = batchStats; + this.InputConfig = inputConfig; + this.Model = model; this.CreateTime = createTime; + this.BatchStats = batchStats; + this.State = state; + this.DisplayName = displayName; this.EndTime = endTime; this.Priority = priority; - this.Model = model; - this.InputConfig = inputConfig; + this.Name = name; this.Output = output; - this.State = state; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs index f4312aaaa..de6eaccb6 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchOutput.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class EmbedContentBatchOutput { + /// + /// The responses to the requests in the batch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inlinedResponses")] + public global::Google.Gemini.InlinedEmbedContentResponses? InlinedResponses { get; set; } + /// /// Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.
/// Included only in responses @@ -15,12 +21,6 @@ public sealed partial class EmbedContentBatchOutput [global::System.Text.Json.Serialization.JsonPropertyName("responsesFile")] public string? ResponsesFile { get; set; } - /// - /// The responses to the requests in the batch. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inlinedResponses")] - public global::Google.Gemini.InlinedEmbedContentResponses? InlinedResponses { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class EmbedContentBatchOutput /// /// Initializes a new instance of the class. /// + /// + /// The responses to the requests in the batch. + /// /// /// Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.
/// Included only in responses /// - /// - /// The responses to the requests in the batch. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatchOutput( - string? responsesFile, - global::Google.Gemini.InlinedEmbedContentResponses? inlinedResponses) + global::Google.Gemini.InlinedEmbedContentResponses? inlinedResponses, + string? responsesFile) { - this.ResponsesFile = responsesFile; this.InlinedResponses = inlinedResponses; + this.ResponsesFile = responsesFile; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs index 808cd82f6..97b3e201f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchStats.g.cs @@ -9,11 +9,11 @@ namespace Google.Gemini public sealed partial class EmbedContentBatchStats { /// - /// Output only. The number of requests in the batch.
+ /// Output only. The number of requests that are still pending processing.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] - public string? RequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] + public string? PendingRequestCount { get; set; } /// /// Output only. The number of requests that were successfully processed.
@@ -23,18 +23,18 @@ public sealed partial class EmbedContentBatchStats public string? SuccessfulRequestCount { get; set; } /// - /// Output only. The number of requests that are still pending processing.
+ /// Output only. The number of requests that failed to be processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] - public string? PendingRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] + public string? FailedRequestCount { get; set; } /// - /// Output only. The number of requests that failed to be processed.
+ /// Output only. The number of requests in the batch.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] - public string? FailedRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] + public string? RequestCount { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,35 +45,35 @@ public sealed partial class EmbedContentBatchStats /// /// Initializes a new instance of the class. /// - /// - /// Output only. The number of requests in the batch.
+ /// + /// Output only. The number of requests that are still pending processing.
/// Included only in responses /// /// /// Output only. The number of requests that were successfully processed.
/// Included only in responses /// - /// - /// Output only. The number of requests that are still pending processing.
- /// Included only in responses - /// /// /// Output only. The number of requests that failed to be processed.
/// Included only in responses /// + /// + /// Output only. The number of requests in the batch.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatchStats( - string? requestCount, - string? successfulRequestCount, string? pendingRequestCount, - string? failedRequestCount) + string? successfulRequestCount, + string? failedRequestCount, + string? requestCount) { - this.RequestCount = requestCount; - this.SuccessfulRequestCount = successfulRequestCount; this.PendingRequestCount = pendingRequestCount; + this.SuccessfulRequestCount = successfulRequestCount; this.FailedRequestCount = failedRequestCount; + this.RequestCount = requestCount; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs index 078080f38..9b1f86c35 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentConfig.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class EmbedContentConfig { + /// + /// Optional. Whether to enable OCR for document content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("documentOcr")] + public bool? DocumentOcr { get; set; } + /// /// Optional. The task type of the embedding. /// @@ -15,24 +21,6 @@ public sealed partial class EmbedContentConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter))] public global::Google.Gemini.EmbedContentConfigTaskType? TaskType { get; set; } - /// - /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("autoTruncate")] - public bool? AutoTruncate { get; set; } - - /// - /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputDimensionality")] - public int? OutputDimensionality { get; set; } - - /// - /// Optional. Whether to enable OCR for document content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("documentOcr")] - public bool? DocumentOcr { get; set; } - /// /// Optional. The title for the text. /// @@ -45,6 +33,18 @@ public sealed partial class EmbedContentConfig [global::System.Text.Json.Serialization.JsonPropertyName("audioTrackExtraction")] public bool? AudioTrackExtraction { get; set; } + /// + /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("autoTruncate")] + public bool? AutoTruncate { get; set; } + + /// + /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("outputDimensionality")] + public int? OutputDimensionality { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -54,41 +54,41 @@ public sealed partial class EmbedContentConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. The task type of the embedding. - /// - /// - /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. - /// - /// - /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. - /// /// /// Optional. Whether to enable OCR for document content. /// + /// + /// Optional. The task type of the embedding. + /// /// /// Optional. The title for the text. /// /// /// Optional. Whether to extract audio from video content. /// + /// + /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. + /// + /// + /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentConfig( - global::Google.Gemini.EmbedContentConfigTaskType? taskType, - bool? autoTruncate, - int? outputDimensionality, bool? documentOcr, + global::Google.Gemini.EmbedContentConfigTaskType? taskType, string? title, - bool? audioTrackExtraction) + bool? audioTrackExtraction, + bool? autoTruncate, + int? outputDimensionality) { - this.TaskType = taskType; - this.AutoTruncate = autoTruncate; - this.OutputDimensionality = outputDimensionality; this.DocumentOcr = documentOcr; + this.TaskType = taskType; this.Title = title; this.AudioTrackExtraction = audioTrackExtraction; + this.AutoTruncate = autoTruncate; + this.OutputDimensionality = outputDimensionality; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs index 020fa667b..39aee90d4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequest.g.cs @@ -11,24 +11,18 @@ namespace Google.Gemini public sealed partial class EmbedContentRequest { /// - /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public global::Google.Gemini.Content? Content { get; set; } - - /// - /// Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`). + /// Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`). /// - [global::System.Text.Json.Serialization.JsonPropertyName("taskType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonPropertyName("outputDimensionality")] [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.EmbedContentRequestTaskType? TaskType { get; set; } + public int? OutputDimensionality { get; set; } /// - /// Configurations for the EmbedContent request. + /// Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval. /// - [global::System.Text.Json.Serialization.JsonPropertyName("embedContentConfig")] - public global::Google.Gemini.EmbedContentConfig? EmbedContentConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Obsolete("This property marked as deprecated.")] + public string? Title { get; set; } /// /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` @@ -37,18 +31,24 @@ public sealed partial class EmbedContentRequest public string? Model { get; set; } /// - /// Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`). + /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputDimensionality")] - [global::System.Obsolete("This property marked as deprecated.")] - public int? OutputDimensionality { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::Google.Gemini.Content? Content { get; set; } /// - /// Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval. + /// Configurations for the EmbedContent request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] + [global::System.Text.Json.Serialization.JsonPropertyName("embedContentConfig")] + public global::Google.Gemini.EmbedContentConfig? EmbedContentConfig { get; set; } + + /// + /// Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("taskType")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter))] [global::System.Obsolete("This property marked as deprecated.")] - public string? Title { get; set; } + public global::Google.Gemini.EmbedContentRequestTaskType? TaskType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,26 +59,26 @@ public sealed partial class EmbedContentRequest /// /// Initializes a new instance of the class. /// + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Configurations for the EmbedContent request. /// - /// - /// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}` - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentRequest( + string? model, global::Google.Gemini.Content? content, - global::Google.Gemini.EmbedContentConfig? embedContentConfig, - string? model) + global::Google.Gemini.EmbedContentConfig? embedContentConfig) { + this.Model = model; this.Content = content; this.EmbedContentConfig = embedContentConfig; - this.Model = model; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs index ecd1c5d44..20f3b8094 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbeddingUsageMetadata.g.cs @@ -9,18 +9,18 @@ namespace Google.Gemini public sealed partial class EmbeddingUsageMetadata { /// - /// Output only. List of modalities that were processed in the request input.
+ /// Output only. Number of tokens in the prompt.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenDetails")] - public global::System.Collections.Generic.IList? PromptTokenDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] + public int? PromptTokenCount { get; set; } /// - /// Output only. Number of tokens in the prompt.
+ /// Output only. List of modalities that were processed in the request input.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] - public int? PromptTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenDetails")] + public global::System.Collections.Generic.IList? PromptTokenDetails { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,23 +31,23 @@ public sealed partial class EmbeddingUsageMetadata /// /// Initializes a new instance of the class. /// - /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses - /// /// /// Output only. Number of tokens in the prompt.
/// Included only in responses /// + /// + /// Output only. List of modalities that were processed in the request input.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbeddingUsageMetadata( - global::System.Collections.Generic.IList? promptTokenDetails, - int? promptTokenCount) + int? promptTokenCount, + global::System.Collections.Generic.IList? promptTokenDetails) { - this.PromptTokenDetails = promptTokenDetails; this.PromptTokenCount = promptTokenCount; + this.PromptTokenDetails = promptTokenDetails; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs index df6605eb3..e8cccc0fd 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Environment.g.cs @@ -16,17 +16,18 @@ public sealed partial class Environment public string? Id { get; set; } /// - /// Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
+ /// Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("lastAccessed")] - public string? LastAccessed { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string? Updated { get; set; } /// - /// Sources to be mounted into the environment. + /// Output only. The number of files in the environment, output only.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sources")] - public global::System.Collections.Generic.IList? Sources { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileCount")] + public string? FileCount { get; set; } /// /// Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
@@ -35,19 +36,6 @@ public sealed partial class Environment [global::System.Text.Json.Serialization.JsonPropertyName("created")] public string? Created { get; set; } - /// - /// Network egress configuration for the environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("network_allowlist")] - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } - - /// - /// Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updated")] - public string? Updated { get; set; } - /// /// Output only. The status of the environment container.
/// Included only in responses @@ -56,13 +44,6 @@ public sealed partial class Environment [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter))] public global::Google.Gemini.EnvironmentStatus? Status { get; set; } - /// - /// Output only. The total size of the environment files in bytes, output only.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } - /// /// Network egress mode. /// @@ -71,11 +52,30 @@ public sealed partial class Environment public global::Google.Gemini.EnvironmentNetworkMode? NetworkMode { get; set; } /// - /// Output only. The number of files in the environment, output only.
+ /// Sources to be mounted into the environment. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sources")] + public global::System.Collections.Generic.IList? Sources { get; set; } + + /// + /// Network egress configuration for the environment. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("network_allowlist")] + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } + + /// + /// Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fileCount")] - public string? FileCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("lastAccessed")] + public string? LastAccessed { get; set; } + + /// + /// Output only. The total size of the environment files in bytes, output only.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -90,37 +90,37 @@ public sealed partial class Environment /// Required. Output only. The ID of the environment.
/// Included only in responses /// - /// - /// Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
+ /// + /// Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// - /// - /// Sources to be mounted into the environment. + /// + /// Output only. The number of files in the environment, output only.
+ /// Included only in responses /// /// /// Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// - /// - /// Network egress configuration for the environment. - /// - /// - /// Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
- /// Included only in responses - /// /// /// Output only. The status of the environment container.
/// Included only in responses /// - /// - /// Output only. The total size of the environment files in bytes, output only.
- /// Included only in responses - /// /// /// Network egress mode. /// - /// - /// Output only. The number of files in the environment, output only.
+ /// + /// Sources to be mounted into the environment. + /// + /// + /// Network egress configuration for the environment. + /// + /// + /// Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
+ /// Included only in responses + /// + /// + /// Output only. The total size of the environment files in bytes, output only.
/// Included only in responses /// #if NET7_0_OR_GREATER @@ -128,26 +128,26 @@ public sealed partial class Environment #endif public Environment( string? id, - string? lastAccessed, - global::System.Collections.Generic.IList? sources, - string? created, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, string? updated, + string? fileCount, + string? created, global::Google.Gemini.EnvironmentStatus? status, - string? sizeBytes, global::Google.Gemini.EnvironmentNetworkMode? networkMode, - string? fileCount) + global::System.Collections.Generic.IList? sources, + global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, + string? lastAccessed, + string? sizeBytes) { this.Id = id; - this.LastAccessed = lastAccessed; - this.Sources = sources; - this.Created = created; - this.NetworkAllowlist = networkAllowlist; this.Updated = updated; + this.FileCount = fileCount; + this.Created = created; this.Status = status; - this.SizeBytes = sizeBytes; this.NetworkMode = networkMode; - this.FileCount = fileCount; + this.Sources = sources; + this.NetworkAllowlist = networkAllowlist; + this.LastAccessed = lastAccessed; + this.SizeBytes = sizeBytes; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs index 8e5fec6e9..9b3f721cd 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.File.g.cs @@ -9,17 +9,11 @@ namespace Google.Gemini public sealed partial class File { /// - /// Output only. MIME type of the file.
+ /// Output only. Size of the file in bytes.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } - - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// /// Output only. The timestamp of when the `File` was created.
@@ -29,31 +23,31 @@ public sealed partial class File public string? CreateTime { get; set; } /// - /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` + /// Output only. Processing state of the File.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter))] + public global::Google.Gemini.FileState? State { get; set; } /// - /// Output only. The timestamp of when the `File` was last updated.
- /// Included only in responses + /// Metadata for a video `File`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] + public global::Google.Gemini.VideoFileMetadata? VideoMetadata { get; set; } /// - /// Source of the File. + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// - [global::System.Text.Json.Serialization.JsonPropertyName("source")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter))] - public global::Google.Gemini.FileSource? Source { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } /// - /// Output only. The download uri of the `File`.
+ /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("downloadUri")] - public string? DownloadUri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expirationTime")] + public string? ExpirationTime { get; set; } /// /// Output only. SHA-256 hash of the uploaded bytes.
@@ -63,31 +57,31 @@ public sealed partial class File public byte[]? Sha256Hash { get; set; } /// - /// Metadata for a video `File`. + /// Source of the File. /// - [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] - public global::Google.Gemini.VideoFileMetadata? VideoMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter))] + public global::Google.Gemini.FileSource? Source { get; set; } /// - /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
- /// Included only in responses + /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` ///
- [global::System.Text.Json.Serialization.JsonPropertyName("expirationTime")] - public string? ExpirationTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Output only. The uri of the `File`.
+ /// Output only. The download uri of the `File`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("downloadUri")] + public string? DownloadUri { get; set; } /// - /// Output only. Size of the file in bytes.
+ /// Output only. The timestamp of when the `File` was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// /// Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image" @@ -96,12 +90,18 @@ public sealed partial class File public string? DisplayName { get; set; } /// - /// Output only. Processing state of the File.
+ /// Output only. The uri of the `File`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter))] - public global::Google.Gemini.FileState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } + + /// + /// Output only. MIME type of the file.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -112,90 +112,90 @@ public sealed partial class File /// /// Initializes a new instance of the class. /// - /// - /// Output only. MIME type of the file.
+ /// + /// Output only. Size of the file in bytes.
/// Included only in responses /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// /// /// Output only. The timestamp of when the `File` was created.
/// Included only in responses /// - /// - /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` - /// - /// - /// Output only. The timestamp of when the `File` was last updated.
+ /// + /// Output only. Processing state of the File.
/// Included only in responses /// - /// - /// Source of the File. + /// + /// Metadata for a video `File`. /// - /// - /// Output only. The download uri of the `File`.
+ /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + /// + /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
/// Included only in responses /// /// /// Output only. SHA-256 hash of the uploaded bytes.
/// Included only in responses /// - /// - /// Metadata for a video `File`. + /// + /// Source of the File. /// - /// - /// Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
- /// Included only in responses + /// + /// Immutable. Identifier. The `File` resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456` /// - /// - /// Output only. The uri of the `File`.
+ /// + /// Output only. The download uri of the `File`.
/// Included only in responses /// - /// - /// Output only. Size of the file in bytes.
+ /// + /// Output only. The timestamp of when the `File` was last updated.
/// Included only in responses /// /// /// Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image" /// - /// - /// Output only. Processing state of the File.
+ /// + /// Output only. The uri of the `File`.
+ /// Included only in responses + /// + /// + /// Output only. MIME type of the file.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public File( - string? mimeType, - global::Google.Gemini.Status? error, + string? sizeBytes, string? createTime, - string? name, - string? updateTime, - global::Google.Gemini.FileSource? source, - string? downloadUri, - byte[]? sha256Hash, + global::Google.Gemini.FileState? state, global::Google.Gemini.VideoFileMetadata? videoMetadata, + global::Google.Gemini.Status? error, string? expirationTime, - string? uri, - string? sizeBytes, + byte[]? sha256Hash, + global::Google.Gemini.FileSource? source, + string? name, + string? downloadUri, + string? updateTime, string? displayName, - global::Google.Gemini.FileState? state) + string? uri, + string? mimeType) { - this.MimeType = mimeType; - this.Error = error; + this.SizeBytes = sizeBytes; this.CreateTime = createTime; - this.Name = name; - this.UpdateTime = updateTime; - this.Source = source; - this.DownloadUri = downloadUri; - this.Sha256Hash = sha256Hash; + this.State = state; this.VideoMetadata = videoMetadata; + this.Error = error; this.ExpirationTime = expirationTime; - this.Uri = uri; - this.SizeBytes = sizeBytes; + this.Sha256Hash = sha256Hash; + this.Source = source; + this.Name = name; + this.DownloadUri = downloadUri; + this.UpdateTime = updateTime; this.DisplayName = displayName; - this.State = state; + this.Uri = uri; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs index fc8fdc8ca..b879641af 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileData.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class FileData { - /// - /// Required. URI. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileUri")] - public string? FileUri { get; set; } - /// /// Optional. The IANA standard MIME type of the source data. /// [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] public string? MimeType { get; set; } + /// + /// Required. URI. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fileUri")] + public string? FileUri { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class FileData /// /// Initializes a new instance of the class. /// - /// - /// Required. URI. - /// /// /// Optional. The IANA standard MIME type of the source data. /// + /// + /// Required. URI. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileData( - string? fileUri, - string? mimeType) + string? mimeType, + string? fileUri) { - this.FileUri = fileUri; this.MimeType = mimeType; + this.FileUri = fileUri; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs index 47ddd26d5..622cf6d6e 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearch.g.cs @@ -14,18 +14,18 @@ public sealed partial class FileSearch [global::System.Text.Json.Serialization.JsonPropertyName("topK")] public int? TopK { get; set; } - /// - /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStoreNames")] - public global::System.Collections.Generic.IList? FileSearchStoreNames { get; set; } - /// /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. /// [global::System.Text.Json.Serialization.JsonPropertyName("metadataFilter")] public string? MetadataFilter { get; set; } + /// + /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStoreNames")] + public global::System.Collections.Generic.IList? FileSearchStoreNames { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,23 +38,23 @@ public sealed partial class FileSearch /// /// Optional. The number of semantic retrieval chunks to retrieve. /// - /// - /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` - /// /// /// Optional. Metadata filter to apply to the semantic retrieval documents and chunks. /// + /// + /// Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123` + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearch( int? topK, - global::System.Collections.Generic.IList? fileSearchStoreNames, - string? metadataFilter) + string? metadataFilter, + global::System.Collections.Generic.IList? fileSearchStoreNames) { this.TopK = topK; - this.FileSearchStoreNames = fileSearchStoreNames; this.MetadataFilter = metadataFilter; + this.FileSearchStoreNames = fileSearchStoreNames; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs index 077600d45..37aa99976 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSearchStore.g.cs @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class FileSearchStore { - /// - /// Output only. The number of documents in the `FileSearchStore` that are being processed.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pendingDocumentsCount")] - public string? PendingDocumentsCount { get; set; } - /// /// Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.
/// Included only in responses @@ -23,25 +16,25 @@ public sealed partial class FileSearchStore public string? Name { get; set; } /// - /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("activeDocumentsCount")] + public string? ActiveDocumentsCount { get; set; } /// - /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
+ /// Output only. The number of documents in the `FileSearchStore` that are being processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pendingDocumentsCount")] + public string? PendingDocumentsCount { get; set; } /// - /// Output only. The Timestamp of when the `FileSearchStore` was created.
+ /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] + public string? SizeBytes { get; set; } /// /// Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" @@ -50,18 +43,25 @@ public sealed partial class FileSearchStore public string? DisplayName { get; set; } /// - /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
+ /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("activeDocumentsCount")] - public string? ActiveDocumentsCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("failedDocumentsCount")] + public string? FailedDocumentsCount { get; set; } /// - /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
+ /// Output only. The Timestamp of when the `FileSearchStore` was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("failedDocumentsCount")] - public string? FailedDocumentsCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } + + /// + /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// /// Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used. @@ -78,37 +78,37 @@ public sealed partial class FileSearchStore /// /// Initializes a new instance of the class. /// - /// - /// Output only. The number of documents in the `FileSearchStore` that are being processed.
- /// Included only in responses - /// /// /// Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the "fileSearchStores/" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.
/// Included only in responses /// - /// - /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// + /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
/// Included only in responses /// - /// - /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
+ /// + /// Output only. The number of documents in the `FileSearchStore` that are being processed.
/// Included only in responses /// - /// - /// Output only. The Timestamp of when the `FileSearchStore` was created.
+ /// + /// Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.
/// Included only in responses /// /// /// Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: "Docs on Semantic Retriever" /// - /// - /// Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.
- /// Included only in responses - /// /// /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
/// Included only in responses /// + /// + /// Output only. The Timestamp of when the `FileSearchStore` was created.
+ /// Included only in responses + /// + /// + /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// Included only in responses + /// /// /// Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used. /// @@ -116,24 +116,24 @@ public sealed partial class FileSearchStore [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearchStore( - string? pendingDocumentsCount, string? name, - string? updateTime, + string? activeDocumentsCount, + string? pendingDocumentsCount, string? sizeBytes, - string? createTime, string? displayName, - string? activeDocumentsCount, string? failedDocumentsCount, + string? createTime, + string? updateTime, string? embeddingModel) { - this.PendingDocumentsCount = pendingDocumentsCount; this.Name = name; - this.UpdateTime = updateTime; + this.ActiveDocumentsCount = activeDocumentsCount; + this.PendingDocumentsCount = pendingDocumentsCount; this.SizeBytes = sizeBytes; - this.CreateTime = createTime; this.DisplayName = displayName; - this.ActiveDocumentsCount = activeDocumentsCount; this.FailedDocumentsCount = failedDocumentsCount; + this.CreateTime = createTime; + this.UpdateTime = updateTime; this.EmbeddingModel = embeddingModel; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs index c72e63cb6..f6b755555 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclaration.g.cs @@ -21,10 +21,11 @@ public sealed partial class FunctionDeclaration public string? Name { get; set; } /// - /// Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. + /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] - public object? ResponseJsonSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("behavior")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter))] + public global::Google.Gemini.FunctionDeclarationBehavior? Behavior { get; set; } /// /// Required. A brief description of the function. @@ -33,17 +34,16 @@ public sealed partial class FunctionDeclaration public string? Description { get; set; } /// - /// Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`. + /// Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("parametersJsonSchema")] - public object? ParametersJsonSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] + public object? ResponseJsonSchema { get; set; } /// - /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. + /// Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("behavior")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter))] - public global::Google.Gemini.FunctionDeclarationBehavior? Behavior { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parametersJsonSchema")] + public object? ParametersJsonSchema { get; set; } /// /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). @@ -66,18 +66,18 @@ public sealed partial class FunctionDeclaration /// /// Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128. /// - /// - /// Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. + /// + /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. /// /// /// Required. A brief description of the function. /// + /// + /// Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`. + /// /// /// Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { "type": "object", "properties": { "name": { "type": "string" }, "age": { "type": "integer" } }, "additionalProperties": false, "required": ["name", "age"], "propertyOrdering": ["name", "age"] } ``` This field is mutually exclusive with `parameters`. /// - /// - /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. - /// /// /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// @@ -87,18 +87,18 @@ public sealed partial class FunctionDeclaration public FunctionDeclaration( global::Google.Gemini.Schema? parameters, string? name, - object? responseJsonSchema, + global::Google.Gemini.FunctionDeclarationBehavior? behavior, string? description, + object? responseJsonSchema, object? parametersJsonSchema, - global::Google.Gemini.FunctionDeclarationBehavior? behavior, global::Google.Gemini.Schema? response) { this.Parameters = parameters; this.Name = name; - this.ResponseJsonSchema = responseJsonSchema; + this.Behavior = behavior; this.Description = description; + this.ResponseJsonSchema = responseJsonSchema; this.ParametersJsonSchema = parametersJsonSchema; - this.Behavior = behavior; this.Response = response; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs index 8b6eb7619..0c8bd852c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponse.g.cs @@ -27,6 +27,12 @@ public sealed partial class FunctionResponse [global::System.Text.Json.Serialization.JsonPropertyName("willContinue")] public bool? WillContinue { get; set; } + /// + /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + /// /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. /// @@ -39,12 +45,6 @@ public sealed partial class FunctionResponse [global::System.Text.Json.Serialization.JsonPropertyName("parts")] public global::System.Collections.Generic.IList? Parts { get; set; } - /// - /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -63,15 +63,15 @@ public sealed partial class FunctionResponse /// /// Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`. /// + /// + /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. + /// /// /// Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128. /// /// /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. /// - /// - /// Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif @@ -79,16 +79,16 @@ public FunctionResponse( object? response, global::Google.Gemini.FunctionResponseScheduling? scheduling, bool? willContinue, + string? id, string? name, - global::System.Collections.Generic.IList? parts, - string? id) + global::System.Collections.Generic.IList? parts) { this.Response = response; this.Scheduling = scheduling; this.WillContinue = willContinue; + this.Id = id; this.Name = name; this.Parts = parts; - this.Id = id; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs index 7b743834a..a2456b848 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatch.g.cs @@ -9,16 +9,17 @@ namespace Google.Gemini public sealed partial class GenerateContentBatch { /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("priority")] + public string? Priority { get; set; } /// - /// Configures the input to the batch request. + /// Output only. The time at which the batch processing completed.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] - public global::Google.Gemini.InputConfig? InputConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] + public string? EndTime { get; set; } /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. @@ -26,6 +27,13 @@ public sealed partial class GenerateContentBatch [global::System.Text.Json.Serialization.JsonPropertyName("output")] public global::Google.Gemini.GenerateContentBatchOutput? Output { get; set; } + /// + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + /// /// Output only. The state of the batch.
/// Included only in responses @@ -35,10 +43,17 @@ public sealed partial class GenerateContentBatch public global::Google.Gemini.GenerateContentBatchState? State { get; set; } /// - /// Required. The user-defined name of this batch. + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// Output only. The time at which the batch was created.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Stats about the batch. @@ -47,11 +62,10 @@ public sealed partial class GenerateContentBatch public global::Google.Gemini.BatchStats? BatchStats { get; set; } /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
- /// Included only in responses + /// Configures the input to the batch request. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] + public global::Google.Gemini.InputConfig? InputConfig { get; set; } /// /// Output only. The time at which the batch was last updated.
@@ -61,24 +75,10 @@ public sealed partial class GenerateContentBatch public string? UpdateTime { get; set; } /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("priority")] - public string? Priority { get; set; } - - /// - /// Output only. The time at which the batch was created.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } - - /// - /// Output only. The time at which the batch processing completed.
- /// Included only in responses + /// Required. The user-defined name of this batch. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] - public string? EndTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -89,71 +89,71 @@ public sealed partial class GenerateContentBatch /// /// Initializes a new instance of the class. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. /// - /// - /// Configures the input to the batch request. + /// + /// Output only. The time at which the batch processing completed.
+ /// Included only in responses /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// + /// + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses + /// /// /// Output only. The state of the batch.
/// Included only in responses /// - /// - /// Required. The user-defined name of this batch. + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// + /// Output only. The time at which the batch was created.
+ /// Included only in responses /// /// /// Stats about the batch. /// - /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
- /// Included only in responses + /// + /// Configures the input to the batch request. /// /// /// Output only. The time at which the batch was last updated.
/// Included only in responses /// - /// - /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0. - /// - /// - /// Output only. The time at which the batch was created.
- /// Included only in responses - /// - /// - /// Output only. The time at which the batch processing completed.
- /// Included only in responses + /// + /// Required. The user-defined name of this batch. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentBatch( - string? model, - global::Google.Gemini.InputConfig? inputConfig, + string? priority, + string? endTime, global::Google.Gemini.GenerateContentBatchOutput? output, + string? name, global::Google.Gemini.GenerateContentBatchState? state, - string? displayName, + string? model, + string? createTime, global::Google.Gemini.BatchStats? batchStats, - string? name, + global::Google.Gemini.InputConfig? inputConfig, string? updateTime, - string? priority, - string? createTime, - string? endTime) + string? displayName) { - this.Model = model; - this.InputConfig = inputConfig; + this.Priority = priority; + this.EndTime = endTime; this.Output = output; + this.Name = name; this.State = state; - this.DisplayName = displayName; + this.Model = model; + this.CreateTime = createTime; this.BatchStats = batchStats; - this.Name = name; + this.InputConfig = inputConfig; this.UpdateTime = updateTime; - this.Priority = priority; - this.CreateTime = createTime; - this.EndTime = endTime; + this.DisplayName = displayName; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs index 5fc4d9f03..aab2807d0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentRequest.g.cs @@ -15,10 +15,10 @@ public sealed partial class GenerateContentRequest public global::System.Collections.Generic.IList? SafetySettings { get; set; } /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] - public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContent")] + public string? CachedContent { get; set; } /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. @@ -26,6 +26,18 @@ public sealed partial class GenerateContentRequest [global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("toolConfig")] + public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } + + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// @@ -38,13 +50,6 @@ public sealed partial class GenerateContentRequest [global::System.Text.Json.Serialization.JsonPropertyName("contents")] public global::System.Collections.Generic.IList? Contents { get; set; } - /// - /// Optional. The service tier of the request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter))] - public global::Google.Gemini.GenerateContentRequestServiceTier? ServiceTier { get; set; } - /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// @@ -58,16 +63,11 @@ public sealed partial class GenerateContentRequest public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// Optional. The service tier of the request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("cachedContent")] - public string? CachedContent { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter))] + public global::Google.Gemini.GenerateContentRequestServiceTier? ServiceTier { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -81,58 +81,58 @@ public sealed partial class GenerateContentRequest /// /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications. /// - /// - /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` /// /// /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more. /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// /// /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn. /// /// /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request. /// - /// - /// Optional. The service tier of the request. - /// /// /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. - /// - /// - /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}` + /// + /// Optional. The service tier of the request. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentRequest( global::System.Collections.Generic.IList? safetySettings, - global::Google.Gemini.ToolConfig? toolConfig, + string? cachedContent, global::System.Collections.Generic.IList? tools, + global::Google.Gemini.ToolConfig? toolConfig, + string? model, global::Google.Gemini.Content? systemInstruction, global::System.Collections.Generic.IList? contents, - global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier, bool? store, global::Google.Gemini.GenerationConfig? generationConfig, - string? model, - string? cachedContent) + global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier) { this.SafetySettings = safetySettings; - this.ToolConfig = toolConfig; + this.CachedContent = cachedContent; this.Tools = tools; + this.ToolConfig = toolConfig; + this.Model = model; this.SystemInstruction = systemInstruction; this.Contents = contents; - this.ServiceTier = serviceTier; this.Store = store; this.GenerationConfig = generationConfig; - this.Model = model; - this.CachedContent = cachedContent; + this.ServiceTier = serviceTier; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs index c8897b6fd..9e9bdf92c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentResponse.g.cs @@ -15,16 +15,17 @@ public sealed partial class GenerateContentResponse public global::Google.Gemini.PromptFeedback? PromptFeedback { get; set; } /// - /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. + /// Output only. response_id is used to identify each response.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("modelStatus")] - public global::Google.Gemini.ModelStatus? ModelStatus { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseId")] + public string? ResponseId { get; set; } /// - /// Candidate responses from the model. + /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. /// - [global::System.Text.Json.Serialization.JsonPropertyName("candidates")] - public global::System.Collections.Generic.IList? Candidates { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modelStatus")] + public global::Google.Gemini.ModelStatus? ModelStatus { get; set; } /// /// Output only. The model version used to generate the response.
@@ -34,11 +35,10 @@ public sealed partial class GenerateContentResponse public string? ModelVersion { get; set; } /// - /// Output only. response_id is used to identify each response.
- /// Included only in responses + /// Candidate responses from the model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("responseId")] - public string? ResponseId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidates")] + public global::System.Collections.Generic.IList? Candidates { get; set; } /// /// Metadata on the generation request's token usage. @@ -58,19 +58,19 @@ public sealed partial class GenerateContentResponse /// /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. /// + /// + /// Output only. response_id is used to identify each response.
+ /// Included only in responses + /// /// /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. /// - /// - /// Candidate responses from the model. - /// /// /// Output only. The model version used to generate the response.
/// Included only in responses /// - /// - /// Output only. response_id is used to identify each response.
- /// Included only in responses + /// + /// Candidate responses from the model. /// /// /// Metadata on the generation request's token usage. @@ -80,17 +80,17 @@ public sealed partial class GenerateContentResponse #endif public GenerateContentResponse( global::Google.Gemini.PromptFeedback? promptFeedback, + string? responseId, global::Google.Gemini.ModelStatus? modelStatus, - global::System.Collections.Generic.IList? candidates, string? modelVersion, - string? responseId, + global::System.Collections.Generic.IList? candidates, global::Google.Gemini.UsageMetadata? usageMetadata) { this.PromptFeedback = promptFeedback; + this.ResponseId = responseId; this.ModelStatus = modelStatus; - this.Candidates = candidates; this.ModelVersion = modelVersion; - this.ResponseId = responseId; + this.Candidates = candidates; this.UsageMetadata = usageMetadata; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs index a2ed91a50..a1716d62b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFile.g.cs @@ -9,10 +9,12 @@ namespace Google.Gemini public sealed partial class GeneratedFile { /// - /// MIME type of the generatedFile. + /// Output only. The state of the GeneratedFile.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter))] + public global::Google.Gemini.GeneratedFileState? State { get; set; } /// /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). @@ -27,12 +29,10 @@ public sealed partial class GeneratedFile public string? Name { get; set; } /// - /// Output only. The state of the GeneratedFile.
- /// Included only in responses + /// MIME type of the generatedFile. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter))] - public global::Google.Gemini.GeneratedFileState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -43,8 +43,9 @@ public sealed partial class GeneratedFile /// /// Initializes a new instance of the class. /// - /// - /// MIME type of the generatedFile. + /// + /// Output only. The state of the GeneratedFile.
+ /// Included only in responses /// /// /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). @@ -52,23 +53,22 @@ public sealed partial class GeneratedFile /// /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` /// - /// - /// Output only. The state of the GeneratedFile.
- /// Included only in responses + /// + /// MIME type of the generatedFile. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GeneratedFile( - string? mimeType, + global::Google.Gemini.GeneratedFileState? state, global::Google.Gemini.Status? error, string? name, - global::Google.Gemini.GeneratedFileState? state) + string? mimeType) { - this.MimeType = mimeType; + this.State = state; this.Error = error; this.Name = name; - this.State = state; + this.MimeType = mimeType; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs index dd1e85a00..5268bd5cb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfig.g.cs @@ -9,16 +9,22 @@ namespace Google.Gemini public sealed partial class GenerationConfig { /// - /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. + /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. /// - [global::System.Text.Json.Serialization.JsonPropertyName("presencePenalty")] - public float? PresencePenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enableAffectiveDialog")] + public bool? EnableAffectiveDialog { get; set; } /// - /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. + /// Optional. Enables enhanced civic answers. It may not be available for all models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseModalities")] - public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enableEnhancedCivicAnswers")] + public bool? EnableEnhancedCivicAnswers { get; set; } + + /// + /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] + public object? ResponseJsonSchema { get; set; } /// /// Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. @@ -27,40 +33,40 @@ public sealed partial class GenerationConfig public int? TopK { get; set; } /// - /// Config for speech generation and transcription. + /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. /// - [global::System.Text.Json.Serialization.JsonPropertyName("speechConfig")] - public global::Google.Gemini.SpeechConfig? SpeechConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] + public float? FrequencyPenalty { get; set; } /// - /// Optional. If true, export the logprobs results in response. + /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseLogprobs")] - public bool? ResponseLogprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// - /// Config for thinking features. + /// Config for translation features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thinkingConfig")] - public global::Google.Gemini.ThinkingConfig? ThinkingConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("translationConfig")] + public global::Google.Gemini.TranslationConfig? TranslationConfig { get; set; } /// - /// Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function. + /// Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] - public int? MaxOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseMimeType")] + public string? ResponseMimeType { get; set; } /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseSchema")] - public global::Google.Gemini.Schema? ResponseSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidateCount")] + public int? CandidateCount { get; set; } /// - /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public int? Seed { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseSchema")] + public global::Google.Gemini.Schema? ResponseSchema { get; set; } /// /// Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. @@ -69,22 +75,23 @@ public sealed partial class GenerationConfig public float? TopP { get; set; } /// - /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// Optional. If true, export the logprobs results in response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enableEnhancedCivicAnswers")] - public bool? EnableEnhancedCivicAnswers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseLogprobs")] + public bool? ResponseLogprobs { get; set; } /// - /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] - public float? FrequencyPenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] + public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { get; set; } /// - /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. + /// Optional. If specified, the media resolution specified will be used. /// - [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] - public global::System.Collections.Generic.IList? StopSequences { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter))] + public global::Google.Gemini.GenerationConfigMediaResolution? MediaResolution { get; set; } /// /// Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]. @@ -93,53 +100,40 @@ public sealed partial class GenerationConfig public int? Logprobs { get; set; } /// - /// The audio transcription configuration. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] - public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { get; set; } - - /// - /// Config for translation features. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("translationConfig")] - public global::Google.Gemini.TranslationConfig? TranslationConfig { get; set; } - - /// - /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. + /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public int? Seed { get; set; } /// - /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. + /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enableAffectiveDialog")] - public bool? EnableAffectiveDialog { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] + public global::System.Collections.Generic.IList? StopSequences { get; set; } /// - /// Optional. If specified, the media resolution specified will be used. + /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter))] - public global::Google.Gemini.GenerationConfigMediaResolution? MediaResolution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseModalities")] + public global::System.Collections.Generic.IList? ResponseModalities { get; set; } /// - /// Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types. + /// Config for thinking features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseMimeType")] - public string? ResponseMimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thinkingConfig")] + public global::Google.Gemini.ThinkingConfig? ThinkingConfig { get; set; } /// - /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. + /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] - public object? ResponseJsonSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseFormat")] + public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { get; set; } /// - /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) + /// Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function. /// - [global::System.Text.Json.Serialization.JsonPropertyName("candidateCount")] - public int? CandidateCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] + public int? MaxOutputTokens { get; set; } /// /// Config for image generation features. @@ -148,10 +142,16 @@ public sealed partial class GenerationConfig public global::Google.Gemini.ImageConfig? ImageConfig { get; set; } /// - /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. + /// Config for speech generation and transcription. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseFormat")] - public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speechConfig")] + public global::Google.Gemini.SpeechConfig? SpeechConfig { get; set; } + + /// + /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("presencePenalty")] + public float? PresencePenalty { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -162,131 +162,131 @@ public sealed partial class GenerationConfig /// /// Initializes a new instance of the class. /// - /// - /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. + /// + /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. /// - /// - /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. + /// + /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// + /// + /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. /// /// /// Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. /// - /// - /// Config for speech generation and transcription. + /// + /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. /// - /// - /// Optional. If true, export the logprobs results in response. + /// + /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. /// - /// - /// Config for thinking features. + /// + /// Config for translation features. /// - /// - /// Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function. + /// + /// Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types. + /// + /// + /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) /// /// /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - /// - /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. - /// /// /// Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests. /// - /// - /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// + /// Optional. If true, export the logprobs results in response. /// - /// - /// Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit. + /// + /// The audio transcription configuration. /// - /// - /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. + /// + /// Optional. If specified, the media resolution specified will be used. /// /// /// Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]. /// - /// - /// The audio transcription configuration. - /// - /// - /// Config for translation features. - /// - /// - /// Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]. + /// + /// Optional. Seed used in decoding. If not set, the request uses a randomly generated seed. /// - /// - /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. + /// + /// Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response. /// - /// - /// Optional. If specified, the media resolution specified will be used. + /// + /// Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text. /// - /// - /// Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types. + /// + /// Config for thinking features. /// - /// - /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. + /// + /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. /// - /// - /// Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family) + /// + /// Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function. /// /// /// Config for image generation features. /// - /// - /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. + /// + /// Config for speech generation and transcription. + /// + /// + /// Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerationConfig( - float? presencePenalty, - global::System.Collections.Generic.IList? responseModalities, - int? topK, - global::Google.Gemini.SpeechConfig? speechConfig, - bool? responseLogprobs, - global::Google.Gemini.ThinkingConfig? thinkingConfig, - int? maxOutputTokens, - global::Google.Gemini.Schema? responseSchema, - int? seed, - float? topP, + bool? enableAffectiveDialog, bool? enableEnhancedCivicAnswers, + object? responseJsonSchema, + int? topK, float? frequencyPenalty, - global::System.Collections.Generic.IList? stopSequences, - int? logprobs, - global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, - global::Google.Gemini.TranslationConfig? translationConfig, float? temperature, - bool? enableAffectiveDialog, - global::Google.Gemini.GenerationConfigMediaResolution? mediaResolution, + global::Google.Gemini.TranslationConfig? translationConfig, string? responseMimeType, - object? responseJsonSchema, int? candidateCount, + global::Google.Gemini.Schema? responseSchema, + float? topP, + bool? responseLogprobs, + global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, + global::Google.Gemini.GenerationConfigMediaResolution? mediaResolution, + int? logprobs, + int? seed, + global::System.Collections.Generic.IList? stopSequences, + global::System.Collections.Generic.IList? responseModalities, + global::Google.Gemini.ThinkingConfig? thinkingConfig, + global::Google.Gemini.ResponseFormatConfig? responseFormat, + int? maxOutputTokens, global::Google.Gemini.ImageConfig? imageConfig, - global::Google.Gemini.ResponseFormatConfig? responseFormat) + global::Google.Gemini.SpeechConfig? speechConfig, + float? presencePenalty) { - this.PresencePenalty = presencePenalty; - this.ResponseModalities = responseModalities; - this.TopK = topK; - this.SpeechConfig = speechConfig; - this.ResponseLogprobs = responseLogprobs; - this.ThinkingConfig = thinkingConfig; - this.MaxOutputTokens = maxOutputTokens; - this.ResponseSchema = responseSchema; - this.Seed = seed; - this.TopP = topP; + this.EnableAffectiveDialog = enableAffectiveDialog; this.EnableEnhancedCivicAnswers = enableEnhancedCivicAnswers; + this.ResponseJsonSchema = responseJsonSchema; + this.TopK = topK; this.FrequencyPenalty = frequencyPenalty; - this.StopSequences = stopSequences; - this.Logprobs = logprobs; - this.AudioTranscriptionConfig = audioTranscriptionConfig; - this.TranslationConfig = translationConfig; this.Temperature = temperature; - this.EnableAffectiveDialog = enableAffectiveDialog; - this.MediaResolution = mediaResolution; + this.TranslationConfig = translationConfig; this.ResponseMimeType = responseMimeType; - this.ResponseJsonSchema = responseJsonSchema; this.CandidateCount = candidateCount; - this.ImageConfig = imageConfig; + this.ResponseSchema = responseSchema; + this.TopP = topP; + this.ResponseLogprobs = responseLogprobs; + this.AudioTranscriptionConfig = audioTranscriptionConfig; + this.MediaResolution = mediaResolution; + this.Logprobs = logprobs; + this.Seed = seed; + this.StopSequences = stopSequences; + this.ResponseModalities = responseModalities; + this.ThinkingConfig = thinkingConfig; this.ResponseFormat = responseFormat; + this.MaxOutputTokens = maxOutputTokens; + this.ImageConfig = imageConfig; + this.SpeechConfig = speechConfig; + this.PresencePenalty = presencePenalty; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs index 851ce0aed..a9190cacc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaGroundingSupport.g.cs @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport { - /// - /// Segment of the content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("segment")] - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Segment { get; set; } - - /// - /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunkIndices")] - public global::System.Collections.Generic.IList? GroundingChunkIndices { get; set; } - /// /// Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.
/// Included only in responses @@ -33,6 +21,18 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport [global::System.Text.Json.Serialization.JsonPropertyName("confidenceScores")] public global::System.Collections.Generic.IList? ConfidenceScores { get; set; } + /// + /// Segment of the content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("segment")] + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Segment { get; set; } + + /// + /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunkIndices")] + public global::System.Collections.Generic.IList? GroundingChunkIndices { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,12 +42,6 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport /// /// Initializes a new instance of the class. /// - /// - /// Segment of the content. - /// - /// - /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). - /// /// /// Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.
/// Included only in responses @@ -55,19 +49,25 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport /// /// Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices. /// + /// + /// Segment of the content. + /// + /// + /// Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleAiGenerativelanguageV1betaGroundingSupport( - global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment, - global::System.Collections.Generic.IList? groundingChunkIndices, global::System.Collections.Generic.IList? renderedParts, - global::System.Collections.Generic.IList? confidenceScores) + global::System.Collections.Generic.IList? confidenceScores, + global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment, + global::System.Collections.Generic.IList? groundingChunkIndices) { - this.Segment = segment; - this.GroundingChunkIndices = groundingChunkIndices; this.RenderedParts = renderedParts; this.ConfidenceScores = confidenceScores; + this.Segment = segment; + this.GroundingChunkIndices = groundingChunkIndices; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs index 6d764764c..dec5fe8ce 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleAiGenerativelanguageV1betaSegment.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class GoogleAiGenerativelanguageV1betaSegment { - /// - /// End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endIndex")] - public int? EndIndex { get; set; } - /// /// The index of a Part object within its parent Content object. /// @@ -21,10 +15,10 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment public int? PartIndex { get; set; } /// - /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. + /// End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. /// - [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] - public int? StartIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("endIndex")] + public int? EndIndex { get; set; } /// /// The text corresponding to the segment from the response. @@ -32,6 +26,12 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment [global::System.Text.Json.Serialization.JsonPropertyName("text")] public string? Text { get; set; } + /// + /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] + public int? StartIndex { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,31 +41,31 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment /// /// Initializes a new instance of the class. /// - /// - /// End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. - /// /// /// The index of a Part object within its parent Content object. /// - /// - /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. + /// + /// End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. /// /// /// The text corresponding to the segment from the response. /// + /// + /// Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleAiGenerativelanguageV1betaSegment( - int? endIndex, int? partIndex, - int? startIndex, - string? text) + int? endIndex, + string? text, + int? startIndex) { - this.EndIndex = endIndex; this.PartIndex = partIndex; - this.StartIndex = startIndex; + this.EndIndex = endIndex; this.Text = text; + this.StartIndex = startIndex; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs index 04271e10b..bfbaec0c2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunk.g.cs @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class GroundingChunk { - /// - /// Chunk from context retrieved by the file search tool. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrievedContext")] - public global::Google.Gemini.RetrievedContext? RetrievedContext { get; set; } - - /// - /// Chunk from image search. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public global::Google.Gemini.Image? Image { get; set; } - /// /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. /// @@ -32,6 +20,18 @@ public sealed partial class GroundingChunk [global::System.Text.Json.Serialization.JsonPropertyName("web")] public global::Google.Gemini.Web? Web { get; set; } + /// + /// Chunk from image search. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public global::Google.Gemini.Image? Image { get; set; } + + /// + /// Chunk from context retrieved by the file search tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("retrievedContext")] + public global::Google.Gemini.RetrievedContext? RetrievedContext { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,31 +41,31 @@ public sealed partial class GroundingChunk /// /// Initializes a new instance of the class. /// - /// - /// Chunk from context retrieved by the file search tool. - /// - /// - /// Chunk from image search. - /// /// /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. /// /// /// Chunk from the web. /// + /// + /// Chunk from image search. + /// + /// + /// Chunk from context retrieved by the file search tool. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingChunk( - global::Google.Gemini.RetrievedContext? retrievedContext, - global::Google.Gemini.Image? image, global::Google.Gemini.Maps? maps, - global::Google.Gemini.Web? web) + global::Google.Gemini.Web? web, + global::Google.Gemini.Image? image, + global::Google.Gemini.RetrievedContext? retrievedContext) { - this.RetrievedContext = retrievedContext; - this.Image = image; this.Maps = maps; this.Web = web; + this.Image = image; + this.RetrievedContext = retrievedContext; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs index f78a27bc4..1c37021ba 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingChunkCustomMetadata.g.cs @@ -14,18 +14,18 @@ public sealed partial class GroundingChunkCustomMetadata [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] public string? StringValue { get; set; } - /// - /// The key of the metadata. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public string? Key { get; set; } - /// /// A list of string values. /// [global::System.Text.Json.Serialization.JsonPropertyName("stringListValue")] public global::Google.Gemini.GroundingChunkStringList? StringListValue { get; set; } + /// + /// The key of the metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { get; set; } + /// /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. /// @@ -44,12 +44,12 @@ public sealed partial class GroundingChunkCustomMetadata /// /// Optional. The string value of the metadata. /// - /// - /// The key of the metadata. - /// /// /// A list of string values. /// + /// + /// The key of the metadata. + /// /// /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. /// @@ -58,13 +58,13 @@ public sealed partial class GroundingChunkCustomMetadata #endif public GroundingChunkCustomMetadata( string? stringValue, - string? key, global::Google.Gemini.GroundingChunkStringList? stringListValue, + string? key, float? numericValue) { this.StringValue = stringValue; - this.Key = key; this.StringListValue = stringListValue; + this.Key = key; this.NumericValue = numericValue; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs index 54e634c74..88be4f981 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingMetadata.g.cs @@ -9,16 +9,10 @@ namespace Google.Gemini public sealed partial class GroundingMetadata { /// - /// Web search queries for the following-up web search. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webSearchQueries")] - public global::System.Collections.Generic.IList? WebSearchQueries { get; set; } - - /// - /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. + /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleMapsWidgetContextToken")] - public string? GoogleMapsWidgetContextToken { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunks")] + public global::System.Collections.Generic.IList? GroundingChunks { get; set; } /// /// Metadata related to retrieval in the grounding flow. @@ -26,6 +20,12 @@ public sealed partial class GroundingMetadata [global::System.Text.Json.Serialization.JsonPropertyName("retrievalMetadata")] public global::Google.Gemini.RetrievalMetadata? RetrievalMetadata { get; set; } + /// + /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("googleMapsWidgetContextToken")] + public string? GoogleMapsWidgetContextToken { get; set; } + /// /// Google search entry point. /// @@ -39,16 +39,16 @@ public sealed partial class GroundingMetadata public global::System.Collections.Generic.IList? GroundingSupports { get; set; } /// - /// Image search queries used for grounding. + /// Web search queries for the following-up web search. /// - [global::System.Text.Json.Serialization.JsonPropertyName("imageSearchQueries")] - public global::System.Collections.Generic.IList? ImageSearchQueries { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("webSearchQueries")] + public global::System.Collections.Generic.IList? WebSearchQueries { get; set; } /// - /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. + /// Image search queries used for grounding. /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunks")] - public global::System.Collections.Generic.IList? GroundingChunks { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("imageSearchQueries")] + public global::System.Collections.Generic.IList? ImageSearchQueries { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,46 +59,46 @@ public sealed partial class GroundingMetadata /// /// Initializes a new instance of the class. /// - /// - /// Web search queries for the following-up web search. - /// - /// - /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. + /// + /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. /// /// /// Metadata related to retrieval in the grounding flow. /// + /// + /// Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled. + /// /// /// Google search entry point. /// /// /// List of grounding support. /// + /// + /// Web search queries for the following-up web search. + /// /// /// Image search queries used for grounding. /// - /// - /// List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingMetadata( - global::System.Collections.Generic.IList? webSearchQueries, - string? googleMapsWidgetContextToken, + global::System.Collections.Generic.IList? groundingChunks, global::Google.Gemini.RetrievalMetadata? retrievalMetadata, + string? googleMapsWidgetContextToken, global::Google.Gemini.SearchEntryPoint? searchEntryPoint, global::System.Collections.Generic.IList? groundingSupports, - global::System.Collections.Generic.IList? imageSearchQueries, - global::System.Collections.Generic.IList? groundingChunks) + global::System.Collections.Generic.IList? webSearchQueries, + global::System.Collections.Generic.IList? imageSearchQueries) { - this.WebSearchQueries = webSearchQueries; - this.GoogleMapsWidgetContextToken = googleMapsWidgetContextToken; + this.GroundingChunks = groundingChunks; this.RetrievalMetadata = retrievalMetadata; + this.GoogleMapsWidgetContextToken = googleMapsWidgetContextToken; this.SearchEntryPoint = searchEntryPoint; this.GroundingSupports = groundingSupports; + this.WebSearchQueries = webSearchQueries; this.ImageSearchQueries = imageSearchQueries; - this.GroundingChunks = groundingChunks; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs index 0e2e64fae..3f39401bd 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Hyperparameters.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class Hyperparameters { /// - /// Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. + /// Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used. /// - [global::System.Text.Json.Serialization.JsonPropertyName("learningRate")] - public float? LearningRate { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("epochCount")] + public int? EpochCount { get; set; } /// /// Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. @@ -21,16 +21,16 @@ public sealed partial class Hyperparameters public int? BatchSize { get; set; } /// - /// Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used. + /// Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. /// - [global::System.Text.Json.Serialization.JsonPropertyName("learningRateMultiplier")] - public float? LearningRateMultiplier { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("learningRate")] + public float? LearningRate { get; set; } /// - /// Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used. + /// Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used. /// - [global::System.Text.Json.Serialization.JsonPropertyName("epochCount")] - public int? EpochCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("learningRateMultiplier")] + public float? LearningRateMultiplier { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -41,31 +41,31 @@ public sealed partial class Hyperparameters /// /// Initializes a new instance of the class. /// - /// - /// Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. + /// + /// Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used. /// /// /// Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. /// + /// + /// Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. + /// /// /// Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used. /// - /// - /// Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Hyperparameters( - float? learningRate, + int? epochCount, int? batchSize, - float? learningRateMultiplier, - int? epochCount) + float? learningRate, + float? learningRateMultiplier) { - this.LearningRate = learningRate; + this.EpochCount = epochCount; this.BatchSize = batchSize; + this.LearningRate = learningRate; this.LearningRateMultiplier = learningRateMultiplier; - this.EpochCount = epochCount; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs index 3bd167929..1e805fd7d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Image.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class Image { + /// + /// The web page URI for attribution. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sourceUri")] + public string? SourceUri { get; set; } + /// /// The image asset URL. /// @@ -26,12 +32,6 @@ public sealed partial class Image [global::System.Text.Json.Serialization.JsonPropertyName("title")] public string? Title { get; set; } - /// - /// The web page URI for attribution. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sourceUri")] - public string? SourceUri { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,6 +41,9 @@ public sealed partial class Image /// /// Initializes a new instance of the class. /// + /// + /// The web page URI for attribution. + /// /// /// The image asset URL. /// @@ -50,22 +53,19 @@ public sealed partial class Image /// /// The title of the web page that the image is from. /// - /// - /// The web page URI for attribution. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Image( + string? sourceUri, string? imageUri, string? domain, - string? title, - string? sourceUri) + string? title) { + this.SourceUri = sourceUri; this.ImageUri = imageUri; this.Domain = domain; this.Title = title; - this.SourceUri = sourceUri; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs index 38e8ad79c..7dba850b9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImageResponseFormat.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini /// public sealed partial class ImageResponseFormat { + /// + /// Optional. The delivery mode for the image output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("delivery")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter))] + public global::Google.Gemini.ImageResponseFormatDelivery? Delivery { get; set; } + /// /// Optional. The MIME type of the image output. /// @@ -22,13 +29,6 @@ public sealed partial class ImageResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter))] public global::Google.Gemini.ImageResponseFormatAspectRatio? AspectRatio { get; set; } - /// - /// Optional. The delivery mode for the image output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("delivery")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter))] - public global::Google.Gemini.ImageResponseFormatDelivery? Delivery { get; set; } - /// /// Optional. The size of the image output. /// @@ -45,15 +45,15 @@ public sealed partial class ImageResponseFormat /// /// Initializes a new instance of the class. /// + /// + /// Optional. The delivery mode for the image output. + /// /// /// Optional. The MIME type of the image output. /// /// /// Optional. The aspect ratio for the image output. /// - /// - /// Optional. The delivery mode for the image output. - /// /// /// Optional. The size of the image output. /// @@ -61,14 +61,14 @@ public sealed partial class ImageResponseFormat [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImageResponseFormat( + global::Google.Gemini.ImageResponseFormatDelivery? delivery, global::Google.Gemini.ImageResponseFormatMimeType? mimeType, global::Google.Gemini.ImageResponseFormatAspectRatio? aspectRatio, - global::Google.Gemini.ImageResponseFormatDelivery? delivery, global::Google.Gemini.ImageResponseFormatImageSize? imageSize) { + this.Delivery = delivery; this.MimeType = mimeType; this.AspectRatio = aspectRatio; - this.Delivery = delivery; this.ImageSize = imageSize; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs index 99504f177..963b5b197 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ImportFileRequest.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ImportFileRequest { - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] - public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; } - /// /// Required. The name of the `File` to import. Example: `files/abc-123` /// @@ -26,6 +20,12 @@ public sealed partial class ImportFileRequest [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// + [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] + public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class ImportFileRequest /// /// Initializes a new instance of the class. /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// /// Required. The name of the `File` to import. Example: `files/abc-123` /// /// /// Custom metadata to be associated with the file. /// + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImportFileRequest( - global::Google.Gemini.ChunkingConfig? chunkingConfig, string? fileName, - global::System.Collections.Generic.IList? customMetadata) + global::System.Collections.Generic.IList? customMetadata, + global::Google.Gemini.ChunkingConfig? chunkingConfig) { - this.ChunkingConfig = chunkingConfig; this.FileName = fileName; this.CustomMetadata = customMetadata; + this.ChunkingConfig = chunkingConfig; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs index 21763257e..c40067202 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentResponse.g.cs @@ -14,6 +14,12 @@ public sealed partial class InlinedEmbedContentResponse [global::System.Text.Json.Serialization.JsonPropertyName("error")] public global::Google.Gemini.Status? Error { get; set; } + /// + /// The response to an `EmbedContentRequest`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public global::Google.Gemini.EmbedContentResponse? Response { get; set; } + /// /// Output only. The metadata associated with the request.
/// Included only in responses @@ -21,12 +27,6 @@ public sealed partial class InlinedEmbedContentResponse [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } - /// - /// The response to an `EmbedContentRequest`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::Google.Gemini.EmbedContentResponse? Response { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,24 +39,24 @@ public sealed partial class InlinedEmbedContentResponse /// /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// + /// + /// The response to an `EmbedContentRequest`. + /// /// /// Output only. The metadata associated with the request.
/// Included only in responses /// - /// - /// The response to an `EmbedContentRequest`. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InlinedEmbedContentResponse( global::Google.Gemini.Status? error, - object? metadata, - global::Google.Gemini.EmbedContentResponse? response) + global::Google.Gemini.EmbedContentResponse? response, + object? metadata) { this.Error = error; - this.Metadata = metadata; this.Response = response; + this.Metadata = metadata; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs index 85a0a5384..f3ca3ee44 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class InlinedResponse { - /// - /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::Google.Gemini.GenerateContentResponse? Response { get; set; } - /// /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// [global::System.Text.Json.Serialization.JsonPropertyName("error")] public global::Google.Gemini.Status? Error { get; set; } + /// + /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public global::Google.Gemini.GenerateContentResponse? Response { get; set; } + /// /// Output only. The metadata associated with the request.
/// Included only in responses @@ -36,12 +36,12 @@ public sealed partial class InlinedResponse /// /// Initializes a new instance of the class. /// - /// - /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. - /// /// /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). /// + /// + /// Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`. + /// /// /// Output only. The metadata associated with the request.
/// Included only in responses @@ -50,12 +50,12 @@ public sealed partial class InlinedResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InlinedResponse( - global::Google.Gemini.GenerateContentResponse? response, global::Google.Gemini.Status? error, + global::Google.Gemini.GenerateContentResponse? response, object? metadata) { - this.Response = response; this.Error = error; + this.Response = response; this.Metadata = metadata; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LatLng.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LatLng.g.cs index 8c9f6ab6a..9a1d2d1e7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LatLng.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LatLng.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini ///
public sealed partial class LatLng { - /// - /// The latitude in degrees. It must be in the range [-90.0, +90.0]. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("latitude")] - public double? Latitude { get; set; } - /// /// The longitude in degrees. It must be in the range [-180.0, +180.0]. /// [global::System.Text.Json.Serialization.JsonPropertyName("longitude")] public double? Longitude { get; set; } + /// + /// The latitude in degrees. It must be in the range [-90.0, +90.0]. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("latitude")] + public double? Latitude { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class LatLng /// /// Initializes a new instance of the class. /// - /// - /// The latitude in degrees. It must be in the range [-90.0, +90.0]. - /// /// /// The longitude in degrees. It must be in the range [-180.0, +180.0]. /// + /// + /// The latitude in degrees. It must be in the range [-90.0, +90.0]. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LatLng( - double? latitude, - double? longitude) + double? longitude, + double? latitude) { - this.Latitude = latitude; this.Longitude = longitude; + this.Latitude = latitude; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCachedContentsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCachedContentsResponse.g.cs index 6dfb4ee0f..06dc9344d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCachedContentsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListCachedContentsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListCachedContentsResponse { - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - /// /// List of cached contents. /// [global::System.Text.Json.Serialization.JsonPropertyName("cachedContents")] public global::System.Collections.Generic.IList? CachedContents { get; set; } + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListCachedContentsResponse /// /// Initializes a new instance of the class. /// - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. - /// /// /// List of cached contents. /// + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListCachedContentsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? cachedContents) + global::System.Collections.Generic.IList? cachedContents, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.CachedContents = cachedContents; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs index f5a2d0d72..616b816d2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListEnvironmentsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListEnvironmentsResponse { - /// - /// Environments belonging to the provided project. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("environments")] - public global::System.Collections.Generic.IList? Environments { get; set; } - /// /// Pagination token. /// [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] public string? NextPageToken { get; set; } + /// + /// Environments belonging to the provided project. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("environments")] + public global::System.Collections.Generic.IList? Environments { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListEnvironmentsResponse /// /// Initializes a new instance of the class. /// - /// - /// Environments belonging to the provided project. - /// /// /// Pagination token. /// + /// + /// Environments belonging to the provided project. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListEnvironmentsResponse( - global::System.Collections.Generic.IList? environments, - string? nextPageToken) + string? nextPageToken, + global::System.Collections.Generic.IList? environments) { - this.Environments = environments; this.NextPageToken = nextPageToken; + this.Environments = environments; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs index af0c73434..965fc58da 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListFileSearchStoresResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListFileSearchStoresResponse { - /// - /// The returned rag_stores. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStores")] - public global::System.Collections.Generic.IList? FileSearchStores { get; set; } - /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. /// [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] public string? NextPageToken { get; set; } + /// + /// The returned rag_stores. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStores")] + public global::System.Collections.Generic.IList? FileSearchStores { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListFileSearchStoresResponse /// /// Initializes a new instance of the class. /// - /// - /// The returned rag_stores. - /// /// /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. /// + /// + /// The returned rag_stores. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListFileSearchStoresResponse( - global::System.Collections.Generic.IList? fileSearchStores, - string? nextPageToken) + string? nextPageToken, + global::System.Collections.Generic.IList? fileSearchStores) { - this.FileSearchStores = fileSearchStores; this.NextPageToken = nextPageToken; + this.FileSearchStores = fileSearchStores; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListModelsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListModelsResponse.g.cs index d4af53509..76ed7050d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListModelsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListModelsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListModelsResponse { - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - /// /// The returned Models. /// [global::System.Text.Json.Serialization.JsonPropertyName("models")] public global::System.Collections.Generic.IList? Models { get; set; } + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListModelsResponse /// /// Initializes a new instance of the class. /// - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// /// /// The returned Models. /// + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListModelsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? models) + global::System.Collections.Generic.IList? models, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Models = models; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs index fb6d6f43a..800f4e39f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListPermissionsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListPermissionsResponse { - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] - public string? NextPageToken { get; set; } - /// /// Returned permissions. /// [global::System.Text.Json.Serialization.JsonPropertyName("permissions")] public global::System.Collections.Generic.IList? Permissions { get; set; } + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("nextPageToken")] + public string? NextPageToken { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ListPermissionsResponse /// /// Initializes a new instance of the class. /// - /// - /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. - /// /// /// Returned permissions. /// + /// + /// A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListPermissionsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? permissions) + global::System.Collections.Generic.IList? permissions, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Permissions = permissions; + this.NextPageToken = nextPageToken; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs index 8befbd8fe..ef37df846 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.LogprobsResult.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class LogprobsResult { - /// - /// Sum of log probabilities for all tokens. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("logProbabilitySum")] - public float? LogProbabilitySum { get; set; } - /// /// Length = total number of decoding steps. /// [global::System.Text.Json.Serialization.JsonPropertyName("topCandidates")] public global::System.Collections.Generic.IList? TopCandidates { get; set; } + /// + /// Sum of log probabilities for all tokens. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logProbabilitySum")] + public float? LogProbabilitySum { get; set; } + /// /// Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. /// @@ -35,12 +35,12 @@ public sealed partial class LogprobsResult /// /// Initializes a new instance of the class. /// - /// - /// Sum of log probabilities for all tokens. - /// /// /// Length = total number of decoding steps. /// + /// + /// Sum of log probabilities for all tokens. + /// /// /// Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates. /// @@ -48,12 +48,12 @@ public sealed partial class LogprobsResult [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public LogprobsResult( - float? logProbabilitySum, global::System.Collections.Generic.IList? topCandidates, + float? logProbabilitySum, global::System.Collections.Generic.IList? chosenCandidates) { - this.LogProbabilitySum = logProbabilitySum; this.TopCandidates = topCandidates; + this.LogProbabilitySum = logProbabilitySum; this.ChosenCandidates = chosenCandidates; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs index a0fe303c3..1b76c8df2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs @@ -20,6 +20,12 @@ public sealed partial class Maps [global::System.Text.Json.Serialization.JsonPropertyName("placeAnswerSources")] public global::Google.Gemini.PlaceAnswerSources? PlaceAnswerSources { get; set; } + /// + /// Text description of the place answer. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + /// /// Title of the place. /// @@ -32,12 +38,6 @@ public sealed partial class Maps [global::System.Text.Json.Serialization.JsonPropertyName("placeId")] public string? PlaceId { get; set; } - /// - /// Text description of the place answer. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -53,30 +53,30 @@ public sealed partial class Maps /// /// Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: "does Bar Foo have Wifi" or "is Foo Bar wheelchair accessible?"). Currently we only support review snippets as sources. /// + /// + /// Text description of the place answer. + /// /// /// Title of the place. /// /// /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place. /// - /// - /// Text description of the place answer. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Maps( string? uri, global::Google.Gemini.PlaceAnswerSources? placeAnswerSources, + string? text, string? title, - string? placeId, - string? text) + string? placeId) { this.Uri = uri; this.PlaceAnswerSources = placeAnswerSources; + this.Text = text; this.Title = title; this.PlaceId = placeId; - this.Text = text; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs index 8173786c2..e649a4fb8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Model.g.cs @@ -9,82 +9,82 @@ namespace Google.Gemini public sealed partial class Model { /// - /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) + /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. /// - [global::System.Text.Json.Serialization.JsonPropertyName("version")] - public string? Version { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topK")] + public int? TopK { get; set; } /// - /// For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model. + /// The maximum temperature this model can use. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topP")] - public float? TopP { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxTemperature")] + public float? MaxTemperature { get; set; } /// - /// Whether the model supports thinking. + /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` /// - [global::System.Text.Json.Serialization.JsonPropertyName("thinking")] - public bool? Thinking { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("baseModelId")] + public string? BaseModelId { get; set; } /// - /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. + /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) /// - [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public int? TopK { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + public string? Version { get; set; } /// - /// The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters. + /// A short description of the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// - /// Maximum number of input tokens allowed for this model. + /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` /// - [global::System.Text.Json.Serialization.JsonPropertyName("inputTokenLimit")] - public int? InputTokenLimit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// - /// Maximum number of output tokens available for this model. + /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputTokenLimit")] - public int? OutputTokenLimit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("supportedGenerationMethods")] + public global::System.Collections.Generic.IList? SupportedGenerationMethods { get; set; } /// - /// The maximum temperature this model can use. + /// For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxTemperature")] - public float? MaxTemperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { get; set; } /// - /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. + /// Maximum number of input tokens allowed for this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("supportedGenerationMethods")] - public global::System.Collections.Generic.IList? SupportedGenerationMethods { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputTokenLimit")] + public int? InputTokenLimit { get; set; } /// - /// Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model. + /// Whether the model supports thinking. /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thinking")] + public bool? Thinking { get; set; } /// - /// A short description of the model. + /// The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters. /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` + /// Maximum number of output tokens available for this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputTokenLimit")] + public int? OutputTokenLimit { get; set; } /// - /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("baseModelId")] - public string? BaseModelId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -95,76 +95,76 @@ public sealed partial class Model /// /// Initializes a new instance of the class. /// + /// + /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. + /// + /// + /// The maximum temperature this model can use. + /// + /// + /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// /// /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) /// + /// + /// A short description of the model. + /// + /// + /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` + /// + /// + /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. + /// /// /// For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model. /// + /// + /// Maximum number of input tokens allowed for this model. + /// /// /// Whether the model supports thinking. /// - /// - /// For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter. - /// /// /// The human-readable name of the model. E.g. "Gemini 1.5 Flash". The name can be up to 128 characters long and can consist of any UTF-8 characters. /// - /// - /// Maximum number of input tokens allowed for this model. - /// /// /// Maximum number of output tokens available for this model. /// - /// - /// The maximum temperature this model can use. - /// - /// - /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. - /// /// /// Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model. /// - /// - /// A short description of the model. - /// - /// - /// Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * "{base_model_id}-{version}" Examples: * `models/gemini-1.5-flash-001` - /// - /// - /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Model( + int? topK, + float? maxTemperature, + string? baseModelId, string? version, + string? description, + string? name, + global::System.Collections.Generic.IList? supportedGenerationMethods, float? topP, + int? inputTokenLimit, bool? thinking, - int? topK, string? displayName, - int? inputTokenLimit, int? outputTokenLimit, - float? maxTemperature, - global::System.Collections.Generic.IList? supportedGenerationMethods, - float? temperature, - string? description, - string? name, - string? baseModelId) + float? temperature) { + this.TopK = topK; + this.MaxTemperature = maxTemperature; + this.BaseModelId = baseModelId; this.Version = version; + this.Description = description; + this.Name = name; + this.SupportedGenerationMethods = supportedGenerationMethods; this.TopP = topP; + this.InputTokenLimit = inputTokenLimit; this.Thinking = thinking; - this.TopK = topK; this.DisplayName = displayName; - this.InputTokenLimit = inputTokenLimit; this.OutputTokenLimit = outputTokenLimit; - this.MaxTemperature = maxTemperature; - this.SupportedGenerationMethods = supportedGenerationMethods; this.Temperature = temperature; - this.Description = description; - this.Name = name; - this.BaseModelId = baseModelId; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs index a5f7bfcd5..75612d762 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatus.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ModelStatus { - /// - /// A message explaining the model status. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } - /// /// The stage of the underlying model. /// @@ -27,6 +21,12 @@ public sealed partial class ModelStatus [global::System.Text.Json.Serialization.JsonPropertyName("retirementTime")] public string? RetirementTime { get; set; } + /// + /// A message explaining the model status. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public string? Message { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,26 +36,26 @@ public sealed partial class ModelStatus /// /// Initializes a new instance of the class. /// - /// - /// A message explaining the model status. - /// /// /// The stage of the underlying model. /// /// /// The time at which the model will be retired. /// + /// + /// A message explaining the model status. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ModelStatus( - string? message, global::Google.Gemini.ModelStatusModelStage? modelStage, - string? retirementTime) + string? retirementTime, + string? message) { - this.Message = message; this.ModelStage = modelStage; this.RetirementTime = retirementTime; + this.Message = message; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs index 860654eb2..a4d7d8bcc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Operation.g.cs @@ -8,12 +8,24 @@ namespace Google.Gemini /// public sealed partial class Operation { + /// + /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + /// /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. /// [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } + /// /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. /// @@ -26,18 +38,6 @@ public sealed partial class Operation [global::System.Text.Json.Serialization.JsonPropertyName("response")] public object? Response { get; set; } - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } - - /// - /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -47,36 +47,36 @@ public sealed partial class Operation /// /// Initializes a new instance of the class. /// + /// + /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. + /// /// /// Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any. /// + /// + /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). + /// /// /// If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. /// /// /// The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. /// - /// - /// The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). - /// - /// - /// The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Operation( + string? name, object? metadata, - bool? done, - object? response, global::Google.Gemini.Status? error, - string? name) + bool? done, + object? response) { + this.Name = name; this.Metadata = metadata; + this.Error = error; this.Done = done; this.Response = response; - this.Error = error; - this.Name = name; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs index 7d190b980..702507e15 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Part.g.cs @@ -11,40 +11,41 @@ namespace Google.Gemini public sealed partial class Part { /// - /// Inline text. + /// The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolResponse")] + public global::Google.Gemini.ToolResponse? ToolResponse { get; set; } /// - /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. + /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("inlineData")] - public global::Google.Gemini.Blob? InlineData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolCall")] + public global::Google.Gemini.ToolCall? ToolCall { get; set; } /// - /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. + /// URI based data. /// - [global::System.Text.Json.Serialization.JsonPropertyName("executableCode")] - public global::Google.Gemini.ExecutableCode? ExecutableCode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileData")] + public global::Google.Gemini.FileData? FileData { get; set; } /// - /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. /// - [global::System.Text.Json.Serialization.JsonPropertyName("codeExecutionResult")] - public global::Google.Gemini.CodeExecutionResult? CodeExecutionResult { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thoughtSignature")] + public byte[]? ThoughtSignature { get; set; } /// - /// Optional. Indicates if the part is thought from the model. + /// Media resolution for tokenization. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thought")] - public bool? Thought { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] + public global::Google.Gemini.V1mainMediaResolution? MediaResolution { get; set; } /// - /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. + /// Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionCall")] - public global::Google.Gemini.FunctionCall? FunctionCall { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] + [global::System.Obsolete("This property marked as deprecated.")] + public global::Google.Gemini.VideoMetadata? VideoMetadata { get; set; } /// /// The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction. @@ -53,35 +54,34 @@ public sealed partial class Part public global::Google.Gemini.FunctionResponse? FunctionResponse { get; set; } /// - /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. + /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thoughtSignature")] - public byte[]? ThoughtSignature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("functionCall")] + public global::Google.Gemini.FunctionCall? FunctionCall { get; set; } /// - /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. + /// Inline text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolCall")] - public global::Google.Gemini.ToolCall? ToolCall { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } /// - /// Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content. + /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. /// - [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] - [global::System.Obsolete("This property marked as deprecated.")] - public global::Google.Gemini.VideoMetadata? VideoMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("executableCode")] + public global::Google.Gemini.ExecutableCode? ExecutableCode { get; set; } /// - /// The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. + /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolResponse")] - public global::Google.Gemini.ToolResponse? ToolResponse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inlineData")] + public global::Google.Gemini.Blob? InlineData { get; set; } /// - /// Media resolution for tokenization. + /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaResolution")] - public global::Google.Gemini.V1mainMediaResolution? MediaResolution { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("codeExecutionResult")] + public global::Google.Gemini.CodeExecutionResult? CodeExecutionResult { get; set; } /// /// Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. @@ -90,10 +90,10 @@ public sealed partial class Part public object? PartMetadata { get; set; } /// - /// URI based data. + /// Optional. Indicates if the part is thought from the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileData")] - public global::Google.Gemini.FileData? FileData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thought")] + public bool? Thought { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -104,76 +104,76 @@ public sealed partial class Part /// /// Initializes a new instance of the class. /// - /// - /// Inline text. - /// - /// - /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. + /// + /// The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. /// - /// - /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. + /// + /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. /// - /// - /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. + /// + /// URI based data. /// - /// - /// Optional. Indicates if the part is thought from the model. + /// + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. /// - /// - /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. + /// + /// Media resolution for tokenization. /// /// /// The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction. /// - /// - /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. + /// + /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. /// - /// - /// A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`. + /// + /// Inline text. /// - /// - /// The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`. + /// + /// Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated. /// - /// - /// Media resolution for tokenization. + /// + /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. + /// + /// + /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. /// /// /// Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams. /// - /// - /// URI based data. + /// + /// Optional. Indicates if the part is thought from the model. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Part( + global::Google.Gemini.ToolResponse? toolResponse, + global::Google.Gemini.ToolCall? toolCall, + global::Google.Gemini.FileData? fileData, + byte[]? thoughtSignature, + global::Google.Gemini.V1mainMediaResolution? mediaResolution, + global::Google.Gemini.FunctionResponse? functionResponse, + global::Google.Gemini.FunctionCall? functionCall, string? text, - global::Google.Gemini.Blob? inlineData, global::Google.Gemini.ExecutableCode? executableCode, + global::Google.Gemini.Blob? inlineData, global::Google.Gemini.CodeExecutionResult? codeExecutionResult, - bool? thought, - global::Google.Gemini.FunctionCall? functionCall, - global::Google.Gemini.FunctionResponse? functionResponse, - byte[]? thoughtSignature, - global::Google.Gemini.ToolCall? toolCall, - global::Google.Gemini.ToolResponse? toolResponse, - global::Google.Gemini.V1mainMediaResolution? mediaResolution, object? partMetadata, - global::Google.Gemini.FileData? fileData) + bool? thought) { + this.ToolResponse = toolResponse; + this.ToolCall = toolCall; + this.FileData = fileData; + this.ThoughtSignature = thoughtSignature; + this.MediaResolution = mediaResolution; + this.FunctionResponse = functionResponse; + this.FunctionCall = functionCall; this.Text = text; - this.InlineData = inlineData; this.ExecutableCode = executableCode; + this.InlineData = inlineData; this.CodeExecutionResult = codeExecutionResult; - this.Thought = thought; - this.FunctionCall = functionCall; - this.FunctionResponse = functionResponse; - this.ThoughtSignature = thoughtSignature; - this.ToolCall = toolCall; - this.ToolResponse = toolResponse; - this.MediaResolution = mediaResolution; this.PartMetadata = partMetadata; - this.FileData = fileData; + this.Thought = thought; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs index 5a466445a..853a7614f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Permission.g.cs @@ -8,19 +8,6 @@ namespace Google.Gemini /// public sealed partial class Permission { - /// - /// Required. The role granted by this permission. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("role")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter))] - public global::Google.Gemini.PermissionRole? Role { get; set; } - - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("emailAddress")] - public string? EmailAddress { get; set; } - /// /// Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.
/// Included only in responses @@ -28,6 +15,13 @@ public sealed partial class Permission [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } + /// + /// Required. The role granted by this permission. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter))] + public global::Google.Gemini.PermissionRole? Role { get; set; } + /// /// Optional. Immutable. The type of the grantee. /// @@ -35,6 +29,12 @@ public sealed partial class Permission [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter))] public global::Google.Gemini.PermissionGranteeType? GranteeType { get; set; } + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("emailAddress")] + public string? EmailAddress { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,32 +44,32 @@ public sealed partial class Permission /// /// Initializes a new instance of the class. /// - /// - /// Required. The role granted by this permission. - /// - /// - /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. - /// /// /// Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.
/// Included only in responses /// + /// + /// Required. The role granted by this permission. + /// /// /// Optional. Immutable. The type of the grantee. /// + /// + /// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Permission( - global::Google.Gemini.PermissionRole? role, - string? emailAddress, string? name, - global::Google.Gemini.PermissionGranteeType? granteeType) + global::Google.Gemini.PermissionRole? role, + global::Google.Gemini.PermissionGranteeType? granteeType, + string? emailAddress) { - this.Role = role; - this.EmailAddress = emailAddress; this.Name = name; + this.Role = role; this.GranteeType = granteeType; + this.EmailAddress = emailAddress; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs index 7d4dae8fc..203c81e1d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RealtimeInputConfig.g.cs @@ -8,6 +8,13 @@ namespace Google.Gemini /// public sealed partial class RealtimeInputConfig { + /// + /// Optional. Defines what effect activity has. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("activityHandling")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter))] + public global::Google.Gemini.RealtimeInputConfigActivityHandling? ActivityHandling { get; set; } + /// /// Optional. Defines which input is included in the user's turn. /// @@ -21,13 +28,6 @@ public sealed partial class RealtimeInputConfig [global::System.Text.Json.Serialization.JsonPropertyName("automaticActivityDetection")] public global::Google.Gemini.AutomaticActivityDetection? AutomaticActivityDetection { get; set; } - /// - /// Optional. Defines what effect activity has. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("activityHandling")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter))] - public global::Google.Gemini.RealtimeInputConfigActivityHandling? ActivityHandling { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -37,26 +37,26 @@ public sealed partial class RealtimeInputConfig /// /// Initializes a new instance of the class. /// + /// + /// Optional. Defines what effect activity has. + /// /// /// Optional. Defines which input is included in the user's turn. /// /// /// Configures automatic detection of activity. /// - /// - /// Optional. Defines what effect activity has. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeInputConfig( + global::Google.Gemini.RealtimeInputConfigActivityHandling? activityHandling, global::Google.Gemini.RealtimeInputConfigTurnCoverage? turnCoverage, - global::Google.Gemini.AutomaticActivityDetection? automaticActivityDetection, - global::Google.Gemini.RealtimeInputConfigActivityHandling? activityHandling) + global::Google.Gemini.AutomaticActivityDetection? automaticActivityDetection) { + this.ActivityHandling = activityHandling; this.TurnCoverage = turnCoverage; this.AutomaticActivityDetection = automaticActivityDetection; - this.ActivityHandling = activityHandling; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs index 7fd834253..fafacf588 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ResponseFormatConfig.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class ResponseFormatConfig { /// - /// Configuration for text output format. + /// Configuration for audio output format. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public global::Google.Gemini.TextResponseFormat? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audio")] + public global::Google.Gemini.AudioResponseFormat? Audio { get; set; } /// /// Configuration for image output format. @@ -21,10 +21,10 @@ public sealed partial class ResponseFormatConfig public global::Google.Gemini.ImageResponseFormat? Image { get; set; } /// - /// Configuration for audio output format. + /// Configuration for text output format. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audio")] - public global::Google.Gemini.AudioResponseFormat? Audio { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public global::Google.Gemini.TextResponseFormat? Text { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,26 +35,26 @@ public sealed partial class ResponseFormatConfig /// /// Initializes a new instance of the class. /// - /// - /// Configuration for text output format. + /// + /// Configuration for audio output format. /// /// /// Configuration for image output format. /// - /// - /// Configuration for audio output format. + /// + /// Configuration for text output format. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponseFormatConfig( - global::Google.Gemini.TextResponseFormat? text, + global::Google.Gemini.AudioResponseFormat? audio, global::Google.Gemini.ImageResponseFormat? image, - global::Google.Gemini.AudioResponseFormat? audio) + global::Google.Gemini.TextResponseFormat? text) { - this.Text = text; - this.Image = image; this.Audio = audio; + this.Image = image; + this.Text = text; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs index ef1c3b9e0..3903df91a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievedContext.g.cs @@ -9,16 +9,16 @@ namespace Google.Gemini public sealed partial class RetrievedContext { /// - /// Optional. Text of the chunk. + /// Optional. Title of the document. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// - /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` + /// Optional. Text of the chunk. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] - public string? FileSearchStore { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } /// /// Optional. User-provided metadata about the retrieved context. @@ -33,22 +33,22 @@ public sealed partial class RetrievedContext public string? MediaId { get; set; } /// - /// Optional. URI reference of the semantic retrieval document. + /// Optional. Page number of the retrieved context, if applicable. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pageNumber")] + public int? PageNumber { get; set; } /// - /// Optional. Title of the document. + /// Optional. URI reference of the semantic retrieval document. /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// - /// Optional. Page number of the retrieved context, if applicable. + /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` /// - [global::System.Text.Json.Serialization.JsonPropertyName("pageNumber")] - public int? PageNumber { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] + public string? FileSearchStore { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -59,46 +59,46 @@ public sealed partial class RetrievedContext /// /// Initializes a new instance of the class. /// + /// + /// Optional. Title of the document. + /// /// /// Optional. Text of the chunk. /// - /// - /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` - /// /// /// Optional. User-provided metadata about the retrieved context. /// /// /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} /// + /// + /// Optional. Page number of the retrieved context, if applicable. + /// /// /// Optional. URI reference of the semantic retrieval document. /// - /// - /// Optional. Title of the document. - /// - /// - /// Optional. Page number of the retrieved context, if applicable. + /// + /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RetrievedContext( + string? title, string? text, - string? fileSearchStore, global::System.Collections.Generic.IList? customMetadata, string? mediaId, + int? pageNumber, string? uri, - string? title, - int? pageNumber) + string? fileSearchStore) { + this.Title = title; this.Text = text; - this.FileSearchStore = fileSearchStore; this.CustomMetadata = customMetadata; this.MediaId = mediaId; - this.Uri = uri; - this.Title = title; this.PageNumber = pageNumber; + this.Uri = uri; + this.FileSearchStore = fileSearchStore; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs index 9183515b6..f4ea2ba76 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ReviewSnippet.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ReviewSnippet { - /// - /// The ID of the review snippet. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("reviewId")] - public string? ReviewId { get; set; } - /// /// Title of the review. /// [global::System.Text.Json.Serialization.JsonPropertyName("title")] public string? Title { get; set; } + /// + /// The ID of the review snippet. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reviewId")] + public string? ReviewId { get; set; } + /// /// A link that corresponds to the user review on Google Maps. /// @@ -35,12 +35,12 @@ public sealed partial class ReviewSnippet /// /// Initializes a new instance of the class. /// - /// - /// The ID of the review snippet. - /// /// /// Title of the review. /// + /// + /// The ID of the review snippet. + /// /// /// A link that corresponds to the user review on Google Maps. /// @@ -48,12 +48,12 @@ public sealed partial class ReviewSnippet [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReviewSnippet( - string? reviewId, string? title, + string? reviewId, string? googleMapsUri) { - this.ReviewId = reviewId; this.Title = title; + this.ReviewId = reviewId; this.GoogleMapsUri = googleMapsUri; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs index 7eb80d6f0..7c955ca30 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRating.g.cs @@ -15,6 +15,12 @@ public sealed partial class SafetyRating [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter))] public global::Google.Gemini.SafetyRatingCategory? Category { get; set; } + /// + /// Was this content blocked because of this rating? + /// + [global::System.Text.Json.Serialization.JsonPropertyName("blocked")] + public bool? Blocked { get; set; } + /// /// Required. The probability of harm for this content. /// @@ -22,12 +28,6 @@ public sealed partial class SafetyRating [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter))] public global::Google.Gemini.SafetyRatingProbability? Probability { get; set; } - /// - /// Was this content blocked because of this rating? - /// - [global::System.Text.Json.Serialization.JsonPropertyName("blocked")] - public bool? Blocked { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -40,23 +40,23 @@ public sealed partial class SafetyRating /// /// Required. The category for this rating. /// - /// - /// Required. The probability of harm for this content. - /// /// /// Was this content blocked because of this rating? /// + /// + /// Required. The probability of harm for this content. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SafetyRating( global::Google.Gemini.SafetyRatingCategory? category, - global::Google.Gemini.SafetyRatingProbability? probability, - bool? blocked) + bool? blocked, + global::Google.Gemini.SafetyRatingProbability? probability) { this.Category = category; - this.Probability = probability; this.Blocked = blocked; + this.Probability = probability; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs index ac1ef0cb1..b56b739f1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Schema.g.cs @@ -9,35 +9,41 @@ namespace Google.Gemini public sealed partial class Schema { /// - /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. + /// Optional. Required properties of Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public global::System.Collections.Generic.IList? Required { get; set; } /// - /// Required. Data type. + /// Optional. Maximum number of the elements for Type.ARRAY. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter))] - public global::Google.Gemini.SchemaType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxItems")] + public string? MaxItems { get; set; } /// - /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER + /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minimum")] - public double? Minimum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pattern")] + public string? Pattern { get; set; } /// - /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + /// Optional. Properties of Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] - public string? MinLength { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("properties")] + public global::System.Collections.Generic.Dictionary? Properties { get; set; } /// - /// Optional. Indicates if the value may be null. + /// Optional. The value should be validated against any (one or more) of the subschemas in the list. /// - [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] - public bool? Nullable { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] + public global::System.Collections.Generic.IList? AnyOf { get; set; } + + /// + /// Required. Data type. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter))] + public global::Google.Gemini.SchemaType? Type { get; set; } /// /// Optional. The title of the schema. @@ -46,10 +52,16 @@ public sealed partial class Schema public string? Title { get; set; } /// - /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. + /// Optional. Indicates if the value may be null. /// - [global::System.Text.Json.Serialization.JsonPropertyName("propertyOrdering")] - public global::System.Collections.Generic.IList? PropertyOrdering { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] + public bool? Nullable { get; set; } + + /// + /// Optional. Minimum number of the properties for Type.OBJECT. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] + public string? MinProperties { get; set; } /// /// Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors. @@ -58,58 +70,58 @@ public sealed partial class Schema public object? Default { get; set; } /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// Optional. Minimum number of the elements for Type.ARRAY. /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::Google.Gemini.Schema? Items { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minItems")] + public string? MinItems { get; set; } /// - /// Optional. The value should be validated against any (one or more) of the subschemas in the list. + /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. /// - [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] - public global::System.Collections.Generic.IList? AnyOf { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// - /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER + /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} /// - [global::System.Text.Json.Serialization.JsonPropertyName("maximum")] - public double? Maximum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enum")] + public global::System.Collections.Generic.IList? Enum { get; set; } /// - /// Optional. Maximum number of the elements for Type.ARRAY. + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxItems")] - public string? MaxItems { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + public global::Google.Gemini.Schema? Items { get; set; } /// - /// Optional. Properties of Type.OBJECT. + /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER /// - [global::System.Text.Json.Serialization.JsonPropertyName("properties")] - public global::System.Collections.Generic.Dictionary? Properties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minimum")] + public double? Minimum { get; set; } /// - /// Optional. Minimum number of the properties for Type.OBJECT. + /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING /// - [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] - public string? MinProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] + public string? MinLength { get; set; } /// - /// Optional. Maximum number of the properties for Type.OBJECT. + /// Optional. Example of the object. Will only populated when the object is the root. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] - public string? MaxProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("example")] + public object? Example { get; set; } /// - /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} + /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("enum")] - public global::System.Collections.Generic.IList? Enum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("propertyOrdering")] + public global::System.Collections.Generic.IList? PropertyOrdering { get; set; } /// - /// Optional. Required properties of Type.OBJECT. + /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER /// - [global::System.Text.Json.Serialization.JsonPropertyName("required")] - public global::System.Collections.Generic.IList? Required { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maximum")] + public double? Maximum { get; set; } /// /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. @@ -124,22 +136,10 @@ public sealed partial class Schema public string? MaxLength { get; set; } /// - /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("pattern")] - public string? Pattern { get; set; } - - /// - /// Optional. Example of the object. Will only populated when the object is the root. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("example")] - public object? Example { get; set; } - - /// - /// Optional. Minimum number of the elements for Type.ARRAY. + /// Optional. Maximum number of the properties for Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minItems")] - public string? MinItems { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] + public string? MaxProperties { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -150,56 +150,62 @@ public sealed partial class Schema /// /// Initializes a new instance of the class. /// - /// - /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. + /// + /// Optional. Required properties of Type.OBJECT. /// - /// - /// Required. Data type. + /// + /// Optional. Maximum number of the elements for Type.ARRAY. /// - /// - /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER + /// + /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. /// - /// - /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + /// + /// Optional. Properties of Type.OBJECT. /// - /// - /// Optional. Indicates if the value may be null. + /// + /// Optional. The value should be validated against any (one or more) of the subschemas in the list. + /// + /// + /// Required. Data type. /// /// /// Optional. The title of the schema. /// - /// - /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. + /// + /// Optional. Indicates if the value may be null. + /// + /// + /// Optional. Minimum number of the properties for Type.OBJECT. /// /// /// Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors. /// - /// - /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). + /// + /// Optional. Minimum number of the elements for Type.ARRAY. /// - /// - /// Optional. The value should be validated against any (one or more) of the subschemas in the list. + /// + /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. /// - /// - /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER + /// + /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} /// - /// - /// Optional. Maximum number of the elements for Type.ARRAY. + /// + /// The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema). /// - /// - /// Optional. Properties of Type.OBJECT. + /// + /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER /// - /// - /// Optional. Minimum number of the properties for Type.OBJECT. + /// + /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING /// - /// - /// Optional. Maximum number of the properties for Type.OBJECT. + /// + /// Optional. Example of the object. Will only populated when the object is the root. /// - /// - /// Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} + /// + /// Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response. /// - /// - /// Optional. Required properties of Type.OBJECT. + /// + /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER /// /// /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. @@ -207,64 +213,58 @@ public sealed partial class Schema /// /// Optional. Maximum length of the Type.STRING /// - /// - /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. - /// - /// - /// Optional. Example of the object. Will only populated when the object is the root. - /// - /// - /// Optional. Minimum number of the elements for Type.ARRAY. + /// + /// Optional. Maximum number of the properties for Type.OBJECT. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Schema( - string? description, + global::System.Collections.Generic.IList? required, + string? maxItems, + string? pattern, + global::System.Collections.Generic.Dictionary? properties, + global::System.Collections.Generic.IList? anyOf, global::Google.Gemini.SchemaType? type, - double? minimum, - string? minLength, - bool? nullable, string? title, - global::System.Collections.Generic.IList? propertyOrdering, + bool? nullable, + string? minProperties, object? @default, + string? minItems, + string? description, + global::System.Collections.Generic.IList? @enum, global::Google.Gemini.Schema? items, - global::System.Collections.Generic.IList? anyOf, + double? minimum, + string? minLength, + object? example, + global::System.Collections.Generic.IList? propertyOrdering, double? maximum, - string? maxItems, - global::System.Collections.Generic.Dictionary? properties, - string? minProperties, - string? maxProperties, - global::System.Collections.Generic.IList? @enum, - global::System.Collections.Generic.IList? required, string? format, string? maxLength, - string? pattern, - object? example, - string? minItems) + string? maxProperties) { - this.Description = description; + this.Required = required; + this.MaxItems = maxItems; + this.Pattern = pattern; + this.Properties = properties; + this.AnyOf = anyOf; this.Type = type; - this.Minimum = minimum; - this.MinLength = minLength; - this.Nullable = nullable; this.Title = title; - this.PropertyOrdering = propertyOrdering; + this.Nullable = nullable; + this.MinProperties = minProperties; this.Default = @default; + this.MinItems = minItems; + this.Description = description; + this.Enum = @enum; this.Items = items; - this.AnyOf = anyOf; + this.Minimum = minimum; + this.MinLength = minLength; + this.Example = example; + this.PropertyOrdering = propertyOrdering; this.Maximum = maximum; - this.MaxItems = maxItems; - this.Properties = properties; - this.MinProperties = minProperties; - this.MaxProperties = maxProperties; - this.Enum = @enum; - this.Required = required; this.Format = format; this.MaxLength = maxLength; - this.Pattern = pattern; - this.Example = example; - this.MinItems = minItems; + this.MaxProperties = maxProperties; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs index 9782b4818..1c9705596 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Source.g.cs @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class Source { /// - /// The inline content if `type` is `INLINE`. + /// The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub path. /// - [global::System.Text.Json.Serialization.JsonPropertyName("content")] - public string? Content { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + public string? Source1 { get; set; } /// /// Optional encoding for inline content (e.g. `base64`). @@ -21,23 +21,23 @@ public sealed partial class Source public string? Encoding { get; set; } /// - /// The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub path. + /// /// - [global::System.Text.Json.Serialization.JsonPropertyName("source")] - public string? Source1 { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter))] + public global::Google.Gemini.SourceType? Type { get; set; } /// - /// Where the source should appear in the environment. + /// The inline content if `type` is `INLINE`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("target")] - public string? Target { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } /// - /// + /// Where the source should appear in the environment. /// - [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter))] - public global::Google.Gemini.SourceType? Type { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("target")] + public string? Target { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -48,34 +48,34 @@ public sealed partial class Source /// /// Initializes a new instance of the class. /// - /// - /// The inline content if `type` is `INLINE`. + /// + /// The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub path. /// /// /// Optional encoding for inline content (e.g. `base64`). /// - /// - /// The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub path. + /// + /// + /// The inline content if `type` is `INLINE`. /// /// /// Where the source should appear in the environment. /// - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Source( - string? content, - string? encoding, string? source1, - string? target, - global::Google.Gemini.SourceType? type) + string? encoding, + global::Google.Gemini.SourceType? type, + string? content, + string? target) { - this.Content = content; - this.Encoding = encoding; this.Source1 = source1; - this.Target = target; + this.Encoding = encoding; this.Type = type; + this.Content = content; + this.Target = target; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs index c880cd80c..cc31a3070 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SpeechConfig.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class SpeechConfig { - /// - /// The configuration for the voice to use. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("voiceConfig")] - public global::Google.Gemini.VoiceConfig? VoiceConfig { get; set; } - /// /// Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`. /// @@ -26,6 +20,12 @@ public sealed partial class SpeechConfig [global::System.Text.Json.Serialization.JsonPropertyName("multiSpeakerVoiceConfig")] public global::Google.Gemini.MultiSpeakerVoiceConfig? MultiSpeakerVoiceConfig { get; set; } + /// + /// The configuration for the voice to use. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("voiceConfig")] + public global::Google.Gemini.VoiceConfig? VoiceConfig { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class SpeechConfig /// /// Initializes a new instance of the class. /// - /// - /// The configuration for the voice to use. - /// /// /// Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`. /// /// /// The configuration for the multi-speaker setup. /// + /// + /// The configuration for the voice to use. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeechConfig( - global::Google.Gemini.VoiceConfig? voiceConfig, string? languageCode, - global::Google.Gemini.MultiSpeakerVoiceConfig? multiSpeakerVoiceConfig) + global::Google.Gemini.MultiSpeakerVoiceConfig? multiSpeakerVoiceConfig, + global::Google.Gemini.VoiceConfig? voiceConfig) { - this.VoiceConfig = voiceConfig; this.LanguageCode = languageCode; this.MultiSpeakerVoiceConfig = multiSpeakerVoiceConfig; + this.VoiceConfig = voiceConfig; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs index 7db73b4f3..d1de5ffcc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Status.g.cs @@ -14,18 +14,18 @@ public sealed partial class Status [global::System.Text.Json.Serialization.JsonPropertyName("message")] public string? Message { get; set; } - /// - /// The status code, which should be an enum value of google.rpc.Code. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("code")] - public int? Code { get; set; } - /// /// A list of messages that carry the error details. There is a common set of message types for APIs to use. /// [global::System.Text.Json.Serialization.JsonPropertyName("details")] public global::System.Collections.Generic.IList? Details { get; set; } + /// + /// The status code, which should be an enum value of google.rpc.Code. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("code")] + public int? Code { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -38,23 +38,23 @@ public sealed partial class Status /// /// A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. /// - /// - /// The status code, which should be an enum value of google.rpc.Code. - /// /// /// A list of messages that carry the error details. There is a common set of message types for APIs to use. /// + /// + /// The status code, which should be an enum value of google.rpc.Code. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Status( string? message, - int? code, - global::System.Collections.Generic.IList? details) + global::System.Collections.Generic.IList? details, + int? code) { this.Message = message; - this.Code = code; this.Details = details; + this.Code = code; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs index aef594c9a..7e8c7f79f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StreamableHttpTransport.g.cs @@ -15,10 +15,10 @@ public sealed partial class StreamableHttpTransport public string? Timeout { get; set; } /// - /// Whether to close the client session when the transport closes. + /// Timeout for SSE read operations. /// - [global::System.Text.Json.Serialization.JsonPropertyName("terminateOnClose")] - public bool? TerminateOnClose { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sseReadTimeout")] + public string? SseReadTimeout { get; set; } /// /// The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" @@ -26,18 +26,18 @@ public sealed partial class StreamableHttpTransport [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } - /// - /// Timeout for SSE read operations. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("sseReadTimeout")] - public string? SseReadTimeout { get; set; } - /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// [global::System.Text.Json.Serialization.JsonPropertyName("headers")] public global::System.Collections.Generic.Dictionary? Headers { get; set; } + /// + /// Whether to close the client session when the transport closes. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("terminateOnClose")] + public bool? TerminateOnClose { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -50,33 +50,33 @@ public sealed partial class StreamableHttpTransport /// /// HTTP timeout for regular operations. /// - /// - /// Whether to close the client session when the transport closes. + /// + /// Timeout for SSE read operations. /// /// /// The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" /// - /// - /// Timeout for SSE read operations. - /// /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// + /// + /// Whether to close the client session when the transport closes. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StreamableHttpTransport( string? timeout, - bool? terminateOnClose, - string? url, string? sseReadTimeout, - global::System.Collections.Generic.Dictionary? headers) + string? url, + global::System.Collections.Generic.Dictionary? headers, + bool? terminateOnClose) { this.Timeout = timeout; - this.TerminateOnClose = terminateOnClose; - this.Url = url; this.SseReadTimeout = sseReadTimeout; + this.Url = url; this.Headers = headers; + this.TerminateOnClose = terminateOnClose; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs index f6546f19b..16bbd0309 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfig.g.cs @@ -14,12 +14,6 @@ public sealed partial class ThinkingConfig [global::System.Text.Json.Serialization.JsonPropertyName("includeThoughts")] public bool? IncludeThoughts { get; set; } - /// - /// The number of thoughts tokens that the model should generate. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("thinkingBudget")] - public int? ThinkingBudget { get; set; } - /// /// Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error. /// @@ -27,6 +21,12 @@ public sealed partial class ThinkingConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter))] public global::Google.Gemini.ThinkingConfigThinkingLevel? ThinkingLevel { get; set; } + /// + /// The number of thoughts tokens that the model should generate. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thinkingBudget")] + public int? ThinkingBudget { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,23 +39,23 @@ public sealed partial class ThinkingConfig /// /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. /// - /// - /// The number of thoughts tokens that the model should generate. - /// /// /// Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error. /// + /// + /// The number of thoughts tokens that the model should generate. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ThinkingConfig( bool? includeThoughts, - int? thinkingBudget, - global::Google.Gemini.ThinkingConfigThinkingLevel? thinkingLevel) + global::Google.Gemini.ThinkingConfigThinkingLevel? thinkingLevel, + int? thinkingBudget) { this.IncludeThoughts = includeThoughts; - this.ThinkingBudget = thinkingBudget; this.ThinkingLevel = thinkingLevel; + this.ThinkingBudget = thinkingBudget; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs index dfe0507ae..a9dbddeb8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Tool.g.cs @@ -8,30 +8,30 @@ namespace Google.Gemini /// public sealed partial class Tool { - /// - /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("codeExecution")] - public global::Google.Gemini.CodeExecution? CodeExecution { get; set; } - - /// - /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleSearch")] - public global::Google.Gemini.GoogleSearch? GoogleSearch { get; set; } - /// /// Tool to retrieve public web data for grounding, powered by Google. /// [global::System.Text.Json.Serialization.JsonPropertyName("googleSearchRetrieval")] public global::Google.Gemini.GoogleSearchRetrieval? GoogleSearchRetrieval { get; set; } + /// + /// Tool to support URL context retrieval. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("urlContext")] + public global::Google.Gemini.UrlContext? UrlContext { get; set; } + /// /// The GoogleMaps Tool that provides geospatial context for the user's query. /// [global::System.Text.Json.Serialization.JsonPropertyName("googleMaps")] public global::Google.Gemini.GoogleMaps? GoogleMaps { get; set; } + /// + /// Optional. MCP Servers to connect to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mcpServers")] + public global::System.Collections.Generic.IList? McpServers { get; set; } + /// /// Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role "function" generation context for the next model turn. /// @@ -39,28 +39,28 @@ public sealed partial class Tool public global::System.Collections.Generic.IList? FunctionDeclarations { get; set; } /// - /// Tool to support URL context retrieval. + /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. /// - [global::System.Text.Json.Serialization.JsonPropertyName("urlContext")] - public global::Google.Gemini.UrlContext? UrlContext { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearch")] + public global::Google.Gemini.FileSearch? FileSearch { get; set; } /// - /// Computer Use tool type. + /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. /// - [global::System.Text.Json.Serialization.JsonPropertyName("computerUse")] - public global::Google.Gemini.ComputerUse? ComputerUse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleSearch")] + public global::Google.Gemini.GoogleSearch? GoogleSearch { get; set; } /// - /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. + /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearch")] - public global::Google.Gemini.FileSearch? FileSearch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("codeExecution")] + public global::Google.Gemini.CodeExecution? CodeExecution { get; set; } /// - /// Optional. MCP Servers to connect to. + /// Computer Use tool type. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mcpServers")] - public global::System.Collections.Generic.IList? McpServers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("computerUse")] + public global::Google.Gemini.ComputerUse? ComputerUse { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,56 +71,56 @@ public sealed partial class Tool /// /// Initializes a new instance of the class. /// - /// - /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. - /// - /// - /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. - /// /// /// Tool to retrieve public web data for grounding, powered by Google. /// + /// + /// Tool to support URL context retrieval. + /// /// /// The GoogleMaps Tool that provides geospatial context for the user's query. /// + /// + /// Optional. MCP Servers to connect to. + /// /// /// Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role "function" generation context for the next model turn. /// - /// - /// Tool to support URL context retrieval. - /// - /// - /// Computer Use tool type. - /// /// /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. /// - /// - /// Optional. MCP Servers to connect to. + /// + /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. + /// + /// + /// Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool. + /// + /// + /// Computer Use tool type. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Tool( - global::Google.Gemini.CodeExecution? codeExecution, - global::Google.Gemini.GoogleSearch? googleSearch, global::Google.Gemini.GoogleSearchRetrieval? googleSearchRetrieval, + global::Google.Gemini.UrlContext? urlContext, global::Google.Gemini.GoogleMaps? googleMaps, + global::System.Collections.Generic.IList? mcpServers, global::System.Collections.Generic.IList? functionDeclarations, - global::Google.Gemini.UrlContext? urlContext, - global::Google.Gemini.ComputerUse? computerUse, global::Google.Gemini.FileSearch? fileSearch, - global::System.Collections.Generic.IList? mcpServers) + global::Google.Gemini.GoogleSearch? googleSearch, + global::Google.Gemini.CodeExecution? codeExecution, + global::Google.Gemini.ComputerUse? computerUse) { - this.CodeExecution = codeExecution; - this.GoogleSearch = googleSearch; this.GoogleSearchRetrieval = googleSearchRetrieval; + this.UrlContext = urlContext; this.GoogleMaps = googleMaps; + this.McpServers = mcpServers; this.FunctionDeclarations = functionDeclarations; - this.UrlContext = urlContext; - this.ComputerUse = computerUse; this.FileSearch = fileSearch; - this.McpServers = mcpServers; + this.GoogleSearch = googleSearch; + this.CodeExecution = codeExecution; + this.ComputerUse = computerUse; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs index 2d48ac2c6..4218575fa 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCall.g.cs @@ -14,6 +14,12 @@ public sealed partial class ToolCall [global::System.Text.Json.Serialization.JsonPropertyName("id")] public string? Id { get; set; } + /// + /// Optional. The name of the tool that was called. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] + public string? ToolName { get; set; } + /// /// Required. The type of tool that was called. /// @@ -27,12 +33,6 @@ public sealed partial class ToolCall [global::System.Text.Json.Serialization.JsonPropertyName("args")] public object? Args { get; set; } - /// - /// Optional. The name of the tool that was called. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolName")] - public string? ToolName { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,28 +45,28 @@ public sealed partial class ToolCall /// /// Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`. /// + /// + /// Optional. The name of the tool that was called. + /// /// /// Required. The type of tool that was called. /// /// /// Optional. The tool call arguments. Example: {"arg1" : "value1", "arg2" : "value2" , ...} /// - /// - /// Optional. The name of the tool that was called. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolCall( string? id, + string? toolName, global::Google.Gemini.ToolCallToolType? toolType, - object? args, - string? toolName) + object? args) { this.Id = id; + this.ToolName = toolName; this.ToolType = toolType; this.Args = args; - this.ToolName = toolName; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs index 04b17ff77..247efaa65 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ToolConfig { - /// - /// Retrieval config. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrievalConfig")] - public global::Google.Gemini.RetrievalConfig? RetrievalConfig { get; set; } - /// /// Configuration for specifying function calling behavior. /// [global::System.Text.Json.Serialization.JsonPropertyName("functionCallingConfig")] public global::Google.Gemini.FunctionCallingConfig? FunctionCallingConfig { get; set; } + /// + /// Retrieval config. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("retrievalConfig")] + public global::Google.Gemini.RetrievalConfig? RetrievalConfig { get; set; } + /// /// Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions. /// @@ -35,12 +35,12 @@ public sealed partial class ToolConfig /// /// Initializes a new instance of the class. /// - /// - /// Retrieval config. - /// /// /// Configuration for specifying function calling behavior. /// + /// + /// Retrieval config. + /// /// /// Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions. /// @@ -48,12 +48,12 @@ public sealed partial class ToolConfig [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolConfig( - global::Google.Gemini.RetrievalConfig? retrievalConfig, global::Google.Gemini.FunctionCallingConfig? functionCallingConfig, + global::Google.Gemini.RetrievalConfig? retrievalConfig, bool? includeServerSideToolInvocations) { - this.RetrievalConfig = retrievalConfig; this.FunctionCallingConfig = functionCallingConfig; + this.RetrievalConfig = retrievalConfig; this.IncludeServerSideToolInvocations = includeServerSideToolInvocations; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs index 2ee7f407b..3cf6fa003 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponse.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ToolResponse { - /// - /// Optional. The tool response. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public object? Response { get; set; } - /// /// Optional. The identifier of the tool call this response is for. /// @@ -27,6 +21,12 @@ public sealed partial class ToolResponse [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter))] public global::Google.Gemini.ToolResponseToolType? ToolType { get; set; } + /// + /// Optional. The tool response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,26 +36,26 @@ public sealed partial class ToolResponse /// /// Initializes a new instance of the class. /// - /// - /// Optional. The tool response. - /// /// /// Optional. The identifier of the tool call this response is for. /// /// /// Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`. /// + /// + /// Optional. The tool response. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolResponse( - object? response, string? id, - global::Google.Gemini.ToolResponseToolType? toolType) + global::Google.Gemini.ToolResponseToolType? toolType, + object? response) { - this.Response = response; this.Id = id; this.ToolType = toolType; + this.Response = response; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs index 0f27663d7..3b2d50bb6 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModel.g.cs @@ -9,16 +9,23 @@ namespace Google.Gemini public sealed partial class TunedModel { /// - /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. + /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. /// - [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] - public float? Temperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// Optional. A short description of this model. + /// Output only. The timestamp when this model was updated.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } + + /// + /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// /// Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`
@@ -28,24 +35,22 @@ public sealed partial class TunedModel public string? Name { get; set; } /// - /// Output only. The timestamp when this model was updated.
- /// Included only in responses + /// Optional. A short description of this model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// - /// Output only. The timestamp when this model was created.
- /// Included only in responses + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { get; set; } /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// Tuning tasks that create tuned models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("baseModel")] - public string? BaseModel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tuningTask")] + public global::Google.Gemini.TuningTask? TuningTask { get; set; } /// /// Output only. The state of the tuned model.
@@ -56,16 +61,17 @@ public sealed partial class TunedModel public global::Google.Gemini.TunedModelState? State { get; set; } /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - [global::System.Text.Json.Serialization.JsonPropertyName("topP")] - public float? TopP { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("baseModel")] + public string? BaseModel { get; set; } /// - /// Optional. List of project numbers that have read access to the tuned model. + /// Output only. The timestamp when this model was created.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("readerProjectNumbers")] - public global::System.Collections.Generic.IList? ReaderProjectNumbers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Tuned model as a source for training a new model. @@ -74,16 +80,10 @@ public sealed partial class TunedModel public global::Google.Gemini.TunedModelSource? TunedModelSource { get; set; } /// - /// Tuning tasks that create tuned models. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tuningTask")] - public global::Google.Gemini.TuningTask? TuningTask { get; set; } - - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// Optional. List of project numbers that have read access to the tuned model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("readerProjectNumbers")] + public global::System.Collections.Generic.IList? ReaderProjectNumbers { get; set; } /// /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. @@ -100,45 +100,45 @@ public sealed partial class TunedModel /// /// Initializes a new instance of the class. /// + /// + /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// + /// Output only. The timestamp when this model was updated.
+ /// Included only in responses + /// /// /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Optional. A short description of this model. - /// /// /// Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`
/// Included only in responses /// - /// - /// Output only. The timestamp when this model was updated.
- /// Included only in responses + /// + /// Optional. A short description of this model. /// - /// - /// Output only. The timestamp when this model was created.
- /// Included only in responses + /// + /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// + /// Tuning tasks that create tuned models. /// /// /// Output only. The state of the tuned model.
/// Included only in responses /// - /// - /// Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model. + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - /// - /// Optional. List of project numbers that have read access to the tuned model. + /// + /// Output only. The timestamp when this model was created.
+ /// Included only in responses /// /// /// Tuned model as a source for training a new model. /// - /// - /// Tuning tasks that create tuned models. - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. List of project numbers that have read access to the tuned model. /// /// /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model. @@ -147,32 +147,32 @@ public sealed partial class TunedModel [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TunedModel( + string? displayName, + string? updateTime, float? temperature, - string? description, string? name, - string? updateTime, - string? createTime, - string? baseModel, - global::Google.Gemini.TunedModelState? state, + string? description, float? topP, - global::System.Collections.Generic.IList? readerProjectNumbers, - global::Google.Gemini.TunedModelSource? tunedModelSource, global::Google.Gemini.TuningTask? tuningTask, - string? displayName, + global::Google.Gemini.TunedModelState? state, + string? baseModel, + string? createTime, + global::Google.Gemini.TunedModelSource? tunedModelSource, + global::System.Collections.Generic.IList? readerProjectNumbers, int? topK) { + this.DisplayName = displayName; + this.UpdateTime = updateTime; this.Temperature = temperature; - this.Description = description; this.Name = name; - this.UpdateTime = updateTime; - this.CreateTime = createTime; - this.BaseModel = baseModel; - this.State = state; + this.Description = description; this.TopP = topP; - this.ReaderProjectNumbers = readerProjectNumbers; - this.TunedModelSource = tunedModelSource; this.TuningTask = tuningTask; - this.DisplayName = displayName; + this.State = state; + this.BaseModel = baseModel; + this.CreateTime = createTime; + this.TunedModelSource = tunedModelSource; + this.ReaderProjectNumbers = readerProjectNumbers; this.TopK = topK; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs index ceaaa53fe..bafee2ce8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelSource.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini ///
public sealed partial class TunedModelSource { + /// + /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tunedModel")] + public string? TunedModel { get; set; } + /// /// Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`
/// Included only in responses @@ -15,12 +21,6 @@ public sealed partial class TunedModelSource [global::System.Text.Json.Serialization.JsonPropertyName("baseModel")] public string? BaseModel { get; set; } - /// - /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tunedModel")] - public string? TunedModel { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class TunedModelSource /// /// Initializes a new instance of the class. /// + /// + /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` + /// /// /// Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`
/// Included only in responses /// - /// - /// Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model` - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TunedModelSource( - string? baseModel, - string? tunedModel) + string? tunedModel, + string? baseModel) { - this.BaseModel = baseModel; this.TunedModel = tunedModel; + this.BaseModel = baseModel; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs index 09f2011b0..0da43e150 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningSnapshot.g.cs @@ -9,32 +9,32 @@ namespace Google.Gemini public sealed partial class TuningSnapshot { /// - /// Output only. The tuning step.
+ /// Output only. The mean loss of the training examples for this step.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")] + public float? MeanLoss { get; set; } /// - /// Output only. The epoch this step was part of.
+ /// Output only. The timestamp when this metric was computed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("epoch")] - public int? Epoch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("computeTime")] + public string? ComputeTime { get; set; } /// - /// Output only. The timestamp when this metric was computed.
+ /// Output only. The epoch this step was part of.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("computeTime")] - public string? ComputeTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("epoch")] + public int? Epoch { get; set; } /// - /// Output only. The mean loss of the training examples for this step.
+ /// Output only. The tuning step.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")] - public float? MeanLoss { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("step")] + public int? Step { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -45,35 +45,35 @@ public sealed partial class TuningSnapshot /// /// Initializes a new instance of the class. /// - /// - /// Output only. The tuning step.
- /// Included only in responses - /// - /// - /// Output only. The epoch this step was part of.
+ /// + /// Output only. The mean loss of the training examples for this step.
/// Included only in responses /// /// /// Output only. The timestamp when this metric was computed.
/// Included only in responses /// - /// - /// Output only. The mean loss of the training examples for this step.
+ /// + /// Output only. The epoch this step was part of.
+ /// Included only in responses + /// + /// + /// Output only. The tuning step.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningSnapshot( - int? step, - int? epoch, + float? meanLoss, string? computeTime, - float? meanLoss) + int? epoch, + int? step) { - this.Step = step; - this.Epoch = epoch; - this.ComputeTime = computeTime; this.MeanLoss = meanLoss; + this.ComputeTime = computeTime; + this.Epoch = epoch; + this.Step = step; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs index 77bcdd083..b675917cb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TuningTask.g.cs @@ -9,17 +9,10 @@ namespace Google.Gemini public sealed partial class TuningTask { /// - /// Output only. Metrics collected during tuning.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("snapshots")] - public global::System.Collections.Generic.IList? Snapshots { get; set; } - - /// - /// Dataset for training or validation. + /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance /// - [global::System.Text.Json.Serialization.JsonPropertyName("trainingData")] - public global::Google.Gemini.Dataset? TrainingData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("hyperparameters")] + public global::Google.Gemini.Hyperparameters? Hyperparameters { get; set; } /// /// Output only. The timestamp when tuning this model started.
@@ -28,12 +21,6 @@ public sealed partial class TuningTask [global::System.Text.Json.Serialization.JsonPropertyName("startTime")] public string? StartTime { get; set; } - /// - /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance - /// - [global::System.Text.Json.Serialization.JsonPropertyName("hyperparameters")] - public global::Google.Gemini.Hyperparameters? Hyperparameters { get; set; } - /// /// Output only. The timestamp when tuning this model completed.
/// Included only in responses @@ -41,6 +28,19 @@ public sealed partial class TuningTask [global::System.Text.Json.Serialization.JsonPropertyName("completeTime")] public string? CompleteTime { get; set; } + /// + /// Dataset for training or validation. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("trainingData")] + public global::Google.Gemini.Dataset? TrainingData { get; set; } + + /// + /// Output only. Metrics collected during tuning.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("snapshots")] + public global::System.Collections.Generic.IList? Snapshots { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -50,39 +50,39 @@ public sealed partial class TuningTask /// /// Initializes a new instance of the class. /// - /// - /// Output only. Metrics collected during tuning.
- /// Included only in responses - /// - /// - /// Dataset for training or validation. + /// + /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance /// /// /// Output only. The timestamp when tuning this model started.
/// Included only in responses /// - /// - /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance - /// /// /// Output only. The timestamp when tuning this model completed.
/// Included only in responses /// + /// + /// Dataset for training or validation. + /// + /// + /// Output only. Metrics collected during tuning.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningTask( - global::System.Collections.Generic.IList? snapshots, - global::Google.Gemini.Dataset? trainingData, - string? startTime, global::Google.Gemini.Hyperparameters? hyperparameters, - string? completeTime) + string? startTime, + string? completeTime, + global::Google.Gemini.Dataset? trainingData, + global::System.Collections.Generic.IList? snapshots) { - this.Snapshots = snapshots; - this.TrainingData = trainingData; - this.StartTime = startTime; this.Hyperparameters = hyperparameters; + this.StartTime = startTime; this.CompleteTime = completeTime; + this.TrainingData = trainingData; + this.Snapshots = snapshots; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs index a87bf6f4b..38f14eb82 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UploadToFileSearchStoreRequest.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class UploadToFileSearchStoreRequest { - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// - [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] - public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; } - /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// @@ -21,10 +15,10 @@ public sealed partial class UploadToFileSearchStoreRequest public string? MimeType { get; set; } /// - /// Custom metadata to be associated with the data. + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// - [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] - public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("chunkingConfig")] + public global::Google.Gemini.ChunkingConfig? ChunkingConfig { get; set; } /// /// Optional. Display name of the created document. @@ -32,6 +26,12 @@ public sealed partial class UploadToFileSearchStoreRequest [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] public string? DisplayName { get; set; } + /// + /// Custom metadata to be associated with the data. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] + public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,31 +41,31 @@ public sealed partial class UploadToFileSearchStoreRequest /// /// Initializes a new instance of the class. /// - /// - /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto - /// /// /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// - /// - /// Custom metadata to be associated with the data. + /// + /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto /// /// /// Optional. Display name of the created document. /// + /// + /// Custom metadata to be associated with the data. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UploadToFileSearchStoreRequest( - global::Google.Gemini.ChunkingConfig? chunkingConfig, string? mimeType, - global::System.Collections.Generic.IList? customMetadata, - string? displayName) + global::Google.Gemini.ChunkingConfig? chunkingConfig, + string? displayName, + global::System.Collections.Generic.IList? customMetadata) { - this.ChunkingConfig = chunkingConfig; this.MimeType = mimeType; - this.CustomMetadata = customMetadata; + this.ChunkingConfig = chunkingConfig; this.DisplayName = displayName; + this.CustomMetadata = customMetadata; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadata.g.cs index 92ed5e03e..8be9fd58a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadata.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class UrlMetadata { - /// - /// Retrieved url by the tool. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("retrievedUrl")] - public string? RetrievedUrl { get; set; } - /// /// Status of the url retrieval. /// @@ -21,6 +15,12 @@ public sealed partial class UrlMetadata [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter))] public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? UrlRetrievalStatus { get; set; } + /// + /// Retrieved url by the tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("retrievedUrl")] + public string? RetrievedUrl { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class UrlMetadata /// /// Initializes a new instance of the class. /// - /// - /// Retrieved url by the tool. - /// /// /// Status of the url retrieval. /// + /// + /// Retrieved url by the tool. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UrlMetadata( - string? retrievedUrl, - global::Google.Gemini.UrlMetadataUrlRetrievalStatus? urlRetrievalStatus) + global::Google.Gemini.UrlMetadataUrlRetrievalStatus? urlRetrievalStatus, + string? retrievedUrl) { - this.RetrievedUrl = retrievedUrl; this.UrlRetrievalStatus = urlRetrievalStatus; + this.RetrievedUrl = retrievedUrl; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs index 3ff03f576..5d74b3897 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UsageMetadata.g.cs @@ -8,6 +8,20 @@ namespace Google.Gemini /// public sealed partial class UsageMetadata { + /// + /// Output only. List of modalities that were processed in the request input.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] + public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + + /// + /// Output only. List of modalities of the cached content in the request input.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] + public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } + /// /// Total number of tokens across all the generated response candidates. /// @@ -15,44 +29,38 @@ public sealed partial class UsageMetadata public int? CandidatesTokenCount { get; set; } /// - /// Number of tokens in the cached part of the prompt (the cached content) + /// Total token count for the generation request (prompt + thoughts + response candidates). /// - [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] - public int? CachedContentTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("totalTokenCount")] + public int? TotalTokenCount { get; set; } /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses + /// Number of tokens in the cached part of the prompt (the cached content) ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] - public global::System.Collections.Generic.IList? PromptTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] + public int? CachedContentTokenCount { get; set; } /// - /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// Output only. Service tier of the request.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokensDetails")] - public global::System.Collections.Generic.IList? ToolUsePromptTokensDetails { get; set; } - - /// - /// Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] - public int? PromptTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter))] + public global::Google.Gemini.UsageMetadataServiceTier? ServiceTier { get; set; } /// - /// Output only. List of modalities that were returned in the response.
+ /// Output only. Number of tokens of thoughts for thinking models.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokensDetails")] - public global::System.Collections.Generic.IList? CandidatesTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] + public int? ThoughtsTokenCount { get; set; } /// - /// Output only. List of modalities of the cached content in the request input.
+ /// Output only. List of modalities that were processed for tool-use request inputs.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] - public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokensDetails")] + public global::System.Collections.Generic.IList? ToolUsePromptTokensDetails { get; set; } /// /// Output only. Number of tokens present in tool-use prompt(s).
@@ -62,25 +70,17 @@ public sealed partial class UsageMetadata public int? ToolUsePromptTokenCount { get; set; } /// - /// Total token count for the generation request (prompt + thoughts + response candidates). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("totalTokenCount")] - public int? TotalTokenCount { get; set; } - - /// - /// Output only. Number of tokens of thoughts for thinking models.
- /// Included only in responses + /// Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] - public int? ThoughtsTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] + public int? PromptTokenCount { get; set; } /// - /// Output only. Service tier of the request.
+ /// Output only. List of modalities that were returned in the response.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("serviceTier")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter))] - public global::Google.Gemini.UsageMetadataServiceTier? ServiceTier { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokensDetails")] + public global::System.Collections.Generic.IList? CandidatesTokensDetails { get; set; } /// /// Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.
@@ -105,44 +105,44 @@ public sealed partial class UsageMetadata /// /// Initializes a new instance of the class. /// + /// + /// Output only. List of modalities that were processed in the request input.
+ /// Included only in responses + /// + /// + /// Output only. List of modalities of the cached content in the request input.
+ /// Included only in responses + /// /// /// Total number of tokens across all the generated response candidates. /// + /// + /// Total token count for the generation request (prompt + thoughts + response candidates). + /// /// /// Number of tokens in the cached part of the prompt (the cached content) /// - /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses - /// - /// - /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// + /// Output only. Service tier of the request.
/// Included only in responses /// - /// - /// Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. - /// - /// - /// Output only. List of modalities that were returned in the response.
+ /// + /// Output only. Number of tokens of thoughts for thinking models.
/// Included only in responses /// - /// - /// Output only. List of modalities of the cached content in the request input.
+ /// + /// Output only. List of modalities that were processed for tool-use request inputs.
/// Included only in responses /// /// /// Output only. Number of tokens present in tool-use prompt(s).
/// Included only in responses /// - /// - /// Total token count for the generation request (prompt + thoughts + response candidates). - /// - /// - /// Output only. Number of tokens of thoughts for thinking models.
- /// Included only in responses + /// + /// Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content. /// - /// - /// Output only. Service tier of the request.
+ /// + /// Output only. List of modalities that were returned in the response.
/// Included only in responses /// /// @@ -157,31 +157,31 @@ public sealed partial class UsageMetadata [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public UsageMetadata( + global::System.Collections.Generic.IList? promptTokensDetails, + global::System.Collections.Generic.IList? cacheTokensDetails, int? candidatesTokenCount, + int? totalTokenCount, int? cachedContentTokenCount, - global::System.Collections.Generic.IList? promptTokensDetails, + global::Google.Gemini.UsageMetadataServiceTier? serviceTier, + int? thoughtsTokenCount, global::System.Collections.Generic.IList? toolUsePromptTokensDetails, + int? toolUsePromptTokenCount, int? promptTokenCount, global::System.Collections.Generic.IList? candidatesTokensDetails, - global::System.Collections.Generic.IList? cacheTokensDetails, - int? toolUsePromptTokenCount, - int? totalTokenCount, - int? thoughtsTokenCount, - global::Google.Gemini.UsageMetadataServiceTier? serviceTier, int? responseTokenCount, global::System.Collections.Generic.IList? responseTokensDetails) { + this.PromptTokensDetails = promptTokensDetails; + this.CacheTokensDetails = cacheTokensDetails; this.CandidatesTokenCount = candidatesTokenCount; + this.TotalTokenCount = totalTokenCount; this.CachedContentTokenCount = cachedContentTokenCount; - this.PromptTokensDetails = promptTokensDetails; + this.ServiceTier = serviceTier; + this.ThoughtsTokenCount = thoughtsTokenCount; this.ToolUsePromptTokensDetails = toolUsePromptTokensDetails; + this.ToolUsePromptTokenCount = toolUsePromptTokenCount; this.PromptTokenCount = promptTokenCount; this.CandidatesTokensDetails = candidatesTokensDetails; - this.CacheTokensDetails = cacheTokensDetails; - this.ToolUsePromptTokenCount = toolUsePromptTokenCount; - this.TotalTokenCount = totalTokenCount; - this.ThoughtsTokenCount = thoughtsTokenCount; - this.ServiceTier = serviceTier; this.ResponseTokenCount = responseTokenCount; this.ResponseTokensDetails = responseTokensDetails; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Web.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Web.g.cs index 057e2a360..10b0d5ecb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Web.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Web.g.cs @@ -9,18 +9,18 @@ namespace Google.Gemini public sealed partial class Web { /// - /// Output only. URI reference of the chunk.
+ /// Output only. Title of the chunk.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } /// - /// Output only. Title of the chunk.
+ /// Output only. URI reference of the chunk.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,23 +31,23 @@ public sealed partial class Web /// /// Initializes a new instance of the class. /// - /// - /// Output only. URI reference of the chunk.
- /// Included only in responses - /// /// /// Output only. Title of the chunk.
/// Included only in responses /// + /// + /// Output only. URI reference of the chunk.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Web( - string? uri, - string? title) + string? title, + string? uri) { - this.Uri = uri; this.Title = title; + this.Uri = uri; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs index c7b0c0fb6..24c4a6099 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.WhiteSpaceConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class WhiteSpaceConfig { - /// - /// Maximum number of overlapping tokens between two adjacent chunks. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxOverlapTokens")] - public int? MaxOverlapTokens { get; set; } - /// /// Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow. /// [global::System.Text.Json.Serialization.JsonPropertyName("maxTokensPerChunk")] public int? MaxTokensPerChunk { get; set; } + /// + /// Maximum number of overlapping tokens between two adjacent chunks. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maxOverlapTokens")] + public int? MaxOverlapTokens { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class WhiteSpaceConfig /// /// Initializes a new instance of the class. /// - /// - /// Maximum number of overlapping tokens between two adjacent chunks. - /// /// /// Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow. /// + /// + /// Maximum number of overlapping tokens between two adjacent chunks. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public WhiteSpaceConfig( - int? maxOverlapTokens, - int? maxTokensPerChunk) + int? maxTokensPerChunk, + int? maxOverlapTokens) { - this.MaxOverlapTokens = maxOverlapTokens; this.MaxTokensPerChunk = maxTokensPerChunk; + this.MaxOverlapTokens = maxOverlapTokens; } /// diff --git a/src/libs/Google.Gemini/openapi.json b/src/libs/Google.Gemini/openapi.json index 1d523a73f..db8624f97 100644 --- a/src/libs/Google.Gemini/openapi.json +++ b/src/libs/Google.Gemini/openapi.json @@ -11,75 +11,31 @@ } ], "paths": { - "/batches": { - "get": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "operationId": "batches.list", - "parameters": [ - { - "name": "filter", - "in": "query", - "description": "The standard list filter.", - "schema": { - "type": "string" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The standard list page size.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "The standard list page token.", - "schema": { - "type": "string" - } - }, - { - "name": "returnPartialSuccess", - "in": "query", - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "schema": { - "type": "boolean" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" - } - } - } - } - } - } - }, - "/batches/{batchesId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "batches.get", + "/tunedModels/{tunedModelsId}:asyncBatchEmbedContent": { + "post": { + "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.", + "operationId": "tunedModels.asyncBatchEmbedContent", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -92,19 +48,21 @@ } } } - }, + } + }, + "/tunedModels/{tunedModelsId}": { "delete": { - "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", - "operationId": "batches.delete", + "description": "Deletes a tuned model.", + "operationId": "tunedModels.delete", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource to be deleted.", + "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -120,21 +78,19 @@ } } } - } - }, - "/batches/{batchesId}:updateEmbedContentBatch": { + }, "patch": { - "description": "Updates a batch of EmbedContent requests for batch processing.", - "operationId": "batches.updateEmbedContentBatch", + "description": "Updates a tuned model.", + "operationId": "tunedModels.patch", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } }, { @@ -151,7 +107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" + "$ref": "#/components/schemas/TunedModel" } } } @@ -162,55 +118,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" + "$ref": "#/components/schemas/TunedModel" } } } } } - } - }, - "/batches/{batchesId}:updateGenerateContentBatch": { - "patch": { - "description": "Updates a batch of GenerateContent requests for batch processing.", - "operationId": "batches.updateGenerateContentBatch", + }, + "get": { + "description": "Gets information about a specific TunedModel.", + "operationId": "tunedModels.get", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", - "schema": { - "type": "string", - "pattern": "^batches/[^/]+$" - } - }, - { - "name": "updateMask", - "in": "query", - "description": "Optional. The list of fields to update.", + "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^tunedModels/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" + "$ref": "#/components/schemas/TunedModel" } } } @@ -218,19 +154,34 @@ } } }, - "/batches/{batchesId}:cancel": { - "post": { - "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", - "operationId": "batches.cancel", + "/tunedModels": { + "get": { + "description": "Lists created tuned models.", + "operationId": "tunedModels.list", "parameters": [ { - "name": "batchesId", - "in": "path", - "required": true, - "description": "The name of the operation resource to be cancelled.", + "name": "filter", + "in": "query", + "description": "Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone. Additional operators: - owner:me - writers:me - readers:me - readers:everyone Examples: \"owner:me\" returns all tuned models to which caller has owner role \"readers:me\" returns all tuned models to which caller has reader role \"readers:everyone\" returns all tuned models that are shared with everyone", "schema": { - "type": "string", - "pattern": "^batches/[^/]+$" + "type": "string" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of `TunedModels` to return (per page). The service may return fewer tuned models. If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger page_size.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListTunedModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.", + "schema": { + "type": "string" } } ], @@ -240,64 +191,62 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListTunedModelsResponse" } } } } } - } - }, - "/cachedContents/{cachedContentsId}": { - "delete": { - "description": "Deletes CachedContent resource.", - "operationId": "cachedContents.delete", + }, + "post": { + "description": "Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222", + "operationId": "tunedModels.create", "parameters": [ { - "name": "cachedContentsId", - "in": "path", - "required": true, - "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`", + "name": "tunedModelId", + "in": "query", + "description": "Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: `[a-z]([a-z0-9-]{0,38}[a-z0-9])?`.", "schema": { - "type": "string", - "pattern": "^cachedContents/[^/]+$" + "type": "string" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TunedModel" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "patch": { - "description": "Updates CachedContent resource (only expiration is updatable).", - "operationId": "cachedContents.patch", + } + }, + "/tunedModels/{tunedModelsId}:streamGenerateContent": { + "post": { + "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", + "operationId": "tunedModels.streamGenerateContent", "parameters": [ { - "name": "cachedContentsId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", - "schema": { - "type": "string", - "pattern": "^cachedContents/[^/]+$" - } - }, - { - "name": "updateMask", - "in": "query", - "description": "The list of fields to update.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -305,7 +254,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -316,51 +265,40 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } } } - }, - "get": { - "description": "Reads CachedContent resource.", - "operationId": "cachedContents.get", + } + }, + "/tunedModels/{tunedModelsId}:transferOwnership": { + "post": { + "description": "Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.", + "operationId": "tunedModels.transferOwnership", "parameters": [ { - "name": "cachedContentsId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", + "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "pattern": "^cachedContents/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CachedContent" - } - } - } - } - } - } - }, - "/cachedContents": { - "post": { - "description": "Creates CachedContent resource.", - "operationId": "cachedContents.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/TransferOwnershipRequest" } } } @@ -371,42 +309,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/TransferOwnershipResponse" } } } } } - }, - "get": { - "description": "Lists CachedContents.", - "operationId": "cachedContents.list", + } + }, + "/tunedModels/{tunedModelsId}:generateContent": { + "post": { + "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", + "operationId": "tunedModels.generateContent", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.", + "name": "tunedModelsId", + "in": "path", + "required": true, + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { - "type": "string" + "type": "string", + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCachedContentsResponse" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -414,55 +356,66 @@ } } }, - "/corpora/{corporaId}": { - "get": { - "description": "Gets information about a specific `Corpus`.", - "operationId": "corpora.get", + "/tunedModels/{tunedModelsId}:batchGenerateContent": { + "post": { + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "tunedModels.batchGenerateContent", "parameters": [ { - "name": "corporaId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BatchGenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "delete": { - "description": "Deletes a `Corpus`.", - "operationId": "corpora.delete", + } + }, + "/tunedModels/{tunedModelsId}/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "tunedModels.operations.get", "parameters": [ { - "name": "force", - "in": "query", - "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.", + "name": "tunedModelsId", + "in": "path", + "required": true, "schema": { - "type": "boolean" + "type": "string" } }, { - "name": "corporaId", + "name": "operationsId", "in": "path", "required": true, - "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^tunedModels/[^/]+/operations/[^/]+$" } } ], @@ -472,7 +425,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Operation" } } } @@ -480,15 +433,33 @@ } } }, - "/corpora": { + "/tunedModels/{tunedModelsId}/operations": { "get": { - "description": "Lists all `Corpora` owned by the user.", - "operationId": "corpora.list", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "operationId": "tunedModels.operations.list", "parameters": [ + { + "name": "filter", + "in": "query", + "description": "The standard list filter.", + "schema": { + "type": "string" + } + }, + { + "name": "tunedModelsId", + "in": "path", + "required": true, + "description": "The name of the operation's parent resource.", + "schema": { + "type": "string", + "pattern": "^tunedModels/[^/]+$" + } + }, { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `Corpora` to return (per page). The service may return fewer `Corpora`. If unspecified, at most 10 `Corpora` will be returned. The maximum size limit is 20 `Corpora` per page.", + "description": "The standard list page size.", "schema": { "type": "integer", "format": "int32" @@ -497,10 +468,18 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListCorpora` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListCorpora` must match the call that provided the page token.", + "description": "The standard list page token.", "schema": { "type": "string" } + }, + { + "name": "returnPartialSuccess", + "in": "query", + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "schema": { + "type": "boolean" + } } ], "responses": { @@ -509,21 +488,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCorporaResponse" + "$ref": "#/components/schemas/ListOperationsResponse" } } } } } - }, + } + }, + "/tunedModels/{tunedModelsId}/permissions": { "post": { - "description": "Creates an empty `Corpus`.", - "operationId": "corpora.create", + "description": "Create a permission to a specific resource.", + "operationId": "tunedModels.permissions.create", + "parameters": [ + { + "name": "tunedModelsId", + "in": "path", + "required": true, + "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "schema": { + "type": "string", + "pattern": "^tunedModels/[^/]+$" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/Permission" } } } @@ -534,35 +527,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/Permission" } } } } } - } - }, - "/corpora/{corporaId}/operations/{operationsId}": { + }, "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "corpora.operations.get", + "description": "Lists permissions for the specific resource.", + "operationId": "tunedModels.permissions.list", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", "schema": { "type": "string" } }, { - "name": "corporaId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/operations/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -572,7 +572,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/ListPermissionsResponse" } } } @@ -580,13 +580,13 @@ } } }, - "/corpora/{corporaId}/permissions/{permissionsId}": { - "delete": { - "description": "Deletes the permission.", - "operationId": "corpora.permissions.delete", + "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { + "get": { + "description": "Gets information about a specific Permission.", + "operationId": "tunedModels.permissions.get", "parameters": [ { - "name": "permissionsId", + "name": "tunedModelsId", "in": "path", "required": true, "schema": { @@ -594,13 +594,13 @@ } }, { - "name": "corporaId", + "name": "permissionsId", "in": "path", "required": true, "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } } ], @@ -610,19 +610,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Permission" } } } } } }, - "get": { - "description": "Gets information about a specific Permission.", - "operationId": "corpora.permissions.get", + "delete": { + "description": "Deletes the permission.", + "operationId": "tunedModels.permissions.delete", "parameters": [ { - "name": "permissionsId", + "name": "tunedModelsId", "in": "path", "required": true, "schema": { @@ -630,13 +630,13 @@ } }, { - "name": "corporaId", + "name": "permissionsId", "in": "path", "required": true, "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } } ], @@ -646,7 +646,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/Empty" } } } @@ -655,10 +655,10 @@ }, "patch": { "description": "Updates the permission.", - "operationId": "corpora.permissions.patch", + "operationId": "tunedModels.permissions.patch", "parameters": [ { - "name": "permissionsId", + "name": "tunedModelsId", "in": "path", "required": true, "schema": { @@ -666,13 +666,13 @@ } }, { - "name": "corporaId", + "name": "permissionsId", "in": "path", "required": true, "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } }, { @@ -708,33 +708,24 @@ } } }, - "/corpora/{corporaId}/permissions": { - "get": { - "description": "Lists permissions for the specific resource.", - "operationId": "corpora.permissions.list", - "parameters": [ - { - "name": "pageSize", - "in": "query", - "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", - "schema": { - "type": "integer", - "format": "int32" - } - }, + "/corpora/{corporaId}": { + "delete": { + "description": "Deletes a `Corpus`.", + "operationId": "corpora.delete", + "parameters": [ { - "name": "pageToken", + "name": "force", "in": "query", - "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", + "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.", "schema": { - "type": "string" + "type": "boolean" } }, { "name": "corporaId", "in": "path", "required": true, - "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", "pattern": "^corpora/[^/]+$" @@ -747,71 +738,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListPermissionsResponse" + "$ref": "#/components/schemas/Empty" } } } } } }, - "post": { - "description": "Create a permission to a specific resource.", - "operationId": "corpora.permissions.create", + "get": { + "description": "Gets information about a specific `Corpus`.", + "operationId": "corpora.get", "parameters": [ { "name": "corporaId", "in": "path", "required": true, - "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", "pattern": "^corpora/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } - } - } - }, - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } - } - } - } - } - } - }, - "/auth_tokens": { - "post": { - "description": "Creates a token that can be used to constrain the behavior of a BidiGenerateContent session.", - "operationId": "auth_tokens.create", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AuthToken" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthToken" + "$ref": "#/components/schemas/Corpus" } } } @@ -819,27 +774,26 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}": { - "delete": { - "description": "Deletes a `FileSearchStore`.", - "operationId": "fileSearchStores.delete", + "/corpora": { + "get": { + "description": "Lists all `Corpora` owned by the user.", + "operationId": "corpora.list", "parameters": [ { - "name": "force", + "name": "pageSize", "in": "query", - "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.", + "description": "Optional. The maximum number of `Corpora` to return (per page). The service may return fewer `Corpora`. If unspecified, at most 10 `Corpora` will be returned. The maximum size limit is 20 `Corpora` per page.", "schema": { - "type": "boolean" + "type": "integer", + "format": "int32" } }, { - "name": "fileSearchStoresId", - "in": "path", - "required": true, - "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListCorpora` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListCorpora` must match the call that provided the page token.", "schema": { - "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "type": "string" } } ], @@ -849,51 +803,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListCorporaResponse" } } } } } }, - "get": { - "description": "Gets information about a specific `FileSearchStore`.", - "operationId": "fileSearchStores.get", - "parameters": [ - { - "name": "fileSearchStoresId", - "in": "path", - "required": true, - "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", - "schema": { - "type": "string", - "pattern": "^fileSearchStores/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FileSearchStore" - } - } - } - } - } - } - }, - "/fileSearchStores": { "post": { - "description": "Creates an empty `FileSearchStore`.", - "operationId": "fileSearchStores.create", + "description": "Creates an empty `Corpus`.", + "operationId": "corpora.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/Corpus" } } } @@ -904,32 +828,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/Corpus" } } } } } - }, + } + }, + "/corpora/{corporaId}/operations/{operationsId}": { "get": { - "description": "Lists all `FileSearchStores` owned by the user.", - "operationId": "fileSearchStores.list", + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "corpora.operations.get", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. The maximum number of `FileSearchStores` to return (per page). The service may return fewer `FileSearchStores`. If unspecified, at most 10 `FileSearchStores` will be returned. The maximum size limit is 20 `FileSearchStores` per page.", + "name": "operationsId", + "in": "path", + "required": true, "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token, received from a previous `ListFileSearchStores` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListFileSearchStores` must match the call that provided the page token.", + "name": "corporaId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { - "type": "string" + "type": "string", + "pattern": "^corpora/[^/]+/operations/[^/]+$" } } ], @@ -939,7 +866,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListFileSearchStoresResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -947,19 +874,19 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}:importFile": { + "/corpora/{corporaId}/permissions": { "post": { - "description": "Imports a `File` from File Service to a `FileSearchStore`.", - "operationId": "fileSearchStores.importFile", + "description": "Create a permission to a specific resource.", + "operationId": "corpora.permissions.create", "parameters": [ { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -967,7 +894,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImportFileRequest" + "$ref": "#/components/schemas/Permission" } } } @@ -978,35 +905,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Permission" } } } } } - } - }, - "/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}": { + }, "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "fileSearchStores.upload.operations.get", + "description": "Lists permissions for the specific resource.", + "operationId": "corpora.permissions.list", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", "schema": { "type": "string" } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -1016,7 +950,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/ListPermissionsResponse" } } } @@ -1024,13 +958,13 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}": { + "/corpora/{corporaId}/permissions/{permissionsId}": { "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "fileSearchStores.operations.get", + "description": "Gets information about a specific Permission.", + "operationId": "corpora.permissions.get", "parameters": [ { - "name": "operationsId", + "name": "permissionsId", "in": "path", "required": true, "schema": { @@ -1038,13 +972,13 @@ } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } } ], @@ -1054,21 +988,19 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Permission" } } } } } - } - }, - "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { + }, "delete": { - "description": "Deletes a `Document`.", - "operationId": "fileSearchStores.documents.delete", + "description": "Deletes the permission.", + "operationId": "corpora.permissions.delete", "parameters": [ { - "name": "fileSearchStoresId", + "name": "permissionsId", "in": "path", "required": true, "schema": { @@ -1076,21 +1008,13 @@ } }, { - "name": "force", - "in": "query", - "description": "Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s.", - "schema": { - "type": "boolean" - } - }, - { - "name": "documentsId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", + "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } } ], @@ -1107,12 +1031,12 @@ } } }, - "get": { - "description": "Gets information about a specific `Document`.", - "operationId": "fileSearchStores.documents.get", + "patch": { + "description": "Updates the permission.", + "operationId": "corpora.permissions.patch", "parameters": [ { - "name": "fileSearchStoresId", + "name": "permissionsId", "in": "path", "required": true, "schema": { @@ -1120,23 +1044,41 @@ } }, { - "name": "documentsId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", + "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" + } + }, + { + "name": "updateMask", + "in": "query", + "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", + "schema": { + "type": "string", + "format": "google-fieldmask" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Permission" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Document" + "$ref": "#/components/schemas/Permission" } } } @@ -1144,62 +1086,27 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/documents": { - "get": { - "description": "Lists all `Document`s in a `Corpus`.", - "operationId": "fileSearchStores.documents.list", + "/dynamic/{dynamicId}:generateContent": { + "post": { + "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", + "operationId": "dynamic.generateContent", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token, received from a previous `ListDocuments` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.", - "schema": { - "type": "string" - } - }, - { - "name": "fileSearchStoresId", + "name": "dynamicId", "in": "path", "required": true, - "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^dynamic/[^/]+$" } } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListDocumentsResponse" - } - } - } - } - } - } - }, - "/environments:create": { - "post": { - "description": "Creates an environment.", - "operationId": "environments.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateEnvironmentRequest" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -1210,7 +1117,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Environment" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -1218,28 +1125,43 @@ } } }, - "/environments/{id}:delete": { - "delete": { - "description": "Deletes an environment.", - "operationId": "environments.delete", + "/dynamic/{dynamicId}:streamGenerateContent": { + "post": { + "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", + "operationId": "dynamic.streamGenerateContent", "parameters": [ { - "name": "id", + "name": "dynamicId", "in": "path", "required": true, - "description": "Required. The identifier of the environment to delete.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { - "type": "string" + "type": "string", + "pattern": "^dynamic/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -1247,16 +1169,16 @@ } } }, - "/environments/{id}:get": { - "get": { - "description": "Gets an environment.", - "operationId": "environments.get", + "/environments/{id}:delete": { + "delete": { + "description": "Deletes an environment.", + "operationId": "environments.delete", "parameters": [ { "name": "id", "in": "path", "required": true, - "description": "Required. The identifier of the environment to retrieve.", + "description": "Required. The identifier of the environment to delete.", "schema": { "type": "string" } @@ -1268,7 +1190,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Environment" + "$ref": "#/components/schemas/Empty" } } } @@ -1313,15 +1235,15 @@ } } }, - "/files:register": { + "/environments:create": { "post": { - "description": "Registers a Google Cloud Storage files with FileService. The user is expected to provide Google Cloud Storage URIs and will receive a File resource for each URI in return. Note that the files are not copied, just registered with File API. If one file fails to register, the whole request fails.", - "operationId": "files.register", + "description": "Creates an environment.", + "operationId": "environments.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RegisterFilesRequest" + "$ref": "#/components/schemas/CreateEnvironmentRequest" } } } @@ -1332,7 +1254,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RegisterFilesResponse" + "$ref": "#/components/schemas/Environment" } } } @@ -1340,24 +1262,16 @@ } } }, - "/files": { + "/environments/{id}:get": { "get": { - "description": "Lists the metadata for `File`s owned by the requesting project.", - "operationId": "files.list", + "description": "Gets an environment.", + "operationId": "environments.get", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token from a previous `ListFiles` call.", + "name": "id", + "in": "path", + "required": true, + "description": "Required. The identifier of the environment to retrieve.", "schema": { "type": "string" } @@ -1369,21 +1283,23 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListFilesResponse" + "$ref": "#/components/schemas/Environment" } } } } } - }, + } + }, + "/auth_tokens": { "post": { - "description": "Creates a `File`.", - "operationId": "media.upload", + "description": "Creates a token that can be used to constrain the behavior of a BidiGenerateContent session.", + "operationId": "auth_tokens.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFileRequest" + "$ref": "#/components/schemas/AuthToken" } } } @@ -1394,7 +1310,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFileResponse" + "$ref": "#/components/schemas/AuthToken" } } } @@ -1402,19 +1318,26 @@ } } }, - "/files/{filesId}": { + "/models": { "get": { - "description": "Gets the metadata for the given `File`.", - "operationId": "files.get", + "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", + "operationId": "models.list", "parameters": [ { - "name": "filesId", - "in": "path", - "required": true, - "description": "Required. The name of the `File` to get. Example: `files/abc-123`", + "name": "pageSize", + "in": "query", + "description": "The maximum number of `Models` to return (per page). If unspecified, 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.", "schema": { - "type": "string", - "pattern": "^files/[^/]+$" + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "A page token, received from a previous `ListModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.", + "schema": { + "type": "string" } } ], @@ -1424,35 +1347,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/File" + "$ref": "#/components/schemas/ListModelsResponse" } } } } } - }, - "delete": { - "description": "Deletes the `File`.", - "operationId": "files.delete", + } + }, + "/models/{modelsId}:countTokens": { + "post": { + "description": "Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.", + "operationId": "models.countTokens", "parameters": [ { - "name": "filesId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { "type": "string", - "pattern": "^files/[^/]+$" + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CountTokensRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/CountTokensResponse" } } } @@ -1460,94 +1394,19 @@ } } }, - "/generatedFiles": { - "get": { - "description": "Lists the generated files owned by the requesting project.", - "operationId": "generatedFiles.list", + "/models/{modelsId}:batchEmbedContents": { + "post": { + "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", + "operationId": "models.batchEmbedContents", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "Optional. Maximum number of `GeneratedFile`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 50.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", + "name": "modelsId", + "in": "path", + "required": true, + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListGeneratedFilesResponse" - } - } - } - } - } - } - }, - "/generatedFiles/{generatedFilesId}/operations/{operationsId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "generatedFiles.operations.get", - "parameters": [ - { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "generatedFilesId", - "in": "path", - "required": true, - "description": "The name of the operation resource.", - "schema": { - "type": "string", - "pattern": "^generatedFiles/[^/]+/operations/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Operation" - } - } - } - } - } - } - }, - "/models/{modelsId}:countTokens": { - "post": { - "description": "Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.", - "operationId": "models.countTokens", - "parameters": [ - { - "name": "modelsId", - "in": "path", - "required": true, - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", - "schema": { - "type": "string", - "pattern": "^models/[^/]+$" + "type": "string", + "pattern": "^models/[^/]+$" } } ], @@ -1555,7 +1414,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensRequest" + "$ref": "#/components/schemas/BatchEmbedContentsRequest" } } } @@ -1566,7 +1425,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensResponse" + "$ref": "#/components/schemas/BatchEmbedContentsResponse" } } } @@ -1613,16 +1472,16 @@ } } }, - "/models/{modelsId}:generateContent": { + "/models/{modelsId}:embedContent": { "post": { - "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "operationId": "models.generateContent", + "description": "Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).", + "operationId": "models.embedContent", "parameters": [ { "name": "modelsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { "type": "string", "pattern": "^models/[^/]+$" @@ -1633,7 +1492,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/EmbedContentRequest" } } } @@ -1644,7 +1503,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/EmbedContentResponse" } } } @@ -1652,16 +1511,16 @@ } } }, - "/models/{modelsId}:batchEmbedContents": { + "/models/{modelsId}:streamGenerateContent": { "post": { - "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.", - "operationId": "models.batchEmbedContents", + "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", + "operationId": "models.streamGenerateContent", "parameters": [ { "name": "modelsId", "in": "path", "required": true, - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", "pattern": "^models/[^/]+$" @@ -1672,7 +1531,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsRequest" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -1683,37 +1542,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsResponse" + "$ref": "#/components/schemas/GenerateContentResponse" } - } - } - } - } - } - }, - "/models/{modelsId}": { - "get": { - "description": "Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.", - "operationId": "models.get", - "parameters": [ - { - "name": "modelsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", - "schema": { - "type": "string", - "pattern": "^models/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { + }, + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/Model" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -1721,16 +1555,16 @@ } } }, - "/models/{modelsId}:embedContent": { + "/models/{modelsId}:batchGenerateContent": { "post": { - "description": "Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).", - "operationId": "models.embedContent", + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "models.batchGenerateContent", "parameters": [ { "name": "modelsId", "in": "path", "required": true, - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", "pattern": "^models/[^/]+$" @@ -1741,7 +1575,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentRequest" + "$ref": "#/components/schemas/BatchGenerateContentRequest" } } } @@ -1752,7 +1586,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -1760,10 +1594,10 @@ } } }, - "/models/{modelsId}:streamGenerateContent": { + "/models/{modelsId}:generateContent": { "post": { - "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "operationId": "models.streamGenerateContent", + "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", + "operationId": "models.generateContent", "parameters": [ { "name": "modelsId", @@ -1793,37 +1627,25 @@ "schema": { "$ref": "#/components/schemas/GenerateContentResponse" } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } } } } } } }, - "/models": { + "/models/{modelsId}": { "get": { - "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", - "operationId": "models.list", + "description": "Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.", + "operationId": "models.get", "parameters": [ { - "name": "pageSize", - "in": "query", - "description": "The maximum number of `Models` to return (per page). If unspecified, 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "A page token, received from a previous `ListModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.", + "name": "modelsId", + "in": "path", + "required": true, + "description": "Required. The resource name of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { - "type": "string" + "type": "string", + "pattern": "^models/[^/]+$" } } ], @@ -1833,7 +1655,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListModelsResponse" + "$ref": "#/components/schemas/Model" } } } @@ -1841,31 +1663,30 @@ } } }, - "/models/{modelsId}:batchGenerateContent": { - "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "models.batchGenerateContent", + "/models/{modelsId}/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "models.operations.get", "parameters": [ + { + "name": "operationsId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, { "name": "modelsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^models/[^/]+/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -1943,27 +1764,19 @@ } } }, - "/models/{modelsId}/operations/{operationsId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "models.operations.get", + "/files/{filesId}": { + "delete": { + "description": "Deletes the `File`.", + "operationId": "files.delete", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "modelsId", + "name": "filesId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+/operations/[^/]+$" + "pattern": "^files/[^/]+$" } } ], @@ -1973,51 +1786,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Empty" } } } } } - } - }, - "/tunedModels/{tunedModelsId}:streamGenerateContent": { - "post": { - "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "operationId": "tunedModels.streamGenerateContent", + }, + "get": { + "description": "Gets the metadata for the given `File`.", + "operationId": "files.get", "parameters": [ { - "name": "tunedModelsId", + "name": "filesId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. The name of the `File` to get. Example: `files/abc-123`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^files/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/File" } } } @@ -2025,25 +1822,50 @@ } } }, - "/tunedModels": { - "post": { - "description": "Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222", - "operationId": "tunedModels.create", + "/files": { + "get": { + "description": "Lists the metadata for `File`s owned by the requesting project.", + "operationId": "files.list", "parameters": [ { - "name": "tunedModelId", + "name": "pageSize", "in": "query", - "description": "Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: `[a-z]([a-z0-9-]{0,38}[a-z0-9])?`.", + "description": "Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token from a previous `ListFiles` call.", "schema": { "type": "string" } } ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListFilesResponse" + } + } + } + } + } + }, + "post": { + "description": "Creates a `File`.", + "operationId": "media.upload", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/CreateFileRequest" } } } @@ -2054,29 +1876,50 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/CreateFileResponse" } } } } } - }, + } + }, + "/files:register": { + "post": { + "description": "Registers a Google Cloud Storage files with FileService. The user is expected to provide Google Cloud Storage URIs and will receive a File resource for each URI in return. Note that the files are not copied, just registered with File API. If one file fails to register, the whole request fails.", + "operationId": "files.register", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RegisterFilesRequest" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RegisterFilesResponse" + } + } + } + } + } + } + }, + "/generatedFiles": { "get": { - "description": "Lists created tuned models.", - "operationId": "tunedModels.list", + "description": "Lists the generated files owned by the requesting project.", + "operationId": "generatedFiles.list", "parameters": [ - { - "name": "filter", - "in": "query", - "description": "Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone. Additional operators: - owner:me - writers:me - readers:me - readers:everyone Examples: \"owner:me\" returns all tuned models to which caller has owner role \"readers:me\" returns all tuned models to which caller has reader role \"readers:everyone\" returns all tuned models that are shared with everyone", - "schema": { - "type": "string" - } - }, { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `TunedModels` to return (per page). The service may return fewer tuned models. If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger page_size.", + "description": "Optional. Maximum number of `GeneratedFile`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 50.", "schema": { "type": "integer", "format": "int32" @@ -2085,7 +1928,7 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListTunedModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.", + "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", "schema": { "type": "string" } @@ -2097,7 +1940,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListTunedModelsResponse" + "$ref": "#/components/schemas/ListGeneratedFilesResponse" } } } @@ -2105,93 +1948,119 @@ } } }, - "/tunedModels/{tunedModelsId}": { - "patch": { - "description": "Updates a tuned model.", - "operationId": "tunedModels.patch", + "/generatedFiles/{generatedFilesId}/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "generatedFiles.operations.get", "parameters": [ { - "name": "tunedModelsId", + "name": "operationsId", "in": "path", "required": true, - "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`", "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" + "type": "string" } }, { - "name": "updateMask", - "in": "query", - "description": "Optional. The list of fields to update.", + "name": "generatedFilesId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^generatedFiles/[^/]+/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TunedModel" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "get": { - "description": "Gets information about a specific TunedModel.", - "operationId": "tunedModels.get", + } + }, + "/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore": { + "post": { + "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.", + "operationId": "media.uploadToFileSearchStore", "parameters": [ { - "name": "tunedModelsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", + "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/CustomLongRunningOperation" } } } } } - }, - "delete": { - "description": "Deletes a tuned model.", - "operationId": "tunedModels.delete", + } + }, + "/batches": { + "get": { + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "operationId": "batches.list", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", + "name": "filter", + "in": "query", + "description": "The standard list filter.", "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" + "type": "string" + } + }, + { + "name": "pageSize", + "in": "query", + "description": "The standard list page size.", + "schema": { + "type": "integer", + "format": "int32" + } + }, + { + "name": "pageToken", + "in": "query", + "description": "The standard list page token.", + "schema": { + "type": "string" + } + }, + { + "name": "returnPartialSuccess", + "in": "query", + "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", + "schema": { + "type": "boolean" } } ], @@ -2201,7 +2070,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListOperationsResponse" } } } @@ -2209,19 +2078,28 @@ } } }, - "/tunedModels/{tunedModelsId}:generateContent": { - "post": { - "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "operationId": "tunedModels.generateContent", + "/batches/{batchesId}:updateEmbedContentBatch": { + "patch": { + "description": "Updates a batch of EmbedContent requests for batch processing.", + "operationId": "batches.updateEmbedContentBatch", "parameters": [ { - "name": "tunedModelsId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^batches/[^/]+$" + } + }, + { + "name": "updateMask", + "in": "query", + "description": "Optional. The list of fields to update.", + "schema": { + "type": "string", + "format": "google-fieldmask" } } ], @@ -2229,7 +2107,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/EmbedContentBatch" } } } @@ -2240,7 +2118,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/EmbedContentBatch" } } } @@ -2248,19 +2126,28 @@ } } }, - "/tunedModels/{tunedModelsId}:transferOwnership": { - "post": { - "description": "Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.", - "operationId": "tunedModels.transferOwnership", + "/batches/{batchesId}:updateGenerateContentBatch": { + "patch": { + "description": "Updates a batch of GenerateContent requests for batch processing.", + "operationId": "batches.updateGenerateContentBatch", "parameters": [ { - "name": "tunedModelsId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`", + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^batches/[^/]+$" + } + }, + { + "name": "updateMask", + "in": "query", + "description": "Optional. The list of fields to update.", + "schema": { + "type": "string", + "format": "google-fieldmask" } } ], @@ -2268,7 +2155,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TransferOwnershipRequest" + "$ref": "#/components/schemas/GenerateContentBatch" } } } @@ -2279,7 +2166,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TransferOwnershipResponse" + "$ref": "#/components/schemas/GenerateContentBatch" } } } @@ -2287,70 +2174,50 @@ } } }, - "/tunedModels/{tunedModelsId}:asyncBatchEmbedContent": { - "post": { - "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.", - "operationId": "tunedModels.asyncBatchEmbedContent", + "/batches/{batchesId}": { + "delete": { + "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.", + "operationId": "batches.delete", "parameters": [ { - "name": "tunedModelsId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "The name of the operation resource to be deleted.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^batches/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Empty" } } } } } - } - }, - "/tunedModels/{tunedModelsId}:batchGenerateContent": { - "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "tunedModels.batchGenerateContent", + }, + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "batches.get", "parameters": [ { - "name": "tunedModelsId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^batches/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", @@ -2365,52 +2232,19 @@ } } }, - "/tunedModels/{tunedModelsId}/operations": { - "get": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "operationId": "tunedModels.operations.list", + "/batches/{batchesId}:cancel": { + "post": { + "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.", + "operationId": "batches.cancel", "parameters": [ { - "name": "filter", - "in": "query", - "description": "The standard list filter.", - "schema": { - "type": "string" - } - }, - { - "name": "tunedModelsId", + "name": "batchesId", "in": "path", "required": true, - "description": "The name of the operation's parent resource.", + "description": "The name of the operation resource to be cancelled.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "The standard list page size.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "The standard list page token.", - "schema": { - "type": "string" - } - }, - { - "name": "returnPartialSuccess", - "in": "query", - "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.", - "schema": { - "type": "boolean" + "pattern": "^batches/[^/]+$" } } ], @@ -2420,7 +2254,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/Empty" } } } @@ -2428,27 +2262,19 @@ } } }, - "/tunedModels/{tunedModelsId}/operations/{operationsId}": { - "get": { - "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", - "operationId": "tunedModels.operations.get", + "/cachedContents/{cachedContentsId}": { + "delete": { + "description": "Deletes CachedContent resource.", + "operationId": "cachedContents.delete", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "operationsId", + "name": "cachedContentsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+/operations/[^/]+$" + "pattern": "^cachedContents/[^/]+$" } } ], @@ -2458,35 +2284,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Empty" } } } } } - } - }, - "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { + }, "get": { - "description": "Gets information about a specific Permission.", - "operationId": "tunedModels.permissions.get", + "description": "Reads CachedContent resource.", + "operationId": "cachedContents.get", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "permissionsId", + "name": "cachedContentsId", "in": "path", "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", + "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" + "pattern": "^cachedContents/[^/]+$" } } ], @@ -2496,7 +2312,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/CachedContent" } } } @@ -2504,31 +2320,23 @@ } }, "patch": { - "description": "Updates the permission.", - "operationId": "tunedModels.permissions.patch", + "description": "Updates CachedContent resource (only expiration is updatable).", + "operationId": "cachedContents.patch", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "permissionsId", + "name": "cachedContentsId", "in": "path", "required": true, - "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", + "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" + "pattern": "^cachedContents/[^/]+$" } }, { "name": "updateMask", "in": "query", - "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", + "description": "The list of fields to update.", "schema": { "type": "string", "format": "google-fieldmask" @@ -2539,7 +2347,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/CachedContent" } } } @@ -2550,33 +2358,59 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/CachedContent" + } + } + } + } + } + } + }, + "/cachedContents": { + "post": { + "description": "Creates CachedContent resource.", + "operationId": "cachedContents.create", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CachedContent" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CachedContent" } } } } } }, - "delete": { - "description": "Deletes the permission.", - "operationId": "tunedModels.permissions.delete", + "get": { + "description": "Lists CachedContents.", + "operationId": "cachedContents.list", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.", "schema": { - "type": "string" + "type": "integer", + "format": "int32" } }, { - "name": "permissionsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.", "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" + "type": "string" } } ], @@ -2586,7 +2420,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListCachedContentsResponse" } } } @@ -2594,15 +2428,15 @@ } } }, - "/tunedModels/{tunedModelsId}/permissions": { + "/fileSearchStores": { "get": { - "description": "Lists permissions for the specific resource.", - "operationId": "tunedModels.permissions.list", + "description": "Lists all `FileSearchStores` owned by the user.", + "operationId": "fileSearchStores.list", "parameters": [ { "name": "pageSize", "in": "query", - "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size.", + "description": "Optional. The maximum number of `FileSearchStores` to return (per page). The service may return fewer `FileSearchStores`. If unspecified, at most 10 `FileSearchStores` will be returned. The maximum size limit is 20 `FileSearchStores` per page.", "schema": { "type": "integer", "format": "int32" @@ -2611,20 +2445,10 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.", + "description": "Optional. A page token, received from a previous `ListFileSearchStores` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListFileSearchStores` must match the call that provided the page token.", "schema": { "type": "string" } - }, - { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } } ], "responses": { @@ -2633,7 +2457,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListPermissionsResponse" + "$ref": "#/components/schemas/ListFileSearchStoresResponse" } } } @@ -2641,25 +2465,13 @@ } }, "post": { - "description": "Create a permission to a specific resource.", - "operationId": "tunedModels.permissions.create", - "parameters": [ - { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } - } - ], + "description": "Creates an empty `FileSearchStore`.", + "operationId": "fileSearchStores.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/FileSearchStore" } } } @@ -2670,7 +2482,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/FileSearchStore" } } } @@ -2678,16 +2490,16 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore": { + "/fileSearchStores/{fileSearchStoresId}:importFile": { "post": { - "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.", - "operationId": "media.uploadToFileSearchStore", + "description": "Imports a `File` from File Service to a `FileSearchStore`.", + "operationId": "fileSearchStores.importFile", "parameters": [ { "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", "pattern": "^fileSearchStores/[^/]+$" @@ -2698,7 +2510,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" + "$ref": "#/components/schemas/ImportFileRequest" } } } @@ -2709,7 +2521,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomLongRunningOperation" + "$ref": "#/components/schemas/Operation" } } } @@ -2717,38 +2529,65 @@ } } }, - "/dynamic/{dynamicId}:generateContent": { - "post": { - "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.", - "operationId": "dynamic.generateContent", + "/fileSearchStores/{fileSearchStoresId}": { + "get": { + "description": "Gets information about a specific `FileSearchStore`.", + "operationId": "fileSearchStores.get", "parameters": [ { - "name": "dynamicId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^dynamic/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/FileSearchStore" + } } } } - }, + } + }, + "delete": { + "description": "Deletes a `FileSearchStore`.", + "operationId": "fileSearchStores.delete", + "parameters": [ + { + "name": "force", + "in": "query", + "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.", + "schema": { + "type": "boolean" + } + }, + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "schema": { + "type": "string", + "pattern": "^fileSearchStores/[^/]+$" + } + } + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Empty" } } } @@ -2756,1754 +2595,1285 @@ } } }, - "/dynamic/{dynamicId}:streamGenerateContent": { - "post": { - "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.", - "operationId": "dynamic.streamGenerateContent", + "/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "fileSearchStores.upload.operations.get", "parameters": [ { - "name": "dynamicId", + "name": "operationsId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string" + } + }, + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^dynamic/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Operation" } } } } } } - } - }, - "components": { - "schemas": { - "SearchEntryPoint": { - "description": "Google search entry point.", - "type": "object", - "properties": { - "renderedContent": { - "type": "string", - "description": "Optional. Web content snippet that can be embedded in a web page or an app webview." + }, + "/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}": { + "get": { + "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.", + "operationId": "fileSearchStores.operations.get", + "parameters": [ + { + "name": "operationsId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } }, - "sdkBlob": { - "description": "Optional. Base64 encoded JSON representing array of tuple.", - "type": "string", - "format": "byte" + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", + "schema": { + "type": "string", + "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Operation" + } + } + } } } - }, - "TuningSnapshot": { - "description": "Record for a single tuning step.", - "type": "object", - "properties": { - "step": { - "readOnly": true, - "type": "integer", - "description": "Output only. The tuning step.", - "format": "int32" - }, - "epoch": { - "format": "int32", - "readOnly": true, - "type": "integer", - "description": "Output only. The epoch this step was part of." + } + }, + "/fileSearchStores/{fileSearchStoresId}/documents": { + "get": { + "description": "Lists all `Document`s in a `Corpus`.", + "operationId": "fileSearchStores.documents.list", + "parameters": [ + { + "name": "pageSize", + "in": "query", + "description": "Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page.", + "schema": { + "type": "integer", + "format": "int32" + } }, - "computeTime": { - "format": "google-datetime", - "description": "Output only. The timestamp when this metric was computed.", - "readOnly": true, - "type": "string" + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token, received from a previous `ListDocuments` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token.", + "schema": { + "type": "string" + } }, - "meanLoss": { - "format": "float", - "readOnly": true, - "type": "number", - "description": "Output only. The mean loss of the training examples for this step." + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", + "schema": { + "type": "string", + "pattern": "^fileSearchStores/[^/]+$" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListDocumentsResponse" + } + } + } } } - }, - "ThinkingConfig": { - "description": "Config for thinking features.", - "type": "object", - "properties": { - "includeThoughts": { - "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.", - "type": "boolean" + } + }, + "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { + "delete": { + "description": "Deletes a `Document`.", + "operationId": "fileSearchStores.documents.delete", + "parameters": [ + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } }, - "thinkingBudget": { - "description": "The number of thoughts tokens that the model should generate.", - "type": "integer", - "format": "int32" + { + "name": "force", + "in": "query", + "description": "Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s.", + "schema": { + "type": "boolean" + } }, - "thinkingLevel": { - "description": "Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error.", - "type": "string", - "x-enum-descriptions": [ - "Default value.", - "Little to no thinking.", - "Low thinking level.", - "Medium thinking level.", - "High thinking level." - ], - "enum": [ - "THINKING_LEVEL_UNSPECIFIED", - "MINIMAL", - "LOW", - "MEDIUM", - "HIGH" - ] + { + "name": "documentsId", + "in": "path", + "required": true, + "description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", + "schema": { + "type": "string", + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } } } }, - "GenerateContentBatchOutput": { - "properties": { - "responsesFile": { - "readOnly": true, - "type": "string", - "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests." + "get": { + "description": "Gets information about a specific `Document`.", + "operationId": "fileSearchStores.documents.get", + "parameters": [ + { + "name": "fileSearchStoresId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } }, - "inlinedResponses": { - "$ref": "#/components/schemas/InlinedResponses", - "readOnly": true, - "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests." + { + "name": "documentsId", + "in": "path", + "required": true, + "description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`", + "schema": { + "type": "string", + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + } } - }, - "type": "object", - "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field." - }, - "CitationSource": { - "type": "object", - "description": "A citation to a source for a portion of a specific response.", - "properties": { - "endIndex": { - "format": "int32", - "type": "integer", - "description": "Optional. End of the attributed segment, exclusive." - }, - "license": { - "type": "string", - "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations." - }, - "startIndex": { - "format": "int32", - "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.", - "type": "integer" - }, - "uri": { - "type": "string", - "description": "Optional. URI that is attributed as a source for a portion of the text." + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Document" + } + } + } } } - }, - "Status": { + } + } + }, + "components": { + "schemas": { + "GroundingChunkStringList": { + "description": "A list of string values.", + "type": "object", "properties": { - "message": { - "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", - "type": "string" - }, - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "type": "integer", - "format": "int32" - }, - "details": { - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "values": { "type": "array", + "description": "The string values of the list.", "items": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "type": "object" + "type": "string" } } - }, - "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", - "type": "object" - }, - "Blob": { - "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.", - "type": "object", - "properties": { - "mimeType": { - "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). //", - "type": "string" - }, - "data": { - "type": "string", - "description": "Raw bytes for media formats.", - "format": "byte" - } } }, - "McpServer": { - "description": "A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 6", + "FunctionDeclaration": { "type": "object", "properties": { - "streamableHttpTransport": { - "description": "A transport that can stream HTTP requests and responses.", - "$ref": "#/components/schemas/StreamableHttpTransport" + "parameters": { + "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter.", + "$ref": "#/components/schemas/Schema" }, "name": { - "type": "string", - "description": "The name of the MCPServer." - } - } - }, - "Tool": { - "type": "object", - "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. Next ID: 16", - "properties": { - "codeExecution": { - "description": "Optional. Enables the model to execute code as part of generation.", - "$ref": "#/components/schemas/CodeExecution" + "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128.", + "type": "string" }, - "googleSearch": { - "$ref": "#/components/schemas/GoogleSearch", - "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." + "behavior": { + "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.", + "x-enum-descriptions": [ + "This value is unused.", + "If set, the system will wait to receive the function response before continuing the conversation.", + "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model." + ], + "enum": [ + "UNSPECIFIED", + "BLOCKING", + "NON_BLOCKING" + ], + "type": "string" }, - "googleSearchRetrieval": { - "description": "Optional. Retrieval tool that is powered by Google search.", - "$ref": "#/components/schemas/GoogleSearchRetrieval" + "description": { + "description": "Required. A brief description of the function.", + "type": "string" }, - "googleMaps": { - "$ref": "#/components/schemas/GoogleMaps", - "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query." + "responseJsonSchema": { + "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`." }, - "functionDeclarations": { - "type": "array", - "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role \"function\" generation context for the next model turn.", - "items": { - "$ref": "#/components/schemas/FunctionDeclaration" - } + "parametersJsonSchema": { + "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`." }, - "urlContext": { - "description": "Optional. Tool to support URL context retrieval.", - "$ref": "#/components/schemas/UrlContext" + "response": { + "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.", + "$ref": "#/components/schemas/Schema" + } + }, + "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client." + }, + "TuningTask": { + "description": "Tuning tasks that create tuned models.", + "type": "object", + "properties": { + "hyperparameters": { + "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used.", + "$ref": "#/components/schemas/Hyperparameters" }, - "computerUse": { - "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.", - "$ref": "#/components/schemas/ComputerUse" + "startTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The timestamp when tuning this model started." }, - "fileSearch": { - "$ref": "#/components/schemas/FileSearch", - "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora." + "completeTime": { + "readOnly": true, + "description": "Output only. The timestamp when tuning this model completed.", + "type": "string", + "format": "google-datetime" }, - "mcpServers": { - "description": "Optional. MCP Servers to connect to.", - "type": "array", + "trainingData": { + "description": "Required. Input only. Immutable. The model training data.", + "$ref": "#/components/schemas/Dataset" + }, + "snapshots": { + "description": "Output only. Metrics collected during tuning.", + "readOnly": true, "items": { - "$ref": "#/components/schemas/McpServer" - } + "$ref": "#/components/schemas/TuningSnapshot" + }, + "type": "array" } } }, - "GroundingAttribution": { + "EmbedContentResponse": { + "description": "The response to an `EmbedContentRequest`.", + "type": "object", "properties": { - "sourceId": { - "description": "Output only. Identifier for the source contributing to this attribution.", + "embedding": { "readOnly": true, - "$ref": "#/components/schemas/AttributionSourceId" + "description": "Output only. The embedding generated from the input content.", + "$ref": "#/components/schemas/ContentEmbedding" }, - "content": { - "description": "Grounding source content that makes up this attribution.", - "$ref": "#/components/schemas/Content" + "usageMetadata": { + "$ref": "#/components/schemas/EmbeddingUsageMetadata", + "description": "Output only. The usage metadata for the request.", + "readOnly": true } - }, - "type": "object", - "description": "Attribution for a source that contributed to an answer." + } }, - "BatchGenerateContentRequest": { - "properties": { - "batch": { - "$ref": "#/components/schemas/GenerateContentBatch", - "description": "Required. The batch to create." - } - }, + "WebSearch": { + "properties": {}, "type": "object", - "description": "Request for a `BatchGenerateContent` operation." + "description": "Standard web search for grounding and related configurations." }, - "TuningExamples": { - "description": "A set of tuning examples. Can be training or validation data.", - "type": "object", - "properties": { - "examples": { - "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type.", - "type": "array", - "items": { - "$ref": "#/components/schemas/TuningExample" - } - } - } - }, - "EgressRule": { - "properties": { - "domain": { - "description": "The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains.", - "type": "string" - }, - "transform": { - "type": "object", - "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").", - "additionalProperties": { - "type": "string" - } - } - }, - "type": "object", - "description": "A network egress rule that controls which external domains the environment is allowed to reach. Each rule identifies a target domain and, optionally, a set of HTTP headers to inject into every matching outbound request." - }, - "InputEmbedContentConfig": { - "properties": { - "requests": { - "$ref": "#/components/schemas/InlinedEmbedContentRequests", - "description": "The requests to be processed in the batch." - }, - "fileName": { - "description": "The name of the `File` containing the input requests.", - "type": "string" - } - }, - "description": "Configures the input to the batch request.", - "type": "object" - }, - "ImageResponseFormat": { - "type": "object", - "description": "Configuration for image output format.", - "properties": { - "mimeType": { - "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "JPEG image format." - ], - "enum": [ - "MIME_TYPE_UNSPECIFIED", - "IMAGE_JPEG" - ], - "description": "Optional. The MIME type of the image output." - }, - "aspectRatio": { - "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "1:1 aspect ratio.", - "2:3 aspect ratio.", - "3:2 aspect ratio.", - "3:4 aspect ratio.", - "4:3 aspect ratio.", - "4:5 aspect ratio.", - "5:4 aspect ratio.", - "9:16 aspect ratio.", - "16:9 aspect ratio.", - "21:9 aspect ratio.", - "1:8 aspect ratio.", - "8:1 aspect ratio.", - "1:4 aspect ratio.", - "4:1 aspect ratio." - ], - "enum": [ - "ASPECT_RATIO_UNSPECIFIED", - "ASPECT_RATIO_ONE_BY_ONE", - "ASPECT_RATIO_TWO_BY_THREE", - "ASPECT_RATIO_THREE_BY_TWO", - "ASPECT_RATIO_THREE_BY_FOUR", - "ASPECT_RATIO_FOUR_BY_THREE", - "ASPECT_RATIO_FOUR_BY_FIVE", - "ASPECT_RATIO_FIVE_BY_FOUR", - "ASPECT_RATIO_NINE_BY_SIXTEEN", - "ASPECT_RATIO_SIXTEEN_BY_NINE", - "ASPECT_RATIO_TWENTY_ONE_BY_NINE", - "ASPECT_RATIO_ONE_BY_EIGHT", - "ASPECT_RATIO_EIGHT_BY_ONE", - "ASPECT_RATIO_ONE_BY_FOUR", - "ASPECT_RATIO_FOUR_BY_ONE" - ], - "description": "Optional. The aspect ratio for the image output." - }, - "delivery": { - "description": "Optional. The delivery mode for the image output.", - "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Image data is returned inline in the response.", - "Image data is returned as a URI." - ], - "enum": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" - ] - }, - "imageSize": { - "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "512px image size.", - "1K image size.", - "2K image size.", - "4K image size." - ], - "enum": [ - "IMAGE_SIZE_UNSPECIFIED", - "IMAGE_SIZE_FIVE_TWELVE", - "IMAGE_SIZE_ONE_K", - "IMAGE_SIZE_TWO_K", - "IMAGE_SIZE_FOUR_K" - ], - "description": "Optional. The size of the image output." - } - } - }, - "GroundingPassageId": { - "description": "Identifier for a part within a `GroundingPassage`.", - "type": "object", - "properties": { - "passageId": { - "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.", - "readOnly": true, - "type": "string" - }, - "partIndex": { - "format": "int32", - "readOnly": true, - "type": "integer", - "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`." - } - } - }, - "TuningTask": { - "properties": { - "snapshots": { - "items": { - "$ref": "#/components/schemas/TuningSnapshot" - }, - "readOnly": true, - "type": "array", - "description": "Output only. Metrics collected during tuning." - }, - "trainingData": { - "$ref": "#/components/schemas/Dataset", - "description": "Required. Input only. Immutable. The model training data." - }, - "startTime": { - "readOnly": true, - "type": "string", - "description": "Output only. The timestamp when tuning this model started.", - "format": "google-datetime" - }, - "hyperparameters": { - "$ref": "#/components/schemas/Hyperparameters", - "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used." - }, - "completeTime": { - "format": "google-datetime", - "description": "Output only. The timestamp when tuning this model completed.", - "readOnly": true, - "type": "string" - } - }, - "type": "object", - "description": "Tuning tasks that create tuned models." - }, - "CountTokensRequest": { - "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.", - "type": "object", - "properties": { - "contents": { - "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Content" - } - }, - "generateContentRequest": { - "$ref": "#/components/schemas/GenerateContentRequest", - "description": "Optional. The overall input given to the `Model`. This includes the prompt as well as other model steering information like [system instructions](https://ai.google.dev/gemini-api/docs/system-instructions), and/or function declarations for [function calling](https://ai.google.dev/gemini-api/docs/function-calling). `Model`s/`Content`s and `generate_content_request`s are mutually exclusive. You can either send `Model` + `Content`s or a `generate_content_request`, but never both." - } - } - }, - "RetrievalMetadata": { - "type": "object", - "description": "Metadata related to retrieval in the grounding flow.", - "properties": { - "googleSearchDynamicRetrievalScore": { - "type": "number", - "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.", - "format": "float" - } - } - }, - "CachedContent": { - "properties": { - "displayName": { - "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.", - "type": "string" - }, - "contents": { - "items": { - "$ref": "#/components/schemas/Content" - }, - "type": "array", - "description": "Optional. Input only. Immutable. The content to cache." - }, - "usageMetadata": { - "$ref": "#/components/schemas/CachedContentUsageMetadata", - "description": "Output only. Metadata on the usage of the cached content.", - "readOnly": true - }, - "systemInstruction": { - "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.", - "$ref": "#/components/schemas/Content" - }, - "tools": { - "items": { - "$ref": "#/components/schemas/Tool" - }, - "type": "array", - "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response" - }, - "createTime": { - "description": "Output only. Creation time of the cache entry.", - "readOnly": true, - "type": "string", - "format": "google-datetime" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`" - }, - "toolConfig": { - "$ref": "#/components/schemas/ToolConfig", - "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools." - }, - "updateTime": { - "format": "google-datetime", - "description": "Output only. When the cache entry was last updated in UTC time.", - "readOnly": true, - "type": "string" - }, - "expireTime": { - "type": "string", - "description": "Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.", - "format": "google-datetime" - }, - "model": { - "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`", - "type": "string" - }, - "ttl": { - "description": "Input only. New TTL for this resource, input only.", - "type": "string", - "format": "google-duration" - } - }, - "description": "Content that has been preprocessed and can be used in subsequent request to GenerativeService. Cached content can be only used with model it was created for.", - "type": "object" - }, - "FileData": { - "description": "URI based data.", - "type": "object", - "properties": { - "fileUri": { - "description": "Required. URI.", - "type": "string" - }, - "mimeType": { - "type": "string", - "description": "Optional. The IANA standard MIME type of the source data." - } - } - }, - "ImportFileRequest": { - "type": "object", - "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`.", - "properties": { - "chunkingConfig": { - "$ref": "#/components/schemas/ChunkingConfig", - "description": "Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters." - }, - "fileName": { - "description": "Required. The name of the `File` to import. Example: `files/abc-123`", - "type": "string" - }, - "customMetadata": { - "items": { - "$ref": "#/components/schemas/CustomMetadata" - }, - "type": "array", - "description": "Custom metadata to be associated with the file." - } - } - }, - "ListEnvironmentsResponse": { - "properties": { - "environments": { - "items": { - "$ref": "#/components/schemas/Environment" - }, - "type": "array", - "description": "Environments belonging to the provided project." - }, - "nextPageToken": { - "type": "string", - "description": "Pagination token." - } - }, - "type": "object", - "description": "Response for `ListEnvironments`." - }, - "TranslationConfig": { - "properties": { - "echoTargetLanguage": { - "type": "boolean", - "description": "Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language." - }, - "targetLanguageCode": { - "type": "string", - "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")." - } - }, - "type": "object", - "description": "Config for translation features." - }, - "LanguageHints": { - "properties": { - "languageCodes": { - "description": "Required. BCP-47 language codes.", - "deprecated": true, - "type": "array", - "items": { - "type": "string" - } - } - }, - "description": "Provides hints to the model about possible languages present in the audio.", - "type": "object", - "deprecated": true - }, - "EmbedContentConfig": { - "description": "Configurations for the EmbedContent request.", - "type": "object", - "properties": { - "taskType": { - "type": "string", - "x-enum-descriptions": [ - "Unset value, which will default to one of the other enum values.", - "Specifies the given text is a query in a search/retrieval setting.", - "Specifies the given text is a document from the corpus being searched.", - "Specifies the given text will be used for STS.", - "Specifies that the given text will be classified.", - "Specifies that the embeddings will be used for clustering.", - "Specifies that the given text will be used for question answering.", - "Specifies that the given text will be used for fact verification.", - "Specifies that the given text will be used for code retrieval." - ], - "enum": [ - "TASK_TYPE_UNSPECIFIED", - "RETRIEVAL_QUERY", - "RETRIEVAL_DOCUMENT", - "SEMANTIC_SIMILARITY", - "CLASSIFICATION", - "CLUSTERING", - "QUESTION_ANSWERING", - "FACT_VERIFICATION", - "CODE_RETRIEVAL_QUERY" - ], - "description": "Optional. The task type of the embedding." - }, - "autoTruncate": { - "type": "boolean", - "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length." - }, - "outputDimensionality": { - "type": "integer", - "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.", - "format": "int32" - }, - "documentOcr": { - "type": "boolean", - "description": "Optional. Whether to enable OCR for document content." - }, - "title": { - "type": "string", - "description": "Optional. The title for the text." - }, - "audioTrackExtraction": { - "description": "Optional. Whether to extract audio from video content.", - "type": "boolean" - } - } - }, - "FunctionResponse": { + "ModelStatus": { + "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.", "properties": { - "response": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal.", - "type": "object" - }, - "scheduling": { - "type": "string", - "x-enum-descriptions": [ - "This value is unused.", - "Only add the result to the conversation context, do not interrupt or trigger generation.", - "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.", - "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output." - ], + "modelStage": { + "description": "The stage of the underlying model.", "enum": [ - "SCHEDULING_UNSPECIFIED", - "SILENT", - "WHEN_IDLE", - "INTERRUPT" - ], - "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE." - }, - "willContinue": { - "type": "boolean", - "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`." - }, - "name": { - "type": "string", - "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128." - }, - "parts": { - "items": { - "$ref": "#/components/schemas/FunctionResponsePart" - }, - "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", - "type": "array" - }, - "id": { - "type": "string", - "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`." - } - }, - "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction.", - "type": "object" - }, - "MultiSpeakerVoiceConfig": { - "properties": { - "speakerVoiceConfigs": { - "items": { - "$ref": "#/components/schemas/SpeakerVoiceConfig" - }, - "description": "Required. All the enabled speaker voices.", - "type": "array" - } - }, - "type": "object", - "description": "The configuration for the multi-speaker setup." - }, - "ImageSearch": { - "description": "Image search for grounding and related configurations.", - "type": "object", - "properties": {} - }, - "ToolCall": { - "properties": { - "id": { - "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.", - "type": "string" - }, - "toolType": { - "description": "Required. The type of tool that was called.", + "MODEL_STAGE_UNSPECIFIED", + "UNSTABLE_EXPERIMENTAL", + "EXPERIMENTAL", + "PREVIEW", + "STABLE", + "LEGACY", + "DEPRECATED", + "RETIRED" + ], "type": "string", "x-enum-descriptions": [ - "Unspecified tool type.", - "Google search tool, maps to Tool.google_search.search_types.web_search.", - "Image search tool, maps to Tool.google_search.search_types.image_search.", - "URL context tool, maps to Tool.url_context.", - "Google maps tool, maps to Tool.google_maps.", - "File search tool, maps to Tool.file_search." + "Unspecified model stage.", + "The underlying model is subject to lots of tunings.", + "Models in this stage are for experimental purposes only.", + "Models in this stage are more mature than experimental models.", + "Models in this stage are considered stable and ready for production use.", + "If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.", + "Models in this stage are deprecated. These models cannot be used.", + "Models in this stage are retired. These models cannot be used." ], - "enum": [ - "TOOL_TYPE_UNSPECIFIED", - "GOOGLE_SEARCH_WEB", - "GOOGLE_SEARCH_IMAGE", - "URL_CONTEXT", - "GOOGLE_MAPS", - "FILE_SEARCH" + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + true, + false ] }, - "args": { - "additionalProperties": { - "description": "Properties of the object." - }, - "type": "object", - "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}" + "retirementTime": { + "type": "string", + "format": "google-datetime", + "description": "The time at which the model will be retired." }, - "toolName": { - "description": "Optional. The name of the tool that was called.", + "message": { + "description": "A message explaining the model status.", "type": "string" } }, - "type": "object", - "description": "A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`." + "type": "object" }, - "UploadToFileSearchStoreRequest": { - "description": "Request for `UploadToFileSearchStore`.", + "V1mainMediaResolution": { "type": "object", "properties": { - "chunkingConfig": { - "$ref": "#/components/schemas/ChunkingConfig", - "description": "Optional. Config for telling the service how to chunk the data. If not provided, the service will use default parameters." - }, - "mimeType": { - "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.", + "level": { + "description": "The tokenization quality used for given media. for Gemini API support .", + "x-enum-descriptions": [ + "Media resolution has not been set.", + "Media resolution set to low.", + "Media resolution set to medium.", + "Media resolution set to high.", + "Media resolution set to ultra high." + ], + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + "MEDIA_RESOLUTION_ULTRA_HIGH" + ], "type": "string" - }, - "customMetadata": { - "items": { - "$ref": "#/components/schemas/CustomMetadata" - }, - "type": "array", - "description": "Custom metadata to be associated with the data." - }, - "displayName": { - "type": "string", - "description": "Optional. Display name of the created document." - } - } - }, - "UrlContextMetadata": { - "properties": { - "urlMetadata": { - "description": "List of url context.", - "type": "array", - "items": { - "$ref": "#/components/schemas/UrlMetadata" - } } }, - "type": "object", - "description": "Metadata related to url context retrieval tool." - }, - "TransferOwnershipRequest": { - "description": "Request to transfer the ownership of the tuned model.", - "type": "object", - "properties": { - "emailAddress": { - "description": "Required. The email address of the user to whom the tuned model is being transferred to.", - "type": "string" - } - } + "description": "Media resolution for tokenization." }, - "StringList": { - "type": "object", - "description": "User provided string values assigned to a single metadata key.", + "UsageMetadata": { "properties": { - "values": { + "promptTokensDetails": { + "type": "array", + "readOnly": true, "items": { - "type": "string" + "$ref": "#/components/schemas/ModalityTokenCount" }, - "description": "The string values of the metadata to store.", - "type": "array" - } - } - }, - "InlinedRequest": { - "description": "The request to be processed in the batch.", - "type": "object", - "properties": { - "request": { - "$ref": "#/components/schemas/GenerateContentRequest", - "description": "Required. The request to be processed in the batch." + "description": "Output only. List of modalities that were processed in the request input." }, - "metadata": { - "type": "object", - "description": "Optional. The metadata to be associated with the request.", - "additionalProperties": { - "description": "Properties of the object." - } - } - } - }, - "CitationMetadata": { - "type": "object", - "description": "A collection of source attributions for a piece of content.", - "properties": { - "citationSources": { + "cacheTokensDetails": { + "description": "Output only. List of modalities of the cached content in the request input.", + "readOnly": true, "items": { - "$ref": "#/components/schemas/CitationSource" + "$ref": "#/components/schemas/ModalityTokenCount" }, - "description": "Citations to sources for a specific response.", "type": "array" - } - } - }, - "EmbeddingUsageMetadata": { - "properties": { - "promptTokenDetails": { - "description": "Output only. List of modalities that were processed in the request input.", + }, + "candidatesTokenCount": { + "description": "Total number of tokens across all the generated response candidates.", + "type": "integer", + "format": "int32" + }, + "totalTokenCount": { + "type": "integer", + "format": "int32", + "description": "Total token count for the generation request (prompt + thoughts + response candidates)." + }, + "cachedContentTokenCount": { + "description": "Number of tokens in the cached part of the prompt (the cached content)", + "type": "integer", + "format": "int32" + }, + "serviceTier": { + "description": "Output only. Service tier of the request.", + "readOnly": true, + "enum": [ + "unspecified", + "standard", + "flex", + "priority" + ], + "type": "string", + "x-enum-descriptions": [ + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." + ] + }, + "thoughtsTokenCount": { "readOnly": true, + "description": "Output only. Number of tokens of thoughts for thinking models.", + "type": "integer", + "format": "int32" + }, + "toolUsePromptTokensDetails": { "type": "array", + "readOnly": true, "items": { "$ref": "#/components/schemas/ModalityTokenCount" - } + }, + "description": "Output only. List of modalities that were processed for tool-use request inputs." }, - "promptTokenCount": { + "toolUsePromptTokenCount": { + "description": "Output only. Number of tokens present in tool-use prompt(s).", "readOnly": true, "type": "integer", - "description": "Output only. Number of tokens in the prompt.", "format": "int32" - } - }, - "type": "object", - "description": "Metadata on the usage of the embedding request." - }, - "EmbedContentBatchStats": { - "properties": { - "requestCount": { - "format": "int64", - "description": "Output only. The number of requests in the batch.", - "readOnly": true, - "type": "string" }, - "successfulRequestCount": { - "readOnly": true, - "type": "string", - "description": "Output only. The number of requests that were successfully processed.", - "format": "int64" + "promptTokenCount": { + "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.", + "type": "integer", + "format": "int32" }, - "pendingRequestCount": { - "format": "int64", - "description": "Output only. The number of requests that are still pending processing.", + "candidatesTokensDetails": { + "type": "array", + "description": "Output only. List of modalities that were returned in the response.", "readOnly": true, - "type": "string" + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + } }, - "failedRequestCount": { - "format": "int64", - "description": "Output only. The number of requests that failed to be processed.", - "readOnly": true, - "type": "string" - } - }, - "description": "Stats about the batch.", - "type": "object" - }, - "Web": { - "properties": { - "uri": { - "readOnly": true, - "type": "string", - "description": "Output only. URI reference of the chunk." + "responseTokenCount": { + "description": "Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.", + "type": "integer", + "format": "int32", + "readOnly": true }, - "title": { + "responseTokensDetails": { + "description": "Output only. List of modalities returned in the response with per-modality token counts. Used by Gemini 3.1+ Live API models instead of candidatesTokensDetails.", + "type": "array", "readOnly": true, - "type": "string", - "description": "Output only. Title of the chunk." - } - }, - "type": "object", - "description": "Chunk from the web." - }, - "VoiceConfig": { - "properties": { - "prebuiltVoiceConfig": { - "description": "The configuration for the prebuilt voice to use.", - "$ref": "#/components/schemas/PrebuiltVoiceConfig" + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + } } }, "type": "object", - "description": "The configuration for the voice to use." + "description": "Metadata on the generation request's token usage." }, - "AttributionSourceId": { + "InlinedRequests": { + "description": "The requests to be processed in the batch if provided as part of the batch creation request.", + "type": "object", "properties": { - "groundingPassage": { - "$ref": "#/components/schemas/GroundingPassageId", - "description": "Identifier for an inline passage." - }, - "semanticRetrieverChunk": { - "$ref": "#/components/schemas/SemanticRetrieverChunk", - "description": "Identifier for a `Chunk` fetched via Semantic Retriever." + "requests": { + "items": { + "$ref": "#/components/schemas/InlinedRequest" + }, + "description": "Required. The requests to be processed in the batch.", + "type": "array" + } + } + }, + "UrlContext": { + "description": "Tool to support URL context retrieval.", + "properties": {}, + "type": "object" + }, + "RegisterFilesResponse": { + "description": "Response for `RegisterFiles`.", + "properties": { + "files": { + "type": "array", + "description": "The registered files to be used when calling GenerateContent.", + "items": { + "$ref": "#/components/schemas/File" + } } }, - "description": "Identifier for the source contributing to this attribution.", "type": "object" }, - "SafetyRating": { - "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.", + "GroundingPassageId": { + "description": "Identifier for a part within a `GroundingPassage`.", "type": "object", "properties": { - "category": { - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false - ], - "type": "string", - "enum": [ - "HARM_CATEGORY_UNSPECIFIED", - "HARM_CATEGORY_DEROGATORY", - "HARM_CATEGORY_TOXICITY", - "HARM_CATEGORY_VIOLENCE", - "HARM_CATEGORY_SEXUAL", - "HARM_CATEGORY_MEDICAL", - "HARM_CATEGORY_DANGEROUS", - "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_HATE_SPEECH", - "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "HARM_CATEGORY_DANGEROUS_CONTENT", - "HARM_CATEGORY_CIVIC_INTEGRITY", - "HARM_CATEGORY_JAILBREAK" - ], - "description": "Required. The category for this rating.", - "x-enum-descriptions": [ - "Category is unspecified.", - "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.", - "**PaLM** - Content that is rude, disrespectful, or profane.", - "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.", - "**PaLM** - Contains references to sexual acts or other lewd content.", - "**PaLM** - Promotes unchecked medical advice.", - "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.", - "**Gemini** - Harassment content.", - "**Gemini** - Hate speech and content.", - "**Gemini** - Sexually explicit content.", - "**Gemini** - Dangerous content.", - "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", - "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." - ] - }, - "probability": { + "passageId": { "type": "string", - "x-enum-descriptions": [ - "Probability is unspecified.", - "Content has a negligible chance of being unsafe.", - "Content has a low chance of being unsafe.", - "Content has a medium chance of being unsafe.", - "Content has a high chance of being unsafe." - ], - "enum": [ - "HARM_PROBABILITY_UNSPECIFIED", - "NEGLIGIBLE", - "LOW", - "MEDIUM", - "HIGH" - ], - "description": "Required. The probability of harm for this content." + "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.", + "readOnly": true }, - "blocked": { - "type": "boolean", - "description": "Was this content blocked because of this rating?" + "partIndex": { + "type": "integer", + "format": "int32", + "readOnly": true, + "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`." } } }, - "ListCorporaResponse": { + "Model": { + "type": "object", "properties": { - "corpora": { - "description": "The returned corpora.", - "type": "array", + "topK": { + "type": "integer", + "format": "int32", + "description": "For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter." + }, + "maxTemperature": { + "type": "number", + "format": "float", + "description": "The maximum temperature this model can use." + }, + "baseModelId": { + "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`", + "type": "string" + }, + "version": { + "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)", + "type": "string" + }, + "description": { + "description": "A short description of the model.", + "type": "string" + }, + "name": { + "description": "Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * \"{base_model_id}-{version}\" Examples: * `models/gemini-1.5-flash-001`", + "type": "string" + }, + "supportedGenerationMethods": { "items": { - "$ref": "#/components/schemas/Corpus" - } + "type": "string" + }, + "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`.", + "type": "array" }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "topP": { + "description": "For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model.", + "type": "number", + "format": "float" + }, + "inputTokenLimit": { + "type": "integer", + "format": "int32", + "description": "Maximum number of input tokens allowed for this model." + }, + "thinking": { + "description": "Whether the model supports thinking.", + "type": "boolean" + }, + "displayName": { + "description": "The human-readable name of the model. E.g. \"Gemini 1.5 Flash\". The name can be up to 128 characters long and can consist of any UTF-8 characters.", "type": "string" + }, + "outputTokenLimit": { + "description": "Maximum number of output tokens available for this model.", + "type": "integer", + "format": "int32" + }, + "temperature": { + "description": "Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.", + "type": "number", + "format": "float" } }, - "type": "object", - "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`." + "description": "Information about a Generative Language Model." }, - "AutomaticActivityDetection": { + "BidiGenerateContentSetup": { + "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages.", "properties": { - "prefixPaddingMs": { - "format": "int32", - "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives.", - "type": "integer" + "systemInstruction": { + "description": "Optional. The user provided system instructions for the model. Note: Only text should be used in parts and content in each part will be in a separate paragraph.", + "$ref": "#/components/schemas/Content" }, - "silenceDurationMs": { - "format": "int32", - "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.", - "type": "integer" + "generationConfig": { + "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`", + "$ref": "#/components/schemas/GenerationConfig" }, - "endOfSpeechSensitivity": { - "description": "Optional. Determines how likely detected speech is ended.", - "type": "string", - "x-enum-descriptions": [ - "The default is END_SENSITIVITY_HIGH.", - "Automatic detection ends speech more often.", - "Automatic detection ends speech less often." - ], - "enum": [ - "END_SENSITIVITY_UNSPECIFIED", - "END_SENSITIVITY_HIGH", - "END_SENSITIVITY_LOW" - ] + "model": { + "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`", + "type": "string" }, - "disabled": { - "type": "boolean", - "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals." + "sessionResumption": { + "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages.", + "$ref": "#/components/schemas/SessionResumptionConfig" }, - "startOfSpeechSensitivity": { - "description": "Optional. Determines how likely speech is to be detected.", - "type": "string", - "x-enum-descriptions": [ - "The default is START_SENSITIVITY_HIGH.", - "Automatic detection will detect the start of speech more often.", - "Automatic detection will detect the start of speech less often." - ], - "enum": [ - "START_SENSITIVITY_UNSPECIFIED", - "START_SENSITIVITY_HIGH", - "START_SENSITIVITY_LOW" - ] + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + }, + "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model." + }, + "inputAudioTranscription": { + "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured.", + "$ref": "#/components/schemas/AudioTranscriptionConfig" + }, + "historyConfig": { + "description": "Optional. Configures the exchange of history between the client and the server.", + "$ref": "#/components/schemas/HistoryConfig" + }, + "realtimeInputConfig": { + "description": "Optional. Configures the handling of realtime input.", + "$ref": "#/components/schemas/RealtimeInputConfig" + }, + "contextWindowCompression": { + "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length.", + "$ref": "#/components/schemas/ContextWindowCompressionConfig" + }, + "outputAudioTranscription": { + "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured.", + "$ref": "#/components/schemas/AudioTranscriptionConfig" } }, - "description": "Configures automatic detection of activity.", "type": "object" }, - "AudioTranscriptionConfig": { - "type": "object", - "description": "The audio transcription configuration.", + "FunctionCallingConfig": { + "description": "Configuration for specifying function calling behavior.", "properties": { - "languageHints": { - "deprecated": true, - "description": "Optional. Specifies one or more languages in the audio.", - "$ref": "#/components/schemas/LanguageHints" - }, - "adaptationPhrases": { - "deprecated": true, - "type": "array", - "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.", - "items": { - "type": "string" - } - }, - "languageAuto": { - "deprecated": true, - "description": "Optional. The model will detect the language automatically.", - "$ref": "#/components/schemas/LanguageAuto" + "mode": { + "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.", + "x-enum-descriptions": [ + "Unspecified function calling mode. This value should not be used.", + "Default model behavior, model decides to predict either a function call or a natural language response.", + "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", + "Model will not predict any function call. Model behavior is same as when not passing any function declarations.", + "Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\"." + ], + "enum": [ + "MODE_UNSPECIFIED", + "AUTO", + "ANY", + "NONE", + "VALIDATED" + ], + "type": "string" }, - "languageCodes": { - "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.", + "allowedFunctionNames": { "type": "array", - "items": { - "type": "string" - } - }, - "diarization": { - "description": "Optional. Configures speaker diarization.", - "type": "boolean" - }, - "customVocabulary": { "items": { "type": "string" }, - "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).", - "type": "array" - }, - "wordTimestamp": { - "description": "Optional. Configures word-level timestamp generation.", - "type": "boolean" + "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names." } - } + }, + "type": "object" }, - "LogprobsResult": { - "description": "Logprobs Result", - "type": "object", + "PromptFeedback": { + "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.", "properties": { - "logProbabilitySum": { - "format": "float", - "type": "number", - "description": "Sum of log probabilities for all tokens." + "blockReason": { + "enum": [ + "BLOCK_REASON_UNSPECIFIED", + "SAFETY", + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT", + "IMAGE_SAFETY" + ], + "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.", + "Prompt was blocked due to unknown reasons.", + "Prompt was blocked due to the terms which are included from the terminology blocklist.", + "Prompt was blocked due to prohibited content.", + "Candidates blocked due to unsafe image generation content." + ], + "type": "string" }, - "topCandidates": { + "safetyRatings": { "items": { - "$ref": "#/components/schemas/TopCandidates" + "$ref": "#/components/schemas/SafetyRating" }, - "description": "Length = total number of decoding steps.", + "description": "Ratings for safety of the prompt. There is at most one rating per category.", "type": "array" - }, - "chosenCandidates": { - "type": "array", - "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", - "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" - } - } - } - }, - "SessionResumptionConfig": { - "properties": { - "handle": { - "type": "string", - "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections." } }, - "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages.", "type": "object" }, "RealtimeInputConfig": { "type": "object", - "description": "Configures the realtime input behavior in `BidiGenerateContent`.", "properties": { - "turnCoverage": { - "description": "Optional. Defines which input is included in the user's turn.", - "type": "string", + "activityHandling": { + "enum": [ + "ACTIVITY_HANDLING_UNSPECIFIED", + "START_OF_ACTIVITY_INTERRUPTS", + "NO_INTERRUPTION" + ], + "description": "Optional. Defines what effect activity has.", "x-enum-descriptions": [ - "If unspecified, a default behavior is selected based on the model. E.g., for Gemini 2.5, the default is `TURN_INCLUDES_ONLY_ACTIVITY`, while for Gemini 3.1 and onwards, it's `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`.", - "Includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).", - "Includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).", - "Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence." + "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.", + "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.", + "The model's response will not be interrupted." ], + "type": "string" + }, + "turnCoverage": { + "type": "string", "enum": [ "TURN_COVERAGE_UNSPECIFIED", "TURN_INCLUDES_ONLY_ACTIVITY", "TURN_INCLUDES_ALL_INPUT", "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO" + ], + "description": "Optional. Defines which input is included in the user's turn.", + "x-enum-descriptions": [ + "If unspecified, a default behavior is selected based on the model. E.g., for Gemini 2.5, the default is `TURN_INCLUDES_ONLY_ACTIVITY`, while for Gemini 3.1 and onwards, it's `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`.", + "Includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).", + "Includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).", + "Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence." ] }, "automaticActivityDetection": { "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals.", "$ref": "#/components/schemas/AutomaticActivityDetection" + } + }, + "description": "Configures the realtime input behavior in `BidiGenerateContent`." + }, + "EmbedContentBatchOutput": { + "properties": { + "inlinedResponses": { + "readOnly": true, + "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.", + "$ref": "#/components/schemas/InlinedEmbedContentResponses" }, - "activityHandling": { + "responsesFile": { + "type": "string", + "readOnly": true, + "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests." + } + }, + "type": "object", + "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field." + }, + "Document": { + "properties": { + "updateTime": { + "readOnly": true, + "description": "Output only. The Timestamp of when the `Document` was last updated.", + "type": "string", + "format": "google-datetime" + }, + "sizeBytes": { + "readOnly": true, + "description": "Output only. The size of raw bytes ingested into the Document.", + "type": "string", + "format": "int64" + }, + "customMetadata": { + "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.", + "items": { + "$ref": "#/components/schemas/CustomMetadata" + }, + "type": "array" + }, + "createTime": { + "type": "string", + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `Document` was created.", + "readOnly": true + }, + "state": { "type": "string", "x-enum-descriptions": [ - "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.", - "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.", - "The model's response will not be interrupted." + "The default value. This value is used if the state is omitted.", + "Some `Chunks` of the `Document` are being processed (embedding and vector storage).", + "All `Chunks` of the `Document` is processed and available for querying.", + "Some `Chunks` of the `Document` failed processing." + ], + "readOnly": true, + "enum": [ + "STATE_UNSPECIFIED", + "STATE_PENDING", + "STATE_ACTIVE", + "STATE_FAILED" ], + "description": "Output only. Current state of the `Document`." + }, + "name": { + "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"fileSearchStores/*/documents/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`", + "type": "string" + }, + "mimeType": { + "type": "string", + "description": "Output only. The mime type of the Document.", + "readOnly": true + }, + "displayName": { + "description": "Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: \"Semantic Retriever Documentation\"", + "type": "string" + } + }, + "type": "object", + "description": "A `Document` is a collection of `Chunk`s." + }, + "ImageResponseFormat": { + "description": "Configuration for image output format.", + "properties": { + "delivery": { + "type": "string", "enum": [ - "ACTIVITY_HANDLING_UNSPECIFIED", - "START_OF_ACTIVITY_INTERRUPTS", - "NO_INTERRUPTION" + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ], + "description": "Optional. The delivery mode for the image output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "Image data is returned inline in the response.", + "Image data is returned as a URI." + ] + }, + "mimeType": { + "description": "Optional. The MIME type of the image output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "JPEG image format." + ], + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "IMAGE_JPEG" + ], + "type": "string" + }, + "aspectRatio": { + "description": "Optional. The aspect ratio for the image output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "1:1 aspect ratio.", + "2:3 aspect ratio.", + "3:2 aspect ratio.", + "3:4 aspect ratio.", + "4:3 aspect ratio.", + "4:5 aspect ratio.", + "5:4 aspect ratio.", + "9:16 aspect ratio.", + "16:9 aspect ratio.", + "21:9 aspect ratio.", + "1:8 aspect ratio.", + "8:1 aspect ratio.", + "1:4 aspect ratio.", + "4:1 aspect ratio." + ], + "enum": [ + "ASPECT_RATIO_UNSPECIFIED", + "ASPECT_RATIO_ONE_BY_ONE", + "ASPECT_RATIO_TWO_BY_THREE", + "ASPECT_RATIO_THREE_BY_TWO", + "ASPECT_RATIO_THREE_BY_FOUR", + "ASPECT_RATIO_FOUR_BY_THREE", + "ASPECT_RATIO_FOUR_BY_FIVE", + "ASPECT_RATIO_FIVE_BY_FOUR", + "ASPECT_RATIO_NINE_BY_SIXTEEN", + "ASPECT_RATIO_SIXTEEN_BY_NINE", + "ASPECT_RATIO_TWENTY_ONE_BY_NINE", + "ASPECT_RATIO_ONE_BY_EIGHT", + "ASPECT_RATIO_EIGHT_BY_ONE", + "ASPECT_RATIO_ONE_BY_FOUR", + "ASPECT_RATIO_FOUR_BY_ONE" + ], + "type": "string" + }, + "imageSize": { + "description": "Optional. The size of the image output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "512px image size.", + "1K image size.", + "2K image size.", + "4K image size." ], - "description": "Optional. Defines what effect activity has." + "enum": [ + "IMAGE_SIZE_UNSPECIFIED", + "IMAGE_SIZE_FIVE_TWELVE", + "IMAGE_SIZE_ONE_K", + "IMAGE_SIZE_TWO_K", + "IMAGE_SIZE_FOUR_K" + ], + "type": "string" } - } - }, - "LanguageAuto": { - "description": "Indicates the language of the audio should be automatically detected.", - "type": "object", - "properties": {}, - "deprecated": true + }, + "type": "object" }, - "ModalityTokenCount": { - "type": "object", - "description": "Represents token counting info for a single modality.", + "Permission": { + "description": "Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, corpus). A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains. There are three concentric roles. Each role is a superset of the previous role's permitted operations: - reader can use the resource (e.g. tuned model, corpus) for inference - writer has reader's permissions and additionally can edit and share - owner has writer's permissions and additionally can delete", "properties": { - "modality": { - "description": "The modality associated with this token count.", + "name": { + "readOnly": true, + "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", + "type": "string" + }, + "role": { + "enum": [ + "ROLE_UNSPECIFIED", + "OWNER", + "WRITER", + "READER" + ], + "description": "Required. The role granted by this permission.", + "x-enum-descriptions": [ + "The default value. This value is unused.", + "Owner can use, update, share and delete the resource.", + "Writer can use, update and share the resource.", + "Reader can use the resource." + ], + "type": "string" + }, + "granteeType": { "type": "string", + "description": "Optional. Immutable. The type of the grantee.", "x-enum-descriptions": [ - "Unspecified modality.", - "Plain text.", - "Image.", - "Video.", - "Audio.", - "Document, e.g. PDF." + "The default value. This value is unused.", + "Represents a user. When set, you must provide email_address for the user.", + "Represents a group. When set, you must provide email_address for the group.", + "Represents access to everyone. No extra information is required." ], "enum": [ - "MODALITY_UNSPECIFIED", - "TEXT", - "IMAGE", - "VIDEO", - "AUDIO", - "DOCUMENT" + "GRANTEE_TYPE_UNSPECIFIED", + "USER", + "GROUP", + "EVERYONE" ] }, - "tokenCount": { - "description": "Number of tokens.", - "type": "integer", - "format": "int32" - } - } - }, - "CachedContentUsageMetadata": { - "properties": { - "totalTokenCount": { - "format": "int32", - "type": "integer", - "description": "Total number of tokens that the cached content consumes." + "emailAddress": { + "description": "Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.", + "type": "string" } }, - "type": "object", - "description": "Metadata on the usage of the cached content." + "type": "object" }, - "CreateFileResponse": { + "Interval": { + "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", + "type": "object", "properties": { - "file": { - "$ref": "#/components/schemas/File", - "description": "Metadata for the created file." + "startTime": { + "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", + "type": "string", + "format": "google-datetime" + }, + "endTime": { + "type": "string", + "format": "google-datetime", + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end." } - }, - "description": "Response for `CreateFile`.", - "type": "object" + } }, - "Candidate": { - "description": "A response candidate generated from the model.", + "GenerateContentRequest": { "type": "object", "properties": { - "index": { - "readOnly": true, - "type": "integer", - "description": "Output only. Index of the candidate in the list of response candidates.", - "format": "int32" - }, - "avgLogprobs": { - "format": "double", - "readOnly": true, - "type": "number", - "description": "Output only. Average log probability score of the candidate." + "safetySettings": { + "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.", + "items": { + "$ref": "#/components/schemas/SafetySetting" + }, + "type": "array" }, - "citationMetadata": { - "$ref": "#/components/schemas/CitationMetadata", - "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data.", - "readOnly": true + "cachedContent": { + "description": "Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`", + "type": "string" }, - "groundingAttributions": { - "readOnly": true, + "tools": { "type": "array", - "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.", "items": { - "$ref": "#/components/schemas/GroundingAttribution" - } + "$ref": "#/components/schemas/Tool" + }, + "description": "Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more." }, - "content": { - "$ref": "#/components/schemas/Content", - "description": "Output only. Generated content returned from the model.", - "readOnly": true + "toolConfig": { + "description": "Optional. Tool configuration for any `Tool` specified in the request. Refer to the [Function calling guide](https://ai.google.dev/gemini-api/docs/function-calling#function_calling_mode) for a usage example.", + "$ref": "#/components/schemas/ToolConfig" }, - "groundingMetadata": { - "$ref": "#/components/schemas/GroundingMetadata", - "readOnly": true, - "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls." + "model": { + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "type": "string" }, - "safetyRatings": { - "type": "array", - "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.", - "items": { - "$ref": "#/components/schemas/SafetyRating" - } + "systemInstruction": { + "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only.", + "$ref": "#/components/schemas/Content" }, - "tokenCount": { - "description": "Output only. Token count for this candidate.", - "readOnly": true, - "type": "integer", - "format": "int32" + "contents": { + "items": { + "$ref": "#/components/schemas/Content" + }, + "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.", + "type": "array" }, - "urlContextMetadata": { - "readOnly": true, - "description": "Output only. Metadata related to url context retrieval tool.", - "$ref": "#/components/schemas/UrlContextMetadata" + "store": { + "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.", + "type": "boolean" }, - "finishMessage": { - "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.", - "readOnly": true, - "type": "string" + "generationConfig": { + "description": "Optional. Configuration options for model generation and outputs.", + "$ref": "#/components/schemas/GenerationConfig" }, - "finishReason": { + "serviceTier": { + "description": "Optional. The service tier of the request.", "x-enum-descriptions": [ - "Default value. This value is unused.", - "Natural stop point of the model or provided stop sequence.", - "The maximum number of tokens as specified in the request was reached.", - "The response candidate content was flagged for safety reasons.", - "The response candidate content was flagged for recitation reasons.", - "The response candidate content was flagged for using an unsupported language.", - "Unknown reason.", - "Token generation stopped because the content contains forbidden terms.", - "Token generation stopped for potentially containing prohibited content.", - "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).", - "The function call generated by the model is invalid.", - "Token generation stopped because generated images contain safety violations.", - "Image generation stopped because generated images has other prohibited content.", - "Image generation stopped because of other miscellaneous issue.", - "The model was expected to generate an image, but none was generated.", - "Image generation stopped due to recitation.", - "Model generated a tool call but no tools were enabled in the request.", - "Model called too many tools consecutively, thus the system exited execution.", - "Request has at least one thought signature missing.", - "Finished due to malformed response.", - "Request was filtered by an escalation rule." + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." ], - "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", - "readOnly": true, - "type": "string", "enum": [ - "FINISH_REASON_UNSPECIFIED", - "STOP", - "MAX_TOKENS", - "SAFETY", - "RECITATION", - "LANGUAGE", - "OTHER", - "BLOCKLIST", - "PROHIBITED_CONTENT", - "SPII", - "MALFORMED_FUNCTION_CALL", - "IMAGE_SAFETY", - "IMAGE_PROHIBITED_CONTENT", - "IMAGE_OTHER", - "NO_IMAGE", - "IMAGE_RECITATION", - "UNEXPECTED_TOOL_CALL", - "TOO_MANY_TOOL_CALLS", - "MISSING_THOUGHT_SIGNATURE", - "MALFORMED_RESPONSE", - "ESCALATION" - ] - }, - "logprobsResult": { - "description": "Output only. Log-likelihood scores for the response tokens and top tokens", - "readOnly": true, - "$ref": "#/components/schemas/LogprobsResult" + "unspecified", + "standard", + "flex", + "priority" + ], + "type": "string" } - } - }, - "Empty": { - "properties": {}, - "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }", - "type": "object" + }, + "description": "Request to generate a completion from the model." }, - "ImageConfig": { + "CustomLongRunningOperation": { + "type": "object", "properties": { - "aspectRatio": { - "type": "string", - "description": "Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided." + "response": { + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + }, + "type": "object" + }, + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" }, - "imageSize": { - "type": "string", - "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`." - } - }, - "description": "Config for image generation features.", - "type": "object" - }, - "ListGeneratedFilesResponse": { - "type": "object", - "description": "Response for `ListGeneratedFiles`.", - "properties": { - "generatedFiles": { - "items": { - "$ref": "#/components/schemas/GeneratedFile" + "error": { + "description": "The error result of the operation in case of failure or cancellation.", + "$ref": "#/components/schemas/Status" + }, + "metadata": { + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." }, - "description": "The list of `GeneratedFile`s.", - "type": "array" + "type": "object" }, - "nextPageToken": { - "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call.", + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", "type": "string" } } }, "GroundingChunk": { - "type": "object", - "description": "A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps.", "properties": { - "retrievedContext": { - "description": "Optional. Grounding chunk from context retrieved by the file search tool.", - "$ref": "#/components/schemas/RetrievedContext" - }, - "image": { - "description": "Optional. Grounding chunk from image search.", - "$ref": "#/components/schemas/Image" - }, "maps": { - "$ref": "#/components/schemas/Maps", - "description": "Optional. Grounding chunk from Google Maps." + "description": "Optional. Grounding chunk from Google Maps.", + "$ref": "#/components/schemas/Maps" }, "web": { "description": "Grounding chunk from the web.", "$ref": "#/components/schemas/Web" - } - } - }, - "ReviewSnippet": { - "properties": { - "reviewId": { - "description": "The ID of the review snippet.", - "type": "string" }, - "title": { - "description": "Title of the review.", - "type": "string" + "image": { + "description": "Optional. Grounding chunk from image search.", + "$ref": "#/components/schemas/Image" }, - "googleMapsUri": { - "description": "A link that corresponds to the user review on Google Maps.", - "type": "string" + "retrievedContext": { + "description": "Optional. Grounding chunk from context retrieved by the file search tool.", + "$ref": "#/components/schemas/RetrievedContext" } }, "type": "object", - "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps." - }, - "Dataset": { - "description": "Dataset for training or validation.", - "type": "object", - "properties": { - "examples": { - "$ref": "#/components/schemas/TuningExamples", - "description": "Optional. Inline examples with simple input/output text." - } - } + "description": "A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps." }, - "ListCachedContentsResponse": { + "LogprobsResultCandidate": { + "description": "Candidate for the logprobs token and score.", "properties": { - "nextPageToken": { - "type": "string", - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages." + "token": { + "description": "The candidate\u2019s token string value.", + "type": "string" }, - "cachedContents": { - "items": { - "$ref": "#/components/schemas/CachedContent" - }, - "type": "array", - "description": "List of cached contents." + "tokenId": { + "type": "integer", + "format": "int32", + "description": "The candidate\u2019s token id value." + }, + "logProbability": { + "description": "The candidate's log probability.", + "type": "number", + "format": "float" } }, - "description": "Response with CachedContents list.", "type": "object" }, - "PromptFeedback": { + "ImageSearch": { + "type": "object", + "properties": {}, + "description": "Image search for grounding and related configurations." + }, + "Empty": { + "type": "object", + "properties": {}, + "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }" + }, + "SearchTypes": { "properties": { - "blockReason": { - "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.", - "Prompt was blocked due to unknown reasons.", - "Prompt was blocked due to the terms which are included from the terminology blocklist.", - "Prompt was blocked due to prohibited content.", - "Candidates blocked due to unsafe image generation content." - ], - "enum": [ - "BLOCK_REASON_UNSPECIFIED", - "SAFETY", - "OTHER", - "BLOCKLIST", - "PROHIBITED_CONTENT", - "IMAGE_SAFETY" - ], - "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt." + "webSearch": { + "description": "Optional. Enables web search. Only text results are returned.", + "$ref": "#/components/schemas/WebSearch" }, - "safetyRatings": { - "items": { - "$ref": "#/components/schemas/SafetyRating" - }, - "type": "array", - "description": "Ratings for safety of the prompt. There is at most one rating per category." + "imageSearch": { + "description": "Optional. Enables image search. Image bytes are returned.", + "$ref": "#/components/schemas/ImageSearch" } }, - "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.", - "type": "object" + "type": "object", + "description": "Different types of search that can be enabled on the GoogleSearch tool." }, - "Environment": { + "BatchStats": { "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Required. Output only. The ID of the environment." - }, - "lastAccessed": { - "readOnly": true, - "type": "string", - "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." - }, - "sources": { - "items": { - "$ref": "#/components/schemas/Source" - }, - "description": "Sources to be mounted into the environment.", - "type": "array" - }, - "created": { - "readOnly": true, - "type": "string", - "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." - }, - "network_allowlist": { - "description": "Allow only specific domains.", - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" - }, - "updated": { + "requestCount": { "readOnly": true, + "description": "Output only. The number of requests in the batch.", "type": "string", - "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." + "format": "int64" }, - "status": { + "successfulRequestCount": { "readOnly": true, + "description": "Output only. The number of requests that were successfully processed.", "type": "string", - "enum": [ - "STATUS_UNSPECIFIED", - "ACTIVE", - "EXPIRED" - ], - "description": "Output only. The status of the environment container.", - "x-enum-descriptions": [ - "", - "", - "" - ] + "format": "int64" }, - "sizeBytes": { - "description": "Output only. The total size of the environment files in bytes, output only.", + "failedRequestCount": { + "description": "Output only. The number of requests that failed to be processed.", "readOnly": true, "type": "string", "format": "int64" }, - "network_mode": { - "description": "Network egress mode.", + "pendingRequestCount": { "type": "string", - "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." - ], - "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" - ] - }, - "fileCount": { "format": "int64", - "description": "Output only. The number of files in the environment, output only.", - "readOnly": true, - "type": "string" + "description": "Output only. The number of requests that are still pending processing.", + "readOnly": true } }, - "description": "An execution environment for an agent.", - "type": "object" - }, - "BatchEmbedContentsRequest": { "type": "object", - "description": "Batch request to get embeddings from the model for a list of prompts.", - "properties": { - "requests": { - "type": "array", - "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`.", - "items": { - "$ref": "#/components/schemas/EmbedContentRequest" - } - } - } + "description": "Stats about the batch." }, - "Image": { - "properties": { - "imageUri": { - "type": "string", - "description": "The image asset URL." - }, - "domain": { - "type": "string", - "description": "The root domain of the web page that the image is from, e.g. \"example.com\"." - }, - "title": { - "type": "string", - "description": "The title of the web page that the image is from." - }, - "sourceUri": { - "type": "string", - "description": "The web page URI for attribution." - } - }, + "SpeakerVoiceConfig": { "type": "object", - "description": "Chunk from image search." - }, - "CodeExecutionResult": { "properties": { - "id": { - "type": "string", - "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id." - }, - "output": { - "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.", + "speaker": { + "description": "Required. The name of the speaker to use. Should be the same as in the prompt.", "type": "string" }, - "outcome": { - "description": "Required. Outcome of the code execution.", - "type": "string", - "x-enum-descriptions": [ - "Unspecified status. This value should not be used.", - "Code execution completed successfully. `output` contains the stdout, if any.", - "Code execution failed. `output` contains the stderr and stdout, if any.", - "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present." - ], - "enum": [ - "OUTCOME_UNSPECIFIED", - "OUTCOME_OK", - "OUTCOME_FAILED", - "OUTCOME_DEADLINE_EXCEEDED" - ] + "voiceConfig": { + "description": "Required. The configuration for the voice to use.", + "$ref": "#/components/schemas/VoiceConfig" } }, - "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.", - "type": "object" + "description": "The configuration for a single speaker in a multi speaker setup." }, - "InlinedResponse": { + "TuningSnapshot": { + "type": "object", "properties": { - "response": { + "meanLoss": { + "description": "Output only. The mean loss of the training examples for this step.", + "readOnly": true, + "type": "number", + "format": "float" + }, + "computeTime": { + "type": "string", + "format": "google-datetime", "readOnly": true, - "description": "Output only. The response to the request.", - "$ref": "#/components/schemas/GenerateContentResponse" + "description": "Output only. The timestamp when this metric was computed." }, - "error": { + "epoch": { + "description": "Output only. The epoch this step was part of.", "readOnly": true, - "description": "Output only. The error encountered while processing the request.", - "$ref": "#/components/schemas/Status" + "type": "integer", + "format": "int32" }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object." - }, + "step": { + "type": "integer", + "format": "int32", "readOnly": true, - "type": "object", - "description": "Output only. The metadata associated with the request." + "description": "Output only. The tuning step." } }, + "description": "Record for a single tuning step." + }, + "TuningExample": { + "description": "A single example for tuning.", "type": "object", - "description": "The response to a single request in the batch." + "properties": { + "textInput": { + "description": "Optional. Text model input.", + "type": "string" + }, + "output": { + "description": "Required. The expected model output.", + "type": "string" + } + } + }, + "VoiceConfig": { + "type": "object", + "properties": { + "prebuiltVoiceConfig": { + "description": "The configuration for the prebuilt voice to use.", + "$ref": "#/components/schemas/PrebuiltVoiceConfig" + } + }, + "description": "The configuration for the voice to use." }, "AudioResponseFormat": { + "description": "Configuration for audio output format.", "properties": { - "mimeType": { + "delivery": { "type": "string", + "enum": [ + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ], + "description": "Optional. The delivery mode for the audio output.", "x-enum-descriptions": [ "Default value. This value is unused.", - "MP3 audio format.", - "OGG Opus audio format.", - "Raw PCM (L16) audio format.", - "WAV audio format.", - "A-law audio format.", - "Mu-law audio format." - ], + "Audio data is returned inline in the response.", + "Audio data is returned as a URI." + ] + }, + "sampleRate": { + "type": "integer", + "format": "int32", + "description": "Optional. Sample rate in Hz." + }, + "bitRate": { + "type": "integer", + "format": "int32", + "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus)." + }, + "mimeType": { + "type": "string", "enum": [ "MIME_TYPE_UNSPECIFIED", "AUDIO_MP3", @@ -4513,202 +3883,325 @@ "AUDIO_ALAW", "AUDIO_MULAW" ], - "description": "Optional. The MIME type of the audio output." + "description": "Optional. The MIME type of the audio output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "MP3 audio format.", + "OGG Opus audio format.", + "Raw PCM (L16) audio format.", + "WAV audio format.", + "A-law audio format.", + "Mu-law audio format." + ] + } + }, + "type": "object" + }, + "GoogleAiGenerativelanguageV1betaSegment": { + "properties": { + "partIndex": { + "description": "The index of a Part object within its parent Content object.", + "type": "integer", + "format": "int32" }, - "bitRate": { + "endIndex": { + "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", "type": "integer", - "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).", "format": "int32" }, - "delivery": { - "description": "Optional. The delivery mode for the audio output.", - "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Audio data is returned inline in the response.", - "Audio data is returned as a URI." - ], - "enum": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" - ] + "text": { + "description": "The text corresponding to the segment from the response.", + "type": "string" }, - "sampleRate": { + "startIndex": { + "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.", "type": "integer", - "description": "Optional. Sample rate in Hz.", "format": "int32" } }, "type": "object", - "description": "Configuration for audio output format." + "description": "Segment of the content." }, - "Permission": { - "description": "Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, corpus). A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains. There are three concentric roles. Each role is a superset of the previous role's permitted operations: - reader can use the resource (e.g. tuned model, corpus) for inference - writer has reader's permissions and additionally can edit and share - owner has writer's permissions and additionally can delete", + "ListModelsResponse": { + "properties": { + "models": { + "items": { + "$ref": "#/components/schemas/Model" + }, + "description": "The returned Models.", + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "type": "string" + } + }, "type": "object", + "description": "Response from `ListModel` containing a paginated list of Models." + }, + "Part": { "properties": { - "role": { - "description": "Required. The role granted by this permission.", + "toolResponse": { + "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`.", + "$ref": "#/components/schemas/ToolResponse" + }, + "toolCall": { + "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API.", + "$ref": "#/components/schemas/ToolCall" + }, + "fileData": { + "description": "URI based data.", + "$ref": "#/components/schemas/FileData" + }, + "thoughtSignature": { + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", "type": "string", - "x-enum-descriptions": [ - "The default value. This value is unused.", - "Owner can use, update, share and delete the resource.", - "Writer can use, update and share the resource.", - "Reader can use the resource." - ], - "enum": [ - "ROLE_UNSPECIFIED", - "OWNER", - "WRITER", - "READER" - ] + "format": "byte" }, - "emailAddress": { - "description": "Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.", + "mediaResolution": { + "description": "Optional. Media resolution for the input media.", + "$ref": "#/components/schemas/V1mainMediaResolution" + }, + "videoMetadata": { + "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.", + "$ref": "#/components/schemas/VideoMetadata" + }, + "functionResponse": { + "description": "The result output of a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model.", + "$ref": "#/components/schemas/FunctionResponse" + }, + "functionCall": { + "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", + "$ref": "#/components/schemas/FunctionCall" + }, + "text": { + "description": "Inline text.", "type": "string" }, - "name": { - "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.", - "readOnly": true, + "executableCode": { + "description": "Code generated by the model that is meant to be executed.", + "$ref": "#/components/schemas/ExecutableCode" + }, + "inlineData": { + "description": "Inline media bytes.", + "$ref": "#/components/schemas/Blob" + }, + "codeExecutionResult": { + "description": "Result of executing the `ExecutableCode`.", + "$ref": "#/components/schemas/CodeExecutionResult" + }, + "partMetadata": { + "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams.", + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object" + }, + "thought": { + "description": "Optional. Indicates if the part is thought from the model.", + "type": "boolean" + } + }, + "type": "object", + "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes." + }, + "CustomMetadata": { + "description": "User provided metadata stored as key-value pairs.", + "properties": { + "key": { + "description": "Required. The key of the metadata to store.", "type": "string" }, - "granteeType": { - "type": "string", - "x-enum-descriptions": [ - "The default value. This value is unused.", - "Represents a user. When set, you must provide email_address for the user.", - "Represents a group. When set, you must provide email_address for the group.", - "Represents access to everyone. No extra information is required." - ], - "enum": [ - "GRANTEE_TYPE_UNSPECIFIED", - "USER", - "GROUP", - "EVERYONE" - ], - "description": "Optional. Immutable. The type of the grantee." + "numericValue": { + "description": "The numeric value of the metadata to store.", + "type": "number", + "format": "float" + }, + "stringValue": { + "description": "The string value of the metadata to store.", + "type": "string" + }, + "stringListValue": { + "description": "The StringList value of the metadata to store.", + "$ref": "#/components/schemas/StringList" } - } + }, + "type": "object" }, - "ComputerUse": { + "Tool": { "properties": { - "disabledSafetyPolicies": { - "description": "Optional. Disabled safety policies for computer use.", - "type": "array", - "items": { - "type": "string", - "x-enum-descriptions": [ - "Unspecified safety policy.", - "Safety policy for financial transactions.", - "Safety policy for sensitive data modification.", - "Safety policy for communication tools (e.g. Gmail, Chat, Meet).", - "Safety policy for account creation.", - "Safety policy for data modification.", - "Safety policy for user consent management.", - "Safety policy for legal terms and agreements." - ], - "enum": [ - "SAFETY_POLICY_UNSPECIFIED", - "FINANCIAL_TRANSACTIONS", - "SENSITIVE_DATA_MODIFICATION", - "COMMUNICATION_TOOL", - "ACCOUNT_CREATION", - "DATA_MODIFICATION", - "USER_CONSENT_MANAGEMENT", - "LEGAL_TERMS_AND_AGREEMENTS" - ] - } + "googleSearchRetrieval": { + "description": "Optional. Retrieval tool that is powered by Google search.", + "$ref": "#/components/schemas/GoogleSearchRetrieval" }, - "environment": { - "description": "Required. The environment being operated.", - "type": "string", - "x-enum-descriptions": [ - "Defaults to browser.", - "Operates in a web browser.", - "Operates in a mobile environment.", - "Operates in a desktop environment." - ], - "enum": [ - "ENVIRONMENT_UNSPECIFIED", - "ENVIRONMENT_BROWSER", - "ENVIRONMENT_MOBILE", - "ENVIRONMENT_DESKTOP" - ] + "urlContext": { + "description": "Optional. Tool to support URL context retrieval.", + "$ref": "#/components/schemas/UrlContext" }, - "excludedPredefinedFunctions": { + "googleMaps": { + "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query.", + "$ref": "#/components/schemas/GoogleMaps" + }, + "mcpServers": { "items": { - "type": "string" + "$ref": "#/components/schemas/McpServer" }, - "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.", + "description": "Optional. MCP Servers to connect to.", "type": "array" }, - "enablePromptInjectionDetection": { - "type": "boolean", - "description": "Optional. Whether enable the prompt injection detection check on computer-use request." + "functionDeclarations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/FunctionDeclaration" + }, + "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role \"function\" generation context for the next model turn." + }, + "fileSearch": { + "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora.", + "$ref": "#/components/schemas/FileSearch" + }, + "googleSearch": { + "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", + "$ref": "#/components/schemas/GoogleSearch" + }, + "codeExecution": { + "description": "Optional. Enables the model to execute code as part of generation.", + "$ref": "#/components/schemas/CodeExecution" + }, + "computerUse": { + "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.", + "$ref": "#/components/schemas/ComputerUse" } }, "type": "object", - "description": "Computer Use tool type." + "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. Next ID: 16" }, - "VideoFileMetadata": { + "UrlContextMetadata": { + "description": "Metadata related to url context retrieval tool.", "properties": { - "videoDuration": { - "description": "Duration of the video.", - "type": "string", - "format": "google-duration" + "urlMetadata": { + "type": "array", + "description": "List of url context.", + "items": { + "$ref": "#/components/schemas/UrlMetadata" + } } }, - "type": "object", - "description": "Metadata for a video `File`." + "type": "object" }, - "TextResponseFormat": { + "ContentEmbedding": { + "description": "A list of floats representing an embedding.", + "properties": { + "values": { + "items": { + "type": "number", + "format": "float" + }, + "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls.", + "type": "array" + }, + "shape": { + "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).", + "items": { + "type": "integer", + "format": "int32" + }, + "type": "array" + } + }, + "type": "object" + }, + "FileSearchStore": { + "description": "A `FileSearchStore` is a collection of `Document`s.", "type": "object", - "description": "Configuration for text output format.", "properties": { - "mimeType": { - "description": "Optional. The MIME type of the text output.", + "name": { + "description": "Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the \"fileSearchStores/\" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated.", + "readOnly": true, + "type": "string" + }, + "activeDocumentsCount": { + "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.", + "readOnly": true, "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "JSON output format.", - "Plain text output format." - ], - "enum": [ - "MIME_TYPE_UNSPECIFIED", - "APPLICATION_JSON", - "TEXT_PLAIN" - ] + "format": "int64" }, - "schema": { - "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." + "pendingDocumentsCount": { + "type": "string", + "format": "int64", + "readOnly": true, + "description": "Output only. The number of documents in the `FileSearchStore` that are being processed." + }, + "sizeBytes": { + "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.", + "readOnly": true, + "type": "string", + "format": "int64" + }, + "displayName": { + "description": "Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"", + "type": "string" + }, + "failedDocumentsCount": { + "type": "string", + "format": "int64", + "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.", + "readOnly": true + }, + "createTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The Timestamp of when the `FileSearchStore` was created." + }, + "updateTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated." + }, + "embeddingModel": { + "description": "Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.", + "type": "string" } } }, - "InlinedResponses": { + "TranslationConfig": { + "description": "Config for translation features.", + "type": "object", "properties": { - "inlinedResponses": { - "readOnly": true, - "type": "array", - "description": "Output only. The responses to the requests in the batch.", - "items": { - "$ref": "#/components/schemas/InlinedResponse" - } + "echoTargetLanguage": { + "description": "Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language.", + "type": "boolean" + }, + "targetLanguageCode": { + "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\").", + "type": "string" } - }, - "type": "object", - "description": "The responses to the requests in the batch." + } }, "GenerateContentResponse": { + "type": "object", "properties": { "promptFeedback": { "description": "Returns the prompt's feedback related to the content filters.", "$ref": "#/components/schemas/PromptFeedback" }, + "responseId": { + "type": "string", + "description": "Output only. response_id is used to identify each response.", + "readOnly": true + }, "modelStatus": { "readOnly": true, "description": "Output only. The current model status of this model.", "$ref": "#/components/schemas/ModelStatus" }, + "modelVersion": { + "type": "string", + "readOnly": true, + "description": "Output only. The model version used to generate the response." + }, "candidates": { "items": { "$ref": "#/components/schemas/Candidate" @@ -4716,1414 +4209,1487 @@ "description": "Candidate responses from the model.", "type": "array" }, - "modelVersion": { + "usageMetadata": { + "readOnly": true, + "description": "Output only. Metadata on the generation requests' token usage.", + "$ref": "#/components/schemas/UsageMetadata" + } + }, + "description": "Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`." + }, + "SpeechConfig": { + "description": "Config for speech generation and transcription.", + "type": "object", + "properties": { + "languageCode": { + "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`.", + "type": "string" + }, + "multiSpeakerVoiceConfig": { + "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field.", + "$ref": "#/components/schemas/MultiSpeakerVoiceConfig" + }, + "voiceConfig": { + "description": "The configuration in case of single-voice output.", + "$ref": "#/components/schemas/VoiceConfig" + } + } + }, + "GroundingChunkCustomMetadata": { + "description": "User provided metadata about the GroundingFact.", + "type": "object", + "properties": { + "stringValue": { + "description": "Optional. The string value of the metadata.", + "type": "string" + }, + "stringListValue": { + "description": "Optional. A list of string values for the metadata.", + "$ref": "#/components/schemas/GroundingChunkStringList" + }, + "key": { + "description": "The key of the metadata.", + "type": "string" + }, + "numericValue": { + "type": "number", + "format": "float", + "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used." + } + } + }, + "CachedContentUsageMetadata": { + "properties": { + "totalTokenCount": { + "type": "integer", + "format": "int32", + "description": "Total number of tokens that the cached content consumes." + } + }, + "type": "object", + "description": "Metadata on the usage of the cached content." + }, + "GeneratedFile": { + "properties": { + "state": { + "description": "Output only. The state of the GeneratedFile.", + "readOnly": true, + "enum": [ + "STATE_UNSPECIFIED", + "GENERATING", + "GENERATED", + "FAILED" + ], + "x-enum-descriptions": [ + "The default value. This value is used if the state is omitted.", + "Being generated.", + "Generated and is ready for download.", + "Failed to generate the GeneratedFile." + ], + "type": "string" + }, + "error": { + "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state.", + "$ref": "#/components/schemas/Status" + }, + "name": { + "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`", + "type": "string" + }, + "mimeType": { + "description": "MIME type of the generatedFile.", + "type": "string" + } + }, + "type": "object", + "description": "A file generated on behalf of a user." + }, + "InlinedEmbedContentResponse": { + "type": "object", + "properties": { + "error": { "readOnly": true, - "type": "string", - "description": "Output only. The model version used to generate the response." + "description": "Output only. The error encountered while processing the request.", + "$ref": "#/components/schemas/Status" }, - "responseId": { - "description": "Output only. response_id is used to identify each response.", + "response": { + "description": "Output only. The response to the request.", "readOnly": true, - "type": "string" + "$ref": "#/components/schemas/EmbedContentResponse" }, - "usageMetadata": { + "metadata": { + "type": "object", "readOnly": true, - "description": "Output only. Metadata on the generation requests' token usage.", - "$ref": "#/components/schemas/UsageMetadata" + "description": "Output only. The metadata associated with the request.", + "additionalProperties": { + "description": "Properties of the object." + } } }, - "type": "object", - "description": "Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`." + "description": "The response to a single request in the batch." }, - "ListModelsResponse": { + "ListOperationsResponse": { "type": "object", - "description": "Response from `ListModel` containing a paginated list of Models.", "properties": { "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "description": "The standard List next-page token.", "type": "string" }, - "models": { + "operations": { + "description": "A list of operations that matches the specified filter in the request.", + "items": { + "$ref": "#/components/schemas/Operation" + }, + "type": "array" + }, + "unreachable": { "type": "array", - "description": "The returned Models.", "items": { - "$ref": "#/components/schemas/Model" - } + "type": "string" + }, + "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations." } - } + }, + "description": "The response message for Operations.ListOperations." }, - "TuningExample": { + "InlinedRequest": { + "description": "The request to be processed in the batch.", "type": "object", - "description": "A single example for tuning.", "properties": { - "textInput": { - "type": "string", - "description": "Optional. Text model input." + "request": { + "description": "Required. The request to be processed in the batch.", + "$ref": "#/components/schemas/GenerateContentRequest" }, - "output": { - "description": "Required. The expected model output.", - "type": "string" + "metadata": { + "description": "Optional. The metadata to be associated with the request.", + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object" } } }, - "V1mainMediaResolution": { + "ToolConfig": { "properties": { - "level": { - "description": "The tokenization quality used for given media. for Gemini API support .", - "type": "string", - "x-enum-descriptions": [ - "Media resolution has not been set.", - "Media resolution set to low.", - "Media resolution set to medium.", - "Media resolution set to high.", - "Media resolution set to ultra high." - ], - "enum": [ - "MEDIA_RESOLUTION_UNSPECIFIED", - "MEDIA_RESOLUTION_LOW", - "MEDIA_RESOLUTION_MEDIUM", - "MEDIA_RESOLUTION_HIGH", - "MEDIA_RESOLUTION_ULTRA_HIGH" - ] + "functionCallingConfig": { + "description": "Optional. Function calling config.", + "$ref": "#/components/schemas/FunctionCallingConfig" + }, + "retrievalConfig": { + "description": "Optional. Retrieval config.", + "$ref": "#/components/schemas/RetrievalConfig" + }, + "includeServerSideToolInvocations": { + "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions.", + "type": "boolean" } }, "type": "object", - "description": "Media resolution for tokenization." + "description": "The Tool configuration containing parameters for specifying `Tool` use in the request." }, - "AuthToken": { - "description": "A request to create an ephemeral authentication token.", - "type": "object", + "CodeExecutionResult": { + "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.", "properties": { - "fieldMask": { - "format": "google-fieldmask", - "description": "Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.", + "id": { + "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.", "type": "string" }, - "bidiGenerateContentSetup": { - "$ref": "#/components/schemas/BidiGenerateContentSetup", - "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`." - }, - "expireTime": { - "format": "google-datetime", - "type": "string", - "description": "Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Output only. Identifier. The token itself." - }, - "newSessionExpireTime": { - "type": "string", - "description": "Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.", - "format": "google-datetime" - }, - "uses": { - "description": "Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.", - "type": "integer", - "format": "int32" - }, - "interactionId": { - "description": "Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API.", + "outcome": { + "description": "Required. Outcome of the code execution.", + "x-enum-descriptions": [ + "Unspecified status. This value should not be used.", + "Code execution completed successfully. `output` contains the stdout, if any.", + "Code execution failed. `output` contains the stderr and stdout, if any.", + "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present." + ], + "enum": [ + "OUTCOME_UNSPECIFIED", + "OUTCOME_OK", + "OUTCOME_FAILED", + "OUTCOME_DEADLINE_EXCEEDED" + ], "type": "string" - } - } - }, - "RetrievalConfig": { - "properties": { - "latLng": { - "description": "Optional. The location of the user.", - "$ref": "#/components/schemas/LatLng" }, - "languageCode": { - "description": "Optional. The language code of the user. Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).", + "output": { + "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.", "type": "string" } }, - "type": "object", - "description": "Retrieval config." + "type": "object" }, - "ListPermissionsResponse": { - "type": "object", - "description": "Response from `ListPermissions` containing a paginated list of permissions.", + "SafetySetting": { + "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.", "properties": { - "nextPageToken": { + "category": { + "x-enum-descriptions": [ + "Category is unspecified.", + "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.", + "**PaLM** - Content that is rude, disrespectful, or profane.", + "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.", + "**PaLM** - Contains references to sexual acts or other lewd content.", + "**PaLM** - Promotes unchecked medical advice.", + "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.", + "**Gemini** - Harassment content.", + "**Gemini** - Hate speech and content.", + "**Gemini** - Sexually explicit content.", + "**Gemini** - Dangerous content.", + "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", + "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ], "type": "string", - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages." - }, - "permissions": { - "type": "array", - "description": "Returned permissions.", - "items": { - "$ref": "#/components/schemas/Permission" - } - } - } - }, - "InlinedEmbedContentResponse": { - "description": "The response to a single request in the batch.", - "type": "object", - "properties": { - "error": { - "$ref": "#/components/schemas/Status", - "description": "Output only. The error encountered while processing the request.", - "readOnly": true - }, - "metadata": { - "readOnly": true, - "type": "object", - "description": "Output only. The metadata associated with the request.", - "additionalProperties": { - "description": "Properties of the object." - } - }, - "response": { - "readOnly": true, - "description": "Output only. The response to the request.", - "$ref": "#/components/schemas/EmbedContentResponse" - } - } - }, - "WhiteSpaceConfig": { - "description": "Configuration for a white space chunking algorithm [white space delimited].", - "type": "object", - "properties": { - "maxOverlapTokens": { - "format": "int32", - "type": "integer", - "description": "Maximum number of overlapping tokens between two adjacent chunks." + "description": "Required. The category for this setting.", + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_DEROGATORY", + "HARM_CATEGORY_TOXICITY", + "HARM_CATEGORY_VIOLENCE", + "HARM_CATEGORY_SEXUAL", + "HARM_CATEGORY_MEDICAL", + "HARM_CATEGORY_DANGEROUS", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + "HARM_CATEGORY_JAILBREAK" + ] }, - "maxTokensPerChunk": { - "description": "Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow.", - "type": "integer", - "format": "int32" + "threshold": { + "type": "string", + "description": "Required. Controls the probability threshold at which harm is blocked.", + "x-enum-descriptions": [ + "Threshold is unspecified.", + "Content with NEGLIGIBLE will be allowed.", + "Content with NEGLIGIBLE and LOW will be allowed.", + "Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.", + "All content will be allowed.", + "Turn off the safety filter." + ], + "enum": [ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF" + ] } - } + }, + "type": "object" }, - "CountTokensResponse": { + "InlinedEmbedContentRequests": { + "description": "The requests to be processed in the batch if provided as part of the batch creation request.", "type": "object", - "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.", "properties": { - "cachedContentTokenCount": { - "description": "Number of tokens in the cached part of the prompt (the cached content).", - "type": "integer", - "format": "int32" - }, - "cacheTokensDetails": { - "readOnly": true, - "type": "array", - "description": "Output only. List of modalities that were processed in the cached content.", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } - }, - "promptTokensDetails": { + "requests": { + "description": "Required. The requests to be processed in the batch.", "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "$ref": "#/components/schemas/InlinedEmbedContentRequest" }, - "readOnly": true, - "type": "array", - "description": "Output only. List of modalities that were processed in the request input." - }, - "totalTokens": { - "format": "int32", - "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.", - "type": "integer" + "type": "array" } } }, - "AsyncBatchEmbedContentRequest": { + "ResponseFormatConfig": { + "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.", "properties": { - "batch": { - "$ref": "#/components/schemas/EmbedContentBatch", - "description": "Required. The batch to create." + "audio": { + "description": "Optional. Audio output format configuration.", + "$ref": "#/components/schemas/AudioResponseFormat" + }, + "image": { + "description": "Optional. Image output format configuration.", + "$ref": "#/components/schemas/ImageResponseFormat" + }, + "text": { + "description": "Optional. Text output format configuration.", + "$ref": "#/components/schemas/TextResponseFormat" } }, - "description": "Request for an `AsyncBatchEmbedContent` operation.", "type": "object" }, - "Hyperparameters": { - "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance", + "TunedModel": { "type": "object", "properties": { - "learningRate": { - "format": "float", - "description": "Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples.", - "type": "number" + "displayName": { + "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.", + "type": "string" }, - "batchSize": { - "format": "int32", - "type": "integer", - "description": "Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples." + "updateTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The timestamp when this model was updated." }, - "learningRateMultiplier": { + "temperature": { "type": "number", - "description": "Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used.", - "format": "float" + "format": "float", + "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model." }, - "epochCount": { - "format": "int32", - "type": "integer", - "description": "Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used." - } - } - }, - "SpeechConfig": { - "type": "object", - "description": "Config for speech generation and transcription.", - "properties": { - "voiceConfig": { - "$ref": "#/components/schemas/VoiceConfig", - "description": "The configuration in case of single-voice output." + "name": { + "type": "string", + "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`", + "readOnly": true }, - "languageCode": { - "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`.", + "description": { + "description": "Optional. A short description of this model.", "type": "string" }, - "multiSpeakerVoiceConfig": { - "$ref": "#/components/schemas/MultiSpeakerVoiceConfig", - "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field." - } - } - }, - "DynamicRetrievalConfig": { - "properties": { - "mode": { - "description": "The mode of the predictor to be used in dynamic retrieval.", - "type": "string", + "topP": { + "type": "number", + "format": "float", + "description": "Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model." + }, + "tuningTask": { + "description": "Required. The tuning task that creates the tuned model.", + "$ref": "#/components/schemas/TuningTask" + }, + "state": { + "readOnly": true, + "enum": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "FAILED" + ], + "description": "Output only. The state of the tuned model.", "x-enum-descriptions": [ - "Always trigger retrieval.", - "Run retrieval only when system decides it is necessary." + "The default value. This value is unused.", + "The model is being created.", + "The model is ready to be used.", + "The model failed to be created." ], - "enum": [ - "MODE_UNSPECIFIED", - "MODE_DYNAMIC" - ] + "type": "string" }, - "dynamicThreshold": { - "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.", - "type": "number", - "format": "float" - } - }, - "description": "Describes the options to customize dynamic retrieval.", - "type": "object" - }, - "GenerateContentRequest": { - "properties": { - "safetySettings": { - "items": { - "$ref": "#/components/schemas/SafetySetting" - }, - "type": "array", - "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications." + "baseModel": { + "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`", + "type": "string" }, - "toolConfig": { - "$ref": "#/components/schemas/ToolConfig", - "description": "Optional. Tool configuration for any `Tool` specified in the request. Refer to the [Function calling guide](https://ai.google.dev/gemini-api/docs/function-calling#function_calling_mode) for a usage example." + "createTime": { + "type": "string", + "format": "google-datetime", + "description": "Output only. The timestamp when this model was created.", + "readOnly": true }, - "tools": { - "description": "Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.", + "tunedModelSource": { + "description": "Optional. TunedModel to use as the starting point for training the new model.", + "$ref": "#/components/schemas/TunedModelSource" + }, + "readerProjectNumbers": { "type": "array", + "description": "Optional. List of project numbers that have read access to the tuned model.", "items": { - "$ref": "#/components/schemas/Tool" + "type": "string", + "format": "int64" } }, - "systemInstruction": { - "$ref": "#/components/schemas/Content", - "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only." + "topK": { + "description": "Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.", + "type": "integer", + "format": "int32" + } + }, + "description": "A fine-tuned model created using ModelService.CreateTunedModel." + }, + "EmbedContentBatch": { + "description": "A resource representing a batch of `EmbedContent` requests.", + "type": "object", + "properties": { + "updateTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The time at which the batch was last updated." }, - "contents": { - "type": "array", - "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.", - "items": { - "$ref": "#/components/schemas/Content" - } + "inputConfig": { + "description": "Required. Input configuration of the instances on which batch processing are performed.", + "$ref": "#/components/schemas/InputEmbedContentConfig" }, - "serviceTier": { - "description": "Optional. The service tier of the request.", + "model": { + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "type": "string" + }, + "createTime": { "type": "string", + "format": "google-datetime", + "description": "Output only. The time at which the batch was created.", + "readOnly": true + }, + "batchStats": { + "description": "Output only. Stats about the batch.", + "readOnly": true, + "$ref": "#/components/schemas/EmbedContentBatchStats" + }, + "state": { "x-enum-descriptions": [ - "Default service tier, which is standard.", - "Standard service tier.", - "Flex service tier.", - "Priority service tier." + "The batch state is unspecified.", + "The service is preparing to run the batch.", + "The batch is in progress.", + "The batch completed successfully.", + "The batch failed.", + "The batch has been cancelled.", + "The batch has expired." ], + "type": "string", + "description": "Output only. The state of the batch.", + "readOnly": true, "enum": [ - "unspecified", - "standard", - "flex", - "priority" + "BATCH_STATE_UNSPECIFIED", + "BATCH_STATE_PENDING", + "BATCH_STATE_RUNNING", + "BATCH_STATE_SUCCEEDED", + "BATCH_STATE_FAILED", + "BATCH_STATE_CANCELLED", + "BATCH_STATE_EXPIRED" ] }, - "store": { - "type": "boolean", - "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config." + "displayName": { + "description": "Required. The user-defined name of this batch.", + "type": "string" }, - "generationConfig": { - "description": "Optional. Configuration options for model generation and outputs.", - "$ref": "#/components/schemas/GenerationConfig" + "endTime": { + "type": "string", + "format": "google-datetime", + "description": "Output only. The time at which the batch processing completed.", + "readOnly": true }, - "model": { + "priority": { "type": "string", - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." + "format": "int64", + "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0." + }, + "name": { + "readOnly": true, + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "type": "string" + }, + "output": { + "$ref": "#/components/schemas/EmbedContentBatchOutput", + "readOnly": true, + "description": "Output only. The output of the batch request." + } + } + }, + "InlinedResponse": { + "description": "The response to a single request in the batch.", + "type": "object", + "properties": { + "error": { + "description": "Output only. The error encountered while processing the request.", + "readOnly": true, + "$ref": "#/components/schemas/Status" + }, + "response": { + "$ref": "#/components/schemas/GenerateContentResponse", + "description": "Output only. The response to the request.", + "readOnly": true }, - "cachedContent": { - "type": "string", - "description": "Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`" + "metadata": { + "readOnly": true, + "description": "Output only. The metadata associated with the request.", + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object" } - }, - "description": "Request to generate a completion from the model.", - "type": "object" + } }, - "ContextWindowCompressionConfig": { + "CountTokensResponse": { + "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.", "properties": { - "slidingWindow": { - "description": "A sliding-window mechanism.", - "$ref": "#/components/schemas/SlidingWindow" + "promptTokensDetails": { + "readOnly": true, + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "description": "Output only. List of modalities that were processed in the request input.", + "type": "array" }, - "triggerTokens": { - "type": "string", - "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response.", - "format": "int64" + "cachedContentTokenCount": { + "description": "Number of tokens in the cached part of the prompt (the cached content).", + "type": "integer", + "format": "int32" + }, + "cacheTokensDetails": { + "description": "Output only. List of modalities that were processed in the cached content.", + "readOnly": true, + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "type": "array" + }, + "totalTokens": { + "type": "integer", + "format": "int32", + "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative." } }, - "description": "Enables context window compression \u2014 a mechanism for managing the model's context window so that it does not exceed a given length.", "type": "object" }, - "InlinedEmbedContentResponses": { + "ListFileSearchStoresResponse": { + "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.", "properties": { - "inlinedResponses": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "type": "string" + }, + "fileSearchStores": { + "description": "The returned rag_stores.", "items": { - "$ref": "#/components/schemas/InlinedEmbedContentResponse" + "$ref": "#/components/schemas/FileSearchStore" }, - "readOnly": true, - "type": "array", - "description": "Output only. The responses to the requests in the batch." + "type": "array" } }, - "description": "The responses to the requests in the batch.", "type": "object" }, - "SpeakerVoiceConfig": { + "RegisterFilesRequest": { "properties": { - "speaker": { - "type": "string", - "description": "Required. The name of the speaker to use. Should be the same as in the prompt." - }, - "voiceConfig": { - "description": "Required. The configuration for the voice to use.", - "$ref": "#/components/schemas/VoiceConfig" + "uris": { + "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.", + "items": { + "type": "string" + }, + "type": "array" } }, - "description": "The configuration for a single speaker in a multi speaker setup.", - "type": "object" + "type": "object", + "description": "Request for `RegisterFiles`." }, - "Schema": { + "GenerationConfig": { + "type": "object", "properties": { - "description": { - "type": "string", - "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown." + "enableAffectiveDialog": { + "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly.", + "type": "boolean" }, - "type": { - "type": "string", - "x-enum-descriptions": [ - "Not specified, should not be used.", - "String type.", - "Number type.", - "Integer type.", - "Boolean type.", - "Array type.", - "Object type.", - "Null type." - ], - "enum": [ - "TYPE_UNSPECIFIED", - "STRING", - "NUMBER", - "INTEGER", - "BOOLEAN", - "ARRAY", - "OBJECT", - "NULL" - ], - "description": "Required. Data type." + "enableEnhancedCivicAnswers": { + "description": "Optional. Enables enhanced civic answers. It may not be available for all models.", + "type": "boolean" }, - "minimum": { - "format": "double", + "responseJsonSchema": { + "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." + }, + "topK": { + "type": "integer", + "format": "int32", + "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests." + }, + "frequencyPenalty": { + "description": "Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit.", "type": "number", - "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER" + "format": "float" }, - "minLength": { - "type": "string", - "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING", - "format": "int64" + "temperature": { + "type": "number", + "format": "float", + "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0]." }, - "nullable": { - "description": "Optional. Indicates if the value may be null.", - "type": "boolean" + "translationConfig": { + "description": "Optional. Config for translation.", + "$ref": "#/components/schemas/TranslationConfig" }, - "title": { - "description": "Optional. The title of the schema.", + "responseMimeType": { + "description": "Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types.", "type": "string" }, - "propertyOrdering": { - "items": { - "type": "string" - }, - "type": "array", - "description": "Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response." - }, - "default": { - "description": "Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors." + "candidateCount": { + "type": "integer", + "format": "int32", + "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)" }, - "items": { + "responseSchema": { "$ref": "#/components/schemas/Schema", - "description": "Optional. Schema of the elements of Type.ARRAY." - }, - "anyOf": { - "items": { - "$ref": "#/components/schemas/Schema" - }, - "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", - "type": "array" + "description": "Optional. Output schema of the generated candidate text. Schemas must be a subset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema) and can be objects, primitives or arrays. If set, a compatible `response_mime_type` must also be set. Compatible MIME types: `application/json`: Schema for JSON response. Refer to the [JSON text generation guide](https://ai.google.dev/gemini-api/docs/json-mode) for more details.", + "deprecated": true }, - "maximum": { - "format": "double", - "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER", - "type": "number" + "topP": { + "type": "number", + "format": "float", + "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests." }, - "maxItems": { - "type": "string", - "description": "Optional. Maximum number of the elements for Type.ARRAY.", - "format": "int64" + "responseLogprobs": { + "description": "Optional. If true, export the logprobs results in response.", + "type": "boolean" }, - "properties": { - "additionalProperties": { - "$ref": "#/components/schemas/Schema" - }, - "description": "Optional. Properties of Type.OBJECT.", - "type": "object" + "audioTranscriptionConfig": { + "description": "Optional. Config for audio transcription (speech recognition).", + "$ref": "#/components/schemas/AudioTranscriptionConfig" }, - "minProperties": { + "mediaResolution": { "type": "string", - "description": "Optional. Minimum number of the properties for Type.OBJECT.", - "format": "int64" + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH" + ], + "description": "Optional. If specified, the media resolution specified will be used.", + "x-enum-descriptions": [ + "Media resolution has not been set.", + "Media resolution set to low (64 tokens).", + "Media resolution set to medium (256 tokens).", + "Media resolution set to high (zoomed reframing with 256 tokens)." + ] }, - "maxProperties": { - "format": "int64", - "type": "string", - "description": "Optional. Maximum number of the properties for Type.OBJECT." + "logprobs": { + "description": "Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20].", + "type": "integer", + "format": "int32" }, - "enum": { - "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}", - "type": "array", + "seed": { + "type": "integer", + "format": "int32", + "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed." + }, + "stopSequences": { "items": { "type": "string" - } + }, + "description": "Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response.", + "type": "array" }, - "required": { + "responseModalities": { + "description": "Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text.", "items": { - "type": "string" + "type": "string", + "x-enum-descriptions": [ + "Default value.", + "Indicates the model should return text.", + "Indicates the model should return images.", + "Indicates the model should return audio.", + "Indicates the model should return video." + ], + "enum": [ + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "AUDIO", + "VIDEO" + ] }, - "type": "array", - "description": "Optional. Required properties of Type.OBJECT." + "type": "array" }, - "format": { - "type": "string", - "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality." + "thinkingConfig": { + "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.", + "$ref": "#/components/schemas/ThinkingConfig" }, - "maxLength": { - "format": "int64", - "type": "string", - "description": "Optional. Maximum length of the Type.STRING" + "responseFormat": { + "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure.", + "$ref": "#/components/schemas/ResponseFormatConfig" }, - "pattern": { - "type": "string", - "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression." + "maxOutputTokens": { + "description": "Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function.", + "type": "integer", + "format": "int32" + }, + "imageConfig": { + "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options.", + "$ref": "#/components/schemas/ImageConfig" }, - "example": { - "description": "Optional. Example of the object. Will only populated when the object is the root." + "speechConfig": { + "description": "Optional. The speech generation config.", + "$ref": "#/components/schemas/SpeechConfig" }, - "minItems": { - "type": "string", - "description": "Optional. Minimum number of the elements for Type.ARRAY.", - "format": "int64" + "presencePenalty": { + "type": "number", + "format": "float", + "description": "Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary." } }, - "description": "The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema).", - "type": "object" + "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model." }, - "GroundingChunkCustomMetadata": { + "PlaceAnswerSources": { "properties": { - "stringValue": { - "description": "Optional. The string value of the metadata.", - "type": "string" - }, - "key": { - "description": "The key of the metadata.", + "reviewSnippets": { + "items": { + "$ref": "#/components/schemas/ReviewSnippet" + }, + "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.", + "type": "array" + } + }, + "type": "object", + "description": "Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: \"does Bar Foo have Wifi\" or \"is Foo Bar wheelchair accessible?\"). Currently we only support review snippets as sources." + }, + "DynamicRetrievalConfig": { + "description": "Describes the options to customize dynamic retrieval.", + "properties": { + "mode": { + "description": "The mode of the predictor to be used in dynamic retrieval.", + "x-enum-descriptions": [ + "Always trigger retrieval.", + "Run retrieval only when system decides it is necessary." + ], + "enum": [ + "MODE_UNSPECIFIED", + "MODE_DYNAMIC" + ], "type": "string" }, - "stringListValue": { - "$ref": "#/components/schemas/GroundingChunkStringList", - "description": "Optional. A list of string values for the metadata." - }, - "numericValue": { + "dynamicThreshold": { + "type": "number", "format": "float", - "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.", - "type": "number" + "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used." } }, - "description": "User provided metadata about the GroundingFact.", "type": "object" }, - "GoogleMaps": { + "FunctionResponsePart": { + "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.", + "type": "object", "properties": { - "enableWidget": { - "description": "Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response.", - "type": "boolean" + "inlineData": { + "description": "Inline media bytes.", + "$ref": "#/components/schemas/FunctionResponseBlob" } - }, + } + }, + "ListEnvironmentsResponse": { + "description": "Response for `ListEnvironments`.", + "type": "object", + "properties": { + "nextPageToken": { + "description": "Pagination token.", + "type": "string" + }, + "environments": { + "items": { + "$ref": "#/components/schemas/Environment" + }, + "description": "Environments belonging to the provided project.", + "type": "array" + } + } + }, + "WhiteSpaceConfig": { "type": "object", - "description": "The GoogleMaps Tool that provides geospatial context for the user's query." + "properties": { + "maxTokensPerChunk": { + "type": "integer", + "format": "int32", + "description": "Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow." + }, + "maxOverlapTokens": { + "description": "Maximum number of overlapping tokens between two adjacent chunks.", + "type": "integer", + "format": "int32" + } + }, + "description": "Configuration for a white space chunking algorithm [white space delimited]." }, "SlidingWindow": { "description": "The SlidingWindow method operates by discarding content at the beginning of the context window. The resulting context will always begin at the start of a USER role turn. System instructions and any `BidiGenerateContentSetup.prefix_turns` will always remain at the beginning of the result.", "type": "object", "properties": { "targetTokens": { - "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations.", "type": "string", - "format": "int64" + "format": "int64", + "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations." } } }, - "File": { - "type": "object", - "description": "A file uploaded to the API. Next ID: 15", + "InputEmbedContentConfig": { + "description": "Configures the input to the batch request.", "properties": { - "mimeType": { - "description": "Output only. MIME type of the file.", - "readOnly": true, - "type": "string" - }, - "error": { - "$ref": "#/components/schemas/Status", - "readOnly": true, - "description": "Output only. Error status if File processing failed." - }, - "createTime": { - "readOnly": true, - "type": "string", - "description": "Output only. The timestamp of when the `File` was created.", - "format": "google-datetime" + "requests": { + "description": "The requests to be processed in the batch.", + "$ref": "#/components/schemas/InlinedEmbedContentRequests" }, + "fileName": { + "description": "The name of the `File` containing the input requests.", + "type": "string" + } + }, + "type": "object" + }, + "CachedContent": { + "description": "Content that has been preprocessed and can be used in subsequent request to GenerativeService. Cached content can be only used with model it was created for.", + "properties": { "name": { - "type": "string", - "description": "Immutable. Identifier. The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`" - }, - "updateTime": { - "format": "google-datetime", - "description": "Output only. The timestamp of when the `File` was last updated.", + "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", "readOnly": true, "type": "string" }, - "source": { - "type": "string", - "x-enum-descriptions": [ - "Used if source is not specified.", - "Indicates the file is uploaded by the user.", - "Indicates the file is generated by Google.", - "Indicates the file is a registered, i.e. a Google Cloud Storage file." - ], - "enum": [ - "SOURCE_UNSPECIFIED", - "UPLOADED", - "GENERATED", - "REGISTERED" - ], - "description": "Source of the File." + "systemInstruction": { + "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.", + "$ref": "#/components/schemas/Content" }, - "downloadUri": { - "description": "Output only. The download uri of the `File`.", - "readOnly": true, - "type": "string" + "contents": { + "items": { + "$ref": "#/components/schemas/Content" + }, + "description": "Optional. Input only. Immutable. The content to cache.", + "type": "array" }, - "sha256Hash": { - "format": "byte", - "description": "Output only. SHA-256 hash of the uploaded bytes.", + "usageMetadata": { + "description": "Output only. Metadata on the usage of the cached content.", "readOnly": true, + "$ref": "#/components/schemas/CachedContentUsageMetadata" + }, + "displayName": { + "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.", "type": "string" }, - "videoMetadata": { - "$ref": "#/components/schemas/VideoFileMetadata", - "readOnly": true, - "description": "Output only. Metadata for a video." + "ttl": { + "description": "Input only. New TTL for this resource, input only.", + "type": "string", + "format": "google-duration" }, - "expirationTime": { - "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.", + "updateTime": { "readOnly": true, + "description": "Output only. When the cache entry was last updated in UTC time.", "type": "string", "format": "google-datetime" }, - "uri": { - "readOnly": true, - "type": "string", - "description": "Output only. The uri of the `File`." + "tools": { + "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response", + "items": { + "$ref": "#/components/schemas/Tool" + }, + "type": "array" }, - "sizeBytes": { - "format": "int64", - "description": "Output only. Size of the file in bytes.", - "readOnly": true, - "type": "string" + "toolConfig": { + "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools.", + "$ref": "#/components/schemas/ToolConfig" }, - "displayName": { - "description": "Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: \"Welcome Image\"", + "expireTime": { + "type": "string", + "format": "google-datetime", + "description": "Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input." + }, + "model": { + "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`", "type": "string" }, - "state": { - "description": "Output only. Processing state of the File.", + "createTime": { + "description": "Output only. Creation time of the cache entry.", "readOnly": true, "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "PROCESSING", - "ACTIVE", - "FAILED" - ], - "x-enum-descriptions": [ - "The default value. This value is used if the state is omitted.", - "File is being processed and cannot be used for inference yet.", - "File is processed and available for inference.", - "File failed processing." - ] + "format": "google-datetime" } - } + }, + "type": "object" }, - "RegisterFilesResponse": { - "description": "Response for `RegisterFiles`.", + "InlinedEmbedContentResponses": { "type": "object", "properties": { - "files": { - "items": { - "$ref": "#/components/schemas/File" - }, + "inlinedResponses": { "type": "array", - "description": "The registered files to be used when calling GenerateContent." + "description": "Output only. The responses to the requests in the batch.", + "readOnly": true, + "items": { + "$ref": "#/components/schemas/InlinedEmbedContentResponse" + } } - } + }, + "description": "The responses to the requests in the batch." }, - "ResponseFormatConfig": { + "LanguageHints": { + "deprecated": true, + "description": "Provides hints to the model about possible languages present in the audio.", "properties": { - "text": { - "description": "Optional. Text output format configuration.", - "$ref": "#/components/schemas/TextResponseFormat" - }, - "image": { - "description": "Optional. Image output format configuration.", - "$ref": "#/components/schemas/ImageResponseFormat" - }, - "audio": { - "$ref": "#/components/schemas/AudioResponseFormat", - "description": "Optional. Audio output format configuration." + "languageCodes": { + "type": "array", + "description": "Required. BCP-47 language codes.", + "deprecated": true, + "items": { + "type": "string" + } } }, - "type": "object", - "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality." + "type": "object" }, - "PlaceAnswerSources": { + "FileSearch": { "type": "object", - "description": "Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: \"does Bar Foo have Wifi\" or \"is Foo Bar wheelchair accessible?\"). Currently we only support review snippets as sources.", "properties": { - "reviewSnippets": { - "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.", + "topK": { + "type": "integer", + "format": "int32", + "description": "Optional. The number of semantic retrieval chunks to retrieve." + }, + "metadataFilter": { + "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.", + "type": "string" + }, + "fileSearchStoreNames": { "type": "array", "items": { - "$ref": "#/components/schemas/ReviewSnippet" - } + "type": "string" + }, + "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`" } - } + }, + "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API." }, - "TopCandidates": { + "CitationMetadata": { "properties": { - "candidates": { - "description": "Sorted by log probability in descending order.", + "citationSources": { "type": "array", + "description": "Citations to sources for a specific response.", "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" + "$ref": "#/components/schemas/CitationSource" } } }, "type": "object", - "description": "Candidates with top log probabilities at each decoding step." - }, - "InlinedRequests": { - "properties": { - "requests": { - "items": { - "$ref": "#/components/schemas/InlinedRequest" - }, - "type": "array", - "description": "Required. The requests to be processed in the batch." - } - }, - "description": "The requests to be processed in the batch if provided as part of the batch creation request.", - "type": "object" + "description": "A collection of source attributions for a piece of content." }, - "TunedModelSource": { + "SemanticRetrieverChunk": { "type": "object", - "description": "Tuned model as a source for training a new model.", "properties": { - "baseModel": { - "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`", + "source": { + "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`", "readOnly": true, "type": "string" }, - "tunedModel": { - "description": "Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model`", - "type": "string" - } - } - }, - "UrlContext": { - "type": "object", - "description": "Tool to support URL context retrieval.", - "properties": {} - }, - "EmbedContentBatchOutput": { - "properties": { - "responsesFile": { - "readOnly": true, + "chunk": { "type": "string", - "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests." - }, - "inlinedResponses": { - "readOnly": true, - "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.", - "$ref": "#/components/schemas/InlinedEmbedContentResponses" + "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`", + "readOnly": true } }, - "type": "object", - "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field." + "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`." }, - "ModelStatus": { - "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.", + "VideoFileMetadata": { + "description": "Metadata for a video `File`.", "type": "object", "properties": { - "message": { - "type": "string", - "description": "A message explaining the model status." - }, - "modelStage": { - "x-enum-descriptions": [ - "Unspecified model stage.", - "The underlying model is subject to lots of tunings.", - "Models in this stage are for experimental purposes only.", - "Models in this stage are more mature than experimental models.", - "Models in this stage are considered stable and ready for production use.", - "If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.", - "Models in this stage are deprecated. These models cannot be used.", - "Models in this stage are retired. These models cannot be used." - ], - "description": "The stage of the underlying model.", - "type": "string", - "enum": [ - "MODEL_STAGE_UNSPECIFIED", - "UNSTABLE_EXPERIMENTAL", - "EXPERIMENTAL", - "PREVIEW", - "STABLE", - "LEGACY", - "DEPRECATED", - "RETIRED" - ], - "enumDeprecated": [ - false, - true, - false, - false, - false, - false, - true, - false - ] - }, - "retirementTime": { - "format": "google-datetime", + "videoDuration": { + "description": "Duration of the video.", "type": "string", - "description": "The time at which the model will be retired." + "format": "google-duration" } } }, - "EnvironmentNetworkEgressAllowlist": { + "MultiSpeakerVoiceConfig": { + "description": "The configuration for the multi-speaker setup.", + "type": "object", "properties": { - "allowlist": { - "description": "List of allowed domains and their configurations.", + "speakerVoiceConfigs": { "type": "array", + "description": "Required. All the enabled speaker voices.", "items": { - "$ref": "#/components/schemas/EgressRule" + "$ref": "#/components/schemas/SpeakerVoiceConfig" } } - }, - "description": "Network egress configuration for the environment.", - "type": "object" + } }, - "VideoMetadata": { - "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.", - "type": "object", + "Operation": { "properties": { - "startOffset": { - "format": "google-duration", - "description": "Optional. The start offset of the video.", + "name": { + "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.", "type": "string" }, - "endOffset": { - "type": "string", - "description": "Optional. The end offset of the video.", - "format": "google-duration" + "metadata": { + "type": "object", + "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } }, - "fps": { - "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0].", - "type": "number", - "format": "double" + "error": { + "description": "The error result of the operation in case of failure or cancellation.", + "$ref": "#/components/schemas/Status" + }, + "done": { + "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", + "type": "boolean" + }, + "response": { + "type": "object", + "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } } }, - "deprecated": true + "type": "object", + "description": "This resource represents a long-running operation that is the result of a network API call." }, - "GoogleSearchRetrieval": { + "ListTunedModelsResponse": { "properties": { - "dynamicRetrievalConfig": { - "description": "Specifies the dynamic retrieval configuration for the given source.", - "$ref": "#/components/schemas/DynamicRetrievalConfig" + "tunedModels": { + "items": { + "$ref": "#/components/schemas/TunedModel" + }, + "description": "The returned Models.", + "type": "array" + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "type": "string" } }, "type": "object", - "description": "Tool to retrieve public web data for grounding, powered by Google." + "description": "Response from `ListTunedModels` containing a paginated list of Models." }, - "FunctionResponsePart": { - "type": "object", - "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.", + "TransferOwnershipRequest": { "properties": { - "inlineData": { - "description": "Inline media bytes.", - "$ref": "#/components/schemas/FunctionResponseBlob" + "emailAddress": { + "description": "Required. The email address of the user to whom the tuned model is being transferred to.", + "type": "string" } - } + }, + "type": "object", + "description": "Request to transfer the ownership of the tuned model." }, - "UsageMetadata": { + "BatchEmbedContentsResponse": { + "description": "The response to a `BatchEmbedContentsRequest`.", "properties": { - "candidatesTokenCount": { - "format": "int32", - "type": "integer", - "description": "Total number of tokens across all the generated response candidates." - }, - "cachedContentTokenCount": { - "format": "int32", - "type": "integer", - "description": "Number of tokens in the cached part of the prompt (the cached content)" - }, - "promptTokensDetails": { - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - }, - "readOnly": true, - "type": "array", - "description": "Output only. List of modalities that were processed in the request input." - }, - "toolUsePromptTokensDetails": { - "readOnly": true, - "type": "array", - "description": "Output only. List of modalities that were processed for tool-use request inputs.", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } - }, - "promptTokenCount": { - "format": "int32", - "type": "integer", - "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content." - }, - "candidatesTokensDetails": { - "readOnly": true, - "type": "array", - "description": "Output only. List of modalities that were returned in the response.", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } - }, - "cacheTokensDetails": { - "description": "Output only. List of modalities of the cached content in the request input.", + "embeddings": { "readOnly": true, - "type": "array", "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } - }, - "toolUsePromptTokenCount": { - "readOnly": true, - "type": "integer", - "description": "Output only. Number of tokens present in tool-use prompt(s).", - "format": "int32" - }, - "totalTokenCount": { - "format": "int32", - "type": "integer", - "description": "Total token count for the generation request (prompt + thoughts + response candidates)." + "$ref": "#/components/schemas/ContentEmbedding" + }, + "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.", + "type": "array" }, - "thoughtsTokenCount": { - "format": "int32", - "description": "Output only. Number of tokens of thoughts for thinking models.", - "readOnly": true, - "type": "integer" + "usageMetadata": { + "$ref": "#/components/schemas/EmbeddingUsageMetadata", + "description": "Output only. The usage metadata for the request.", + "readOnly": true + } + }, + "type": "object" + }, + "CreateEnvironmentRequest": { + "description": "Request for `CreateEnvironment`.", + "properties": { + "networkAllowlist": { + "description": "Allow only specific domains.", + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" }, - "serviceTier": { - "readOnly": true, + "networkMode": { "type": "string", "enum": [ - "unspecified", - "standard", - "flex", - "priority" + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" ], - "description": "Output only. Service tier of the request.", + "description": "Network egress mode.", "x-enum-descriptions": [ - "Default service tier, which is standard.", - "Standard service tier.", - "Flex service tier.", - "Priority service tier." + "Default value. Unused.", + "All network egress is blocked." ] }, - "responseTokenCount": { - "description": "Output only. Number of tokens in the response. Used by Gemini 3.1+ Live API models instead of candidatesTokenCount.", - "type": "integer", - "format": "int32", - "readOnly": true - }, - "responseTokensDetails": { - "description": "Output only. List of modalities returned in the response with per-modality token counts. Used by Gemini 3.1+ Live API models instead of candidatesTokensDetails.", + "sources": { "type": "array", - "readOnly": true, "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } + "$ref": "#/components/schemas/Source" + }, + "description": "Sources to be mounted into the environment." } }, - "type": "object", - "description": "Metadata on the generation request's token usage." - }, - "TransferOwnershipResponse": { - "properties": {}, - "type": "object", - "description": "Response from `TransferOwnership`." + "type": "object" }, - "UrlMetadata": { + "Source": { "properties": { - "retrievedUrl": { - "type": "string", - "description": "Retrieved url by the tool." + "source": { + "description": "The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub path.", + "type": "string" }, - "urlRetrievalStatus": { - "description": "Status of the url retrieval.", - "type": "string", + "encoding": { + "description": "Optional encoding for inline content (e.g. `base64`).", + "type": "string" + }, + "type": { + "enum": [ + "TYPE_UNSPECIFIED", + "GCS", + "INLINE", + "REPOSITORY" + ], "x-enum-descriptions": [ - "Default value. This value is unused.", - "Url retrieval is successful.", - "Url retrieval is failed due to error.", - "Url retrieval is failed because the content is behind paywall.", - "Url retrieval is failed because the content is unsafe." + "", + "A GCS bucket.", + "Inline content.", + "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)." ], - "enum": [ - "URL_RETRIEVAL_STATUS_UNSPECIFIED", - "URL_RETRIEVAL_STATUS_SUCCESS", - "URL_RETRIEVAL_STATUS_ERROR", - "URL_RETRIEVAL_STATUS_PAYWALL", - "URL_RETRIEVAL_STATUS_UNSAFE" - ] + "type": "string" + }, + "content": { + "description": "The inline content if `type` is `INLINE`.", + "type": "string" + }, + "target": { + "description": "Where the source should appear in the environment.", + "type": "string" } }, "type": "object", - "description": "Context of the a single url retrieval." + "description": "A source to be mounted into the environment." }, - "FileSearchStore": { + "BatchGenerateContentRequest": { "properties": { - "pendingDocumentsCount": { - "format": "int64", - "readOnly": true, - "type": "string", - "description": "Output only. The number of documents in the `FileSearchStore` that are being processed." - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the \"fileSearchStores/\" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated." - }, - "updateTime": { - "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.", - "readOnly": true, - "type": "string", - "format": "google-datetime" + "batch": { + "description": "Required. The batch to create.", + "$ref": "#/components/schemas/GenerateContentBatch" + } + }, + "type": "object", + "description": "Request for a `BatchGenerateContent` operation." + }, + "InputConfig": { + "properties": { + "requests": { + "description": "The requests to be processed in the batch.", + "$ref": "#/components/schemas/InlinedRequests" }, - "sizeBytes": { - "format": "int64", - "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.", - "readOnly": true, + "fileName": { + "description": "The name of the `File` containing the input requests.", "type": "string" - }, - "createTime": { - "format": "google-datetime", - "readOnly": true, - "type": "string", - "description": "Output only. The Timestamp of when the `FileSearchStore` was created." - }, - "displayName": { - "type": "string", - "description": "Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"" - }, - "activeDocumentsCount": { - "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.", - "readOnly": true, - "type": "string", - "format": "int64" - }, - "failedDocumentsCount": { - "readOnly": true, - "type": "string", - "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.", - "format": "int64" - }, - "embeddingModel": { - "type": "string", - "description": "Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used." } }, "type": "object", - "description": "A `FileSearchStore` is a collection of `Document`s." + "description": "Configures the input to the batch request." }, - "FunctionDeclaration": { - "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.", + "ReviewSnippet": { + "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.", "type": "object", "properties": { - "parameters": { - "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter.", - "$ref": "#/components/schemas/Schema" - }, - "name": { - "type": "string", - "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128." - }, - "responseJsonSchema": { - "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`." - }, - "description": { - "type": "string", - "description": "Required. A brief description of the function." - }, - "parametersJsonSchema": { - "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`." + "title": { + "description": "Title of the review.", + "type": "string" }, - "behavior": { - "type": "string", - "x-enum-descriptions": [ - "This value is unused.", - "If set, the system will wait to receive the function response before continuing the conversation.", - "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model." - ], - "enum": [ - "UNSPECIFIED", - "BLOCKING", - "NON_BLOCKING" - ], - "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method." + "reviewId": { + "description": "The ID of the review snippet.", + "type": "string" }, - "response": { - "$ref": "#/components/schemas/Schema", - "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function." + "googleMapsUri": { + "description": "A link that corresponds to the user review on Google Maps.", + "type": "string" } } }, - "LogprobsResultCandidate": { + "ListCachedContentsResponse": { + "description": "Response with CachedContents list.", "type": "object", - "description": "Candidate for the logprobs token and score.", "properties": { - "token": { - "type": "string", - "description": "The candidate\u2019s token string value." - }, - "tokenId": { - "format": "int32", - "type": "integer", - "description": "The candidate\u2019s token id value." + "cachedContents": { + "items": { + "$ref": "#/components/schemas/CachedContent" + }, + "description": "List of cached contents.", + "type": "array" }, - "logProbability": { - "type": "number", - "description": "The candidate's log probability.", - "format": "float" + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.", + "type": "string" } } }, - "ExecutableCode": { + "CreateFileRequest": { "properties": { - "language": { + "file": { + "description": "Optional. Metadata for the file to create.", + "$ref": "#/components/schemas/File" + } + }, + "type": "object", + "description": "Request for `CreateFile`." + }, + "ComputerUse": { + "type": "object", + "properties": { + "environment": { "type": "string", - "x-enum-descriptions": [ - "Unspecified language. This value should not be used.", - "Python >= 3.10, with numpy and simpy available. Python is the default language." - ], "enum": [ - "LANGUAGE_UNSPECIFIED", - "PYTHON" + "ENVIRONMENT_UNSPECIFIED", + "ENVIRONMENT_BROWSER", + "ENVIRONMENT_MOBILE", + "ENVIRONMENT_DESKTOP" ], - "description": "Required. Programming language of the `code`." + "description": "Required. The environment being operated.", + "x-enum-descriptions": [ + "Defaults to browser.", + "Operates in a web browser.", + "Operates in a mobile environment.", + "Operates in a desktop environment." + ] }, - "id": { - "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.", - "type": "string" + "excludedPredefinedFunctions": { + "items": { + "type": "string" + }, + "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.", + "type": "array" + }, + "disabledSafetyPolicies": { + "items": { + "x-enum-descriptions": [ + "Unspecified safety policy.", + "Safety policy for financial transactions.", + "Safety policy for sensitive data modification.", + "Safety policy for communication tools (e.g. Gmail, Chat, Meet).", + "Safety policy for account creation.", + "Safety policy for data modification.", + "Safety policy for user consent management.", + "Safety policy for legal terms and agreements." + ], + "enum": [ + "SAFETY_POLICY_UNSPECIFIED", + "FINANCIAL_TRANSACTIONS", + "SENSITIVE_DATA_MODIFICATION", + "COMMUNICATION_TOOL", + "ACCOUNT_CREATION", + "DATA_MODIFICATION", + "USER_CONSENT_MANAGEMENT", + "LEGAL_TERMS_AND_AGREEMENTS" + ], + "type": "string" + }, + "description": "Optional. Disabled safety policies for computer use.", + "type": "array" }, - "code": { - "description": "Required. The code to be executed.", - "type": "string" + "enablePromptInjectionDetection": { + "description": "Optional. Whether enable the prompt injection detection check on computer-use request.", + "type": "boolean" } }, - "type": "object", - "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated." + "description": "Computer Use tool type." }, - "GroundingMetadata": { - "type": "object", - "description": "Metadata returned to client when grounding is enabled.", + "Schema": { + "description": "The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema).", "properties": { - "webSearchQueries": { + "required": { + "description": "Optional. Required properties of Type.OBJECT.", "items": { "type": "string" }, - "type": "array", - "description": "Web search queries for the following-up web search." + "type": "array" }, - "googleMapsWidgetContextToken": { + "maxItems": { + "description": "Optional. Maximum number of the elements for Type.ARRAY.", "type": "string", - "description": "Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled." - }, - "retrievalMetadata": { - "$ref": "#/components/schemas/RetrievalMetadata", - "description": "Metadata related to retrieval in the grounding flow." + "format": "int64" }, - "searchEntryPoint": { - "description": "Optional. Google search entry for the following-up web searches.", - "$ref": "#/components/schemas/SearchEntryPoint" + "pattern": { + "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.", + "type": "string" }, - "groundingSupports": { - "items": { - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" - }, - "type": "array", - "description": "List of grounding support." + "properties": { + "type": "object", + "description": "Optional. Properties of Type.OBJECT.", + "additionalProperties": { + "$ref": "#/components/schemas/Schema" + } }, - "imageSearchQueries": { + "anyOf": { "items": { - "type": "string" + "$ref": "#/components/schemas/Schema" }, - "description": "Image search queries used for grounding.", + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", "type": "array" }, - "groundingChunks": { - "items": { - "$ref": "#/components/schemas/GroundingChunk" - }, - "description": "List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses.", - "type": "array" - } - } - }, - "InlinedEmbedContentRequests": { - "properties": { - "requests": { - "type": "array", - "description": "Required. The requests to be processed in the batch.", - "items": { - "$ref": "#/components/schemas/InlinedEmbedContentRequest" - } - } - }, - "type": "object", - "description": "The requests to be processed in the batch if provided as part of the batch creation request." - }, - "TunedModel": { - "properties": { - "temperature": { - "format": "float", - "type": "number", - "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model." + "type": { + "enum": [ + "TYPE_UNSPECIFIED", + "STRING", + "NUMBER", + "INTEGER", + "BOOLEAN", + "ARRAY", + "OBJECT", + "NULL" + ], + "description": "Required. Data type.", + "x-enum-descriptions": [ + "Not specified, should not be used.", + "String type.", + "Number type.", + "Integer type.", + "Boolean type.", + "Array type.", + "Object type.", + "Null type." + ], + "type": "string" }, - "description": { - "description": "Optional. A short description of this model.", + "title": { + "description": "Optional. The title of the schema.", "type": "string" }, - "name": { - "readOnly": true, + "nullable": { + "description": "Optional. Indicates if the value may be null.", + "type": "boolean" + }, + "minProperties": { + "description": "Optional. Minimum number of the properties for Type.OBJECT.", "type": "string", - "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: * display_name = `Sentence Translator` * name = `tunedModels/sentence-translator-u3b7m`" + "format": "int64" }, - "updateTime": { - "format": "google-datetime", - "description": "Output only. The timestamp when this model was updated.", - "readOnly": true, - "type": "string" + "default": { + "description": "Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors." }, - "createTime": { - "format": "google-datetime", - "readOnly": true, + "minItems": { "type": "string", - "description": "Output only. The timestamp when this model was created." + "format": "int64", + "description": "Optional. Minimum number of the elements for Type.ARRAY." }, - "baseModel": { - "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`", + "description": { + "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.", "type": "string" }, - "state": { - "readOnly": true, - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "CREATING", - "ACTIVE", - "FAILED" - ], - "description": "Output only. The state of the tuned model.", - "x-enum-descriptions": [ - "The default value. This value is unused.", - "The model is being created.", - "The model is ready to be used.", - "The model failed to be created." - ] + "enum": { + "items": { + "type": "string" + }, + "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}", + "type": "array" }, - "topP": { + "items": { + "description": "Optional. Schema of the elements of Type.ARRAY.", + "$ref": "#/components/schemas/Schema" + }, + "minimum": { + "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER", "type": "number", - "description": "Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.", - "format": "float" + "format": "double" }, - "readerProjectNumbers": { - "description": "Optional. List of project numbers that have read access to the tuned model.", + "minLength": { + "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING", + "type": "string", + "format": "int64" + }, + "example": { + "description": "Optional. Example of the object. Will only populated when the object is the root." + }, + "propertyOrdering": { "type": "array", + "description": "Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response.", "items": { - "type": "string", - "format": "int64" + "type": "string" } }, - "tunedModelSource": { - "$ref": "#/components/schemas/TunedModelSource", - "description": "Optional. TunedModel to use as the starting point for training the new model." + "maximum": { + "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER", + "type": "number", + "format": "double" }, - "tuningTask": { - "$ref": "#/components/schemas/TuningTask", - "description": "Required. The tuning task that creates the tuned model." + "format": { + "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.", + "type": "string" }, - "displayName": { - "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.", + "maxLength": { + "type": "string", + "format": "int64", + "description": "Optional. Maximum length of the Type.STRING" + }, + "maxProperties": { + "description": "Optional. Maximum number of the properties for Type.OBJECT.", + "type": "string", + "format": "int64" + } + }, + "type": "object" + }, + "ImageConfig": { + "properties": { + "aspectRatio": { + "description": "Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided.", "type": "string" }, - "topK": { - "format": "int32", - "description": "Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.", - "type": "integer" + "imageSize": { + "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.", + "type": "string" } }, "type": "object", - "description": "A fine-tuned model created using ModelService.CreateTunedModel." + "description": "Config for image generation features." }, - "BatchStats": { - "description": "Stats about the batch.", + "TransferOwnershipResponse": { + "description": "Response from `TransferOwnership`.", + "type": "object", + "properties": {} + }, + "Image": { "type": "object", "properties": { - "failedRequestCount": { - "format": "int64", - "description": "Output only. The number of requests that failed to be processed.", - "readOnly": true, + "sourceUri": { + "description": "The web page URI for attribution.", "type": "string" }, - "requestCount": { - "readOnly": true, - "type": "string", - "description": "Output only. The number of requests in the batch.", - "format": "int64" + "imageUri": { + "description": "The image asset URL.", + "type": "string" }, - "successfulRequestCount": { - "format": "int64", - "description": "Output only. The number of requests that were successfully processed.", - "readOnly": true, + "domain": { + "description": "The root domain of the web page that the image is from, e.g. \"example.com\".", "type": "string" }, - "pendingRequestCount": { - "format": "int64", - "description": "Output only. The number of requests that are still pending processing.", - "readOnly": true, + "title": { + "description": "The title of the web page that the image is from.", "type": "string" } - } + }, + "description": "Chunk from image search." }, - "EmbedContentBatch": { + "LogprobsResult": { + "type": "object", "properties": { - "displayName": { - "description": "Required. The user-defined name of this batch.", - "type": "string" - }, - "name": { - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", - "readOnly": true, - "type": "string" - }, - "updateTime": { - "format": "google-datetime", - "description": "Output only. The time at which the batch was last updated.", - "readOnly": true, - "type": "string" + "topCandidates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TopCandidates" + }, + "description": "Length = total number of decoding steps." }, - "batchStats": { - "description": "Output only. Stats about the batch.", - "readOnly": true, - "$ref": "#/components/schemas/EmbedContentBatchStats" + "logProbabilitySum": { + "description": "Sum of log probabilities for all tokens.", + "type": "number", + "format": "float" }, - "createTime": { - "format": "google-datetime", - "description": "Output only. The time at which the batch was created.", - "readOnly": true, - "type": "string" + "chosenCandidates": { + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "items": { + "$ref": "#/components/schemas/LogprobsResultCandidate" + }, + "type": "array" + } + }, + "description": "Logprobs Result" + }, + "GenerateContentBatch": { + "description": "A resource representing a batch of `GenerateContent` requests.", + "properties": { + "priority": { + "type": "string", + "format": "int64", + "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0." }, "endTime": { - "description": "Output only. The time at which the batch processing completed.", "readOnly": true, + "description": "Output only. The time at which the batch processing completed.", "type": "string", "format": "google-datetime" }, - "priority": { - "type": "string", - "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.", - "format": "int64" - }, - "model": { - "type": "string", - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." - }, - "inputConfig": { - "$ref": "#/components/schemas/InputEmbedContentConfig", - "description": "Required. Input configuration of the instances on which batch processing are performed." - }, "output": { - "$ref": "#/components/schemas/EmbedContentBatchOutput", + "readOnly": true, "description": "Output only. The output of the batch request.", - "readOnly": true + "$ref": "#/components/schemas/GenerateContentBatchOutput" + }, + "name": { + "readOnly": true, + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "type": "string" }, "state": { - "x-enum-descriptions": [ - "The batch state is unspecified.", - "The service is preparing to run the batch.", - "The batch is in progress.", - "The batch completed successfully.", - "The batch failed.", - "The batch has been cancelled.", - "The batch has expired." - ], - "description": "Output only. The state of the batch.", "readOnly": true, - "type": "string", "enum": [ "BATCH_STATE_UNSPECIFIED", "BATCH_STATE_PENDING", @@ -6132,851 +5698,1152 @@ "BATCH_STATE_FAILED", "BATCH_STATE_CANCELLED", "BATCH_STATE_EXPIRED" - ] - } - }, - "type": "object", - "description": "A resource representing a batch of `EmbedContent` requests." - }, - "EmbedContentRequest": { - "properties": { - "content": { - "description": "Required. The content to embed. Only the `parts.text` fields will be counted.", - "$ref": "#/components/schemas/Content" - }, - "taskType": { - "deprecated": true, - "x-enum-descriptions": [ - "Unset value, which will default to one of the other enum values.", - "Specifies the given text is a query in a search/retrieval setting.", - "Specifies the given text is a document from the corpus being searched.", - "Specifies the given text will be used for STS.", - "Specifies that the given text will be classified.", - "Specifies that the embeddings will be used for clustering.", - "Specifies that the given text will be used for question answering.", - "Specifies that the given text will be used for fact verification.", - "Specifies that the given text will be used for code retrieval." ], + "description": "Output only. The state of the batch.", "type": "string", - "enum": [ - "TASK_TYPE_UNSPECIFIED", - "RETRIEVAL_QUERY", - "RETRIEVAL_DOCUMENT", - "SEMANTIC_SIMILARITY", - "CLASSIFICATION", - "CLUSTERING", - "QUESTION_ANSWERING", - "FACT_VERIFICATION", - "CODE_RETRIEVAL_QUERY" - ], - "description": "Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`)." - }, - "embedContentConfig": { - "$ref": "#/components/schemas/EmbedContentConfig", - "description": "Optional. Configuration for the EmbedContent request." + "x-enum-descriptions": [ + "The batch state is unspecified.", + "The service is preparing to run the batch.", + "The batch is in progress.", + "The batch completed successfully.", + "The batch failed.", + "The batch has been cancelled.", + "The batch has expired." + ] }, "model": { - "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "type": "string" }, - "outputDimensionality": { - "format": "int32", - "description": "Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`).", - "deprecated": true, - "type": "integer" - }, - "title": { - "description": "Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval.", - "deprecated": true, - "type": "string" - } - }, - "type": "object", - "description": "Request containing the `Content` for the model to embed." - }, - "Corpus": { - "type": "object", - "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora.", - "properties": { "createTime": { - "format": "google-datetime", "readOnly": true, + "description": "Output only. The time at which the batch was created.", "type": "string", - "description": "Output only. The Timestamp of when the `Corpus` was created." + "format": "google-datetime" }, - "name": { - "description": "Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the \"corpora/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`", + "batchStats": { + "$ref": "#/components/schemas/BatchStats", "readOnly": true, - "type": "string" + "description": "Output only. Stats about the batch." }, - "displayName": { - "type": "string", - "description": "Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"" + "inputConfig": { + "description": "Required. Input configuration of the instances on which batch processing are performed.", + "$ref": "#/components/schemas/InputConfig" }, "updateTime": { - "readOnly": true, "type": "string", - "description": "Output only. The Timestamp of when the `Corpus` was last updated.", - "format": "google-datetime" + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The time at which the batch was last updated." + }, + "displayName": { + "description": "Required. The user-defined name of this batch.", + "type": "string" } - } + }, + "type": "object" }, - "Interval": { + "GroundingAttribution": { + "description": "Attribution for a source that contributed to an answer.", "properties": { - "startTime": { - "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.", - "type": "string", - "format": "google-datetime" + "sourceId": { + "description": "Output only. Identifier for the source contributing to this attribution.", + "readOnly": true, + "$ref": "#/components/schemas/AttributionSourceId" }, - "endTime": { - "type": "string", - "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", - "format": "google-datetime" + "content": { + "description": "Grounding source content that makes up this attribution.", + "$ref": "#/components/schemas/Content" } }, - "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.", "type": "object" }, - "ListDocumentsResponse": { + "ChunkingConfig": { + "properties": { + "whiteSpaceConfig": { + "description": "White space chunking configuration.", + "$ref": "#/components/schemas/WhiteSpaceConfig" + } + }, "type": "object", - "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.", + "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto" + }, + "Blob": { "properties": { - "documents": { + "mimeType": { + "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). //", + "type": "string" + }, + "data": { + "description": "Raw bytes for media formats.", + "type": "string", + "format": "byte" + } + }, + "type": "object", + "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field." + }, + "EmbeddingUsageMetadata": { + "properties": { + "promptTokenCount": { + "type": "integer", + "format": "int32", + "description": "Output only. Number of tokens in the prompt.", + "readOnly": true + }, + "promptTokenDetails": { + "description": "Output only. List of modalities that were processed in the request input.", + "readOnly": true, "items": { - "$ref": "#/components/schemas/Document" + "$ref": "#/components/schemas/ModalityTokenCount" }, - "description": "The returned `Document`s.", "type": "array" - }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + } + }, + "type": "object", + "description": "Metadata on the usage of the embedding request." + }, + "Content": { + "type": "object", + "properties": { + "role": { + "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset.", "type": "string" + }, + "parts": { + "type": "array", + "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.", + "items": { + "$ref": "#/components/schemas/Part" + } } - } + }, + "description": "The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn." }, - "ChunkingConfig": { + "Maps": { "type": "object", - "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto", "properties": { - "whiteSpaceConfig": { - "description": "White space chunking configuration.", - "$ref": "#/components/schemas/WhiteSpaceConfig" + "uri": { + "description": "URI reference of the place.", + "type": "string" + }, + "placeAnswerSources": { + "description": "Sources that provide answers about the features of a given place in Google Maps.", + "$ref": "#/components/schemas/PlaceAnswerSources" + }, + "text": { + "description": "Text description of the place answer.", + "type": "string" + }, + "title": { + "description": "Title of the place.", + "type": "string" + }, + "placeId": { + "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place.", + "type": "string" } - } + }, + "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place." }, - "FileSearch": { + "Status": { + "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).", "type": "object", - "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.", "properties": { - "topK": { - "type": "integer", - "description": "Optional. The number of semantic retrieval chunks to retrieve.", - "format": "int32" + "message": { + "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", + "type": "string" }, - "fileSearchStoreNames": { - "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`", - "type": "array", + "details": { "items": { - "type": "string" - } + "type": "object", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } + }, + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", + "type": "array" }, - "metadataFilter": { - "type": "string", - "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks." + "code": { + "description": "The status code, which should be an enum value of google.rpc.Code.", + "type": "integer", + "format": "int32" } } }, - "Operation": { + "FunctionResponse": { + "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction.", "properties": { - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "type": "object", - "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any." - }, - "done": { - "type": "boolean", - "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available." - }, "response": { - "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", "type": "object", + "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal.", "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." + "description": "Properties of the object." } }, - "error": { - "description": "The error result of the operation in case of failure or cancellation.", - "$ref": "#/components/schemas/Status" + "scheduling": { + "type": "string", + "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.", + "x-enum-descriptions": [ + "This value is unused.", + "Only add the result to the conversation context, do not interrupt or trigger generation.", + "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.", + "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output." + ], + "enum": [ + "SCHEDULING_UNSPECIFIED", + "SILENT", + "WHEN_IDLE", + "INTERRUPT" + ] + }, + "willContinue": { + "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`.", + "type": "boolean" + }, + "id": { + "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`.", + "type": "string" }, "name": { - "type": "string", - "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`." + "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.", + "type": "string" + }, + "parts": { + "items": { + "$ref": "#/components/schemas/FunctionResponsePart" + }, + "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", + "type": "array" } }, - "description": "This resource represents a long-running operation that is the result of a network API call.", "type": "object" }, - "SearchTypes": { - "description": "Different types of search that can be enabled on the GoogleSearch tool.", - "type": "object", + "Web": { "properties": { - "webSearch": { - "$ref": "#/components/schemas/WebSearch", - "description": "Optional. Enables web search. Only text results are returned." + "title": { + "description": "Output only. Title of the chunk.", + "readOnly": true, + "type": "string" }, - "imageSearch": { - "$ref": "#/components/schemas/ImageSearch", - "description": "Optional. Enables image search. Image bytes are returned." + "uri": { + "type": "string", + "description": "Output only. URI reference of the chunk.", + "readOnly": true } - } - }, - "ListOperationsResponse": { + }, "type": "object", - "description": "The response message for Operations.ListOperations.", + "description": "Chunk from the web." + }, + "FunctionCall": { + "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", "properties": { - "nextPageToken": { - "description": "The standard List next-page token.", + "id": { + "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`.", "type": "string" }, - "operations": { - "items": { - "$ref": "#/components/schemas/Operation" - }, - "description": "A list of operations that matches the specified filter in the request.", - "type": "array" + "name": { + "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.", + "type": "string" }, - "unreachable": { - "items": { - "type": "string" + "args": { + "description": "Optional. The function parameters and values in JSON object format.", + "additionalProperties": { + "description": "Properties of the object." }, - "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.", - "type": "array" + "type": "object" } - } + }, + "type": "object" }, - "GoogleSearch": { - "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", + "PrebuiltVoiceConfig": { + "description": "The configuration for the prebuilt speaker to use.", + "properties": { + "voiceName": { + "description": "The name of the preset voice to use.", + "type": "string" + } + }, + "type": "object" + }, + "Environment": { + "description": "An execution environment for an agent.", "type": "object", "properties": { - "timeRangeFilter": { - "$ref": "#/components/schemas/Interval", - "description": "Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa)." + "id": { + "readOnly": true, + "description": "Required. Output only. The ID of the environment.", + "type": "string" }, - "searchTypes": { - "$ref": "#/components/schemas/SearchTypes", - "description": "Optional. The set of search types to enable. If not set, web search is enabled by default." + "updated": { + "type": "string", + "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", + "readOnly": true + }, + "fileCount": { + "description": "Output only. The number of files in the environment, output only.", + "readOnly": true, + "type": "string", + "format": "int64" + }, + "created": { + "readOnly": true, + "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", + "type": "string" + }, + "status": { + "description": "Output only. The status of the environment container.", + "readOnly": true, + "enum": [ + "STATUS_UNSPECIFIED", + "ACTIVE", + "EXPIRED" + ], + "x-enum-descriptions": [ + "", + "", + "" + ], + "type": "string" + }, + "network_mode": { + "type": "string", + "description": "Network egress mode.", + "x-enum-descriptions": [ + "Default value. Unused.", + "All network egress is blocked." + ], + "enum": [ + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" + ] + }, + "sources": { + "items": { + "$ref": "#/components/schemas/Source" + }, + "description": "Sources to be mounted into the environment.", + "type": "array" + }, + "network_allowlist": { + "description": "Allow only specific domains.", + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + }, + "lastAccessed": { + "type": "string", + "readOnly": true, + "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." + }, + "sizeBytes": { + "description": "Output only. The total size of the environment files in bytes, output only.", + "readOnly": true, + "type": "string", + "format": "int64" } } }, - "RegisterFilesRequest": { + "FileData": { + "description": "URI based data.", "properties": { - "uris": { - "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.", - "type": "array", - "items": { - "type": "string" - } + "mimeType": { + "description": "Optional. The IANA standard MIME type of the source data.", + "type": "string" + }, + "fileUri": { + "description": "Required. URI.", + "type": "string" } }, - "type": "object", - "description": "Request for `RegisterFiles`." + "type": "object" }, - "Model": { + "ThinkingConfig": { "properties": { - "version": { - "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)", - "type": "string" - }, - "topP": { - "description": "For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model.", - "type": "number", - "format": "float" - }, - "thinking": { - "description": "Whether the model supports thinking.", + "includeThoughts": { + "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.", "type": "boolean" }, - "topK": { - "format": "int32", - "description": "For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter.", - "type": "integer" - }, - "displayName": { + "thinkingLevel": { "type": "string", - "description": "The human-readable name of the model. E.g. \"Gemini 1.5 Flash\". The name can be up to 128 characters long and can consist of any UTF-8 characters." + "description": "Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error.", + "x-enum-descriptions": [ + "Default value.", + "Little to no thinking.", + "Low thinking level.", + "Medium thinking level.", + "High thinking level." + ], + "enum": [ + "THINKING_LEVEL_UNSPECIFIED", + "MINIMAL", + "LOW", + "MEDIUM", + "HIGH" + ] }, - "inputTokenLimit": { - "format": "int32", + "thinkingBudget": { "type": "integer", - "description": "Maximum number of input tokens allowed for this model." - }, - "outputTokenLimit": { "format": "int32", - "type": "integer", - "description": "Maximum number of output tokens available for this model." - }, - "maxTemperature": { - "type": "number", - "description": "The maximum temperature this model can use.", - "format": "float" + "description": "The number of thoughts tokens that the model should generate." + } + }, + "type": "object", + "description": "Config for thinking features." + }, + "ImportFileRequest": { + "properties": { + "fileName": { + "description": "Required. The name of the `File` to import. Example: `files/abc-123`", + "type": "string" }, - "supportedGenerationMethods": { + "customMetadata": { "type": "array", - "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`.", + "description": "Custom metadata to be associated with the file.", "items": { - "type": "string" + "$ref": "#/components/schemas/CustomMetadata" } }, - "temperature": { - "description": "Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.", - "type": "number", - "format": "float" - }, - "description": { - "type": "string", - "description": "A short description of the model." - }, - "name": { - "type": "string", - "description": "Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * \"{base_model_id}-{version}\" Examples: * `models/gemini-1.5-flash-001`" - }, - "baseModelId": { - "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`", - "type": "string" + "chunkingConfig": { + "description": "Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters.", + "$ref": "#/components/schemas/ChunkingConfig" } }, "type": "object", - "description": "Information about a Generative Language Model." + "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`." }, - "CustomMetadata": { - "description": "User provided metadata stored as key-value pairs.", + "EnvironmentNetworkEgressAllowlist": { "type": "object", "properties": { - "stringValue": { - "type": "string", - "description": "The string value of the metadata to store." - }, - "key": { - "type": "string", - "description": "Required. The key of the metadata to store." - }, - "numericValue": { - "description": "The numeric value of the metadata to store.", - "type": "number", - "format": "float" - }, - "stringListValue": { - "$ref": "#/components/schemas/StringList", - "description": "The StringList value of the metadata to store." + "allowlist": { + "description": "List of allowed domains and their configurations.", + "items": { + "$ref": "#/components/schemas/EgressRule" + }, + "type": "array" + } + }, + "description": "Network egress configuration for the environment." + }, + "CreateFileResponse": { + "description": "Response for `CreateFile`.", + "type": "object", + "properties": { + "file": { + "description": "Metadata for the created file.", + "$ref": "#/components/schemas/File" } } }, - "ListTunedModelsResponse": { - "description": "Response from `ListTunedModels` containing a paginated list of Models.", + "AutomaticActivityDetection": { + "description": "Configures automatic detection of activity.", "type": "object", "properties": { - "tunedModels": { - "type": "array", - "description": "The returned Models.", - "items": { - "$ref": "#/components/schemas/TunedModel" - } + "startOfSpeechSensitivity": { + "type": "string", + "enum": [ + "START_SENSITIVITY_UNSPECIFIED", + "START_SENSITIVITY_HIGH", + "START_SENSITIVITY_LOW" + ], + "description": "Optional. Determines how likely speech is to be detected.", + "x-enum-descriptions": [ + "The default is START_SENSITIVITY_HIGH.", + "Automatic detection will detect the start of speech more often.", + "Automatic detection will detect the start of speech less often." + ] }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "disabled": { + "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals.", + "type": "boolean" + }, + "endOfSpeechSensitivity": { + "description": "Optional. Determines how likely detected speech is ended.", + "x-enum-descriptions": [ + "The default is END_SENSITIVITY_HIGH.", + "Automatic detection ends speech more often.", + "Automatic detection ends speech less often." + ], + "enum": [ + "END_SENSITIVITY_UNSPECIFIED", + "END_SENSITIVITY_HIGH", + "END_SENSITIVITY_LOW" + ], "type": "string" + }, + "silenceDurationMs": { + "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.", + "type": "integer", + "format": "int32" + }, + "prefixPaddingMs": { + "type": "integer", + "format": "int32", + "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives." } } }, - "ContentEmbedding": { + "LatLng": { + "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.", + "type": "object", "properties": { - "values": { - "items": { - "type": "number", - "format": "float" - }, - "type": "array", - "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls." + "longitude": { + "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", + "type": "number", + "format": "double" }, - "shape": { - "items": { - "type": "integer", - "format": "int32" - }, - "type": "array", - "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048])." + "latitude": { + "type": "number", + "format": "double", + "description": "The latitude in degrees. It must be in the range [-90.0, +90.0]." } - }, - "type": "object", - "description": "A list of floats representing an embedding." + } }, - "InputConfig": { - "description": "Configures the input to the batch request.", + "GoogleMaps": { + "description": "The GoogleMaps Tool that provides geospatial context for the user's query.", "type": "object", "properties": { - "requests": { - "$ref": "#/components/schemas/InlinedRequests", - "description": "The requests to be processed in the batch." - }, - "fileName": { - "type": "string", - "description": "The name of the `File` containing the input requests." + "enableWidget": { + "description": "Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response.", + "type": "boolean" } } }, - "FunctionResponseBlob": { - "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.", + "ExecutableCode": { "type": "object", "properties": { - "mimeType": { - "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats).", + "language": { + "enum": [ + "LANGUAGE_UNSPECIFIED", + "PYTHON" + ], + "description": "Required. Programming language of the `code`.", + "x-enum-descriptions": [ + "Unspecified language. This value should not be used.", + "Python >= 3.10, with numpy and simpy available. Python is the default language." + ], "type": "string" }, - "data": { - "format": "byte", - "description": "Raw bytes for media formats.", + "id": { + "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.", + "type": "string" + }, + "code": { + "description": "Required. The code to be executed.", "type": "string" } - } + }, + "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated." }, - "Source": { + "EgressRule": { + "description": "A network egress rule that controls which external domains the environment is allowed to reach. Each rule identifies a target domain and, optionally, a set of HTTP headers to inject into every matching outbound request.", "properties": { - "content": { - "type": "string", - "description": "The inline content if `type` is `INLINE`." - }, - "encoding": { - "type": "string", - "description": "Optional encoding for inline content (e.g. `base64`)." - }, - "source": { - "description": "The source of the environment. For GCS, this is the GCS path. For GitHub, this is the GitHub path.", - "type": "string" + "transform": { + "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").", + "additionalProperties": { + "type": "string" + }, + "type": "object" }, - "target": { - "description": "Where the source should appear in the environment.", + "domain": { + "description": "The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains.", "type": "string" - }, - "type": { - "type": "string", - "x-enum-descriptions": [ - "", - "A GCS bucket.", - "Inline content.", - "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)." - ], - "enum": [ - "TYPE_UNSPECIFIED", - "GCS", - "INLINE", - "REPOSITORY" - ] } }, - "description": "A source to be mounted into the environment.", "type": "object" }, - "GenerationConfig": { - "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.", + "RetrievedContext": { + "description": "Chunk from context retrieved by the file search tool.", "type": "object", "properties": { - "presencePenalty": { - "format": "float", - "type": "number", - "description": "Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary." - }, - "responseModalities": { - "items": { - "type": "string", - "x-enum-descriptions": [ - "Default value.", - "Indicates the model should return text.", - "Indicates the model should return images.", - "Indicates the model should return audio.", - "Indicates the model should return video." - ], - "enum": [ - "MODALITY_UNSPECIFIED", - "TEXT", - "IMAGE", - "AUDIO", - "VIDEO" - ] - }, - "description": "Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text.", - "type": "array" - }, - "topK": { - "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests.", - "type": "integer", - "format": "int32" - }, - "speechConfig": { - "$ref": "#/components/schemas/SpeechConfig", - "description": "Optional. The speech generation config." - }, - "responseLogprobs": { - "type": "boolean", - "description": "Optional. If true, export the logprobs results in response." + "title": { + "description": "Optional. Title of the document.", + "type": "string" }, - "thinkingConfig": { - "$ref": "#/components/schemas/ThinkingConfig", - "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking." + "text": { + "description": "Optional. Text of the chunk.", + "type": "string" }, - "maxOutputTokens": { - "format": "int32", - "type": "integer", - "description": "Optional. The maximum number of tokens to include in a response candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function." + "customMetadata": { + "type": "array", + "description": "Optional. User-provided metadata about the retrieved context.", + "items": { + "$ref": "#/components/schemas/GroundingChunkCustomMetadata" + } }, - "responseSchema": { - "deprecated": true, - "description": "Optional. Output schema of the generated candidate text. Schemas must be a subset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema) and can be objects, primitives or arrays. If set, a compatible `response_mime_type` must also be set. Compatible MIME types: `application/json`: Schema for JSON response. Refer to the [JSON text generation guide](https://ai.google.dev/gemini-api/docs/json-mode) for more details.", - "$ref": "#/components/schemas/Schema" + "mediaId": { + "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}", + "type": "string" }, - "seed": { + "pageNumber": { "type": "integer", - "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.", - "format": "int32" + "format": "int32", + "description": "Optional. Page number of the retrieved context, if applicable." }, - "topP": { - "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (nucleus) sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests.", - "type": "number", - "format": "float" + "uri": { + "description": "Optional. URI reference of the semantic retrieval document.", + "type": "string" }, - "enableEnhancedCivicAnswers": { - "type": "boolean", - "description": "Optional. Enables enhanced civic answers. It may not be available for all models." + "fileSearchStore": { + "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`", + "type": "string" + } + } + }, + "StreamableHttpTransport": { + "description": "A transport that can stream HTTP requests and responses. Next ID: 6", + "properties": { + "timeout": { + "description": "HTTP timeout for regular operations.", + "type": "string", + "format": "google-duration" }, - "frequencyPenalty": { - "format": "float", - "description": "Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit.", - "type": "number" + "sseReadTimeout": { + "type": "string", + "format": "google-duration", + "description": "Timeout for SSE read operations." }, - "stopSequences": { - "items": { + "url": { + "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"", + "type": "string" + }, + "headers": { + "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", + "additionalProperties": { "type": "string" }, - "description": "Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a `stop_sequence`. The stop sequence will not be included as part of the response.", - "type": "array" - }, - "logprobs": { - "format": "int32", - "type": "integer", - "description": "Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]." - }, - "audioTranscriptionConfig": { - "description": "Optional. Config for audio transcription (speech recognition).", - "$ref": "#/components/schemas/AudioTranscriptionConfig" - }, - "translationConfig": { - "description": "Optional. Config for translation.", - "$ref": "#/components/schemas/TranslationConfig" + "type": "object" }, - "temperature": { - "format": "float", - "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0].", - "type": "number" + "terminateOnClose": { + "description": "Whether to close the client session when the transport closes.", + "type": "boolean" + } + }, + "type": "object" + }, + "ToolCall": { + "description": "A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`.", + "type": "object", + "properties": { + "id": { + "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.", + "type": "string" }, - "enableAffectiveDialog": { - "type": "boolean", - "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly." + "toolName": { + "description": "Optional. The name of the tool that was called.", + "type": "string" }, - "mediaResolution": { - "description": "Optional. If specified, the media resolution specified will be used.", + "toolType": { "type": "string", + "description": "Required. The type of tool that was called.", "x-enum-descriptions": [ - "Media resolution has not been set.", - "Media resolution set to low (64 tokens).", - "Media resolution set to medium (256 tokens).", - "Media resolution set to high (zoomed reframing with 256 tokens)." + "Unspecified tool type.", + "Google search tool, maps to Tool.google_search.search_types.web_search.", + "Image search tool, maps to Tool.google_search.search_types.image_search.", + "URL context tool, maps to Tool.url_context.", + "Google maps tool, maps to Tool.google_maps.", + "File search tool, maps to Tool.file_search." ], "enum": [ - "MEDIA_RESOLUTION_UNSPECIFIED", - "MEDIA_RESOLUTION_LOW", - "MEDIA_RESOLUTION_MEDIUM", - "MEDIA_RESOLUTION_HIGH" + "TOOL_TYPE_UNSPECIFIED", + "GOOGLE_SEARCH_WEB", + "GOOGLE_SEARCH_IMAGE", + "URL_CONTEXT", + "GOOGLE_MAPS", + "FILE_SEARCH" ] }, - "responseMimeType": { - "type": "string", - "description": "Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types." + "args": { + "type": "object", + "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}", + "additionalProperties": { + "description": "Properties of the object." + } + } + } + }, + "HistoryConfig": { + "type": "object", + "properties": { + "initialHistoryInClientContent": { + "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`.", + "type": "boolean" + } + }, + "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages." + }, + "AudioTranscriptionConfig": { + "description": "The audio transcription configuration.", + "properties": { + "wordTimestamp": { + "description": "Optional. Configures word-level timestamp generation.", + "type": "boolean" }, - "responseJsonSchema": { - "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." + "languageAuto": { + "$ref": "#/components/schemas/LanguageAuto", + "description": "Optional. The model will detect the language automatically.", + "deprecated": true }, - "candidateCount": { - "format": "int32", - "type": "integer", - "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)" + "languageHints": { + "deprecated": true, + "description": "Optional. Specifies one or more languages in the audio.", + "$ref": "#/components/schemas/LanguageHints" }, - "imageConfig": { - "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options.", - "$ref": "#/components/schemas/ImageConfig" + "customVocabulary": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon)." }, - "responseFormat": { - "$ref": "#/components/schemas/ResponseFormatConfig", - "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure." + "languageCodes": { + "items": { + "type": "string" + }, + "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.", + "type": "array" + }, + "adaptationPhrases": { + "type": "array", + "deprecated": true, + "items": { + "type": "string" + }, + "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms." + }, + "diarization": { + "description": "Optional. Configures speaker diarization.", + "type": "boolean" } - } + }, + "type": "object" }, - "Maps": { + "SessionResumptionConfig": { "properties": { - "uri": { - "description": "URI reference of the place.", + "handle": { + "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections.", + "type": "string" + } + }, + "type": "object", + "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages." + }, + "UploadToFileSearchStoreRequest": { + "properties": { + "mimeType": { + "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.", "type": "string" }, - "placeAnswerSources": { - "description": "Sources that provide answers about the features of a given place in Google Maps.", - "$ref": "#/components/schemas/PlaceAnswerSources" - }, - "title": { - "type": "string", - "description": "Title of the place." + "chunkingConfig": { + "description": "Optional. Config for telling the service how to chunk the data. If not provided, the service will use default parameters.", + "$ref": "#/components/schemas/ChunkingConfig" }, - "placeId": { - "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place.", + "displayName": { + "description": "Optional. Display name of the created document.", "type": "string" }, - "text": { - "description": "Text description of the place answer.", - "type": "string" + "customMetadata": { + "type": "array", + "description": "Custom metadata to be associated with the data.", + "items": { + "$ref": "#/components/schemas/CustomMetadata" + } } }, "type": "object", - "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place." + "description": "Request for `UploadToFileSearchStore`." }, - "Part": { - "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.", + "File": { "type": "object", "properties": { - "text": { - "description": "Inline text.", - "type": "string" + "sizeBytes": { + "type": "string", + "format": "int64", + "readOnly": true, + "description": "Output only. Size of the file in bytes." }, - "inlineData": { - "$ref": "#/components/schemas/Blob", - "description": "Inline media bytes." + "createTime": { + "description": "Output only. The timestamp of when the `File` was created.", + "readOnly": true, + "type": "string", + "format": "google-datetime" }, - "executableCode": { - "description": "Code generated by the model that is meant to be executed.", - "$ref": "#/components/schemas/ExecutableCode" + "state": { + "type": "string", + "x-enum-descriptions": [ + "The default value. This value is used if the state is omitted.", + "File is being processed and cannot be used for inference yet.", + "File is processed and available for inference.", + "File failed processing." + ], + "readOnly": true, + "enum": [ + "STATE_UNSPECIFIED", + "PROCESSING", + "ACTIVE", + "FAILED" + ], + "description": "Output only. Processing state of the File." }, - "codeExecutionResult": { - "$ref": "#/components/schemas/CodeExecutionResult", - "description": "Result of executing the `ExecutableCode`." + "videoMetadata": { + "$ref": "#/components/schemas/VideoFileMetadata", + "readOnly": true, + "description": "Output only. Metadata for a video." }, - "thought": { - "type": "boolean", - "description": "Optional. Indicates if the part is thought from the model." + "error": { + "readOnly": true, + "description": "Output only. Error status if File processing failed.", + "$ref": "#/components/schemas/Status" }, - "functionCall": { - "$ref": "#/components/schemas/FunctionCall", - "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values." + "expirationTime": { + "type": "string", + "format": "google-datetime", + "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.", + "readOnly": true + }, + "sha256Hash": { + "type": "string", + "format": "byte", + "readOnly": true, + "description": "Output only. SHA-256 hash of the uploaded bytes." + }, + "source": { + "type": "string", + "enum": [ + "SOURCE_UNSPECIFIED", + "UPLOADED", + "GENERATED", + "REGISTERED" + ], + "description": "Source of the File.", + "x-enum-descriptions": [ + "Used if source is not specified.", + "Indicates the file is uploaded by the user.", + "Indicates the file is generated by Google.", + "Indicates the file is a registered, i.e. a Google Cloud Storage file." + ] }, - "functionResponse": { - "$ref": "#/components/schemas/FunctionResponse", - "description": "The result output of a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model." + "name": { + "description": "Immutable. Identifier. The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`", + "type": "string" }, - "thoughtSignature": { - "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", + "downloadUri": { "type": "string", - "format": "byte" - }, - "toolCall": { - "$ref": "#/components/schemas/ToolCall", - "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API." - }, - "videoMetadata": { - "$ref": "#/components/schemas/VideoMetadata", - "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data." + "readOnly": true, + "description": "Output only. The download uri of the `File`." }, - "toolResponse": { - "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`.", - "$ref": "#/components/schemas/ToolResponse" + "updateTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The timestamp of when the `File` was last updated." }, - "mediaResolution": { - "description": "Optional. Media resolution for the input media.", - "$ref": "#/components/schemas/V1mainMediaResolution" + "displayName": { + "description": "Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: \"Welcome Image\"", + "type": "string" }, - "partMetadata": { - "type": "object", - "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams.", - "additionalProperties": { - "description": "Properties of the object." - } + "uri": { + "type": "string", + "readOnly": true, + "description": "Output only. The uri of the `File`." }, - "fileData": { - "description": "URI based data.", - "$ref": "#/components/schemas/FileData" + "mimeType": { + "type": "string", + "description": "Output only. MIME type of the file.", + "readOnly": true } - } + }, + "description": "A file uploaded to the API. Next ID: 15" }, - "FunctionCall": { + "McpServer": { "properties": { - "id": { - "type": "string", - "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`." + "streamableHttpTransport": { + "description": "A transport that can stream HTTP requests and responses.", + "$ref": "#/components/schemas/StreamableHttpTransport" }, "name": { - "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 128.", + "description": "The name of the MCPServer.", + "type": "string" + } + }, + "type": "object", + "description": "A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 6" + }, + "TunedModelSource": { + "properties": { + "tunedModel": { + "description": "Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model`", "type": "string" }, - "args": { - "description": "Optional. The function parameters and values in JSON object format.", - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - } + "baseModel": { + "type": "string", + "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`", + "readOnly": true } }, - "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", - "type": "object" + "type": "object", + "description": "Tuned model as a source for training a new model." }, - "GeneratedFile": { - "description": "A file generated on behalf of a user.", + "SafetyRating": { "type": "object", "properties": { - "mimeType": { - "description": "MIME type of the generatedFile.", + "category": { + "description": "Required. The category for this rating.", + "enum": [ + "HARM_CATEGORY_UNSPECIFIED", + "HARM_CATEGORY_DEROGATORY", + "HARM_CATEGORY_TOXICITY", + "HARM_CATEGORY_VIOLENCE", + "HARM_CATEGORY_SEXUAL", + "HARM_CATEGORY_MEDICAL", + "HARM_CATEGORY_DANGEROUS", + "HARM_CATEGORY_HARASSMENT", + "HARM_CATEGORY_HATE_SPEECH", + "HARM_CATEGORY_SEXUALLY_EXPLICIT", + "HARM_CATEGORY_DANGEROUS_CONTENT", + "HARM_CATEGORY_CIVIC_INTEGRITY", + "HARM_CATEGORY_JAILBREAK" + ], + "x-enum-descriptions": [ + "Category is unspecified.", + "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.", + "**PaLM** - Content that is rude, disrespectful, or profane.", + "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.", + "**PaLM** - Contains references to sexual acts or other lewd content.", + "**PaLM** - Promotes unchecked medical advice.", + "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.", + "**Gemini** - Harassment content.", + "**Gemini** - Hate speech and content.", + "**Gemini** - Sexually explicit content.", + "**Gemini** - Dangerous content.", + "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", + "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." + ], + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ], "type": "string" }, - "error": { - "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state.", - "$ref": "#/components/schemas/Status" - }, - "name": { - "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`", - "type": "string" + "blocked": { + "description": "Was this content blocked because of this rating?", + "type": "boolean" }, - "state": { - "description": "Output only. The state of the GeneratedFile.", - "readOnly": true, - "type": "string", + "probability": { "enum": [ - "STATE_UNSPECIFIED", - "GENERATING", - "GENERATED", - "FAILED" + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" ], + "description": "Required. The probability of harm for this content.", "x-enum-descriptions": [ - "The default value. This value is used if the state is omitted.", - "Being generated.", - "Generated and is ready for download.", - "Failed to generate the GeneratedFile." - ] + "Probability is unspecified.", + "Content has a negligible chance of being unsafe.", + "Content has a low chance of being unsafe.", + "Content has a medium chance of being unsafe.", + "Content has a high chance of being unsafe." + ], + "type": "string" } - } + }, + "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here." }, - "ListFileSearchStoresResponse": { + "GenerateContentBatchOutput": { + "type": "object", "properties": { - "fileSearchStores": { - "description": "The returned rag_stores.", + "responsesFile": { + "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.", + "readOnly": true, + "type": "string" + }, + "inlinedResponses": { + "$ref": "#/components/schemas/InlinedResponses", + "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.", + "readOnly": true + } + }, + "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field." + }, + "InlinedResponses": { + "properties": { + "inlinedResponses": { "type": "array", + "readOnly": true, "items": { - "$ref": "#/components/schemas/FileSearchStore" - } + "$ref": "#/components/schemas/InlinedResponse" + }, + "description": "Output only. The responses to the requests in the batch." + } + }, + "type": "object", + "description": "The responses to the requests in the batch." + }, + "UrlMetadata": { + "description": "Context of the a single url retrieval.", + "properties": { + "urlRetrievalStatus": { + "type": "string", + "description": "Status of the url retrieval.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "Url retrieval is successful.", + "Url retrieval is failed due to error.", + "Url retrieval is failed because the content is behind paywall.", + "Url retrieval is failed because the content is unsafe." + ], + "enum": [ + "URL_RETRIEVAL_STATUS_UNSPECIFIED", + "URL_RETRIEVAL_STATUS_SUCCESS", + "URL_RETRIEVAL_STATUS_ERROR", + "URL_RETRIEVAL_STATUS_PAYWALL", + "URL_RETRIEVAL_STATUS_UNSAFE" + ] }, - "nextPageToken": { - "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "retrievedUrl": { + "description": "Retrieved url by the tool.", "type": "string" } }, - "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.", "type": "object" }, - "GoogleAiGenerativelanguageV1betaSegment": { - "type": "object", - "description": "Segment of the content.", + "GoogleAiGenerativelanguageV1betaGroundingSupport": { "properties": { - "endIndex": { - "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", - "type": "integer", - "format": "int32" + "renderedParts": { + "description": "Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.", + "readOnly": true, + "items": { + "type": "integer", + "format": "int32" + }, + "type": "array" }, - "partIndex": { - "type": "integer", - "description": "The index of a Part object within its parent Content object.", - "format": "int32" + "confidenceScores": { + "type": "array", + "items": { + "type": "number", + "format": "float" + }, + "description": "Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices." }, - "startIndex": { - "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.", - "type": "integer", - "format": "int32" + "segment": { + "description": "Segment of the content this support belongs to.", + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment" + }, + "groundingChunkIndices": { + "items": { + "type": "integer", + "format": "int32" + }, + "description": "Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order).", + "type": "array" + } + }, + "type": "object", + "description": "Grounding support." + }, + "ListCorporaResponse": { + "properties": { + "corpora": { + "description": "The returned corpora.", + "items": { + "$ref": "#/components/schemas/Corpus" + }, + "type": "array" }, - "text": { - "description": "The text corresponding to the segment from the response.", + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", "type": "string" } - } + }, + "type": "object", + "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`." }, - "BidiGenerateContentSetup": { - "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages.", + "FunctionResponseBlob": { + "properties": { + "mimeType": { + "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats).", + "type": "string" + }, + "data": { + "description": "Raw bytes for media formats.", + "type": "string", + "format": "byte" + } + }, "type": "object", + "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field." + }, + "AuthToken": { "properties": { - "model": { + "newSessionExpireTime": { + "description": "Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.", "type": "string", - "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`" - }, - "sessionResumption": { - "$ref": "#/components/schemas/SessionResumptionConfig", - "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages." - }, - "contextWindowCompression": { - "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length.", - "$ref": "#/components/schemas/ContextWindowCompressionConfig" - }, - "historyConfig": { - "$ref": "#/components/schemas/HistoryConfig", - "description": "Optional. Configures the exchange of history between the client and the server." + "format": "google-datetime" }, - "generationConfig": { - "$ref": "#/components/schemas/GenerationConfig", - "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`" + "fieldMask": { + "type": "string", + "format": "google-fieldmask", + "description": "Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection." }, - "systemInstruction": { - "$ref": "#/components/schemas/Content", - "description": "Optional. The user provided system instructions for the model. Note: Only text should be used in parts and content in each part will be in a separate paragraph." + "interactionId": { + "description": "Optional. Input only. Immutable. The interaction ID that this token is scoped to. Specific to the Live Interactions API.", + "type": "string" }, - "outputAudioTranscription": { - "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured.", - "$ref": "#/components/schemas/AudioTranscriptionConfig" + "uses": { + "description": "Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.", + "type": "integer", + "format": "int32" }, - "tools": { - "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.", - "type": "array", - "items": { - "$ref": "#/components/schemas/Tool" - } + "bidiGenerateContentSetup": { + "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`.", + "$ref": "#/components/schemas/BidiGenerateContentSetup" }, - "realtimeInputConfig": { - "$ref": "#/components/schemas/RealtimeInputConfig", - "description": "Optional. Configures the handling of realtime input." + "expireTime": { + "description": "Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future.", + "type": "string", + "format": "google-datetime" }, - "inputAudioTranscription": { - "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured.", - "$ref": "#/components/schemas/AudioTranscriptionConfig" + "name": { + "type": "string", + "description": "Output only. Identifier. The token itself.", + "readOnly": true } - } + }, + "type": "object", + "description": "A request to create an ephemeral authentication token." + }, + "Dataset": { + "properties": { + "examples": { + "description": "Optional. Inline examples with simple input/output text.", + "$ref": "#/components/schemas/TuningExamples" + } + }, + "type": "object", + "description": "Dataset for training or validation." }, "ToolResponse": { "description": "The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`.", "type": "object", "properties": { - "response": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Optional. The tool response.", - "type": "object" - }, "id": { "description": "Optional. The identifier of the tool call this response is for.", "type": "string" }, "toolType": { "type": "string", + "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.", "x-enum-descriptions": [ "Unspecified tool type.", "Google search tool, maps to Tool.google_search.search_types.web_search.", @@ -6992,609 +6859,742 @@ "URL_CONTEXT", "GOOGLE_MAPS", "FILE_SEARCH" - ], - "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`." - } - } - }, - "StreamableHttpTransport": { - "type": "object", - "description": "A transport that can stream HTTP requests and responses. Next ID: 6", - "properties": { - "timeout": { - "format": "google-duration", - "description": "HTTP timeout for regular operations.", - "type": "string" - }, - "terminateOnClose": { - "type": "boolean", - "description": "Whether to close the client session when the transport closes." - }, - "url": { - "type": "string", - "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"" - }, - "sseReadTimeout": { - "type": "string", - "description": "Timeout for SSE read operations.", - "format": "google-duration" + ] }, - "headers": { + "response": { + "description": "Optional. The tool response.", "additionalProperties": { - "type": "string" + "description": "Properties of the object." }, - "type": "object", - "description": "Optional: Fields for authentication headers, timeouts, etc., if needed." + "type": "object" } } }, - "GroundingChunkStringList": { - "description": "A list of string values.", + "CountTokensRequest": { + "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.", "type": "object", "properties": { - "values": { - "description": "The string values of the list.", - "type": "array", + "generateContentRequest": { + "description": "Optional. The overall input given to the `Model`. This includes the prompt as well as other model steering information like [system instructions](https://ai.google.dev/gemini-api/docs/system-instructions), and/or function declarations for [function calling](https://ai.google.dev/gemini-api/docs/function-calling). `Model`s/`Content`s and `generate_content_request`s are mutually exclusive. You can either send `Model` + `Content`s or a `generate_content_request`, but never both.", + "$ref": "#/components/schemas/GenerateContentRequest" + }, + "contents": { "items": { - "type": "string" - } + "$ref": "#/components/schemas/Content" + }, + "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.", + "type": "array" } } }, "CodeExecution": { - "properties": {}, "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool.", + "properties": {}, "type": "object" }, - "BatchEmbedContentsResponse": { - "type": "object", - "description": "The response to a `BatchEmbedContentsRequest`.", + "ListFilesResponse": { + "description": "Response for `ListFiles`.", "properties": { - "usageMetadata": { - "$ref": "#/components/schemas/EmbeddingUsageMetadata", - "description": "Output only. The usage metadata for the request.", - "readOnly": true - }, - "embeddings": { + "files": { "items": { - "$ref": "#/components/schemas/ContentEmbedding" + "$ref": "#/components/schemas/File" }, - "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.", - "readOnly": true, + "description": "The list of `File`s.", "type": "array" + }, + "nextPageToken": { + "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call.", + "type": "string" } - } + }, + "type": "object" }, - "CreateEnvironmentRequest": { - "type": "object", - "description": "Request for `CreateEnvironment`.", + "StringList": { + "description": "User provided string values assigned to a single metadata key.", "properties": { - "networkMode": { - "description": "Network egress mode.", - "type": "string", - "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." - ], - "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" - ] - }, - "networkAllowlist": { - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist", - "description": "Allow only specific domains." - }, - "sources": { + "values": { "items": { - "$ref": "#/components/schemas/Source" + "type": "string" }, - "description": "Sources to be mounted into the environment.", + "description": "The string values of the metadata to store.", "type": "array" } + }, + "type": "object" + }, + "ContextWindowCompressionConfig": { + "description": "Enables context window compression \u2014 a mechanism for managing the model's context window so that it does not exceed a given length.", + "properties": { + "slidingWindow": { + "description": "A sliding-window mechanism.", + "$ref": "#/components/schemas/SlidingWindow" + }, + "triggerTokens": { + "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response.", + "type": "string", + "format": "int64" + } + }, + "type": "object" + }, + "AsyncBatchEmbedContentRequest": { + "properties": { + "batch": { + "description": "Required. The batch to create.", + "$ref": "#/components/schemas/EmbedContentBatch" + } + }, + "type": "object", + "description": "Request for an `AsyncBatchEmbedContent` operation." + }, + "GoogleSearchRetrieval": { + "description": "Tool to retrieve public web data for grounding, powered by Google.", + "properties": { + "dynamicRetrievalConfig": { + "description": "Specifies the dynamic retrieval configuration for the given source.", + "$ref": "#/components/schemas/DynamicRetrievalConfig" + } + }, + "type": "object" + }, + "RetrievalConfig": { + "description": "Retrieval config.", + "type": "object", + "properties": { + "latLng": { + "description": "Optional. The location of the user.", + "$ref": "#/components/schemas/LatLng" + }, + "languageCode": { + "description": "Optional. The language code of the user. Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).", + "type": "string" + } } }, - "ToolConfig": { - "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.", + "EmbedContentRequest": { + "description": "Request containing the `Content` for the model to embed.", "type": "object", "properties": { - "retrievalConfig": { - "$ref": "#/components/schemas/RetrievalConfig", - "description": "Optional. Retrieval config." + "outputDimensionality": { + "type": "integer", + "format": "int32", + "deprecated": true, + "description": "Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024 only. You cannot set this value if using the earlier model (`models/embedding-001`)." + }, + "title": { + "deprecated": true, + "description": "Optional. Deprecated: Please use EmbedContentConfig.title instead. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval.", + "type": "string" + }, + "model": { + "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", + "type": "string" + }, + "content": { + "description": "Required. The content to embed. Only the `parts.text` fields will be counted.", + "$ref": "#/components/schemas/Content" }, - "functionCallingConfig": { - "$ref": "#/components/schemas/FunctionCallingConfig", - "description": "Optional. Function calling config." + "embedContentConfig": { + "description": "Optional. Configuration for the EmbedContent request.", + "$ref": "#/components/schemas/EmbedContentConfig" }, - "includeServerSideToolInvocations": { - "type": "boolean", - "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions." + "taskType": { + "deprecated": true, + "enum": [ + "TASK_TYPE_UNSPECIFIED", + "RETRIEVAL_QUERY", + "RETRIEVAL_DOCUMENT", + "SEMANTIC_SIMILARITY", + "CLASSIFICATION", + "CLUSTERING", + "QUESTION_ANSWERING", + "FACT_VERIFICATION", + "CODE_RETRIEVAL_QUERY" + ], + "description": "Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`).", + "type": "string", + "x-enum-descriptions": [ + "Unset value, which will default to one of the other enum values.", + "Specifies the given text is a query in a search/retrieval setting.", + "Specifies the given text is a document from the corpus being searched.", + "Specifies the given text will be used for STS.", + "Specifies that the given text will be classified.", + "Specifies that the embeddings will be used for clustering.", + "Specifies that the given text will be used for question answering.", + "Specifies that the given text will be used for fact verification.", + "Specifies that the given text will be used for code retrieval." + ] } } }, - "SemanticRetrieverChunk": { + "Candidate": { "type": "object", - "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.", "properties": { - "source": { + "content": { + "$ref": "#/components/schemas/Content", "readOnly": true, - "type": "string", - "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`" + "description": "Output only. Generated content returned from the model." }, - "chunk": { - "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`", - "readOnly": true, - "type": "string" - } - } - }, - "Content": { - "type": "object", - "description": "The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.", - "properties": { - "parts": { - "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.", + "safetyRatings": { "type": "array", "items": { - "$ref": "#/components/schemas/Part" - } + "$ref": "#/components/schemas/SafetyRating" + }, + "description": "List of ratings for the safety of a response candidate. There is at most one rating per category." }, - "role": { - "type": "string", - "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset." - } - } - }, - "CreateFileRequest": { - "description": "Request for `CreateFile`.", - "type": "object", - "properties": { - "file": { - "$ref": "#/components/schemas/File", - "description": "Optional. Metadata for the file to create." - } - } - }, - "GenerateContentBatch": { - "description": "A resource representing a batch of `GenerateContent` requests.", - "type": "object", - "properties": { - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "type": "string" + "urlContextMetadata": { + "$ref": "#/components/schemas/UrlContextMetadata", + "description": "Output only. Metadata related to url context retrieval tool.", + "readOnly": true }, - "inputConfig": { - "description": "Required. Input configuration of the instances on which batch processing are performed.", - "$ref": "#/components/schemas/InputConfig" + "finishMessage": { + "type": "string", + "readOnly": true, + "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set." }, - "output": { + "logprobsResult": { "readOnly": true, - "description": "Output only. The output of the batch request.", - "$ref": "#/components/schemas/GenerateContentBatchOutput" + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "$ref": "#/components/schemas/LogprobsResult" }, - "state": { - "description": "Output only. The state of the batch.", + "citationMetadata": { + "$ref": "#/components/schemas/CitationMetadata", + "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data.", + "readOnly": true + }, + "finishReason": { + "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", "readOnly": true, - "type": "string", "enum": [ - "BATCH_STATE_UNSPECIFIED", - "BATCH_STATE_PENDING", - "BATCH_STATE_RUNNING", - "BATCH_STATE_SUCCEEDED", - "BATCH_STATE_FAILED", - "BATCH_STATE_CANCELLED", - "BATCH_STATE_EXPIRED" + "FINISH_REASON_UNSPECIFIED", + "STOP", + "MAX_TOKENS", + "SAFETY", + "RECITATION", + "LANGUAGE", + "OTHER", + "BLOCKLIST", + "PROHIBITED_CONTENT", + "SPII", + "MALFORMED_FUNCTION_CALL", + "IMAGE_SAFETY", + "IMAGE_PROHIBITED_CONTENT", + "IMAGE_OTHER", + "NO_IMAGE", + "IMAGE_RECITATION", + "UNEXPECTED_TOOL_CALL", + "TOO_MANY_TOOL_CALLS", + "MISSING_THOUGHT_SIGNATURE", + "MALFORMED_RESPONSE", + "ESCALATION" ], + "type": "string", "x-enum-descriptions": [ - "The batch state is unspecified.", - "The service is preparing to run the batch.", - "The batch is in progress.", - "The batch completed successfully.", - "The batch failed.", - "The batch has been cancelled.", - "The batch has expired." + "Default value. This value is unused.", + "Natural stop point of the model or provided stop sequence.", + "The maximum number of tokens as specified in the request was reached.", + "The response candidate content was flagged for safety reasons.", + "The response candidate content was flagged for recitation reasons.", + "The response candidate content was flagged for using an unsupported language.", + "Unknown reason.", + "Token generation stopped because the content contains forbidden terms.", + "Token generation stopped for potentially containing prohibited content.", + "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).", + "The function call generated by the model is invalid.", + "Token generation stopped because generated images contain safety violations.", + "Image generation stopped because generated images has other prohibited content.", + "Image generation stopped because of other miscellaneous issue.", + "The model was expected to generate an image, but none was generated.", + "Image generation stopped due to recitation.", + "Model generated a tool call but no tools were enabled in the request.", + "Model called too many tools consecutively, thus the system exited execution.", + "Request has at least one thought signature missing.", + "Finished due to malformed response.", + "Request was filtered by an escalation rule." ] }, - "displayName": { - "type": "string", - "description": "Required. The user-defined name of this batch." + "tokenCount": { + "readOnly": true, + "description": "Output only. Token count for this candidate.", + "type": "integer", + "format": "int32" }, - "batchStats": { - "description": "Output only. Stats about the batch.", + "groundingMetadata": { + "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls.", "readOnly": true, - "$ref": "#/components/schemas/BatchStats" + "$ref": "#/components/schemas/GroundingMetadata" }, - "name": { + "avgLogprobs": { "readOnly": true, - "type": "string", - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." + "description": "Output only. Average log probability score of the candidate.", + "type": "number", + "format": "double" }, - "updateTime": { - "format": "google-datetime", - "description": "Output only. The time at which the batch was last updated.", + "index": { + "type": "integer", + "format": "int32", + "description": "Output only. Index of the candidate in the list of response candidates.", + "readOnly": true + }, + "groundingAttributions": { + "type": "array", + "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.", "readOnly": true, - "type": "string" + "items": { + "$ref": "#/components/schemas/GroundingAttribution" + } + } + }, + "description": "A response candidate generated from the model." + }, + "ListGeneratedFilesResponse": { + "description": "Response for `ListGeneratedFiles`.", + "properties": { + "generatedFiles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GeneratedFile" + }, + "description": "The list of `GeneratedFile`s." }, - "priority": { - "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.", + "nextPageToken": { + "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call.", + "type": "string" + } + }, + "type": "object" + }, + "RetrievalMetadata": { + "description": "Metadata related to retrieval in the grounding flow.", + "properties": { + "googleSearchDynamicRetrievalScore": { + "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.", + "type": "number", + "format": "float" + } + }, + "type": "object" + }, + "EmbedContentBatchStats": { + "properties": { + "pendingRequestCount": { + "description": "Output only. The number of requests that are still pending processing.", + "readOnly": true, "type": "string", "format": "int64" }, - "createTime": { + "successfulRequestCount": { + "type": "string", + "format": "int64", + "description": "Output only. The number of requests that were successfully processed.", + "readOnly": true + }, + "failedRequestCount": { "readOnly": true, + "description": "Output only. The number of requests that failed to be processed.", "type": "string", - "description": "Output only. The time at which the batch was created.", - "format": "google-datetime" + "format": "int64" }, - "endTime": { - "description": "Output only. The time at which the batch processing completed.", + "requestCount": { + "description": "Output only. The number of requests in the batch.", "readOnly": true, "type": "string", - "format": "google-datetime" + "format": "int64" } - } - }, - "RetrievedContext": { - "description": "Chunk from context retrieved by the file search tool.", + }, "type": "object", - "properties": { - "text": { - "type": "string", - "description": "Optional. Text of the chunk." - }, - "fileSearchStore": { - "type": "string", - "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`" - }, - "customMetadata": { - "description": "Optional. User-provided metadata about the retrieved context.", - "type": "array", - "items": { - "$ref": "#/components/schemas/GroundingChunkCustomMetadata" - } + "description": "Stats about the batch." + }, + "EmbedContentConfig": { + "properties": { + "documentOcr": { + "description": "Optional. Whether to enable OCR for document content.", + "type": "boolean" }, - "mediaId": { - "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}", + "taskType": { + "enum": [ + "TASK_TYPE_UNSPECIFIED", + "RETRIEVAL_QUERY", + "RETRIEVAL_DOCUMENT", + "SEMANTIC_SIMILARITY", + "CLASSIFICATION", + "CLUSTERING", + "QUESTION_ANSWERING", + "FACT_VERIFICATION", + "CODE_RETRIEVAL_QUERY" + ], + "description": "Optional. The task type of the embedding.", + "x-enum-descriptions": [ + "Unset value, which will default to one of the other enum values.", + "Specifies the given text is a query in a search/retrieval setting.", + "Specifies the given text is a document from the corpus being searched.", + "Specifies the given text will be used for STS.", + "Specifies that the given text will be classified.", + "Specifies that the embeddings will be used for clustering.", + "Specifies that the given text will be used for question answering.", + "Specifies that the given text will be used for fact verification.", + "Specifies that the given text will be used for code retrieval." + ], "type": "string" }, - "uri": { - "type": "string", - "description": "Optional. URI reference of the semantic retrieval document." - }, "title": { - "description": "Optional. Title of the document.", + "description": "Optional. The title for the text.", "type": "string" }, - "pageNumber": { - "description": "Optional. Page number of the retrieved context, if applicable.", + "audioTrackExtraction": { + "description": "Optional. Whether to extract audio from video content.", + "type": "boolean" + }, + "autoTruncate": { + "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.", + "type": "boolean" + }, + "outputDimensionality": { + "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.", "type": "integer", "format": "int32" } - } + }, + "type": "object", + "description": "Configurations for the EmbedContent request." }, - "InlinedEmbedContentRequest": { - "description": "The request to be processed in the batch.", + "VideoMetadata": { "type": "object", "properties": { - "request": { - "$ref": "#/components/schemas/EmbedContentRequest", - "description": "Required. The request to be processed in the batch." + "startOffset": { + "description": "Optional. The start offset of the video.", + "type": "string", + "format": "google-duration" }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Optional. The metadata to be associated with the request.", - "type": "object" - } - } - }, - "EmbedContentResponse": { - "properties": { - "embedding": { - "readOnly": true, - "description": "Output only. The embedding generated from the input content.", - "$ref": "#/components/schemas/ContentEmbedding" + "endOffset": { + "description": "Optional. The end offset of the video.", + "type": "string", + "format": "google-duration" }, - "usageMetadata": { - "$ref": "#/components/schemas/EmbeddingUsageMetadata", - "description": "Output only. The usage metadata for the request.", - "readOnly": true + "fps": { + "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0].", + "type": "number", + "format": "double" } }, - "description": "The response to an `EmbedContentRequest`.", - "type": "object" + "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.", + "deprecated": true }, - "Document": { - "description": "A `Document` is a collection of `Chunk`s.", - "type": "object", + "Corpus": { "properties": { - "customMetadata": { - "type": "array", - "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.", - "items": { - "$ref": "#/components/schemas/CustomMetadata" - } - }, - "displayName": { + "updateTime": { "type": "string", - "description": "Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: \"Semantic Retriever Documentation\"" - }, - "mimeType": { - "description": "Output only. The mime type of the Document.", - "readOnly": true, - "type": "string" - }, - "createTime": { "format": "google-datetime", - "description": "Output only. The Timestamp of when the `Document` was created.", "readOnly": true, - "type": "string" + "description": "Output only. The Timestamp of when the `Corpus` was last updated." }, "name": { - "type": "string", - "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"fileSearchStores/*/documents/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`" - }, - "updateTime": { - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `Document` was last updated.", "readOnly": true, + "description": "Output only. Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the \"corpora/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`", "type": "string" }, - "state": { - "x-enum-descriptions": [ - "The default value. This value is used if the state is omitted.", - "Some `Chunks` of the `Document` are being processed (embedding and vector storage).", - "All `Chunks` of the `Document` is processed and available for querying.", - "Some `Chunks` of the `Document` failed processing." - ], - "readOnly": true, - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "STATE_PENDING", - "STATE_ACTIVE", - "STATE_FAILED" - ], - "description": "Output only. Current state of the `Document`." + "displayName": { + "description": "Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\"", + "type": "string" }, - "sizeBytes": { - "description": "Output only. The size of raw bytes ingested into the Document.", + "createTime": { "readOnly": true, + "description": "Output only. The Timestamp of when the `Corpus` was created.", "type": "string", - "format": "int64" + "format": "google-datetime" } - } + }, + "type": "object", + "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora." }, - "PrebuiltVoiceConfig": { + "AttributionSourceId": { "type": "object", - "description": "The configuration for the prebuilt speaker to use.", "properties": { - "voiceName": { - "description": "The name of the preset voice to use.", - "type": "string" + "semanticRetrieverChunk": { + "description": "Identifier for a `Chunk` fetched via Semantic Retriever.", + "$ref": "#/components/schemas/SemanticRetrieverChunk" + }, + "groundingPassage": { + "description": "Identifier for an inline passage.", + "$ref": "#/components/schemas/GroundingPassageId" } - } + }, + "description": "Identifier for the source contributing to this attribution." }, - "SafetySetting": { - "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.", + "ListDocumentsResponse": { + "properties": { + "documents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Document" + }, + "description": "The returned `Document`s." + }, + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "type": "string" + } + }, "type": "object", + "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`." + }, + "ModalityTokenCount": { + "description": "Represents token counting info for a single modality.", "properties": { - "category": { - "description": "Required. The category for this setting.", + "modality": { "type": "string", - "enum": [ - "HARM_CATEGORY_UNSPECIFIED", - "HARM_CATEGORY_DEROGATORY", - "HARM_CATEGORY_TOXICITY", - "HARM_CATEGORY_VIOLENCE", - "HARM_CATEGORY_SEXUAL", - "HARM_CATEGORY_MEDICAL", - "HARM_CATEGORY_DANGEROUS", - "HARM_CATEGORY_HARASSMENT", - "HARM_CATEGORY_HATE_SPEECH", - "HARM_CATEGORY_SEXUALLY_EXPLICIT", - "HARM_CATEGORY_DANGEROUS_CONTENT", - "HARM_CATEGORY_CIVIC_INTEGRITY", - "HARM_CATEGORY_JAILBREAK" - ], - "enumDeprecated": [ - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - false, - true, - false - ], + "description": "The modality associated with this token count.", "x-enum-descriptions": [ - "Category is unspecified.", - "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.", - "**PaLM** - Content that is rude, disrespectful, or profane.", - "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.", - "**PaLM** - Contains references to sexual acts or other lewd content.", - "**PaLM** - Promotes unchecked medical advice.", - "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.", - "**Gemini** - Harassment content.", - "**Gemini** - Hate speech and content.", - "**Gemini** - Sexually explicit content.", - "**Gemini** - Dangerous content.", - "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.", - "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)." + "Unspecified modality.", + "Plain text.", + "Image.", + "Video.", + "Audio.", + "Document, e.g. PDF." + ], + "enum": [ + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "VIDEO", + "AUDIO", + "DOCUMENT" ] }, - "threshold": { - "description": "Required. Controls the probability threshold at which harm is blocked.", - "type": "string", - "x-enum-descriptions": [ - "Threshold is unspecified.", - "Content with NEGLIGIBLE will be allowed.", - "Content with NEGLIGIBLE and LOW will be allowed.", - "Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.", - "All content will be allowed.", - "Turn off the safety filter." - ], - "enum": [ - "HARM_BLOCK_THRESHOLD_UNSPECIFIED", - "BLOCK_LOW_AND_ABOVE", - "BLOCK_MEDIUM_AND_ABOVE", - "BLOCK_ONLY_HIGH", - "BLOCK_NONE", - "OFF" - ] + "tokenCount": { + "description": "Number of tokens.", + "type": "integer", + "format": "int32" + } + }, + "type": "object" + }, + "LanguageAuto": { + "type": "object", + "description": "Indicates the language of the audio should be automatically detected.", + "deprecated": true, + "properties": {} + }, + "BatchEmbedContentsRequest": { + "description": "Batch request to get embeddings from the model for a list of prompts.", + "properties": { + "requests": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EmbedContentRequest" + }, + "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`." + } + }, + "type": "object" + }, + "InlinedEmbedContentRequest": { + "properties": { + "request": { + "description": "Required. The request to be processed in the batch.", + "$ref": "#/components/schemas/EmbedContentRequest" + }, + "metadata": { + "type": "object", + "description": "Optional. The metadata to be associated with the request.", + "additionalProperties": { + "description": "Properties of the object." + } } - } + }, + "type": "object", + "description": "The request to be processed in the batch." }, - "FunctionCallingConfig": { + "TopCandidates": { + "type": "object", "properties": { - "mode": { - "type": "string", - "x-enum-descriptions": [ - "Unspecified function calling mode. This value should not be used.", - "Default model behavior, model decides to predict either a function call or a natural language response.", - "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".", - "Model will not predict any function call. Model behavior is same as when not passing any function declarations.", - "Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\"." - ], - "enum": [ - "MODE_UNSPECIFIED", - "AUTO", - "ANY", - "NONE", - "VALIDATED" - ], - "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO." + "candidates": { + "type": "array", + "items": { + "$ref": "#/components/schemas/LogprobsResultCandidate" + }, + "description": "Sorted by log probability in descending order." + } + }, + "description": "Candidates with top log probabilities at each decoding step." + }, + "GroundingMetadata": { + "properties": { + "groundingChunks": { + "type": "array", + "description": "List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses.", + "items": { + "$ref": "#/components/schemas/GroundingChunk" + } }, - "allowedFunctionNames": { + "retrievalMetadata": { + "description": "Metadata related to retrieval in the grounding flow.", + "$ref": "#/components/schemas/RetrievalMetadata" + }, + "googleMapsWidgetContextToken": { + "description": "Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled.", + "type": "string" + }, + "searchEntryPoint": { + "description": "Optional. Google search entry for the following-up web searches.", + "$ref": "#/components/schemas/SearchEntryPoint" + }, + "groundingSupports": { + "type": "array", + "description": "List of grounding support.", + "items": { + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" + } + }, + "webSearchQueries": { + "description": "Web search queries for the following-up web search.", "items": { "type": "string" }, - "type": "array", - "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names." + "type": "array" + }, + "imageSearchQueries": { + "description": "Image search queries used for grounding.", + "items": { + "type": "string" + }, + "type": "array" } }, "type": "object", - "description": "Configuration for specifying function calling behavior." + "description": "Metadata returned to client when grounding is enabled." }, - "HistoryConfig": { + "TextResponseFormat": { "type": "object", - "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.", "properties": { - "initialHistoryInClientContent": { - "type": "boolean", - "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`." + "mimeType": { + "description": "Optional. The MIME type of the text output.", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "JSON output format.", + "Plain text output format." + ], + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "APPLICATION_JSON", + "TEXT_PLAIN" + ], + "type": "string" + }, + "schema": { + "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." } - } + }, + "description": "Configuration for text output format." }, - "LatLng": { - "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.", - "type": "object", + "SearchEntryPoint": { + "description": "Google search entry point.", "properties": { - "latitude": { - "type": "number", - "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", - "format": "double" + "renderedContent": { + "description": "Optional. Web content snippet that can be embedded in a web page or an app webview.", + "type": "string" }, - "longitude": { - "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", - "type": "number", - "format": "double" + "sdkBlob": { + "description": "Optional. Base64 encoded JSON representing array of tuple.", + "type": "string", + "format": "byte" } - } - }, - "WebSearch": { - "properties": {}, - "description": "Standard web search for grounding and related configurations.", + }, "type": "object" }, - "ListFilesResponse": { + "GoogleSearch": { "type": "object", - "description": "Response for `ListFiles`.", "properties": { - "files": { - "description": "The list of `File`s.", - "type": "array", - "items": { - "$ref": "#/components/schemas/File" - } + "timeRangeFilter": { + "description": "Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa).", + "$ref": "#/components/schemas/Interval" }, - "nextPageToken": { - "type": "string", - "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call." + "searchTypes": { + "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.", + "$ref": "#/components/schemas/SearchTypes" } - } + }, + "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." }, - "CustomLongRunningOperation": { + "CitationSource": { + "type": "object", "properties": { - "name": { - "type": "string", - "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`." - }, - "error": { - "description": "The error result of the operation in case of failure or cancellation.", - "$ref": "#/components/schemas/Status" + "uri": { + "description": "Optional. URI that is attributed as a source for a portion of the text.", + "type": "string" }, - "done": { - "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.", - "type": "boolean" + "license": { + "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.", + "type": "string" }, - "response": { - "type": "object", - "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - } + "startIndex": { + "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.", + "type": "integer", + "format": "int32" }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - }, - "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.", - "type": "object" + "endIndex": { + "type": "integer", + "format": "int32", + "description": "Optional. End of the attributed segment, exclusive." } }, - "type": "object" + "description": "A citation to a source for a portion of a specific response." }, - "GoogleAiGenerativelanguageV1betaGroundingSupport": { - "description": "Grounding support.", - "type": "object", + "ListPermissionsResponse": { "properties": { - "segment": { - "description": "Segment of the content this support belongs to.", - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment" - }, - "groundingChunkIndices": { + "permissions": { "items": { - "type": "integer", - "format": "int32" + "$ref": "#/components/schemas/Permission" }, - "type": "array", - "description": "Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order)." - }, - "renderedParts": { - "readOnly": true, - "type": "array", - "description": "Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.", - "items": { - "type": "integer", - "format": "int32" - } + "description": "Returned permissions.", + "type": "array" }, - "confidenceScores": { + "nextPageToken": { + "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.", + "type": "string" + } + }, + "type": "object", + "description": "Response from `ListPermissions` containing a paginated list of permissions." + }, + "TuningExamples": { + "description": "A set of tuning examples. Can be training or validation data.", + "type": "object", + "properties": { + "examples": { + "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type.", "items": { - "type": "number", - "format": "float" + "$ref": "#/components/schemas/TuningExample" }, - "type": "array", - "description": "Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices." + "type": "array" } } + }, + "Hyperparameters": { + "properties": { + "epochCount": { + "type": "integer", + "format": "int32", + "description": "Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used." + }, + "batchSize": { + "type": "integer", + "format": "int32", + "description": "Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples." + }, + "learningRate": { + "description": "Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples.", + "type": "number", + "format": "float" + }, + "learningRateMultiplier": { + "type": "number", + "format": "float", + "description": "Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used." + } + }, + "type": "object", + "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance" } } }