From 3f9a40e176772ac2174550bd7f09ca66b36475b6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 27 Aug 2026 13:46:45 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ....Gemini.GeminiClient.AuthTokensCreate.g.cs | 18 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 28 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 28 +- ...ini.GeminiClient.CachedContentsCreate.g.cs | 46 +- ...mini.GeminiClient.CachedContentsPatch.g.cs | 46 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 16 +- ....GeminiClient.CorporaPermissionsPatch.g.cs | 16 +- ...i.GeminiClient.DynamicGenerateContent.g.cs | 52 +- ...niClient.DynamicStreamGenerateContent.g.cs | 52 +- ....DynamicStreamGenerateContentAsStream.g.cs | 52 +- ...emini.GeminiClient.EnvironmentsCreate.g.cs | 10 +- ...Client.EnvironmentsFilesMediaDownload.g.cs | 456 + ...i.GeminiClient.FileSearchStoresCreate.g.cs | 10 +- ...miniClient.FileSearchStoresImportFile.g.cs | 10 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 18 +- ...emini.GeminiClient.ModelsEmbedContent.g.cs | 10 +- ...ni.GeminiClient.ModelsGenerateContent.g.cs | 52 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 52 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 52 +- ...Gemini.GeminiClient.TunedModelsCreate.g.cs | 46 +- ...miniClient.TunedModelsGenerateContent.g.cs | 52 +- ....Gemini.GeminiClient.TunedModelsPatch.g.cs | 46 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 16 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 16 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 52 +- ...edModelsStreamGenerateContentAsStream.g.cs | 52 +- .../Generated/Google.Gemini.GeminiClient.g.cs | 4 +- ...Gemini.IGeminiClient.AuthTokensCreate.g.cs | 14 +- ...Client.BatchesUpdateEmbedContentBatch.g.cs | 22 +- ...ent.BatchesUpdateGenerateContentBatch.g.cs | 22 +- ...ni.IGeminiClient.CachedContentsCreate.g.cs | 36 +- ...ini.IGeminiClient.CachedContentsPatch.g.cs | 36 +- ...GeminiClient.CorporaPermissionsCreate.g.cs | 12 +- ...IGeminiClient.CorporaPermissionsPatch.g.cs | 12 +- ....IGeminiClient.DynamicGenerateContent.g.cs | 40 +- ...niClient.DynamicStreamGenerateContent.g.cs | 40 +- ....DynamicStreamGenerateContentAsStream.g.cs | 40 +- ...mini.IGeminiClient.EnvironmentsCreate.g.cs | 8 +- ...Client.EnvironmentsFilesMediaDownload.g.cs | 46 + ....IGeminiClient.FileSearchStoresCreate.g.cs | 8 +- ...miniClient.FileSearchStoresImportFile.g.cs | 8 +- ...niClient.MediaUploadToFileSearchStore.g.cs | 14 +- ...mini.IGeminiClient.ModelsEmbedContent.g.cs | 8 +- ...i.IGeminiClient.ModelsGenerateContent.g.cs | 40 +- ...iniClient.ModelsStreamGenerateContent.g.cs | 40 +- ...t.ModelsStreamGenerateContentAsStream.g.cs | 40 +- ...emini.IGeminiClient.TunedModelsCreate.g.cs | 36 +- ...miniClient.TunedModelsGenerateContent.g.cs | 40 +- ...Gemini.IGeminiClient.TunedModelsPatch.g.cs | 36 +- ...niClient.TunedModelsPermissionsCreate.g.cs | 12 +- ...iniClient.TunedModelsPermissionsPatch.g.cs | 12 +- ...ient.TunedModelsStreamGenerateContent.g.cs | 40 +- ...edModelsStreamGenerateContentAsStream.g.cs | 40 +- .../Google.Gemini.IGeminiClient.g.cs | 2 +- ...onverters.AudioResponseFormatDelivery.g.cs | 2 +- ...s.AudioResponseFormatDeliveryNullable.g.cs | 2 +- ...onverters.AudioResponseFormatMimeType.g.cs | 2 +- ...s.AudioResponseFormatMimeTypeNullable.g.cs | 2 +- ...nverters.AudioTranscriptionConfigMode.g.cs | 2 +- ....AudioTranscriptionConfigModeNullable.g.cs | 2 +- ...tivityDetectionEndOfSpeechSensitivity.g.cs | 2 +- ...tectionEndOfSpeechSensitivityNullable.g.cs | 2 +- ...vityDetectionStartOfSpeechSensitivity.g.cs | 2 +- ...ctionStartOfSpeechSensitivityNullable.g.cs | 2 +- ....JsonConverters.CandidateFinishReason.g.cs | 2 +- ...verters.CandidateFinishReasonNullable.g.cs | 2 +- ...Converters.CodeExecutionResultOutcome.g.cs | 2 +- ...rs.CodeExecutionResultOutcomeNullable.g.cs | 2 +- ...ters.ComputerUseDisabledSafetyPolicie.g.cs | 2 +- ...puterUseDisabledSafetyPolicieNullable.g.cs | 2 +- ...JsonConverters.ComputerUseEnvironment.g.cs | 2 +- ...erters.ComputerUseEnvironmentNullable.g.cs | 2 +- ...s.CreateEnvironmentRequestNetworkMode.g.cs | 2 +- ...EnvironmentRequestNetworkModeNullable.g.cs | 2 +- ...e.Gemini.JsonConverters.DocumentState.g.cs | 2 +- ....JsonConverters.DocumentStateNullable.g.cs | 2 +- ...Converters.DynamicRetrievalConfigMode.g.cs | 2 +- ...rs.DynamicRetrievalConfigModeNullable.g.cs | 2 +- ...JsonConverters.EmbedContentBatchState.g.cs | 2 +- ...erters.EmbedContentBatchStateNullable.g.cs | 2 +- ...Converters.EmbedContentConfigTaskType.g.cs | 2 +- ...rs.EmbedContentConfigTaskTypeNullable.g.cs | 2 +- ...onverters.EmbedContentRequestTaskType.g.cs | 2 +- ...s.EmbedContentRequestTaskTypeNullable.g.cs | 2 +- ...ni.JsonConverters.EnvironmentFileType.g.cs | 53 + ...onverters.EnvironmentFileTypeNullable.g.cs | 60 + ...JsonConverters.EnvironmentNetworkMode.g.cs | 2 +- ...erters.EnvironmentNetworkModeNullable.g.cs | 2 +- ...mini.JsonConverters.EnvironmentStatus.g.cs | 2 +- ...nConverters.EnvironmentStatusNullable.g.cs | 2 +- ...JsonConverters.ExecutableCodeLanguage.g.cs | 2 +- ...erters.ExecutableCodeLanguageNullable.g.cs | 2 +- ...ogle.Gemini.JsonConverters.FileSource.g.cs | 2 +- ...ini.JsonConverters.FileSourceNullable.g.cs | 2 +- ...oogle.Gemini.JsonConverters.FileState.g.cs | 2 +- ...mini.JsonConverters.FileStateNullable.g.cs | 2 +- ...nConverters.FunctionCallingConfigMode.g.cs | 2 +- ...ers.FunctionCallingConfigModeNullable.g.cs | 2 +- ...onverters.FunctionDeclarationBehavior.g.cs | 2 +- ...s.FunctionDeclarationBehaviorNullable.g.cs | 2 +- ...Converters.FunctionResponseScheduling.g.cs | 2 +- ...rs.FunctionResponseSchedulingNullable.g.cs | 2 +- ...nConverters.GenerateContentBatchState.g.cs | 2 +- ...ers.GenerateContentBatchStateNullable.g.cs | 2 +- ...ers.GenerateContentRequestServiceTier.g.cs | 2 +- ...rateContentRequestServiceTierNullable.g.cs | 2 +- ...ini.JsonConverters.GeneratedFileState.g.cs | 2 +- ...Converters.GeneratedFileStateNullable.g.cs | 2 +- ...rters.GenerationConfigMediaResolution.g.cs | 2 +- ...nerationConfigMediaResolutionNullable.g.cs | 2 +- ...ers.GenerationConfigResponseModalitie.g.cs | 2 +- ...rationConfigResponseModalitieNullable.g.cs | 2 +- ...erters.ImageResponseFormatAspectRatio.g.cs | 2 +- ...mageResponseFormatAspectRatioNullable.g.cs | 2 +- ...onverters.ImageResponseFormatDelivery.g.cs | 2 +- ...s.ImageResponseFormatDeliveryNullable.g.cs | 2 +- ...nverters.ImageResponseFormatImageSize.g.cs | 2 +- ....ImageResponseFormatImageSizeNullable.g.cs | 2 +- ...onverters.ImageResponseFormatMimeType.g.cs | 2 +- ...s.ImageResponseFormatMimeTypeNullable.g.cs | 2 +- ...Converters.ModalityTokenCountModality.g.cs | 2 +- ...rs.ModalityTokenCountModalityNullable.g.cs | 2 +- ....JsonConverters.ModelStatusModelStage.g.cs | 2 +- ...verters.ModelStatusModelStageNullable.g.cs | 2 +- ...ni.JsonConverters.PartMediaProcessing.g.cs | 2 +- ...onverters.PartMediaProcessingNullable.g.cs | 2 +- ....JsonConverters.PermissionGranteeType.g.cs | 2 +- ...verters.PermissionGranteeTypeNullable.g.cs | 2 +- ....Gemini.JsonConverters.PermissionRole.g.cs | 2 +- ...JsonConverters.PermissionRoleNullable.g.cs | 2 +- ...nConverters.PromptFeedbackBlockReason.g.cs | 2 +- ...ers.PromptFeedbackBlockReasonNullable.g.cs | 2 +- ...s.RealtimeInputConfigActivityHandling.g.cs | 2 +- ...meInputConfigActivityHandlingNullable.g.cs | 2 +- ...rters.RealtimeInputConfigTurnCoverage.g.cs | 2 +- ...altimeInputConfigTurnCoverageNullable.g.cs | 2 +- ...i.JsonConverters.SafetyRatingCategory.g.cs | 2 +- ...nverters.SafetyRatingCategoryNullable.g.cs | 2 +- ...sonConverters.SafetyRatingProbability.g.cs | 2 +- ...rters.SafetyRatingProbabilityNullable.g.cs | 2 +- ....JsonConverters.SafetySettingCategory.g.cs | 2 +- ...verters.SafetySettingCategoryNullable.g.cs | 2 +- ...JsonConverters.SafetySettingThreshold.g.cs | 2 +- ...erters.SafetySettingThresholdNullable.g.cs | 2 +- ...ogle.Gemini.JsonConverters.SchemaType.g.cs | 2 +- ...ini.JsonConverters.SchemaTypeNullable.g.cs | 2 +- ...ogle.Gemini.JsonConverters.SourceType.g.cs | 2 +- ...ini.JsonConverters.SourceTypeNullable.g.cs | 2 +- ...Converters.TextResponseFormatMimeType.g.cs | 2 +- ...rs.TextResponseFormatMimeTypeNullable.g.cs | 2 +- ...onverters.ThinkingConfigThinkingLevel.g.cs | 2 +- ...s.ThinkingConfigThinkingLevelNullable.g.cs | 2 +- ...emini.JsonConverters.ToolCallToolType.g.cs | 2 +- ...onConverters.ToolCallToolTypeNullable.g.cs | 2 +- ...i.JsonConverters.ToolResponseToolType.g.cs | 2 +- ...nverters.ToolResponseToolTypeNullable.g.cs | 2 +- ...Gemini.JsonConverters.TunedModelState.g.cs | 2 +- ...sonConverters.TunedModelStateNullable.g.cs | 2 +- ...e.Gemini.JsonConverters.UnixTimestamp.g.cs | 2 +- ...verters.UrlMetadataUrlRetrievalStatus.g.cs | 2 +- ...UrlMetadataUrlRetrievalStatusNullable.g.cs | 2 +- ...onConverters.UsageMetadataServiceTier.g.cs | 2 +- ...ters.UsageMetadataServiceTierNullable.g.cs | 2 +- ...Converters.V1mainMediaResolutionLevel.g.cs | 2 +- ...rs.V1mainMediaResolutionLevelNullable.g.cs | 2 +- .../Google.Gemini.JsonSerializerContext.g.cs | 775 +- ...gle.Gemini.JsonSerializerContextTypes.g.cs | 1348 +-- ...gle.Gemini.Models.AudioResponseFormat.g.cs | 30 +- ...emini.Models.AudioTranscriptionConfig.g.cs | 64 +- .../Google.Gemini.Models.AuthToken.g.cs | 42 +- ...ini.Models.AutomaticActivityDetection.g.cs | 24 +- .../Google.Gemini.Models.BatchStats.g.cs | 28 +- ...emini.Models.BidiGenerateContentSetup.g.cs | 104 +- .../Generated/Google.Gemini.Models.Blob.g.cs | 24 +- .../Google.Gemini.Models.CachedContent.g.cs | 126 +- .../Google.Gemini.Models.Candidate.g.cs | 134 +- .../Google.Gemini.Models.CitationSource.g.cs | 24 +- .../Google.Gemini.Models.ComputerUse.g.cs | 38 +- ...dels.ComputerUseDisabledSafetyPolicie.g.cs | 2 +- ...Models.ContextWindowCompressionConfig.g.cs | 24 +- .../Google.Gemini.Models.Corpus.g.cs | 42 +- ...gle.Gemini.Models.CountTokensResponse.g.cs | 26 +- ...emini.Models.CreateEnvironmentRequest.g.cs | 26 +- ...ini.Models.CustomLongRunningOperation.g.cs | 52 +- .../Google.Gemini.Models.CustomMetadata.g.cs | 38 +- .../Google.Gemini.Models.Document.g.cs | 70 +- ...oogle.Gemini.Models.EmbedContentBatch.g.cs | 124 +- ...Gemini.Models.EmbedContentBatchOutput.g.cs | 24 +- ....Gemini.Models.EmbedContentBatchStats.g.cs | 50 +- ...ogle.Gemini.Models.EmbedContentConfig.g.cs | 68 +- ...gle.Gemini.Models.EmbedContentRequest.g.cs | 40 +- ...le.Gemini.Models.EmbedContentResponse.g.cs | 24 +- ....Gemini.Models.EmbeddingUsageMetadata.g.cs | 26 +- .../Google.Gemini.Models.Environment.g.cs | 104 +- ...le.Gemini.Models.EnvironmentFile.Json.g.cs | 141 + .../Google.Gemini.Models.EnvironmentFile.g.cs | 127 + ...gle.Gemini.Models.EnvironmentFileType.g.cs | 58 + ...oogle.Gemini.Models.EnvironmentStatus.g.cs | 6 +- .../Google.Gemini.Models.ExecutableCode.g.cs | 24 +- .../Generated/Google.Gemini.Models.File.g.cs | 162 +- .../Google.Gemini.Models.FileSearchStore.g.cs | 108 +- .../Google.Gemini.Models.FunctionCall.g.cs | 24 +- ...e.Gemini.Models.FunctionCallingConfig.g.cs | 24 +- ...gle.Gemini.Models.FunctionDeclaration.g.cs | 62 +- ...Google.Gemini.Models.FunctionResponse.g.cs | 66 +- ...le.Gemini.Models.GenerateContentBatch.g.cs | 144 +- ...ini.Models.GenerateContentBatchOutput.g.cs | 24 +- ....Gemini.Models.GenerateContentRequest.g.cs | 102 +- ...Gemini.Models.GenerateContentResponse.g.cs | 58 +- .../Google.Gemini.Models.GeneratedFile.g.cs | 46 +- ...Google.Gemini.Models.GenerationConfig.g.cs | 268 +- ...els.GenerationConfigResponseModalitie.g.cs | 2 +- ...dels.GetEnvironmentFilesResponse.Json.g.cs | 141 + ...ni.Models.GetEnvironmentFilesResponse.g.cs | 57 + ...erativelanguageV1betaGroundingSupport.g.cs | 46 +- ...ogleAiGenerativelanguageV1betaSegment.g.cs | 36 +- .../Google.Gemini.Models.GoogleSearch.g.cs | 24 +- .../Google.Gemini.Models.GroundingChunk.g.cs | 38 +- ...i.Models.GroundingChunkCustomMetadata.g.cs | 22 +- ...oogle.Gemini.Models.GroundingMetadata.g.cs | 52 +- ...ogle.Gemini.Models.GroundingPassageId.g.cs | 26 +- .../Google.Gemini.Models.Hyperparameters.g.cs | 24 +- .../Generated/Google.Gemini.Models.Image.g.cs | 24 +- ...gle.Gemini.Models.ImageResponseFormat.g.cs | 24 +- ...oogle.Gemini.Models.ImportFileRequest.g.cs | 24 +- ...ini.Models.InlinedEmbedContentRequest.g.cs | 24 +- ...ni.Models.InlinedEmbedContentResponse.g.cs | 24 +- .../Google.Gemini.Models.InlinedResponse.g.cs | 28 +- ...ini.Models.ListCachedContentsResponse.g.cs | 24 +- ...e.Gemini.Models.ListDocumentsResponse.g.cs | 24 +- ...Gemini.Models.ListPermissionsResponse.g.cs | 24 +- .../Generated/Google.Gemini.Models.Maps.g.cs | 46 +- ...ogle.Gemini.Models.ModalityTokenCount.g.cs | 24 +- .../Generated/Google.Gemini.Models.Model.g.cs | 148 +- .../Google.Gemini.Models.ModelStatus.g.cs | 30 +- .../Google.Gemini.Models.Operation.g.cs | 36 +- .../Generated/Google.Gemini.Models.Part.g.cs | 164 +- ...gle.Gemini.Models.PartMediaProcessing.g.cs | 2 +- .../Google.Gemini.Models.Permission.g.cs | 42 +- ...gle.Gemini.Models.RealtimeInputConfig.g.cs | 26 +- ...le.Gemini.Models.ResponseFormatConfig.g.cs | 24 +- .../Google.Gemini.Models.RetrievalConfig.g.cs | 24 +- ...Google.Gemini.Models.RetrievedContext.g.cs | 60 +- .../Google.Gemini.Models.ReviewSnippet.g.cs | 28 +- .../Google.Gemini.Models.SafetyRating.g.cs | 24 +- .../Google.Gemini.Models.SafetySetting.g.cs | 26 +- .../Google.Gemini.Models.Schema.g.cs | 272 +- .../Google.Gemini.Models.Source.g.cs | 24 +- .../Google.Gemini.Models.SourceType.g.cs | 4 +- .../Google.Gemini.Models.SpeechConfig.g.cs | 28 +- .../Google.Gemini.Models.Status.g.cs | 22 +- .../Google.Gemini.Models.StatusDetail.g.cs | 2 +- ...Gemini.Models.StreamableHttpTransport.g.cs | 24 +- .../Google.Gemini.Models.ThinkingConfig.g.cs | 24 +- .../Generated/Google.Gemini.Models.Tool.g.cs | 100 +- .../Google.Gemini.Models.ToolConfig.g.cs | 24 +- .../Google.Gemini.Models.ToolResponse.g.cs | 22 +- ...oogle.Gemini.Models.TranslationConfig.g.cs | 24 +- .../Google.Gemini.Models.TunedModel.g.cs | 150 +- ...Google.Gemini.Models.TunedModelSource.g.cs | 24 +- .../Google.Gemini.Models.TuningSnapshot.g.cs | 50 +- .../Google.Gemini.Models.TuningTask.g.cs | 48 +- ...Models.UploadToFileSearchStoreRequest.g.cs | 38 +- .../Google.Gemini.Models.UsageMetadata.g.cs | 134 +- .../Generated/Google.Gemini.PathBuilder.g.cs | 12 +- .../Generated/Google.Gemini.Polyfills.g.cs | 8 +- src/libs/Google.Gemini/openapi.json | 9636 +++++++++-------- 267 files changed, 10327 insertions(+), 9023 deletions(-) create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileType.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileTypeNullable.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.Json.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFileType.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.Json.g.cs create mode 100644 src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs 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 f1c6e8f64..21bd7d9f2 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,40 +425,40 @@ 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. /// - /// - /// 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 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 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. + /// + /// 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. /// /// 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, - global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, string? expireTime = default, int? uses = default, - string? newSessionExpireTime = default, + global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.AuthToken { + NewSessionExpireTime = newSessionExpireTime, FieldMask = fieldMask, - BidiGenerateContentSetup = bidiGenerateContentSetup, ExpireTime = expireTime, Uses = uses, - NewSessionExpireTime = newSessionExpireTime, + BidiGenerateContentSetup = bidiGenerateContentSetup, }; 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 f8ed0f93e..759f9abe0 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 @@ -451,21 +451,21 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent( /// /// 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. + /// + /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// /// /// 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 `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.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. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -473,22 +473,22 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent( string batchesId, string? updateMask = default, global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, - string? model = default, - global::Google.Gemini.EmbedContentBatchStats? batchStats = default, - string? priority = default, global::Google.Gemini.EmbedContentBatchOutput? output = default, + string? priority = default, string? displayName = default, + string? model = default, + global::Google.Gemini.EmbedContentBatchStats? batchStats = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.EmbedContentBatch { InputConfig = inputConfig, - Model = model, - BatchStats = batchStats, - Priority = priority, Output = output, + Priority = priority, DisplayName = displayName, + Model = model, + BatchStats = batchStats, }; return await BatchesUpdateEmbedContentBatchAsync( 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 0cce30e1a..c498e44d3 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,47 +448,47 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent( /// /// /// - /// - /// 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. /// /// /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// + /// + /// Required. The user-defined name of this batch. + /// /// /// Stats about the batch. /// + /// + /// Configures the input to the batch request. + /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// - /// - /// 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 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 /// public async global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync( string batchesId, string? updateMask = default, - global::Google.Gemini.InputConfig? inputConfig = default, + string? priority = default, string? model = default, + string? displayName = default, global::Google.Gemini.BatchStats? batchStats = default, + global::Google.Gemini.InputConfig? inputConfig = default, global::Google.Gemini.GenerateContentBatchOutput? output = default, - string? priority = default, - string? displayName = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.GenerateContentBatch { - InputConfig = inputConfig, + Priority = priority, Model = model, + DisplayName = displayName, BatchStats = batchStats, + InputConfig = inputConfig, Output = output, - Priority = priority, - DisplayName = displayName, }; 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 44706ec8e..c94902416 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,23 +425,14 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Creates CachedContent resource. /// - /// - /// 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. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// + /// Metadata on the usage of the cached content. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Metadata on the usage of the cached content. + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// /// /// Optional. Input only. Immutable. The content to cache. @@ -449,36 +440,45 @@ partial void ProcessCachedContentsCreateResponseContent( /// /// Input only. New TTL for this resource, input only. /// + /// + /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// /// /// 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. + /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content 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 CachedContentsCreateAsync( - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? expireTime = default, - global::Google.Gemini.ToolConfig? toolConfig = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.IList? contents = default, string? ttl = default, + string? expireTime = default, string? displayName = default, + global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CachedContent { - SystemInstruction = systemInstruction, - Model = model, - Tools = tools, - ExpireTime = expireTime, - ToolConfig = toolConfig, UsageMetadata = usageMetadata, + ToolConfig = toolConfig, + Tools = tools, Contents = contents, Ttl = ttl, + ExpireTime = expireTime, DisplayName = displayName, + SystemInstruction = systemInstruction, + Model = model, }; 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 9f07e4246..21f0acb18 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,23 +448,14 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// /// - /// - /// 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. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// + /// Metadata on the usage of the cached content. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Metadata on the usage of the cached content. + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// /// /// Optional. Input only. Immutable. The content to cache. @@ -472,38 +463,47 @@ partial void ProcessCachedContentsPatchResponseContent( /// /// Input only. New TTL for this resource, input only. /// + /// + /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// /// /// 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. + /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content 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 CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? expireTime = default, - global::Google.Gemini.ToolConfig? toolConfig = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.IList? contents = default, string? ttl = default, + string? expireTime = default, string? displayName = default, + global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CachedContent { - SystemInstruction = systemInstruction, - Model = model, - Tools = tools, - ExpireTime = expireTime, - ToolConfig = toolConfig, UsageMetadata = usageMetadata, + ToolConfig = toolConfig, + Tools = tools, Contents = contents, Ttl = ttl, + ExpireTime = expireTime, DisplayName = displayName, + SystemInstruction = systemInstruction, + Model = model, }; 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..5e53cccf3 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 @@ -435,31 +435,31 @@ partial void ProcessCorporaPermissionsCreateResponseContent( /// Create a permission to a specific resource. /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// 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.PermissionRole? role = 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, + Role = role, }; 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..ed2f0c85e 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 @@ -458,14 +458,14 @@ partial void ProcessCorporaPermissionsPatchResponseContent( /// /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -474,17 +474,17 @@ partial void ProcessCorporaPermissionsPatchResponseContent( string permissionsId, 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.PermissionRole? role = 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, + Role = role, }; 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 4863216d3..fed509639 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 @@ -435,66 +435,66 @@ partial void ProcessDynamicGenerateContentResponseContent( /// 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. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 DynamicGenerateContentAsync( string dynamicId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.GenerateContentRequest { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 a9f85b283..662692c66 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 @@ -439,66 +439,66 @@ partial void ProcessDynamicStreamGenerateContentResponseContent( /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 DynamicStreamGenerateContentAsync( string dynamicId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.GenerateContentRequest { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 066dc3e5c..e34df6f34 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 @@ -380,66 +380,66 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse( /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync( string dynamicId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = default, + global::System.Collections.Generic.IList? contents = 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 { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 6bc39ba15..82305be0f 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,30 +425,30 @@ partial void ProcessEnvironmentsCreateResponseContent( /// /// Creates an environment. /// + /// + /// Network egress mode. + /// /// /// Network egress configuration for the environment. /// /// /// Sources to be mounted into the environment. /// - /// - /// Network egress mode. - /// /// 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 EnvironmentsCreateAsync( + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, global::System.Collections.Generic.IList? sources = default, - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.CreateEnvironmentRequest { + NetworkMode = networkMode, NetworkAllowlist = networkAllowlist, Sources = sources, - NetworkMode = networkMode, }; return await EnvironmentsCreateAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs new file mode 100644 index 000000000..088206d5f --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs @@ -0,0 +1,456 @@ + +#nullable enable + +namespace Google.Gemini +{ + public partial class GeminiClient + { + + + private static readonly global::Google.Gemini.EndPointSecurityRequirement s_EnvironmentsFilesMediaDownloadSecurityRequirement0 = + new global::Google.Gemini.EndPointSecurityRequirement + { + Authorizations = new global::Google.Gemini.EndPointAuthorizationRequirement[] + { new global::Google.Gemini.EndPointAuthorizationRequirement + { + Type = "ApiKey", + SchemeId = "ApikeyKey", + Location = "Query", + Name = "key", + FriendlyName = "ApiKeyInQuery", + }, + }, + }; + private static readonly global::Google.Gemini.EndPointSecurityRequirement[] s_EnvironmentsFilesMediaDownloadSecurityRequirements = + new global::Google.Gemini.EndPointSecurityRequirement[] + { s_EnvironmentsFilesMediaDownloadSecurityRequirement0, + }; + partial void PrepareEnvironmentsFilesMediaDownloadArguments( + global::System.Net.Http.HttpClient httpClient, + ref int? pageSize, + ref string? pageToken, + ref string environmentsId, + ref string filesId, + ref bool? recursive); + partial void PrepareEnvironmentsFilesMediaDownloadRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + int? pageSize, + string? pageToken, + string environmentsId, + string filesId, + bool? recursive); + partial void ProcessEnvironmentsFilesMediaDownloadResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessEnvironmentsFilesMediaDownloadResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Retrieves a file or directory from an environment's snapshot (HTTP endpoint). + /// + /// + /// + /// + /// + /// + /// 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 EnvironmentsFilesMediaDownloadAsync( + string environmentsId, + string filesId, + int? pageSize = default, + string? pageToken = default, + bool? recursive = default, + global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await EnvironmentsFilesMediaDownloadAsResponseAsync( + environmentsId: environmentsId, + filesId: filesId, + pageSize: pageSize, + pageToken: pageToken, + recursive: recursive, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Retrieves a file or directory from an environment's snapshot (HTTP endpoint). + /// + /// + /// + /// + /// + /// + /// 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> EnvironmentsFilesMediaDownloadAsResponseAsync( + string environmentsId, + string filesId, + int? pageSize = default, + string? pageToken = default, + bool? recursive = default, + global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareEnvironmentsFilesMediaDownloadArguments( + httpClient: HttpClient, + pageSize: ref pageSize, + pageToken: ref pageToken, + environmentsId: ref environmentsId, + filesId: ref filesId, + recursive: ref recursive); + + + var __authorizations = global::Google.Gemini.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_EnvironmentsFilesMediaDownloadSecurityRequirements, + operationName: "EnvironmentsFilesMediaDownloadAsync"); + + using var __timeoutCancellationTokenSource = global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::Google.Gemini.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::Google.Gemini.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::Google.Gemini.PathBuilder( + path: $"/environments/{environmentsId}/files/{filesId}", + baseUri: HttpClient.BaseAddress); + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "ApiKey" && + __authorization.Location == "Query") + { + __pathBuilder = __pathBuilder.AddRequiredParameter(__authorization.Name, __authorization.Value); + } + } + __pathBuilder + .AddOptionalParameter("page_size", pageSize?.ToString()) + .AddOptionalParameter("page_token", pageToken) + .AddOptionalParameter("recursive", recursive?.ToString().ToLowerInvariant()) + ; + var __path = __pathBuilder.ToString(); + __path = global::Google.Gemini.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Get, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + global::Google.Gemini.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareEnvironmentsFilesMediaDownloadRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + pageSize: pageSize, + pageToken: pageToken, + environmentsId: environmentsId!, + filesId: filesId!, + recursive: recursive); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::Google.Gemini.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnvironmentsFilesMediaDownload", + methodName: "EnvironmentsFilesMediaDownloadAsync", + pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::Google.Gemini.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::Google.Gemini.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnvironmentsFilesMediaDownload", + methodName: "EnvironmentsFilesMediaDownloadAsync", + pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::Google.Gemini.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::Google.Gemini.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::Google.Gemini.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::Google.Gemini.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnvironmentsFilesMediaDownload", + methodName: "EnvironmentsFilesMediaDownloadAsync", + pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::Google.Gemini.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessEnvironmentsFilesMediaDownloadResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::Google.Gemini.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnvironmentsFilesMediaDownload", + methodName: "EnvironmentsFilesMediaDownloadAsync", + pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::Google.Gemini.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "EnvironmentsFilesMediaDownload", + methodName: "EnvironmentsFilesMediaDownloadAsync", + pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"", + httpMethod: "GET", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessEnvironmentsFilesMediaDownloadResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::Google.Gemini.GetEnvironmentFilesResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::Google.Gemini.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Google.Gemini.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw global::Google.Gemini.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::Google.Gemini.GetEnvironmentFilesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::Google.Gemini.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::Google.Gemini.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw global::Google.Gemini.ApiException.Create( + statusCode: __response.StatusCode, + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + responseBody: __content, + responseHeaders: global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value)); + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs index 9f8368aa2..7dac3545a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs @@ -425,25 +425,25 @@ partial void ProcessFileSearchStoresCreateResponseContent( /// /// Creates an empty `FileSearchStore`. /// - /// - /// 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" - /// /// /// 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. /// + /// + /// 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" + /// /// 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 FileSearchStoresCreateAsync( - string? displayName = default, string? embeddingModel = default, + string? displayName = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.FileSearchStore { - DisplayName = displayName, EmbeddingModel = embeddingModel, + DisplayName = displayName, }; return await FileSearchStoresCreateAsync( 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 6eebaf777..05ef9bc77 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 @@ -438,28 +438,28 @@ partial void ProcessFileSearchStoresImportFileResponseContent( /// /// 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 /// + /// + /// Custom metadata to be associated with the file. + /// /// 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, string? fileName = default, - global::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = 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.ImportFileRequest { FileName = fileName, - CustomMetadata = customMetadata, ChunkingConfig = chunkingConfig, + CustomMetadata = customMetadata, }; 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 b24c70be7..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. /// /// - /// - /// Custom metadata to be associated with the data. + /// + /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// /// /// 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. - /// /// /// 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::System.Collections.Generic.IList? customMetadata = default, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? mimeType = 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 { - CustomMetadata = customMetadata, - ChunkingConfig = chunkingConfig, MimeType = mimeType, + ChunkingConfig = chunkingConfig, DisplayName = displayName, + CustomMetadata = customMetadata, }; return await MediaUploadToFileSearchStoreAsync( 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 c4e0cb916..0c05e1f5a 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). /// /// + /// + /// 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}` /// /// /// 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. - /// /// 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, + global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, string? model = default, global::Google.Gemini.Content? content = default, - global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Google.Gemini.EmbedContentRequest { + EmbedContentConfig = embedContentConfig, Model = model, Content = content, - EmbedContentConfig = embedContentConfig, }; 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 909ff5c8b..fa04d49f7 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 @@ -435,66 +435,66 @@ partial void ProcessModelsGenerateContentResponseContent( /// 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. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 ModelsGenerateContentAsync( string modelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.GenerateContentRequest { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 a41c230d1..a6c648ac4 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 @@ -439,66 +439,66 @@ partial void ProcessModelsStreamGenerateContentResponseContent( /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 ModelsStreamGenerateContentAsync( string modelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.GenerateContentRequest { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 1f25c7710..871688518 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 @@ -380,66 +380,66 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse( /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync( string modelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = default, + global::System.Collections.Generic.IList? contents = 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 { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 af1bbbb4d..30d4adf3b 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,61 +438,61 @@ 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. + /// /// /// Tuned model as a source for training a new model. /// - /// - /// 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. - /// - /// - /// Optional. A short description of this model. + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuning tasks that create tuned models. /// + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// /// /// 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. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. A short description of this model. /// /// /// 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. 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. + /// /// 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 TunedModelsCreateAsync( string? tunedModelId = default, + string? displayName = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, - string? description = default, + string? baseModel = default, global::Google.Gemini.TuningTask? tuningTask = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, float? temperature = default, - string? baseModel = default, - string? displayName = default, + string? description = default, float? topP = 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, TunedModelSource = tunedModelSource, - ReaderProjectNumbers = readerProjectNumbers, - TopK = topK, - Description = description, + BaseModel = baseModel, TuningTask = tuningTask, + ReaderProjectNumbers = readerProjectNumbers, Temperature = temperature, - BaseModel = baseModel, - DisplayName = displayName, + Description = description, TopP = topP, + TopK = topK, }; return await TunedModelsCreateAsync( 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 56d3d9f39..51884aea5 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 @@ -435,66 +435,66 @@ partial void ProcessTunedModelsGenerateContentResponseContent( /// 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. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 TunedModelsGenerateContentAsync( string tunedModelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.GenerateContentRequest { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 060524e0f..fbabd5682 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,62 +448,62 @@ 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. + /// /// /// Tuned model as a source for training a new model. /// - /// - /// 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. - /// - /// - /// Optional. A short description of this model. + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuning tasks that create tuned models. /// + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// /// /// 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. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. A short description of this model. /// /// /// 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. 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. + /// /// 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 TunedModelsPatchAsync( string tunedModelsId, string? updateMask = default, + string? displayName = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, - string? description = default, + string? baseModel = default, global::Google.Gemini.TuningTask? tuningTask = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, float? temperature = default, - string? baseModel = default, - string? displayName = default, + string? description = default, float? topP = 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, TunedModelSource = tunedModelSource, - ReaderProjectNumbers = readerProjectNumbers, - TopK = topK, - Description = description, + BaseModel = baseModel, TuningTask = tuningTask, + ReaderProjectNumbers = readerProjectNumbers, Temperature = temperature, - BaseModel = baseModel, - DisplayName = displayName, + Description = description, TopP = topP, + TopK = topK, }; return await TunedModelsPatchAsync( 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..9e0209cf6 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 @@ -435,31 +435,31 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent( /// Create a permission to a specific resource. /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// 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.PermissionRole? role = 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, + Role = role, }; 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..2e627ccb6 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 @@ -458,14 +458,14 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent( /// /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -474,17 +474,17 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent( string tunedModelsId, 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.PermissionRole? role = 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, + Role = role, }; 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 7a68dde8a..e34d51add 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 @@ -439,66 +439,66 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent( /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 TunedModelsStreamGenerateContentAsync( string tunedModelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.GenerateContentRequest { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; 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 32a0dae01..46cbac539 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 @@ -380,66 +380,66 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse( /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync( string tunedModelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = default, + global::System.Collections.Generic.IList? contents = 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 { - Model = model, - Tools = tools, + SystemInstruction = systemInstruction, ToolConfig = toolConfig, - Store = store, ServiceTier = serviceTier, + Tools = tools, + CachedContent = cachedContent, + Store = store, GenerationConfig = generationConfig, - Contents = contents, - SystemInstruction = systemInstruction, + Model = model, SafetySettings = safetySettings, - CachedContent = cachedContent, + Contents = contents, }; var __enumerable = TunedModelsStreamGenerateContentAsStreamAsync( diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs index af86edb25..e4ab9619d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.g.cs @@ -11,7 +11,7 @@ namespace Google.Gemini public sealed partial class GeminiClient : global::Google.Gemini.IGeminiClient, global::System.IDisposable { /// - /// + /// /// public const string DefaultBaseUrl = "https://generativelanguage.googleapis.com/v1beta"; @@ -38,7 +38,7 @@ public sealed partial class GeminiClient : global::Google.Gemini.IGeminiClient, internal global::System.Lazy JsonSerializerContextProvider { get; set; } = new(() => global::Google.Gemini.SourceGenerationContext.Default); /// - /// + /// /// public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { 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 5543fb822..914d21926 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,30 +31,30 @@ 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. /// - /// - /// 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 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 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. + /// + /// 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. /// /// 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, - global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default, string? expireTime = default, int? uses = default, - string? newSessionExpireTime = default, + global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = 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 f6c01de24..6063e33c9 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 @@ -44,21 +44,21 @@ public partial interface IGeminiClient /// /// 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. + /// + /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// /// /// 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 `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.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. + /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// @@ -66,11 +66,11 @@ public partial interface IGeminiClient string batchesId, string? updateMask = default, global::Google.Gemini.InputEmbedContentConfig? inputConfig = default, - string? model = default, - global::Google.Gemini.EmbedContentBatchStats? batchStats = default, - string? priority = default, global::Google.Gemini.EmbedContentBatchOutput? output = default, + string? priority = default, string? displayName = default, + string? model = default, + global::Google.Gemini.EmbedContentBatchStats? batchStats = 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 eea3f1b67..86944a442 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,36 +41,36 @@ public partial interface IGeminiClient /// /// /// - /// - /// 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. /// /// /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// + /// + /// Required. The user-defined name of this batch. + /// /// /// Stats about the batch. /// + /// + /// Configures the input to the batch request. + /// /// /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// - /// - /// 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 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 /// global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync( string batchesId, string? updateMask = default, - global::Google.Gemini.InputConfig? inputConfig = default, + string? priority = default, string? model = default, + string? displayName = default, global::Google.Gemini.BatchStats? batchStats = default, + global::Google.Gemini.InputConfig? inputConfig = default, global::Google.Gemini.GenerateContentBatchOutput? output = default, - string? priority = default, - string? displayName = 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 0b2f9c0fd..091843b70 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,23 +31,14 @@ public partial interface IGeminiClient /// /// Creates CachedContent resource. /// - /// - /// 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. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// + /// Metadata on the usage of the cached content. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Metadata on the usage of the cached content. + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// /// /// Optional. Input only. Immutable. The content to cache. @@ -55,22 +46,31 @@ public partial interface IGeminiClient /// /// Input only. New TTL for this resource, input only. /// + /// + /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// /// /// 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. + /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content 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 CachedContentsCreateAsync( - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? expireTime = default, - global::Google.Gemini.ToolConfig? toolConfig = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.IList? contents = default, string? ttl = default, + string? expireTime = default, string? displayName = default, + global::Google.Gemini.Content? systemInstruction = 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.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsPatch.g.cs index 0265e7788..5de8b63a6 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,23 +41,14 @@ public partial interface IGeminiClient /// /// /// - /// - /// 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. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// + /// Metadata on the usage of the cached content. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Metadata on the usage of the cached content. + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// /// /// Optional. Input only. Immutable. The content to cache. @@ -65,24 +56,33 @@ public partial interface IGeminiClient /// /// Input only. New TTL for this resource, input only. /// + /// + /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// /// /// 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. + /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content 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 CachedContentsPatchAsync( string cachedContentsId, string? updateMask = default, - global::Google.Gemini.Content? systemInstruction = default, - string? model = default, - global::System.Collections.Generic.IList? tools = default, - string? expireTime = default, - global::Google.Gemini.ToolConfig? toolConfig = default, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default, + global::Google.Gemini.ToolConfig? toolConfig = default, + global::System.Collections.Generic.IList? tools = default, global::System.Collections.Generic.IList? contents = default, string? ttl = default, + string? expireTime = default, string? displayName = default, + global::Google.Gemini.Content? systemInstruction = 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.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsCreate.g.cs index 9fdaa4879..742c7e66a 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 @@ -36,23 +36,23 @@ public partial interface IGeminiClient /// Create a permission to a specific resource. /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// 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.PermissionRole? role = 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..b57a43d00 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 @@ -46,14 +46,14 @@ public partial interface IGeminiClient /// /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -62,9 +62,9 @@ public partial interface IGeminiClient string permissionsId, 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.PermissionRole? role = 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 42b2ee973..bcbefbad8 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 @@ -36,51 +36,51 @@ public partial interface IGeminiClient /// 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. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 DynamicGenerateContentAsync( string dynamicId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs index f626a4cd4..ed4ffcb06 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 @@ -36,51 +36,51 @@ public partial interface IGeminiClient /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 DynamicStreamGenerateContentAsync( string dynamicId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs index 999243a91..43e93ce74 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 @@ -22,51 +22,51 @@ public partial interface IGeminiClient /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync( string dynamicId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.EnvironmentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs index f326c335c..1d947e876 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,22 +31,22 @@ public partial interface IGeminiClient /// /// Creates an environment. /// + /// + /// Network egress mode. + /// /// /// Network egress configuration for the environment. /// /// /// Sources to be mounted into the environment. /// - /// - /// Network egress mode. - /// /// 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 EnvironmentsCreateAsync( + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default, global::System.Collections.Generic.IList? sources = default, - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default, global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs new file mode 100644 index 000000000..373cdd734 --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaDownload.g.cs @@ -0,0 +1,46 @@ +#nullable enable + +namespace Google.Gemini +{ + public partial interface IGeminiClient + { + /// + /// Retrieves a file or directory from an environment's snapshot (HTTP endpoint). + /// + /// + /// + /// + /// + /// + /// 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 EnvironmentsFilesMediaDownloadAsync( + string environmentsId, + string filesId, + int? pageSize = default, + string? pageToken = default, + bool? recursive = default, + global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Retrieves a file or directory from an environment's snapshot (HTTP endpoint). + /// + /// + /// + /// + /// + /// + /// 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> EnvironmentsFilesMediaDownloadAsResponseAsync( + string environmentsId, + string filesId, + int? pageSize = default, + string? pageToken = default, + bool? recursive = default, + global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs index 9edab07fb..456dc9c71 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresCreate.g.cs @@ -31,18 +31,18 @@ public partial interface IGeminiClient /// /// Creates an empty `FileSearchStore`. /// - /// - /// 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" - /// /// /// 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. /// + /// + /// 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" + /// /// 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 FileSearchStoresCreateAsync( - string? displayName = default, string? embeddingModel = default, + string? displayName = 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 f429f2598..95c834be9 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 @@ -39,20 +39,20 @@ public partial interface IGeminiClient /// /// 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 /// + /// + /// Custom metadata to be associated with the file. + /// /// 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, string? fileName = default, - global::System.Collections.Generic.IList? customMetadata = default, global::Google.Gemini.ChunkingConfig? chunkingConfig = 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.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs index a2ea08f43..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. /// /// - /// - /// Custom metadata to be associated with the data. + /// + /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// /// /// 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. - /// /// /// 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::System.Collections.Generic.IList? customMetadata = default, - global::Google.Gemini.ChunkingConfig? chunkingConfig = default, string? mimeType = 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.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs index 2f5b194ef..396788467 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). /// /// + /// + /// 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}` /// /// /// 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. - /// /// 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, + global::Google.Gemini.EmbedContentConfig? embedContentConfig = default, string? model = default, global::Google.Gemini.Content? content = default, - global::Google.Gemini.EmbedContentConfig? embedContentConfig = 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 6b2fb43e9..6dab19141 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 @@ -36,51 +36,51 @@ public partial interface IGeminiClient /// 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. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 ModelsGenerateContentAsync( string modelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs index 9527376f0..6feb6b521 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 @@ -36,51 +36,51 @@ public partial interface IGeminiClient /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 ModelsStreamGenerateContentAsync( string modelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs index ff73164a1..e4ee4f3ac 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 @@ -22,51 +22,51 @@ public partial interface IGeminiClient /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync( string modelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs index b34cd29f0..87d61382d 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,47 +36,47 @@ 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. + /// /// /// Tuned model as a source for training a new model. /// - /// - /// 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. - /// - /// - /// Optional. A short description of this model. + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuning tasks that create tuned models. /// + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// /// /// 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. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. A short description of this model. /// /// /// 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. 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. + /// /// 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 TunedModelsCreateAsync( string? tunedModelId = default, + string? displayName = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, - string? description = default, + string? baseModel = default, global::Google.Gemini.TuningTask? tuningTask = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, float? temperature = default, - string? baseModel = default, - string? displayName = default, + string? description = default, float? topP = 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 b8833b494..6fb6c48f5 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 @@ -36,51 +36,51 @@ public partial interface IGeminiClient /// 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. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 TunedModelsGenerateContentAsync( string tunedModelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs index 52d3050fd..b357faad2 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,48 +41,48 @@ 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. + /// /// /// Tuned model as a source for training a new model. /// - /// - /// 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. - /// - /// - /// Optional. A short description of this model. + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// /// /// Tuning tasks that create tuned models. /// + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// /// /// 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. /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` - /// - /// - /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces. + /// + /// Optional. A short description of this model. /// /// /// 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. 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. + /// /// 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 TunedModelsPatchAsync( string tunedModelsId, string? updateMask = default, + string? displayName = default, global::Google.Gemini.TunedModelSource? tunedModelSource = default, - global::System.Collections.Generic.IList? readerProjectNumbers = default, - int? topK = default, - string? description = default, + string? baseModel = default, global::Google.Gemini.TuningTask? tuningTask = default, + global::System.Collections.Generic.IList? readerProjectNumbers = default, float? temperature = default, - string? baseModel = default, - string? displayName = default, + string? description = default, float? topP = 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..6d247e33f 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 @@ -36,23 +36,23 @@ public partial interface IGeminiClient /// Create a permission to a specific resource. /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// 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.PermissionRole? role = 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..065efa6e8 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 @@ -46,14 +46,14 @@ public partial interface IGeminiClient /// /// /// - /// - /// 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. /// - /// - /// Optional. Immutable. The type of the grantee. + /// + /// Required. The role granted by this permission. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -62,9 +62,9 @@ public partial interface IGeminiClient string tunedModelsId, 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.PermissionRole? role = 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 0f476db80..865e482ec 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 @@ -36,51 +36,51 @@ public partial interface IGeminiClient /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// 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 TunedModelsStreamGenerateContentAsync( string tunedModelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs index f68534656..ab683cccf 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 @@ -22,51 +22,51 @@ public partial interface IGeminiClient /// 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`. /// /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync( string tunedModelsId, - string? model = default, - global::System.Collections.Generic.IList? tools = default, + global::Google.Gemini.Content? systemInstruction = default, global::Google.Gemini.ToolConfig? toolConfig = default, - bool? store = default, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default, + global::System.Collections.Generic.IList? tools = default, + string? cachedContent = default, + bool? store = default, global::Google.Gemini.GenerationConfig? generationConfig = default, - global::System.Collections.Generic.IList? contents = default, - global::Google.Gemini.Content? systemInstruction = default, + string? model = default, global::System.Collections.Generic.IList? safetySettings = default, - string? cachedContent = 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.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.g.cs index 87fad62e4..2acec7a9b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.g.cs @@ -40,7 +40,7 @@ public partial interface IGeminiClient : global::System.IDisposable /// - /// + /// /// global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDelivery.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDelivery.g.cs index 7b3d63773..aaeb70e21 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDelivery.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDelivery.g.cs @@ -20,7 +20,7 @@ public sealed class AudioResponseFormatDeliveryJsonConverter : global::System.Te { return global::Google.Gemini.AudioResponseFormatDeliveryExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullable.g.cs index 5fad9ad61..0008353c9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullable.g.cs @@ -20,7 +20,7 @@ public sealed class AudioResponseFormatDeliveryNullableJsonConverter : global::S { return global::Google.Gemini.AudioResponseFormatDeliveryExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeType.g.cs index 3c4e4f8aa..b52e36dc8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeType.g.cs @@ -20,7 +20,7 @@ public sealed class AudioResponseFormatMimeTypeJsonConverter : global::System.Te { return global::Google.Gemini.AudioResponseFormatMimeTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullable.g.cs index 0da5c3858..204727c84 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class AudioResponseFormatMimeTypeNullableJsonConverter : global::S { return global::Google.Gemini.AudioResponseFormatMimeTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigMode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigMode.g.cs index 09e51c195..0b2a04e26 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigMode.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigMode.g.cs @@ -20,7 +20,7 @@ public sealed class AudioTranscriptionConfigModeJsonConverter : global::System.T { return global::Google.Gemini.AudioTranscriptionConfigModeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullable.g.cs index 4d1940bcf..70c8755d2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class AudioTranscriptionConfigModeNullableJsonConverter : global:: { return global::Google.Gemini.AudioTranscriptionConfigModeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivity.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivity.g.cs index d29702ab3..d66bf6c8f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivity.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivity.g.cs @@ -20,7 +20,7 @@ public sealed class AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverte { return global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivityExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullable.g.cs index 96559a351..5d9d6d6fe 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullable.g.cs @@ -20,7 +20,7 @@ public sealed class AutomaticActivityDetectionEndOfSpeechSensitivityNullableJson { return global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivityExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivity.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivity.g.cs index 6ec829b66..7d49501c4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivity.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivity.g.cs @@ -20,7 +20,7 @@ public sealed class AutomaticActivityDetectionStartOfSpeechSensitivityJsonConver { return global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivityExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullable.g.cs index b7c401da1..23681457c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullable.g.cs @@ -20,7 +20,7 @@ public sealed class AutomaticActivityDetectionStartOfSpeechSensitivityNullableJs { return global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivityExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReason.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReason.g.cs index 0c45ea09f..0812f5ed8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReason.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReason.g.cs @@ -20,7 +20,7 @@ public sealed class CandidateFinishReasonJsonConverter : global::System.Text.Jso { return global::Google.Gemini.CandidateFinishReasonExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReasonNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReasonNullable.g.cs index 6c3825e8e..d2fcdd164 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReasonNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CandidateFinishReasonNullable.g.cs @@ -20,7 +20,7 @@ public sealed class CandidateFinishReasonNullableJsonConverter : global::System. { return global::Google.Gemini.CandidateFinishReasonExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcome.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcome.g.cs index 19a65cf6f..e0f76c751 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcome.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcome.g.cs @@ -20,7 +20,7 @@ public sealed class CodeExecutionResultOutcomeJsonConverter : global::System.Tex { return global::Google.Gemini.CodeExecutionResultOutcomeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullable.g.cs index 1bd7a9400..3c0b43b35 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class CodeExecutionResultOutcomeNullableJsonConverter : global::Sy { return global::Google.Gemini.CodeExecutionResultOutcomeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicie.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicie.g.cs index 8318bff86..01e0f3a2b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicie.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicie.g.cs @@ -20,7 +20,7 @@ public sealed class ComputerUseDisabledSafetyPolicieJsonConverter : global::Syst { return global::Google.Gemini.ComputerUseDisabledSafetyPolicieExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullable.g.cs index 394ba5361..9427213ef 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ComputerUseDisabledSafetyPolicieNullableJsonConverter : glob { return global::Google.Gemini.ComputerUseDisabledSafetyPolicieExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironment.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironment.g.cs index 5b2349062..76c99f94a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironment.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironment.g.cs @@ -20,7 +20,7 @@ public sealed class ComputerUseEnvironmentJsonConverter : global::System.Text.Js { return global::Google.Gemini.ComputerUseEnvironmentExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironmentNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironmentNullable.g.cs index 8d0c60af0..b551e0bfb 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironmentNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ComputerUseEnvironmentNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ComputerUseEnvironmentNullableJsonConverter : global::System { return global::Google.Gemini.ComputerUseEnvironmentExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkMode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkMode.g.cs index a42eef4ad..4ff08b45b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkMode.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkMode.g.cs @@ -20,7 +20,7 @@ public sealed class CreateEnvironmentRequestNetworkModeJsonConverter : global::S { return global::Google.Gemini.CreateEnvironmentRequestNetworkModeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullable.g.cs index 8c65fb6de..3f72a122a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class CreateEnvironmentRequestNetworkModeNullableJsonConverter : g { return global::Google.Gemini.CreateEnvironmentRequestNetworkModeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentState.g.cs index 2c6f38f95..258135867 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentState.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentState.g.cs @@ -20,7 +20,7 @@ public sealed class DocumentStateJsonConverter : global::System.Text.Json.Serial { return global::Google.Gemini.DocumentStateExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentStateNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentStateNullable.g.cs index 4bfbbad02..afe0eaaaa 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentStateNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DocumentStateNullable.g.cs @@ -20,7 +20,7 @@ public sealed class DocumentStateNullableJsonConverter : global::System.Text.Jso { return global::Google.Gemini.DocumentStateExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigMode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigMode.g.cs index 94bbe893a..345959d9f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigMode.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigMode.g.cs @@ -20,7 +20,7 @@ public sealed class DynamicRetrievalConfigModeJsonConverter : global::System.Tex { return global::Google.Gemini.DynamicRetrievalConfigModeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullable.g.cs index 4ef0ac7c9..579cbbea2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class DynamicRetrievalConfigModeNullableJsonConverter : global::Sy { return global::Google.Gemini.DynamicRetrievalConfigModeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchState.g.cs index 9101d30ed..e9fef86ea 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchState.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchState.g.cs @@ -20,7 +20,7 @@ public sealed class EmbedContentBatchStateJsonConverter : global::System.Text.Js { return global::Google.Gemini.EmbedContentBatchStateExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchStateNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchStateNullable.g.cs index a0ecc936e..cf425c044 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchStateNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentBatchStateNullable.g.cs @@ -20,7 +20,7 @@ public sealed class EmbedContentBatchStateNullableJsonConverter : global::System { return global::Google.Gemini.EmbedContentBatchStateExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskType.g.cs index f0e52fee8..75aa0e7ae 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskType.g.cs @@ -20,7 +20,7 @@ public sealed class EmbedContentConfigTaskTypeJsonConverter : global::System.Tex { return global::Google.Gemini.EmbedContentConfigTaskTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullable.g.cs index fbbfcddd5..f8c86e70b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class EmbedContentConfigTaskTypeNullableJsonConverter : global::Sy { return global::Google.Gemini.EmbedContentConfigTaskTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskType.g.cs index 1cac66870..51883e6e6 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskType.g.cs @@ -20,7 +20,7 @@ public sealed class EmbedContentRequestTaskTypeJsonConverter : global::System.Te { return global::Google.Gemini.EmbedContentRequestTaskTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullable.g.cs index 35be16c1f..aa9b05068 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class EmbedContentRequestTaskTypeNullableJsonConverter : global::S { return global::Google.Gemini.EmbedContentRequestTaskTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileType.g.cs new file mode 100644 index 000000000..52b8a20d9 --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace Google.Gemini.JsonConverters +{ + /// + public sealed class EnvironmentFileTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Google.Gemini.EnvironmentFileType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Google.Gemini.EnvironmentFileTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Google.Gemini.EnvironmentFileType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Google.Gemini.EnvironmentFileType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Google.Gemini.EnvironmentFileType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::Google.Gemini.EnvironmentFileTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileTypeNullable.g.cs new file mode 100644 index 000000000..2b931f220 --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentFileTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace Google.Gemini.JsonConverters +{ + /// + public sealed class EnvironmentFileTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::Google.Gemini.EnvironmentFileType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::Google.Gemini.EnvironmentFileTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::Google.Gemini.EnvironmentFileType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::Google.Gemini.EnvironmentFileType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::Google.Gemini.EnvironmentFileType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::Google.Gemini.EnvironmentFileTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkMode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkMode.g.cs index dc942bf9b..e190a8fd5 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkMode.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkMode.g.cs @@ -20,7 +20,7 @@ public sealed class EnvironmentNetworkModeJsonConverter : global::System.Text.Js { return global::Google.Gemini.EnvironmentNetworkModeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkModeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkModeNullable.g.cs index 6e9f4a7c2..e9d306d92 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkModeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentNetworkModeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class EnvironmentNetworkModeNullableJsonConverter : global::System { return global::Google.Gemini.EnvironmentNetworkModeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatus.g.cs index ecec433ad..e0016a886 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatus.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatus.g.cs @@ -20,7 +20,7 @@ public sealed class EnvironmentStatusJsonConverter : global::System.Text.Json.Se { return global::Google.Gemini.EnvironmentStatusExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatusNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatusNullable.g.cs index 137f8eabb..bcbebdc69 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatusNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.EnvironmentStatusNullable.g.cs @@ -20,7 +20,7 @@ public sealed class EnvironmentStatusNullableJsonConverter : global::System.Text { return global::Google.Gemini.EnvironmentStatusExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguage.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguage.g.cs index aab9f8ef7..c1a646fe8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguage.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguage.g.cs @@ -20,7 +20,7 @@ public sealed class ExecutableCodeLanguageJsonConverter : global::System.Text.Js { return global::Google.Gemini.ExecutableCodeLanguageExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguageNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguageNullable.g.cs index 1738ca54d..e6e652582 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguageNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ExecutableCodeLanguageNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ExecutableCodeLanguageNullableJsonConverter : global::System { return global::Google.Gemini.ExecutableCodeLanguageExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSource.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSource.g.cs index e40028696..59c15a9ad 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSource.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSource.g.cs @@ -20,7 +20,7 @@ public sealed class FileSourceJsonConverter : global::System.Text.Json.Serializa { return global::Google.Gemini.FileSourceExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSourceNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSourceNullable.g.cs index 9909914c8..6211ef415 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSourceNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileSourceNullable.g.cs @@ -20,7 +20,7 @@ public sealed class FileSourceNullableJsonConverter : global::System.Text.Json.S { return global::Google.Gemini.FileSourceExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileState.g.cs index 86c077b6a..4bb0f5174 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileState.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileState.g.cs @@ -20,7 +20,7 @@ public sealed class FileStateJsonConverter : global::System.Text.Json.Serializat { return global::Google.Gemini.FileStateExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileStateNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileStateNullable.g.cs index 246bacd7c..ca1575c49 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileStateNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FileStateNullable.g.cs @@ -20,7 +20,7 @@ public sealed class FileStateNullableJsonConverter : global::System.Text.Json.Se { return global::Google.Gemini.FileStateExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigMode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigMode.g.cs index 0336ff65f..9c0e83c29 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigMode.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigMode.g.cs @@ -20,7 +20,7 @@ public sealed class FunctionCallingConfigModeJsonConverter : global::System.Text { return global::Google.Gemini.FunctionCallingConfigModeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigModeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigModeNullable.g.cs index fb8eb2631..097fe82de 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigModeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionCallingConfigModeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class FunctionCallingConfigModeNullableJsonConverter : global::Sys { return global::Google.Gemini.FunctionCallingConfigModeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehavior.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehavior.g.cs index 590a27877..e33fd6810 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehavior.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehavior.g.cs @@ -20,7 +20,7 @@ public sealed class FunctionDeclarationBehaviorJsonConverter : global::System.Te { return global::Google.Gemini.FunctionDeclarationBehaviorExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullable.g.cs index 9a24f5789..cb8cc763c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullable.g.cs @@ -20,7 +20,7 @@ public sealed class FunctionDeclarationBehaviorNullableJsonConverter : global::S { return global::Google.Gemini.FunctionDeclarationBehaviorExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseScheduling.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseScheduling.g.cs index 4b28d31e2..e0897bde8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseScheduling.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseScheduling.g.cs @@ -20,7 +20,7 @@ public sealed class FunctionResponseSchedulingJsonConverter : global::System.Tex { return global::Google.Gemini.FunctionResponseSchedulingExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseSchedulingNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseSchedulingNullable.g.cs index f6576aa3a..2717dcb07 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseSchedulingNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.FunctionResponseSchedulingNullable.g.cs @@ -20,7 +20,7 @@ public sealed class FunctionResponseSchedulingNullableJsonConverter : global::Sy { return global::Google.Gemini.FunctionResponseSchedulingExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchState.g.cs index 8c77dc51e..5d889fd74 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchState.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchState.g.cs @@ -20,7 +20,7 @@ public sealed class GenerateContentBatchStateJsonConverter : global::System.Text { return global::Google.Gemini.GenerateContentBatchStateExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchStateNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchStateNullable.g.cs index 5ccd18854..38d269df2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchStateNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentBatchStateNullable.g.cs @@ -20,7 +20,7 @@ public sealed class GenerateContentBatchStateNullableJsonConverter : global::Sys { return global::Google.Gemini.GenerateContentBatchStateExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTier.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTier.g.cs index 17a62d648..db2c13583 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTier.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTier.g.cs @@ -20,7 +20,7 @@ public sealed class GenerateContentRequestServiceTierJsonConverter : global::Sys { return global::Google.Gemini.GenerateContentRequestServiceTierExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullable.g.cs index 806e68960..4ce77e345 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullable.g.cs @@ -20,7 +20,7 @@ public sealed class GenerateContentRequestServiceTierNullableJsonConverter : glo { return global::Google.Gemini.GenerateContentRequestServiceTierExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileState.g.cs index 19d1ff2fb..90d97a6b7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileState.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileState.g.cs @@ -20,7 +20,7 @@ public sealed class GeneratedFileStateJsonConverter : global::System.Text.Json.S { return global::Google.Gemini.GeneratedFileStateExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileStateNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileStateNullable.g.cs index 5949c6ba6..609a867fe 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileStateNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GeneratedFileStateNullable.g.cs @@ -20,7 +20,7 @@ public sealed class GeneratedFileStateNullableJsonConverter : global::System.Tex { return global::Google.Gemini.GeneratedFileStateExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolution.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolution.g.cs index 983136602..84db4f3a3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolution.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolution.g.cs @@ -20,7 +20,7 @@ public sealed class GenerationConfigMediaResolutionJsonConverter : global::Syste { return global::Google.Gemini.GenerationConfigMediaResolutionExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullable.g.cs index fce02ab1d..c9beef3f9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullable.g.cs @@ -20,7 +20,7 @@ public sealed class GenerationConfigMediaResolutionNullableJsonConverter : globa { return global::Google.Gemini.GenerationConfigMediaResolutionExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitie.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitie.g.cs index ca5652f4e..02b361faa 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitie.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitie.g.cs @@ -20,7 +20,7 @@ public sealed class GenerationConfigResponseModalitieJsonConverter : global::Sys { return global::Google.Gemini.GenerationConfigResponseModalitieExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullable.g.cs index efbf06f69..3b0284993 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullable.g.cs @@ -20,7 +20,7 @@ public sealed class GenerationConfigResponseModalitieNullableJsonConverter : glo { return global::Google.Gemini.GenerationConfigResponseModalitieExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatio.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatio.g.cs index 14088b353..50450f3f2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatio.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatio.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatAspectRatioJsonConverter : global::System { return global::Google.Gemini.ImageResponseFormatAspectRatioExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullable.g.cs index 8eb834364..a2af4a53c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatAspectRatioNullableJsonConverter : global { return global::Google.Gemini.ImageResponseFormatAspectRatioExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDelivery.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDelivery.g.cs index af8f72865..dbd178e8d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDelivery.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDelivery.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatDeliveryJsonConverter : global::System.Te { return global::Google.Gemini.ImageResponseFormatDeliveryExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullable.g.cs index 0a0867ab5..a312c95d3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatDeliveryNullableJsonConverter : global::S { return global::Google.Gemini.ImageResponseFormatDeliveryExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSize.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSize.g.cs index 58a98e03b..ed5d7f6db 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSize.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSize.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatImageSizeJsonConverter : global::System.T { return global::Google.Gemini.ImageResponseFormatImageSizeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullable.g.cs index 0d51e0d69..1f069d0b9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatImageSizeNullableJsonConverter : global:: { return global::Google.Gemini.ImageResponseFormatImageSizeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeType.g.cs index 79a80aefa..0020334e4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeType.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatMimeTypeJsonConverter : global::System.Te { return global::Google.Gemini.ImageResponseFormatMimeTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullable.g.cs index be338e51f..346761e7b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ImageResponseFormatMimeTypeNullableJsonConverter : global::S { return global::Google.Gemini.ImageResponseFormatMimeTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModality.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModality.g.cs index bbd2d6288..cc4cde6c2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModality.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModality.g.cs @@ -20,7 +20,7 @@ public sealed class ModalityTokenCountModalityJsonConverter : global::System.Tex { return global::Google.Gemini.ModalityTokenCountModalityExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModalityNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModalityNullable.g.cs index d758359ff..66c6f5601 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModalityNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModalityTokenCountModalityNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ModalityTokenCountModalityNullableJsonConverter : global::Sy { return global::Google.Gemini.ModalityTokenCountModalityExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStage.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStage.g.cs index a7948f55c..b09d176d7 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStage.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStage.g.cs @@ -20,7 +20,7 @@ public sealed class ModelStatusModelStageJsonConverter : global::System.Text.Jso { return global::Google.Gemini.ModelStatusModelStageExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStageNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStageNullable.g.cs index 938181d8f..33d2646ed 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStageNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ModelStatusModelStageNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ModelStatusModelStageNullableJsonConverter : global::System. { return global::Google.Gemini.ModelStatusModelStageExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessing.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessing.g.cs index 3a99aae2e..4725c37e1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessing.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessing.g.cs @@ -20,7 +20,7 @@ public sealed class PartMediaProcessingJsonConverter : global::System.Text.Json. { return global::Google.Gemini.PartMediaProcessingExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessingNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessingNullable.g.cs index 8475751e4..4d3ce3051 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessingNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PartMediaProcessingNullable.g.cs @@ -20,7 +20,7 @@ public sealed class PartMediaProcessingNullableJsonConverter : global::System.Te { return global::Google.Gemini.PartMediaProcessingExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeType.g.cs index 8b6439bed..2bb702a81 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeType.g.cs @@ -20,7 +20,7 @@ public sealed class PermissionGranteeTypeJsonConverter : global::System.Text.Jso { return global::Google.Gemini.PermissionGranteeTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeTypeNullable.g.cs index 70176adb6..bdb325349 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionGranteeTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class PermissionGranteeTypeNullableJsonConverter : global::System. { return global::Google.Gemini.PermissionGranteeTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRole.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRole.g.cs index ad3ace26a..c16ccc096 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRole.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRole.g.cs @@ -20,7 +20,7 @@ public sealed class PermissionRoleJsonConverter : global::System.Text.Json.Seria { return global::Google.Gemini.PermissionRoleExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRoleNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRoleNullable.g.cs index eb0a5a8a4..2cc13d50b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRoleNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PermissionRoleNullable.g.cs @@ -20,7 +20,7 @@ public sealed class PermissionRoleNullableJsonConverter : global::System.Text.Js { return global::Google.Gemini.PermissionRoleExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReason.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReason.g.cs index 2353f81e1..0cd4077ea 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReason.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReason.g.cs @@ -20,7 +20,7 @@ public sealed class PromptFeedbackBlockReasonJsonConverter : global::System.Text { return global::Google.Gemini.PromptFeedbackBlockReasonExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullable.g.cs index c6ecd295e..92e66ff51 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullable.g.cs @@ -20,7 +20,7 @@ public sealed class PromptFeedbackBlockReasonNullableJsonConverter : global::Sys { return global::Google.Gemini.PromptFeedbackBlockReasonExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandling.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandling.g.cs index 237e2b5e4..560837a74 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandling.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandling.g.cs @@ -20,7 +20,7 @@ public sealed class RealtimeInputConfigActivityHandlingJsonConverter : global::S { return global::Google.Gemini.RealtimeInputConfigActivityHandlingExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullable.g.cs index ca69c449e..ab169d96c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullable.g.cs @@ -20,7 +20,7 @@ public sealed class RealtimeInputConfigActivityHandlingNullableJsonConverter : g { return global::Google.Gemini.RealtimeInputConfigActivityHandlingExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverage.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverage.g.cs index 73b0f2575..05ab530d8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverage.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverage.g.cs @@ -20,7 +20,7 @@ public sealed class RealtimeInputConfigTurnCoverageJsonConverter : global::Syste { return global::Google.Gemini.RealtimeInputConfigTurnCoverageExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullable.g.cs index b3f3e2f6f..052cbda6f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullable.g.cs @@ -20,7 +20,7 @@ public sealed class RealtimeInputConfigTurnCoverageNullableJsonConverter : globa { return global::Google.Gemini.RealtimeInputConfigTurnCoverageExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategory.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategory.g.cs index 7924fee20..6496b867a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategory.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategory.g.cs @@ -20,7 +20,7 @@ public sealed class SafetyRatingCategoryJsonConverter : global::System.Text.Json { return global::Google.Gemini.SafetyRatingCategoryExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategoryNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategoryNullable.g.cs index efd1232b4..8d78afaa3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategoryNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingCategoryNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SafetyRatingCategoryNullableJsonConverter : global::System.T { return global::Google.Gemini.SafetyRatingCategoryExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbability.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbability.g.cs index 08db19fc1..bb71d23ee 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbability.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbability.g.cs @@ -20,7 +20,7 @@ public sealed class SafetyRatingProbabilityJsonConverter : global::System.Text.J { return global::Google.Gemini.SafetyRatingProbabilityExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbabilityNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbabilityNullable.g.cs index bb68f9a98..034e7e3e9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbabilityNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetyRatingProbabilityNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SafetyRatingProbabilityNullableJsonConverter : global::Syste { return global::Google.Gemini.SafetyRatingProbabilityExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategory.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategory.g.cs index f2f23980f..c827b77d1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategory.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategory.g.cs @@ -20,7 +20,7 @@ public sealed class SafetySettingCategoryJsonConverter : global::System.Text.Jso { return global::Google.Gemini.SafetySettingCategoryExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategoryNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategoryNullable.g.cs index 467f01e5e..1ffe0ebe2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategoryNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingCategoryNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SafetySettingCategoryNullableJsonConverter : global::System. { return global::Google.Gemini.SafetySettingCategoryExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThreshold.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThreshold.g.cs index 771db1d4c..4442a6eed 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThreshold.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThreshold.g.cs @@ -20,7 +20,7 @@ public sealed class SafetySettingThresholdJsonConverter : global::System.Text.Js { return global::Google.Gemini.SafetySettingThresholdExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThresholdNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThresholdNullable.g.cs index a6d468ee2..f7739c41c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThresholdNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SafetySettingThresholdNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SafetySettingThresholdNullableJsonConverter : global::System { return global::Google.Gemini.SafetySettingThresholdExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaType.g.cs index f20a0f538..c4b0475dc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaType.g.cs @@ -20,7 +20,7 @@ public sealed class SchemaTypeJsonConverter : global::System.Text.Json.Serializa { return global::Google.Gemini.SchemaTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaTypeNullable.g.cs index 1778639e1..029eaf9cf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SchemaTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SchemaTypeNullableJsonConverter : global::System.Text.Json.S { return global::Google.Gemini.SchemaTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceType.g.cs index 66d27c89e..17d293c17 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceType.g.cs @@ -20,7 +20,7 @@ public sealed class SourceTypeJsonConverter : global::System.Text.Json.Serializa { return global::Google.Gemini.SourceTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceTypeNullable.g.cs index 321499727..3e6b876c3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.SourceTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class SourceTypeNullableJsonConverter : global::System.Text.Json.S { return global::Google.Gemini.SourceTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeType.g.cs index 33852a1f7..3b863417a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeType.g.cs @@ -20,7 +20,7 @@ public sealed class TextResponseFormatMimeTypeJsonConverter : global::System.Tex { return global::Google.Gemini.TextResponseFormatMimeTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullable.g.cs index bf5737151..31d8a10f2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class TextResponseFormatMimeTypeNullableJsonConverter : global::Sy { return global::Google.Gemini.TextResponseFormatMimeTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevel.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevel.g.cs index 135d91f25..04ad4e0a1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevel.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevel.g.cs @@ -20,7 +20,7 @@ public sealed class ThinkingConfigThinkingLevelJsonConverter : global::System.Te { return global::Google.Gemini.ThinkingConfigThinkingLevelExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullable.g.cs index cfc48d48e..b685b6730 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ThinkingConfigThinkingLevelNullableJsonConverter : global::S { return global::Google.Gemini.ThinkingConfigThinkingLevelExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolType.g.cs index d93a56196..ef1781972 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolType.g.cs @@ -20,7 +20,7 @@ public sealed class ToolCallToolTypeJsonConverter : global::System.Text.Json.Ser { return global::Google.Gemini.ToolCallToolTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolTypeNullable.g.cs index 99bc5ddf3..f3119ffdf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolCallToolTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ToolCallToolTypeNullableJsonConverter : global::System.Text. { return global::Google.Gemini.ToolCallToolTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolType.g.cs index 974fa3e00..14eaf6405 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolType.g.cs @@ -20,7 +20,7 @@ public sealed class ToolResponseToolTypeJsonConverter : global::System.Text.Json { return global::Google.Gemini.ToolResponseToolTypeExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolTypeNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolTypeNullable.g.cs index 34a4ad8fc..9ed1d8757 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolTypeNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.ToolResponseToolTypeNullable.g.cs @@ -20,7 +20,7 @@ public sealed class ToolResponseToolTypeNullableJsonConverter : global::System.T { return global::Google.Gemini.ToolResponseToolTypeExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelState.g.cs index 71ea9f9dc..b15a4e995 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelState.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelState.g.cs @@ -20,7 +20,7 @@ public sealed class TunedModelStateJsonConverter : global::System.Text.Json.Seri { return global::Google.Gemini.TunedModelStateExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelStateNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelStateNullable.g.cs index 26b4ca782..85b4067ff 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelStateNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.TunedModelStateNullable.g.cs @@ -20,7 +20,7 @@ public sealed class TunedModelStateNullableJsonConverter : global::System.Text.J { return global::Google.Gemini.TunedModelStateExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UnixTimestamp.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UnixTimestamp.g.cs index 48669c276..d9eb55241 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UnixTimestamp.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UnixTimestamp.g.cs @@ -19,7 +19,7 @@ public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization { return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp); } - + return global::System.DateTimeOffset.FromUnixTimeMilliseconds(unixTimestamp); } if (reader.TryGetInt32(out int unixTimestampInt)) diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatus.g.cs index 8f78af177..8fe03b8d2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatus.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatus.g.cs @@ -20,7 +20,7 @@ public sealed class UrlMetadataUrlRetrievalStatusJsonConverter : global::System. { return global::Google.Gemini.UrlMetadataUrlRetrievalStatusExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullable.g.cs index 1f0837945..b110dfdb4 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullable.g.cs @@ -20,7 +20,7 @@ public sealed class UrlMetadataUrlRetrievalStatusNullableJsonConverter : global: { return global::Google.Gemini.UrlMetadataUrlRetrievalStatusExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTier.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTier.g.cs index 55212d727..db37ecc7b 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTier.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTier.g.cs @@ -20,7 +20,7 @@ public sealed class UsageMetadataServiceTierJsonConverter : global::System.Text. { return global::Google.Gemini.UsageMetadataServiceTierExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTierNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTierNullable.g.cs index fa1b61cb3..1fab09bcf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTierNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.UsageMetadataServiceTierNullable.g.cs @@ -20,7 +20,7 @@ public sealed class UsageMetadataServiceTierNullableJsonConverter : global::Syst { return global::Google.Gemini.UsageMetadataServiceTierExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevel.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevel.g.cs index 5c55e03ca..abe37bab3 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevel.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevel.g.cs @@ -20,7 +20,7 @@ public sealed class V1mainMediaResolutionLevelJsonConverter : global::System.Tex { return global::Google.Gemini.V1mainMediaResolutionLevelExtensions.ToEnum(stringValue) ?? default; } - + break; } case global::System.Text.Json.JsonTokenType.Number: diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullable.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullable.g.cs index bd4db8783..646219078 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullable.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullable.g.cs @@ -20,7 +20,7 @@ public sealed class V1mainMediaResolutionLevelNullableJsonConverter : global::Sy { return global::Google.Gemini.V1mainMediaResolutionLevelExtensions.ToEnum(stringValue); } - + break; } case global::System.Text.Json.JsonTokenType.Number: 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 61dff1996..0ae82c7dc 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs @@ -7,71 +7,83 @@ namespace Google.Gemini { /// - /// + /// /// [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, Converters = new global::System.Type[] { - typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), - 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.DynamicRetrievalConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter), + + typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter), @@ -81,488 +93,485 @@ namespace Google.Gemini typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter), typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter), typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter), typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter), typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter), - - typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter), - typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter), - typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter), - typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter), - typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter), - typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter), - typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter), + typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter), 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.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.TransferOwnershipRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclaration))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [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.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.LogprobsResultCandidate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] + [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(global::Google.Gemini.ToolResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")] + [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(global::Google.Gemini.Image))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AuthToken))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TranslationConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ResponseFormatConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] + [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.ListFileSearchStoresResponse))] + [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.ChunkingConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WhiteSpaceConfig))] - [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.UrlContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySetting))] - [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.Interval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageAuto))] - [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.ImageConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormatMimeType), TypeInfoPropertyName = "TextResponseFormatMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelSource))] + [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.GoogleAiGenerativelanguageV1betaSegment))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearchRetrieval))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Model))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkCustomMetadata))] + [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.ListFilesResponse))] + [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.SpeakerVoiceConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] + [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.Web))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbeddingUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContentEmbedding))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Blob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCount))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] [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.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.GoogleAiGenerativelanguageV1betaSegment))] - [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.RealtimeInputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] - [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.InlinedResponses))] - [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.LatLng))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningTask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelState), TypeInfoPropertyName = "TunedModelState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunkStringList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SessionResumptionConfig))] - [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.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.GoogleSearchRetrieval))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchEntryPoint))] + [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.CustomMetadata))] + [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.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.PromptFeedback))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatus))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] + [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.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.Part))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.V1mainMediaResolution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PartMediaProcessing), TypeInfoPropertyName = "PartMediaProcessing2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCode))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VideoMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FileData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Blob))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCall))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PartMediaProcessing), TypeInfoPropertyName = "PartMediaProcessing2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchEmbedContentsResponse))] - [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.ContentEmbedding))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] + [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(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContextMetadata))] + [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.GroundingAttribution))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Content))] + [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.CitationMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LogprobsResult))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Document))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DocumentState), TypeInfoPropertyName = "DocumentState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))] [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.UrlMetadataUrlRetrievalStatus), TypeInfoPropertyName = "UrlMetadataUrlRetrievalStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RegisterFilesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] - [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.GroundingChunkCustomMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Corpus))] - [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.CachedContent))] - [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.GenerateContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Status))] - [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.ResponseFormatConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormat))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormat))] - [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.GoogleSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SearchTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalMetadata))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SpeechConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.VoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.MultiSpeakerVoiceConfig))] - [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.ImageSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Web))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievedContext))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Maps))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Image))] - [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.StringList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchState), TypeInfoPropertyName = "EmbedContentBatchState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputEmbedContentConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensResponse))] [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.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.WebSearch))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PrebuiltVoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageHints))] + [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::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.FunctionResponseScheduling), TypeInfoPropertyName = "FunctionResponseScheduling2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.StringList))] [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::System.Collections.Generic.IList))] - [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::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Environment))] + [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.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.EnvironmentNetworkEgressAllowlist))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RealtimeInputConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AutomaticActivityDetection))] + [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.TextResponseFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TextResponseFormatMimeType), TypeInfoPropertyName = "TextResponseFormatMimeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GetEnvironmentFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFile))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LatLng))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PlaceAnswerSources))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageAuto))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.LanguageHints))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfigMode), TypeInfoPropertyName = "AudioTranscriptionConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AttributionSourceId))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SemanticRetrieverChunk))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] + [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.RetrievalMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.RetrievalConfig))] + [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.ImageSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContent))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolConfig))] [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.GenerateContentRequestServiceTier), TypeInfoPropertyName = "GenerateContentRequestServiceTier2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfig))] [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.ReviewSnippet))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BidiGenerateContentSetup))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ContextWindowCompressionConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.HistoryConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AttributionSourceId))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SemanticRetrieverChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingPassageId))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningSnapshot))] - [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.SpeakerVoiceConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AsyncBatchEmbedContentRequest))] - [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.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.BatchEmbedContentsResponse))] + [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.CodeExecutionResultOutcome), TypeInfoPropertyName = "CodeExecutionResultOutcome2")] + [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.TunedModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TunedModelState), TypeInfoPropertyName = "TunedModelState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningTask))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionResponseBlob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfigMode), TypeInfoPropertyName = "FunctionCallingConfigMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleMaps))] - [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.FileSearchStore))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ListFilesResponse))] - [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::Google.Gemini.ThinkingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolResponseToolType), TypeInfoPropertyName = "ToolResponseToolType2")] - [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.BatchStats))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchState), TypeInfoPropertyName = "GenerateContentBatchState2")] - [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.ImageResponseFormatMimeType), TypeInfoPropertyName = "ImageResponseFormatMimeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImageResponseFormatImageSize), TypeInfoPropertyName = "ImageResponseFormatImageSize2")] - [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.Source))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponses))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CachedContentUsageMetadata))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CitationSource))] + [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.LogprobsResultCandidate))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EgressRule))] + [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.MultiSpeakerVoiceConfig))] + [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.InlinedResponses))] + [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.InlinedEmbedContentRequest))] + [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.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.VideoFileMetadata))] - [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.V1mainMediaResolutionLevel), TypeInfoPropertyName = "V1mainMediaResolutionLevel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GroundingAttribution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Environment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentNetworkMode), TypeInfoPropertyName = "EnvironmentNetworkMode2")] - [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.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.GeneratedFileState), TypeInfoPropertyName = "GeneratedFileState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModelStatusModelStage), TypeInfoPropertyName = "ModelStatusModelStage2")] + [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.TransferOwnershipResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Empty))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UrlContext))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [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.ListTunedModelsResponse))] + [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.BatchGenerateContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateFileResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InputConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedRequests))] + [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.FunctionCallingConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionCallingConfigMode), TypeInfoPropertyName = "FunctionCallingConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.UploadToFileSearchStoreRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TuningSnapshot))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentBatchState), TypeInfoPropertyName = "EmbedContentBatchState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentRequestServiceTier), TypeInfoPropertyName = "GenerateContentRequestServiceTier2")] + [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.CreateFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequestNetworkMode), TypeInfoPropertyName = "CreateEnvironmentRequestNetworkMode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Schema))] - [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(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.InlinedEmbedContentResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioTranscriptionConfigMode), TypeInfoPropertyName = "AudioTranscriptionConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchOutput))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Operation))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerateContentBatchState), TypeInfoPropertyName = "GenerateContentBatchState2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.BatchStats))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CodeExecution))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.DynamicRetrievalConfigMode), TypeInfoPropertyName = "DynamicRetrievalConfigMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SessionResumptionConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EnvironmentFileType), TypeInfoPropertyName = "EnvironmentFileType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TransferOwnershipRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleSearch))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Interval))] [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.Candidate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedback))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Model))] - [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.FunctionDeclaration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.FunctionDeclarationBehavior), TypeInfoPropertyName = "FunctionDeclarationBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AuthToken))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SlidingWindow))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ImportFileRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GenerationConfigMediaResolution), TypeInfoPropertyName = "GenerationConfigMediaResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.TranslationConfig))] - [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.RegisterFilesResponse))] - [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::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CountTokensRequest))] + [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.InlinedRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [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::Google.Gemini.SourceType), TypeInfoPropertyName = "SourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ToolCallToolType), TypeInfoPropertyName = "ToolCallToolType2")] + [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.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.UploadToFileSearchStoreRequest))] - [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.Empty))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Permission))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionGranteeType), TypeInfoPropertyName = "PermissionGranteeType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PermissionRole), TypeInfoPropertyName = "PermissionRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.GoogleMaps))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingThreshold), TypeInfoPropertyName = "SafetySettingThreshold2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.SafetySettingCategory), TypeInfoPropertyName = "SafetySettingCategory2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ReviewSnippet))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))] + [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.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.ImageResponseFormatImageSize), TypeInfoPropertyName = "ImageResponseFormatImageSize2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.EmbedContentConfigTaskType), TypeInfoPropertyName = "EmbedContentConfigTaskType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormat))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatDelivery), TypeInfoPropertyName = "AudioResponseFormatDelivery2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.AudioResponseFormatMimeType), TypeInfoPropertyName = "AudioResponseFormatMimeType2")] [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.CustomLongRunningOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.Hyperparameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ComputerUse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [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.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.UsageMetadataServiceTier), TypeInfoPropertyName = "UsageMetadataServiceTier2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [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.RegisterFilesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.CreateEnvironmentRequestNetworkMode), TypeInfoPropertyName = "CreateEnvironmentRequestNetworkMode2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ExecutableCodeLanguage), TypeInfoPropertyName = "ExecutableCodeLanguage2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ThinkingConfigThinkingLevel), TypeInfoPropertyName = "ThinkingConfigThinkingLevel2")] + [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.IList))] + [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::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.ComputerUseDisabledSafetyPolicie), TypeInfoPropertyName = "ComputerUseDisabledSafetyPolicie2")] - [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::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.EmbedContentRequestTaskType), TypeInfoPropertyName = "EmbedContentRequestTaskType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PromptFeedbackBlockReason), TypeInfoPropertyName = "PromptFeedbackBlockReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.PlaceAnswerSources))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.ModalityTokenCountModality), TypeInfoPropertyName = "ModalityTokenCountModality2")] - [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::Google.Gemini.ComputerUseEnvironment), TypeInfoPropertyName = "ComputerUseEnvironment2")] [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 b32882574..444db60c1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContextTypes.g.cs @@ -6,1349 +6,1369 @@ namespace Google.Gemini { /// - /// + /// /// public sealed partial class JsonSerializerContextTypes { /// - /// + /// /// public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; } /// - /// + /// /// public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; } /// - /// + /// /// public global::System.Text.Json.JsonElement? JsonElement { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedEmbedContentRequests? Type0 { get; set; } + public global::Google.Gemini.FunctionDeclaration? Type0 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type1 { get; set; } + public string? Type1 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedEmbedContentRequest? Type2 { get; set; } + public object? Type2 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TransferOwnershipRequest? Type3 { get; set; } + public global::Google.Gemini.Schema? Type3 { get; set; } /// - /// + /// /// - public string? Type4 { get; set; } + public global::Google.Gemini.FunctionDeclarationBehavior? Type4 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Permission? Type5 { get; set; } + public global::Google.Gemini.ToolResponse? Type5 { get; set; } /// - /// + /// /// - public global::Google.Gemini.PermissionRole? Type6 { get; set; } + public global::Google.Gemini.ToolResponseToolType? Type6 { get; set; } /// - /// + /// /// - public global::Google.Gemini.PermissionGranteeType? Type7 { get; set; } + public global::Google.Gemini.GroundingChunkStringList? Type7 { get; set; } /// - /// + /// /// - public global::Google.Gemini.LogprobsResult? Type8 { get; set; } + public global::System.Collections.Generic.IList? Type8 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type9 { get; set; } + public global::Google.Gemini.Image? Type9 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TopCandidates? Type10 { get; set; } + public global::Google.Gemini.FileData? Type10 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type11 { get; set; } + public global::Google.Gemini.AuthToken? Type11 { get; set; } /// - /// + /// /// - public global::Google.Gemini.LogprobsResultCandidate? Type12 { get; set; } + public int? Type12 { get; set; } /// - /// + /// /// - public float? Type13 { get; set; } + public global::Google.Gemini.BidiGenerateContentSetup? Type13 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ChunkingConfig? Type14 { get; set; } + public global::Google.Gemini.CachedContentUsageMetadata? Type14 { get; set; } /// - /// + /// /// - public global::Google.Gemini.WhiteSpaceConfig? Type15 { get; set; } + public global::Google.Gemini.GenerationConfig? Type15 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ModelStatus? Type16 { get; set; } + public global::Google.Gemini.TranslationConfig? Type16 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ModelStatusModelStage? Type17 { get; set; } + public global::Google.Gemini.AudioTranscriptionConfig? Type17 { get; set; } /// - /// + /// /// - public global::Google.Gemini.UrlContext? Type18 { get; set; } + public global::Google.Gemini.GenerationConfigMediaResolution? Type18 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SafetySetting? Type19 { get; set; } + public global::Google.Gemini.ResponseFormatConfig? Type19 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SafetySettingCategory? Type20 { get; set; } + public global::Google.Gemini.ThinkingConfig? Type20 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SafetySettingThreshold? Type21 { get; set; } + public float? Type21 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Interval? Type22 { get; set; } + public bool? Type22 { get; set; } /// - /// + /// /// - public int? Type23 { get; set; } + public global::Google.Gemini.ImageConfig? Type23 { get; set; } /// - /// + /// /// - public global::Google.Gemini.LanguageAuto? Type24 { get; set; } + public global::Google.Gemini.SpeechConfig? Type24 { get; set; } /// - /// + /// /// - public global::Google.Gemini.DynamicRetrievalConfig? Type25 { get; set; } + public global::System.Collections.Generic.IList? Type25 { get; set; } /// - /// + /// /// - public global::Google.Gemini.DynamicRetrievalConfigMode? Type26 { get; set; } + public global::Google.Gemini.GenerationConfigResponseModalitie? Type26 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImageConfig? Type27 { get; set; } + public global::Google.Gemini.ListFileSearchStoresResponse? Type27 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TextResponseFormat? Type28 { get; set; } + public global::System.Collections.Generic.IList? Type28 { get; set; } /// - /// + /// /// - public object? Type29 { get; set; } + public global::Google.Gemini.FileSearchStore? Type29 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TextResponseFormatMimeType? Type30 { get; set; } + public global::Google.Gemini.ChunkingConfig? Type30 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TunedModelSource? Type31 { get; set; } + public global::Google.Gemini.WhiteSpaceConfig? Type31 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TuningExamples? Type32 { get; set; } + public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type32 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type33 { get; set; } + public global::Google.Gemini.EmbedContentBatch? Type33 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TuningExample? Type34 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type34 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListDocumentsResponse? Type35 { get; set; } + public global::Google.Gemini.GoogleSearchRetrieval? Type35 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type36 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfig? Type36 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Document? Type37 { get; set; } + public global::Google.Gemini.Model? Type37 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Type38 { get; set; } + public global::Google.Gemini.GroundingChunkCustomMetadata? Type38 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListPermissionsResponse? Type39 { get; set; } + public global::Google.Gemini.EmbedContentBatchOutput? Type39 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type40 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponses? Type40 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RealtimeInputConfig? Type41 { get; set; } + public global::Google.Gemini.ListFilesResponse? Type41 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AutomaticActivityDetection? Type42 { get; set; } + public global::System.Collections.Generic.IList? Type42 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type43 { get; set; } + public global::Google.Gemini.File? Type43 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type44 { get; set; } + public global::Google.Gemini.SpeakerVoiceConfig? Type44 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedResponses? Type45 { get; set; } + public global::Google.Gemini.VoiceConfig? Type45 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type46 { get; set; } + public global::Google.Gemini.GroundingChunk? Type46 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedResponse? Type47 { get; set; } + public global::Google.Gemini.RetrievedContext? Type47 { get; set; } /// - /// + /// /// - public global::Google.Gemini.LatLng? Type48 { get; set; } + public global::Google.Gemini.Web? Type48 { get; set; } /// - /// + /// /// - public double? Type49 { get; set; } + public global::Google.Gemini.Maps? Type49 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TunedModel? Type50 { get; set; } + public global::Google.Gemini.EmbedContentResponse? Type50 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type51 { get; set; } + public global::Google.Gemini.EmbeddingUsageMetadata? Type51 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TuningTask? Type52 { get; set; } + public global::Google.Gemini.ContentEmbedding? Type52 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TunedModelState? Type53 { get; set; } + public global::Google.Gemini.Blob? Type53 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GroundingChunkStringList? Type54 { get; set; } + public byte[]? Type54 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SessionResumptionConfig? Type55 { get; set; } + public global::Google.Gemini.ModalityTokenCount? Type55 { get; set; } /// - /// + /// /// - public global::Google.Gemini.McpServer? Type56 { get; set; } + public global::Google.Gemini.ModalityTokenCountModality? Type56 { get; set; } /// - /// + /// /// - public global::Google.Gemini.StreamableHttpTransport? Type57 { get; set; } + public global::Google.Gemini.TuningExamples? Type57 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CitationMetadata? Type58 { get; set; } + public global::System.Collections.Generic.IList? Type58 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type59 { get; set; } + public global::Google.Gemini.TuningExample? Type59 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CitationSource? Type60 { get; set; } + public global::Google.Gemini.SearchEntryPoint? Type60 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GoogleSearchRetrieval? Type61 { get; set; } + public global::Google.Gemini.ImportFileRequest? Type61 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ToolConfig? Type62 { get; set; } + public global::System.Collections.Generic.IList? Type62 { get; set; } /// - /// + /// /// - public bool? Type63 { get; set; } + public global::Google.Gemini.CustomMetadata? Type63 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionCallingConfig? Type64 { get; set; } + public global::Google.Gemini.BatchEmbedContentsRequest? Type64 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RetrievalConfig? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Part? Type66 { get; set; } + public global::Google.Gemini.EmbedContentRequest? Type66 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ToolCall? Type67 { get; set; } + public global::Google.Gemini.GenerateContentResponse? Type67 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionCall? Type68 { get; set; } + public global::System.Collections.Generic.IList? Type68 { get; set; } /// - /// + /// /// - public global::Google.Gemini.V1mainMediaResolution? Type69 { get; set; } + public global::Google.Gemini.Candidate? Type69 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ToolResponse? Type70 { get; set; } + public global::Google.Gemini.PromptFeedback? Type70 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ExecutableCode? Type71 { get; set; } + public global::Google.Gemini.ModelStatus? Type71 { get; set; } /// - /// + /// /// - public global::Google.Gemini.VideoMetadata? Type72 { get; set; } + public global::Google.Gemini.UsageMetadata? Type72 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FileData? Type73 { get; set; } + public global::Google.Gemini.CustomLongRunningOperation? Type73 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionResponse? Type74 { get; set; } + public global::Google.Gemini.Status? Type74 { get; set; } /// - /// + /// /// - public byte[]? Type75 { get; set; } + public global::Google.Gemini.ListCorporaResponse? Type75 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Blob? Type76 { get; set; } + public global::System.Collections.Generic.IList? Type76 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CodeExecutionResult? Type77 { get; set; } + public global::Google.Gemini.Corpus? Type77 { get; set; } /// - /// + /// /// - public global::Google.Gemini.PartMediaProcessing? Type78 { get; set; } + public global::Google.Gemini.Part? Type78 { get; set; } /// - /// + /// /// - public global::Google.Gemini.BatchEmbedContentsResponse? Type79 { get; set; } + public global::Google.Gemini.V1mainMediaResolution? Type79 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbeddingUsageMetadata? Type80 { get; set; } + public global::Google.Gemini.PartMediaProcessing? Type80 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type81 { get; set; } + public global::Google.Gemini.ExecutableCode? Type81 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ContentEmbedding? Type82 { get; set; } + public global::Google.Gemini.VideoMetadata? Type82 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ToolCallToolType? Type83 { get; set; } + public global::Google.Gemini.ToolCall? Type83 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CodeExecutionResultOutcome? Type84 { get; set; } + public global::Google.Gemini.FunctionResponse? Type84 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Content? Type85 { get; set; } + public global::Google.Gemini.FunctionCall? Type85 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type86 { get; set; } + public global::Google.Gemini.CodeExecutionResult? Type86 { get; set; } /// - /// + /// /// - public global::Google.Gemini.UrlMetadata? Type87 { get; set; } + public global::System.Collections.Generic.IList? Type87 { get; set; } /// - /// + /// /// - public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type88 { get; set; } + public global::Google.Gemini.InlinedEmbedContentResponse? Type88 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TransferOwnershipResponse? Type89 { get; set; } + public double? Type89 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ExecutableCodeLanguage? Type90 { get; set; } + public global::Google.Gemini.UrlContextMetadata? Type90 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentBatchStats? Type91 { get; set; } + public global::Google.Gemini.CandidateFinishReason? Type91 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RegisterFilesRequest? Type92 { get; set; } + public global::Google.Gemini.GroundingMetadata? Type92 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerateContentBatchOutput? Type93 { get; set; } + public global::System.Collections.Generic.IList? Type93 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EgressRule? Type94 { get; set; } + public global::Google.Gemini.GroundingAttribution? Type94 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.Dictionary? Type95 { get; set; } + public global::Google.Gemini.Content? Type95 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GroundingChunkCustomMetadata? Type96 { get; set; } + public global::System.Collections.Generic.IList? Type96 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Corpus? Type97 { get; set; } + public global::Google.Gemini.SafetyRating? Type97 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListCachedContentsResponse? Type98 { get; set; } + public global::Google.Gemini.CitationMetadata? Type98 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type99 { get; set; } + public global::Google.Gemini.LogprobsResult? Type99 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CachedContent? Type100 { get; set; } + public global::Google.Gemini.Document? Type100 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedRequests? Type101 { get; set; } + public global::Google.Gemini.DocumentState? Type101 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type102 { get; set; } + public global::Google.Gemini.EmbedContentBatchStats? Type102 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedRequest? Type103 { get; set; } + public global::Google.Gemini.PrebuiltVoiceConfig? Type103 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerateContentRequest? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerateContentResponse? Type105 { get; set; } + public global::Google.Gemini.UrlMetadata? Type105 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Status? Type106 { get; set; } + public global::Google.Gemini.UrlMetadataUrlRetrievalStatus? Type106 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SafetyRating? Type107 { get; set; } + public global::Google.Gemini.CountTokensResponse? Type107 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SafetyRatingCategory? Type108 { get; set; } + public global::System.Collections.Generic.IList? Type108 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SafetyRatingProbability? Type109 { get; set; } + public global::Google.Gemini.McpServer? Type109 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ResponseFormatConfig? Type110 { get; set; } + public global::Google.Gemini.StreamableHttpTransport? Type110 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImageResponseFormat? Type111 { get; set; } + public global::System.Collections.Generic.IList? Type111 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AudioResponseFormat? Type112 { get; set; } + public global::Google.Gemini.FunctionResponsePart? Type112 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type113 { get; set; } + public global::Google.Gemini.FunctionResponseScheduling? Type113 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CustomMetadata? Type114 { get; set; } + public global::Google.Gemini.StringList? Type114 { get; set; } /// - /// + /// /// - public global::Google.Gemini.DocumentState? Type115 { get; set; } + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type115 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GoogleSearch? Type116 { get; set; } + public global::System.Collections.Generic.IList? Type116 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SearchTypes? Type117 { get; set; } + public global::System.Collections.Generic.IList? Type117 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CodeExecution? Type118 { get; set; } + public global::Google.Gemini.Environment? Type118 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RetrievalMetadata? Type119 { get; set; } + public global::System.Collections.Generic.IList? Type119 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type120 { get; set; } + public global::Google.Gemini.Source? Type120 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SpeechConfig? Type121 { get; set; } + public global::Google.Gemini.EnvironmentStatus? Type121 { get; set; } /// - /// + /// /// - public global::Google.Gemini.VoiceConfig? Type122 { get; set; } + public global::Google.Gemini.EnvironmentNetworkMode? Type122 { get; set; } /// - /// + /// /// - public global::Google.Gemini.MultiSpeakerVoiceConfig? Type123 { get; set; } + public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type123 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AudioResponseFormatMimeType? Type124 { get; set; } + public global::Google.Gemini.RealtimeInputConfig? Type124 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AudioResponseFormatDelivery? Type125 { get; set; } + public global::Google.Gemini.AutomaticActivityDetection? Type125 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImageSearch? Type126 { get; set; } + public global::Google.Gemini.RealtimeInputConfigTurnCoverage? Type126 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GroundingChunk? Type127 { get; set; } + public global::Google.Gemini.RealtimeInputConfigActivityHandling? Type127 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Web? Type128 { get; set; } + public global::Google.Gemini.TextResponseFormat? Type128 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RetrievedContext? Type129 { get; set; } + public global::Google.Gemini.TextResponseFormatMimeType? Type129 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Maps? Type130 { get; set; } + public global::Google.Gemini.GetEnvironmentFilesResponse? Type130 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Image? Type131 { get; set; } + public global::System.Collections.Generic.IList? Type131 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListGeneratedFilesResponse? Type132 { get; set; } + public global::Google.Gemini.EnvironmentFile? Type132 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type133 { get; set; } + public global::Google.Gemini.LatLng? Type133 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GeneratedFile? Type134 { get; set; } + public global::Google.Gemini.PlaceAnswerSources? Type134 { get; set; } /// - /// + /// /// - public global::Google.Gemini.StringList? Type135 { get; set; } + public global::Google.Gemini.LanguageAuto? Type135 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentBatch? Type136 { get; set; } + public global::Google.Gemini.LanguageHints? Type136 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentBatchState? Type137 { get; set; } + public global::Google.Gemini.AudioTranscriptionConfigMode? Type137 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InputEmbedContentConfig? Type138 { get; set; } + public global::Google.Gemini.PromptFeedbackBlockReason? Type138 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentBatchOutput? Type139 { get; set; } + public global::Google.Gemini.AttributionSourceId? Type139 { get; set; } /// - /// + /// /// - public global::Google.Gemini.UsageMetadata? Type140 { get; set; } + public global::Google.Gemini.SemanticRetrieverChunk? Type140 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type141 { get; set; } + public global::Google.Gemini.GroundingPassageId? Type141 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ModalityTokenCount? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// - /// + /// /// - public global::Google.Gemini.UsageMetadataServiceTier? Type143 { get; set; } + public global::System.Collections.Generic.IList? Type143 { get; set; } /// - /// + /// /// - public global::Google.Gemini.WebSearch? Type144 { get; set; } + public global::Google.Gemini.RetrievalMetadata? Type144 { get; set; } /// - /// + /// /// - public global::Google.Gemini.PrebuiltVoiceConfig? Type145 { get; set; } + public global::Google.Gemini.RetrievalConfig? Type145 { get; set; } /// - /// + /// /// - public global::Google.Gemini.LanguageHints? Type146 { get; set; } + public global::Google.Gemini.SearchTypes? Type146 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaGroundingSupport? Type147 { get; set; } + public global::Google.Gemini.WebSearch? Type147 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::Google.Gemini.ImageSearch? Type148 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type149 { get; set; } + public global::Google.Gemini.CachedContent? Type149 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CreateFileResponse? Type150 { get; set; } + public global::Google.Gemini.ToolConfig? Type150 { get; set; } /// - /// + /// /// - public global::Google.Gemini.File? Type151 { get; set; } + public global::System.Collections.Generic.IList? Type151 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::Google.Gemini.Tool? Type152 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Tool? Type153 { get; set; } + public global::System.Collections.Generic.IList? Type153 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerateContentRequestServiceTier? Type154 { get; set; } + public global::System.Collections.Generic.Dictionary? Type154 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerationConfig? Type155 { get; set; } + public global::Google.Gemini.HistoryConfig? Type155 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type156 { get; set; } + public global::Google.Gemini.BatchEmbedContentsResponse? Type156 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type157 { get; set; } + public global::System.Collections.Generic.IList? Type157 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ReviewSnippet? Type158 { get; set; } + public global::Google.Gemini.RegisterFilesRequest? Type158 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InputConfig? Type159 { get; set; } + public global::Google.Gemini.CodeExecutionResultOutcome? Type159 { get; set; } /// - /// + /// /// - public global::Google.Gemini.BidiGenerateContentSetup? Type160 { get; set; } + public global::Google.Gemini.SafetyRatingCategory? Type160 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ContextWindowCompressionConfig? Type161 { get; set; } + public global::Google.Gemini.SafetyRatingProbability? Type161 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AudioTranscriptionConfig? Type162 { get; set; } + public global::Google.Gemini.TunedModel? Type162 { get; set; } /// - /// + /// /// - public global::Google.Gemini.HistoryConfig? Type163 { get; set; } + public global::Google.Gemini.TunedModelSource? Type163 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AttributionSourceId? Type164 { get; set; } + public global::Google.Gemini.TunedModelState? Type164 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SemanticRetrieverChunk? Type165 { get; set; } + public global::Google.Gemini.TuningTask? Type165 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GroundingPassageId? Type166 { get; set; } + public global::Google.Gemini.FunctionResponseBlob? Type166 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TuningSnapshot? Type167 { get; set; } + public global::Google.Gemini.CitationSource? Type167 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FileSearch? Type168 { get; set; } + public global::Google.Gemini.TopCandidates? Type168 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::System.Collections.Generic.IList? Type169 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SpeakerVoiceConfig? Type170 { get; set; } + public global::Google.Gemini.LogprobsResultCandidate? Type170 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AsyncBatchEmbedContentRequest? Type171 { get; set; } + public global::Google.Gemini.EgressRule? Type171 { get; set; } /// - /// + /// /// - public global::Google.Gemini.BatchGenerateContentRequest? Type172 { get; set; } + public global::Google.Gemini.EmbedContentConfig? Type172 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerateContentBatch? Type173 { get; set; } + public global::Google.Gemini.EmbedContentRequestTaskType? Type173 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionResponseScheduling? Type174 { get; set; } + public global::Google.Gemini.MultiSpeakerVoiceConfig? Type174 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type175 { get; set; } + public global::Google.Gemini.GeneratedFile? Type175 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionResponsePart? Type176 { get; set; } + public global::Google.Gemini.GeneratedFileState? Type176 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionResponseBlob? Type177 { get; set; } + public global::Google.Gemini.InlinedResponses? Type177 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionCallingConfigMode? Type178 { get; set; } + public global::System.Collections.Generic.IList? Type178 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GoogleMaps? Type179 { get; set; } + public global::Google.Gemini.InlinedResponse? Type179 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListFileSearchStoresResponse? Type180 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequest? Type180 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::Google.Gemini.ContextWindowCompressionConfig? Type181 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FileSearchStore? Type182 { get; set; } + public global::Google.Gemini.SlidingWindow? Type182 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListFilesResponse? Type183 { get; set; } + public global::Google.Gemini.FileSource? Type183 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type184 { get; set; } + public global::Google.Gemini.FileState? Type184 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type185 { get; set; } + public global::Google.Gemini.VideoFileMetadata? Type185 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SearchEntryPoint? Type186 { get; set; } + public global::Google.Gemini.V1mainMediaResolutionLevel? Type186 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ThinkingConfig? Type187 { get; set; } + public global::Google.Gemini.ModelStatusModelStage? Type187 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ThinkingConfigThinkingLevel? Type188 { get; set; } + public global::Google.Gemini.ListEnvironmentsResponse? Type188 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CountTokensResponse? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ToolResponseToolType? Type190 { get; set; } + public global::Google.Gemini.TransferOwnershipResponse? Type190 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListTunedModelsResponse? Type191 { get; set; } + public global::Google.Gemini.Empty? Type191 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type192 { get; set; } + public global::Google.Gemini.UrlContext? Type192 { get; set; } /// - /// + /// /// - public global::Google.Gemini.BatchStats? Type193 { get; set; } + public global::System.Collections.Generic.IList? Type193 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerateContentBatchState? Type194 { get; set; } + public global::Google.Gemini.ListDocumentsResponse? Type194 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImageResponseFormatAspectRatio? Type195 { get; set; } + public global::System.Collections.Generic.IList? Type195 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImageResponseFormatDelivery? Type196 { get; set; } + public global::Google.Gemini.ListTunedModelsResponse? Type196 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImageResponseFormatMimeType? Type197 { get; set; } + public global::System.Collections.Generic.IList? Type197 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImageResponseFormatImageSize? Type198 { get; set; } + public global::Google.Gemini.FileSearch? Type198 { get; set; } /// - /// + /// /// - public global::Google.Gemini.BatchEmbedContentsRequest? Type199 { get; set; } + public global::Google.Gemini.BatchGenerateContentRequest? Type199 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::Google.Gemini.GenerateContentBatch? Type200 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentRequest? Type201 { get; set; } + public global::Google.Gemini.CreateFileResponse? Type201 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Source? Type202 { get; set; } + public global::Google.Gemini.InputConfig? Type202 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SourceType? Type203 { get; set; } + public global::Google.Gemini.InlinedRequests? Type203 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedEmbedContentResponses? Type204 { get; set; } + public global::Google.Gemini.InputEmbedContentConfig? Type204 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CachedContentUsageMetadata? Type205 { get; set; } + public global::Google.Gemini.InlinedEmbedContentRequests? Type205 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FileSource? Type206 { get; set; } + public global::Google.Gemini.FunctionCallingConfig? Type206 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FileState? Type207 { get; set; } + public global::Google.Gemini.FunctionCallingConfigMode? Type207 { get; set; } /// - /// + /// /// - public global::Google.Gemini.VideoFileMetadata? Type208 { get; set; } + public global::System.Collections.Generic.IList? Type208 { get; set; } /// - /// + /// /// - public global::Google.Gemini.UrlContextMetadata? Type209 { get; set; } + public global::Google.Gemini.UploadToFileSearchStoreRequest? Type209 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type210 { get; set; } + public global::Google.Gemini.TuningSnapshot? Type210 { get; set; } /// - /// + /// /// - public global::Google.Gemini.V1mainMediaResolutionLevel? Type211 { get; set; } + public global::Google.Gemini.CountTokensRequest? Type211 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GroundingAttribution? Type212 { get; set; } + public global::Google.Gemini.GenerateContentRequest? Type212 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Environment? Type213 { get; set; } + public global::Google.Gemini.EmbedContentBatchState? Type213 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::Google.Gemini.GenerateContentRequestServiceTier? Type214 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EnvironmentNetworkMode? Type215 { get; set; } + public global::System.Collections.Generic.IList? Type215 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? Type216 { get; set; } + public global::Google.Gemini.SafetySetting? Type216 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EnvironmentStatus? Type217 { get; set; } + public global::Google.Gemini.CreateFileRequest? Type217 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type218 { get; set; } + public global::Google.Gemini.GenerateContentBatchOutput? Type218 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type219 { get; set; } + public global::Google.Gemini.Operation? Type219 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GeneratedFileState? Type220 { get; set; } + public global::Google.Gemini.GenerateContentBatchState? Type220 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentResponse? Type221 { get; set; } + public global::Google.Gemini.BatchStats? Type221 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CreateFileRequest? Type222 { get; set; } + public global::Google.Gemini.CodeExecution? Type222 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CreateEnvironmentRequest? Type223 { get; set; } + public global::Google.Gemini.DynamicRetrievalConfigMode? Type223 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type224 { get; set; } + public global::Google.Gemini.SessionResumptionConfig? Type224 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Schema? Type225 { get; set; } + public global::Google.Gemini.EnvironmentFileType? Type225 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::Google.Gemini.TransferOwnershipRequest? Type226 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SchemaType? Type227 { get; set; } + public global::Google.Gemini.GoogleSearch? Type227 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.Dictionary? Type228 { get; set; } + public global::Google.Gemini.Interval? Type228 { get; set; } /// - /// + /// /// - public global::Google.Gemini.InlinedEmbedContentResponse? Type229 { get; set; } + public global::Google.Gemini.Dataset? Type229 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AudioTranscriptionConfigMode? Type230 { get; set; } + public global::Google.Gemini.ListCachedContentsResponse? Type230 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Dataset? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type232 { get; set; } + public global::Google.Gemini.InlinedRequest? Type232 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Candidate? Type233 { get; set; } + public global::System.Collections.Generic.Dictionary? Type233 { get; set; } /// - /// + /// /// - public global::Google.Gemini.PromptFeedback? Type234 { get; set; } + public global::Google.Gemini.SchemaType? Type234 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Model? Type235 { get; set; } + public global::System.Collections.Generic.IList? Type235 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListCorporaResponse? Type236 { get; set; } + public global::Google.Gemini.SourceType? Type236 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type237 { get; set; } + public global::Google.Gemini.ToolCallToolType? Type237 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionDeclaration? Type238 { get; set; } + public global::Google.Gemini.ListGeneratedFilesResponse? Type238 { get; set; } /// - /// + /// /// - public global::Google.Gemini.FunctionDeclarationBehavior? Type239 { get; set; } + public global::System.Collections.Generic.IList? Type239 { get; set; } /// - /// + /// /// - public global::Google.Gemini.AuthToken? Type240 { get; set; } + public global::Google.Gemini.ListOperationsResponse? Type240 { get; set; } /// - /// + /// /// - public global::Google.Gemini.SlidingWindow? Type241 { get; set; } + public global::System.Collections.Generic.IList? Type241 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ImportFileRequest? Type242 { get; set; } + public global::Google.Gemini.Permission? Type242 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerationConfigMediaResolution? Type243 { get; set; } + public global::Google.Gemini.PermissionGranteeType? Type243 { get; set; } /// - /// + /// /// - public global::Google.Gemini.TranslationConfig? Type244 { get; set; } + public global::Google.Gemini.PermissionRole? Type244 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type245 { get; set; } + public global::Google.Gemini.GoogleMaps? Type245 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GenerationConfigResponseModalitie? Type246 { get; set; } + public global::Google.Gemini.SafetySettingThreshold? Type246 { get; set; } /// - /// + /// /// - public global::Google.Gemini.RegisterFilesResponse? Type247 { get; set; } + public global::Google.Gemini.SafetySettingCategory? Type247 { get; set; } /// - /// + /// /// - public global::Google.Gemini.GroundingMetadata? Type248 { get; set; } + public global::Google.Gemini.ReviewSnippet? Type248 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type249 { get; set; } + public global::Google.Gemini.ComputerUse? 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.CountTokensRequest? Type251 { get; set; } + public global::System.Collections.Generic.IList? Type251 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListOperationsResponse? Type252 { get; set; } + public global::Google.Gemini.ImageResponseFormat? Type252 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type253 { get; set; } + public global::Google.Gemini.ImageResponseFormatDelivery? Type253 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Operation? Type254 { get; set; } + public global::Google.Gemini.ImageResponseFormatMimeType? Type254 { get; set; } /// - /// + /// /// - public global::Google.Gemini.UploadToFileSearchStoreRequest? Type255 { get; set; } + public global::Google.Gemini.ImageResponseFormatAspectRatio? Type255 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type256 { get; set; } + public global::Google.Gemini.ImageResponseFormatImageSize? Type256 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type257 { get; set; } + public global::System.Collections.Generic.IList? Type257 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Empty? Type258 { get; set; } + public global::Google.Gemini.EmbedContentConfigTaskType? Type258 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListModelsResponse? Type259 { get; set; } + public global::System.Collections.Generic.IList? Type259 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type260 { get; set; } + public global::Google.Gemini.AudioResponseFormat? Type260 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CustomLongRunningOperation? Type261 { get; set; } + public global::Google.Gemini.AudioResponseFormatDelivery? Type261 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type262 { get; set; } + public global::Google.Gemini.AudioResponseFormatMimeType? Type262 { get; set; } /// - /// + /// /// - public global::Google.Gemini.Hyperparameters? Type263 { get; set; } + public global::Google.Gemini.ListModelsResponse? Type263 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type264 { get; set; } + public global::System.Collections.Generic.IList? Type264 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ComputerUse? Type265 { get; set; } + public global::Google.Gemini.Hyperparameters? Type265 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type266 { get; set; } + public global::System.Collections.Generic.IList? Type266 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ListEnvironmentsResponse? Type267 { get; set; } + public global::Google.Gemini.UsageMetadataServiceTier? Type267 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type268 { get; set; } + public global::System.Collections.Generic.IList? Type268 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ComputerUseEnvironment? Type269 { get; set; } + public global::Google.Gemini.ListPermissionsResponse? Type269 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type270 { get; set; } + public global::System.Collections.Generic.IList? Type270 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type271 { get; set; } + public global::Google.Gemini.RegisterFilesResponse? Type271 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type272 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequest? Type272 { get; set; } /// - /// + /// /// - public global::Google.Gemini.CandidateFinishReason? Type273 { get; set; } + public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? Type273 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type274 { get; set; } + public global::System.Collections.Generic.IList? Type274 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentConfig? Type275 { get; set; } + public global::Google.Gemini.ExecutableCodeLanguage? Type275 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentConfigTaskType? Type276 { get; set; } + public global::Google.Gemini.ThinkingConfigThinkingLevel? Type276 { get; set; } /// - /// + /// /// - public global::Google.Gemini.EmbedContentRequestTaskType? Type277 { get; set; } + public global::System.Collections.Generic.IList? Type277 { get; set; } /// - /// + /// /// - public global::Google.Gemini.PromptFeedbackBlockReason? Type278 { get; set; } + public global::System.Collections.Generic.IList? Type278 { get; set; } /// - /// + /// /// - public global::Google.Gemini.PlaceAnswerSources? Type279 { get; set; } + public global::System.Collections.Generic.IList? Type279 { get; set; } /// - /// + /// /// - public global::Google.Gemini.ModalityTokenCountModality? Type280 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? Type280 { get; set; } /// - /// + /// /// - public global::System.Collections.Generic.IList? Type281 { get; set; } + public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? Type281 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type282 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type283 { get; set; } + /// + /// + /// + public global::Google.Gemini.ComputerUseDisabledSafetyPolicie? Type284 { get; set; } + /// + /// + /// + public global::Google.Gemini.ComputerUseEnvironment? Type285 { 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; } /// - /// + /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// - /// + /// /// - 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; } /// - /// + /// /// - public global::System.Collections.Generic.List? ListType31 { get; set; } + public global::System.Collections.Generic.List? ListType31 { get; set; } /// - /// + /// /// - 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? 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? ListType49 { get; set; } } } \ No newline at end of file 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 fa9a42710..57fc866d2 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 @@ -9,11 +9,10 @@ namespace Google.Gemini public sealed partial class AudioResponseFormat { /// - /// Optional. The MIME type of the audio output. + /// Optional. Sample rate in Hz. /// - [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; } + [global::System.Text.Json.Serialization.JsonPropertyName("sampleRate")] + public int? SampleRate { get; set; } /// /// Optional. The delivery mode for the audio output. @@ -29,10 +28,11 @@ public sealed partial class AudioResponseFormat public int? BitRate { get; set; } /// - /// Optional. Sample rate in Hz. + /// Optional. The MIME type of the audio output. /// - [global::System.Text.Json.Serialization.JsonPropertyName("sampleRate")] - public int? SampleRate { get; set; } + [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,8 +43,8 @@ public sealed partial class AudioResponseFormat /// /// Initializes a new instance of the class. /// - /// - /// Optional. The MIME type of the audio output. + /// + /// Optional. Sample rate in Hz. /// /// /// Optional. The delivery mode for the audio output. @@ -52,22 +52,22 @@ public sealed partial class AudioResponseFormat /// /// Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus). /// - /// - /// Optional. Sample rate in Hz. + /// + /// 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? sampleRate, global::Google.Gemini.AudioResponseFormatDelivery? delivery, int? bitRate, - int? sampleRate) + global::Google.Gemini.AudioResponseFormatMimeType? mimeType) { - this.MimeType = mimeType; + this.SampleRate = sampleRate; this.Delivery = delivery; this.BitRate = bitRate; - this.SampleRate = sampleRate; + 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 47009702f..f2c3d3815 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 @@ -17,6 +17,13 @@ public sealed partial class AudioTranscriptionConfig [global::System.Obsolete("This property marked as deprecated.")] public global::Google.Gemini.LanguageHints? LanguageHints { get; set; } + /// + /// Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter))] + public global::Google.Gemini.AudioTranscriptionConfigMode? Mode { get; set; } + /// /// Indicates the language of the audio should be automatically detected. /// @@ -24,18 +31,18 @@ public sealed partial class AudioTranscriptionConfig [global::System.Obsolete("This property marked as deprecated.")] public global::Google.Gemini.LanguageAuto? LanguageAuto { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageCodes")] - public global::System.Collections.Generic.IList? LanguageCodes { get; set; } - /// /// Optional. Configures word-level timestamp generation. /// [global::System.Text.Json.Serialization.JsonPropertyName("wordTimestamp")] public bool? WordTimestamp { get; set; } + /// + /// Optional. Configures speaker diarization. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("diarization")] + public bool? Diarization { get; set; } + /// /// Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms. /// @@ -44,23 +51,16 @@ public sealed partial class AudioTranscriptionConfig public global::System.Collections.Generic.IList? AdaptationPhrases { get; set; } /// - /// 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("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. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. + /// 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("mode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter))] - public global::Google.Gemini.AudioTranscriptionConfigMode? Mode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("customVocabulary")] + public global::System.Collections.Generic.IList? CustomVocabulary { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -71,36 +71,36 @@ public sealed partial class AudioTranscriptionConfig /// /// Initializes a new instance of the class. /// - /// - /// 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 transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. /// /// /// 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. Configures speaker diarization. /// - /// - /// Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`. + /// + /// 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). /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AudioTranscriptionConfig( - global::System.Collections.Generic.IList? languageCodes, + global::Google.Gemini.AudioTranscriptionConfigMode? mode, bool? wordTimestamp, - global::System.Collections.Generic.IList? customVocabulary, bool? diarization, - global::Google.Gemini.AudioTranscriptionConfigMode? mode) + global::System.Collections.Generic.IList? languageCodes, + global::System.Collections.Generic.IList? customVocabulary) { - this.LanguageCodes = languageCodes; + this.Mode = mode; this.WordTimestamp = wordTimestamp; - this.CustomVocabulary = customVocabulary; this.Diarization = diarization; - this.Mode = mode; + this.LanguageCodes = languageCodes; + this.CustomVocabulary = customVocabulary; } /// 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 210775f7b..1b7426294 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class AuthToken { /// - /// 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 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("fieldMask")] - public string? FieldMask { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("newSessionExpireTime")] + public string? NewSessionExpireTime { get; set; } /// /// Output only. Identifier. The token itself.
@@ -22,10 +22,10 @@ public sealed partial class AuthToken public string? Name { 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. + /// 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("bidiGenerateContentSetup")] - public global::Google.Gemini.BidiGenerateContentSetup? BidiGenerateContentSetup { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fieldMask")] + public string? FieldMask { get; set; } /// /// 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. @@ -40,10 +40,10 @@ public sealed partial class AuthToken public int? Uses { 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. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("newSessionExpireTime")] - public string? NewSessionExpireTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("bidiGenerateContentSetup")] + public global::Google.Gemini.BidiGenerateContentSetup? BidiGenerateContentSetup { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,15 +54,15 @@ public sealed partial class AuthToken /// /// Initializes a new instance of the class. /// - /// - /// 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 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. /// /// /// Output only. Identifier. The token itself.
/// Included only in responses /// - /// - /// 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. 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. 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. @@ -70,26 +70,26 @@ public sealed partial class AuthToken /// /// 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 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. + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AuthToken( - string? fieldMask, + string? newSessionExpireTime, string? name, - global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup, + string? fieldMask, string? expireTime, int? uses, - string? newSessionExpireTime) + global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup) { - this.FieldMask = fieldMask; + this.NewSessionExpireTime = newSessionExpireTime; this.Name = name; - this.BidiGenerateContentSetup = bidiGenerateContentSetup; + this.FieldMask = fieldMask; this.ExpireTime = expireTime; this.Uses = uses; - this.NewSessionExpireTime = newSessionExpireTime; + this.BidiGenerateContentSetup = bidiGenerateContentSetup; } /// 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 7d61999e4..f77872be8 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 @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class AutomaticActivityDetection { - /// - /// Optional. Determines how likely detected speech is ended. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("endOfSpeechSensitivity")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter))] - public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? EndOfSpeechSensitivity { 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. /// @@ -34,6 +27,13 @@ public sealed partial class AutomaticActivityDetection [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] public bool? Disabled { get; set; } + /// + /// Optional. Determines how likely detected speech is ended. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("endOfSpeechSensitivity")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter))] + public global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? EndOfSpeechSensitivity { get; set; } + /// /// 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. /// @@ -49,9 +49,6 @@ public sealed partial class AutomaticActivityDetection /// /// Initializes a new instance of the class. /// - /// - /// Optional. Determines how likely detected speech is ended. - /// /// /// 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. /// @@ -61,6 +58,9 @@ public sealed partial class AutomaticActivityDetection /// /// 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. 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. /// @@ -68,16 +68,16 @@ public sealed partial class AutomaticActivityDetection [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public AutomaticActivityDetection( - global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity, int? silenceDurationMs, global::Google.Gemini.AutomaticActivityDetectionStartOfSpeechSensitivity? startOfSpeechSensitivity, bool? disabled, + global::Google.Gemini.AutomaticActivityDetectionEndOfSpeechSensitivity? endOfSpeechSensitivity, int? prefixPaddingMs) { - this.EndOfSpeechSensitivity = endOfSpeechSensitivity; this.SilenceDurationMs = silenceDurationMs; this.StartOfSpeechSensitivity = startOfSpeechSensitivity; this.Disabled = disabled; + this.EndOfSpeechSensitivity = endOfSpeechSensitivity; this.PrefixPaddingMs = prefixPaddingMs; } 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 89cf2f168..40ebd66a1 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 in the batch.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] - public string? RequestCount { get; set; } - /// /// Output only. The number of requests that failed to be processed.
/// Included only in responses @@ -36,6 +29,13 @@ public sealed partial class BatchStats [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] public string? PendingRequestCount { get; set; } + /// + /// Output only. The number of requests in the batch.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] + public string? RequestCount { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -45,10 +45,6 @@ public sealed partial class BatchStats /// /// Initializes a new instance of the class. /// - /// - /// Output only. The number of requests in the batch.
- /// Included only in responses - /// /// /// Output only. The number of requests that failed to be processed.
/// Included only in responses @@ -61,19 +57,23 @@ public sealed partial class BatchStats /// Output only. The number of requests that are still pending processing.
/// 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 BatchStats( - string? requestCount, string? failedRequestCount, string? successfulRequestCount, - string? pendingRequestCount) + string? pendingRequestCount, + string? requestCount) { - this.RequestCount = requestCount; this.FailedRequestCount = failedRequestCount; this.SuccessfulRequestCount = successfulRequestCount; this.PendingRequestCount = pendingRequestCount; + this.RequestCount = requestCount; } /// 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 8c4e14693..e8fc0b36f 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 @@ -9,22 +9,22 @@ namespace Google.Gemini public sealed partial class BidiGenerateContentSetup { /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] - public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputAudioTranscription")] + public global::Google.Gemini.AudioTranscriptionConfig? InputAudioTranscription { get; set; } /// - /// Configures the realtime input behavior in `BidiGenerateContent`. + /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. /// - [global::System.Text.Json.Serialization.JsonPropertyName("realtimeInputConfig")] - public global::Google.Gemini.RealtimeInputConfig? RealtimeInputConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("historyConfig")] + public global::Google.Gemini.HistoryConfig? HistoryConfig { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("sessionResumption")] + public global::Google.Gemini.SessionResumptionConfig? SessionResumption { 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. @@ -33,16 +33,22 @@ public sealed partial class BidiGenerateContentSetup public global::System.Collections.Generic.IList? Tools { 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. + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("generationConfig")] + public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } /// - /// Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages. + /// Configures the realtime input behavior in `BidiGenerateContent`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("sessionResumption")] - public global::Google.Gemini.SessionResumptionConfig? SessionResumption { 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { get; set; } /// /// Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length. @@ -51,22 +57,16 @@ public sealed partial class BidiGenerateContentSetup public global::Google.Gemini.ContextWindowCompressionConfig? ContextWindowCompression { get; set; } /// - /// The audio transcription configuration. + /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` /// - [global::System.Text.Json.Serialization.JsonPropertyName("outputAudioTranscription")] - public global::Google.Gemini.AudioTranscriptionConfig? OutputAudioTranscription { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("historyConfig")] - public global::Google.Gemini.HistoryConfig? HistoryConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputAudioTranscription")] + public global::Google.Gemini.AudioTranscriptionConfig? OutputAudioTranscription { 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. /// - /// - /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// The audio transcription configuration. /// - /// - /// Configures the realtime input behavior in `BidiGenerateContent`. + /// + /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. /// - /// - /// 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. /// /// /// 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. /// + /// + /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. + /// + /// + /// Configures the realtime input behavior in `BidiGenerateContent`. + /// /// /// 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. /// - /// - /// 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. /// - /// - /// The audio transcription configuration. + /// + /// Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}` /// - /// + /// /// The audio transcription configuration. /// - /// - /// History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public BidiGenerateContentSetup( + global::Google.Gemini.AudioTranscriptionConfig? inputAudioTranscription, + global::Google.Gemini.HistoryConfig? historyConfig, + global::Google.Gemini.SessionResumptionConfig? sessionResumption, + global::System.Collections.Generic.IList? tools, global::Google.Gemini.GenerationConfig? generationConfig, global::Google.Gemini.RealtimeInputConfig? realtimeInputConfig, - string? model, - global::System.Collections.Generic.IList? tools, global::Google.Gemini.Content? systemInstruction, - global::Google.Gemini.SessionResumptionConfig? sessionResumption, global::Google.Gemini.ContextWindowCompressionConfig? contextWindowCompression, - global::Google.Gemini.AudioTranscriptionConfig? outputAudioTranscription, - global::Google.Gemini.AudioTranscriptionConfig? inputAudioTranscription, - global::Google.Gemini.HistoryConfig? historyConfig) + string? model, + global::Google.Gemini.AudioTranscriptionConfig? outputAudioTranscription) { + this.InputAudioTranscription = inputAudioTranscription; + this.HistoryConfig = historyConfig; + this.SessionResumption = sessionResumption; + this.Tools = tools; this.GenerationConfig = generationConfig; this.RealtimeInputConfig = realtimeInputConfig; - this.Model = model; - this.Tools = tools; this.SystemInstruction = systemInstruction; - this.SessionResumption = sessionResumption; this.ContextWindowCompression = contextWindowCompression; + this.Model = model; this.OutputAudioTranscription = outputAudioTranscription; - this.InputAudioTranscription = inputAudioTranscription; - this.HistoryConfig = historyConfig; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs index 2f59c7670..17a76eb91 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Blob.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class Blob { - /// - /// Raw bytes for media formats. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("data")] - public byte[]? Data { get; set; } - /// /// 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). // /// [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] public string? MimeType { get; set; } + /// + /// Raw bytes for media formats. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + public byte[]? Data { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class Blob /// /// Initializes a new instance of the class. /// - /// - /// Raw bytes for media formats. - /// /// /// 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). // /// + /// + /// Raw bytes for media formats. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Blob( - byte[]? data, - string? mimeType) + string? mimeType, + byte[]? data) { - this.Data = data; this.MimeType = mimeType; + this.Data = data; } /// 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 144164da7..2577bbf65 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,28 +9,10 @@ namespace Google.Gemini public sealed partial class CachedContent { /// - /// 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; } - - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } - - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tools")] - public global::System.Collections.Generic.IList? Tools { 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. + /// Metadata on the usage of the cached content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] - public string? ExpireTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] + public global::Google.Gemini.CachedContentUsageMetadata? UsageMetadata { get; set; } /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. @@ -39,10 +21,10 @@ public sealed partial class CachedContent public global::Google.Gemini.ToolConfig? ToolConfig { get; set; } /// - /// Metadata on the usage of the cached content. + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// - [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] - public global::Google.Gemini.CachedContentUsageMetadata? UsageMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tools")] + public global::System.Collections.Generic.IList? Tools { get; set; } /// /// Optional. Input only. Immutable. The content to cache. @@ -56,6 +38,13 @@ public sealed partial class CachedContent [global::System.Text.Json.Serialization.JsonPropertyName("ttl")] public string? Ttl { get; set; } + /// + /// Output only. Creation time of the cache entry.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } + /// /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
/// Included only in responses @@ -64,10 +53,10 @@ public sealed partial class CachedContent public string? Name { get; set; } /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expireTime")] + public string? ExpireTime { get; set; } /// /// Output only. When the cache entry was last updated in UTC time.
@@ -77,11 +66,22 @@ public sealed partial class CachedContent public string? UpdateTime { get; set; } /// - /// Output only. Creation time of the cache entry.
- /// Included only in responses + /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { 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; } + + /// + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -92,23 +92,14 @@ public sealed partial class CachedContent /// /// 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. - /// - /// - /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` - /// - /// - /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response - /// - /// - /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. + /// + /// Metadata on the usage of the cached content. /// /// /// The Tool configuration containing parameters for specifying `Tool` use in the request. /// - /// - /// Metadata on the usage of the cached content. + /// + /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response /// /// /// Optional. Input only. Immutable. The content to cache. @@ -116,50 +107,59 @@ public sealed partial class CachedContent /// /// Input only. New TTL for this resource, input only. /// + /// + /// Output only. Creation time of the cache entry.
+ /// Included only in responses + /// /// /// Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`
/// Included only in responses /// - /// - /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters. + /// + /// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input. /// /// /// Output only. When the cache entry was last updated in UTC time.
/// Included only in responses /// - /// - /// Output only. Creation time of the cache entry.
- /// Included only in responses + /// + /// 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. + /// + /// + /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}` /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CachedContent( - global::Google.Gemini.Content? systemInstruction, - string? model, - global::System.Collections.Generic.IList? tools, - string? expireTime, - global::Google.Gemini.ToolConfig? toolConfig, global::Google.Gemini.CachedContentUsageMetadata? usageMetadata, + global::Google.Gemini.ToolConfig? toolConfig, + global::System.Collections.Generic.IList? tools, global::System.Collections.Generic.IList? contents, string? ttl, + string? createTime, string? name, - string? displayName, + string? expireTime, string? updateTime, - string? createTime) + string? displayName, + global::Google.Gemini.Content? systemInstruction, + string? model) { - this.SystemInstruction = systemInstruction; - this.Model = model; - this.Tools = tools; - this.ExpireTime = expireTime; - this.ToolConfig = toolConfig; this.UsageMetadata = usageMetadata; + this.ToolConfig = toolConfig; + this.Tools = tools; this.Contents = contents; this.Ttl = ttl; + this.CreateTime = createTime; this.Name = name; - this.DisplayName = displayName; + this.ExpireTime = expireTime; this.UpdateTime = updateTime; - this.CreateTime = createTime; + this.DisplayName = displayName; + this.SystemInstruction = systemInstruction; + this.Model = model; } /// 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 36977b579..db87e2765 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,10 +9,11 @@ namespace Google.Gemini public sealed partial class Candidate { /// - /// A collection of source attributions for a piece of content. + /// Output only. Average log probability score of the candidate.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] - public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("avgLogprobs")] + public double? AvgLogprobs { get; set; } /// /// Metadata related to url context retrieval tool. @@ -21,17 +22,19 @@ public sealed partial class Candidate public global::Google.Gemini.UrlContextMetadata? UrlContextMetadata { get; set; } /// - /// Output only. Index of the candidate in the list of response candidates.
+ /// Output only. Token count for this candidate.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("index")] - public int? Index { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] + public int? TokenCount { 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; } /// /// Metadata returned to client when grounding is enabled. @@ -40,24 +43,25 @@ public sealed partial class Candidate public global::Google.Gemini.GroundingMetadata? GroundingMetadata { get; set; } /// - /// Output only. Average log probability score of the candidate.
+ /// 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("avgLogprobs")] - public double? AvgLogprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingAttributions")] + public global::System.Collections.Generic.IList? GroundingAttributions { get; set; } /// - /// Output only. Token count for this 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] - public int? TokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("finishMessage")] + public string? FinishMessage { get; set; } /// - /// Logprobs Result + /// Output only. Index of the candidate in the list of response candidates.
+ /// 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("index")] + public int? Index { 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. @@ -66,26 +70,22 @@ public sealed partial class Candidate public global::Google.Gemini.Content? Content { get; set; } /// - /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
- /// 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("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("safetyRatings")] + public global::System.Collections.Generic.IList? SafetyRatings { get; set; } /// - /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
- /// Included only in responses + /// A collection of source attributions for a piece of content. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("groundingAttributions")] - public global::System.Collections.Generic.IList? GroundingAttributions { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("citationMetadata")] + public global::Google.Gemini.CitationMetadata? CitationMetadata { get; set; } /// - /// 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("finishMessage")] - public string? FinishMessage { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("logprobsResult")] + public global::Google.Gemini.LogprobsResult? LogprobsResult { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -96,77 +96,77 @@ public sealed partial class Candidate /// /// Initializes a new instance of the class. /// - /// - /// A collection of source attributions for a piece of content. + /// + /// Output only. Average log probability score of the candidate.
+ /// Included only in responses /// /// /// Metadata related to url context retrieval tool. /// - /// - /// Output only. Index of the candidate in the list of response candidates.
+ /// + /// Output only. Token count for this candidate.
/// Included only in responses /// - /// - /// 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 /// /// /// Metadata returned to client when grounding is enabled. /// - /// - /// Output only. Average log probability score of the candidate.
+ /// + /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
/// Included only in responses /// - /// - /// Output only. Token count for this 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 + /// + /// 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. /// - /// - /// Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.
- /// Included only in responses + /// + /// List of ratings for the safety of a response candidate. There is at most one rating per category. /// - /// - /// Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.
- /// Included only in responses + /// + /// A collection of source attributions for a piece of content. /// - /// - /// 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 /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Candidate( - global::Google.Gemini.CitationMetadata? citationMetadata, - global::Google.Gemini.UrlContextMetadata? urlContextMetadata, - int? index, - global::System.Collections.Generic.IList? safetyRatings, - global::Google.Gemini.GroundingMetadata? groundingMetadata, double? avgLogprobs, + global::Google.Gemini.UrlContextMetadata? urlContextMetadata, int? tokenCount, - global::Google.Gemini.LogprobsResult? logprobsResult, - global::Google.Gemini.Content? content, global::Google.Gemini.CandidateFinishReason? finishReason, + global::Google.Gemini.GroundingMetadata? groundingMetadata, global::System.Collections.Generic.IList? groundingAttributions, - string? finishMessage) + string? finishMessage, + int? index, + global::Google.Gemini.Content? content, + global::System.Collections.Generic.IList? safetyRatings, + global::Google.Gemini.CitationMetadata? citationMetadata, + global::Google.Gemini.LogprobsResult? logprobsResult) { - this.CitationMetadata = citationMetadata; - this.UrlContextMetadata = urlContextMetadata; - this.Index = index; - this.SafetyRatings = safetyRatings; - this.GroundingMetadata = groundingMetadata; this.AvgLogprobs = avgLogprobs; + this.UrlContextMetadata = urlContextMetadata; this.TokenCount = tokenCount; - this.LogprobsResult = logprobsResult; - this.Content = content; this.FinishReason = finishReason; + this.GroundingMetadata = groundingMetadata; this.GroundingAttributions = groundingAttributions; this.FinishMessage = finishMessage; + this.Index = index; + this.Content = content; + this.SafetyRatings = safetyRatings; + this.CitationMetadata = citationMetadata; + this.LogprobsResult = logprobsResult; } /// 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 9f49fa857..0d4e0c318 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 @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class CitationSource { + /// + /// Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("license")] + public string? License { get; set; } + /// /// Optional. URI that is attributed as a source for a portion of the text. /// @@ -26,12 +32,6 @@ public sealed partial class CitationSource [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] public int? StartIndex { get; set; } - /// - /// Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("license")] - public string? License { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,6 +41,9 @@ public sealed partial class CitationSource /// /// Initializes a new instance of the class. /// + /// + /// Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. + /// /// /// Optional. URI that is attributed as a source for a portion of the text. /// @@ -50,22 +53,19 @@ 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. License for the GitHub project that is attributed as a source for segment. License info is required for code citations. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CitationSource( + string? license, string? uri, int? endIndex, - int? startIndex, - string? license) + int? startIndex) { + this.License = license; this.Uri = uri; this.EndIndex = endIndex; this.StartIndex = startIndex; - this.License = license; } /// 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 42276c3cc..a24d70947 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,6 +8,12 @@ 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. /// @@ -16,10 +22,10 @@ public sealed partial class ComputerUse public global::Google.Gemini.ComputerUseEnvironment? Environment { get; set; } /// - /// Optional. Disabled safety policies for computer use. + /// Optional. Whether enable the prompt injection detection check on computer-use request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("disabledSafetyPolicies")] - public global::System.Collections.Generic.IList? DisabledSafetyPolicies { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enablePromptInjectionDetection")] + public bool? EnablePromptInjectionDetection { get; set; } /// /// 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. @@ -27,12 +33,6 @@ public sealed partial class ComputerUse [global::System.Text.Json.Serialization.JsonPropertyName("excludedPredefinedFunctions")] public global::System.Collections.Generic.IList? ExcludedPredefinedFunctions { get; set; } - /// - /// Optional. Whether enable the prompt injection detection check on computer-use request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("enablePromptInjectionDetection")] - public bool? EnablePromptInjectionDetection { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -42,31 +42,31 @@ public sealed partial class ComputerUse /// /// Initializes a new instance of the class. /// - /// - /// Required. The environment being operated. - /// /// /// Optional. Disabled safety policies for computer use. /// - /// - /// 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. + /// + /// Required. The environment being operated. /// /// /// Optional. Whether enable the prompt injection detection check on computer-use request. /// + /// + /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ComputerUse( - global::Google.Gemini.ComputerUseEnvironment? environment, global::System.Collections.Generic.IList? disabledSafetyPolicies, - global::System.Collections.Generic.IList? excludedPredefinedFunctions, - bool? enablePromptInjectionDetection) + global::Google.Gemini.ComputerUseEnvironment? environment, + bool? enablePromptInjectionDetection, + global::System.Collections.Generic.IList? excludedPredefinedFunctions) { - this.Environment = environment; this.DisabledSafetyPolicies = disabledSafetyPolicies; - this.ExcludedPredefinedFunctions = excludedPredefinedFunctions; + this.Environment = environment; this.EnablePromptInjectionDetection = enablePromptInjectionDetection; + this.ExcludedPredefinedFunctions = excludedPredefinedFunctions; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseDisabledSafetyPolicie.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseDisabledSafetyPolicie.g.cs index ae98ae5ab..eee54a0c1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseDisabledSafetyPolicie.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseDisabledSafetyPolicie.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini { /// - /// + /// /// public enum ComputerUseDisabledSafetyPolicie { diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContextWindowCompressionConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContextWindowCompressionConfig.g.cs index fc2e5225c..a20855936 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContextWindowCompressionConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ContextWindowCompressionConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ContextWindowCompressionConfig { - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("slidingWindow")] - public global::Google.Gemini.SlidingWindow? SlidingWindow { get; set; } - /// /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("triggerTokens")] public string? TriggerTokens { get; set; } + /// + /// 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("slidingWindow")] + public global::Google.Gemini.SlidingWindow? SlidingWindow { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class ContextWindowCompressionConfig /// /// Initializes a new instance of the class. /// - /// - /// 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. - /// /// /// 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. /// + /// + /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ContextWindowCompressionConfig( - global::Google.Gemini.SlidingWindow? slidingWindow, - string? triggerTokens) + string? triggerTokens, + global::Google.Gemini.SlidingWindow? slidingWindow) { - this.SlidingWindow = slidingWindow; this.TriggerTokens = triggerTokens; + this.SlidingWindow = slidingWindow; } /// 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 7733dbed8..ac6c974b0 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 @@ -8,12 +8,6 @@ namespace Google.Gemini /// 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" - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { 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`
/// Included only in responses @@ -22,11 +16,10 @@ public sealed partial class Corpus public string? Name { get; set; } /// - /// Output only. The Timestamp of when the `Corpus` was last updated.
- /// Included only in responses + /// 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" ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// /// Output only. The Timestamp of when the `Corpus` was created.
@@ -35,6 +28,13 @@ public sealed partial class Corpus [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] public string? CreateTime { get; set; } + /// + /// Output only. The Timestamp of when the `Corpus` was last updated.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,34 +44,34 @@ public sealed partial class Corpus /// /// Initializes a new instance of the class. /// - /// - /// 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. 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`
/// Included only in responses /// - /// - /// Output only. The Timestamp of when the `Corpus` was last updated.
- /// Included only in responses + /// + /// 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 created.
/// Included only in responses /// + /// + /// Output only. The Timestamp of when the `Corpus` was last updated.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Corpus( - string? displayName, string? name, - string? updateTime, - string? createTime) + string? displayName, + string? createTime, + string? updateTime) { - this.DisplayName = displayName; this.Name = name; - this.UpdateTime = updateTime; + this.DisplayName = displayName; this.CreateTime = createTime; + this.UpdateTime = updateTime; } /// 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 e3a55d175..6240bc371 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,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class CountTokensResponse { - /// - /// Output only. List of modalities that were processed in the cached content.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] - public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } - /// /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. /// @@ -27,6 +20,13 @@ public sealed partial class CountTokensResponse [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] public int? CachedContentTokenCount { get; set; } + /// + /// Output only. List of modalities that were processed in the cached content.
+ /// Included only in responses + ///
+ [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 @@ -43,16 +43,16 @@ public sealed partial class CountTokensResponse /// /// Initializes a new instance of the class. /// - /// - /// Output only. List of modalities that were processed in the cached content.
- /// Included only in responses - /// /// /// The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative. /// /// /// Number of tokens in the cached part of the prompt (the cached content). /// + /// + /// 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 @@ -61,14 +61,14 @@ public sealed partial class CountTokensResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CountTokensResponse( - global::System.Collections.Generic.IList? cacheTokensDetails, int? totalTokens, int? cachedContentTokenCount, + global::System.Collections.Generic.IList? cacheTokensDetails, global::System.Collections.Generic.IList? promptTokensDetails) { - this.CacheTokensDetails = cacheTokensDetails; this.TotalTokens = totalTokens; this.CachedContentTokenCount = cachedContentTokenCount; + this.CacheTokensDetails = cacheTokensDetails; this.PromptTokensDetails = promptTokensDetails; } 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 75907f85f..cde520017 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,13 @@ namespace Google.Gemini ///
public sealed partial class CreateEnvironmentRequest { + /// + /// Network egress mode. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] + [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. /// @@ -20,13 +27,6 @@ public sealed partial class CreateEnvironmentRequest [global::System.Text.Json.Serialization.JsonPropertyName("sources")] public global::System.Collections.Generic.IList? Sources { get; set; } - /// - /// Network egress mode. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter))] - public global::Google.Gemini.CreateEnvironmentRequestNetworkMode? NetworkMode { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,26 +36,26 @@ public sealed partial class CreateEnvironmentRequest /// /// Initializes a new instance of the class. /// + /// + /// Network egress mode. + /// /// /// Network egress configuration for the environment. /// /// /// Sources to be mounted into the environment. /// - /// - /// Network egress mode. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CreateEnvironmentRequest( + global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode, global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, - global::System.Collections.Generic.IList? sources, - global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode) + global::System.Collections.Generic.IList? sources) { + this.NetworkMode = networkMode; this.NetworkAllowlist = networkAllowlist; this.Sources = sources; - this.NetworkMode = networkMode; } /// 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 a9dd02224..065156955 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 @@ -4,15 +4,15 @@ namespace Google.Gemini { /// - /// + /// /// public sealed partial class CustomLongRunningOperation { /// - /// 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 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("response")] - public object? Response { get; set; } + [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). @@ -21,22 +21,22 @@ public sealed partial class CustomLongRunningOperation 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. + /// 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("done")] - public bool? Done { get; set; } + [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}`. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("done")] + public bool? Done { 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. + /// 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("metadata")] - public object? Metadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { 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 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 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). /// + /// + /// 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. + /// /// /// 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 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 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 NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomLongRunningOperation( - object? response, + string? name, global::Google.Gemini.Status? error, + object? metadata, bool? done, - string? name, - object? metadata) + object? response) { - this.Response = response; - this.Error = error; - this.Done = done; this.Name = name; + this.Error = error; this.Metadata = metadata; + this.Done = done; + this.Response = response; } /// 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 d30ea6b09..71d22575c 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class CustomMetadata { /// - /// Required. The key of the metadata to store. + /// The string value of the metadata to store. /// - [global::System.Text.Json.Serialization.JsonPropertyName("key")] - public string? Key { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] + public string? StringValue { get; set; } /// /// User provided string values assigned to a single metadata key. @@ -20,18 +20,18 @@ public sealed partial class CustomMetadata [global::System.Text.Json.Serialization.JsonPropertyName("stringListValue")] public global::Google.Gemini.StringList? StringListValue { get; set; } - /// - /// The string value of the metadata to store. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] - public string? StringValue { get; set; } - /// /// The numeric value of the metadata to store. /// [global::System.Text.Json.Serialization.JsonPropertyName("numericValue")] public float? NumericValue { get; set; } + /// + /// Required. The key of the metadata to store. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -41,31 +41,31 @@ public sealed partial class CustomMetadata /// /// Initializes a new instance of the class. /// - /// - /// Required. The key of the metadata to store. + /// + /// The string value of the metadata to store. /// /// /// User provided string values assigned to a single metadata key. /// - /// - /// The string value of the metadata to store. - /// /// /// The numeric value of the metadata to store. /// + /// + /// Required. The key of the metadata to store. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public CustomMetadata( - string? key, - global::Google.Gemini.StringList? stringListValue, string? stringValue, - float? numericValue) + global::Google.Gemini.StringList? stringListValue, + float? numericValue, + string? key) { - this.Key = key; - this.StringListValue = stringListValue; this.StringValue = stringValue; + this.StringListValue = stringListValue; this.NumericValue = numericValue; + this.Key = key; } /// 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 a1ab684a0..7e49713b9 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 @@ -8,25 +8,6 @@ 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`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] - public global::System.Collections.Generic.IList? CustomMetadata { 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" - /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } - - /// - /// Output only. The Timestamp of when the `Document` was created.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } - /// /// Output only. The mime type of the Document.
/// Included only in responses @@ -41,6 +22,18 @@ public sealed partial class Document [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" + /// + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } + + /// + /// 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("customMetadata")] + public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + /// /// Output only. Current state of the `Document`.
/// Included only in responses @@ -49,6 +42,13 @@ public sealed partial class Document [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 created.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } + /// /// Output only. The size of raw bytes ingested into the Document.
/// Included only in responses @@ -71,16 +71,6 @@ 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 Timestamp of when the `Document` was created.
- /// Included only in responses - /// /// /// Output only. The mime type of the Document.
/// Included only in responses @@ -89,10 +79,20 @@ public sealed partial class Document /// Output only. The Timestamp of when the `Document` was last updated.
/// 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" + /// + /// + /// Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`. + /// /// /// Output only. Current state of the `Document`.
/// Included only in responses /// + /// + /// Output only. The Timestamp of when the `Document` was created.
+ /// Included only in responses + /// /// /// Output only. The size of raw bytes ingested into the Document.
/// Included only in responses @@ -104,21 +104,21 @@ public sealed partial class Document [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Document( - global::System.Collections.Generic.IList? customMetadata, - string? displayName, - string? createTime, string? mimeType, string? updateTime, + string? displayName, + global::System.Collections.Generic.IList? customMetadata, global::Google.Gemini.DocumentState? state, + string? createTime, string? sizeBytes, string? name) { - this.CustomMetadata = customMetadata; - this.DisplayName = displayName; - this.CreateTime = createTime; this.MimeType = mimeType; this.UpdateTime = updateTime; + this.DisplayName = displayName; + this.CustomMetadata = customMetadata; this.State = state; + this.CreateTime = createTime; this.SizeBytes = sizeBytes; this.Name = name; } 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 dbea4b5e0..8343e78e4 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 @@ -8,14 +8,6 @@ namespace Google.Gemini ///
public sealed partial class EmbedContentBatch { - /// - /// 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; } - /// /// Configures the input to the batch request. /// @@ -23,23 +15,24 @@ public sealed partial class EmbedContentBatch public global::Google.Gemini.InputEmbedContentConfig? InputConfig { get; set; } /// - /// 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 `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] - public string? EndTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::Google.Gemini.EmbedContentBatchOutput? Output { get; set; } /// - /// 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// - /// Stats about the batch. + /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] - public global::Google.Gemini.EmbedContentBatchStats? BatchStats { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { 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. @@ -47,12 +40,6 @@ public sealed partial class EmbedContentBatch [global::System.Text.Json.Serialization.JsonPropertyName("priority")] public string? Priority { get; set; } - /// - /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::Google.Gemini.EmbedContentBatchOutput? Output { get; set; } - /// /// Required. The user-defined name of this batch. /// @@ -67,18 +54,31 @@ public sealed partial class EmbedContentBatch public string? UpdateTime { get; set; } /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// Output only. The state of the batch.
/// 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.EmbedContentBatchStateJsonConverter))] + public global::Google.Gemini.EmbedContentBatchState? State { get; set; } /// - /// Output only. The time at which the batch was created.
+ /// 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 processing completed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] + public string? EndTime { get; set; } + + /// + /// Stats about the batch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] + public global::Google.Gemini.EmbedContentBatchStats? BatchStats { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -89,29 +89,23 @@ public sealed partial class EmbedContentBatch /// /// Initializes a new instance of the class. /// - /// - /// Output only. The state of the batch.
- /// Included only in responses - /// /// /// 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 `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. /// - /// - /// 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 /// /// /// 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 `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field. - /// /// /// Required. The user-defined name of this batch. /// @@ -119,41 +113,47 @@ public sealed partial class EmbedContentBatch /// Output only. The time at which the batch was last updated.
/// Included only in responses /// - /// - /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
+ /// + /// Output only. The state of the batch.
/// Included only in responses /// - /// - /// Output only. The time at which the batch was created.
+ /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. + /// + /// + /// Output only. The time at which the batch processing completed.
/// Included only in responses /// + /// + /// Stats about the batch. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatch( - global::Google.Gemini.EmbedContentBatchState? state, global::Google.Gemini.InputEmbedContentConfig? inputConfig, - string? endTime, - string? model, - global::Google.Gemini.EmbedContentBatchStats? batchStats, - string? priority, global::Google.Gemini.EmbedContentBatchOutput? output, + string? createTime, + string? name, + string? priority, string? displayName, string? updateTime, - string? name, - string? createTime) + global::Google.Gemini.EmbedContentBatchState? state, + string? model, + string? endTime, + global::Google.Gemini.EmbedContentBatchStats? batchStats) { - this.State = state; this.InputConfig = inputConfig; - this.EndTime = endTime; - this.Model = model; - this.BatchStats = batchStats; - this.Priority = priority; this.Output = output; + this.CreateTime = createTime; + this.Name = name; + this.Priority = priority; this.DisplayName = displayName; this.UpdateTime = updateTime; - this.Name = name; - this.CreateTime = createTime; + this.State = state; + this.Model = model; + this.EndTime = endTime; + this.BatchStats = batchStats; } /// 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 30cdb5aed..2f706f435 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,32 +9,32 @@ namespace Google.Gemini public sealed partial class EmbedContentBatchStats { /// - /// Output only. The number of requests in the batch.
+ /// Output only. The number of requests that failed to be processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] - public string? RequestCount { 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 that were successfully processed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("failedRequestCount")] - public string? FailedRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] + public string? SuccessfulRequestCount { get; set; } /// - /// Output only. The number of requests that are still pending processing.
+ /// Output only. The number of requests in the batch.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] - public string? PendingRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("requestCount")] + public string? RequestCount { get; set; } /// - /// Output only. The number of requests that were successfully processed.
+ /// Output only. The number of requests that are still pending processing.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("successfulRequestCount")] - public string? SuccessfulRequestCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pendingRequestCount")] + public string? PendingRequestCount { 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.
- /// 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 - /// /// /// Output only. The number of requests that were successfully processed.
/// Included only in responses /// + /// + /// Output only. The number of requests in the batch.
+ /// Included only in responses + /// + /// + /// Output only. The number of requests that are still pending processing.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentBatchStats( - string? requestCount, string? failedRequestCount, - string? pendingRequestCount, - string? successfulRequestCount) + string? successfulRequestCount, + string? requestCount, + string? pendingRequestCount) { - this.RequestCount = requestCount; this.FailedRequestCount = failedRequestCount; - this.PendingRequestCount = pendingRequestCount; this.SuccessfulRequestCount = successfulRequestCount; + this.RequestCount = requestCount; + this.PendingRequestCount = pendingRequestCount; } /// 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 8c6899980..40bbc26b9 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,18 @@ namespace Google.Gemini /// public sealed partial class EmbedContentConfig { + /// + /// 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. 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,6 +27,12 @@ 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. 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. The title for the text. /// @@ -27,24 +45,6 @@ public sealed partial class EmbedContentConfig [global::System.Text.Json.Serialization.JsonPropertyName("audioTrackExtraction")] public bool? AudioTrackExtraction { get; set; } - /// - /// Optional. Whether to enable OCR for document content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("documentOcr")] - public bool? DocumentOcr { 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 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; } - /// /// 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. Whether to silently truncate the input content if it's longer than the maximum sequence length. + /// + /// + /// Optional. Whether to enable OCR for document content. + /// /// /// Optional. The task type of the embedding. /// + /// + /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. + /// /// /// Optional. The title for the text. /// /// /// Optional. Whether to extract audio from video content. /// - /// - /// Optional. Whether to enable OCR for document content. - /// - /// - /// Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. - /// - /// - /// Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentConfig( - global::Google.Gemini.EmbedContentConfigTaskType? taskType, - string? title, - bool? audioTrackExtraction, + bool? autoTruncate, bool? documentOcr, + global::Google.Gemini.EmbedContentConfigTaskType? taskType, int? outputDimensionality, - bool? autoTruncate) + string? title, + bool? audioTrackExtraction) { + this.AutoTruncate = autoTruncate; + this.DocumentOcr = documentOcr; this.TaskType = taskType; + this.OutputDimensionality = outputDimensionality; this.Title = title; this.AudioTrackExtraction = audioTrackExtraction; - this.DocumentOcr = documentOcr; - this.OutputDimensionality = outputDimensionality; - this.AutoTruncate = autoTruncate; } /// 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 541c54f8b..94b79188f 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,12 +11,10 @@ namespace Google.Gemini public sealed partial class EmbedContentRequest { /// - /// 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`). + /// Configurations for the EmbedContent request. /// - [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 global::Google.Gemini.EmbedContentRequestTaskType? TaskType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("embedContentConfig")] + public global::Google.Gemini.EmbedContentConfig? EmbedContentConfig { 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}` @@ -25,10 +23,11 @@ public sealed partial class EmbedContentRequest 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. + /// 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("content")] - public global::Google.Gemini.Content? Content { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputDimensionality")] + [global::System.Obsolete("This property marked as deprecated.")] + public int? OutputDimensionality { 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. @@ -38,17 +37,18 @@ public sealed partial class EmbedContentRequest public string? Title { get; set; } /// - /// Configurations for the EmbedContent request. + /// 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("embedContentConfig")] - public global::Google.Gemini.EmbedContentConfig? EmbedContentConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public global::Google.Gemini.Content? Content { 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`). + /// 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("outputDimensionality")] + [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 int? OutputDimensionality { 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. /// + /// + /// 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}` /// /// /// 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. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentRequest( + global::Google.Gemini.EmbedContentConfig? embedContentConfig, string? model, - global::Google.Gemini.Content? content, - global::Google.Gemini.EmbedContentConfig? embedContentConfig) + global::Google.Gemini.Content? content) { + this.EmbedContentConfig = embedContentConfig; this.Model = model; this.Content = content; - this.EmbedContentConfig = embedContentConfig; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentResponse.g.cs index 6b1b3f354..ced79a0cd 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class EmbedContentResponse { - /// - /// A list of floats representing an embedding. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("embedding")] - public global::Google.Gemini.ContentEmbedding? Embedding { 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; } + /// + /// A list of floats representing an embedding. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("embedding")] + public global::Google.Gemini.ContentEmbedding? Embedding { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class EmbedContentResponse /// /// Initializes a new instance of the class. /// - /// - /// A list of floats representing an embedding. - /// /// /// Metadata on the usage of the embedding request. /// + /// + /// A list of floats representing an embedding. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EmbedContentResponse( - global::Google.Gemini.ContentEmbedding? embedding, - global::Google.Gemini.EmbeddingUsageMetadata? usageMetadata) + global::Google.Gemini.EmbeddingUsageMetadata? usageMetadata, + global::Google.Gemini.ContentEmbedding? embedding) { - this.Embedding = embedding; this.UsageMetadata = usageMetadata; + this.Embedding = embedding; } /// 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 8f966f38a..b15625ff0 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 @@ -14,19 +14,6 @@ public sealed partial class Environment [global::System.Text.Json.Serialization.JsonPropertyName("sources")] public global::System.Collections.Generic.IList? Sources { get; set; } - /// - /// Network egress mode. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter))] - public global::Google.Gemini.EnvironmentNetworkMode? NetworkMode { get; set; } - - /// - /// Network egress configuration for the environment. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] - public global::Google.Gemini.EnvironmentNetworkEgressAllowlist? NetworkAllowlist { get; set; } - /// /// Output only. The status of the environment container.
/// Included only in responses @@ -35,6 +22,13 @@ 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; } + /// + /// Required. Output only. The ID of the environment.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("id")] + 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).
/// Included only in responses @@ -43,11 +37,18 @@ public sealed partial class Environment public string? LastAccessed { get; set; } /// - /// Output only. The time at which the environment was created 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("created")] - public string? Created { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updated")] + public string? Updated { get; set; } + + /// + /// Network egress mode. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("networkMode")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter))] + public global::Google.Gemini.EnvironmentNetworkMode? NetworkMode { get; set; } /// /// Output only. The total size of the environment files in bytes, output only.
@@ -57,25 +58,24 @@ public sealed partial class Environment public string? SizeBytes { get; set; } /// - /// Output only. The number of files in the environment, output only.
- /// Included only in responses + /// Network egress configuration for the environment. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("fileCount")] - public string? FileCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("networkAllowlist")] + 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).
+ /// Output only. The time at which the environment was created 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; } + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + public string? Created { get; set; } /// - /// Required. Output only. The ID of the environment.
+ /// Output only. The number of files in the environment, output only.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileCount")] + public string? FileCount { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -89,38 +89,38 @@ public sealed partial class Environment /// /// Sources to be mounted into the environment. /// - /// - /// Network egress mode. - /// - /// - /// Network egress configuration for the environment. - /// /// /// Output only. The status of the environment container.
/// Included only in responses /// + /// + /// 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).
/// Included only in responses /// - /// - /// Output only. The time at which the environment was created 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 /// + /// + /// Network egress mode. + /// /// /// Output only. The total size of the environment files in bytes, output only.
/// Included only in responses /// - /// - /// Output only. The number of files in the environment, output only.
- /// 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).
+ /// + /// Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).
/// Included only in responses /// - /// - /// Required. Output only. The ID of the environment.
+ /// + /// Output only. The number of files in the environment, output only.
/// Included only in responses /// #if NET7_0_OR_GREATER @@ -128,26 +128,26 @@ public sealed partial class Environment #endif public Environment( global::System.Collections.Generic.IList? sources, - global::Google.Gemini.EnvironmentNetworkMode? networkMode, - global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, global::Google.Gemini.EnvironmentStatus? status, + string? id, string? lastAccessed, - string? created, - string? sizeBytes, - string? fileCount, string? updated, - string? id) + global::Google.Gemini.EnvironmentNetworkMode? networkMode, + string? sizeBytes, + global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist, + string? created, + string? fileCount) { this.Sources = sources; - this.NetworkMode = networkMode; - this.NetworkAllowlist = networkAllowlist; this.Status = status; + this.Id = id; this.LastAccessed = lastAccessed; - this.Created = created; + this.Updated = updated; + this.NetworkMode = networkMode; this.SizeBytes = sizeBytes; + this.NetworkAllowlist = networkAllowlist; + this.Created = created; this.FileCount = fileCount; - this.Updated = updated; - this.Id = id; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.Json.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.Json.g.cs new file mode 100644 index 000000000..eb6fe2259 --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Google.Gemini +{ + public sealed partial class EnvironmentFile + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Google.Gemini.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Google.Gemini.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Google.Gemini.EnvironmentFile? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Google.Gemini.EnvironmentFile), + jsonSerializerContext) as global::Google.Gemini.EnvironmentFile; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Google.Gemini.EnvironmentFile? FromJson( + string json) + { + return FromJson( + json, + global::Google.Gemini.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Google.Gemini.EnvironmentFile? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Google.Gemini.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Google.Gemini.EnvironmentFile), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.EnvironmentFile; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Google.Gemini.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Google.Gemini.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs new file mode 100644 index 000000000..c0ee62501 --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFile.g.cs @@ -0,0 +1,127 @@ + +#nullable enable + +namespace Google.Gemini +{ + /// + /// Metadata for a file or directory within an environment. + /// + public sealed partial class EnvironmentFile + { + /// + /// Output only. The name of the file or directory (e.g., "main.py" or "src").
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Output only. The creation time of the file/directory.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("created")] + public string? Created { get; set; } + + /// + /// Output only. The type of the entry.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter))] + public global::Google.Gemini.EnvironmentFileType? Type { get; set; } + + /// + /// Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("mime_type")] + public string? MimeType { get; set; } + + /// + /// Output only. The modification time of the file/directory.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("modified")] + public string? Modified { get; set; } + + /// + /// Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("path")] + public string? Path { get; set; } + + /// + /// Output only. The size of the file/directory in bytes. NOLINT
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("size_bytes")] + public string? SizeBytes { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Output only. The name of the file or directory (e.g., "main.py" or "src").
+ /// Included only in responses + /// + /// + /// Output only. The creation time of the file/directory.
+ /// Included only in responses + /// + /// + /// Output only. The type of the entry.
+ /// Included only in responses + /// + /// + /// Output only. The MIME type of the file (e.g., "text/python", "image/png"). Empty for directories. NOLINT
+ /// Included only in responses + /// + /// + /// Output only. The modification time of the file/directory.
+ /// Included only in responses + /// + /// + /// Output only. The full relative path within the environment (e.g., "workspace/src/main.py").
+ /// Included only in responses + /// + /// + /// Output only. The size of the file/directory in bytes. NOLINT
+ /// Included only in responses + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public EnvironmentFile( + string? name, + string? created, + global::Google.Gemini.EnvironmentFileType? type, + string? mimeType, + string? modified, + string? path, + string? sizeBytes) + { + this.Name = name; + this.Created = created; + this.Type = type; + this.MimeType = mimeType; + this.Modified = modified; + this.Path = path; + this.SizeBytes = sizeBytes; + } + + /// + /// Initializes a new instance of the class. + /// + public EnvironmentFile() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFileType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFileType.g.cs new file mode 100644 index 000000000..c3123b753 --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentFileType.g.cs @@ -0,0 +1,58 @@ + +#nullable enable + +namespace Google.Gemini +{ + /// + /// Output only. The type of the entry.
+ /// Included only in responses + ///
+ public enum EnvironmentFileType + { + /// + /// A directory. + /// + Directory, + /// + /// A regular file. + /// + File, + /// + /// Unspecified type. + /// + TypeUnspecified, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class EnvironmentFileTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this EnvironmentFileType value) + { + return value switch + { + EnvironmentFileType.Directory => "DIRECTORY", + EnvironmentFileType.File => "FILE", + EnvironmentFileType.TypeUnspecified => "TYPE_UNSPECIFIED", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static EnvironmentFileType? ToEnum(string value) + { + return value switch + { + "DIRECTORY" => EnvironmentFileType.Directory, + "FILE" => EnvironmentFileType.File, + "TYPE_UNSPECIFIED" => EnvironmentFileType.TypeUnspecified, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentStatus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentStatus.g.cs index fe003bcf6..31513caf8 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentStatus.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EnvironmentStatus.g.cs @@ -10,15 +10,15 @@ namespace Google.Gemini public enum EnvironmentStatus { /// - /// + /// /// Active, /// - /// + /// /// Expired, /// - /// + /// /// StatusUnspecified, } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs index 9af6f7775..5defb2a45 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ExecutableCode.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini ///
public sealed partial class ExecutableCode { - /// - /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - /// /// Required. The code to be executed. /// @@ -27,6 +21,12 @@ public sealed partial class ExecutableCode [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter))] public global::Google.Gemini.ExecutableCodeLanguage? Language { get; set; } + /// + /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -36,26 +36,26 @@ public sealed partial class ExecutableCode /// /// Initializes a new instance of the class. /// - /// - /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. - /// /// /// Required. The code to be executed. /// /// /// Required. Programming language of the `code`. /// + /// + /// Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ExecutableCode( - string? id, string? code, - global::Google.Gemini.ExecutableCodeLanguage? language) + global::Google.Gemini.ExecutableCodeLanguage? language, + string? id) { - this.Id = id; this.Code = code; this.Language = language; + this.Id = id; } /// 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 9a5b4e3c9..9b99325c6 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 @@ -16,36 +16,18 @@ public sealed partial class File public string? Uri { 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` - /// - [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). - /// - [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` was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("downloadUri")] - public string? DownloadUri { 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" - /// - [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. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
+ /// Output only. The timestamp of when the `File` was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("expirationTime")] - public string? ExpirationTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Output only. SHA-256 hash of the uploaded bytes.
@@ -54,6 +36,13 @@ public sealed partial class File [global::System.Text.Json.Serialization.JsonPropertyName("sha256Hash")] public byte[]? Sha256Hash { 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; } + /// /// Source of the File. /// @@ -70,38 +59,49 @@ public sealed partial class File public global::Google.Gemini.FileState? State { get; set; } /// - /// Output only. MIME type of the file.
+ /// Metadata for a video `File`. + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("videoMetadata")] + public global::Google.Gemini.VideoFileMetadata? VideoMetadata { 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("expirationTime")] + public string? ExpirationTime { get; set; } /// - /// Output only. The timestamp of when the `File` was created.
+ /// Output only. Size of the file in bytes.
/// 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; } /// - /// Output only. The timestamp of when the `File` was last updated.
+ /// Output only. The download uri of the `File`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("downloadUri")] + public string? DownloadUri { get; set; } /// - /// Metadata for a video `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("videoMetadata")] - public global::Google.Gemini.VideoFileMetadata? VideoMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } /// - /// Output only. Size of the file in bytes.
- /// 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" ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { 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` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -116,27 +116,22 @@ public sealed partial class File /// Output only. The uri of the `File`.
/// 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` - /// - /// - /// 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 download uri of the `File`.
+ /// + /// 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. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.
+ /// + /// Output only. The timestamp of when the `File` was created.
/// Included only in responses /// /// /// Output only. SHA-256 hash of the uploaded bytes.
/// Included only in responses /// + /// + /// Output only. MIME type of the file.
+ /// Included only in responses + /// /// /// Source of the File. /// @@ -144,58 +139,63 @@ public sealed partial class File /// Output only. Processing state of the File.
/// Included only in responses /// - /// - /// Output only. MIME type of the file.
+ /// + /// Metadata for a video `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 /// - /// - /// Output only. The timestamp of when the `File` was created.
+ /// + /// Output only. Size of the file in bytes.
/// Included only in responses /// - /// - /// Output only. The timestamp of when the `File` was last updated.
+ /// + /// Output only. The download uri of the `File`.
/// Included only in responses /// - /// - /// Metadata for a video `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. Size of the file in bytes.
- /// 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" + /// + /// + /// 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` /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public File( string? uri, - string? name, - global::Google.Gemini.Status? error, - string? downloadUri, - string? displayName, - string? expirationTime, + string? updateTime, + string? createTime, byte[]? sha256Hash, + string? mimeType, global::Google.Gemini.FileSource? source, global::Google.Gemini.FileState? state, - string? mimeType, - string? createTime, - string? updateTime, global::Google.Gemini.VideoFileMetadata? videoMetadata, - string? sizeBytes) + string? expirationTime, + string? sizeBytes, + string? downloadUri, + global::Google.Gemini.Status? error, + string? displayName, + string? name) { this.Uri = uri; - this.Name = name; - this.Error = error; - this.DownloadUri = downloadUri; - this.DisplayName = displayName; - this.ExpirationTime = expirationTime; + this.UpdateTime = updateTime; + this.CreateTime = createTime; this.Sha256Hash = sha256Hash; + this.MimeType = mimeType; this.Source = source; this.State = state; - this.MimeType = mimeType; - this.CreateTime = createTime; - this.UpdateTime = updateTime; this.VideoMetadata = videoMetadata; + this.ExpirationTime = expirationTime; this.SizeBytes = sizeBytes; + this.DownloadUri = downloadUri; + this.Error = error; + this.DisplayName = displayName; + this.Name = name; } /// 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 beb33d15e..dba44f24f 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 @@ -9,30 +9,38 @@ namespace Google.Gemini public sealed partial class FileSearchStore { /// - /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
+ /// 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("failedDocumentsCount")] - public string? FailedDocumentsCount { 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" + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("embeddingModel")] + public string? EmbeddingModel { get; set; } /// - /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
+ /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("failedDocumentsCount")] + public string? FailedDocumentsCount { 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. + /// Output only. The number of documents in the `FileSearchStore` that are being processed.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("embeddingModel")] - public string? EmbeddingModel { get; set; } + [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 + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } /// /// Output only. The Timestamp of when the `FileSearchStore` was created.
@@ -49,25 +57,17 @@ public sealed partial class FileSearchStore public string? ActiveDocumentsCount { get; set; } /// - /// 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. 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" ///
- [global::System.Text.Json.Serialization.JsonPropertyName("sizeBytes")] - public string? SizeBytes { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { 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.
+ /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -78,19 +78,24 @@ public sealed partial class FileSearchStore /// /// Initializes a new instance of the class. /// + /// + /// 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 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. + /// /// /// Output only. The number of documents in the `FileSearchStore` that have failed processing.
/// 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 Timestamp of when the `FileSearchStore` was last updated.
+ /// + /// Output only. The number of documents in the `FileSearchStore` that are being processed.
/// 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. + /// + /// 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 created.
@@ -100,41 +105,36 @@ public sealed partial class FileSearchStore /// 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 are being processed.
- /// 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`.
- /// 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. 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.
+ /// + /// Output only. The Timestamp of when the `FileSearchStore` was last updated.
/// Included only in responses /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FileSearchStore( - string? failedDocumentsCount, - string? displayName, - string? updateTime, + string? sizeBytes, string? embeddingModel, + string? failedDocumentsCount, + string? pendingDocumentsCount, + string? name, string? createTime, string? activeDocumentsCount, - string? pendingDocumentsCount, - string? sizeBytes, - string? name) + string? displayName, + string? updateTime) { - this.FailedDocumentsCount = failedDocumentsCount; - this.DisplayName = displayName; - this.UpdateTime = updateTime; + this.SizeBytes = sizeBytes; this.EmbeddingModel = embeddingModel; - this.CreateTime = createTime; - this.ActiveDocumentsCount = activeDocumentsCount; + this.FailedDocumentsCount = failedDocumentsCount; this.PendingDocumentsCount = pendingDocumentsCount; - this.SizeBytes = sizeBytes; this.Name = name; + this.CreateTime = createTime; + this.ActiveDocumentsCount = activeDocumentsCount; + this.DisplayName = displayName; + this.UpdateTime = updateTime; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs index ca8d29af4..aeca76b6a 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCall.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class FunctionCall { - /// - /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `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. /// @@ -26,6 +20,12 @@ public sealed partial class FunctionCall [global::System.Text.Json.Serialization.JsonPropertyName("args")] public object? Args { get; set; } + /// + /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class FunctionCall /// /// Initializes a new instance of the class. /// - /// - /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `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. The function parameters and values in JSON object format. /// + /// + /// Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCall( - string? id, string? name, - object? args) + object? args, + string? id) { - this.Id = id; this.Name = name; this.Args = args; + this.Id = id; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs index 7f9335127..a03827d50 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfig.g.cs @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class FunctionCallingConfig { - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("allowedFunctionNames")] - public global::System.Collections.Generic.IList? AllowedFunctionNames { get; set; } - /// /// Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO. /// @@ -21,6 +15,12 @@ public sealed partial class FunctionCallingConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter))] public global::Google.Gemini.FunctionCallingConfigMode? Mode { get; set; } + /// + /// 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowedFunctionNames")] + public global::System.Collections.Generic.IList? AllowedFunctionNames { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class FunctionCallingConfig /// /// Initializes a new instance of the class. /// - /// - /// 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. - /// /// /// Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO. /// + /// + /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionCallingConfig( - global::System.Collections.Generic.IList? allowedFunctionNames, - global::Google.Gemini.FunctionCallingConfigMode? mode) + global::Google.Gemini.FunctionCallingConfigMode? mode, + global::System.Collections.Generic.IList? allowedFunctionNames) { - this.AllowedFunctionNames = allowedFunctionNames; this.Mode = mode; + this.AllowedFunctionNames = allowedFunctionNames; } /// 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 7da0a71f6..c7d091329 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class FunctionDeclaration { /// - /// Required. A brief description of the function. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + 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`. @@ -23,8 +23,8 @@ public sealed partial class FunctionDeclaration /// /// 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("parameters")] - public global::Google.Gemini.Schema? Parameters { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public global::Google.Gemini.Schema? Response { get; set; } /// /// Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method. @@ -34,16 +34,10 @@ public sealed partial class FunctionDeclaration public global::Google.Gemini.FunctionDeclarationBehavior? Behavior { 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). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public global::Google.Gemini.Schema? Response { get; set; } - - /// - /// 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. + /// Required. A brief description of the function. /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + 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`. @@ -51,6 +45,12 @@ public sealed partial class FunctionDeclaration [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). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::Google.Gemini.Schema? Parameters { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -60,46 +60,46 @@ public sealed partial class FunctionDeclaration /// /// Initializes a new instance of the class. /// - /// - /// Required. A brief description of the function. + /// + /// 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`. /// - /// + /// /// 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. 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). - /// - /// - /// 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. + /// + /// Required. A brief description of the function. /// /// /// 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`. /// + /// + /// 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). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionDeclaration( - string? description, + string? name, object? responseJsonSchema, - global::Google.Gemini.Schema? parameters, - global::Google.Gemini.FunctionDeclarationBehavior? behavior, global::Google.Gemini.Schema? response, - string? name, - object? parametersJsonSchema) + global::Google.Gemini.FunctionDeclarationBehavior? behavior, + string? description, + object? parametersJsonSchema, + global::Google.Gemini.Schema? parameters) { - this.Description = description; + this.Name = name; this.ResponseJsonSchema = responseJsonSchema; - this.Parameters = parameters; - this.Behavior = behavior; this.Response = response; - this.Name = name; + this.Behavior = behavior; + this.Description = description; this.ParametersJsonSchema = parametersJsonSchema; + this.Parameters = parameters; } /// 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 c0c15dfbb..a66d04003 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 @@ -9,17 +9,16 @@ namespace Google.Gemini public sealed partial class FunctionResponse { /// - /// 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. + /// 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`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("response")] - public object? Response { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("willContinue")] + public bool? WillContinue { get; set; } /// - /// 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. + /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. /// - [global::System.Text.Json.Serialization.JsonPropertyName("scheduling")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter))] - public global::Google.Gemini.FunctionResponseScheduling? Scheduling { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("parts")] + public global::System.Collections.Generic.IList? Parts { 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. @@ -27,12 +26,6 @@ public sealed partial class FunctionResponse [global::System.Text.Json.Serialization.JsonPropertyName("name")] public string? Name { get; set; } - /// - /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. - /// - [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`. /// @@ -40,10 +33,17 @@ public sealed partial class FunctionResponse public string? Id { get; set; } /// - /// 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`. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("willContinue")] - public bool? WillContinue { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public object? Response { get; set; } + + /// + /// 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("scheduling")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter))] + public global::Google.Gemini.FunctionResponseScheduling? Scheduling { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -54,41 +54,41 @@ public sealed partial class FunctionResponse /// /// Initializes a new instance of the class. /// - /// - /// 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. + /// + /// 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. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE. + /// + /// Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types. /// /// /// 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`. /// - /// - /// 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`. + /// + /// 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. + /// + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public FunctionResponse( - object? response, - global::Google.Gemini.FunctionResponseScheduling? scheduling, - string? name, + bool? willContinue, global::System.Collections.Generic.IList? parts, + string? name, string? id, - bool? willContinue) + object? response, + global::Google.Gemini.FunctionResponseScheduling? scheduling) { - this.Response = response; - this.Scheduling = scheduling; - this.Name = name; + this.WillContinue = willContinue; this.Parts = parts; + this.Name = name; this.Id = id; - this.WillContinue = willContinue; + this.Response = response; + this.Scheduling = scheduling; } /// 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 ef9ec978a..f07cf0b1b 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,22 +9,11 @@ namespace Google.Gemini public sealed partial class GenerateContentBatch { /// - /// Configures the input to the batch request. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] - public global::Google.Gemini.InputConfig? InputConfig { 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; } - - /// - /// Stats about the batch. + /// Output only. The time at which the batch was created.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] - public global::Google.Gemini.BatchStats? BatchStats { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// /// Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.
@@ -34,17 +23,17 @@ public sealed partial class GenerateContentBatch public string? Name { get; set; } /// - /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. + /// Output only. The time at which the batch was last updated.
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("output")] - public global::Google.Gemini.GenerateContentBatchOutput? Output { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// - /// Output only. The time at which the batch processing completed.
- /// 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. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] - public string? EndTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("priority")] + public string? Priority { get; set; } /// /// Output only. The state of the batch.
@@ -55,30 +44,41 @@ public sealed partial class GenerateContentBatch public global::Google.Gemini.GenerateContentBatchState? State { get; set; } /// - /// Output only. The time at which the batch was created.
- /// Included only in responses + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// - /// Output only. The time at which the batch was last updated.
+ /// 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.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("endTime")] + public string? EndTime { 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. + /// Stats about the batch. /// - [global::System.Text.Json.Serialization.JsonPropertyName("priority")] - public string? Priority { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("batchStats")] + public global::Google.Gemini.BatchStats? BatchStats { get; set; } /// - /// Required. The user-defined name of this batch. + /// Configures the input to the batch request. /// - [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputConfig")] + public global::Google.Gemini.InputConfig? InputConfig { get; set; } + + /// + /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("output")] + public global::Google.Gemini.GenerateContentBatchOutput? Output { 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. /// - /// - /// 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. + /// + /// Output only. The time at which the batch was created.
+ /// Included only in responses /// /// /// 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 `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. - /// - /// - /// Output only. The time at which the batch processing completed.
+ /// + /// 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 state of the batch.
/// Included only in responses /// - /// - /// Output only. The time at which the batch was created.
- /// Included only in responses + /// + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - /// - /// Output only. The time at which the batch was last updated.
+ /// + /// Required. The user-defined name of this batch. + /// + /// + /// Output only. The time at which the batch processing completed.
/// 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. + /// + /// Stats about the batch. /// - /// - /// Required. The user-defined name of this batch. + /// + /// Configures the input to the batch request. + /// + /// + /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentBatch( - global::Google.Gemini.InputConfig? inputConfig, - string? model, - global::Google.Gemini.BatchStats? batchStats, - string? name, - global::Google.Gemini.GenerateContentBatchOutput? output, - string? endTime, - global::Google.Gemini.GenerateContentBatchState? state, string? createTime, + string? name, string? updateTime, string? priority, - string? displayName) + global::Google.Gemini.GenerateContentBatchState? state, + string? model, + string? displayName, + string? endTime, + global::Google.Gemini.BatchStats? batchStats, + global::Google.Gemini.InputConfig? inputConfig, + global::Google.Gemini.GenerateContentBatchOutput? output) { - this.InputConfig = inputConfig; - this.Model = model; - this.BatchStats = batchStats; - this.Name = name; - this.Output = output; - this.EndTime = endTime; - this.State = state; this.CreateTime = createTime; + this.Name = name; this.UpdateTime = updateTime; this.Priority = priority; + this.State = state; + this.Model = model; this.DisplayName = displayName; + this.EndTime = endTime; + this.BatchStats = batchStats; + this.InputConfig = inputConfig; + this.Output = output; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs index bb0201655..c34eb311c 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchOutput.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class GenerateContentBatchOutput { + /// + /// The responses to the requests in the batch. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("inlinedResponses")] + public global::Google.Gemini.InlinedResponses? 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 `GenerateContentResponse` 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 GenerateContentBatchOutput [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.InlinedResponses? InlinedResponses { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,22 +30,22 @@ public sealed partial class GenerateContentBatchOutput /// /// 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 `GenerateContentResponse` 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 GenerateContentBatchOutput( - string? responsesFile, - global::Google.Gemini.InlinedResponses? inlinedResponses) + global::Google.Gemini.InlinedResponses? inlinedResponses, + string? responsesFile) { - this.ResponsesFile = responsesFile; this.InlinedResponses = inlinedResponses; + this.ResponsesFile = responsesFile; } /// 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 5a5d51645..03de5b52b 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 @@ -9,10 +9,23 @@ namespace Google.Gemini public sealed partial class GenerateContentRequest { /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - public string? Model { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] + public global::Google.Gemini.Content? SystemInstruction { 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; } + + /// + /// 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. 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. @@ -21,10 +34,10 @@ public sealed partial class GenerateContentRequest public global::System.Collections.Generic.IList? Tools { 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. @@ -32,13 +45,6 @@ public sealed partial class GenerateContentRequest [global::System.Text.Json.Serialization.JsonPropertyName("store")] public bool? Store { 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; } - /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// @@ -46,16 +52,10 @@ public sealed partial class GenerateContentRequest public global::Google.Gemini.GenerationConfig? GenerationConfig { get; set; } /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("contents")] - public global::System.Collections.Generic.IList? Contents { 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. + /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("systemInstruction")] - public global::Google.Gemini.Content? SystemInstruction { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } /// /// 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. @@ -64,10 +64,10 @@ public sealed partial class GenerateContentRequest public global::System.Collections.Generic.IList? SafetySettings { 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}` + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("cachedContent")] - public string? CachedContent { get; 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 @@ -78,61 +78,61 @@ public sealed partial class GenerateContentRequest /// /// Initializes a new instance of the class. /// - /// - /// 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. + /// + /// + /// The Tool configuration containing parameters for specifying `Tool` use in the request. + /// + /// + /// Optional. The service tier of the request. /// /// /// 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. + /// + /// 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. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config. /// - /// - /// Optional. The service tier of the request. - /// /// /// Configuration options for model generation and outputs. Not all parameters are configurable for every model. /// - /// - /// 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. - /// - /// - /// 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 name of the `Model` to use for generating the completion. Format: `models/{model}`. /// /// /// 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. /// - /// - /// 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}` + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentRequest( - string? model, - global::System.Collections.Generic.IList? tools, + global::Google.Gemini.Content? systemInstruction, global::Google.Gemini.ToolConfig? toolConfig, - bool? store, global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier, + global::System.Collections.Generic.IList? tools, + string? cachedContent, + bool? store, global::Google.Gemini.GenerationConfig? generationConfig, - global::System.Collections.Generic.IList? contents, - global::Google.Gemini.Content? systemInstruction, + string? model, global::System.Collections.Generic.IList? safetySettings, - string? cachedContent) + global::System.Collections.Generic.IList? contents) { - this.Model = model; - this.Tools = tools; + this.SystemInstruction = systemInstruction; this.ToolConfig = toolConfig; - this.Store = store; this.ServiceTier = serviceTier; + this.Tools = tools; + this.CachedContent = cachedContent; + this.Store = store; this.GenerationConfig = generationConfig; - this.Contents = contents; - this.SystemInstruction = systemInstruction; + this.Model = model; this.SafetySettings = safetySettings; - this.CachedContent = cachedContent; + this.Contents = contents; } /// 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 801671e23..b1c832a12 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 @@ -8,18 +8,6 @@ namespace Google.Gemini /// public sealed partial class GenerateContentResponse { - /// - /// Metadata on the generation request's token usage. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] - public global::Google.Gemini.UsageMetadata? UsageMetadata { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelStatus")] - public global::Google.Gemini.ModelStatus? ModelStatus { get; set; } - /// /// Candidate responses from the model. /// @@ -33,6 +21,12 @@ public sealed partial class GenerateContentResponse [global::System.Text.Json.Serialization.JsonPropertyName("modelVersion")] public string? ModelVersion { get; set; } + /// + /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("promptFeedback")] + public global::Google.Gemini.PromptFeedback? PromptFeedback { get; set; } + /// /// Output only. response_id is used to identify each response.
/// Included only in responses @@ -41,10 +35,16 @@ public sealed partial class GenerateContentResponse public string? ResponseId { get; set; } /// - /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. + /// 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("promptFeedback")] - public global::Google.Gemini.PromptFeedback? PromptFeedback { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modelStatus")] + public global::Google.Gemini.ModelStatus? ModelStatus { get; set; } + + /// + /// Metadata on the generation request's token usage. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usageMetadata")] + public global::Google.Gemini.UsageMetadata? UsageMetadata { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -55,12 +55,6 @@ public sealed partial class GenerateContentResponse /// /// Initializes a new instance of the class. /// - /// - /// Metadata on the generation request's token usage. - /// - /// - /// 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. /// @@ -68,30 +62,36 @@ public sealed partial class GenerateContentResponse /// Output only. The model version used to generate the response.
/// Included only in responses /// + /// + /// 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 /// - /// - /// A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`. + /// + /// The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable. + /// + /// + /// Metadata on the generation request's token usage. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerateContentResponse( - global::Google.Gemini.UsageMetadata? usageMetadata, - global::Google.Gemini.ModelStatus? modelStatus, global::System.Collections.Generic.IList? candidates, string? modelVersion, + global::Google.Gemini.PromptFeedback? promptFeedback, string? responseId, - global::Google.Gemini.PromptFeedback? promptFeedback) + global::Google.Gemini.ModelStatus? modelStatus, + global::Google.Gemini.UsageMetadata? usageMetadata) { - this.UsageMetadata = usageMetadata; - this.ModelStatus = modelStatus; this.Candidates = candidates; this.ModelVersion = modelVersion; - this.ResponseId = responseId; this.PromptFeedback = promptFeedback; + this.ResponseId = responseId; + this.ModelStatus = modelStatus; + 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 6b77252c6..e0ee3f658 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 @@ -8,12 +8,24 @@ namespace Google.Gemini /// public sealed partial class GeneratedFile { + /// + /// 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; } + /// /// MIME type of the generatedFile. /// [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] public string? MimeType { get; set; } + /// + /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + /// /// Output only. The state of the GeneratedFile.
/// Included only in responses @@ -22,18 +34,6 @@ public sealed partial class GeneratedFile [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). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("error")] - public global::Google.Gemini.Status? Error { get; set; } - - /// - /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` - /// - [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -43,32 +43,32 @@ public sealed partial class GeneratedFile /// /// Initializes a new instance of the class. /// + /// + /// 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). + /// /// /// MIME type of the generatedFile. /// + /// + /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` + /// /// /// 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). - /// - /// - /// Identifier. The name of the generated file. Example: `generatedFiles/abc-123` - /// #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) + string? mimeType, + string? name, + global::Google.Gemini.GeneratedFileState? state) { - this.MimeType = mimeType; - this.State = state; this.Error = error; + this.MimeType = mimeType; this.Name = name; + this.State = state; } /// 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 cb7d4e266..992c43797 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,28 +9,34 @@ namespace Google.Gemini public sealed partial class GenerationConfig { /// - /// Config for thinking features. + /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thinkingConfig")] - public global::Google.Gemini.ThinkingConfig? ThinkingConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseJsonSchema")] + public object? ResponseJsonSchema { 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. + /// Config for translation features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topP")] - public float? TopP { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("translationConfig")] + public global::Google.Gemini.TranslationConfig? TranslationConfig { 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. 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("responseSchema")] - public global::Google.Gemini.Schema? ResponseSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] + public int? MaxOutputTokens { get; set; } /// - /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. + /// The audio transcription configuration. /// - [global::System.Text.Json.Serialization.JsonPropertyName("responseFormat")] - public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] + public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("responseMimeType")] + public string? ResponseMimeType { get; set; } /// /// Optional. If specified, the media resolution specified will be used. @@ -40,16 +46,16 @@ public sealed partial class GenerationConfig public global::Google.Gemini.GenerationConfigMediaResolution? MediaResolution { get; set; } /// - /// Optional. If true, export the logprobs results in response. + /// 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("responseLogprobs")] - public bool? ResponseLogprobs { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseFormat")] + public global::Google.Gemini.ResponseFormatConfig? ResponseFormat { 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. + /// Config for thinking features. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxOutputTokens")] - public int? MaxOutputTokens { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("thinkingConfig")] + public global::Google.Gemini.ThinkingConfig? ThinkingConfig { 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. @@ -57,12 +63,6 @@ public sealed partial class GenerationConfig [global::System.Text.Json.Serialization.JsonPropertyName("topK")] public int? TopK { 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]. /// @@ -70,10 +70,10 @@ public sealed partial class GenerationConfig public float? Temperature { 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. + /// 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("responseMimeType")] - public string? ResponseMimeType { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("presencePenalty")] + public float? PresencePenalty { 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]. @@ -82,28 +82,28 @@ public sealed partial class GenerationConfig public int? Logprobs { get; set; } /// - /// Config for speech generation and transcription. + /// Optional. Enables enhanced civic answers. It may not be available for all models. /// - [global::System.Text.Json.Serialization.JsonPropertyName("speechConfig")] - public global::Google.Gemini.SpeechConfig? SpeechConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enableEnhancedCivicAnswers")] + public bool? EnableEnhancedCivicAnswers { get; set; } /// - /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. + /// 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("enableAffectiveDialog")] - public bool? EnableAffectiveDialog { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidateCount")] + public int? CandidateCount { 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. 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("responseModalities")] - public global::System.Collections.Generic.IList? ResponseModalities { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] + public float? FrequencyPenalty { 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. Seed used in decoding. If not set, the request uses a randomly generated seed. /// - [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] - public global::System.Collections.Generic.IList? StopSequences { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("seed")] + public int? Seed { get; set; } /// /// Config for image generation features. @@ -112,46 +112,46 @@ public sealed partial class GenerationConfig public global::Google.Gemini.ImageConfig? ImageConfig { 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. + /// Config for speech generation and transcription. /// - [global::System.Text.Json.Serialization.JsonPropertyName("presencePenalty")] - public float? PresencePenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("speechConfig")] + public global::Google.Gemini.SpeechConfig? SpeechConfig { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("audioTranscriptionConfig")] - public global::Google.Gemini.AudioTranscriptionConfig? AudioTranscriptionConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("stopSequences")] + public global::System.Collections.Generic.IList? StopSequences { get; set; } /// - /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. + /// 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("responseJsonSchema")] - public object? ResponseJsonSchema { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseSchema")] + public global::Google.Gemini.Schema? ResponseSchema { get; set; } /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("seed")] - public int? Seed { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { 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. If enabled, the model will detect emotions and adapt its responses accordingly. /// - [global::System.Text.Json.Serialization.JsonPropertyName("candidateCount")] - public int? CandidateCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("enableAffectiveDialog")] + public bool? EnableAffectiveDialog { 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. + /// Optional. If true, export the logprobs results in response. /// - [global::System.Text.Json.Serialization.JsonPropertyName("frequencyPenalty")] - public float? FrequencyPenalty { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseLogprobs")] + public bool? ResponseLogprobs { get; set; } /// - /// Optional. Enables enhanced civic answers. It may not be available for all models. + /// 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("enableEnhancedCivicAnswers")] - public bool? EnableEnhancedCivicAnswers { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("responseModalities")] + public global::System.Collections.Generic.IList? ResponseModalities { 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. /// - /// - /// Config for thinking features. + /// + /// Optional. An internal detail. Use `responseJsonSchema` rather than this field. /// - /// - /// 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. + /// + /// Config for translation features. /// - /// - /// 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. 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. /// - /// - /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. + /// + /// The audio transcription configuration. + /// + /// + /// 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. If specified, the media resolution specified will be used. /// - /// - /// Optional. If true, export the logprobs results in response. + /// + /// Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality. /// - /// - /// 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 thinking features. /// /// /// 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 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. 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. 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. 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]. /// - /// - /// Config for speech generation and transcription. + /// + /// Optional. Enables enhanced civic answers. It may not be available for all models. /// - /// - /// Optional. If enabled, the model will detect emotions and adapt its responses accordingly. + /// + /// 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 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. 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. 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. Seed used in decoding. If not set, the request uses a randomly generated seed. /// /// /// Config for image generation features. /// - /// - /// 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. + /// + /// Config for speech generation and transcription. /// - /// - /// 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. An internal detail. Use `responseJsonSchema` rather than this field. + /// + /// 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. 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. If enabled, the model will detect emotions and adapt its responses accordingly. /// - /// - /// 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. Enables enhanced civic answers. It may not be available for all models. + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GenerationConfig( - global::Google.Gemini.ThinkingConfig? thinkingConfig, - float? topP, - global::Google.Gemini.Schema? responseSchema, - global::Google.Gemini.ResponseFormatConfig? responseFormat, - global::Google.Gemini.GenerationConfigMediaResolution? mediaResolution, - bool? responseLogprobs, + object? responseJsonSchema, + global::Google.Gemini.TranslationConfig? translationConfig, int? maxOutputTokens, + global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, + string? responseMimeType, + global::Google.Gemini.GenerationConfigMediaResolution? mediaResolution, + global::Google.Gemini.ResponseFormatConfig? responseFormat, + global::Google.Gemini.ThinkingConfig? thinkingConfig, int? topK, - global::Google.Gemini.TranslationConfig? translationConfig, float? temperature, - string? responseMimeType, - int? logprobs, - global::Google.Gemini.SpeechConfig? speechConfig, - bool? enableAffectiveDialog, - global::System.Collections.Generic.IList? responseModalities, - global::System.Collections.Generic.IList? stopSequences, - global::Google.Gemini.ImageConfig? imageConfig, float? presencePenalty, - global::Google.Gemini.AudioTranscriptionConfig? audioTranscriptionConfig, - object? responseJsonSchema, - int? seed, + int? logprobs, + bool? enableEnhancedCivicAnswers, int? candidateCount, float? frequencyPenalty, - bool? enableEnhancedCivicAnswers) + int? seed, + global::Google.Gemini.ImageConfig? imageConfig, + global::Google.Gemini.SpeechConfig? speechConfig, + global::System.Collections.Generic.IList? stopSequences, + global::Google.Gemini.Schema? responseSchema, + float? topP, + bool? enableAffectiveDialog, + bool? responseLogprobs, + global::System.Collections.Generic.IList? responseModalities) { - this.ThinkingConfig = thinkingConfig; - this.TopP = topP; - this.ResponseSchema = responseSchema; - this.ResponseFormat = responseFormat; - this.MediaResolution = mediaResolution; - this.ResponseLogprobs = responseLogprobs; + this.ResponseJsonSchema = responseJsonSchema; + this.TranslationConfig = translationConfig; this.MaxOutputTokens = maxOutputTokens; + this.AudioTranscriptionConfig = audioTranscriptionConfig; + this.ResponseMimeType = responseMimeType; + this.MediaResolution = mediaResolution; + this.ResponseFormat = responseFormat; + this.ThinkingConfig = thinkingConfig; this.TopK = topK; - this.TranslationConfig = translationConfig; this.Temperature = temperature; - this.ResponseMimeType = responseMimeType; + this.PresencePenalty = presencePenalty; this.Logprobs = logprobs; + this.EnableEnhancedCivicAnswers = enableEnhancedCivicAnswers; + this.CandidateCount = candidateCount; + this.FrequencyPenalty = frequencyPenalty; + this.Seed = seed; + this.ImageConfig = imageConfig; this.SpeechConfig = speechConfig; + this.StopSequences = stopSequences; + this.ResponseSchema = responseSchema; + this.TopP = topP; this.EnableAffectiveDialog = enableAffectiveDialog; + this.ResponseLogprobs = responseLogprobs; this.ResponseModalities = responseModalities; - this.StopSequences = stopSequences; - this.ImageConfig = imageConfig; - this.PresencePenalty = presencePenalty; - this.AudioTranscriptionConfig = audioTranscriptionConfig; - this.ResponseJsonSchema = responseJsonSchema; - this.Seed = seed; - this.CandidateCount = candidateCount; - this.FrequencyPenalty = frequencyPenalty; - this.EnableEnhancedCivicAnswers = enableEnhancedCivicAnswers; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs index 147ed1464..bfccb5d0d 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini { /// - /// + /// /// public enum GenerationConfigResponseModalitie { diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.Json.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.Json.g.cs new file mode 100644 index 000000000..29dc699dc --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace Google.Gemini +{ + public sealed partial class GetEnvironmentFilesResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::Google.Gemini.SourceGenerationContext.Default); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::Google.Gemini.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::Google.Gemini.GetEnvironmentFilesResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::Google.Gemini.GetEnvironmentFilesResponse), + jsonSerializerContext) as global::Google.Gemini.GetEnvironmentFilesResponse; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::Google.Gemini.GetEnvironmentFilesResponse? FromJson( + string json) + { + return FromJson( + json, + global::Google.Gemini.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::Google.Gemini.GetEnvironmentFilesResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::Google.Gemini.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Google.Gemini.GetEnvironmentFilesResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Google.Gemini.GetEnvironmentFilesResponse; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::Google.Gemini.SourceGenerationContext.Default); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::Google.Gemini.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs new file mode 100644 index 000000000..7e418d9f4 --- /dev/null +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GetEnvironmentFilesResponse.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace Google.Gemini +{ + /// + /// Response for `GetEnvironmentFiles`. + /// + public sealed partial class GetEnvironmentFilesResponse + { + /// + /// If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("files")] + public global::System.Collections.Generic.IList? Files { get; set; } + + /// + /// Pagination token for directory listing. NOLINT + /// + [global::System.Text.Json.Serialization.JsonPropertyName("next_page_token")] + public string? NextPageToken { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`). + /// + /// + /// Pagination token for directory listing. NOLINT + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public GetEnvironmentFilesResponse( + global::System.Collections.Generic.IList? files, + string? nextPageToken) + { + this.Files = files; + this.NextPageToken = nextPageToken; + } + + /// + /// Initializes a new instance of the class. + /// + public GetEnvironmentFilesResponse() + { + } + + } +} \ No newline at end of file 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 100480935..80b477c7c 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 { - /// - /// 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; } - - /// - /// Segment of the content. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("segment")] - public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Segment { get; set; } - /// /// 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. /// @@ -33,6 +21,18 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport [global::System.Text.Json.Serialization.JsonPropertyName("renderedParts")] public global::System.Collections.Generic.IList? RenderedParts { 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; } + + /// + /// Segment of the content. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("segment")] + public global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? Segment { 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. /// - /// - /// 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). - /// - /// - /// Segment of the content. - /// /// /// 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. /// @@ -55,19 +49,25 @@ public sealed partial class GoogleAiGenerativelanguageV1betaGroundingSupport /// 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 /// + /// + /// 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). + /// + /// + /// Segment of the content. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleAiGenerativelanguageV1betaGroundingSupport( - global::System.Collections.Generic.IList? groundingChunkIndices, - global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment, global::System.Collections.Generic.IList? confidenceScores, - global::System.Collections.Generic.IList? renderedParts) + global::System.Collections.Generic.IList? renderedParts, + global::System.Collections.Generic.IList? groundingChunkIndices, + global::Google.Gemini.GoogleAiGenerativelanguageV1betaSegment? segment) { - this.GroundingChunkIndices = groundingChunkIndices; - this.Segment = segment; this.ConfidenceScores = confidenceScores; this.RenderedParts = renderedParts; + this.GroundingChunkIndices = groundingChunkIndices; + this.Segment = segment; } /// 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 b3feedae9..918981f9f 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,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class GoogleAiGenerativelanguageV1betaSegment { - /// - /// The index of a Part object within its parent Content object. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] - 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("startIndex")] public int? StartIndex { get; set; } + /// + /// The text corresponding to the segment from the response. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } + /// /// End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero. /// @@ -27,10 +27,10 @@ public sealed partial class GoogleAiGenerativelanguageV1betaSegment public int? EndIndex { get; set; } /// - /// The text corresponding to the segment from the response. + /// The index of a Part object within its parent Content object. /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] + public int? PartIndex { 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. /// - /// - /// 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. /// + /// + /// The text corresponding to the segment from the response. + /// /// /// 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. + /// + /// The index of a Part object within its parent Content object. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleAiGenerativelanguageV1betaSegment( - int? partIndex, int? startIndex, + string? text, int? endIndex, - string? text) + int? partIndex) { - this.PartIndex = partIndex; this.StartIndex = startIndex; - this.EndIndex = endIndex; this.Text = text; + this.EndIndex = endIndex; + this.PartIndex = partIndex; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs index 74828ec0c..72c070046 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GoogleSearch.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class GoogleSearch { - /// - /// Different types of search that can be enabled on the GoogleSearch tool. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("searchTypes")] - public global::Google.Gemini.SearchTypes? SearchTypes { get; set; } - /// /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("timeRangeFilter")] public global::Google.Gemini.Interval? TimeRangeFilter { get; set; } + /// + /// Different types of search that can be enabled on the GoogleSearch tool. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("searchTypes")] + public global::Google.Gemini.SearchTypes? SearchTypes { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class GoogleSearch /// /// Initializes a new instance of the class. /// - /// - /// Different types of search that can be enabled on the GoogleSearch tool. - /// /// /// 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. /// + /// + /// Different types of search that can be enabled on the GoogleSearch tool. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GoogleSearch( - global::Google.Gemini.SearchTypes? searchTypes, - global::Google.Gemini.Interval? timeRangeFilter) + global::Google.Gemini.Interval? timeRangeFilter, + global::Google.Gemini.SearchTypes? searchTypes) { - this.SearchTypes = searchTypes; this.TimeRangeFilter = timeRangeFilter; + this.SearchTypes = searchTypes; } /// 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 06d729799..0abad5877 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,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class GroundingChunk { - /// - /// Chunk from the web. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("web")] - public global::Google.Gemini.Web? Web { get; set; } - /// /// Chunk from context retrieved by the file search tool. /// @@ -21,10 +15,10 @@ public sealed partial class GroundingChunk public global::Google.Gemini.RetrievedContext? RetrievedContext { get; set; } /// - /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. + /// Chunk from the web. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maps")] - public global::Google.Gemini.Maps? Maps { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("web")] + public global::Google.Gemini.Web? Web { get; set; } /// /// Chunk from image search. @@ -32,6 +26,12 @@ public sealed partial class GroundingChunk [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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("maps")] + public global::Google.Gemini.Maps? Maps { 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 the web. - /// /// /// Chunk from context retrieved by the file search tool. /// - /// - /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. + /// + /// Chunk from the web. /// /// /// Chunk from image search. /// + /// + /// A grounding chunk from Google Maps. A Maps chunk corresponds to a single place. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingChunk( - global::Google.Gemini.Web? web, global::Google.Gemini.RetrievedContext? retrievedContext, - global::Google.Gemini.Maps? maps, - global::Google.Gemini.Image? image) + global::Google.Gemini.Web? web, + global::Google.Gemini.Image? image, + global::Google.Gemini.Maps? maps) { - this.Web = web; this.RetrievedContext = retrievedContext; - this.Maps = maps; + this.Web = web; this.Image = image; + this.Maps = maps; } /// 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 7ea8e4c74..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 @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class GroundingChunkCustomMetadata { + /// + /// Optional. The string value of the metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] + public string? StringValue { get; set; } + /// /// A list of string values. /// @@ -20,12 +26,6 @@ public sealed partial class GroundingChunkCustomMetadata [global::System.Text.Json.Serialization.JsonPropertyName("key")] public string? Key { get; set; } - /// - /// Optional. The string value of the metadata. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("stringValue")] - public string? StringValue { get; set; } - /// /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. /// @@ -41,15 +41,15 @@ public sealed partial class GroundingChunkCustomMetadata /// /// Initializes a new instance of the class. /// + /// + /// Optional. The string value of the metadata. + /// /// /// A list of string values. /// /// /// The key of the metadata. /// - /// - /// Optional. The string value of the metadata. - /// /// /// Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used. /// @@ -57,14 +57,14 @@ public sealed partial class GroundingChunkCustomMetadata [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingChunkCustomMetadata( + string? stringValue, global::Google.Gemini.GroundingChunkStringList? stringListValue, string? key, - string? stringValue, float? numericValue) { + this.StringValue = stringValue; this.StringListValue = stringListValue; this.Key = key; - this.StringValue = stringValue; 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 b3e0ffa42..d1be261cc 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 @@ -15,10 +15,10 @@ public sealed partial class GroundingMetadata public global::Google.Gemini.SearchEntryPoint? SearchEntryPoint { 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. + /// List of grounding support. /// - [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunks")] - public global::System.Collections.Generic.IList? GroundingChunks { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingSupports")] + public global::System.Collections.Generic.IList? GroundingSupports { get; set; } /// /// Image search queries used for grounding. @@ -27,10 +27,10 @@ public sealed partial class GroundingMetadata public global::System.Collections.Generic.IList? ImageSearchQueries { get; set; } /// - /// List of grounding support. + /// 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("groundingSupports")] - public global::System.Collections.Generic.IList? GroundingSupports { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("groundingChunks")] + public global::System.Collections.Generic.IList? GroundingChunks { 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. @@ -38,18 +38,18 @@ public sealed partial class GroundingMetadata [global::System.Text.Json.Serialization.JsonPropertyName("googleMapsWidgetContextToken")] public string? GoogleMapsWidgetContextToken { get; set; } - /// - /// 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; } - /// /// Metadata related to retrieval in the grounding flow. /// [global::System.Text.Json.Serialization.JsonPropertyName("retrievalMetadata")] public global::Google.Gemini.RetrievalMetadata? RetrievalMetadata { get; set; } + /// + /// 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; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -62,43 +62,43 @@ public sealed partial class GroundingMetadata /// /// Google search entry point. /// - /// - /// 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. + /// + /// List of grounding support. /// /// /// Image search queries used for grounding. /// - /// - /// List of grounding support. + /// + /// 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. /// /// /// 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. /// - /// - /// Web search queries for the following-up web search. - /// /// /// Metadata related to retrieval in the grounding flow. /// + /// + /// Web search queries for the following-up web search. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingMetadata( global::Google.Gemini.SearchEntryPoint? searchEntryPoint, - global::System.Collections.Generic.IList? groundingChunks, - global::System.Collections.Generic.IList? imageSearchQueries, global::System.Collections.Generic.IList? groundingSupports, + global::System.Collections.Generic.IList? imageSearchQueries, + global::System.Collections.Generic.IList? groundingChunks, string? googleMapsWidgetContextToken, - global::System.Collections.Generic.IList? webSearchQueries, - global::Google.Gemini.RetrievalMetadata? retrievalMetadata) + global::Google.Gemini.RetrievalMetadata? retrievalMetadata, + global::System.Collections.Generic.IList? webSearchQueries) { this.SearchEntryPoint = searchEntryPoint; - this.GroundingChunks = groundingChunks; - this.ImageSearchQueries = imageSearchQueries; this.GroundingSupports = groundingSupports; + this.ImageSearchQueries = imageSearchQueries; + this.GroundingChunks = groundingChunks; this.GoogleMapsWidgetContextToken = googleMapsWidgetContextToken; - this.WebSearchQueries = webSearchQueries; this.RetrievalMetadata = retrievalMetadata; + this.WebSearchQueries = webSearchQueries; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs index c11ba70eb..90cec8645 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GroundingPassageId.g.cs @@ -9,18 +9,18 @@ namespace Google.Gemini public sealed partial class GroundingPassageId { /// - /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
+ /// Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] - public int? PartIndex { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("passageId")] + public string? PassageId { get; set; } /// - /// Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.
+ /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("passageId")] - public string? PassageId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("partIndex")] + public int? PartIndex { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -31,23 +31,23 @@ public sealed partial class GroundingPassageId /// /// Initializes a new instance of the class. /// - /// - /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
- /// Included only in responses - /// /// /// Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.
/// Included only in responses /// + /// + /// Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GroundingPassageId( - int? partIndex, - string? passageId) + string? passageId, + int? partIndex) { - this.PartIndex = partIndex; this.PassageId = passageId; + this.PartIndex = partIndex; } /// 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 3f39401bd..420dac22e 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 @@ -14,12 +14,6 @@ public sealed partial class Hyperparameters [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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("batchSize")] - public int? BatchSize { get; set; } - /// /// 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. /// @@ -32,6 +26,12 @@ public sealed partial class Hyperparameters [global::System.Text.Json.Serialization.JsonPropertyName("learningRateMultiplier")] public float? LearningRateMultiplier { 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("batchSize")] + public int? BatchSize { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -44,28 +44,28 @@ public sealed partial class Hyperparameters /// /// 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 batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Hyperparameters( int? epochCount, - int? batchSize, float? learningRate, - float? learningRateMultiplier) + float? learningRateMultiplier, + int? batchSize) { this.EpochCount = epochCount; - this.BatchSize = batchSize; this.LearningRate = learningRate; this.LearningRateMultiplier = learningRateMultiplier; + this.BatchSize = batchSize; } /// 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 9cc660535..edb3aee40 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 @@ -20,18 +20,18 @@ public sealed partial class Image [global::System.Text.Json.Serialization.JsonPropertyName("sourceUri")] public string? SourceUri { get; set; } - /// - /// The title of the web page that the image is from. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } - /// /// The root domain of the web page that the image is from, e.g. "example.com". /// [global::System.Text.Json.Serialization.JsonPropertyName("domain")] public string? Domain { get; set; } + /// + /// The title of the web page that the image is from. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -47,25 +47,25 @@ public sealed partial class Image /// /// The web page URI for attribution. /// - /// - /// The title of the web page that the image is from. - /// /// /// The root domain of the web page that the image is from, e.g. "example.com". /// + /// + /// The title of the web page that the image is from. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Image( string? imageUri, string? sourceUri, - string? title, - string? domain) + string? domain, + string? title) { this.ImageUri = imageUri; this.SourceUri = sourceUri; - this.Title = title; this.Domain = domain; + this.Title = title; } /// 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 f946f315b..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,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class ImageResponseFormat { - /// - /// Optional. The aspect ratio for the image output. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] - [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. /// @@ -29,6 +22,13 @@ public sealed partial class ImageResponseFormat [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter))] public global::Google.Gemini.ImageResponseFormatMimeType? MimeType { get; set; } + /// + /// Optional. The aspect ratio for the image output. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("aspectRatio")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter))] + public global::Google.Gemini.ImageResponseFormatAspectRatio? AspectRatio { 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 aspect ratio for the image output. - /// /// /// 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 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.ImageResponseFormatAspectRatio? aspectRatio, global::Google.Gemini.ImageResponseFormatDelivery? delivery, global::Google.Gemini.ImageResponseFormatMimeType? mimeType, + global::Google.Gemini.ImageResponseFormatAspectRatio? aspectRatio, global::Google.Gemini.ImageResponseFormatImageSize? imageSize) { - this.AspectRatio = aspectRatio; this.Delivery = delivery; this.MimeType = mimeType; + this.AspectRatio = aspectRatio; 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 963b5b197..5cc698754 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 @@ -14,18 +14,18 @@ public sealed partial class ImportFileRequest [global::System.Text.Json.Serialization.JsonPropertyName("fileName")] public string? FileName { get; set; } - /// - /// Custom metadata to be associated with the file. - /// - [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; } + /// + /// Custom metadata to be associated with the file. + /// + [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 /// @@ -38,23 +38,23 @@ public sealed partial class ImportFileRequest /// /// 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 /// + /// + /// Custom metadata to be associated with the file. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ImportFileRequest( string? fileName, - global::System.Collections.Generic.IList? customMetadata, - global::Google.Gemini.ChunkingConfig? chunkingConfig) + global::Google.Gemini.ChunkingConfig? chunkingConfig, + global::System.Collections.Generic.IList? customMetadata) { this.FileName = fileName; - this.CustomMetadata = customMetadata; this.ChunkingConfig = chunkingConfig; + this.CustomMetadata = customMetadata; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentRequest.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentRequest.g.cs index 2d4eb0c30..8aca0f0ee 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentRequest.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.InlinedEmbedContentRequest.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class InlinedEmbedContentRequest { - /// - /// Request containing the `Content` for the model to embed. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("request")] - public global::Google.Gemini.EmbedContentRequest? Request { get; set; } - /// /// Optional. The metadata to be associated with the request. /// [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public object? Metadata { get; set; } + /// + /// Request containing the `Content` for the model to embed. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("request")] + public global::Google.Gemini.EmbedContentRequest? Request { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class InlinedEmbedContentRequest /// /// Initializes a new instance of the class. /// - /// - /// Request containing the `Content` for the model to embed. - /// /// /// Optional. The metadata to be associated with the request. /// + /// + /// Request containing the `Content` for the model to embed. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InlinedEmbedContentRequest( - global::Google.Gemini.EmbedContentRequest? request, - object? metadata) + object? metadata, + global::Google.Gemini.EmbedContentRequest? request) { - this.Request = request; this.Metadata = metadata; + this.Request = request; } /// 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 291135b24..8b0a0b22f 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 @@ -9,10 +9,10 @@ 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`. + /// 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 global::Google.Gemini.GenerateContentResponse? Response { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("error")] + public global::Google.Gemini.Status? Error { get; set; } /// /// Output only. The metadata associated with the request.
@@ -22,10 +22,10 @@ public sealed partial class InlinedResponse 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). + /// 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("error")] - public global::Google.Gemini.Status? Error { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("response")] + public global::Google.Gemini.GenerateContentResponse? Response { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -36,27 +36,27 @@ 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). /// /// /// Output only. The metadata associated with the request.
/// 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). + /// + /// 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`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public InlinedResponse( - global::Google.Gemini.GenerateContentResponse? response, + global::Google.Gemini.Status? error, object? metadata, - global::Google.Gemini.Status? error) + global::Google.Gemini.GenerateContentResponse? response) { - this.Response = response; - this.Metadata = metadata; this.Error = error; + this.Metadata = metadata; + this.Response = response; } /// 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 06dc9344d..6dfb4ee0f 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 { - /// - /// 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; } + /// + /// List of cached contents. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContents")] + public global::System.Collections.Generic.IList? CachedContents { 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. /// - /// - /// 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. /// + /// + /// List of cached contents. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ListCachedContentsResponse( - global::System.Collections.Generic.IList? cachedContents, - string? nextPageToken) + string? nextPageToken, + global::System.Collections.Generic.IList? cachedContents) { - this.CachedContents = cachedContents; this.NextPageToken = nextPageToken; + this.CachedContents = cachedContents; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs index 305a10625..ba11d1ecf 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ListDocumentsResponse.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ListDocumentsResponse { - /// - /// 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 `Document`s. /// [global::System.Text.Json.Serialization.JsonPropertyName("documents")] public global::System.Collections.Generic.IList? Documents { 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 ListDocumentsResponse /// /// 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 `Document`s. /// + /// + /// 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 ListDocumentsResponse( - string? nextPageToken, - global::System.Collections.Generic.IList? documents) + global::System.Collections.Generic.IList? documents, + string? nextPageToken) { - this.NextPageToken = nextPageToken; this.Documents = documents; + 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.Maps.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.Maps.g.cs index 2e40a3a0b..c3f8b4e2c 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 @@ -8,24 +8,12 @@ namespace Google.Gemini /// public sealed partial class Maps { - /// - /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("placeId")] - public string? PlaceId { get; set; } - /// /// URI reference of the place. /// [global::System.Text.Json.Serialization.JsonPropertyName("uri")] public string? Uri { get; set; } - /// - /// Text description of the place answer. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { get; set; } - /// /// Title of the place. /// @@ -38,6 +26,18 @@ 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; } + + /// + /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("placeId")] + public string? PlaceId { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -47,36 +47,36 @@ public sealed partial class Maps /// /// Initializes a new instance of the class. /// - /// - /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place. - /// /// /// URI reference of the place. /// - /// - /// Text description of the place answer. - /// /// /// Title of the place. /// /// /// 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. + /// + /// + /// The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Maps( - string? placeId, string? uri, - string? text, string? title, - global::Google.Gemini.PlaceAnswerSources? placeAnswerSources) + global::Google.Gemini.PlaceAnswerSources? placeAnswerSources, + string? text, + string? placeId) { - this.PlaceId = placeId; this.Uri = uri; - this.Text = text; this.Title = title; this.PlaceAnswerSources = placeAnswerSources; + this.Text = text; + this.PlaceId = placeId; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs index d5bff801f..6a90f2cd0 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCount.g.cs @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class ModalityTokenCount { + /// + /// Number of tokens. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] + public int? TokenCount { get; set; } + /// /// The modality associated with this token count. /// @@ -15,12 +21,6 @@ public sealed partial class ModalityTokenCount [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter))] public global::Google.Gemini.ModalityTokenCountModality? Modality { get; set; } - /// - /// Number of tokens. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("tokenCount")] - public int? TokenCount { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -30,21 +30,21 @@ public sealed partial class ModalityTokenCount /// /// Initializes a new instance of the class. /// - /// - /// The modality associated with this token count. - /// /// /// Number of tokens. /// + /// + /// The modality associated with this token count. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ModalityTokenCount( - global::Google.Gemini.ModalityTokenCountModality? modality, - int? tokenCount) + int? tokenCount, + global::Google.Gemini.ModalityTokenCountModality? modality) { - this.Modality = modality; this.TokenCount = tokenCount; + this.Modality = modality; } /// 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 859c3714a..9b9eedfb6 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,46 +9,46 @@ namespace Google.Gemini public sealed partial class Model { /// - /// The maximum temperature this model can use. + /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxTemperature")] - public float? MaxTemperature { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("version")] + public string? Version { get; set; } /// - /// The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`. + /// The maximum temperature this model can use. /// - [global::System.Text.Json.Serialization.JsonPropertyName("supportedGenerationMethods")] - public global::System.Collections.Generic.IList? SupportedGenerationMethods { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxTemperature")] + public float? MaxTemperature { 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. + /// A short description of the model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("topP")] - public float? TopP { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { 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; } /// - /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` + /// Maximum number of input tokens allowed for this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("baseModelId")] - public string? BaseModelId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inputTokenLimit")] + public int? InputTokenLimit { 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. + /// 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("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { 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. @@ -57,34 +57,34 @@ public sealed partial class Model public int? TopK { get; set; } /// - /// Maximum number of input tokens allowed for this model. + /// 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("inputTokenLimit")] - public int? InputTokenLimit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topP")] + public float? TopP { 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` + /// 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("name")] - public string? Name { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("supportedGenerationMethods")] + public global::System.Collections.Generic.IList? SupportedGenerationMethods { get; set; } /// - /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) + /// 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("version")] - public string? Version { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("temperature")] + public float? Temperature { get; set; } /// - /// Maximum number of output tokens available for this 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("outputTokenLimit")] - public int? OutputTokenLimit { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] + public string? DisplayName { get; set; } /// - /// A short description of the model. + /// Maximum number of output tokens available for this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("outputTokenLimit")] + public int? OutputTokenLimit { 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. /// + /// + /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) + /// /// /// 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`. + /// + /// A short description of the model. /// - /// - /// 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. + /// + /// Whether the model supports thinking. /// - /// - /// 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. + /// + /// 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` /// /// /// Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash` /// - /// - /// 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. - /// - /// - /// 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. /// - /// - /// Maximum number of input tokens allowed for this model. + /// + /// 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. /// - /// - /// 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`. /// - /// - /// Required. The version number of the model. This represents the major version (`1.0` or `1.5`) + /// + /// 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. + /// + /// + /// 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 output tokens available for this model. /// - /// - /// A short description of the model. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Model( + string? version, float? maxTemperature, - global::System.Collections.Generic.IList? supportedGenerationMethods, - float? topP, - float? temperature, - string? baseModelId, - string? displayName, + string? description, bool? thinking, - int? topK, int? inputTokenLimit, string? name, - string? version, - int? outputTokenLimit, - string? description) + string? baseModelId, + int? topK, + float? topP, + global::System.Collections.Generic.IList? supportedGenerationMethods, + float? temperature, + string? displayName, + int? outputTokenLimit) { + this.Version = version; this.MaxTemperature = maxTemperature; - this.SupportedGenerationMethods = supportedGenerationMethods; - this.TopP = topP; - this.Temperature = temperature; - this.BaseModelId = baseModelId; - this.DisplayName = displayName; + this.Description = description; this.Thinking = thinking; - this.TopK = topK; this.InputTokenLimit = inputTokenLimit; this.Name = name; - this.Version = version; + this.BaseModelId = baseModelId; + this.TopK = topK; + this.TopP = topP; + this.SupportedGenerationMethods = supportedGenerationMethods; + this.Temperature = temperature; + this.DisplayName = displayName; this.OutputTokenLimit = outputTokenLimit; - this.Description = description; } /// 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 18d255a56..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 @@ -9,10 +9,11 @@ namespace Google.Gemini public sealed partial class ModelStatus { /// - /// A message explaining the model status. + /// The stage of the underlying model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("message")] - public string? Message { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("modelStage")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter))] + public global::Google.Gemini.ModelStatusModelStage? ModelStage { get; set; } /// /// The time at which the model will be retired. @@ -21,11 +22,10 @@ public sealed partial class ModelStatus public string? RetirementTime { get; set; } /// - /// The stage of the underlying model. + /// A message explaining the model status. /// - [global::System.Text.Json.Serialization.JsonPropertyName("modelStage")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter))] - public global::Google.Gemini.ModelStatusModelStage? ModelStage { get; set; } + [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. /// - /// - /// The stage of the underlying model. + /// + /// 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, - global::Google.Gemini.ModelStatusModelStage? modelStage) + string? message) { - this.Message = message; - this.RetirementTime = retirementTime; 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 4328f7032..a60b8f6d5 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 @@ -14,18 +14,18 @@ public sealed partial class Operation [global::System.Text.Json.Serialization.JsonPropertyName("done")] public bool? Done { 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; } + /// + /// 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("response")] + public object? Response { 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}`. /// @@ -33,10 +33,10 @@ public sealed partial class Operation public string? Name { 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`. + /// 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("response")] - public object? Response { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] + public object? Metadata { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -50,33 +50,33 @@ public sealed partial class Operation /// /// 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. /// - /// - /// 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). /// + /// + /// 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 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 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`. + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Operation( bool? done, - object? metadata, global::Google.Gemini.Status? error, + object? response, string? name, - object? response) + object? metadata) { this.Done = done; - this.Metadata = metadata; this.Error = error; - this.Name = name; this.Response = response; + this.Name = name; + this.Metadata = metadata; } /// 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 2a3d26833..204e50b37 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,16 +11,10 @@ namespace Google.Gemini public sealed partial class Part { /// - /// 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("toolCall")] - public global::Google.Gemini.ToolCall? ToolCall { get; set; } - - /// - /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. + /// URI based data. /// - [global::System.Text.Json.Serialization.JsonPropertyName("functionCall")] - public global::Google.Gemini.FunctionCall? FunctionCall { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileData")] + public global::Google.Gemini.FileData? FileData { get; set; } /// /// Media resolution for tokenization. @@ -29,10 +23,11 @@ public sealed partial class Part public global::Google.Gemini.V1mainMediaResolution? MediaResolution { 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`. + /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. /// - [global::System.Text.Json.Serialization.JsonPropertyName("toolResponse")] - public global::Google.Gemini.ToolResponse? ToolResponse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaProcessing")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter))] + public global::Google.Gemini.PartMediaProcessing? MediaProcessing { 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. @@ -40,18 +35,6 @@ public sealed partial class Part [global::System.Text.Json.Serialization.JsonPropertyName("executableCode")] public global::Google.Gemini.ExecutableCode? ExecutableCode { get; set; } - /// - /// Inline text. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("text")] - public string? Text { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("partMetadata")] - public object? PartMetadata { get; set; } - /// /// Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content. /// @@ -60,10 +43,16 @@ public sealed partial class Part public global::Google.Gemini.VideoMetadata? VideoMetadata { get; set; } /// - /// URI based data. + /// 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("fileData")] - public global::Google.Gemini.FileData? FileData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolCall")] + public global::Google.Gemini.ToolCall? ToolCall { get; set; } + + /// + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thoughtSignature")] + public byte[]? ThoughtSignature { 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. @@ -72,16 +61,22 @@ 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; } /// - /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("inlineData")] - public global::Google.Gemini.Blob? InlineData { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("partMetadata")] + public object? PartMetadata { get; set; } + + /// + /// Optional. Indicates if the part is thought from the model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("thought")] + public bool? Thought { get; set; } /// /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. @@ -90,17 +85,22 @@ public sealed partial class Part public global::Google.Gemini.CodeExecutionResult? CodeExecutionResult { get; set; } /// - /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. + /// Inline text. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaProcessing")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter))] - public global::Google.Gemini.PartMediaProcessing? MediaProcessing { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } /// - /// Optional. Indicates if the part is thought from the model. + /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. /// - [global::System.Text.Json.Serialization.JsonPropertyName("thought")] - public bool? Thought { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("inlineData")] + public global::Google.Gemini.Blob? InlineData { 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`. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("toolResponse")] + public global::Google.Gemini.ToolResponse? ToolResponse { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -111,81 +111,81 @@ public sealed partial class Part /// /// Initializes a new instance of the class. /// - /// - /// 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`. - /// - /// - /// A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values. + /// + /// URI based data. /// /// /// Media resolution for tokenization. /// - /// - /// 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`. + /// + /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. /// /// /// 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. /// - /// - /// Inline text. - /// - /// - /// 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. + /// + /// 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`. /// - /// - /// URI based data. + /// + /// Optional. An opaque signature for the thought so it can be reused in subsequent requests. /// /// /// 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. /// - /// - /// Raw media bytes. Text should not be sent as raw bytes, use the 'text' field. + /// + /// 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. + /// + /// + /// Optional. Indicates if the part is thought from the model. /// /// /// Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used. /// - /// - /// Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field. + /// + /// Inline text. /// - /// - /// Optional. Indicates if the part is thought from the model. + /// + /// 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`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Part( - global::Google.Gemini.ToolCall? toolCall, - global::Google.Gemini.FunctionCall? functionCall, + global::Google.Gemini.FileData? fileData, global::Google.Gemini.V1mainMediaResolution? mediaResolution, - global::Google.Gemini.ToolResponse? toolResponse, + global::Google.Gemini.PartMediaProcessing? mediaProcessing, global::Google.Gemini.ExecutableCode? executableCode, - string? text, - object? partMetadata, - global::Google.Gemini.FileData? fileData, - global::Google.Gemini.FunctionResponse? functionResponse, + global::Google.Gemini.ToolCall? toolCall, byte[]? thoughtSignature, - global::Google.Gemini.Blob? inlineData, + global::Google.Gemini.FunctionResponse? functionResponse, + global::Google.Gemini.FunctionCall? functionCall, + object? partMetadata, + bool? thought, global::Google.Gemini.CodeExecutionResult? codeExecutionResult, - global::Google.Gemini.PartMediaProcessing? mediaProcessing, - bool? thought) + string? text, + global::Google.Gemini.Blob? inlineData, + global::Google.Gemini.ToolResponse? toolResponse) { - this.ToolCall = toolCall; - this.FunctionCall = functionCall; + this.FileData = fileData; this.MediaResolution = mediaResolution; - this.ToolResponse = toolResponse; + this.MediaProcessing = mediaProcessing; this.ExecutableCode = executableCode; - this.Text = text; - this.PartMetadata = partMetadata; - this.FileData = fileData; - this.FunctionResponse = functionResponse; + this.ToolCall = toolCall; this.ThoughtSignature = thoughtSignature; - this.InlineData = inlineData; - this.CodeExecutionResult = codeExecutionResult; - this.MediaProcessing = mediaProcessing; + this.FunctionResponse = functionResponse; + this.FunctionCall = functionCall; + this.PartMetadata = partMetadata; this.Thought = thought; + this.CodeExecutionResult = codeExecutionResult; + this.Text = text; + this.InlineData = inlineData; + this.ToolResponse = toolResponse; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PartMediaProcessing.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PartMediaProcessing.g.cs index fd2c42520..6d85a1b5f 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PartMediaProcessing.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PartMediaProcessing.g.cs @@ -13,7 +13,7 @@ public enum PartMediaProcessing /// Agentic, /// - /// Default. Uses model-specific processing (3.5 Pro+ -> `AGENTIC`, older models -> `STATIC`). + /// Defaults to model-specific processing. /// MediaProcessingUnspecified, /// 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 5f6e1b66d..582b17c29 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 @@ -9,11 +9,11 @@ namespace Google.Gemini public sealed partial class Permission { /// - /// Required. The role granted by this permission. + /// Optional. Immutable. The type of the grantee. /// - [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; } + [global::System.Text.Json.Serialization.JsonPropertyName("granteeType")] + [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. @@ -21,13 +21,6 @@ public sealed partial class Permission [global::System.Text.Json.Serialization.JsonPropertyName("emailAddress")] public string? EmailAddress { get; set; } - /// - /// Optional. Immutable. The type of the grantee. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("granteeType")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter))] - public global::Google.Gemini.PermissionGranteeType? GranteeType { 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 @@ -35,6 +28,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; } + /// /// 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 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. /// - /// - /// Optional. Immutable. The type of the grantee. - /// /// /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Permission( - global::Google.Gemini.PermissionRole? role, - string? emailAddress, global::Google.Gemini.PermissionGranteeType? granteeType, - string? name) + string? emailAddress, + string? name, + global::Google.Gemini.PermissionRole? role) { - this.Role = role; - this.EmailAddress = emailAddress; this.GranteeType = granteeType; + this.EmailAddress = emailAddress; this.Name = name; + this.Role = role; } /// 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 186d58ae6..f89135611 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 @@ -14,13 +14,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; } - /// /// Optional. Defines which input is included in the user's turn. /// @@ -28,6 +21,13 @@ public sealed partial class RealtimeInputConfig [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter))] public global::Google.Gemini.RealtimeInputConfigTurnCoverage? TurnCoverage { 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 /// @@ -40,23 +40,23 @@ public sealed partial class RealtimeInputConfig /// /// Configures automatic detection of activity. /// - /// - /// Optional. Defines what effect activity has. - /// /// /// Optional. Defines which input is included in the user's turn. /// + /// + /// Optional. Defines what effect activity has. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RealtimeInputConfig( global::Google.Gemini.AutomaticActivityDetection? automaticActivityDetection, - global::Google.Gemini.RealtimeInputConfigActivityHandling? activityHandling, - global::Google.Gemini.RealtimeInputConfigTurnCoverage? turnCoverage) + global::Google.Gemini.RealtimeInputConfigTurnCoverage? turnCoverage, + global::Google.Gemini.RealtimeInputConfigActivityHandling? activityHandling) { this.AutomaticActivityDetection = automaticActivityDetection; - this.ActivityHandling = activityHandling; this.TurnCoverage = turnCoverage; + 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 2cd3705ab..cb73b58ed 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 @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ResponseFormatConfig { - /// - /// Configuration for image output format. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("image")] - public global::Google.Gemini.ImageResponseFormat? Image { get; set; } - /// /// Configuration for text output format. /// @@ -26,6 +20,12 @@ public sealed partial class ResponseFormatConfig [global::System.Text.Json.Serialization.JsonPropertyName("audio")] public global::Google.Gemini.AudioResponseFormat? Audio { get; set; } + /// + /// Configuration for image output format. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("image")] + public global::Google.Gemini.ImageResponseFormat? Image { 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 image output format. - /// /// /// Configuration for text output format. /// /// /// Configuration for audio output format. /// + /// + /// Configuration for image output format. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ResponseFormatConfig( - global::Google.Gemini.ImageResponseFormat? image, global::Google.Gemini.TextResponseFormat? text, - global::Google.Gemini.AudioResponseFormat? audio) + global::Google.Gemini.AudioResponseFormat? audio, + global::Google.Gemini.ImageResponseFormat? image) { - this.Image = image; this.Text = text; this.Audio = audio; + this.Image = image; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievalConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievalConfig.g.cs index 587cc51ba..10e07f1c5 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievalConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.RetrievalConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class RetrievalConfig { - /// - /// 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). - /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageCode")] - public string? LanguageCode { get; set; } - /// /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("latLng")] public global::Google.Gemini.LatLng? LatLng { get; set; } + /// + /// 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). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("languageCode")] + public string? LanguageCode { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class RetrievalConfig /// /// Initializes a new instance of the class. /// - /// - /// 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). - /// /// /// 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. /// + /// + /// 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). + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RetrievalConfig( - string? languageCode, - global::Google.Gemini.LatLng? latLng) + global::Google.Gemini.LatLng? latLng, + string? languageCode) { - this.LanguageCode = languageCode; this.LatLng = latLng; + this.LanguageCode = languageCode; } /// 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 de8ea4f6b..4e387004e 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 @@ -15,10 +15,10 @@ public sealed partial class RetrievedContext public global::System.Collections.Generic.IList? CustomMetadata { get; set; } /// - /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} + /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` /// - [global::System.Text.Json.Serialization.JsonPropertyName("mediaId")] - public string? MediaId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] + public string? FileSearchStore { get; set; } /// /// Optional. Page number of the retrieved context, if applicable. @@ -27,28 +27,28 @@ public sealed partial class RetrievedContext public int? PageNumber { get; set; } /// - /// 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. URI reference of the semantic retrieval document. + /// Optional. Text of the chunk. /// - [global::System.Text.Json.Serialization.JsonPropertyName("uri")] - public string? Uri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("text")] + public string? Text { get; set; } /// - /// Optional. Title of the document. + /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mediaId")] + public string? MediaId { get; set; } /// - /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` + /// Optional. URI reference of the semantic retrieval document. /// - [global::System.Text.Json.Serialization.JsonPropertyName("fileSearchStore")] - public string? FileSearchStore { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("uri")] + public string? Uri { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -62,43 +62,43 @@ public sealed partial class RetrievedContext /// /// 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. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` /// /// /// Optional. Page number of the retrieved context, if applicable. /// + /// + /// Optional. Title of the document. + /// /// /// Optional. Text of the chunk. /// + /// + /// Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id} + /// /// /// Optional. URI reference of the semantic retrieval document. /// - /// - /// Optional. Title of the document. - /// - /// - /// Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123` - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RetrievedContext( global::System.Collections.Generic.IList? customMetadata, - string? mediaId, + string? fileSearchStore, int? pageNumber, - string? text, - string? uri, string? title, - string? fileSearchStore) + string? text, + string? mediaId, + string? uri) { this.CustomMetadata = customMetadata; - this.MediaId = mediaId; + this.FileSearchStore = fileSearchStore; this.PageNumber = pageNumber; + this.Title = title; this.Text = text; + this.MediaId = mediaId; this.Uri = uri; - this.Title = title; - 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..8761eef3d 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class ReviewSnippet { /// - /// The ID of the review snippet. + /// A link that corresponds to the user review on Google Maps. /// - [global::System.Text.Json.Serialization.JsonPropertyName("reviewId")] - public string? ReviewId { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleMapsUri")] + public string? GoogleMapsUri { get; set; } /// /// Title of the review. @@ -21,10 +21,10 @@ public sealed partial class ReviewSnippet public string? Title { get; set; } /// - /// A link that corresponds to the user review on Google Maps. + /// The ID of the review snippet. /// - [global::System.Text.Json.Serialization.JsonPropertyName("googleMapsUri")] - public string? GoogleMapsUri { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("reviewId")] + public string? ReviewId { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,26 +35,26 @@ public sealed partial class ReviewSnippet /// /// Initializes a new instance of the class. /// - /// - /// The ID of the review snippet. + /// + /// A link that corresponds to the user review on Google Maps. /// /// /// Title of the review. /// - /// - /// A link that corresponds to the user review on Google Maps. + /// + /// The ID of the review snippet. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ReviewSnippet( - string? reviewId, + string? googleMapsUri, string? title, - string? googleMapsUri) + string? reviewId) { - this.ReviewId = reviewId; - this.Title = title; this.GoogleMapsUri = googleMapsUri; + this.Title = title; + this.ReviewId = reviewId; } /// 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 7c955ca30..7eb80d6f0 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,12 +15,6 @@ 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. /// @@ -28,6 +22,12 @@ 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. /// - /// - /// Was this content blocked because of this rating? - /// /// /// Required. The probability of harm for this content. /// + /// + /// Was this content blocked because of this rating? + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SafetyRating( global::Google.Gemini.SafetyRatingCategory? category, - bool? blocked, - global::Google.Gemini.SafetyRatingProbability? probability) + global::Google.Gemini.SafetyRatingProbability? probability, + bool? blocked) { this.Category = category; - this.Blocked = blocked; this.Probability = probability; + this.Blocked = blocked; } /// diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySetting.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySetting.g.cs index 1c981d0c1..8a3dac695 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySetting.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySetting.g.cs @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class SafetySetting { - /// - /// Required. The category for this setting. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("category")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter))] - public global::Google.Gemini.SafetySettingCategory? Category { get; set; } - /// /// Required. Controls the probability threshold at which harm is blocked. /// @@ -22,6 +15,13 @@ public sealed partial class SafetySetting [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter))] public global::Google.Gemini.SafetySettingThreshold? Threshold { get; set; } + /// + /// Required. The category for this setting. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("category")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter))] + public global::Google.Gemini.SafetySettingCategory? Category { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -31,21 +31,21 @@ public sealed partial class SafetySetting /// /// Initializes a new instance of the class. /// - /// - /// Required. The category for this setting. - /// /// /// Required. Controls the probability threshold at which harm is blocked. /// + /// + /// Required. The category for this setting. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SafetySetting( - global::Google.Gemini.SafetySettingCategory? category, - global::Google.Gemini.SafetySettingThreshold? threshold) + global::Google.Gemini.SafetySettingThreshold? threshold, + global::Google.Gemini.SafetySettingCategory? category) { - this.Category = category; this.Threshold = threshold; + this.Category = category; } /// 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 87f90e5e7..023cdf393 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,53 +9,58 @@ namespace Google.Gemini public sealed partial class Schema { /// - /// 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 length of the Type.STRING + /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxLength")] - public string? MaxLength { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maximum")] + public double? Maximum { get; set; } /// - /// Optional. Maximum number of the elements for Type.ARRAY. + /// Optional. Required properties of Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxItems")] - public string? MaxItems { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("required")] + public global::System.Collections.Generic.IList? Required { get; set; } /// - /// Required. Data type. + /// Optional. Properties of Type.OBJECT. /// - [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("properties")] + public global::System.Collections.Generic.Dictionary? Properties { get; set; } /// - /// Optional. Minimum number of the properties for Type.OBJECT. + /// Optional. Maximum number of the properties for Type.OBJECT. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] - public string? MinProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] + public string? MaxProperties { get; set; } /// - /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. + /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER /// - [global::System.Text.Json.Serialization.JsonPropertyName("format")] - public string? Format { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minimum")] + public double? Minimum { get; set; } /// - /// Optional. Indicates if the value may be null. + /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] - public bool? Nullable { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("default")] + public object? Default { get; set; } /// - /// Optional. Maximum number of the properties for Type.OBJECT. + /// Optional. Maximum number of the elements for Type.ARRAY. /// - [global::System.Text.Json.Serialization.JsonPropertyName("maxProperties")] - public string? MaxProperties { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxItems")] + public string? MaxItems { get; set; } + + /// + /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + /// + [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] + public string? MinLength { 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. @@ -64,10 +69,10 @@ public sealed partial class Schema public global::System.Collections.Generic.IList? PropertyOrdering { get; set; } /// - /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. + /// Optional. The title of the schema. /// - [global::System.Text.Json.Serialization.JsonPropertyName("pattern")] - public string? Pattern { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("title")] + public string? Title { 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"]} @@ -76,58 +81,47 @@ public sealed partial class Schema public global::System.Collections.Generic.IList? Enum { get; set; } /// - /// Optional. Minimum number of the elements for Type.ARRAY. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("minItems")] - public string? MinItems { 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("default")] - public object? Default { get; set; } - - /// - /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER + /// Optional. Maximum length of the Type.STRING /// - [global::System.Text.Json.Serialization.JsonPropertyName("minimum")] - public double? Minimum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("maxLength")] + public string? MaxLength { get; set; } /// - /// Optional. Required properties of Type.OBJECT. + /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. /// - [global::System.Text.Json.Serialization.JsonPropertyName("required")] - public global::System.Collections.Generic.IList? Required { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("format")] + public string? Format { get; set; } /// - /// Optional. Properties of Type.OBJECT. + /// Required. Data type. /// - [global::System.Text.Json.Serialization.JsonPropertyName("properties")] - public global::System.Collections.Generic.Dictionary? Properties { get; set; } + [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; } /// - /// 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. Indicates if the value may be null. /// - [global::System.Text.Json.Serialization.JsonPropertyName("items")] - public global::Google.Gemini.Schema? Items { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("nullable")] + public bool? Nullable { get; set; } /// - /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. + /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("pattern")] + public string? Pattern { get; set; } /// - /// Optional. The title of the schema. + /// Optional. Minimum number of the elements for Type.ARRAY. /// - [global::System.Text.Json.Serialization.JsonPropertyName("title")] - public string? Title { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("minItems")] + public string? MinItems { get; set; } /// - /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + /// Optional. The value should be validated against any (one or more) of the subschemas in the list. /// - [global::System.Text.Json.Serialization.JsonPropertyName("minLength")] - public string? MinLength { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("anyOf")] + public global::System.Collections.Generic.IList? AnyOf { get; set; } /// /// Optional. Example of the object. Will only populated when the object is the root. @@ -136,10 +130,16 @@ public sealed partial class Schema public object? Example { get; set; } /// - /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER + /// 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("maximum")] - public double? Maximum { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("items")] + public global::Google.Gemini.Schema? Items { get; set; } + + /// + /// Optional. Minimum number of the properties for Type.OBJECT. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("minProperties")] + public string? MinProperties { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -150,121 +150,121 @@ public sealed partial class Schema /// /// Initializes a new instance of the class. /// - /// - /// 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 length of the Type.STRING + /// + /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER /// - /// - /// Optional. Maximum number of the elements for Type.ARRAY. + /// + /// Optional. Required properties of Type.OBJECT. /// - /// - /// Required. Data type. + /// + /// Optional. Properties of Type.OBJECT. /// - /// - /// Optional. Minimum number of the properties for Type.OBJECT. + /// + /// Optional. Maximum number of the properties for Type.OBJECT. /// - /// - /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. + /// + /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER /// - /// - /// Optional. Indicates if the value may be null. + /// + /// 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. /// - /// - /// Optional. Maximum number of the properties for Type.OBJECT. + /// + /// Optional. Maximum number of the elements for Type.ARRAY. + /// + /// + /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING /// /// /// 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. Pattern of the Type.STRING to restrict a string to a regular expression. + /// + /// Optional. The title of the schema. /// /// /// 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. Minimum number of the elements for Type.ARRAY. - /// - /// - /// 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. - /// - /// - /// Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER + /// + /// Optional. Maximum length of the Type.STRING /// - /// - /// Optional. Required properties of Type.OBJECT. + /// + /// Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality. /// - /// - /// Optional. Properties of Type.OBJECT. + /// + /// Required. Data type. /// - /// - /// 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. Indicates if the value may be null. /// - /// - /// Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown. + /// + /// Optional. Pattern of the Type.STRING to restrict a string to a regular expression. /// - /// - /// Optional. The title of the schema. + /// + /// Optional. Minimum number of the elements for Type.ARRAY. /// - /// - /// Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING + /// + /// Optional. The value should be validated against any (one or more) of the subschemas in the list. /// /// /// Optional. Example of the object. Will only populated when the object is the root. /// - /// - /// Optional. Maximum value of the Type.INTEGER and Type.NUMBER + /// + /// 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 properties for Type.OBJECT. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Schema( - global::System.Collections.Generic.IList? anyOf, - string? maxLength, + string? description, + double? maximum, + global::System.Collections.Generic.IList? required, + global::System.Collections.Generic.Dictionary? properties, + string? maxProperties, + double? minimum, + object? @default, string? maxItems, - global::Google.Gemini.SchemaType? type, - string? minProperties, + string? minLength, + global::System.Collections.Generic.IList? propertyOrdering, + string? title, + global::System.Collections.Generic.IList? @enum, + string? maxLength, string? format, + global::Google.Gemini.SchemaType? type, bool? nullable, - string? maxProperties, - global::System.Collections.Generic.IList? propertyOrdering, string? pattern, - global::System.Collections.Generic.IList? @enum, string? minItems, - object? @default, - double? minimum, - global::System.Collections.Generic.IList? required, - global::System.Collections.Generic.Dictionary? properties, - global::Google.Gemini.Schema? items, - string? description, - string? title, - string? minLength, + global::System.Collections.Generic.IList? anyOf, object? example, - double? maximum) + global::Google.Gemini.Schema? items, + string? minProperties) { - this.AnyOf = anyOf; - this.MaxLength = maxLength; + this.Description = description; + this.Maximum = maximum; + this.Required = required; + this.Properties = properties; + this.MaxProperties = maxProperties; + this.Minimum = minimum; + this.Default = @default; this.MaxItems = maxItems; - this.Type = type; - this.MinProperties = minProperties; + this.MinLength = minLength; + this.PropertyOrdering = propertyOrdering; + this.Title = title; + this.Enum = @enum; + this.MaxLength = maxLength; this.Format = format; + this.Type = type; this.Nullable = nullable; - this.MaxProperties = maxProperties; - this.PropertyOrdering = propertyOrdering; this.Pattern = pattern; - this.Enum = @enum; this.MinItems = minItems; - this.Default = @default; - this.Minimum = minimum; - this.Required = required; - this.Properties = properties; - this.Items = items; - this.Description = description; - this.Title = title; - this.MinLength = minLength; + this.AnyOf = anyOf; this.Example = example; - this.Maximum = maximum; + this.Items = items; + this.MinProperties = minProperties; } /// 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 f12300d1d..db48d7d5d 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 @@ -8,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class Source { - /// - /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("source")] - public string? Source1 { get; set; } - /// /// The inline content if `type` is `INLINE`. /// @@ -27,12 +21,18 @@ public sealed partial class Source public string? Encoding { 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; } + /// + /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("source")] + public string? Source1 { get; set; } + /// /// Where the source should appear in the environment. /// @@ -48,9 +48,6 @@ public sealed partial class Source /// /// Initializes a new instance of the class. /// - /// - /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. - /// /// /// The inline content if `type` is `INLINE`. /// @@ -58,6 +55,9 @@ public sealed partial class Source /// Optional encoding for inline content (e.g. `base64`). /// /// + /// + /// The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path. + /// /// /// Where the source should appear in the environment. /// @@ -65,16 +65,16 @@ public sealed partial class Source [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Source( - string? source1, string? content, string? encoding, global::Google.Gemini.SourceType? type, + string? source1, string? target) { - this.Source1 = source1; this.Content = content; this.Encoding = encoding; this.Type = type; + this.Source1 = source1; this.Target = target; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SourceType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SourceType.g.cs index 4cdeb3f01..6c3accdb6 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SourceType.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SourceType.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini { /// - /// + /// /// public enum SourceType { @@ -21,7 +21,7 @@ public enum SourceType /// Repository, /// - /// + /// /// TypeUnspecified, } 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 1dfe468dc..3ce1c58d4 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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class SpeechConfig { /// - /// 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. /// - [global::System.Text.Json.Serialization.JsonPropertyName("languageCode")] - public string? LanguageCode { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("multiSpeakerVoiceConfig")] + public global::Google.Gemini.MultiSpeakerVoiceConfig? MultiSpeakerVoiceConfig { get; set; } /// /// The configuration for the voice to use. @@ -21,10 +21,10 @@ public sealed partial class SpeechConfig public global::Google.Gemini.VoiceConfig? VoiceConfig { get; set; } /// - /// The configuration for the multi-speaker setup. + /// 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`. /// - [global::System.Text.Json.Serialization.JsonPropertyName("multiSpeakerVoiceConfig")] - public global::Google.Gemini.MultiSpeakerVoiceConfig? MultiSpeakerVoiceConfig { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("languageCode")] + public string? LanguageCode { 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. /// - /// - /// 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. /// - /// - /// The configuration for the multi-speaker setup. + /// + /// 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`. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public SpeechConfig( - string? languageCode, + global::Google.Gemini.MultiSpeakerVoiceConfig? multiSpeakerVoiceConfig, global::Google.Gemini.VoiceConfig? voiceConfig, - global::Google.Gemini.MultiSpeakerVoiceConfig? multiSpeakerVoiceConfig) + string? languageCode) { - this.LanguageCode = languageCode; - this.VoiceConfig = voiceConfig; this.MultiSpeakerVoiceConfig = multiSpeakerVoiceConfig; + this.VoiceConfig = voiceConfig; + this.LanguageCode = languageCode; } /// 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 d6775134b..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 @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class Status { - /// - /// 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; } - /// /// 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. /// [global::System.Text.Json.Serialization.JsonPropertyName("message")] public string? Message { 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. /// @@ -35,12 +35,12 @@ public sealed partial class Status /// /// Initializes a new instance of the class. /// - /// - /// A list of messages that carry the error details. There is a common set of message types for APIs to use. - /// /// /// 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. /// + /// + /// 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. /// @@ -48,12 +48,12 @@ public sealed partial class Status [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public Status( - global::System.Collections.Generic.IList? details, string? message, + global::System.Collections.Generic.IList? details, int? code) { - this.Details = details; this.Message = message; + this.Details = details; this.Code = code; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StatusDetail.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StatusDetail.g.cs index 6c3af1ae5..736c866b1 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StatusDetail.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.StatusDetail.g.cs @@ -4,7 +4,7 @@ namespace Google.Gemini { /// - /// + /// /// public sealed partial class StatusDetail { 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 5f8dd339b..95d9ceec5 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 @@ -14,6 +14,12 @@ public sealed partial class StreamableHttpTransport [global::System.Text.Json.Serialization.JsonPropertyName("url")] public string? Url { get; set; } + /// + /// HTTP timeout for regular operations. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] + public string? Timeout { get; set; } + /// /// Timeout for SSE read operations. /// @@ -32,12 +38,6 @@ public sealed partial class StreamableHttpTransport [global::System.Text.Json.Serialization.JsonPropertyName("headers")] public global::System.Collections.Generic.Dictionary? Headers { get; set; } - /// - /// HTTP timeout for regular operations. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("timeout")] - public string? Timeout { get; set; } - /// /// Additional properties that are not explicitly defined in the schema /// @@ -50,6 +50,9 @@ public sealed partial class StreamableHttpTransport /// /// The full URL for the MCPServer endpoint. Example: "https://api.example.com/mcp" /// + /// + /// HTTP timeout for regular operations. + /// /// /// Timeout for SSE read operations. /// @@ -59,24 +62,21 @@ public sealed partial class StreamableHttpTransport /// /// Optional: Fields for authentication headers, timeouts, etc., if needed. /// - /// - /// HTTP timeout for regular operations. - /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public StreamableHttpTransport( string? url, + string? timeout, string? sseReadTimeout, bool? terminateOnClose, - global::System.Collections.Generic.Dictionary? headers, - string? timeout) + global::System.Collections.Generic.Dictionary? headers) { this.Url = url; + this.Timeout = timeout; this.SseReadTimeout = sseReadTimeout; this.TerminateOnClose = terminateOnClose; this.Headers = headers; - this.Timeout = timeout; } /// 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 6470d5f77..704e55aab 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 @@ -15,18 +15,18 @@ 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; } - /// - /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. - /// - [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; } + /// + /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("includeThoughts")] + public bool? IncludeThoughts { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -39,23 +39,23 @@ public sealed partial class ThinkingConfig /// /// 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. /// - /// - /// 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. /// + /// + /// Indicates whether to include thoughts in the response. If true, thoughts are returned only when available. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ThinkingConfig( global::Google.Gemini.ThinkingConfigThinkingLevel? thinkingLevel, - bool? includeThoughts, - int? thinkingBudget) + int? thinkingBudget, + bool? includeThoughts) { this.ThinkingLevel = thinkingLevel; - this.IncludeThoughts = includeThoughts; this.ThinkingBudget = thinkingBudget; + this.IncludeThoughts = includeThoughts; } /// 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 48fcb39a6..4d9ec3a69 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 @@ -9,22 +9,10 @@ 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 support URL context retrieval. + /// Tool to retrieve public web data for grounding, powered by Google. /// - [global::System.Text.Json.Serialization.JsonPropertyName("urlContext")] - public global::Google.Gemini.UrlContext? UrlContext { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("googleSearchRetrieval")] + public global::Google.Gemini.GoogleSearchRetrieval? GoogleSearchRetrieval { get; set; } /// /// The GoogleMaps Tool that provides geospatial context for the user's query. @@ -32,6 +20,12 @@ public sealed partial class Tool [global::System.Text.Json.Serialization.JsonPropertyName("googleMaps")] public global::Google.Gemini.GoogleMaps? GoogleMaps { get; set; } + /// + /// Computer Use tool type. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("computerUse")] + public global::Google.Gemini.ComputerUse? ComputerUse { 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,10 +33,10 @@ public sealed partial class Tool public global::System.Collections.Generic.IList? FunctionDeclarations { get; set; } /// - /// Computer Use tool type. + /// Optional. MCP Servers to connect to. /// - [global::System.Text.Json.Serialization.JsonPropertyName("computerUse")] - public global::Google.Gemini.ComputerUse? ComputerUse { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mcpServers")] + public global::System.Collections.Generic.IList? McpServers { get; set; } /// /// The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API. @@ -51,16 +45,22 @@ public sealed partial class Tool public global::Google.Gemini.FileSearch? FileSearch { get; set; } /// - /// Optional. MCP Servers to connect to. + /// GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google. /// - [global::System.Text.Json.Serialization.JsonPropertyName("mcpServers")] - public global::System.Collections.Generic.IList? McpServers { get; set; } + [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. + /// 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("googleSearchRetrieval")] - public global::Google.Gemini.GoogleSearchRetrieval? GoogleSearchRetrieval { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("codeExecution")] + public global::Google.Gemini.CodeExecution? CodeExecution { get; set; } + + /// + /// Tool to support URL context retrieval. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("urlContext")] + public global::Google.Gemini.UrlContext? UrlContext { 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 support URL context retrieval. + /// + /// Tool to retrieve public web data for grounding, powered by Google. /// /// /// The GoogleMaps Tool that provides geospatial context for the user's query. /// + /// + /// Computer Use tool type. + /// /// /// 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. /// - /// - /// Computer Use tool type. + /// + /// Optional. MCP Servers to connect to. /// /// /// 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 to retrieve public web data for grounding, 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. + /// + /// + /// Tool to support URL context retrieval. /// #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.UrlContext? urlContext, + global::Google.Gemini.GoogleSearchRetrieval? googleSearchRetrieval, global::Google.Gemini.GoogleMaps? googleMaps, - global::System.Collections.Generic.IList? functionDeclarations, global::Google.Gemini.ComputerUse? computerUse, - global::Google.Gemini.FileSearch? fileSearch, + global::System.Collections.Generic.IList? functionDeclarations, global::System.Collections.Generic.IList? mcpServers, - global::Google.Gemini.GoogleSearchRetrieval? googleSearchRetrieval) + global::Google.Gemini.FileSearch? fileSearch, + global::Google.Gemini.GoogleSearch? googleSearch, + global::Google.Gemini.CodeExecution? codeExecution, + global::Google.Gemini.UrlContext? urlContext) { - this.CodeExecution = codeExecution; - this.GoogleSearch = googleSearch; - this.UrlContext = urlContext; + this.GoogleSearchRetrieval = googleSearchRetrieval; this.GoogleMaps = googleMaps; - this.FunctionDeclarations = functionDeclarations; this.ComputerUse = computerUse; - this.FileSearch = fileSearch; + this.FunctionDeclarations = functionDeclarations; this.McpServers = mcpServers; - this.GoogleSearchRetrieval = googleSearchRetrieval; + this.FileSearch = fileSearch; + this.GoogleSearch = googleSearch; + this.CodeExecution = codeExecution; + this.UrlContext = urlContext; } /// 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 1abb43556..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,12 +8,6 @@ namespace Google.Gemini /// public sealed partial class ToolConfig { - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("includeServerSideToolInvocations")] - public bool? IncludeServerSideToolInvocations { get; set; } - /// /// Configuration for specifying function calling behavior. /// @@ -26,6 +20,12 @@ public sealed partial class ToolConfig [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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("includeServerSideToolInvocations")] + public bool? IncludeServerSideToolInvocations { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -35,26 +35,26 @@ public sealed partial class ToolConfig /// /// Initializes a new instance of the class. /// - /// - /// 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. - /// /// /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolConfig( - bool? includeServerSideToolInvocations, global::Google.Gemini.FunctionCallingConfig? functionCallingConfig, - global::Google.Gemini.RetrievalConfig? retrievalConfig) + global::Google.Gemini.RetrievalConfig? retrievalConfig, + bool? includeServerSideToolInvocations) { - this.IncludeServerSideToolInvocations = includeServerSideToolInvocations; 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 e99681cb7..2ee7f407b 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,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class ToolResponse { - /// - /// Optional. The identifier of the tool call this response is for. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("id")] - public string? Id { get; set; } - /// /// 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + /// /// Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`. /// @@ -36,12 +36,12 @@ public sealed partial class ToolResponse /// /// Initializes a new instance of the class. /// - /// - /// Optional. The identifier of the tool call this response is for. - /// /// /// 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`. /// @@ -49,12 +49,12 @@ public sealed partial class ToolResponse [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ToolResponse( - string? id, object? response, + string? id, global::Google.Gemini.ToolResponseToolType? toolType) { - this.Id = id; this.Response = response; + this.Id = id; this.ToolType = toolType; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TranslationConfig.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TranslationConfig.g.cs index 9487be425..5586af7c9 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TranslationConfig.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TranslationConfig.g.cs @@ -8,18 +8,18 @@ namespace Google.Gemini /// public sealed partial class TranslationConfig { - /// - /// 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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("echoTargetLanguage")] - public bool? EchoTargetLanguage { get; set; } - /// /// Required. The target language for translation. Supported values are BCP-47 language codes (e.g. "en", "es", "fr"). /// [global::System.Text.Json.Serialization.JsonPropertyName("targetLanguageCode")] public string? TargetLanguageCode { get; set; } + /// + /// 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. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("echoTargetLanguage")] + public bool? EchoTargetLanguage { get; set; } + /// /// Additional properties that are not explicitly defined in the schema /// @@ -29,21 +29,21 @@ public sealed partial class TranslationConfig /// /// Initializes a new instance of the class. /// - /// - /// 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. - /// /// /// Required. The target language for translation. Supported values are BCP-47 language codes (e.g. "en", "es", "fr"). /// + /// + /// 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. + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TranslationConfig( - bool? echoTargetLanguage, - string? targetLanguageCode) + string? targetLanguageCode, + bool? echoTargetLanguage) { - this.EchoTargetLanguage = echoTargetLanguage; this.TargetLanguageCode = targetLanguageCode; + this.EchoTargetLanguage = echoTargetLanguage; } /// 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 79ab8ea99..bcd49ee38 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 @@ -8,6 +8,12 @@ namespace Google.Gemini /// public sealed partial class TunedModel { + /// + /// 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("displayName")] + public string? DisplayName { get; set; } + /// /// Tuned model as a source for training a new model. /// @@ -15,29 +21,25 @@ public sealed partial class TunedModel public global::Google.Gemini.TunedModelSource? TunedModelSource { get; set; } /// - /// Optional. List of project numbers that have read access to the tuned model. + /// Output only. The state of the tuned model.
+ /// 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("state")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter))] + public global::Google.Gemini.TunedModelState? State { 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. + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - [global::System.Text.Json.Serialization.JsonPropertyName("topK")] - public int? TopK { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("baseModel")] + public string? BaseModel { 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`
+ /// Output only. The timestamp when this model was updated.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("name")] - public string? Name { get; set; } - - /// - /// Optional. A short description of this model. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("description")] - public string? Description { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] + public string? UpdateTime { get; set; } /// /// Tuning tasks that create tuned models. @@ -45,6 +47,12 @@ public sealed partial class TunedModel [global::System.Text.Json.Serialization.JsonPropertyName("tuningTask")] public global::Google.Gemini.TuningTask? TuningTask { get; set; } + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("readerProjectNumbers")] + public global::System.Collections.Generic.IList? ReaderProjectNumbers { 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. /// @@ -52,24 +60,24 @@ public sealed partial class TunedModel public float? Temperature { get; set; } /// - /// Output only. The state of the tuned model.
+ /// Output only. The timestamp when this model was created.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("state")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter))] - public global::Google.Gemini.TunedModelState? State { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] + public string? CreateTime { get; set; } /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// Optional. A short description of this model. /// - [global::System.Text.Json.Serialization.JsonPropertyName("baseModel")] - public string? BaseModel { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("description")] + public string? Description { get; set; } /// - /// 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 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("displayName")] - public string? DisplayName { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { 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. @@ -78,18 +86,10 @@ public sealed partial class TunedModel public float? TopP { get; set; } /// - /// Output only. The timestamp when this model was updated.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("updateTime")] - public string? UpdateTime { get; set; } - - /// - /// Output only. The timestamp when this model was created.
- /// Included only in responses + /// 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. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("createTime")] - public string? CreateTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("topK")] + public int? TopK { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -100,80 +100,80 @@ 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. + /// /// /// Tuned model as a source for training a new model. /// - /// - /// Optional. List of project numbers that have read access to the tuned model. + /// + /// Output only. The state of the tuned model.
+ /// Included only in responses /// - /// - /// 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. + /// + /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` /// - /// - /// 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`
+ /// + /// Output only. The timestamp when this model was updated.
/// Included only in responses /// - /// - /// Optional. A short description of this model. - /// /// /// Tuning tasks that create tuned models. /// + /// + /// Optional. List of project numbers that have read access to the tuned model. + /// /// /// 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. /// - /// - /// Output only. The state of the tuned model.
+ /// + /// Output only. The timestamp when this model was created.
/// Included only in responses /// - /// - /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001` + /// + /// Optional. A short description of this model. /// - /// - /// 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 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 /// /// /// 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. /// - /// - /// Output only. The timestamp when this model was updated.
- /// Included only in responses - /// - /// - /// Output only. The timestamp when this model was created.
- /// Included only in responses + /// + /// 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. /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TunedModel( + string? displayName, global::Google.Gemini.TunedModelSource? tunedModelSource, - global::System.Collections.Generic.IList? readerProjectNumbers, - int? topK, - string? name, - string? description, - global::Google.Gemini.TuningTask? tuningTask, - float? temperature, global::Google.Gemini.TunedModelState? state, string? baseModel, - string? displayName, - float? topP, string? updateTime, - string? createTime) + global::Google.Gemini.TuningTask? tuningTask, + global::System.Collections.Generic.IList? readerProjectNumbers, + float? temperature, + string? createTime, + string? description, + string? name, + float? topP, + int? topK) { + this.DisplayName = displayName; this.TunedModelSource = tunedModelSource; - this.ReaderProjectNumbers = readerProjectNumbers; - this.TopK = topK; - this.Name = name; - this.Description = description; - this.TuningTask = tuningTask; - this.Temperature = temperature; this.State = state; this.BaseModel = baseModel; - this.DisplayName = displayName; - this.TopP = topP; this.UpdateTime = updateTime; + this.TuningTask = tuningTask; + this.ReaderProjectNumbers = readerProjectNumbers; + this.Temperature = temperature; this.CreateTime = createTime; + this.Description = description; + this.Name = name; + this.TopP = topP; + 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 bafee2ce8..ceaaa53fe 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,12 +8,6 @@ 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 @@ -21,6 +15,12 @@ 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? tunedModel, - string? baseModel) + string? baseModel, + string? tunedModel) { - this.TunedModel = tunedModel; this.BaseModel = baseModel; + this.TunedModel = tunedModel; } /// 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 0cb1717c5..09f2011b0 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 epoch this step was part of.
+ /// Output only. The tuning step.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("epoch")] - public int? Epoch { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("step")] + public int? Step { get; set; } /// - /// 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 ///
- [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")] - public float? MeanLoss { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("epoch")] + public int? Epoch { get; set; } /// - /// Output only. The tuning step.
+ /// Output only. The timestamp when this metric was computed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("step")] - public int? Step { 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 mean loss of the training examples for this step.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("computeTime")] - public string? ComputeTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("meanLoss")] + public float? MeanLoss { 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 epoch this step was part of.
- /// Included only in responses - /// - /// - /// Output only. The mean loss of the training examples for this step.
- /// Included only in responses - /// /// /// Output only. The tuning step.
/// Included only in responses /// + /// + /// Output only. The epoch this step was part of.
+ /// 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.
+ /// Included only in responses + /// #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningSnapshot( - int? epoch, - float? meanLoss, int? step, - string? computeTime) + int? epoch, + string? computeTime, + float? meanLoss) { - this.Epoch = epoch; - this.MeanLoss = meanLoss; this.Step = step; + this.Epoch = epoch; this.ComputeTime = computeTime; + this.MeanLoss = meanLoss; } /// 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 a4beb49bf..f9242fea8 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 @@ -8,13 +8,6 @@ namespace Google.Gemini /// public sealed partial class TuningTask { - /// - /// Output only. The timestamp when tuning this model started.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("startTime")] - public string? StartTime { get; set; } - /// /// Dataset for training or validation. /// @@ -22,18 +15,25 @@ public sealed partial class TuningTask public global::Google.Gemini.Dataset? TrainingData { get; set; } /// - /// Output only. Metrics collected during tuning.
+ /// Output only. The timestamp when tuning this model completed.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("snapshots")] - public global::System.Collections.Generic.IList? Snapshots { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("completeTime")] + public string? CompleteTime { get; set; } /// - /// Output only. The timestamp when tuning this model completed.
+ /// Output only. The timestamp when tuning this model started.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("completeTime")] - public string? CompleteTime { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("startTime")] + public string? StartTime { 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; } /// /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance @@ -50,21 +50,21 @@ public sealed partial class TuningTask /// /// Initializes a new instance of the class. /// + /// + /// Dataset for training or validation. + /// + /// + /// Output only. The timestamp when tuning this model completed.
+ /// Included only in responses + /// /// /// Output only. The timestamp when tuning this model started.
/// Included only in responses /// - /// - /// Dataset for training or validation. - /// /// /// Output only. Metrics collected during tuning.
/// Included only in responses /// - /// - /// Output only. The timestamp when tuning this model completed.
- /// Included only in responses - /// /// /// Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance /// @@ -72,16 +72,16 @@ public sealed partial class TuningTask [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public TuningTask( - string? startTime, global::Google.Gemini.Dataset? trainingData, - global::System.Collections.Generic.IList? snapshots, string? completeTime, + string? startTime, + global::System.Collections.Generic.IList? snapshots, global::Google.Gemini.Hyperparameters? hyperparameters) { - this.StartTime = startTime; this.TrainingData = trainingData; - this.Snapshots = snapshots; this.CompleteTime = completeTime; + this.StartTime = startTime; + this.Snapshots = snapshots; this.Hyperparameters = hyperparameters; } 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 e448903fe..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 @@ -9,10 +9,10 @@ namespace Google.Gemini public sealed partial class UploadToFileSearchStoreRequest { /// - /// Custom metadata to be associated with the data. + /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// - [global::System.Text.Json.Serialization.JsonPropertyName("customMetadata")] - public global::System.Collections.Generic.IList? CustomMetadata { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] + public string? MimeType { 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 @@ -20,18 +20,18 @@ public sealed partial class UploadToFileSearchStoreRequest [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. - /// - [global::System.Text.Json.Serialization.JsonPropertyName("mimeType")] - public string? MimeType { get; set; } - /// /// Optional. Display name of the created document. /// [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. /// - /// - /// Custom metadata to be associated with the data. + /// + /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content. /// /// /// 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. - /// /// /// 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::System.Collections.Generic.IList? customMetadata, - global::Google.Gemini.ChunkingConfig? chunkingConfig, string? mimeType, - string? displayName) + global::Google.Gemini.ChunkingConfig? chunkingConfig, + string? displayName, + global::System.Collections.Generic.IList? customMetadata) { - this.CustomMetadata = customMetadata; - this.ChunkingConfig = chunkingConfig; this.MimeType = mimeType; + this.ChunkingConfig = chunkingConfig; this.DisplayName = displayName; + this.CustomMetadata = customMetadata; } /// 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 790d93ae5..a15e3d4da 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 @@ -9,24 +9,17 @@ namespace Google.Gemini public sealed partial class UsageMetadata { /// - /// Output only. List of modalities of the cached content 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("cacheTokensDetails")] - public global::System.Collections.Generic.IList? CacheTokensDetails { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("cachedContentTokenCount")] + public int? CachedContentTokenCount { get; set; } /// - /// Output only. List of modalities that were processed in the request input.
+ /// Output only. List of modalities of the cached content in the request input.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("promptTokensDetails")] - public global::System.Collections.Generic.IList? PromptTokensDetails { 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; } + [global::System.Text.Json.Serialization.JsonPropertyName("cacheTokensDetails")] + public global::System.Collections.Generic.IList? CacheTokensDetails { 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. @@ -34,13 +27,6 @@ public sealed partial class UsageMetadata [global::System.Text.Json.Serialization.JsonPropertyName("promptTokenCount")] public int? PromptTokenCount { get; set; } - /// - /// Output only. List of modalities that were returned in the response.
- /// Included only in responses - ///
- [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokensDetails")] - public global::System.Collections.Generic.IList? CandidatesTokensDetails { get; set; } - /// /// Output only. Service tier of the request.
/// Included only in responses @@ -50,10 +36,25 @@ public sealed partial class UsageMetadata public global::Google.Gemini.UsageMetadataServiceTier? ServiceTier { get; set; } /// - /// Total number of tokens across all the generated response candidates. + /// Output only. Number of tokens present in tool-use prompt(s).
+ /// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokenCount")] - public int? CandidatesTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokenCount")] + public int? ToolUsePromptTokenCount { 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; } + + /// + /// Output only. Number of tokens of thoughts for thinking models.
+ /// Included only in responses + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] + public int? ThoughtsTokenCount { get; set; } /// /// Output only. List of modalities that were processed for tool-use request inputs.
@@ -63,24 +64,23 @@ public sealed partial class UsageMetadata public global::System.Collections.Generic.IList? ToolUsePromptTokensDetails { 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. Number of tokens of thoughts for thinking models.
- /// Included only in responses + /// Total number of tokens across all the generated response candidates. ///
- [global::System.Text.Json.Serialization.JsonPropertyName("thoughtsTokenCount")] - public int? ThoughtsTokenCount { get; set; } + [global::System.Text.Json.Serialization.JsonPropertyName("candidatesTokenCount")] + public int? CandidatesTokenCount { get; set; } /// - /// Output only. Number of tokens present in tool-use prompt(s).
+ /// Output only. List of modalities that were returned in the response.
/// Included only in responses ///
- [global::System.Text.Json.Serialization.JsonPropertyName("toolUsePromptTokenCount")] - public int? ToolUsePromptTokenCount { 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. /// + /// + /// Number of tokens in the cached part of the prompt (the cached content) + /// /// /// Output only. List of modalities of the cached content in the request input.
/// Included only in responses /// - /// - /// Output only. List of modalities that were processed in the request input.
- /// Included only in responses - /// - /// - /// Total token count for the generation request (prompt + thoughts + response candidates). - /// /// /// 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.
- /// Included only in responses - /// /// /// Output only. Service tier of the request.
/// Included only in responses /// - /// - /// Total number of tokens across all the generated response candidates. - /// - /// - /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// + /// Output only. Number of tokens present in tool-use prompt(s).
/// Included only in responses /// - /// - /// 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. Number of tokens of thoughts for thinking models.
/// Included only in responses /// - /// - /// Output only. Number of tokens present in tool-use prompt(s).
+ /// + /// Output only. List of modalities that were processed for tool-use request inputs.
+ /// Included only in responses + /// + /// + /// Total token count for the generation request (prompt + thoughts + response candidates). + /// + /// + /// Total number of tokens across all the generated response candidates. + /// + /// + /// 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( + int? cachedContentTokenCount, global::System.Collections.Generic.IList? cacheTokensDetails, - global::System.Collections.Generic.IList? promptTokensDetails, - int? totalTokenCount, int? promptTokenCount, - global::System.Collections.Generic.IList? candidatesTokensDetails, global::Google.Gemini.UsageMetadataServiceTier? serviceTier, - int? candidatesTokenCount, - global::System.Collections.Generic.IList? toolUsePromptTokensDetails, - int? cachedContentTokenCount, - int? thoughtsTokenCount, int? toolUsePromptTokenCount, + global::System.Collections.Generic.IList? promptTokensDetails, + int? thoughtsTokenCount, + global::System.Collections.Generic.IList? toolUsePromptTokensDetails, + int? totalTokenCount, + int? candidatesTokenCount, + global::System.Collections.Generic.IList? candidatesTokensDetails, int? responseTokenCount, global::System.Collections.Generic.IList? responseTokensDetails) { + this.CachedContentTokenCount = cachedContentTokenCount; this.CacheTokensDetails = cacheTokensDetails; - this.PromptTokensDetails = promptTokensDetails; - this.TotalTokenCount = totalTokenCount; this.PromptTokenCount = promptTokenCount; - this.CandidatesTokensDetails = candidatesTokensDetails; this.ServiceTier = serviceTier; - this.CandidatesTokenCount = candidatesTokenCount; - this.ToolUsePromptTokensDetails = toolUsePromptTokensDetails; - this.CachedContentTokenCount = cachedContentTokenCount; - this.ThoughtsTokenCount = thoughtsTokenCount; this.ToolUsePromptTokenCount = toolUsePromptTokenCount; + this.PromptTokensDetails = promptTokensDetails; + this.ThoughtsTokenCount = thoughtsTokenCount; + this.ToolUsePromptTokensDetails = toolUsePromptTokensDetails; + this.TotalTokenCount = totalTokenCount; + this.CandidatesTokenCount = candidatesTokenCount; + this.CandidatesTokensDetails = candidatesTokensDetails; this.ResponseTokenCount = responseTokenCount; this.ResponseTokensDetails = responseTokensDetails; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.PathBuilder.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.PathBuilder.g.cs index 038e54a05..eec7cb0a2 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.PathBuilder.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.PathBuilder.g.cs @@ -266,32 +266,32 @@ public PathBuilder AddRawQueryString( } /// - /// + /// /// public class EndPointAuthorization { /// - /// + /// /// public string Type { get; set; } = string.Empty; /// - /// + /// /// public string SchemeId { get; set; } = string.Empty; /// - /// + /// /// public string Location { get; set; } = string.Empty; /// - /// + /// /// public string Name { get; set; } = string.Empty; /// - /// + /// /// public string Value { get; set; } = string.Empty; } diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs index 9359e7694..96cdc2540 100644 --- a/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs +++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs @@ -4,13 +4,13 @@ namespace Google.Gemini { /// - /// + /// /// public static partial class AutoSdkPolyfills { #if !NET6_0_OR_GREATER /// - /// + /// /// /// /// @@ -23,7 +23,7 @@ public static partial class AutoSdkPolyfills return content.ReadAsStringAsync(); } /// - /// + /// /// /// /// @@ -36,7 +36,7 @@ public static partial class AutoSdkPolyfills return content.ReadAsStreamAsync(); } /// - /// + /// /// /// /// diff --git a/src/libs/Google.Gemini/openapi.json b/src/libs/Google.Gemini/openapi.json index b28a9bc89..7d0e38a05 100644 --- a/src/libs/Google.Gemini/openapi.json +++ b/src/libs/Google.Gemini/openapi.json @@ -11,65 +11,47 @@ } ], "paths": { - "/tunedModels/{tunedModelsId}": { - "patch": { - "description": "Updates a tuned model.", - "operationId": "tunedModels.patch", + "/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": "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/[^/]+$" - } - }, - { - "name": "updateMask", - "in": "query", - "description": "Optional. The list of fields to update.", + "description": "The name of the operation resource to be deleted.", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^batches/[^/]+$" } } ], - "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/Empty" } } } } } }, - "delete": { - "description": "Deletes a tuned model.", - "operationId": "tunedModels.delete", + "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 resource name of the model. Format: `tunedModels/my-model-id`", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^batches/[^/]+$" } } ], @@ -79,25 +61,27 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "get": { - "description": "Gets information about a specific TunedModel.", - "operationId": "tunedModels.get", + } + }, + "/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": "tunedModelsId", + "name": "batchesId", "in": "path", "required": true, - "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", + "description": "The name of the operation resource to be cancelled.", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+$" + "pattern": "^batches/[^/]+$" } } ], @@ -107,7 +91,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Empty" } } } @@ -115,38 +99,52 @@ } } }, - "/tunedModels/{tunedModelsId}:batchGenerateContent": { - "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "tunedModels.batchGenerateContent", + "/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 name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "name": "filter", + "in": "query", + "description": "The standard list filter.", "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" + "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" - } + }, + { + "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/Operation" + "$ref": "#/components/schemas/ListOperationsResponse" } } } @@ -154,19 +152,28 @@ } } }, - "/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", + "/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 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" } } ], @@ -174,7 +181,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/GenerateContentBatch" } } } @@ -185,12 +192,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/GenerateContentBatch" } } } @@ -198,19 +200,28 @@ } } }, - "/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}: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" } } ], @@ -218,7 +229,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" + "$ref": "#/components/schemas/EmbedContentBatch" } } } @@ -229,7 +240,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/EmbedContentBatch" } } } @@ -237,27 +248,15 @@ } } }, - "/tunedModels/{tunedModelsId}:generateContent": { + "/auth_tokens": { "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": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "schema": { - "type": "string", - "pattern": "^tunedModels/[^/]+$" - } - } - ], + "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/GenerateContentRequest" + "$ref": "#/components/schemas/AuthToken" } } } @@ -268,7 +267,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/AuthToken" } } } @@ -276,38 +275,36 @@ } } }, - "/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", + "/generatedFiles": { + "get": { + "description": "Lists the generated files owned by the requesting project.", + "operationId": "generatedFiles.list", "parameters": [ { - "name": "tunedModelsId", - "in": "path", - "required": true, - "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`", + "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": "string", - "pattern": "^tunedModels/[^/]+$" + "type": "integer", + "format": "int32" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TransferOwnershipRequest" - } + }, + { + "name": "pageToken", + "in": "query", + "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", + "schema": { + "type": "string" } } - }, + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TransferOwnershipResponse" + "$ref": "#/components/schemas/ListGeneratedFilesResponse" } } } @@ -315,29 +312,30 @@ } } }, - "/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", + "/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": "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])?`.", + "name": "operationsId", + "in": "path", + "required": true, "schema": { "type": "string" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/TunedModel" - } + }, + { + "name": "generatedFilesId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", + "schema": { + "type": "string", + "pattern": "^generatedFiles/[^/]+/operations/[^/]+$" } } - }, + ], "responses": { "200": { "description": "Successful response", @@ -350,7 +348,9 @@ } } } - }, + } + }, + "/tunedModels": { "get": { "description": "Lists created tuned models.", "operationId": "tunedModels.list", @@ -393,64 +393,75 @@ } } } - } - }, - "/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", + }, + "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": "filter", + "name": "tunedModelId", "in": "query", - "description": "The standard list filter.", + "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" } - }, + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TunedModel" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Operation" + } + } + } + } + } + } + }, + "/tunedModels/{tunedModelsId}:batchGenerateContent": { + "post": { + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "tunedModels.batchGenerateContent", + "parameters": [ { "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation's parent resource.", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "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" - } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BatchGenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -458,30 +469,31 @@ } } }, - "/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", + "/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": "tunedModelsId", "in": "path", "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "operationsId", - "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": "^tunedModels/[^/]+/operations/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", @@ -496,63 +508,58 @@ } } }, - "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { - "delete": { - "description": "Deletes the permission.", - "operationId": "tunedModels.permissions.delete", + "/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": "tunedModelsId", "in": "path", "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "permissionsId", - "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 of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TransferOwnershipRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/TransferOwnershipResponse" } } } } } - }, + } + }, + "/tunedModels/{tunedModelsId}": { "get": { - "description": "Gets information about a specific Permission.", - "operationId": "tunedModels.permissions.get", + "description": "Gets information about a specific TunedModel.", + "operationId": "tunedModels.get", "parameters": [ { "name": "tunedModelsId", "in": "path", "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "permissionsId", - "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 of the model. Format: `tunedModels/my-model-id`", "schema": { "type": "string", - "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -562,7 +569,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/TunedModel" } } } @@ -570,31 +577,23 @@ } }, "patch": { - "description": "Updates the permission.", - "operationId": "tunedModels.permissions.patch", + "description": "Updates a tuned model.", + "operationId": "tunedModels.patch", "parameters": [ { "name": "tunedModelsId", "in": "path", "required": true, - "schema": { - "type": "string" - } - }, - { - "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.", + "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/[^/]+/permissions/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } }, { "name": "updateMask", "in": "query", - "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", + "description": "Optional. The list of fields to update.", "schema": { "type": "string", "format": "google-fieldmask" @@ -605,7 +604,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/TunedModel" } } } @@ -616,7 +615,35 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/TunedModel" + } + } + } + } + } + }, + "delete": { + "description": "Deletes a tuned model.", + "operationId": "tunedModels.delete", + "parameters": [ + { + "name": "tunedModelsId", + "in": "path", + "required": true, + "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`", + "schema": { + "type": "string", + "pattern": "^tunedModels/[^/]+$" + } + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" } } } @@ -624,16 +651,16 @@ } } }, - "/tunedModels/{tunedModelsId}/permissions": { + "/tunedModels/{tunedModelsId}:generateContent": { "post": { - "description": "Create a permission to a specific resource.", - "operationId": "tunedModels.permissions.create", + "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": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", "pattern": "^tunedModels/[^/]+$" @@ -644,7 +671,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -655,52 +682,51 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/GenerateContentResponse" } } } } } - }, - "get": { - "description": "Lists permissions for the specific resource.", - "operationId": "tunedModels.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" - } - }, - { - "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" - } - }, + } + }, + "/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": "tunedModelsId", "in": "path", "required": true, - "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "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/ListPermissionsResponse" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -708,54 +734,80 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore": { - "post": { - "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.", - "operationId": "media.uploadToFileSearchStore", + "/tunedModels/{tunedModelsId}/permissions/{permissionsId}": { + "delete": { + "description": "Deletes the permission.", + "operationId": "tunedModels.permissions.delete", "parameters": [ { - "name": "fileSearchStoresId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`", + "schema": { + "type": "string" + } + }, + { + "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": "^fileSearchStores/[^/]+$" + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomLongRunningOperation" + "$ref": "#/components/schemas/Empty" } } } } } - } - }, - "/files": { - "post": { - "description": "Creates a `File`.", - "operationId": "media.upload", + }, + "patch": { + "description": "Updates the permission.", + "operationId": "tunedModels.permissions.patch", + "parameters": [ + { + "name": "tunedModelsId", + "in": "path", + "required": true, + "schema": { + "type": "string" + } + }, + { + "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": "^tunedModels/[^/]+/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/CreateFileRequest" + "$ref": "#/components/schemas/Permission" } } } @@ -766,7 +818,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateFileResponse" + "$ref": "#/components/schemas/Permission" } } } @@ -774,24 +826,25 @@ } }, "get": { - "description": "Lists the metadata for `File`s owned by the requesting project.", - "operationId": "files.list", + "description": "Gets information about a specific Permission.", + "operationId": "tunedModels.permissions.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.", + "name": "tunedModelsId", + "in": "path", + "required": true, "schema": { - "type": "integer", - "format": "int32" + "type": "string" } }, { - "name": "pageToken", - "in": "query", - "description": "Optional. A page token from a previous `ListFiles` call.", + "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" + "type": "string", + "pattern": "^tunedModels/[^/]+/permissions/[^/]+$" } } ], @@ -801,7 +854,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListFilesResponse" + "$ref": "#/components/schemas/Permission" } } } @@ -809,47 +862,73 @@ } } }, - "/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}/permissions": { + "post": { + "description": "Create a permission to a specific resource.", + "operationId": "tunedModels.permissions.create", "parameters": [ { - "name": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Permission" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/Permission" } } } } } }, - "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", + "get": { + "description": "Lists permissions for the specific resource.", + "operationId": "tunedModels.permissions.list", "parameters": [ { - "name": "batchesId", + "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": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource to be deleted.", + "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } } ], @@ -859,7 +938,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/ListPermissionsResponse" } } } @@ -867,19 +946,27 @@ } } }, - "/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/{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": "batchesId", + "name": "tunedModelsId", "in": "path", "required": true, - "description": "The name of the operation resource to be cancelled.", + "schema": { + "type": "string" + } + }, + { + "name": "operationsId", + "in": "path", + "required": true, + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+/operations/[^/]+$" } } ], @@ -889,7 +976,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Operation" } } } @@ -897,36 +984,78 @@ } } }, - "/batches/{batchesId}:updateGenerateContentBatch": { - "patch": { - "description": "Updates a batch of GenerateContent requests for batch processing.", - "operationId": "batches.updateGenerateContentBatch", + "/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", "parameters": [ { - "name": "batchesId", + "name": "filter", + "in": "query", + "description": "The standard list filter.", + "schema": { + "type": "string" + } + }, + { + "name": "tunedModelsId", "in": "path", "required": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "description": "The name of the operation's parent resource.", "schema": { "type": "string", - "pattern": "^batches/[^/]+$" + "pattern": "^tunedModels/[^/]+$" } }, { - "name": "updateMask", + "name": "pageSize", "in": "query", - "description": "Optional. The list of fields to update.", + "description": "The standard list page size.", "schema": { - "type": "string", - "format": "google-fieldmask" + "type": "integer", + "format": "int32" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" + }, + { + "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" + } + } + } + } + } + } + }, + "/environments:create": { + "post": { + "description": "Creates an environment.", + "operationId": "environments.create", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateEnvironmentRequest" } } } @@ -937,7 +1066,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentBatch" + "$ref": "#/components/schemas/Environment" } } } @@ -945,47 +1074,65 @@ } } }, - "/batches/{batchesId}:updateEmbedContentBatch": { - "patch": { - "description": "Updates a batch of EmbedContent requests for batch processing.", - "operationId": "batches.updateEmbedContentBatch", + "/environments:list": { + "get": { + "description": "Lists environments.", + "operationId": "environments.list", "parameters": [ { - "name": "batchesId", - "in": "path", - "required": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "name": "pageSize", + "in": "query", + "description": "Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.", "schema": { - "type": "string", - "pattern": "^batches/[^/]+$" + "type": "integer", + "format": "int32" } }, { - "name": "updateMask", + "name": "pageToken", "in": "query", - "description": "Optional. The list of fields to update.", + "description": "Pagination token.", "schema": { - "type": "string", - "format": "google-fieldmask" + "type": "string" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ListEnvironmentsResponse" + } } } } - }, + } + } + }, + "/environments/{id}:get": { + "get": { + "description": "Gets an environment.", + "operationId": "environments.get", + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "description": "Required. The identifier of the environment to retrieve.", + "schema": { + "type": "string" + } + } + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentBatch" + "$ref": "#/components/schemas/Environment" } } } @@ -993,40 +1140,81 @@ } } }, - "/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", + "/environments/{id}:delete": { + "delete": { + "description": "Deletes an environment.", + "operationId": "environments.delete", "parameters": [ { - "name": "filter", - "in": "query", - "description": "The standard list filter.", + "name": "id", + "in": "path", + "required": true, + "description": "Required. The identifier of the environment to delete.", "schema": { "type": "string" } - }, + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Empty" + } + } + } + } + } + } + }, + "/environments/{environmentsId}/files/{filesId}": { + "get": { + "description": "Retrieves a file or directory from an environment's snapshot (HTTP endpoint).", + "operationId": "environments.files.media.download", + "parameters": [ { - "name": "pageSize", + "name": "page_size", "in": "query", - "description": "The standard list page size.", + "description": "Optional. Maximum number of entries to return per page (for directory listing). If unspecified, defaults to 100. Maximum is 1000. NOLINT", "schema": { "type": "integer", "format": "int32" } }, { - "name": "pageToken", + "name": "page_token", "in": "query", - "description": "The standard list page token.", + "description": "Optional. Pagination token for directory listing. NOLINT", "schema": { "type": "string" } }, { - "name": "returnPartialSuccess", + "name": "environmentsId", + "in": "path", + "required": true, + "description": "Required. The resource name of the environment. Format: `environments/{environment_id}`", + "schema": { + "type": "string", + "pattern": "^environments/[^/]+$" + } + }, + { + "name": "filesId", + "in": "path", + "required": true, + "description": "Optional. The path of the file or directory within the environment. If empty, defaults to the root of the workspace. Example: \"workspace/src/main.py\"", + "schema": { + "type": "string", + "pattern": "^.*$" + } + }, + { + "name": "recursive", "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.", + "description": "Optional. If true and the path is a directory, recursively lists all files and subdirectories. Defaults to false (immediate children only).", "schema": { "type": "boolean" } @@ -1038,7 +1226,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/GetEnvironmentFilesResponse" } } } @@ -1046,19 +1234,19 @@ } } }, - "/dynamic/{dynamicId}:streamGenerateContent": { + "/models/{modelsId}:batchEmbedContents": { "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", + "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": "dynamicId", + "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": "^dynamic/[^/]+$" + "pattern": "^models/[^/]+$" } } ], @@ -1066,7 +1254,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/BatchEmbedContentsRequest" } } } @@ -1077,12 +1265,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" - } - }, - "text/event-stream": { - "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/BatchEmbedContentsResponse" } } } @@ -1090,19 +1273,19 @@ } } }, - "/dynamic/{dynamicId}:generateContent": { + "/models/{modelsId}:asyncBatchEmbedContent": { "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", + "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": "models.asyncBatchEmbedContent", "parameters": [ { - "name": "dynamicId", + "name": "modelsId", "in": "path", "required": true, "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^dynamic/[^/]+$" + "pattern": "^models/[^/]+$" } } ], @@ -1110,7 +1293,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" + "$ref": "#/components/schemas/AsyncBatchEmbedContentRequest" } } } @@ -1121,7 +1304,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -1129,15 +1312,27 @@ } } }, - "/corpora": { + "/models/{modelsId}:countTokens": { "post": { - "description": "Creates an empty `Corpus`.", - "operationId": "corpora.create", + "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/[^/]+$" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/CountTokensRequest" } } } @@ -1148,42 +1343,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/CountTokensResponse" } } } } } - }, - "get": { - "description": "Lists all `Corpora` owned by the user.", - "operationId": "corpora.list", + } + }, + "/models/{modelsId}:embedContent": { + "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", "parameters": [ { - "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.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "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.", + "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" + "type": "string", + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EmbedContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListCorporaResponse" + "$ref": "#/components/schemas/EmbedContentResponse" } } } @@ -1191,65 +1390,38 @@ } } }, - "/corpora/{corporaId}": { - "delete": { - "description": "Deletes a `Corpus`.", - "operationId": "corpora.delete", + "/models/{modelsId}:batchGenerateContent": { + "post": { + "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", + "operationId": "models.batchGenerateContent", "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.", - "schema": { - "type": "boolean" - } - }, - { - "name": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The resource 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": "^models/[^/]+$" } } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Empty" - } + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BatchGenerateContentRequest" } } } - } - }, - "get": { - "description": "Gets information about a specific `Corpus`.", - "operationId": "corpora.get", - "parameters": [ - { - "name": "corporaId", - "in": "path", - "required": true, - "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`", - "schema": { - "type": "string", - "pattern": "^corpora/[^/]+$" - } - } - ], + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Corpus" + "$ref": "#/components/schemas/Operation" } } } @@ -1257,27 +1429,26 @@ } } }, - "/corpora/{corporaId}/operations/{operationsId}": { + "/models": { "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 the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", + "operationId": "models.list", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, + "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" + "type": "integer", + "format": "int32" } }, { - "name": "corporaId", - "in": "path", - "required": true, - "description": "The name of the operation resource.", + "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", - "pattern": "^corpora/[^/]+/operations/[^/]+$" + "type": "string" } } ], @@ -1287,7 +1458,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/ListModelsResponse" } } } @@ -1295,64 +1466,58 @@ } } }, - "/corpora/{corporaId}/permissions": { - "get": { - "description": "Lists permissions for the specific resource.", - "operationId": "corpora.permissions.list", + "/models/{modelsId}: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": "models.generateContent", "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" - } - }, - { - "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": "modelsId", "in": "path", "required": true, - "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^models/[^/]+$" } } ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GenerateContentRequest" + } + } + } + }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListPermissionsResponse" + "$ref": "#/components/schemas/GenerateContentResponse" } } } } } - }, + } + }, + "/models/{modelsId}:streamGenerateContent": { "post": { - "description": "Create a permission to a specific resource.", - "operationId": "corpora.permissions.create", + "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": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+$" + "pattern": "^models/[^/]+$" } } ], @@ -1360,7 +1525,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -1371,7 +1536,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/GenerateContentResponse" + } + }, + "text/event-stream": { + "schema": { + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -1379,27 +1549,19 @@ } } }, - "/corpora/{corporaId}/permissions/{permissionsId}": { - "delete": { - "description": "Deletes the permission.", - "operationId": "corpora.permissions.delete", + "/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": "permissionsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "corporaId", + "name": "modelsId", "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 of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^models/[^/]+$" } } ], @@ -1409,19 +1571,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/Model" } } } } } - }, - "patch": { - "description": "Updates the permission.", - "operationId": "corpora.permissions.patch", + } + }, + "/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": "permissionsId", + "name": "operationsId", "in": "path", "required": true, "schema": { @@ -1429,67 +1593,76 @@ } }, { - "name": "corporaId", + "name": "modelsId", "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/[^/]+$" - } - }, - { - "name": "updateMask", - "in": "query", - "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", + "description": "The name of the operation resource.", "schema": { "type": "string", - "format": "google-fieldmask" + "pattern": "^models/[^/]+/operations/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Permission" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/Operation" } } } } } - }, + } + }, + "/models/{modelsId}/operations": { "get": { - "description": "Gets information about a specific Permission.", - "operationId": "corpora.permissions.get", + "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", + "operationId": "models.operations.list", "parameters": [ { - "name": "permissionsId", - "in": "path", - "required": true, + "name": "filter", + "in": "query", + "description": "The standard list filter.", "schema": { "type": "string" } }, { - "name": "corporaId", + "name": "modelsId", "in": "path", "required": true, - "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", + "description": "The name of the operation's parent resource.", "schema": { "type": "string", - "pattern": "^corpora/[^/]+/permissions/[^/]+$" + "pattern": "^models/[^/]+$" + } + }, + { + "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" } } ], @@ -1499,7 +1672,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Permission" + "$ref": "#/components/schemas/ListOperationsResponse" } } } @@ -1507,15 +1680,15 @@ } } }, - "/files:register": { + "/files": { "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 a `File`.", + "operationId": "media.upload", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RegisterFilesRequest" + "$ref": "#/components/schemas/CreateFileRequest" } } } @@ -1526,37 +1699,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RegisterFilesResponse" - } - } - } - } - } - } - }, - "/files/{filesId}": { - "delete": { - "description": "Deletes the `File`.", - "operationId": "files.delete", - "parameters": [ - { - "name": "filesId", - "in": "path", - "required": true, - "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", - "schema": { - "type": "string", - "pattern": "^files/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Empty" + "$ref": "#/components/schemas/CreateFileResponse" } } } @@ -1564,43 +1707,13 @@ } }, "get": { - "description": "Gets the metadata for the given `File`.", - "operationId": "files.get", - "parameters": [ - { - "name": "filesId", - "in": "path", - "required": true, - "description": "Required. The name of the `File` to get. Example: `files/abc-123`", - "schema": { - "type": "string", - "pattern": "^files/[^/]+$" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/File" - } - } - } - } - } - } - }, - "/generatedFiles": { - "get": { - "description": "Lists the generated files owned by the requesting project.", - "operationId": "generatedFiles.list", + "description": "Lists the metadata for `File`s owned by the requesting project.", + "operationId": "files.list", "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.", + "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" @@ -1609,7 +1722,7 @@ { "name": "pageToken", "in": "query", - "description": "Optional. A page token from a previous `ListGeneratedFiles` call.", + "description": "Optional. A page token from a previous `ListFiles` call.", "schema": { "type": "string" } @@ -1621,7 +1734,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListGeneratedFilesResponse" + "$ref": "#/components/schemas/ListFilesResponse" } } } @@ -1629,53 +1742,27 @@ } } }, - "/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", + "/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": "operationsId", - "in": "path", - "required": true, - "schema": { - "type": "string" - } - }, - { - "name": "generatedFilesId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "The name of the operation resource.", + "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^generatedFiles/[^/]+/operations/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Operation" - } - } - } - } - } - } - }, - "/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" + "$ref": "#/components/schemas/UploadToFileSearchStoreRequest" } } } @@ -1686,7 +1773,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AuthToken" + "$ref": "#/components/schemas/CustomLongRunningOperation" } } } @@ -1694,15 +1781,27 @@ } } }, - "/fileSearchStores": { + "/dynamic/{dynamicId}:streamGenerateContent": { "post": { - "description": "Creates an empty `FileSearchStore`.", - "operationId": "fileSearchStores.create", + "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": "dynamicId", + "in": "path", + "required": true, + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string", + "pattern": "^dynamic/[^/]+$" + } + } + ], "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -1713,42 +1812,12 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/GenerateContentResponse" } - } - } - } - } - }, - "get": { - "description": "Lists all `FileSearchStores` owned by the user.", - "operationId": "fileSearchStores.list", - "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.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "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.", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { + }, + "text/event-stream": { "schema": { - "$ref": "#/components/schemas/ListFileSearchStoresResponse" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -1756,19 +1825,19 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}:importFile": { + "/dynamic/{dynamicId}:generateContent": { "post": { - "description": "Imports a `File` from File Service to a `FileSearchStore`.", - "operationId": "fileSearchStores.importFile", + "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": "fileSearchStoresId", + "name": "dynamicId", "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 name of the `Model` to use for generating the completion. Format: `models/{model}`.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^dynamic/[^/]+$" } } ], @@ -1776,7 +1845,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ImportFileRequest" + "$ref": "#/components/schemas/GenerateContentRequest" } } } @@ -1787,7 +1856,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/GenerateContentResponse" } } } @@ -1795,19 +1864,19 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}": { + "/corpora/{corporaId}": { "get": { - "description": "Gets information about a specific `FileSearchStore`.", - "operationId": "fileSearchStores.get", + "description": "Gets information about a specific `Corpus`.", + "operationId": "corpora.get", "parameters": [ { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -1817,7 +1886,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/FileSearchStore" + "$ref": "#/components/schemas/Corpus" } } } @@ -1825,25 +1894,25 @@ } }, "delete": { - "description": "Deletes a `FileSearchStore`.", - "operationId": "fileSearchStores.delete", + "description": "Deletes a `Corpus`.", + "operationId": "corpora.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.", + "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": "boolean" } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -1861,27 +1930,26 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}": { + "/corpora": { "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": "Lists all `Corpora` owned by the user.", + "operationId": "corpora.list", "parameters": [ { - "name": "operationsId", - "in": "path", - "required": true, + "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.", "schema": { - "type": "string" + "type": "integer", + "format": "int32" } }, { - "name": "fileSearchStoresId", - "in": "path", - "required": true, - "description": "The name of the operation resource.", + "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/[^/]+/operations/[^/]+$" + "type": "string" } } ], @@ -1891,21 +1959,46 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/ListCorporaResponse" } } } } } - } - }, - "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { - "get": { - "description": "Gets information about a specific `Document`.", - "operationId": "fileSearchStores.documents.get", + }, + "post": { + "description": "Creates an empty `Corpus`.", + "operationId": "corpora.create", + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Corpus" + } + } + } + }, + "responses": { + "200": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Corpus" + } + } + } + } + } + } + }, + "/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", "parameters": [ { - "name": "fileSearchStoresId", + "name": "operationsId", "in": "path", "required": true, "schema": { @@ -1913,13 +2006,13 @@ } }, { - "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": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" + "pattern": "^corpora/[^/]+/operations/[^/]+$" } } ], @@ -1929,19 +2022,21 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Document" + "$ref": "#/components/schemas/Operation" } } } } } - }, - "delete": { - "description": "Deletes a `Document`.", - "operationId": "fileSearchStores.documents.delete", + } + }, + "/corpora/{corporaId}/permissions/{permissionsId}": { + "patch": { + "description": "Updates the permission.", + "operationId": "corpora.permissions.patch", "parameters": [ { - "name": "fileSearchStoresId", + "name": "permissionsId", "in": "path", "required": true, "schema": { @@ -1949,21 +2044,67 @@ } }, { - "name": "force", + "name": "corporaId", + "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/[^/]+$" + } + }, + { + "name": "updateMask", "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.", + "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)", "schema": { - "type": "boolean" + "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/Permission" + } + } + } + } + } + }, + "delete": { + "description": "Deletes the permission.", + "operationId": "corpora.permissions.delete", + "parameters": [ + { + "name": "permissionsId", + "in": "path", + "required": true, + "schema": { + "type": "string" } }, { - "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/[^/]+$" } } ], @@ -1979,38 +2120,27 @@ } } } - } - }, - "/fileSearchStores/{fileSearchStoresId}/documents": { + }, "get": { - "description": "Lists all `Document`s in a `Corpus`.", - "operationId": "fileSearchStores.documents.list", + "description": "Gets information about a specific Permission.", + "operationId": "corpora.permissions.get", "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.", + "name": "permissionsId", + "in": "path", + "required": true, "schema": { "type": "string" } }, { - "name": "fileSearchStoresId", + "name": "corporaId", "in": "path", "required": true, - "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", + "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`", "schema": { "type": "string", - "pattern": "^fileSearchStores/[^/]+$" + "pattern": "^corpora/[^/]+/permissions/[^/]+$" } } ], @@ -2020,7 +2150,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListDocumentsResponse" + "$ref": "#/components/schemas/Permission" } } } @@ -2028,27 +2158,36 @@ } } }, - "/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}": { + "/corpora/{corporaId}/permissions": { "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/[^/]+$" } } ], @@ -2058,27 +2197,25 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Operation" + "$ref": "#/components/schemas/ListPermissionsResponse" } } } } } - } - }, - "/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", + "description": "Create a permission to a specific resource.", + "operationId": "corpora.permissions.create", "parameters": [ { - "name": "modelsId", + "name": "corporaId", "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 parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^corpora/[^/]+$" } } ], @@ -2086,7 +2223,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensRequest" + "$ref": "#/components/schemas/Permission" } } } @@ -2097,7 +2234,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CountTokensResponse" + "$ref": "#/components/schemas/Permission" } } } @@ -2105,19 +2242,19 @@ } } }, - "/models/{modelsId}:batchGenerateContent": { + "/fileSearchStores/{fileSearchStoresId}:importFile": { "post": { - "description": "Enqueues a batch of `GenerateContent` requests for batch processing.", - "operationId": "models.batchGenerateContent", + "description": "Imports a `File` from File Service to a `FileSearchStore`.", + "operationId": "fileSearchStores.importFile", "parameters": [ { - "name": "modelsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -2125,7 +2262,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchGenerateContentRequest" + "$ref": "#/components/schemas/ImportFileRequest" } } } @@ -2144,19 +2281,19 @@ } } }, - "/models/{modelsId}": { + "/fileSearchStores/{fileSearchStoresId}": { "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", + "description": "Gets information about a specific `FileSearchStore`.", + "operationId": "fileSearchStores.get", "parameters": [ { - "name": "modelsId", + "name": "fileSearchStoresId", "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}`", + "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -2166,34 +2303,33 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Model" + "$ref": "#/components/schemas/FileSearchStore" } } } } } - } - }, - "/models": { - "get": { - "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.", - "operationId": "models.list", + }, + "delete": { + "description": "Deletes a `FileSearchStore`.", + "operationId": "fileSearchStores.delete", "parameters": [ { - "name": "pageSize", + "name": "force", "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.", + "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": "integer", - "format": "int32" + "type": "boolean" } }, { - "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": "fileSearchStoresId", + "in": "path", + "required": true, + "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`", "schema": { - "type": "string" + "type": "string", + "pattern": "^fileSearchStores/[^/]+$" } } ], @@ -2203,7 +2339,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListModelsResponse" + "$ref": "#/components/schemas/Empty" } } } @@ -2211,27 +2347,15 @@ } } }, - "/models/{modelsId}:embedContent": { + "/fileSearchStores": { "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", - "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/[^/]+$" - } - } - ], + "description": "Creates an empty `FileSearchStore`.", + "operationId": "fileSearchStores.create", "requestBody": { "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentRequest" + "$ref": "#/components/schemas/FileSearchStore" } } } @@ -2242,46 +2366,42 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/EmbedContentResponse" + "$ref": "#/components/schemas/FileSearchStore" } } } } } - } - }, - "/models/{modelsId}: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": "models.generateContent", + }, + "get": { + "description": "Lists all `FileSearchStores` owned by the user.", + "operationId": "fileSearchStores.list", "parameters": [ { - "name": "modelsId", - "in": "path", - "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "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.", "schema": { - "type": "string", - "pattern": "^models/[^/]+$" + "type": "integer", + "format": "int32" } - } - ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GenerateContentRequest" - } + }, + { + "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.", + "schema": { + "type": "string" } } - }, + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GenerateContentResponse" + "$ref": "#/components/schemas/ListFileSearchStoresResponse" } } } @@ -2289,77 +2409,81 @@ } } }, - "/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", + "/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}": { + "get": { + "description": "Gets information about a specific `Document`.", + "operationId": "fileSearchStores.documents.get", "parameters": [ { - "name": "modelsId", + "name": "fileSearchStoresId", "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" + } + }, + { + "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": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" } } ], - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsRequest" - } - } - } - }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BatchEmbedContentsResponse" + "$ref": "#/components/schemas/Document" } } } } } - } - }, - "/models/{modelsId}: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": "models.asyncBatchEmbedContent", + }, + "delete": { + "description": "Deletes a `Document`.", + "operationId": "fileSearchStores.documents.delete", "parameters": [ { - "name": "modelsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", + "schema": { + "type": "string" + } + }, + { + "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", + "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": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$" } } ], - "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" } } } @@ -2367,43 +2491,46 @@ } } }, - "/models/{modelsId}: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": "models.streamGenerateContent", + "/fileSearchStores/{fileSearchStoresId}/documents": { + "get": { + "description": "Lists all `Document`s in a `Corpus`.", + "operationId": "fileSearchStores.documents.list", "parameters": [ { - "name": "modelsId", + "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", "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` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`", "schema": { "type": "string", - "pattern": "^models/[^/]+$" + "pattern": "^fileSearchStores/[^/]+$" } } ], - "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/ListDocumentsResponse" } } } @@ -2411,52 +2538,27 @@ } } }, - "/models/{modelsId}/operations": { + "/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}": { "get": { - "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.", - "operationId": "models.operations.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": "fileSearchStores.operations.get", "parameters": [ { - "name": "filter", - "in": "query", - "description": "The standard list filter.", + "name": "operationsId", + "in": "path", + "required": true, "schema": { "type": "string" } }, { - "name": "modelsId", + "name": "fileSearchStoresId", "in": "path", "required": true, - "description": "The name of the operation's parent resource.", + "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^models/[^/]+$" - } - }, - { - "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": "^fileSearchStores/[^/]+/operations/[^/]+$" } } ], @@ -2466,7 +2568,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ListOperationsResponse" + "$ref": "#/components/schemas/Operation" } } } @@ -2474,10 +2576,10 @@ } } }, - "/models/{modelsId}/operations/{operationsId}": { + "/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": "models.operations.get", + "operationId": "fileSearchStores.upload.operations.get", "parameters": [ { "name": "operationsId", @@ -2488,13 +2590,13 @@ } }, { - "name": "modelsId", + "name": "fileSearchStoresId", "in": "path", "required": true, "description": "The name of the operation resource.", "schema": { "type": "string", - "pattern": "^models/[^/]+/operations/[^/]+$" + "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$" } } ], @@ -2512,45 +2614,47 @@ } } }, - "/environments:create": { - "post": { - "description": "Creates an environment.", - "operationId": "environments.create", - "requestBody": { - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CreateEnvironmentRequest" - } + "/files/{filesId}": { + "get": { + "description": "Gets the metadata for the given `File`.", + "operationId": "files.get", + "parameters": [ + { + "name": "filesId", + "in": "path", + "required": true, + "description": "Required. The name of the `File` to get. Example: `files/abc-123`", + "schema": { + "type": "string", + "pattern": "^files/[^/]+$" } } - }, + ], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Environment" + "$ref": "#/components/schemas/File" } } } } } - } - }, - "/environments/{id}:delete": { + }, "delete": { - "description": "Deletes an environment.", - "operationId": "environments.delete", + "description": "Deletes the `File`.", + "operationId": "files.delete", "parameters": [ { - "name": "id", + "name": "filesId", "in": "path", "required": true, - "description": "Required. The identifier of the environment to delete.", + "description": "Required. The name of the `File` to delete. Example: `files/abc-123`", "schema": { - "type": "string" + "type": "string", + "pattern": "^files/[^/]+$" } } ], @@ -2568,36 +2672,26 @@ } } }, - "/environments:list": { - "get": { - "description": "Lists environments.", - "operationId": "environments.list", - "parameters": [ - { - "name": "pageSize", - "in": "query", - "description": "Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.", - "schema": { - "type": "integer", - "format": "int32" - } - }, - { - "name": "pageToken", - "in": "query", - "description": "Pagination token.", - "schema": { - "type": "string" + "/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/ListEnvironmentsResponse" + "$ref": "#/components/schemas/RegisterFilesResponse" } } } @@ -2605,39 +2699,31 @@ } } }, - "/environments/{id}:get": { - "get": { - "description": "Gets an environment.", - "operationId": "environments.get", + "/cachedContents/{cachedContentsId}": { + "patch": { + "description": "Updates CachedContent resource (only expiration is updatable).", + "operationId": "cachedContents.patch", "parameters": [ { - "name": "id", + "name": "cachedContentsId", "in": "path", "required": true, - "description": "Required. The identifier of the environment to retrieve.", + "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", "schema": { - "type": "string" + "type": "string", + "pattern": "^cachedContents/[^/]+$" } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Environment" - } - } + }, + { + "name": "updateMask", + "in": "query", + "description": "The list of fields to update.", + "schema": { + "type": "string", + "format": "google-fieldmask" } } - } - } - }, - "/cachedContents": { - "post": { - "description": "Creates CachedContent resource.", - "operationId": "cachedContents.create", + ], "requestBody": { "content": { "application/json": { @@ -2660,43 +2746,6 @@ } } }, - "get": { - "description": "Lists CachedContents.", - "operationId": "cachedContents.list", - "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.", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ListCachedContentsResponse" - } - } - } - } - } - } - }, - "/cachedContents/{cachedContentsId}": { "delete": { "description": "Deletes CachedContent resource.", "operationId": "cachedContents.delete", @@ -2725,30 +2774,39 @@ } } }, - "patch": { - "description": "Updates CachedContent resource (only expiration is updatable).", - "operationId": "cachedContents.patch", + "get": { + "description": "Reads CachedContent resource.", + "operationId": "cachedContents.get", "parameters": [ { "name": "cachedContentsId", "in": "path", "required": true, - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", + "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", "schema": { "type": "string", "pattern": "^cachedContents/[^/]+$" } - }, - { - "name": "updateMask", - "in": "query", - "description": "The list of fields to update.", - "schema": { - "type": "string", - "format": "google-fieldmask" - } } ], + "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": { @@ -2772,17 +2830,24 @@ } }, "get": { - "description": "Reads CachedContent resource.", - "operationId": "cachedContents.get", + "description": "Lists CachedContents.", + "operationId": "cachedContents.list", "parameters": [ { - "name": "cachedContentsId", - "in": "path", - "required": true, - "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`", + "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", - "pattern": "^cachedContents/[^/]+$" + "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.", + "schema": { + "type": "string" } } ], @@ -2792,7 +2857,7 @@ "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/ListCachedContentsResponse" } } } @@ -2803,1251 +2868,1052 @@ }, "components": { "schemas": { - "InlinedEmbedContentRequests": { - "type": "object", - "properties": { - "requests": { - "description": "Required. The requests to be processed in the batch.", - "items": { - "$ref": "#/components/schemas/InlinedEmbedContentRequest" - }, - "type": "array" - } - }, - "description": "The requests to be processed in the batch if provided as part of the batch creation request." - }, - "TransferOwnershipRequest": { - "type": "object", + "FunctionDeclaration": { "properties": { - "emailAddress": { - "description": "Required. The email address of the user to whom the tuned model is being transferred to.", + "name": { + "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" - } - }, - "description": "Request to transfer the ownership of the tuned model." - }, - "Permission": { - "type": "object", - "properties": { - "role": { - "enum": [ - "ROLE_UNSPECIFIED", - "OWNER", - "WRITER", - "READER" - ], - "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", - "description": "Required. The role granted by this permission." }, - "emailAddress": { - "type": "string", - "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." + "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`." }, - "granteeType": { + "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" + }, + "behavior": { + "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.", "enum": [ - "GRANTEE_TYPE_UNSPECIFIED", - "USER", - "GROUP", - "EVERYONE" + "UNSPECIFIED", + "BLOCKING", + "NON_BLOCKING" ], "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." - ], - "description": "Optional. Immutable. The type of the grantee." + "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." + ] }, - "name": { - "readOnly": true, + "description": { "type": "string", - "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": "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" - }, - "LogprobsResult": { - "description": "Logprobs Result", - "type": "object", - "properties": { - "topCandidates": { - "description": "Length = total number of decoding steps.", - "type": "array", - "items": { - "$ref": "#/components/schemas/TopCandidates" - } + "description": "Required. A brief description of the function." }, - "chosenCandidates": { - "type": "array", - "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" - }, - "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates." + "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`." }, - "logProbabilitySum": { - "type": "number", - "format": "float", - "description": "Sum of log probabilities for all tokens." - } - } - }, - "ChunkingConfig": { - "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" + "parameters": { + "$ref": "#/components/schemas/Schema", + "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." } }, - "type": "object" + "type": "object", + "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." }, - "ModelStatus": { + "ToolResponse": { "properties": { - "message": { - "description": "A message explaining the model status.", - "type": "string" + "response": { + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + }, + "description": "Optional. The tool response." }, - "retirementTime": { - "format": "google-datetime", - "type": "string", - "description": "The time at which the model will be retired." + "id": { + "description": "Optional. The identifier of the tool call this response is for.", + "type": "string" }, - "modelStage": { - "type": "string", - "description": "The stage of the underlying model.", - "enumDeprecated": [ - false, - true, - false, - false, - false, - false, - true, - false - ], + "toolType": { "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." + "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": [ - "MODEL_STAGE_UNSPECIFIED", - "UNSTABLE_EXPERIMENTAL", - "EXPERIMENTAL", - "PREVIEW", - "STABLE", - "LEGACY", - "DEPRECATED", - "RETIRED" - ] + "TOOL_TYPE_UNSPECIFIED", + "GOOGLE_SEARCH_WEB", + "GOOGLE_SEARCH_IMAGE", + "URL_CONTEXT", + "GOOGLE_MAPS", + "FILE_SEARCH" + ], + "type": "string", + "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`." } }, - "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.", + "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" }, - "UrlContext": { - "properties": {}, - "description": "Tool to support URL context retrieval.", - "type": "object" + "GroundingChunkStringList": { + "properties": { + "values": { + "description": "The string values of the list.", + "type": "array", + "items": { + "type": "string" + } + } + }, + "type": "object", + "description": "A list of string values." }, - "SafetySetting": { + "Image": { + "description": "Chunk from image search.", "type": "object", - "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.", "properties": { - "category": { - "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 setting.", - "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 - ], + "imageUri": { + "type": "string", + "description": "The image asset URL." + }, + "sourceUri": { + "type": "string", + "description": "The web page URI for attribution." + }, + "domain": { + "description": "The root domain of the web page that the image is from, e.g. \"example.com\".", "type": "string" }, - "threshold": { - "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" - ], - "description": "Required. Controls the probability threshold at which harm is blocked.", + "title": { + "description": "The title of the web page that the image is from.", "type": "string" } } }, - "Interval": { - "type": "object", - "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.", + "FileData": { "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.", + "fileUri": { + "type": "string", + "description": "Required. URI." + }, + "mimeType": { + "type": "string", + "description": "Optional. The IANA standard MIME type of the source data." + } + }, + "description": "URI based data.", + "type": "object" + }, + "AuthToken": { + "properties": { + "newSessionExpireTime": { "format": "google-datetime", + "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." + }, + "name": { + "readOnly": true, + "description": "Output only. Identifier. The token itself.", "type": "string" }, - "endTime": { - "format": "google-datetime", - "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", + "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.", + "format": "google-fieldmask", "type": "string" + }, + "expireTime": { + "type": "string", + "format": "google-datetime", + "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." + }, + "uses": { + "type": "integer", + "format": "int32", + "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." + }, + "bidiGenerateContentSetup": { + "$ref": "#/components/schemas/BidiGenerateContentSetup", + "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`." } - } + }, + "description": "A request to create an ephemeral authentication token.", + "type": "object" }, - "WhiteSpaceConfig": { + "CachedContentUsageMetadata": { + "description": "Metadata on the usage of the cached content.", "type": "object", - "description": "Configuration for a white space chunking algorithm [white space delimited].", "properties": { - "maxOverlapTokens": { - "format": "int32", - "description": "Maximum number of overlapping tokens between two adjacent chunks.", - "type": "integer" - }, - "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.", + "totalTokenCount": { "format": "int32", + "description": "Total number of tokens that the cached content consumes.", "type": "integer" } } }, - "LanguageAuto": { - "type": "object", - "description": "Indicates the language of the audio should be automatically detected.", - "deprecated": true, - "properties": {} - }, - "DynamicRetrievalConfig": { - "description": "Describes the options to customize dynamic retrieval.", + "GenerationConfig": { "properties": { - "mode": { - "x-enum-descriptions": [ - "Always trigger retrieval.", - "Run retrieval only when system decides it is necessary." + "responseJsonSchema": { + "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." + }, + "translationConfig": { + "$ref": "#/components/schemas/TranslationConfig", + "description": "Optional. Config for translation." + }, + "maxOutputTokens": { + "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.", + "format": "int32" + }, + "audioTranscriptionConfig": { + "$ref": "#/components/schemas/AudioTranscriptionConfig", + "description": "Optional. Config for audio transcription (speech recognition)." + }, + "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" + }, + "mediaResolution": { + "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)." ], + "description": "Optional. If specified, the media resolution specified will be used.", "enum": [ - "MODE_UNSPECIFIED", - "MODE_DYNAMIC" + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH" ], - "type": "string", - "description": "The mode of the predictor to be used in dynamic retrieval." + "type": "string" }, - "dynamicThreshold": { + "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" + }, + "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" + }, + "topK": { + "format": "int32", + "type": "integer", + "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." + }, + "temperature": { + "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", + "format": "float" + }, + "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." + }, + "logprobs": { + "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].", + "format": "int32" + }, + "enableEnhancedCivicAnswers": { + "description": "Optional. Enables enhanced civic answers. It may not be available for all models.", + "type": "boolean" + }, + "candidateCount": { + "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)", + "type": "integer" + }, + "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": "The threshold to be used in dynamic retrieval. If not set, a system default value is used." + "format": "float" + }, + "seed": { + "format": "int32", + "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.", + "type": "integer" + }, + "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" + }, + "speechConfig": { + "description": "Optional. The speech generation config.", + "$ref": "#/components/schemas/SpeechConfig" + }, + "stopSequences": { + "items": { + "type": "string" + }, + "type": "array", + "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." + }, + "responseSchema": { + "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", + "deprecated": true + }, + "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.", + "format": "float", + "type": "number" + }, + "enableAffectiveDialog": { + "type": "boolean", + "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly." + }, + "responseLogprobs": { + "description": "Optional. If true, export the logprobs results in response.", + "type": "boolean" + }, + "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", + "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": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.", "type": "object" }, - "ImageConfig": { + "ListFileSearchStoresResponse": { "type": "object", - "description": "Config for image generation features.", + "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.", "properties": { - "imageSize": { + "nextPageToken": { "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": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages." }, - "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." + "fileSearchStores": { + "type": "array", + "description": "The returned rag_stores.", + "items": { + "$ref": "#/components/schemas/FileSearchStore" + } } } }, - "TextResponseFormat": { + "ChunkingConfig": { + "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto", "type": "object", - "description": "Configuration for text output format.", "properties": { - "schema": { - "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." - }, - "mimeType": { - "enum": [ - "MIME_TYPE_UNSPECIFIED", - "APPLICATION_JSON", - "TEXT_PLAIN" - ], - "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." - ], - "type": "string" + "whiteSpaceConfig": { + "$ref": "#/components/schemas/WhiteSpaceConfig", + "description": "White space chunking configuration." } } }, - "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" - }, - "baseModel": { - "readOnly": true, - "type": "string", - "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`" - } - }, - "description": "Tuned model as a source for training a new model.", - "type": "object" - }, - "TuningExamples": { - "description": "A set of tuning examples. Can be training or validation data.", + "AsyncBatchEmbedContentRequest": { + "description": "Request for an `AsyncBatchEmbedContent` operation.", "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": { - "$ref": "#/components/schemas/TuningExample" - }, - "type": "array" + "batch": { + "description": "Required. The batch to create.", + "$ref": "#/components/schemas/EmbedContentBatch" } } }, - "ListDocumentsResponse": { - "type": "object", - "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 more pages." - }, - "documents": { - "type": "array", - "description": "The returned `Document`s.", - "items": { - "$ref": "#/components/schemas/Document" - } - } - }, - "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`." - }, "GoogleAiGenerativelanguageV1betaSegment": { - "description": "Segment of the content.", + "type": "object", "properties": { - "partIndex": { - "type": "integer", - "format": "int32", - "description": "The index of a Part object within its parent Content object." - }, "startIndex": { - "format": "int32", "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.", + "format": "int32", "type": "integer" }, + "text": { + "description": "The text corresponding to the segment from the response.", + "type": "string" + }, "endIndex": { "format": "int32", "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.", "type": "integer" }, - "text": { - "type": "string", - "description": "The text corresponding to the segment from the response." + "partIndex": { + "format": "int32", + "type": "integer", + "description": "The index of a Part object within its parent Content object." } }, - "type": "object" + "description": "Segment of the content." }, - "ListPermissionsResponse": { - "description": "Response from `ListPermissions` containing a paginated list of permissions.", + "GoogleSearchRetrieval": { "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 more pages." - }, - "permissions": { - "description": "Returned permissions.", - "items": { - "$ref": "#/components/schemas/Permission" - }, - "type": "array" + "dynamicRetrievalConfig": { + "description": "Specifies the dynamic retrieval configuration for the given source.", + "$ref": "#/components/schemas/DynamicRetrievalConfig" } }, + "description": "Tool to retrieve public web data for grounding, powered by Google.", "type": "object" }, - "RealtimeInputConfig": { + "Model": { "properties": { - "automaticActivityDetection": { - "$ref": "#/components/schemas/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." - }, - "activityHandling": { + "version": { "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." - ], - "description": "Optional. Defines what effect activity has.", - "enum": [ - "ACTIVITY_HANDLING_UNSPECIFIED", - "START_OF_ACTIVITY_INTERRUPTS", - "NO_INTERRUPTION" - ] + "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)" }, - "turnCoverage": { - "type": "string", - "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." - ], - "enum": [ - "TURN_COVERAGE_UNSPECIFIED", - "TURN_INCLUDES_ONLY_ACTIVITY", - "TURN_INCLUDES_ALL_INPUT", - "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO" - ] + "maxTemperature": { + "description": "The maximum temperature this model can use.", + "type": "number", + "format": "float" + }, + "description": { + "type": "string", + "description": "A short description of the model." + }, + "thinking": { + "type": "boolean", + "description": "Whether the model supports thinking." + }, + "inputTokenLimit": { + "type": "integer", + "format": "int32", + "description": "Maximum number of input tokens allowed for this 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" + }, + "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" + }, + "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.", + "format": "float", + "type": "number" + }, + "supportedGenerationMethods": { + "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`.", + "items": { + "type": "string" + } + }, + "temperature": { + "format": "float", + "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" + }, + "displayName": { + "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." + }, + "outputTokenLimit": { + "type": "integer", + "format": "int32", + "description": "Maximum number of output tokens available for this model." } }, - "description": "Configures the realtime input behavior in `BidiGenerateContent`.", + "description": "Information about a Generative Language Model.", "type": "object" }, - "InlinedResponses": { - "type": "object", + "GroundingChunkCustomMetadata": { "properties": { - "inlinedResponses": { - "readOnly": true, - "description": "Output only. The responses to the requests in the batch.", - "items": { - "$ref": "#/components/schemas/InlinedResponse" - }, - "type": "array" + "stringValue": { + "type": "string", + "description": "Optional. The string value of the metadata." + }, + "stringListValue": { + "description": "Optional. A list of string values for the metadata.", + "$ref": "#/components/schemas/GroundingChunkStringList" + }, + "key": { + "type": "string", + "description": "The key of the metadata." + }, + "numericValue": { + "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.", + "type": "number", + "format": "float" } }, - "description": "The responses to the requests in the batch." + "type": "object", + "description": "User provided metadata about the GroundingFact." }, - "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.", + "EmbedContentBatchOutput": { + "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.", "properties": { - "longitude": { - "type": "number", - "format": "double", - "description": "The longitude in degrees. It must be in the range [-180.0, +180.0]." + "inlinedResponses": { + "$ref": "#/components/schemas/InlinedEmbedContentResponses", + "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 }, - "latitude": { - "format": "double", - "type": "number", - "description": "The latitude in degrees. It must be in the range [-90.0, +90.0]." + "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 `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.", + "readOnly": true, + "type": "string" } }, "type": "object" }, - "TunedModel": { - "description": "A fine-tuned model created using ModelService.CreateTunedModel.", + "FileSearchStore": { + "type": "object", + "description": "A `FileSearchStore` is a collection of `Document`s.", "properties": { - "tunedModelSource": { - "description": "Optional. TunedModel to use as the starting point for training the new model.", - "$ref": "#/components/schemas/TunedModelSource" + "sizeBytes": { + "readOnly": true, + "type": "string", + "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.", + "format": "int64" }, - "readerProjectNumbers": { - "type": "array", - "items": { - "format": "int64", - "type": "string" - }, - "description": "Optional. List of project numbers that have read access to the tuned model." + "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" }, - "topK": { - "type": "integer", - "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.", - "format": "int32" + "failedDocumentsCount": { + "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.", + "format": "int64", + "type": "string", + "readOnly": true }, - "name": { - "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`", + "pendingDocumentsCount": { "readOnly": true, + "format": "int64", + "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.", "type": "string" }, - "description": { - "description": "Optional. A short description of this model.", + "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" }, - "tuningTask": { - "description": "Required. The tuning task that creates the tuned model.", - "$ref": "#/components/schemas/TuningTask" - }, - "temperature": { - "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.", - "format": "float" - }, - "state": { - "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." - ], + "createTime": { + "description": "Output only. The Timestamp of when the `FileSearchStore` was created.", + "format": "google-datetime", "type": "string", - "description": "Output only. The state of the tuned model.", - "enum": [ - "STATE_UNSPECIFIED", - "CREATING", - "ACTIVE", - "FAILED" - ], "readOnly": true }, - "baseModel": { + "activeDocumentsCount": { "type": "string", - "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`" + "format": "int64", + "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.", + "readOnly": true }, "displayName": { - "type": "string", - "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces." - }, - "topP": { - "format": "float", - "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." + "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" }, "updateTime": { - "format": "google-datetime", - "description": "Output only. The timestamp when this model was updated.", - "type": "string", - "readOnly": true - }, - "createTime": { - "format": "google-datetime", "readOnly": true, + "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.", "type": "string", - "description": "Output only. The timestamp when this model was created." + "format": "google-datetime" } - }, - "type": "object" + } }, - "GroundingChunkStringList": { + "ListFilesResponse": { "type": "object", - "description": "A list of string values.", + "description": "Response for `ListFiles`.", "properties": { - "values": { + "files": { + "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/File" }, - "type": "array", - "description": "The string values of the list." + "description": "The list of `File`s." + }, + "nextPageToken": { + "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call.", + "type": "string" } } }, - "SessionResumptionConfig": { + "SpeakerVoiceConfig": { + "description": "The configuration for a single speaker in a multi speaker setup.", + "type": "object", "properties": { - "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" + "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" } - }, - "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" + } }, - "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", + "GroundingChunk": { "properties": { - "name": { - "description": "The name of the MCPServer.", - "type": "string" + "retrievedContext": { + "$ref": "#/components/schemas/RetrievedContext", + "description": "Optional. Grounding chunk from context retrieved by the file search tool." }, - "streamableHttpTransport": { - "description": "A transport that can stream HTTP requests and responses.", - "$ref": "#/components/schemas/StreamableHttpTransport" + "web": { + "description": "Grounding chunk from the web.", + "$ref": "#/components/schemas/Web" + }, + "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": "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.", "type": "object" }, - "CitationMetadata": { + "EmbedContentResponse": { + "description": "The response to an `EmbedContentRequest`.", "type": "object", - "description": "A collection of source attributions for a piece of content.", "properties": { - "citationSources": { - "type": "array", - "description": "Citations to sources for a specific response.", - "items": { - "$ref": "#/components/schemas/CitationSource" - } + "usageMetadata": { + "description": "Output only. The usage metadata for the request.", + "$ref": "#/components/schemas/EmbeddingUsageMetadata", + "readOnly": true + }, + "embedding": { + "description": "Output only. The embedding generated from the input content.", + "readOnly": true, + "$ref": "#/components/schemas/ContentEmbedding" } } }, - "GoogleSearchRetrieval": { - "type": "object", - "description": "Tool to retrieve public web data for grounding, powered by Google.", + "Blob": { "properties": { - "dynamicRetrievalConfig": { - "description": "Specifies the dynamic retrieval configuration for the given source.", - "$ref": "#/components/schemas/DynamicRetrievalConfig" - } - } - }, - "ToolConfig": { - "type": "object", - "properties": { - "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." - }, - "functionCallingConfig": { - "description": "Optional. Function calling config.", - "$ref": "#/components/schemas/FunctionCallingConfig" + "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" }, - "retrievalConfig": { - "$ref": "#/components/schemas/RetrievalConfig", - "description": "Optional. Retrieval config." + "data": { + "type": "string", + "description": "Raw bytes for media formats.", + "format": "byte" } }, - "description": "The Tool configuration containing parameters for specifying `Tool` use in the request." + "type": "object", + "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field." }, - "Part": { + "ModalityTokenCount": { "properties": { - "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" - }, - "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." - }, - "mediaResolution": { - "$ref": "#/components/schemas/V1mainMediaResolution", - "description": "Optional. Media resolution for the input media." - }, - "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" - }, - "executableCode": { - "$ref": "#/components/schemas/ExecutableCode", - "description": "Code generated by the model that is meant to be executed." - }, - "text": { - "type": "string", - "description": "Inline text." - }, - "partMetadata": { - "additionalProperties": { - "description": "Properties of the object." - }, - "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." - }, - "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." - }, - "fileData": { - "description": "URI based data.", - "$ref": "#/components/schemas/FileData" - }, - "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." - }, - "thoughtSignature": { - "format": "byte", - "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", - "type": "string" - }, - "inlineData": { - "description": "Inline media bytes.", - "$ref": "#/components/schemas/Blob" - }, - "codeExecutionResult": { - "description": "Result of executing the `ExecutableCode`.", - "$ref": "#/components/schemas/CodeExecutionResult" + "tokenCount": { + "type": "integer", + "format": "int32", + "description": "Number of tokens." }, - "mediaProcessing": { - "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.", + "modality": { "type": "string", "x-enum-descriptions": [ - "Default. Uses model-specific processing (3.5 Pro+ -> `AGENTIC`, older models -> `STATIC`).", - "Fixed-rate frame extraction. All frames placed in context.", - "Model-driven dynamic navigation. Recommended for most use cases." + "Unspecified modality.", + "Plain text.", + "Image.", + "Video.", + "Audio.", + "Document, e.g. PDF." ], + "description": "The modality associated with this token count.", "enum": [ - "MEDIA_PROCESSING_UNSPECIFIED", - "STATIC", - "AGENTIC" + "MODALITY_UNSPECIFIED", + "TEXT", + "IMAGE", + "VIDEO", + "AUDIO", + "DOCUMENT" ] - }, - "thought": { - "description": "Optional. Indicates if the part is thought from the model.", - "type": "boolean" } }, - "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.", - "type": "object" - }, - "BatchEmbedContentsResponse": { "type": "object", + "description": "Represents token counting info for a single modality." + }, + "TuningExamples": { "properties": { - "usageMetadata": { - "readOnly": true, - "$ref": "#/components/schemas/EmbeddingUsageMetadata", - "description": "Output only. The usage metadata for the request." - }, - "embeddings": { - "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.", - "readOnly": true, + "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": { - "$ref": "#/components/schemas/ContentEmbedding" + "$ref": "#/components/schemas/TuningExample" }, "type": "array" } }, - "description": "The response to a `BatchEmbedContentsRequest`." + "type": "object", + "description": "A set of tuning examples. Can be training or validation data." }, - "ToolCall": { + "SearchEntryPoint": { "type": "object", + "description": "Google search entry point.", "properties": { - "toolName": { - "type": "string", - "description": "Optional. The name of the tool that was called." + "sdkBlob": { + "description": "Optional. Base64 encoded JSON representing array of tuple.", + "format": "byte", + "type": "string" }, - "toolType": { - "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." - ], - "enum": [ - "TOOL_TYPE_UNSPECIFIED", - "GOOGLE_SEARCH_WEB", - "GOOGLE_SEARCH_IMAGE", - "URL_CONTEXT", - "GOOGLE_MAPS", - "FILE_SEARCH" - ], + "renderedContent": { + "description": "Optional. Web content snippet that can be embedded in a web page or an app webview.", + "type": "string" + } + } + }, + "ImportFileRequest": { + "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`.", + "properties": { + "fileName": { "type": "string", - "description": "Required. The type of tool that was called." + "description": "Required. The name of the `File` to import. Example: `files/abc-123`" }, - "args": { - "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}", - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - } + "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." }, - "id": { - "type": "string", - "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`." + "customMetadata": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomMetadata" + }, + "description": "Custom metadata to be associated with the file." } }, - "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" }, - "CodeExecutionResult": { - "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.", + "BatchEmbedContentsRequest": { "type": "object", + "description": "Batch request to get embeddings from the model for a list of prompts.", "properties": { - "output": { - "type": "string", - "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise." - }, - "outcome": { - "description": "Required. Outcome of the code execution.", - "type": "string", - "enum": [ - "OUTCOME_UNSPECIFIED", - "OUTCOME_OK", - "OUTCOME_FAILED", - "OUTCOME_DEADLINE_EXCEEDED" - ], - "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." - ] - }, - "id": { - "type": "string", - "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id." + "requests": { + "items": { + "$ref": "#/components/schemas/EmbedContentRequest" + }, + "type": "array", + "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`." } } }, - "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.", + "GenerateContentResponse": { "properties": { - "parts": { + "candidates": { + "description": "Candidate responses from the model.", "type": "array", - "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.", "items": { - "$ref": "#/components/schemas/Part" + "$ref": "#/components/schemas/Candidate" } }, - "role": { + "modelVersion": { + "readOnly": true, "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." - } - } - }, - "UrlMetadata": { - "properties": { - "retrievedUrl": { - "description": "Retrieved url by the tool.", - "type": "string" + "description": "Output only. The model version used to generate the response." }, - "urlRetrievalStatus": { - "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" - ], + "promptFeedback": { + "description": "Returns the prompt's feedback related to the content filters.", + "$ref": "#/components/schemas/PromptFeedback" + }, + "responseId": { + "description": "Output only. response_id is used to identify each response.", "type": "string", - "description": "Status of the url retrieval." + "readOnly": true + }, + "modelStatus": { + "description": "Output only. The current model status of this model.", + "readOnly": true, + "$ref": "#/components/schemas/ModelStatus" + }, + "usageMetadata": { + "readOnly": true, + "description": "Output only. Metadata on the generation requests' token usage.", + "$ref": "#/components/schemas/UsageMetadata" } }, - "type": "object", - "description": "Context of the a single url retrieval." - }, - "TransferOwnershipResponse": { - "properties": {}, - "type": "object", - "description": "Response from `TransferOwnership`." + "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`.", + "type": "object" }, - "ExecutableCode": { + "CustomLongRunningOperation": { "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.", "properties": { - "id": { - "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.", + "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" }, - "code": { - "description": "Required. The code to be executed.", - "type": "string" + "error": { + "description": "The error result of the operation in case of failure or cancellation.", + "$ref": "#/components/schemas/Status" }, - "language": { - "type": "string", - "enum": [ - "LANGUAGE_UNSPECIFIED", - "PYTHON" - ], - "x-enum-descriptions": [ - "Unspecified language. This value should not be used.", - "Python >= 3.10, with numpy and simpy available. Python is the default language." - ], - "description": "Required. Programming language of the `code`." + "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": { + "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." + } } } }, - "EmbedContentBatchStats": { + "ListCorporaResponse": { "type": "object", "properties": { - "requestCount": { - "type": "string", - "readOnly": true, - "format": "int64", - "description": "Output only. The number of requests in the batch." + "corpora": { + "type": "array", + "description": "The returned corpora.", + "items": { + "$ref": "#/components/schemas/Corpus" + } }, - "failedRequestCount": { - "description": "Output only. The number of requests that failed to be processed.", - "format": "int64", - "readOnly": true, + "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" - }, - "pendingRequestCount": { - "type": "string", - "readOnly": true, - "description": "Output only. The number of requests that are still pending processing.", - "format": "int64" - }, - "successfulRequestCount": { - "type": "string", - "readOnly": true, - "format": "int64", - "description": "Output only. The number of requests that were successfully processed." } }, - "description": "Stats about the batch." + "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`." }, - "FileData": { - "description": "URI based data.", + "Part": { "type": "object", "properties": { - "fileUri": { + "fileData": { + "$ref": "#/components/schemas/FileData", + "description": "URI based data." + }, + "mediaResolution": { + "description": "Optional. Media resolution for the input media.", + "$ref": "#/components/schemas/V1mainMediaResolution" + }, + "mediaProcessing": { + "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.", "type": "string", - "description": "Required. URI." + "x-enum-descriptions": [ + "Defaults to model-specific processing.", + "Fixed-rate frame extraction. All frames placed in context.", + "Model-driven dynamic navigation. Recommended for most use cases." + ], + "enum": [ + "MEDIA_PROCESSING_UNSPECIFIED", + "STATIC", + "AGENTIC" + ] }, - "mimeType": { - "description": "Optional. The IANA standard MIME type of the source data.", - "type": "string" - } - } - }, - "RegisterFilesRequest": { - "type": "object", - "properties": { - "uris": { - "items": { - "type": "string" - }, - "type": "array", - "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`." - } - }, - "description": "Request for `RegisterFiles`." - }, - "GenerateContentBatchOutput": { - "properties": { - "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" + "executableCode": { + "description": "Code generated by the model that is meant to be executed.", + "$ref": "#/components/schemas/ExecutableCode" }, - "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, - "$ref": "#/components/schemas/InlinedResponses" - } - }, - "type": "object", - "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field." - }, - "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": { - "transform": { - "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").", - "type": "object", - "additionalProperties": { - "type": "string" - } + "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." }, - "domain": { - "type": "string", - "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": "object" - }, - "GroundingChunkCustomMetadata": { - "properties": { - "stringListValue": { - "description": "Optional. A list of string values for the metadata.", - "$ref": "#/components/schemas/GroundingChunkStringList" + "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" }, - "key": { + "thoughtSignature": { "type": "string", - "description": "The key of the metadata." + "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.", + "format": "byte" }, - "stringValue": { - "description": "Optional. The string value of the metadata.", - "type": "string" + "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" }, - "numericValue": { - "type": "number", - "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.", - "format": "float" - } - }, - "type": "object", - "description": "User provided metadata about the GroundingFact." - }, - "Corpus": { - "properties": { - "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\"" + "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" }, - "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`", - "type": "string", - "readOnly": true + "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.", + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } }, - "updateTime": { - "readOnly": true, - "type": "string", - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `Corpus` was last updated." + "thought": { + "type": "boolean", + "description": "Optional. Indicates if the part is thought from the model." }, - "createTime": { - "description": "Output only. The Timestamp of when the `Corpus` was created.", + "codeExecutionResult": { + "$ref": "#/components/schemas/CodeExecutionResult", + "description": "Result of executing the `ExecutableCode`." + }, + "text": { "type": "string", - "readOnly": true, - "format": "google-datetime" + "description": "Inline text." + }, + "inlineData": { + "$ref": "#/components/schemas/Blob", + "description": "Inline media bytes." + }, + "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" } }, - "type": "object", - "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora." + "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." }, - "ListCachedContentsResponse": { + "InlinedEmbedContentResponses": { "type": "object", - "description": "Response with CachedContents list.", "properties": { - "cachedContents": { + "inlinedResponses": { "type": "array", - "description": "List of cached contents.", + "description": "Output only. The responses to the requests in the batch.", + "readOnly": true, "items": { - "$ref": "#/components/schemas/CachedContent" + "$ref": "#/components/schemas/InlinedEmbedContentResponse" } - }, - "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" - } - } - }, - "InlinedRequests": { - "description": "The requests to be processed in the batch if provided as part of the batch creation request.", - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InlinedRequest" - }, - "description": "Required. The requests to be processed in the batch." } - } + }, + "description": "The responses to the requests in the batch." }, - "InlinedRequest": { - "description": "The request to be processed in the batch.", - "type": "object", + "WhiteSpaceConfig": { + "description": "Configuration for a white space chunking algorithm [white space delimited].", "properties": { - "request": { - "description": "Required. The request to be processed in the batch.", - "$ref": "#/components/schemas/GenerateContentRequest" + "maxOverlapTokens": { + "description": "Maximum number of overlapping tokens between two adjacent chunks.", + "type": "integer", + "format": "int32" }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Optional. The metadata to be associated with the request.", - "type": "object" + "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.", + "format": "int32", + "type": "integer" } - } + }, + "type": "object" }, - "VideoMetadata": { + "Candidate": { + "type": "object", "properties": { - "fps": { + "avgLogprobs": { + "readOnly": true, "format": "double", "type": "number", - "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]." + "description": "Output only. Average log probability score of the candidate." }, - "endOffset": { - "description": "Optional. The end offset of the video.", - "format": "google-duration", - "type": "string" + "urlContextMetadata": { + "description": "Output only. Metadata related to url context retrieval tool.", + "$ref": "#/components/schemas/UrlContextMetadata", + "readOnly": true }, - "startOffset": { - "type": "string", - "description": "Optional. The start offset of the video.", - "format": "google-duration" - } - }, - "type": "object", - "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.", - "deprecated": true - }, - "InlinedResponse": { - "type": "object", - "description": "The response to a single request in the batch.", - "properties": { - "response": { + "tokenCount": { + "format": "int32", "readOnly": true, - "description": "Output only. The response to the request.", - "$ref": "#/components/schemas/GenerateContentResponse" - }, - "metadata": { - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Output only. The metadata associated with the request.", - "type": "object", - "readOnly": true + "description": "Output only. Token count for this candidate.", + "type": "integer" }, - "error": { - "readOnly": true, - "$ref": "#/components/schemas/Status", - "description": "Output only. The error encountered while processing the request." - } - } - }, - "SafetyRating": { - "properties": { - "category": { + "finishReason": { "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 + "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." ], + "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", "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" + "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", - "description": "Required. The category for this rating." + "readOnly": true }, - "blocked": { - "type": "boolean", - "description": "Was this content blocked because of this rating?" + "groundingMetadata": { + "$ref": "#/components/schemas/GroundingMetadata", + "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls.", + "readOnly": true }, - "probability": { - "type": "string", - "description": "Required. The probability of harm for this content.", - "enum": [ - "HARM_PROBABILITY_UNSPECIFIED", - "NEGLIGIBLE", - "LOW", - "MEDIUM", - "HIGH" - ], - "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." - ] - } - }, - "type": "object", - "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." - }, - "ResponseFormatConfig": { - "properties": { - "image": { - "$ref": "#/components/schemas/ImageResponseFormat", - "description": "Optional. Image output format configuration." + "groundingAttributions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GroundingAttribution" + }, + "readOnly": true, + "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls." }, - "text": { - "$ref": "#/components/schemas/TextResponseFormat", - "description": "Optional. Text output format configuration." + "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" }, - "audio": { - "description": "Optional. Audio output format configuration.", - "$ref": "#/components/schemas/AudioResponseFormat" + "index": { + "format": "int32", + "type": "integer", + "readOnly": true, + "description": "Output only. Index of the candidate in the list of response candidates." + }, + "content": { + "description": "Output only. Generated content returned from the model.", + "$ref": "#/components/schemas/Content", + "readOnly": true + }, + "safetyRatings": { + "items": { + "$ref": "#/components/schemas/SafetyRating" + }, + "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.", + "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 + }, + "logprobsResult": { + "readOnly": true, + "description": "Output only. Log-likelihood scores for the response tokens and top tokens", + "$ref": "#/components/schemas/LogprobsResult" } }, - "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.", - "type": "object" + "description": "A response candidate generated from the model." }, "Document": { "type": "object", "description": "A `Document` is a collection of `Chunk`s.", "properties": { - "customMetadata": { - "items": { - "$ref": "#/components/schemas/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`." - }, - "displayName": { - "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\"" - }, - "createTime": { - "format": "google-datetime", - "description": "Output only. The Timestamp of when the `Document` was created.", - "type": "string", - "readOnly": true - }, "mimeType": { "description": "Output only. The mime type of the Document.", "type": "string", @@ -4056,25 +3922,42 @@ "updateTime": { "description": "Output only. The Timestamp of when the `Document` was last updated.", "type": "string", - "format": "google-datetime", - "readOnly": true + "readOnly": true, + "format": "google-datetime" + }, + "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" + }, + "customMetadata": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomMetadata" + }, + "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`." }, "state": { - "readOnly": true, - "type": "string", - "description": "Output only. Current state of the `Document`.", + "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." + ], "enum": [ "STATE_UNSPECIFIED", "STATE_PENDING", "STATE_ACTIVE", "STATE_FAILED" ], - "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, + "description": "Output only. Current state of the `Document`.", + "type": "string" + }, + "createTime": { + "type": "string", + "readOnly": true, + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `Document` was created." }, "sizeBytes": { "format": "int64", @@ -4083,2867 +3966,3120 @@ "type": "string" }, "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`" + "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" } } }, - "GoogleSearch": { + "EmbedContentBatchStats": { + "type": "object", + "description": "Stats about the batch.", "properties": { - "searchTypes": { - "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.", - "$ref": "#/components/schemas/SearchTypes" - }, - "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" - } - }, - "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", - "type": "object" - }, - "CodeExecution": { - "type": "object", - "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." - }, - "RetrievalMetadata": { - "description": "Metadata related to retrieval in the grounding flow.", - "type": "object", - "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" - } - } - }, - "CitationSource": { - "properties": { - "uri": { - "type": "string", - "description": "Optional. URI that is attributed as a source for a portion of the text." - }, - "endIndex": { - "format": "int32", - "type": "integer", - "description": "Optional. End of the attributed segment, exclusive." + "failedRequestCount": { + "description": "Output only. The number of requests that failed to be processed.", + "format": "int64", + "readOnly": true, + "type": "string" }, - "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.", - "format": "int32", - "type": "integer" + "successfulRequestCount": { + "description": "Output only. The number of requests that were successfully processed.", + "readOnly": true, + "type": "string", + "format": "int64" }, - "license": { - "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.", + "requestCount": { + "readOnly": true, + "format": "int64", + "description": "Output only. The number of requests in the batch.", "type": "string" + }, + "pendingRequestCount": { + "type": "string", + "format": "int64", + "readOnly": true, + "description": "Output only. The number of requests that are still pending processing." } - }, - "type": "object", - "description": "A citation to a source for a portion of a specific response." + } }, - "Status": { + "PrebuiltVoiceConfig": { + "description": "The configuration for the prebuilt speaker to use.", "type": "object", "properties": { - "details": { - "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - } - } - }, - "message": { + "voiceName": { "type": "string", - "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." - }, - "code": { - "description": "The status code, which should be an enum value of google.rpc.Code.", - "format": "int32", - "type": "integer" + "description": "Optional. The name of the preset voice to use." } - }, - "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)." + } }, - "SpeechConfig": { + "Content": { + "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.", "type": "object", - "description": "Config for speech generation and transcription.", "properties": { - "languageCode": { - "type": "string", - "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`." - }, - "voiceConfig": { - "$ref": "#/components/schemas/VoiceConfig", - "description": "The configuration in case of single-voice output." + "parts": { + "type": "array", + "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.", + "items": { + "$ref": "#/components/schemas/Part" + } }, - "multiSpeakerVoiceConfig": { - "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field.", - "$ref": "#/components/schemas/MultiSpeakerVoiceConfig" + "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" } } }, - "AudioResponseFormat": { - "description": "Configuration for audio output format.", + "UrlMetadata": { "type": "object", + "description": "Context of the a single url retrieval.", "properties": { - "mimeType": { - "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": "string", - "description": "Optional. The MIME type of the audio output.", - "enum": [ - "MIME_TYPE_UNSPECIFIED", - "AUDIO_MP3", - "AUDIO_OGG_OPUS", - "AUDIO_L16", - "AUDIO_WAV", - "AUDIO_ALAW", - "AUDIO_MULAW" - ] + "retrievedUrl": { + "description": "Retrieved url by the tool.", + "type": "string" }, - "delivery": { + "urlRetrievalStatus": { "type": "string", - "description": "Optional. The delivery mode for the audio output.", + "description": "Status of the url retrieval.", "x-enum-descriptions": [ "Default value. This value is unused.", - "Audio data is returned inline in the response.", - "Audio data is returned as a URI." + "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": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" + "URL_RETRIEVAL_STATUS_UNSPECIFIED", + "URL_RETRIEVAL_STATUS_SUCCESS", + "URL_RETRIEVAL_STATUS_ERROR", + "URL_RETRIEVAL_STATUS_PAYWALL", + "URL_RETRIEVAL_STATUS_UNSAFE" ] - }, - "bitRate": { - "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).", - "format": "int32", - "type": "integer" - }, - "sampleRate": { - "format": "int32", - "description": "Optional. Sample rate in Hz.", - "type": "integer" } } }, - "ImageSearch": { - "type": "object", - "properties": {}, - "description": "Image search for grounding and related configurations." - }, - "GroundingChunk": { + "CountTokensResponse": { "type": "object", + "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.", "properties": { - "web": { - "description": "Grounding chunk from the web.", - "$ref": "#/components/schemas/Web" - }, - "retrievedContext": { - "$ref": "#/components/schemas/RetrievedContext", - "description": "Optional. Grounding chunk from context retrieved by the file search tool." - }, - "maps": { - "$ref": "#/components/schemas/Maps", - "description": "Optional. Grounding chunk from Google Maps." + "totalTokens": { + "type": "integer", + "format": "int32", + "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative." }, - "image": { - "$ref": "#/components/schemas/Image", - "description": "Optional. Grounding chunk from image search." - } - }, - "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." - }, - "ListGeneratedFilesResponse": { - "type": "object", - "properties": { - "nextPageToken": { - "type": "string", - "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call." + "cachedContentTokenCount": { + "format": "int32", + "type": "integer", + "description": "Number of tokens in the cached part of the prompt (the cached content)." }, - "generatedFiles": { + "cacheTokensDetails": { + "description": "Output only. List of modalities that were processed in the cached content.", + "readOnly": true, "type": "array", "items": { - "$ref": "#/components/schemas/GeneratedFile" + "$ref": "#/components/schemas/ModalityTokenCount" + } + }, + "promptTokensDetails": { + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" }, - "description": "The list of `GeneratedFile`s." + "description": "Output only. List of modalities that were processed in the request input.", + "type": "array", + "readOnly": true } - }, - "description": "Response for `ListGeneratedFiles`." + } }, - "RetrievalConfig": { + "McpServer": { "properties": { - "languageCode": { + "name": { "type": "string", - "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)." + "description": "The name of the MCPServer." }, - "latLng": { - "$ref": "#/components/schemas/LatLng", - "description": "Optional. The location of the user." + "streamableHttpTransport": { + "description": "A transport that can stream HTTP requests and responses.", + "$ref": "#/components/schemas/StreamableHttpTransport" } }, "type": "object", - "description": "Retrieval config." + "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" }, - "StringList": { - "description": "User provided string values assigned to a single metadata key.", + "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.", + "type": "object", "properties": { - "values": { + "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`." + }, + "parts": { + "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/FunctionResponsePart" }, - "description": "The string values of the metadata to store.", - "type": "array" - } - }, - "type": "object" - }, - "EmbedContentBatch": { - "type": "object", - "description": "A resource representing a batch of `EmbedContent` requests.", - "properties": { - "state": { - "readOnly": true, + "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types." + }, + "name": { "type": "string", - "enum": [ - "BATCH_STATE_UNSPECIFIED", - "BATCH_STATE_PENDING", - "BATCH_STATE_RUNNING", - "BATCH_STATE_SUCCEEDED", - "BATCH_STATE_FAILED", - "BATCH_STATE_CANCELLED", - "BATCH_STATE_EXPIRED" - ], - "description": "Output only. The state of the batch.", - "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": "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." }, - "inputConfig": { - "description": "Required. Input configuration of the instances on which batch processing are performed.", - "$ref": "#/components/schemas/InputEmbedContentConfig" + "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" }, - "endTime": { - "description": "Output only. The time at which the batch processing completed.", - "type": "string", - "readOnly": true, - "format": "google-datetime" + "response": { + "additionalProperties": { + "description": "Properties of the object." + }, + "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." }, - "model": { + "scheduling": { + "enum": [ + "SCHEDULING_UNSPECIFIED", + "SILENT", + "WHEN_IDLE", + "INTERRUPT" + ], + "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." + ], "type": "string", - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." - }, - "batchStats": { - "$ref": "#/components/schemas/EmbedContentBatchStats", - "description": "Output only. Stats about the batch.", - "readOnly": true - }, - "priority": { + "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." + } + } + }, + "CustomMetadata": { + "properties": { + "stringValue": { "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." - }, - "output": { - "$ref": "#/components/schemas/EmbedContentBatchOutput", - "description": "Output only. The output of the batch request.", - "readOnly": true + "description": "The string value of the metadata to store." }, - "displayName": { - "type": "string", - "description": "Required. The user-defined name of this batch." + "stringListValue": { + "description": "The StringList value of the metadata to store.", + "$ref": "#/components/schemas/StringList" }, - "updateTime": { - "description": "Output only. The time at which the batch was last updated.", - "readOnly": true, - "format": "google-datetime", - "type": "string" + "numericValue": { + "format": "float", + "description": "The numeric value of the metadata to store.", + "type": "number" }, - "name": { - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", - "readOnly": true, + "key": { + "description": "Required. The key of the metadata to store.", "type": "string" - }, - "createTime": { - "type": "string", - "format": "google-datetime", - "readOnly": true, - "description": "Output only. The time at which the batch was created." } - } + }, + "type": "object", + "description": "User provided metadata stored as key-value pairs." }, - "UsageMetadata": { + "GoogleAiGenerativelanguageV1betaGroundingSupport": { "properties": { - "cacheTokensDetails": { - "description": "Output only. List of modalities of the cached content in the request input.", + "confidenceScores": { "type": "array", - "readOnly": true, "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } + "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." }, - "promptTokensDetails": { - "readOnly": true, - "description": "Output only. List of modalities that were processed in the request input.", + "renderedParts": { "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "type": "integer", + "format": "int32" }, - "type": "array" - }, - "totalTokenCount": { - "type": "integer", - "description": "Total token count for the generation request (prompt + thoughts + response candidates).", - "format": "int32" - }, - "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.", - "format": "int32", - "type": "integer" + "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." }, - "candidatesTokensDetails": { + "groundingChunkIndices": { + "items": { + "type": "integer", + "format": "int32" + }, "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)." + }, + "segment": { + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment", + "description": "Segment of the content this support belongs to." + } + }, + "type": "object", + "description": "Grounding support." + }, + "Environment": { + "properties": { + "sources": { + "description": "Sources to be mounted into the environment.", "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "$ref": "#/components/schemas/Source" }, - "readOnly": true, - "description": "Output only. List of modalities that were returned in the response." + "type": "array" }, - "serviceTier": { + "status": { + "type": "string", + "readOnly": true, + "description": "Output only. The status of the environment container.", "x-enum-descriptions": [ - "Default service tier, which is standard.", - "Standard service tier.", - "Flex service tier.", - "Priority service tier." + "", + "", + "" ], "enum": [ - "unspecified", - "standard", - "flex", - "priority" - ], - "readOnly": true, - "type": "string", - "description": "Output only. Service tier of the request." - }, - "candidatesTokenCount": { - "format": "int32", - "type": "integer", - "description": "Total number of tokens across all the generated response candidates." + "STATUS_UNSPECIFIED", + "ACTIVE", + "EXPIRED" + ] }, - "toolUsePromptTokensDetails": { - "description": "Output only. List of modalities that were processed for tool-use request inputs.", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - }, + "id": { + "type": "string", "readOnly": true, - "type": "array" - }, - "cachedContentTokenCount": { - "type": "integer", - "format": "int32", - "description": "Number of tokens in the cached part of the prompt (the cached content)" + "description": "Required. Output only. The ID of the environment." }, - "thoughtsTokenCount": { - "format": "int32", - "description": "Output only. Number of tokens of thoughts for thinking models.", + "lastAccessed": { "readOnly": true, - "type": "integer" + "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", + "type": "string" }, - "toolUsePromptTokenCount": { - "description": "Output only. Number of tokens present in tool-use prompt(s).", - "type": "integer", - "readOnly": true, - "format": "int32" + "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 }, - "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", + "networkMode": { + "enum": [ + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" + ], + "description": "Network egress mode.", + "x-enum-descriptions": [ + "Default value. Unused.", + "All network egress is blocked." + ], + "type": "string" + }, + "sizeBytes": { + "type": "string", + "format": "int64", + "description": "Output only. The total size of the environment files in bytes, output only.", "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.", - "type": "array", + "networkAllowlist": { + "description": "Allow only specific domains.", + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + }, + "created": { "readOnly": true, - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } - } - }, - "description": "Metadata on the generation request's token usage.", - "type": "object" - }, - "SearchTypes": { - "properties": { - "webSearch": { - "description": "Optional. Enables web search. Only text results are returned.", - "$ref": "#/components/schemas/WebSearch" + "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", + "type": "string" }, - "imageSearch": { - "description": "Optional. Enables image search. Image bytes are returned.", - "$ref": "#/components/schemas/ImageSearch" - } - }, - "type": "object", - "description": "Different types of search that can be enabled on the GoogleSearch tool." - }, - "VoiceConfig": { - "description": "The configuration for the voice to use.", - "properties": { - "prebuiltVoiceConfig": { - "description": "The configuration for the prebuilt voice to use.", - "$ref": "#/components/schemas/PrebuiltVoiceConfig" + "fileCount": { + "type": "string", + "description": "Output only. The number of files in the environment, output only.", + "readOnly": true, + "format": "int64" } }, + "description": "An execution environment for an agent.", "type": "object" }, - "Web": { + "RealtimeInputConfig": { + "description": "Configures the realtime input behavior in `BidiGenerateContent`.", "type": "object", - "description": "Chunk from the web.", "properties": { - "uri": { - "type": "string", - "description": "Output only. URI reference of the chunk.", - "readOnly": true + "automaticActivityDetection": { + "$ref": "#/components/schemas/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." }, - "title": { + "turnCoverage": { + "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." + ], "type": "string", - "readOnly": true, - "description": "Output only. Title of the chunk." + "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." + }, + "activityHandling": { + "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." + ], + "enum": [ + "ACTIVITY_HANDLING_UNSPECIFIED", + "START_OF_ACTIVITY_INTERRUPTS", + "NO_INTERRUPTION" + ], + "description": "Optional. Defines what effect activity has.", + "type": "string" } } }, - "LanguageHints": { - "type": "object", + "TextResponseFormat": { + "description": "Configuration for text output format.", "properties": { - "languageCodes": { - "items": { - "type": "string" - }, - "deprecated": true, - "type": "array", - "description": "Required. BCP-47 language codes." + "schema": { + "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON." + }, + "mimeType": { + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "APPLICATION_JSON", + "TEXT_PLAIN" + ], + "description": "Optional. The MIME type of the text output.", + "type": "string", + "x-enum-descriptions": [ + "Default value. This value is unused.", + "JSON output format.", + "Plain text output format." + ] } }, - "description": "Provides hints to the model about possible languages present in the audio.", - "deprecated": true + "type": "object" }, - "GoogleAiGenerativelanguageV1betaGroundingSupport": { + "GetEnvironmentFilesResponse": { + "description": "Response for `GetEnvironmentFiles`.", "properties": { - "groundingChunkIndices": { + "files": { + "description": "If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`).", "items": { - "format": "int32", - "type": "integer" + "$ref": "#/components/schemas/EnvironmentFile" }, - "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" }, - "segment": { - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaSegment", - "description": "Segment of the content this support belongs to." - }, - "confidenceScores": { - "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", - "items": { - "format": "float", - "type": "number" - } - }, - "renderedParts": { - "items": { - "type": "integer", - "format": "int32" - }, - "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." + "next_page_token": { + "type": "string", + "description": "Pagination token for directory listing. NOLINT" } }, - "description": "Grounding support.", "type": "object" }, - "CreateFileResponse": { - "description": "Response for `CreateFile`.", + "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": { - "file": { - "description": "Metadata for the created file.", - "$ref": "#/components/schemas/File" + "longitude": { + "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].", + "type": "number", + "format": "double" + }, + "latitude": { + "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].", + "type": "number", + "format": "double" } } }, - "GenerateContentRequest": { - "description": "Request to generate a completion from the model.", + "Maps": { + "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place.", + "type": "object", "properties": { - "model": { - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.", - "type": "string" + "uri": { + "type": "string", + "description": "URI reference of the place." }, - "tools": { - "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`. 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.", - "type": "array" + "title": { + "type": "string", + "description": "Title of the place." }, - "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" + "placeAnswerSources": { + "$ref": "#/components/schemas/PlaceAnswerSources", + "description": "Sources that provide answers about the features of a given place in Google Maps." }, - "store": { - "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.", - "type": "boolean" + "text": { + "description": "Text description of the place answer.", + "type": "string" }, - "serviceTier": { - "description": "Optional. The service tier of the request.", + "placeId": { "type": "string", + "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place." + } + } + }, + "LanguageAuto": { + "description": "Indicates the language of the audio should be automatically detected.", + "properties": {}, + "type": "object", + "deprecated": true + }, + "AudioTranscriptionConfig": { + "type": "object", + "properties": { + "languageHints": { + "$ref": "#/components/schemas/LanguageHints", + "deprecated": true, + "description": "Optional. Specifies one or more languages in the audio." + }, + "mode": { + "x-enum-descriptions": [ + "Unspecified transcription mode.", + "Verbatim transcription mode.", + "Smart transcription mode." + ], "enum": [ - "unspecified", - "standard", - "flex", - "priority" + "MODE_UNSPECIFIED", + "VERBATIM", + "SMART" ], - "x-enum-descriptions": [ - "Default service tier, which is standard.", - "Standard service tier.", - "Flex service tier.", - "Priority service tier." - ] + "type": "string", + "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`." }, - "generationConfig": { - "$ref": "#/components/schemas/GenerationConfig", - "description": "Optional. Configuration options for model generation and outputs." + "languageAuto": { + "description": "Optional. The model will detect the language automatically.", + "$ref": "#/components/schemas/LanguageAuto", + "deprecated": true }, - "contents": { + "wordTimestamp": { + "description": "Optional. Configures word-level timestamp generation.", + "type": "boolean" + }, + "diarization": { + "description": "Optional. Configures speaker diarization.", + "type": "boolean" + }, + "adaptationPhrases": { + "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": { - "$ref": "#/components/schemas/Content" + "type": "string" }, - "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." + "deprecated": true }, - "systemInstruction": { - "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only.", - "$ref": "#/components/schemas/Content" + "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.", + "type": "array", + "items": { + "type": "string" + } }, - "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.", + "customVocabulary": { + "type": "array", "items": { - "$ref": "#/components/schemas/SafetySetting" + "type": "string" }, - "type": "array" - }, - "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" + "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon)." } }, - "type": "object" + "description": "The audio transcription configuration." }, - "ReviewSnippet": { - "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.", + "PromptFeedback": { + "type": "object", "properties": { - "reviewId": { - "description": "The ID of the review snippet.", - "type": "string" - }, - "title": { - "description": "Title of the review.", - "type": "string" + "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.", + "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." + ] }, - "googleMapsUri": { - "description": "A link that corresponds to the user review on Google Maps.", - "type": "string" + "safetyRatings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SafetyRating" + }, + "description": "Ratings for safety of the prompt. There is at most one rating per category." } }, - "type": "object" + "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`." }, - "InputConfig": { + "AttributionSourceId": { "type": "object", - "description": "Configures the input to the batch request.", + "description": "Identifier for the source contributing to this attribution.", "properties": { - "fileName": { - "type": "string", - "description": "The name of the `File` containing the input requests." + "semanticRetrieverChunk": { + "description": "Identifier for a `Chunk` fetched via Semantic Retriever.", + "$ref": "#/components/schemas/SemanticRetrieverChunk" }, - "requests": { - "$ref": "#/components/schemas/InlinedRequests", - "description": "The requests to be processed in the batch." + "groundingPassage": { + "description": "Identifier for an inline passage.", + "$ref": "#/components/schemas/GroundingPassageId" } } }, - "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.", + "GroundingMetadata": { "properties": { - "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" - }, - "realtimeInputConfig": { - "description": "Optional. Configures the handling of realtime input.", - "$ref": "#/components/schemas/RealtimeInputConfig" + "searchEntryPoint": { + "description": "Optional. Google search entry for the following-up web searches.", + "$ref": "#/components/schemas/SearchEntryPoint" }, - "model": { - "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`", - "type": "string" + "groundingSupports": { + "type": "array", + "description": "List of grounding support.", + "items": { + "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" + } }, - "tools": { + "imageSearchQueries": { + "type": "array", "items": { - "$ref": "#/components/schemas/Tool" + "type": "string" }, - "type": "array", - "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." - }, - "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" + "description": "Image search queries used for grounding." }, - "sessionResumption": { - "$ref": "#/components/schemas/SessionResumptionConfig", - "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages." + "groundingChunks": { + "items": { + "$ref": "#/components/schemas/GroundingChunk" + }, + "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." }, - "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" + "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" }, - "outputAudioTranscription": { - "$ref": "#/components/schemas/AudioTranscriptionConfig", - "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." + "retrievalMetadata": { + "description": "Metadata related to retrieval in the grounding flow.", + "$ref": "#/components/schemas/RetrievalMetadata" }, - "inputAudioTranscription": { - "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured.", - "$ref": "#/components/schemas/AudioTranscriptionConfig" + "webSearchQueries": { + "type": "array", + "description": "Web search queries for the following-up web search.", + "items": { + "type": "string" + } + } + }, + "description": "Metadata returned to client when grounding is enabled.", + "type": "object" + }, + "RetrievalConfig": { + "description": "Retrieval config.", + "properties": { + "latLng": { + "description": "Optional. The location of the user.", + "$ref": "#/components/schemas/LatLng" }, - "historyConfig": { - "description": "Optional. Configures the exchange of history between the client and the server.", - "$ref": "#/components/schemas/HistoryConfig" + "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" } }, "type": "object" }, - "AttributionSourceId": { + "GroundingAttribution": { "properties": { - "semanticRetrieverChunk": { - "description": "Identifier for a `Chunk` fetched via Semantic Retriever.", - "$ref": "#/components/schemas/SemanticRetrieverChunk" + "content": { + "$ref": "#/components/schemas/Content", + "description": "Grounding source content that makes up this attribution." }, - "groundingPassage": { - "description": "Identifier for an inline passage.", - "$ref": "#/components/schemas/GroundingPassageId" + "sourceId": { + "description": "Output only. Identifier for the source contributing to this attribution.", + "$ref": "#/components/schemas/AttributionSourceId", + "readOnly": true } }, "type": "object", - "description": "Identifier for the source contributing to this attribution." + "description": "Attribution for a source that contributed to an answer." }, - "TuningSnapshot": { + "SearchTypes": { + "description": "Different types of search that can be enabled on the GoogleSearch tool.", "properties": { - "epoch": { - "format": "int32", - "type": "integer", - "readOnly": true, - "description": "Output only. The epoch this step was part of." + "webSearch": { + "$ref": "#/components/schemas/WebSearch", + "description": "Optional. Enables web search. Only text results are returned." }, - "meanLoss": { - "format": "float", + "imageSearch": { + "description": "Optional. Enables image search. Image bytes are returned.", + "$ref": "#/components/schemas/ImageSearch" + } + }, + "type": "object" + }, + "CachedContent": { + "properties": { + "usageMetadata": { + "$ref": "#/components/schemas/CachedContentUsageMetadata", "readOnly": true, - "type": "number", - "description": "Output only. The mean loss of the training examples for this step." + "description": "Output only. Metadata on the usage of the cached content." }, - "step": { + "toolConfig": { + "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools.", + "$ref": "#/components/schemas/ToolConfig" + }, + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Tool" + }, + "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response" + }, + "contents": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Content" + }, + "description": "Optional. Input only. Immutable. The content to cache." + }, + "ttl": { + "format": "google-duration", + "type": "string", + "description": "Input only. New TTL for this resource, input only." + }, + "createTime": { + "type": "string", + "description": "Output only. Creation time of the cache entry.", "readOnly": true, - "format": "int32", - "description": "Output only. The tuning step.", - "type": "integer" + "format": "google-datetime" }, - "computeTime": { + "name": { "readOnly": true, + "type": "string", + "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`" + }, + "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." + }, + "updateTime": { + "type": "string", "format": "google-datetime", + "readOnly": true, + "description": "Output only. When the cache entry was last updated in UTC time." + }, + "displayName": { "type": "string", - "description": "Output only. The timestamp when this metric was computed." + "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters." + }, + "systemInstruction": { + "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.", + "$ref": "#/components/schemas/Content" + }, + "model": { + "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`", + "type": "string" } }, - "description": "Record for a single tuning step.", + "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" }, - "FileSearch": { - "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.", - "type": "object", + "StreamableHttpTransport": { + "description": "A transport that can stream HTTP requests and responses. Next ID: 6", "properties": { - "metadataFilter": { + "url": { + "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"", + "type": "string" + }, + "timeout": { + "description": "HTTP timeout for regular operations.", + "format": "google-duration", + "type": "string" + }, + "sseReadTimeout": { "type": "string", - "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks." + "format": "google-duration", + "description": "Timeout for SSE read operations." }, - "fileSearchStoreNames": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`" + "terminateOnClose": { + "type": "boolean", + "description": "Whether to close the client session when the transport closes." }, - "topK": { - "format": "int32", - "description": "Optional. The number of semantic retrieval chunks to retrieve.", - "type": "integer" - } - } - }, - "MultiSpeakerVoiceConfig": { - "properties": { - "speakerVoiceConfigs": { - "items": { - "$ref": "#/components/schemas/SpeakerVoiceConfig" - }, - "type": "array", - "description": "Required. All the enabled speaker voices." + "headers": { + "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", + "type": "object", + "additionalProperties": { + "type": "string" + } } }, - "type": "object", - "description": "The configuration for the multi-speaker setup." + "type": "object" }, - "PrebuiltVoiceConfig": { + "HistoryConfig": { + "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.", "type": "object", - "description": "The configuration for the prebuilt speaker to use.", "properties": { - "voiceName": { - "type": "string", - "description": "Optional. The name of the preset voice to use." + "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" } } }, - "AsyncBatchEmbedContentRequest": { - "description": "Request for an `AsyncBatchEmbedContent` operation.", + "BatchEmbedContentsResponse": { + "description": "The response to a `BatchEmbedContentsRequest`.", "type": "object", "properties": { - "batch": { - "description": "Required. The batch to create.", - "$ref": "#/components/schemas/EmbedContentBatch" + "usageMetadata": { + "description": "Output only. The usage metadata for the request.", + "$ref": "#/components/schemas/EmbeddingUsageMetadata", + "readOnly": true + }, + "embeddings": { + "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.", + "readOnly": true, + "items": { + "$ref": "#/components/schemas/ContentEmbedding" + }, + "type": "array" } } }, - "HistoryConfig": { + "RegisterFilesRequest": { "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`." + "uris": { + "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.", + "type": "array", + "items": { + "type": "string" + } } - } + }, + "description": "Request for `RegisterFiles`." }, - "SpeakerVoiceConfig": { + "CodeExecutionResult": { "properties": { - "speaker": { - "description": "Required. The name of the speaker to use. Should be the same as in the prompt.", - "type": "string" + "output": { + "type": "string", + "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise." }, - "voiceConfig": { - "$ref": "#/components/schemas/VoiceConfig", - "description": "Required. The configuration for the voice to use." + "outcome": { + "type": "string", + "enum": [ + "OUTCOME_UNSPECIFIED", + "OUTCOME_OK", + "OUTCOME_FAILED", + "OUTCOME_DEADLINE_EXCEEDED" + ], + "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." + ] + }, + "id": { + "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.", + "type": "string" } }, - "description": "The configuration for a single speaker in a multi speaker setup.", - "type": "object" + "type": "object", + "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used." }, - "BatchGenerateContentRequest": { + "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.", "properties": { - "batch": { - "description": "Required. The batch to create.", - "$ref": "#/components/schemas/GenerateContentBatch" + "category": { + "type": "string", + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ], + "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)." + ], + "description": "Required. The category for this rating." + }, + "probability": { + "enum": [ + "HARM_PROBABILITY_UNSPECIFIED", + "NEGLIGIBLE", + "LOW", + "MEDIUM", + "HIGH" + ], + "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." + ], + "type": "string", + "description": "Required. The probability of harm for this content." + }, + "blocked": { + "description": "Was this content blocked because of this rating?", + "type": "boolean" } }, - "type": "object", - "description": "Request for a `BatchGenerateContent` operation." + "type": "object" }, - "CustomMetadata": { + "TunedModel": { + "description": "A fine-tuned model created using ModelService.CreateTunedModel.", "properties": { - "key": { - "description": "Required. The key of the metadata to store.", + "displayName": { + "type": "string", + "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces." + }, + "tunedModelSource": { + "description": "Optional. TunedModel to use as the starting point for training the new model.", + "$ref": "#/components/schemas/TunedModelSource" + }, + "state": { + "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": [ + "STATE_UNSPECIFIED", + "CREATING", + "ACTIVE", + "FAILED" + ], + "description": "Output only. The state of the tuned model.", + "readOnly": true, "type": "string" }, - "stringListValue": { - "description": "The StringList value of the metadata to store.", - "$ref": "#/components/schemas/StringList" + "baseModel": { + "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`", + "type": "string" }, - "stringValue": { - "description": "The string value of the metadata to store.", + "updateTime": { + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The timestamp when this model was updated.", "type": "string" }, - "numericValue": { + "tuningTask": { + "$ref": "#/components/schemas/TuningTask", + "description": "Required. The tuning task that creates the tuned model." + }, + "readerProjectNumbers": { + "items": { + "type": "string", + "format": "int64" + }, + "description": "Optional. List of project numbers that have read access to the tuned model.", + "type": "array" + }, + "temperature": { + "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.", "format": "float", - "description": "The numeric value of the metadata to store.", "type": "number" + }, + "createTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The timestamp when this model was created." + }, + "description": { + "description": "Optional. A short description of this model.", + "type": "string" + }, + "name": { + "type": "string", + "readOnly": 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`" + }, + "topP": { + "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.", + "type": "number", + "format": "float" + }, + "topK": { + "type": "integer", + "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." } }, - "description": "User provided metadata stored as key-value pairs.", "type": "object" }, - "LogprobsResultCandidate": { + "FunctionResponseBlob": { + "type": "object", "properties": { - "logProbability": { - "description": "The candidate's log probability.", - "format": "float", - "type": "number" - }, - "token": { + "mimeType": { "type": "string", - "description": "The candidate\u2019s token string value." + "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)." }, - "tokenId": { - "description": "The candidate\u2019s token id value.", - "type": "integer", - "format": "int32" + "data": { + "type": "string", + "description": "Raw bytes for media formats.", + "format": "byte" } }, - "description": "Candidate for the logprobs token and score.", - "type": "object" + "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field." }, - "Image": { + "CitationSource": { "properties": { - "imageUri": { - "description": "The image asset URL.", + "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" }, - "sourceUri": { - "type": "string", - "description": "The web page URI for attribution." + "uri": { + "description": "Optional. URI that is attributed as a source for a portion of the text.", + "type": "string" }, - "title": { - "type": "string", - "description": "The title of the web page that the image is from." + "endIndex": { + "description": "Optional. End of the attributed segment, exclusive.", + "format": "int32", + "type": "integer" }, - "domain": { - "description": "The root domain of the web page that the image is from, e.g. \"example.com\".", - "type": "string" + "startIndex": { + "type": "integer", + "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.", + "format": "int32" } }, - "description": "Chunk from image search.", - "type": "object" + "type": "object", + "description": "A citation to a source for a portion of a specific response." }, - "GroundingPassageId": { - "description": "Identifier for a part within a `GroundingPassage`.", + "TopCandidates": { + "properties": { + "candidates": { + "items": { + "$ref": "#/components/schemas/LogprobsResultCandidate" + }, + "type": "array", + "description": "Sorted by log probability in descending order." + } + }, + "type": "object", + "description": "Candidates with top log probabilities at each decoding step." + }, + "EgressRule": { "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.", "properties": { - "partIndex": { - "type": "integer", - "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.", - "readOnly": true, - "format": "int32" + "transform": { + "additionalProperties": { + "type": "string" + }, + "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").", + "type": "object" }, - "passageId": { - "readOnly": true, - "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.", + "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" } } }, - "FunctionResponse": { + "EmbedContentRequest": { "type": "object", + "description": "Request containing the `Content` for the model to embed.", "properties": { - "response": { - "type": "object", - "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." + "embedContentConfig": { + "description": "Optional. Configuration for the EmbedContent request.", + "$ref": "#/components/schemas/EmbedContentConfig" }, - "scheduling": { + "model": { "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." - ], - "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." + "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}`" }, - "name": { + "outputDimensionality": { + "type": "integer", + "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 + }, + "title": { + "deprecated": true, "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." + "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." }, - "parts": { - "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.", - "items": { - "$ref": "#/components/schemas/FunctionResponsePart" - }, - "type": "array" - }, - "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" + "content": { + "description": "Required. The content to embed. Only the `parts.text` fields will be counted.", + "$ref": "#/components/schemas/Content" }, - "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`." - } - }, - "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." - }, - "FunctionCall": { - "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.", - "properties": { - "id": { + "taskType": { "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`." - }, - "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" - }, - "args": { - "additionalProperties": { - "description": "Properties of the object." - }, - "type": "object", - "description": "Optional. The function parameters and values in JSON object format." + "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." + ], + "deprecated": true, + "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`).", + "enum": [ + "TASK_TYPE_UNSPECIFIED", + "RETRIEVAL_QUERY", + "RETRIEVAL_DOCUMENT", + "SEMANTIC_SIMILARITY", + "CLASSIFICATION", + "CLUSTERING", + "QUESTION_ANSWERING", + "FACT_VERIFICATION", + "CODE_RETRIEVAL_QUERY" + ] } - }, - "type": "object" + } }, - "FunctionResponseBlob": { + "SpeechConfig": { "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" + "multiSpeakerVoiceConfig": { + "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field.", + "$ref": "#/components/schemas/MultiSpeakerVoiceConfig" }, - "data": { - "description": "Raw bytes for media formats.", - "format": "byte", + "voiceConfig": { + "description": "The configuration in case of single-voice output.", + "$ref": "#/components/schemas/VoiceConfig" + }, + "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" } }, "type": "object", - "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field." + "description": "Config for speech generation and transcription." }, - "FunctionCallingConfig": { + "LogprobsResultCandidate": { "type": "object", - "description": "Configuration for specifying function calling behavior.", "properties": { - "allowedFunctionNames": { - "items": { - "type": "string" - }, - "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" + "logProbability": { + "type": "number", + "format": "float", + "description": "The candidate's log probability." }, - "mode": { - "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.", - "enum": [ - "MODE_UNSPECIFIED", - "AUTO", - "ANY", - "NONE", - "VALIDATED" - ], + "token": { "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\"." - ] - } - } - }, - "GoogleMaps": { - "properties": { - "enableWidget": { - "type": "boolean", - "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." + "description": "The candidate\u2019s token string value." + }, + "tokenId": { + "format": "int32", + "description": "The candidate\u2019s token id value.", + "type": "integer" } }, - "description": "The GoogleMaps Tool that provides geospatial context for the user's query.", - "type": "object" + "description": "Candidate for the logprobs token and score." }, - "ListFileSearchStoresResponse": { - "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.", + "GeneratedFile": { "properties": { - "nextPageToken": { + "error": { + "$ref": "#/components/schemas/Status", + "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state." + }, + "mimeType": { + "description": "MIME type of the generatedFile.", + "type": "string" + }, + "name": { "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." + "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`" }, - "fileSearchStores": { - "description": "The returned rag_stores.", - "items": { - "$ref": "#/components/schemas/FileSearchStore" - }, - "type": "array" + "state": { + "type": "string", + "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." + ], + "readOnly": true, + "enum": [ + "STATE_UNSPECIFIED", + "GENERATING", + "GENERATED", + "FAILED" + ], + "description": "Output only. The state of the GeneratedFile." } }, + "description": "A file generated on behalf of a user.", "type": "object" }, - "ListFilesResponse": { + "InlinedResponses": { "properties": { - "files": { - "description": "The list of `File`s.", - "type": "array", + "inlinedResponses": { "items": { - "$ref": "#/components/schemas/File" - } - }, - "nextPageToken": { - "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call.", - "type": "string" + "$ref": "#/components/schemas/InlinedResponse" + }, + "readOnly": true, + "type": "array", + "description": "Output only. The responses to the requests in the batch." } }, "type": "object", - "description": "Response for `ListFiles`." + "description": "The responses to the requests in the batch." }, - "RetrievedContext": { - "description": "Chunk from context retrieved by the file search tool.", + "InlinedEmbedContentRequest": { "type": "object", + "description": "The request to be processed in the batch.", "properties": { - "customMetadata": { - "description": "Optional. User-provided metadata about the retrieved context.", - "type": "array", - "items": { - "$ref": "#/components/schemas/GroundingChunkCustomMetadata" - } - }, - "mediaId": { - "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}", - "type": "string" - }, - "pageNumber": { - "description": "Optional. Page number of the retrieved context, if applicable.", - "format": "int32", - "type": "integer" - }, - "text": { - "description": "Optional. Text of the chunk.", - "type": "string" - }, - "uri": { - "description": "Optional. URI reference of the semantic retrieval document.", - "type": "string" - }, - "title": { - "description": "Optional. Title of the document.", - "type": "string" + "metadata": { + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object", + "description": "Optional. The metadata to be associated with the request." }, - "fileSearchStore": { - "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`", - "type": "string" + "request": { + "description": "Required. The request to be processed in the batch.", + "$ref": "#/components/schemas/EmbedContentRequest" } } }, - "SearchEntryPoint": { + "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": { - "sdkBlob": { + "triggerTokens": { + "format": "int64", "type": "string", - "description": "Optional. Base64 encoded JSON representing array of tuple.", - "format": "byte" + "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." }, - "renderedContent": { - "type": "string", - "description": "Optional. Web content snippet that can be embedded in a web page or an app webview." + "slidingWindow": { + "$ref": "#/components/schemas/SlidingWindow", + "description": "A sliding-window mechanism." } }, - "type": "object", - "description": "Google search entry point." + "type": "object" }, - "FileSearchStore": { - "type": "object", - "description": "A `FileSearchStore` is a collection of `Document`s.", + "File": { "properties": { - "failedDocumentsCount": { - "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.", + "uri": { "readOnly": true, - "format": "int64", + "description": "Output only. The uri of the `File`.", "type": "string" }, - "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\"" - }, "updateTime": { - "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.", - "format": "google-datetime", + "readOnly": true, "type": "string", - "readOnly": true - }, - "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" + "format": "google-datetime", + "description": "Output only. The timestamp of when the `File` was last updated." }, "createTime": { - "readOnly": true, "format": "google-datetime", "type": "string", - "description": "Output only. The Timestamp of when the `FileSearchStore` was created." + "readOnly": true, + "description": "Output only. The timestamp of when the `File` was created." }, - "activeDocumentsCount": { - "format": "int64", - "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.", + "sha256Hash": { "type": "string", - "readOnly": true - }, - "pendingDocumentsCount": { - "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.", - "format": "int64", "readOnly": true, - "type": "string" + "format": "byte", + "description": "Output only. SHA-256 hash of the uploaded bytes." }, - "sizeBytes": { - "readOnly": true, - "type": "string", - "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`." - }, - "name": { + "mimeType": { "type": "string", "readOnly": true, - "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." - } - } - }, - "ThinkingConfig": { - "description": "Config for thinking features.", - "type": "object", - "properties": { - "thinkingLevel": { + "description": "Output only. MIME type of the file." + }, + "source": { + "enum": [ + "SOURCE_UNSPECIFIED", + "UPLOADED", + "GENERATED", + "REGISTERED" + ], "x-enum-descriptions": [ - "Default value.", - "Little to no thinking.", - "Low thinking level.", - "Medium thinking level.", - "High thinking level." + "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." ], + "description": "Source of the File.", + "type": "string" + }, + "state": { + "readOnly": true, + "description": "Output only. Processing state of the File.", + "type": "string", "enum": [ - "THINKING_LEVEL_UNSPECIFIED", - "MINIMAL", - "LOW", - "MEDIUM", - "HIGH" + "STATE_UNSPECIFIED", + "PROCESSING", + "ACTIVE", + "FAILED" ], - "type": "string", - "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": [ + "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." + ] }, - "includeThoughts": { - "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.", - "type": "boolean" + "videoMetadata": { + "$ref": "#/components/schemas/VideoFileMetadata", + "readOnly": true, + "description": "Output only. Metadata for a video." }, - "thinkingBudget": { - "description": "The number of thoughts tokens that the model should generate.", - "type": "integer", - "format": "int32" - } - } - }, - "CountTokensResponse": { - "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.", - "type": "object", - "properties": { - "cacheTokensDetails": { - "type": "array", - "description": "Output only. List of modalities that were processed in the cached content.", + "expirationTime": { "readOnly": true, - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } + "format": "google-datetime", + "type": "string", + "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire." }, - "totalTokens": { - "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative.", - "format": "int32", - "type": "integer" + "sizeBytes": { + "description": "Output only. Size of the file in bytes.", + "readOnly": true, + "type": "string", + "format": "int64" }, - "cachedContentTokenCount": { - "description": "Number of tokens in the cached part of the prompt (the cached content).", - "format": "int32", - "type": "integer" + "downloadUri": { + "type": "string", + "description": "Output only. The download uri of the `File`.", + "readOnly": true }, - "promptTokensDetails": { - "description": "Output only. List of modalities that were processed in the request input.", + "error": { + "description": "Output only. Error status if File processing failed.", "readOnly": true, - "type": "array", - "items": { - "$ref": "#/components/schemas/ModalityTokenCount" - } + "$ref": "#/components/schemas/Status" + }, + "displayName": { + "type": "string", + "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\"" + }, + "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" } - } + }, + "description": "A file uploaded to the API. Next ID: 15", + "type": "object" }, - "ToolResponse": { + "V1mainMediaResolution": { + "description": "Media resolution for tokenization.", "properties": { - "id": { - "description": "Optional. The identifier of the tool call this response is for.", - "type": "string" - }, - "response": { - "type": "object", - "additionalProperties": { - "description": "Properties of the object." - }, - "description": "Optional. The tool response." - }, - "toolType": { - "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.", + "level": { + "description": "The tokenization quality used for given media. for Gemini API support .", + "enum": [ + "MEDIA_RESOLUTION_UNSPECIFIED", + "MEDIA_RESOLUTION_LOW", + "MEDIA_RESOLUTION_MEDIUM", + "MEDIA_RESOLUTION_HIGH", + "MEDIA_RESOLUTION_ULTRA_HIGH" + ], "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." + "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." + ] + } + }, + "type": "object" + }, + "ModelStatus": { + "type": "object", + "properties": { + "modelStage": { + "type": "string", + "enumDeprecated": [ + false, + true, + false, + false, + false, + false, + true, + false ], + "description": "The stage of the underlying model.", "enum": [ - "TOOL_TYPE_UNSPECIFIED", - "GOOGLE_SEARCH_WEB", - "GOOGLE_SEARCH_IMAGE", - "URL_CONTEXT", - "GOOGLE_MAPS", - "FILE_SEARCH" + "MODEL_STAGE_UNSPECIFIED", + "UNSTABLE_EXPERIMENTAL", + "EXPERIMENTAL", + "PREVIEW", + "STABLE", + "LEGACY", + "DEPRECATED", + "RETIRED" + ], + "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." ] + }, + "retirementTime": { + "description": "The time at which the model will be retired.", + "format": "google-datetime", + "type": "string" + }, + "message": { + "description": "A message explaining the model status.", + "type": "string" } }, - "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`.", + "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable." + }, + "LanguageHints": { + "properties": { + "languageCodes": { + "description": "Required. BCP-47 language codes.", + "type": "array", + "items": { + "type": "string" + }, + "deprecated": true + } + }, + "type": "object", + "deprecated": true, + "description": "Provides hints to the model about possible languages present in the audio." + }, + "WebSearch": { + "properties": {}, + "description": "Standard web search for grounding and related configurations.", "type": "object" }, - "ListTunedModelsResponse": { + "ListEnvironmentsResponse": { "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 more pages." + "description": "Pagination token." }, - "tunedModels": { + "environments": { "type": "array", - "description": "The returned Models.", + "description": "Environments belonging to the provided project.", "items": { - "$ref": "#/components/schemas/TunedModel" + "$ref": "#/components/schemas/Environment" } } }, - "description": "Response from `ListTunedModels` containing a paginated list of Models.", + "type": "object", + "description": "Response for `ListEnvironments`." + }, + "TransferOwnershipResponse": { + "properties": {}, + "description": "Response from `TransferOwnership`.", "type": "object" }, - "GenerateContentBatch": { - "description": "A resource representing a batch of `GenerateContent` requests.", + "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" + }, + "InlinedEmbedContentResponse": { "type": "object", + "description": "The response to a single request in the batch.", "properties": { - "inputConfig": { - "$ref": "#/components/schemas/InputConfig", - "description": "Required. Input configuration of the instances on which batch processing are performed." - }, - "model": { - "type": "string", - "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." - }, - "batchStats": { - "description": "Output only. Stats about the batch.", - "$ref": "#/components/schemas/BatchStats", - "readOnly": true - }, - "name": { - "type": "string", + "error": { "readOnly": true, - "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." + "description": "Output only. The error encountered while processing the request.", + "$ref": "#/components/schemas/Status" }, - "output": { - "$ref": "#/components/schemas/GenerateContentBatchOutput", - "readOnly": true, - "description": "Output only. The output of the batch request." - }, - "endTime": { - "readOnly": true, - "type": "string", - "description": "Output only. The time at which the batch processing completed.", - "format": "google-datetime" - }, - "state": { - "enum": [ - "BATCH_STATE_UNSPECIFIED", - "BATCH_STATE_PENDING", - "BATCH_STATE_RUNNING", - "BATCH_STATE_SUCCEEDED", - "BATCH_STATE_FAILED", - "BATCH_STATE_CANCELLED", - "BATCH_STATE_EXPIRED" - ], - "description": "Output only. The state of the batch.", + "response": { "readOnly": true, - "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." - ], - "type": "string" - }, - "createTime": { - "description": "Output only. The time at which the batch was created.", - "format": "google-datetime", - "type": "string", - "readOnly": true + "description": "Output only. The response to the request.", + "$ref": "#/components/schemas/EmbedContentResponse" }, - "updateTime": { - "description": "Output only. The time at which the batch was last updated.", + "metadata": { + "description": "Output only. The metadata associated with the request.", "readOnly": true, - "type": "string", - "format": "google-datetime" - }, - "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." - }, - "displayName": { - "type": "string", - "description": "Required. The user-defined name of this batch." + "type": "object", + "additionalProperties": { + "description": "Properties of the object." + } } } }, - "TuningExample": { + "UrlContext": { + "properties": {}, "type": "object", - "description": "A single example for tuning.", - "properties": { - "textInput": { - "type": "string", - "description": "Optional. Text model input." - }, - "output": { - "description": "Required. The expected model output.", - "type": "string" - } - } + "description": "Tool to support URL context retrieval." }, - "ImageResponseFormat": { - "description": "Configuration for image output format.", - "properties": { - "aspectRatio": { - "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.", - "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." - ], - "type": "string" - }, - "delivery": { - "enum": [ - "DELIVERY_UNSPECIFIED", - "INLINE", - "URI" - ], - "x-enum-descriptions": [ - "Default value. This value is unused.", - "Image data is returned inline in the response.", - "Image data is returned as a URI." - ], - "description": "Optional. The delivery mode for the image output.", - "type": "string" - }, - "mimeType": { - "description": "Optional. The MIME type of the image output.", - "enum": [ - "MIME_TYPE_UNSPECIFIED", - "IMAGE_JPEG" - ], - "type": "string", - "x-enum-descriptions": [ - "Default value. This value is unused.", - "JPEG image format." - ] - }, - "imageSize": { - "x-enum-descriptions": [ - "Default value. This value is unused.", - "512px image size.", - "1K image size.", - "2K image size.", - "4K image size." - ], - "type": "string", - "description": "Optional. The size of the image output.", - "enum": [ - "IMAGE_SIZE_UNSPECIFIED", - "IMAGE_SIZE_FIVE_TWELVE", - "IMAGE_SIZE_ONE_K", - "IMAGE_SIZE_TWO_K", - "IMAGE_SIZE_FOUR_K" - ] - } - }, - "type": "object" - }, - "BatchEmbedContentsRequest": { + "EnvironmentNetworkEgressAllowlist": { "type": "object", + "description": "Network egress configuration for the environment.", "properties": { - "requests": { + "allowlist": { "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": "Batch request to get embeddings from the model for a list of prompts." - }, - "Source": { - "description": "A source to be mounted into the environment.", - "properties": { - "source": { - "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.", - "type": "string" - }, - "content": { - "description": "The inline content if `type` is `INLINE`.", - "type": "string" - }, - "encoding": { - "description": "Optional encoding for inline content (e.g. `base64`).", - "type": "string" - }, - "type": { - "enum": [ - "TYPE_UNSPECIFIED", - "GCS", - "INLINE", - "REPOSITORY" - ], - "x-enum-descriptions": [ - "", - "A Cloud Storage bucket.", - "Inline content.", - "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)." - ], - "type": "string" - }, - "target": { - "type": "string", - "description": "Where the source should appear in the environment." - } - }, - "type": "object" - }, - "Blob": { - "properties": { - "data": { - "description": "Raw bytes for media formats.", - "format": "byte", - "type": "string" - }, - "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" - } - }, - "type": "object", - "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field." - }, - "EmbedContentBatchOutput": { - "properties": { - "responsesFile": { - "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.", - "readOnly": true - }, - "inlinedResponses": { - "$ref": "#/components/schemas/InlinedEmbedContentResponses", - "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 + "$ref": "#/components/schemas/EgressRule" + }, + "description": "List of allowed domains and their configurations." } - }, - "type": "object", - "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field." + } }, - "CachedContent": { + "ListDocumentsResponse": { "type": "object", - "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.", + "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.", "properties": { - "systemInstruction": { - "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.", - "$ref": "#/components/schemas/Content" - }, - "model": { - "type": "string", - "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`" - }, - "tools": { - "type": "array", + "documents": { "items": { - "$ref": "#/components/schemas/Tool" + "$ref": "#/components/schemas/Document" }, - "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response" - }, - "expireTime": { - "format": "google-datetime", - "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." - }, - "toolConfig": { - "$ref": "#/components/schemas/ToolConfig", - "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools." - }, - "usageMetadata": { - "readOnly": true, - "$ref": "#/components/schemas/CachedContentUsageMetadata", - "description": "Output only. Metadata on the usage of the cached content." - }, - "contents": { - "description": "Optional. Input only. Immutable. The content to cache.", "type": "array", - "items": { - "$ref": "#/components/schemas/Content" - } - }, - "ttl": { - "format": "google-duration", - "description": "Input only. New TTL for this resource, input only.", - "type": "string" - }, - "name": { - "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`", - "type": "string", - "readOnly": true + "description": "The returned `Document`s." }, - "displayName": { - "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.", + "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" - }, - "updateTime": { - "readOnly": true, - "type": "string", - "format": "google-datetime", - "description": "Output only. When the cache entry was last updated in UTC time." - }, - "createTime": { - "format": "google-datetime", - "type": "string", - "readOnly": true, - "description": "Output only. Creation time of the cache entry." } } }, - "File": { - "description": "A file uploaded to the API. Next ID: 15", + "ListTunedModelsResponse": { "type": "object", + "description": "Response from `ListTunedModels` containing a paginated list of Models.", "properties": { - "uri": { - "readOnly": true, - "type": "string", - "description": "Output only. The uri of the `File`." - }, - "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" - }, - "error": { - "readOnly": true, - "$ref": "#/components/schemas/Status", - "description": "Output only. Error status if File processing failed." - }, - "downloadUri": { - "type": "string", - "readOnly": true, - "description": "Output only. The download uri of the `File`." - }, - "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" - }, - "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": { - "format": "byte", - "description": "Output only. SHA-256 hash of the uploaded bytes.", - "type": "string", - "readOnly": true - }, - "source": { - "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." - ], - "description": "Source of the File.", - "enum": [ - "SOURCE_UNSPECIFIED", - "UPLOADED", - "GENERATED", - "REGISTERED" - ], - "type": "string" - }, - "state": { - "readOnly": true, - "description": "Output only. Processing state of the File.", - "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." - ], - "type": "string", - "enum": [ - "STATE_UNSPECIFIED", - "PROCESSING", - "ACTIVE", - "FAILED" - ] - }, - "mimeType": { - "type": "string", - "readOnly": true, - "description": "Output only. MIME type of the file." - }, - "createTime": { - "description": "Output only. The timestamp of when the `File` was created.", - "type": "string", - "format": "google-datetime", - "readOnly": true - }, - "updateTime": { - "format": "google-datetime", - "readOnly": true, - "description": "Output only. The timestamp of when the `File` was last updated.", + "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" }, - "videoMetadata": { - "description": "Output only. Metadata for a video.", - "readOnly": true, - "$ref": "#/components/schemas/VideoFileMetadata" - }, - "sizeBytes": { - "type": "string", - "readOnly": true, - "format": "int64", - "description": "Output only. Size of the file in bytes." + "tunedModels": { + "items": { + "$ref": "#/components/schemas/TunedModel" + }, + "description": "The returned Models.", + "type": "array" } } }, - "UrlContextMetadata": { + "FileSearch": { + "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": { - "urlMetadata": { - "description": "List of url context.", + "metadataFilter": { + "type": "string", + "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks." + }, + "fileSearchStoreNames": { "type": "array", + "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`", "items": { - "$ref": "#/components/schemas/UrlMetadata" + "type": "string" } + }, + "topK": { + "format": "int32", + "type": "integer", + "description": "Optional. The number of semantic retrieval chunks to retrieve." } - }, - "description": "Metadata related to url context retrieval tool.", - "type": "object" + } }, - "TopCandidates": { + "RetrievalMetadata": { "type": "object", - "description": "Candidates with top log probabilities at each decoding step.", + "description": "Metadata related to retrieval in the grounding flow.", "properties": { - "candidates": { - "items": { - "$ref": "#/components/schemas/LogprobsResultCandidate" - }, - "description": "Sorted by log probability in descending order.", - "type": "array" + "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" } } }, - "V1mainMediaResolution": { + "VoiceConfig": { + "description": "The configuration for the voice to use.", + "type": "object", "properties": { - "level": { - "description": "The tokenization quality used for given media. for Gemini API support .", - "enum": [ - "MEDIA_RESOLUTION_UNSPECIFIED", - "MEDIA_RESOLUTION_LOW", - "MEDIA_RESOLUTION_MEDIUM", - "MEDIA_RESOLUTION_HIGH", - "MEDIA_RESOLUTION_ULTRA_HIGH" - ], - "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." - ], - "type": "string" + "prebuiltVoiceConfig": { + "description": "The configuration for the prebuilt voice to use.", + "$ref": "#/components/schemas/PrebuiltVoiceConfig" + } + } + }, + "BatchGenerateContentRequest": { + "properties": { + "batch": { + "description": "Required. The batch to create.", + "$ref": "#/components/schemas/GenerateContentBatch" } }, + "description": "Request for a `BatchGenerateContent` operation.", + "type": "object" + }, + "CreateFileResponse": { "type": "object", - "description": "Media resolution for tokenization." + "properties": { + "file": { + "$ref": "#/components/schemas/File", + "description": "Metadata for the created file." + } + }, + "description": "Response for `CreateFile`." }, - "BatchStats": { + "TuningExample": { + "description": "A single example for tuning.", "properties": { - "requestCount": { - "description": "Output only. The number of requests in the batch.", - "readOnly": true, - "type": "string", - "format": "int64" - }, - "failedRequestCount": { - "description": "Output only. The number of requests that failed to be processed.", - "format": "int64", - "readOnly": true, + "textInput": { + "description": "Optional. Text model input.", "type": "string" }, - "successfulRequestCount": { - "description": "Output only. The number of requests that were successfully processed.", - "readOnly": true, - "format": "int64", + "output": { + "description": "Required. The expected model output.", "type": "string" - }, - "pendingRequestCount": { - "type": "string", - "format": "int64", - "description": "Output only. The number of requests that are still pending processing.", - "readOnly": true } }, - "description": "Stats about the batch.", "type": "object" }, - "GroundingAttribution": { + "StringList": { "properties": { - "content": { - "description": "Grounding source content that makes up this attribution.", - "$ref": "#/components/schemas/Content" + "values": { + "items": { + "type": "string" + }, + "type": "array", + "description": "The string values of the metadata to store." + } + }, + "type": "object", + "description": "User provided string values assigned to a single metadata key." + }, + "InputConfig": { + "properties": { + "fileName": { + "type": "string", + "description": "The name of the `File` containing the input requests." }, - "sourceId": { - "readOnly": true, - "$ref": "#/components/schemas/AttributionSourceId", - "description": "Output only. Identifier for the source contributing to this attribution." + "requests": { + "$ref": "#/components/schemas/InlinedRequests", + "description": "The requests to be processed in the batch." } }, - "description": "Attribution for a source that contributed to an answer.", + "description": "Configures the input to the batch request.", "type": "object" }, - "Environment": { + "InputEmbedContentConfig": { + "type": "object", "properties": { - "sources": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Source" - }, - "description": "Sources to be mounted into the environment." - }, - "networkMode": { + "fileName": { "type": "string", - "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." - ], - "description": "Network egress mode.", - "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" - ] - }, - "networkAllowlist": { - "description": "Allow only specific domains.", - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" + "description": "The name of the `File` containing the input requests." }, - "status": { - "enum": [ - "STATUS_UNSPECIFIED", - "ACTIVE", - "EXPIRED" - ], - "x-enum-descriptions": [ - "", - "", - "" - ], - "type": "string", + "requests": { + "description": "The requests to be processed in the batch.", + "$ref": "#/components/schemas/InlinedEmbedContentRequests" + } + }, + "description": "Configures the input to the batch request." + }, + "InlinedResponse": { + "description": "The response to a single request in the batch.", + "properties": { + "error": { + "$ref": "#/components/schemas/Status", "readOnly": true, - "description": "Output only. The status of the environment container." + "description": "Output only. The error encountered while processing the request." }, - "lastAccessed": { + "metadata": { "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)." + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object", + "description": "Output only. The metadata associated with the request." }, - "created": { - "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).", + "response": { + "$ref": "#/components/schemas/GenerateContentResponse", + "readOnly": true, + "description": "Output only. The response to the request." + } + }, + "type": "object" + }, + "TunedModelSource": { + "properties": { + "baseModel": { + "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`", "type": "string", "readOnly": true }, - "sizeBytes": { - "description": "Output only. The total size of the environment files in bytes, output only.", - "format": "int64", - "readOnly": true, - "type": "string" - }, - "fileCount": { - "description": "Output only. The number of files in the environment, output only.", - "format": "int64", - "readOnly": true, + "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" - }, - "updated": { - "type": "string", - "readOnly": true, - "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ)." - }, - "id": { - "type": "string", - "readOnly": true, - "description": "Required. Output only. The ID of the environment." } }, "type": "object", - "description": "An execution environment for an agent." + "description": "Tuned model as a source for training a new model." }, - "AutomaticActivityDetection": { - "type": "object", - "description": "Configures automatic detection of activity.", + "FunctionCallingConfig": { "properties": { - "endOfSpeechSensitivity": { - "type": "string", - "enum": [ - "END_SENSITIVITY_UNSPECIFIED", - "END_SENSITIVITY_HIGH", - "END_SENSITIVITY_LOW" - ], - "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." - ] - }, - "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" - }, - "startOfSpeechSensitivity": { + "mode": { + "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.", "type": "string", - "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." - ], "enum": [ - "START_SENSITIVITY_UNSPECIFIED", - "START_SENSITIVITY_HIGH", - "START_SENSITIVITY_LOW" + "MODE_UNSPECIFIED", + "AUTO", + "ANY", + "NONE", + "VALIDATED" + ], + "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\"." ] }, - "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" - }, - "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" + "allowedFunctionNames": { + "items": { + "type": "string" + }, + "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" + } + }, + "type": "object", + "description": "Configuration for specifying function calling behavior." + }, + "UrlContextMetadata": { + "description": "Metadata related to url context retrieval tool.", + "type": "object", + "properties": { + "urlMetadata": { + "items": { + "$ref": "#/components/schemas/UrlMetadata" + }, + "type": "array", + "description": "List of url context." } } }, - "GeneratedFile": { + "UploadToFileSearchStoreRequest": { + "type": "object", + "description": "Request for `UploadToFileSearchStore`.", "properties": { "mimeType": { - "description": "MIME type of the generatedFile.", + "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.", "type": "string" }, - "state": { - "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." - ], - "description": "Output only. The state of the GeneratedFile.", - "type": "string" + "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" }, - "error": { - "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state.", - "$ref": "#/components/schemas/Status" + "displayName": { + "type": "string", + "description": "Optional. Display name of the created document." }, - "name": { - "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`", - "type": "string" + "customMetadata": { + "items": { + "$ref": "#/components/schemas/CustomMetadata" + }, + "type": "array", + "description": "Custom metadata to be associated with the data." } - }, - "description": "A file generated on behalf of a user.", - "type": "object" + } }, - "EmbedContentResponse": { + "TuningSnapshot": { "type": "object", - "description": "The response to an `EmbedContentRequest`.", + "description": "Record for a single tuning step.", "properties": { - "embedding": { - "$ref": "#/components/schemas/ContentEmbedding", + "step": { + "format": "int32", + "readOnly": true, + "description": "Output only. The tuning step.", + "type": "integer" + }, + "epoch": { + "type": "integer", + "description": "Output only. The epoch this step was part of.", "readOnly": true, - "description": "Output only. The embedding generated from the input content." + "format": "int32" }, - "usageMetadata": { + "computeTime": { + "description": "Output only. The timestamp when this metric was computed.", + "format": "google-datetime", + "type": "string", + "readOnly": true + }, + "meanLoss": { + "format": "float", + "description": "Output only. The mean loss of the training examples for this step.", "readOnly": true, - "$ref": "#/components/schemas/EmbeddingUsageMetadata", - "description": "Output only. The usage metadata for the request." + "type": "number" } } }, - "CreateFileRequest": { + "SemanticRetrieverChunk": { + "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.", + "type": "object", "properties": { - "file": { - "$ref": "#/components/schemas/File", - "description": "Optional. Metadata for the file to create." + "source": { + "type": "string", + "readOnly": true, + "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`" + }, + "chunk": { + "type": "string", + "readOnly": true, + "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`" } - }, - "type": "object", - "description": "Request for `CreateFile`." + } }, - "CreateEnvironmentRequest": { - "description": "Request for `CreateEnvironment`.", + "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`.", "properties": { - "networkAllowlist": { - "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist", - "description": "Allow only specific domains." + "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." }, - "sources": { + "contents": { + "type": "array", "items": { - "$ref": "#/components/schemas/Source" + "$ref": "#/components/schemas/Content" }, - "type": "array", - "description": "Sources to be mounted into the environment." - }, - "networkMode": { - "type": "string", - "description": "Network egress mode.", - "x-enum-descriptions": [ - "Default value. Unused.", - "All network egress is blocked." - ], - "enum": [ - "NETWORK_MODE_UNSPECIFIED", - "DISABLED" - ] + "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set." } }, "type": "object" }, - "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).", + "EmbedContentBatch": { "properties": { - "anyOf": { - "items": { - "$ref": "#/components/schemas/Schema" - }, - "type": "array", - "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list." + "inputConfig": { + "$ref": "#/components/schemas/InputEmbedContentConfig", + "description": "Required. Input configuration of the instances on which batch processing are performed." }, - "maxLength": { + "output": { + "readOnly": true, + "description": "Output only. The output of the batch request.", + "$ref": "#/components/schemas/EmbedContentBatchOutput" + }, + "createTime": { + "description": "Output only. The time at which the batch was created.", + "readOnly": true, + "type": "string", + "format": "google-datetime" + }, + "name": { + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.", + "readOnly": true, + "type": "string" + }, + "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.", "type": "string", - "description": "Optional. Maximum length of the Type.STRING", "format": "int64" }, - "maxItems": { + "displayName": { "type": "string", - "format": "int64", - "description": "Optional. Maximum number of the elements for Type.ARRAY." + "description": "Required. The user-defined name of this batch." }, - "type": { + "updateTime": { + "type": "string", + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The time at which the batch was last updated." + }, + "state": { + "type": "string", "enum": [ - "TYPE_UNSPECIFIED", - "STRING", - "NUMBER", - "INTEGER", - "BOOLEAN", - "ARRAY", - "OBJECT", - "NULL" + "BATCH_STATE_UNSPECIFIED", + "BATCH_STATE_PENDING", + "BATCH_STATE_RUNNING", + "BATCH_STATE_SUCCEEDED", + "BATCH_STATE_FAILED", + "BATCH_STATE_CANCELLED", + "BATCH_STATE_EXPIRED" ], - "description": "Required. Data type.", + "description": "Output only. The state of the batch.", "x-enum-descriptions": [ - "Not specified, should not be used.", - "String type.", - "Number type.", - "Integer type.", - "Boolean type.", - "Array type.", - "Object type.", - "Null type." + "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" + "readOnly": true }, - "minProperties": { + "model": { "type": "string", - "format": "int64", - "description": "Optional. Minimum number of the properties for Type.OBJECT." + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." + }, + "endTime": { + "description": "Output only. The time at which the batch processing completed.", + "format": "google-datetime", + "type": "string", + "readOnly": true + }, + "batchStats": { + "$ref": "#/components/schemas/EmbedContentBatchStats", + "description": "Output only. Stats about the batch.", + "readOnly": true + } + }, + "description": "A resource representing a batch of `EmbedContent` requests.", + "type": "object" + }, + "GenerateContentRequest": { + "properties": { + "systemInstruction": { + "$ref": "#/components/schemas/Content", + "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only." + }, + "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." + }, + "serviceTier": { + "type": "string", + "x-enum-descriptions": [ + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." + ], + "description": "Optional. The service tier of the request.", + "enum": [ + "unspecified", + "standard", + "flex", + "priority" + ] }, - "format": { - "type": "string", - "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality." + "tools": { + "items": { + "$ref": "#/components/schemas/Tool" + }, + "type": "array", + "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." }, - "nullable": { - "description": "Optional. Indicates if the value may be null.", + "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" + }, + "store": { + "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.", "type": "boolean" }, - "maxProperties": { + "generationConfig": { + "description": "Optional. Configuration options for model generation and outputs.", + "$ref": "#/components/schemas/GenerationConfig" + }, + "model": { "type": "string", - "format": "int64", - "description": "Optional. Maximum number of the properties for Type.OBJECT." + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." }, - "propertyOrdering": { - "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.", + "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": { - "type": "string" + "$ref": "#/components/schemas/SafetySetting" }, "type": "array" }, - "pattern": { - "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.", - "type": "string" - }, - "enum": { + "contents": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/Content" }, - "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\"]}" - }, - "minItems": { - "format": "int64", - "description": "Optional. Minimum number of the elements for Type.ARRAY.", - "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." + "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." + } + }, + "description": "Request to generate a completion from the model.", + "type": "object" + }, + "CreateFileRequest": { + "properties": { + "file": { + "$ref": "#/components/schemas/File", + "description": "Optional. Metadata for the file to create." + } + }, + "type": "object", + "description": "Request for `CreateFile`." + }, + "GenerateContentBatchOutput": { + "type": "object", + "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.", + "properties": { + "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 }, - "minimum": { - "type": "number", - "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER", - "format": "double" + "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." + } + } + }, + "Operation": { + "properties": { + "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." }, - "required": { - "description": "Optional. Required properties of Type.OBJECT.", - "type": "array", - "items": { - "type": "string" - } + "error": { + "$ref": "#/components/schemas/Status", + "description": "The error result of the operation in case of failure or cancellation." }, - "properties": { + "response": { "additionalProperties": { - "$ref": "#/components/schemas/Schema" + "description": "Properties of the object. Contains field @type with type URL." }, - "description": "Optional. Properties of 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`.", "type": "object" }, - "items": { - "description": "Optional. Schema of the elements of Type.ARRAY.", - "$ref": "#/components/schemas/Schema" - }, - "description": { - "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.", - "type": "string" - }, - "title": { - "type": "string", - "description": "Optional. The title of the schema." - }, - "minLength": { - "format": "int64", - "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING", + "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" }, - "example": { - "description": "Optional. Example of the object. Will only populated when the object is the root." - }, - "maximum": { - "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER", - "type": "number", - "format": "double" + "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" } }, + "description": "This resource represents a long-running operation that is the result of a network API call.", "type": "object" }, - "InlinedEmbedContentResponse": { - "type": "object", - "description": "The response to a single request in the batch.", + "GenerateContentBatch": { + "description": "A resource representing a batch of `GenerateContent` requests.", "properties": { - "error": { - "description": "Output only. The error encountered while processing the request.", + "createTime": { + "description": "Output only. The time at which the batch was created.", + "format": "google-datetime", + "type": "string", + "readOnly": true + }, + "name": { + "type": "string", "readOnly": true, - "$ref": "#/components/schemas/Status" + "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`." }, - "metadata": { + "updateTime": { + "type": "string", "readOnly": true, - "type": "object", - "description": "Output only. The metadata associated with the request.", - "additionalProperties": { - "description": "Properties of the object." - } + "format": "google-datetime", + "description": "Output only. The time at which the batch was last updated." }, - "response": { - "$ref": "#/components/schemas/EmbedContentResponse", + "priority": { + "format": "int64", + "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." + }, + "state": { + "enum": [ + "BATCH_STATE_UNSPECIFIED", + "BATCH_STATE_PENDING", + "BATCH_STATE_RUNNING", + "BATCH_STATE_SUCCEEDED", + "BATCH_STATE_FAILED", + "BATCH_STATE_CANCELLED", + "BATCH_STATE_EXPIRED" + ], + "type": "string", "readOnly": true, - "description": "Output only. The response to the request." - } - } - }, - "AudioTranscriptionConfig": { - "properties": { - "languageHints": { - "description": "Optional. Specifies one or more languages in the audio.", - "$ref": "#/components/schemas/LanguageHints", - "deprecated": true + "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." }, - "languageAuto": { - "deprecated": true, - "description": "Optional. The model will detect the language automatically.", - "$ref": "#/components/schemas/LanguageAuto" + "model": { + "type": "string", + "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`." }, - "languageCodes": { - "type": "array", - "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.", - "items": { - "type": "string" - } + "displayName": { + "type": "string", + "description": "Required. The user-defined name of this batch." }, - "wordTimestamp": { - "description": "Optional. Configures word-level timestamp generation.", - "type": "boolean" + "endTime": { + "type": "string", + "description": "Output only. The time at which the batch processing completed.", + "format": "google-datetime", + "readOnly": true }, - "adaptationPhrases": { - "type": "array", - "items": { - "type": "string" - }, - "deprecated": true, - "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms." + "batchStats": { + "$ref": "#/components/schemas/BatchStats", + "readOnly": true, + "description": "Output only. Stats about the batch." }, - "customVocabulary": { - "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", - "items": { - "type": "string" - } + "inputConfig": { + "$ref": "#/components/schemas/InputConfig", + "description": "Required. Input configuration of the instances on which batch processing are performed." }, - "diarization": { - "type": "boolean", - "description": "Optional. Configures speaker diarization." + "output": { + "$ref": "#/components/schemas/GenerateContentBatchOutput", + "description": "Output only. The output of the batch request.", + "readOnly": true + } + }, + "type": "object" + }, + "TranslationConfig": { + "properties": { + "targetLanguageCode": { + "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\").", + "type": "string" }, + "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" + } + }, + "type": "object", + "description": "Config for translation features." + }, + "CodeExecution": { + "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" + }, + "DynamicRetrievalConfig": { + "properties": { "mode": { - "x-enum-descriptions": [ - "Unspecified transcription mode.", - "Verbatim transcription mode.", - "Smart transcription mode." - ], - "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.", "enum": [ "MODE_UNSPECIFIED", - "VERBATIM", - "SMART" + "MODE_DYNAMIC" + ], + "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." ], "type": "string" + }, + "dynamicThreshold": { + "type": "number", + "format": "float", + "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used." } }, - "type": "object", - "description": "The audio transcription configuration." - }, - "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": "Describes the options to customize dynamic retrieval.", + "type": "object" }, - "GenerateContentResponse": { + "BidiGenerateContentSetup": { "properties": { - "usageMetadata": { - "$ref": "#/components/schemas/UsageMetadata", - "description": "Output only. Metadata on the generation requests' token usage.", - "readOnly": true + "inputAudioTranscription": { + "$ref": "#/components/schemas/AudioTranscriptionConfig", + "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured." }, - "modelStatus": { - "description": "Output only. The current model status of this model.", - "readOnly": true, - "$ref": "#/components/schemas/ModelStatus" + "historyConfig": { + "description": "Optional. Configures the exchange of history between the client and the server.", + "$ref": "#/components/schemas/HistoryConfig" }, - "candidates": { + "sessionResumption": { + "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages.", + "$ref": "#/components/schemas/SessionResumptionConfig" + }, + "tools": { + "type": "array", + "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.", "items": { - "$ref": "#/components/schemas/Candidate" - }, - "description": "Candidate responses from the model.", - "type": "array" + "$ref": "#/components/schemas/Tool" + } }, - "modelVersion": { - "description": "Output only. The model version used to generate the response.", - "type": "string", - "readOnly": true + "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" }, - "responseId": { + "realtimeInputConfig": { + "description": "Optional. Configures the handling of realtime input.", + "$ref": "#/components/schemas/RealtimeInputConfig" + }, + "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." + }, + "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" + }, + "model": { "type": "string", - "readOnly": true, - "description": "Output only. response_id is used to identify each response." + "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`" }, - "promptFeedback": { - "$ref": "#/components/schemas/PromptFeedback", - "description": "Returns the prompt's feedback related to the content filters." + "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": "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`.", - "type": "object" + "type": "object", + "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." }, - "Model": { + "EnvironmentFile": { "properties": { - "maxTemperature": { - "type": "number", - "description": "The maximum temperature this model can use.", - "format": "float" - }, - "supportedGenerationMethods": { - "type": "array", - "items": { - "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`." - }, - "topP": { - "format": "float", - "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" - }, - "temperature": { - "type": "number", - "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.", - "format": "float" - }, - "baseModelId": { - "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`", + "name": { + "readOnly": true, + "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\").", "type": "string" }, - "displayName": { + "created": { + "format": "google-datetime", "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." - }, - "thinking": { - "description": "Whether the model supports thinking.", - "type": "boolean" - }, - "topK": { - "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.", - "format": "int32", - "type": "integer" + "description": "Output only. The creation time of the file/directory.", + "readOnly": true }, - "inputTokenLimit": { - "type": "integer", - "description": "Maximum number of input tokens allowed for this model.", - "format": "int32" + "type": { + "x-enum-descriptions": [ + "Unspecified type.", + "A regular file.", + "A directory." + ], + "readOnly": true, + "enum": [ + "TYPE_UNSPECIFIED", + "FILE", + "DIRECTORY" + ], + "type": "string", + "description": "Output only. The type of the entry." }, - "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" + "mime_type": { + "type": "string", + "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT", + "readOnly": true }, - "version": { + "modified": { + "readOnly": true, "type": "string", - "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)" + "format": "google-datetime", + "description": "Output only. The modification time of the file/directory." }, - "outputTokenLimit": { - "format": "int32", - "description": "Maximum number of output tokens available for this model.", - "type": "integer" + "path": { + "readOnly": true, + "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\").", + "type": "string" }, - "description": { + "size_bytes": { "type": "string", - "description": "A short description of the model." + "readOnly": true, + "format": "int64", + "description": "Output only. The size of the file/directory in bytes. NOLINT" } }, - "description": "Information about a Generative Language Model.", + "description": "Metadata for a file or directory within an environment.", "type": "object" }, - "ListCorporaResponse": { + "TransferOwnershipRequest": { + "description": "Request to transfer the ownership of the tuned model.", "type": "object", "properties": { - "corpora": { - "type": "array", - "description": "The returned corpora.", - "items": { - "$ref": "#/components/schemas/Corpus" - } + "emailAddress": { + "type": "string", + "description": "Required. The email address of the user to whom the tuned model is being transferred to." + } + } + }, + "GoogleSearch": { + "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)." }, + "searchTypes": { + "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.", + "$ref": "#/components/schemas/SearchTypes" + } + }, + "type": "object", + "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." + }, + "Dataset": { + "type": "object", + "properties": { + "examples": { + "description": "Optional. Inline examples with simple input/output text.", + "$ref": "#/components/schemas/TuningExamples" + } + }, + "description": "Dataset for training or validation." + }, + "ListCachedContentsResponse": { + "type": "object", + "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": "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" + }, + "cachedContents": { + "items": { + "$ref": "#/components/schemas/CachedContent" + }, + "description": "List of cached contents.", + "type": "array" } }, - "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`." + "description": "Response with CachedContents list." }, - "InlinedEmbedContentRequest": { + "InlinedRequest": { + "type": "object", "description": "The request to be processed in the batch.", "properties": { "request": { - "$ref": "#/components/schemas/EmbedContentRequest", + "$ref": "#/components/schemas/GenerateContentRequest", "description": "Required. The request to be processed in the batch." }, "metadata": { - "description": "Optional. The metadata to be associated with the request.", + "type": "object", "additionalProperties": { "description": "Properties of the object." }, - "type": "object" + "description": "Optional. The metadata to be associated with the request." } - }, - "type": "object" + } }, - "FunctionDeclaration": { + "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).", "type": "object", - "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.", "properties": { "description": { - "type": "string", - "description": "Required. A brief description of the function." + "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.", + "type": "string" }, - "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`." + "maximum": { + "format": "double", + "type": "number", + "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER" }, - "parameters": { - "$ref": "#/components/schemas/Schema", - "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." + "required": { + "type": "array", + "description": "Optional. Required properties of Type.OBJECT.", + "items": { + "type": "string" + } }, - "behavior": { - "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.", + "properties": { + "additionalProperties": { + "$ref": "#/components/schemas/Schema" + }, + "type": "object", + "description": "Optional. Properties of Type.OBJECT." + }, + "maxProperties": { + "description": "Optional. Maximum number of the properties for Type.OBJECT.", + "format": "int64", + "type": "string" + }, + "minimum": { + "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER", + "format": "double", + "type": "number" + }, + "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." + }, + "maxItems": { "type": "string", - "enum": [ - "UNSPECIFIED", - "BLOCKING", - "NON_BLOCKING" - ], - "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." - ] + "description": "Optional. Maximum number of the elements for Type.ARRAY.", + "format": "int64" }, - "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." + "minLength": { + "format": "int64", + "type": "string", + "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING" }, - "name": { - "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.", + "propertyOrdering": { + "type": "array", + "items": { + "type": "string" + }, + "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." + }, + "title": { + "description": "Optional. The title of the schema.", "type": "string" }, - "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`." - } - } - }, - "EmbeddingUsageMetadata": { - "type": "object", - "description": "Metadata on the usage of the embedding request.", - "properties": { - "promptTokenDetails": { - "readOnly": true, + "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\"]}", "items": { - "$ref": "#/components/schemas/ModalityTokenCount" + "type": "string" }, - "description": "Output only. List of modalities that were processed in the request input.", "type": "array" }, - "promptTokenCount": { - "description": "Output only. Number of tokens in the prompt.", - "type": "integer", - "format": "int32", - "readOnly": true - } - } - }, - "AuthToken": { - "description": "A request to create an ephemeral authentication token.", - "properties": { - "fieldMask": { - "format": "google-fieldmask", + "maxLength": { + "description": "Optional. Maximum length of the Type.STRING", "type": "string", - "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." + "format": "int64" }, - "name": { + "format": { "type": "string", - "description": "Output only. Identifier. The token itself.", - "readOnly": true - }, - "bidiGenerateContentSetup": { - "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`.", - "$ref": "#/components/schemas/BidiGenerateContentSetup" + "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality." }, - "expireTime": { - "format": "google-datetime", - "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": { + "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.", "type": "string" }, - "uses": { - "format": "int32", - "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" + "nullable": { + "type": "boolean", + "description": "Optional. Indicates if the value may be null." }, - "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", - "format": "google-datetime" - } - }, - "type": "object" - }, - "SlidingWindow": { - "type": "object", - "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.", - "properties": { - "targetTokens": { - "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.", + "pattern": { + "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.", "type": "string" - } - } - }, - "ImportFileRequest": { - "properties": { - "fileName": { + }, + "minItems": { + "format": "int64", "type": "string", - "description": "Required. The name of the `File` to import. Example: `files/abc-123`" + "description": "Optional. Minimum number of the elements for Type.ARRAY." }, - "customMetadata": { + "anyOf": { "type": "array", - "description": "Custom metadata to be associated with the file.", + "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.", "items": { - "$ref": "#/components/schemas/CustomMetadata" + "$ref": "#/components/schemas/Schema" } }, - "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" + "example": { + "description": "Optional. Example of the object. Will only populated when the object is the root." + }, + "items": { + "$ref": "#/components/schemas/Schema", + "description": "Optional. Schema of the elements of Type.ARRAY." + }, + "minProperties": { + "description": "Optional. Minimum number of the properties for Type.OBJECT.", + "type": "string", + "format": "int64" } - }, - "type": "object", - "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`." + } }, - "GenerationConfig": { + "Source": { + "type": "object", + "description": "A source to be mounted into the environment.", "properties": { - "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." - }, - "topP": { - "format": "float", - "type": "number", - "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." - }, - "responseSchema": { - "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, - "$ref": "#/components/schemas/Schema" + "content": { + "description": "The inline content if `type` is `INLINE`.", + "type": "string" }, - "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." + "encoding": { + "type": "string", + "description": "Optional encoding for inline content (e.g. `base64`)." }, - "mediaResolution": { + "type": { + "type": "string", "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)." + "", + "A Cloud Storage bucket.", + "Inline content.", + "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)." ], - "type": "string", - "description": "Optional. If specified, the media resolution specified will be used.", "enum": [ - "MEDIA_RESOLUTION_UNSPECIFIED", - "MEDIA_RESOLUTION_LOW", - "MEDIA_RESOLUTION_MEDIUM", - "MEDIA_RESOLUTION_HIGH" + "TYPE_UNSPECIFIED", + "GCS", + "INLINE", + "REPOSITORY" ] }, - "responseLogprobs": { - "type": "boolean", - "description": "Optional. If true, export the logprobs results in response." - }, - "maxOutputTokens": { - "type": "integer", - "format": "int32", - "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." - }, - "topK": { - "type": "integer", - "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.", - "format": "int32" - }, - "translationConfig": { - "$ref": "#/components/schemas/TranslationConfig", - "description": "Optional. Config for translation." - }, - "temperature": { - "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].", - "format": "float", - "type": "number" + "source": { + "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path.", + "type": "string" }, - "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.", + "target": { + "type": "string", + "description": "Where the source should appear in the environment." + } + } + }, + "ToolCall": { + "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`.", + "properties": { + "toolName": { + "description": "Optional. The name of the tool that was called.", "type": "string" }, - "logprobs": { - "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].", - "format": "int32" + "toolType": { + "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." + ], + "enum": [ + "TOOL_TYPE_UNSPECIFIED", + "GOOGLE_SEARCH_WEB", + "GOOGLE_SEARCH_IMAGE", + "URL_CONTEXT", + "GOOGLE_MAPS", + "FILE_SEARCH" + ], + "type": "string", + "description": "Required. The type of tool that was called." }, - "speechConfig": { - "$ref": "#/components/schemas/SpeechConfig", - "description": "Optional. The speech generation config." + "args": { + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object", + "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}" }, - "enableAffectiveDialog": { - "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly.", - "type": "boolean" + "id": { + "type": "string", + "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`." + } + } + }, + "ListGeneratedFilesResponse": { + "description": "Response for `ListGeneratedFiles`.", + "type": "object", + "properties": { + "nextPageToken": { + "type": "string", + "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call." }, - "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.", + "generatedFiles": { "type": "array", "items": { - "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" - ], + "$ref": "#/components/schemas/GeneratedFile" + }, + "description": "The list of `GeneratedFile`s." + } + } + }, + "ListOperationsResponse": { + "description": "The response message for Operations.ListOperations.", + "properties": { + "unreachable": { + "type": "array", + "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.", + "items": { "type": "string" } }, - "stopSequences": { - "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.", + "operations": { "items": { - "type": "string" + "$ref": "#/components/schemas/Operation" }, + "description": "A list of operations that matches the specified filter in the request.", "type": "array" }, - "imageConfig": { - "$ref": "#/components/schemas/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." + "nextPageToken": { + "description": "The standard List next-page token.", + "type": "string" + } + }, + "type": "object" + }, + "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.", + "properties": { + "targetTokens": { + "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.", + "type": "string" + } + }, + "type": "object" + }, + "Permission": { + "properties": { + "granteeType": { + "type": "string", + "description": "Optional. Immutable. The type of the grantee.", + "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" + ] }, - "presencePenalty": { - "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.", - "format": "float", - "type": "number" + "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" }, - "audioTranscriptionConfig": { - "description": "Optional. Config for audio transcription (speech recognition).", - "$ref": "#/components/schemas/AudioTranscriptionConfig" + "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" }, - "responseJsonSchema": { - "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field." + "role": { + "enum": [ + "ROLE_UNSPECIFIED", + "OWNER", + "WRITER", + "READER" + ], + "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." + ], + "description": "Required. The role granted by this permission.", + "type": "string" + } + }, + "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", + "type": "object" + }, + "GroundingPassageId": { + "properties": { + "passageId": { + "type": "string", + "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.", + "readOnly": true }, - "seed": { - "format": "int32", + "partIndex": { + "readOnly": true, "type": "integer", - "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed." - }, - "candidateCount": { - "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)", "format": "int32", - "type": "integer" - }, - "frequencyPenalty": { - "type": "number", - "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.", - "format": "float" - }, - "enableEnhancedCivicAnswers": { - "description": "Optional. Enables enhanced civic answers. It may not be available for all models.", - "type": "boolean" + "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`." } }, - "type": "object", - "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model." + "description": "Identifier for a part within a `GroundingPassage`.", + "type": "object" }, - "TranslationConfig": { - "description": "Config for translation features.", - "type": "object", + "GoogleMaps": { "properties": { - "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.", + "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" - }, - "targetLanguageCode": { - "type": "string", - "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")." } - } + }, + "description": "The GoogleMaps Tool that provides geospatial context for the user's query.", + "type": "object" }, - "RegisterFilesResponse": { + "BatchStats": { + "type": "object", "properties": { - "files": { - "items": { - "$ref": "#/components/schemas/File" - }, - "description": "The registered files to be used when calling GenerateContent.", - "type": "array" + "failedRequestCount": { + "readOnly": true, + "format": "int64", + "type": "string", + "description": "Output only. The number of requests that failed to be processed." + }, + "successfulRequestCount": { + "description": "Output only. The number of requests that were successfully processed.", + "readOnly": true, + "type": "string", + "format": "int64" + }, + "pendingRequestCount": { + "format": "int64", + "description": "Output only. The number of requests that are still pending processing.", + "readOnly": true, + "type": "string" + }, + "requestCount": { + "readOnly": true, + "description": "Output only. The number of requests in the batch.", + "format": "int64", + "type": "string" } }, - "type": "object", - "description": "Response for `RegisterFiles`." + "description": "Stats about the batch." }, - "ContentEmbedding": { + "SafetySetting": { + "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.", "type": "object", - "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" + "threshold": { + "type": "string", + "enum": [ + "HARM_BLOCK_THRESHOLD_UNSPECIFIED", + "BLOCK_LOW_AND_ABOVE", + "BLOCK_MEDIUM_AND_ABOVE", + "BLOCK_ONLY_HIGH", + "BLOCK_NONE", + "OFF" + ], + "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." + ] }, - "shape": { - "items": { - "type": "integer", - "format": "int32" - }, - "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).", - "type": "array" + "category": { + "enumDeprecated": [ + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + false, + true, + false + ], + "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)." + ], + "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" + ], + "type": "string", + "description": "Required. The category for this setting." } } }, - "GroundingMetadata": { + "ReviewSnippet": { + "properties": { + "googleMapsUri": { + "description": "A link that corresponds to the user review on Google Maps.", + "type": "string" + }, + "title": { + "description": "Title of the review.", + "type": "string" + }, + "reviewId": { + "description": "The ID of the review snippet.", + "type": "string" + } + }, + "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.", + "type": "object" + }, + "Tool": { "type": "object", - "description": "Metadata returned to client when grounding is enabled.", "properties": { - "searchEntryPoint": { - "$ref": "#/components/schemas/SearchEntryPoint", - "description": "Optional. Google search entry for the following-up web searches." + "googleSearchRetrieval": { + "description": "Optional. Retrieval tool that is powered by Google search.", + "$ref": "#/components/schemas/GoogleSearchRetrieval" + }, + "googleMaps": { + "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query.", + "$ref": "#/components/schemas/GoogleMaps" + }, + "computerUse": { + "$ref": "#/components/schemas/ComputerUse", + "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations." }, - "groundingChunks": { + "functionDeclarations": { "items": { - "$ref": "#/components/schemas/GroundingChunk" + "$ref": "#/components/schemas/FunctionDeclaration" }, - "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." + "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.", + "type": "array" }, - "imageSearchQueries": { + "mcpServers": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/McpServer" }, - "description": "Image search queries used for grounding." + "description": "Optional. MCP Servers to connect to." }, - "groundingSupports": { - "type": "array", - "items": { - "$ref": "#/components/schemas/GoogleAiGenerativelanguageV1betaGroundingSupport" - }, - "description": "List of grounding support." + "fileSearch": { + "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora.", + "$ref": "#/components/schemas/FileSearch" }, - "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" + "googleSearch": { + "$ref": "#/components/schemas/GoogleSearch", + "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google." }, - "webSearchQueries": { - "type": "array", - "description": "Web search queries for the following-up web search.", - "items": { - "type": "string" - } + "codeExecution": { + "description": "Optional. Enables the model to execute code as part of generation.", + "$ref": "#/components/schemas/CodeExecution" }, - "retrievalMetadata": { - "description": "Metadata related to retrieval in the grounding flow.", - "$ref": "#/components/schemas/RetrievalMetadata" + "urlContext": { + "description": "Optional. Tool to support URL context retrieval.", + "$ref": "#/components/schemas/UrlContext" } - } + }, + "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: 17" }, - "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.", + "Web": { "type": "object", "properties": { - "slidingWindow": { - "description": "A sliding-window mechanism.", - "$ref": "#/components/schemas/SlidingWindow" + "uri": { + "readOnly": true, + "description": "Output only. URI reference of the chunk.", + "type": "string" }, - "triggerTokens": { + "title": { "type": "string", - "format": "int64", - "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." + "readOnly": true, + "description": "Output only. Title of the chunk." } - } + }, + "description": "Chunk from the web." }, - "CountTokensRequest": { + "EmbeddingUsageMetadata": { "properties": { - "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" + "promptTokenCount": { + "format": "int32", + "description": "Output only. Number of tokens in the prompt.", + "readOnly": true, + "type": "integer" }, - "contents": { + "promptTokenDetails": { + "readOnly": true, "type": "array", "items": { - "$ref": "#/components/schemas/Content" + "$ref": "#/components/schemas/ModalityTokenCount" }, - "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set." + "description": "Output only. List of modalities that were processed in the request input." } }, - "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`.", + "description": "Metadata on the usage of the embedding request.", "type": "object" }, - "ListOperationsResponse": { + "Interval": { + "properties": { + "startTime": { + "format": "google-datetime", + "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" + }, + "endTime": { + "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.", + "format": "google-datetime", + "type": "string" + } + }, + "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" + }, + "ImageResponseFormat": { + "description": "Configuration for image output format.", "type": "object", "properties": { - "unreachable": { + "delivery": { + "x-enum-descriptions": [ + "Default value. This value is unused.", + "Image data is returned inline in the response.", + "Image data is returned as a URI." + ], + "type": "string", + "description": "Optional. The delivery mode for the image output.", + "enum": [ + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ] + }, + "mimeType": { + "x-enum-descriptions": [ + "Default value. This value is unused.", + "JPEG image format." + ], + "type": "string", + "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." + }, + "imageSize": { + "type": "string", + "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." + ], + "enum": [ + "IMAGE_SIZE_UNSPECIFIED", + "IMAGE_SIZE_FIVE_TWELVE", + "IMAGE_SIZE_ONE_K", + "IMAGE_SIZE_TWO_K", + "IMAGE_SIZE_FOUR_K" + ] + } + } + }, + "MultiSpeakerVoiceConfig": { + "description": "The configuration for the multi-speaker setup.", + "properties": { + "speakerVoiceConfigs": { "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/SpeakerVoiceConfig" }, - "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": "Required. All the enabled speaker voices." + } + }, + "type": "object" + }, + "EmbedContentConfig": { + "description": "Configurations for the EmbedContent request.", + "type": "object", + "properties": { + "autoTruncate": { + "type": "boolean", + "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length." }, - "operations": { - "items": { - "$ref": "#/components/schemas/Operation" - }, - "description": "A list of operations that matches the specified filter in the request.", - "type": "array" + "documentOcr": { + "type": "boolean", + "description": "Optional. Whether to enable OCR for document content." }, - "nextPageToken": { + "taskType": { + "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", + "enum": [ + "TASK_TYPE_UNSPECIFIED", + "RETRIEVAL_QUERY", + "RETRIEVAL_DOCUMENT", + "SEMANTIC_SIMILARITY", + "CLASSIFICATION", + "CLUSTERING", + "QUESTION_ANSWERING", + "FACT_VERIFICATION", + "CODE_RETRIEVAL_QUERY" + ] + }, + "outputDimensionality": { + "format": "int32", + "type": "integer", + "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end." + }, + "title": { "type": "string", - "description": "The standard List next-page token." + "description": "Optional. The title for the text." + }, + "audioTrackExtraction": { + "type": "boolean", + "description": "Optional. Whether to extract audio from video content." } - }, - "description": "The response message for Operations.ListOperations." + } }, - "UploadToFileSearchStoreRequest": { - "description": "Request for `UploadToFileSearchStore`.", + "RetrievedContext": { "properties": { "customMetadata": { - "description": "Custom metadata to be associated with the data.", "items": { - "$ref": "#/components/schemas/CustomMetadata" + "$ref": "#/components/schemas/GroundingChunkCustomMetadata" }, + "description": "Optional. User-provided metadata about the retrieved context.", "type": "array" }, - "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" + "fileSearchStore": { + "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`", + "type": "string" }, - "mimeType": { - "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.", + "pageNumber": { + "format": "int32", + "type": "integer", + "description": "Optional. Page number of the retrieved context, if applicable." + }, + "title": { + "description": "Optional. Title of the document.", "type": "string" }, - "displayName": { - "description": "Optional. Display name of the created document.", + "text": { + "type": "string", + "description": "Optional. Text of the chunk." + }, + "mediaId": { + "type": "string", + "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}" + }, + "uri": { + "description": "Optional. URI reference of the semantic retrieval document.", "type": "string" } }, - "type": "object" - }, - "InlinedEmbedContentResponses": { "type": "object", - "properties": { - "inlinedResponses": { - "description": "Output only. The responses to the requests in the batch.", - "items": { - "$ref": "#/components/schemas/InlinedEmbedContentResponse" - }, - "readOnly": true, - "type": "array" - } - }, - "description": "The responses to the requests in the batch." + "description": "Chunk from context retrieved by the file search tool." }, - "EnvironmentNetworkEgressAllowlist": { + "AudioResponseFormat": { "type": "object", - "description": "Network egress configuration for the environment.", + "description": "Configuration for audio output format.", "properties": { - "allowlist": { - "items": { - "$ref": "#/components/schemas/EgressRule" - }, - "description": "List of allowed domains and their configurations.", - "type": "array" + "sampleRate": { + "description": "Optional. Sample rate in Hz.", + "type": "integer", + "format": "int32" + }, + "delivery": { + "description": "Optional. The delivery mode for the audio output.", + "enum": [ + "DELIVERY_UNSPECIFIED", + "INLINE", + "URI" + ], + "x-enum-descriptions": [ + "Default value. This value is unused.", + "Audio data is returned inline in the response.", + "Audio data is returned as a URI." + ], + "type": "string" + }, + "bitRate": { + "type": "integer", + "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).", + "format": "int32" + }, + "mimeType": { + "enum": [ + "MIME_TYPE_UNSPECIFIED", + "AUDIO_MP3", + "AUDIO_OGG_OPUS", + "AUDIO_L16", + "AUDIO_WAV", + "AUDIO_ALAW", + "AUDIO_MULAW" + ], + "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": "string", + "description": "Optional. The MIME type of the audio output." } } }, - "CachedContentUsageMetadata": { - "description": "Metadata on the usage of the cached content.", - "properties": { - "totalTokenCount": { - "description": "Total number of tokens that the cached content consumes.", - "format": "int32", - "type": "integer" - } - }, - "type": "object" - }, - "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" - }, "ListModelsResponse": { "properties": { "models": { + "description": "The returned Models.", "type": "array", "items": { "$ref": "#/components/schemas/Model" - }, - "description": "The returned Models." + } }, "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.", @@ -6953,656 +7089,582 @@ "description": "Response from `ListModel` containing a paginated list of Models.", "type": "object" }, - "CustomLongRunningOperation": { + "Hyperparameters": { + "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance", "type": "object", "properties": { - "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." - } - }, - "error": { - "description": "The error result of the operation in case of failure or cancellation.", - "$ref": "#/components/schemas/Status" + "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." }, - "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" + "learningRate": { + "type": "number", + "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." }, - "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}`." + "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." }, - "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." - } + "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." } } }, - "InputEmbedContentConfig": { - "type": "object", + "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.", "properties": { - "fileName": { - "type": "string", - "description": "The name of the `File` containing the input requests." - }, - "requests": { - "description": "The requests to be processed in the batch.", - "$ref": "#/components/schemas/InlinedEmbedContentRequests" + "inlineData": { + "$ref": "#/components/schemas/FunctionResponseBlob", + "description": "Inline media bytes." } }, - "description": "Configures the input to the batch request." + "type": "object" }, - "TuningTask": { - "description": "Tuning tasks that create tuned models.", + "InlinedEmbedContentRequests": { + "type": "object", + "description": "The requests to be processed in the batch if provided as part of the batch creation request.", "properties": { - "startTime": { - "format": "google-datetime", - "readOnly": true, - "type": "string", - "description": "Output only. The timestamp when tuning this model started." - }, - "trainingData": { - "description": "Required. Input only. Immutable. The model training data.", - "$ref": "#/components/schemas/Dataset" - }, - "snapshots": { - "readOnly": true, - "description": "Output only. Metrics collected during tuning.", + "requests": { "items": { - "$ref": "#/components/schemas/TuningSnapshot" + "$ref": "#/components/schemas/InlinedEmbedContentRequest" }, - "type": "array" - }, - "completeTime": { - "readOnly": true, - "description": "Output only. The timestamp when tuning this model completed.", - "type": "string", - "format": "google-datetime" - }, - "hyperparameters": { - "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used.", - "$ref": "#/components/schemas/Hyperparameters" + "type": "array", + "description": "Required. The requests to be processed in the batch." } - }, - "type": "object" + } }, - "Operation": { + "UsageMetadata": { + "description": "Metadata on the generation request's token usage.", "type": "object", - "description": "This resource represents a long-running operation that is the result of a network API call.", "properties": { - "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." + "cachedContentTokenCount": { + "format": "int32", + "description": "Number of tokens in the cached part of the prompt (the cached content)", + "type": "integer" }, - "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.", - "type": "object", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - } + "cacheTokensDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "description": "Output only. List of modalities of the cached content in the request input.", + "readOnly": true }, - "error": { - "$ref": "#/components/schemas/Status", - "description": "The error result of the operation in case of failure or cancellation." + "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." }, - "name": { + "serviceTier": { "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}`." - }, - "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", - "additionalProperties": { - "description": "Properties of the object. Contains field @type with type URL." - } - } - } - }, - "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: 17", - "properties": { - "codeExecution": { - "$ref": "#/components/schemas/CodeExecution", - "description": "Optional. Enables the model to execute code as part of generation." + "description": "Output only. Service tier of the request.", + "x-enum-descriptions": [ + "Default service tier, which is standard.", + "Standard service tier.", + "Flex service tier.", + "Priority service tier." + ], + "enum": [ + "unspecified", + "standard", + "flex", + "priority" + ], + "readOnly": true }, - "googleSearch": { - "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.", - "$ref": "#/components/schemas/GoogleSearch" + "toolUsePromptTokenCount": { + "description": "Output only. Number of tokens present in tool-use prompt(s).", + "type": "integer", + "format": "int32", + "readOnly": true }, - "urlContext": { - "$ref": "#/components/schemas/UrlContext", - "description": "Optional. Tool to support URL context retrieval." + "promptTokensDetails": { + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + }, + "description": "Output only. List of modalities that were processed in the request input." }, - "googleMaps": { - "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query.", - "$ref": "#/components/schemas/GoogleMaps" + "thoughtsTokenCount": { + "type": "integer", + "readOnly": true, + "description": "Output only. Number of tokens of thoughts for thinking models.", + "format": "int32" }, - "functionDeclarations": { + "toolUsePromptTokensDetails": { + "readOnly": true, "items": { - "$ref": "#/components/schemas/FunctionDeclaration" + "$ref": "#/components/schemas/ModalityTokenCount" }, - "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.", + "description": "Output only. List of modalities that were processed for tool-use request inputs.", "type": "array" }, - "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" + "totalTokenCount": { + "type": "integer", + "description": "Total token count for the generation request (prompt + thoughts + response candidates).", + "format": "int32" }, - "fileSearch": { - "$ref": "#/components/schemas/FileSearch", - "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora." + "candidatesTokenCount": { + "description": "Total number of tokens across all the generated response candidates.", + "format": "int32", + "type": "integer" }, - "mcpServers": { + "candidatesTokensDetails": { + "readOnly": true, + "description": "Output only. List of modalities that were returned in the response.", "items": { - "$ref": "#/components/schemas/McpServer" + "$ref": "#/components/schemas/ModalityTokenCount" }, - "description": "Optional. MCP Servers to connect to.", "type": "array" }, - "googleSearchRetrieval": { - "description": "Optional. Retrieval tool that is powered by Google search.", - "$ref": "#/components/schemas/GoogleSearchRetrieval" + "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.", + "type": "array", + "readOnly": true, + "items": { + "$ref": "#/components/schemas/ModalityTokenCount" + } } } }, - "ListEnvironmentsResponse": { + "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", "properties": { - "nextPageToken": { - "type": "string", - "description": "Pagination token." + "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" }, - "environments": { + "details": { "items": { - "$ref": "#/components/schemas/Environment" + "type": "object", + "additionalProperties": { + "description": "Properties of the object. Contains field @type with type URL." + } }, "type": "array", - "description": "Environments belonging to the provided project." + "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use." + }, + "code": { + "type": "integer", + "format": "int32", + "description": "The status code, which should be an enum value of google.rpc.Code." } - }, - "description": "Response for `ListEnvironments`." + } }, - "ComputerUse": { - "description": "Computer Use tool type.", - "type": "object", + "ListPermissionsResponse": { "properties": { - "environment": { - "enum": [ - "ENVIRONMENT_UNSPECIFIED", - "ENVIRONMENT_BROWSER", - "ENVIRONMENT_MOBILE", - "ENVIRONMENT_DESKTOP" - ], - "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." - ], - "type": "string" - }, - "disabledSafetyPolicies": { + "permissions": { + "description": "Returned permissions.", "type": "array", - "description": "Optional. Disabled safety policies for computer use.", "items": { - "enum": [ - "SAFETY_POLICY_UNSPECIFIED", - "FINANCIAL_TRANSACTIONS", - "SENSITIVE_DATA_MODIFICATION", - "COMMUNICATION_TOOL", - "ACCOUNT_CREATION", - "DATA_MODIFICATION", - "USER_CONSENT_MANAGEMENT", - "LEGAL_TERMS_AND_AGREEMENTS" - ], - "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." - ], - "type": "string" + "$ref": "#/components/schemas/Permission" } }, - "excludedPredefinedFunctions": { - "items": { - "type": "string" - }, - "type": "array", - "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." - }, - "enablePromptInjectionDetection": { - "description": "Optional. Whether enable the prompt injection detection check on computer-use request.", - "type": "boolean" + "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." }, - "Candidate": { + "RegisterFilesResponse": { + "description": "Response for `RegisterFiles`.", + "type": "object", "properties": { - "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, - "$ref": "#/components/schemas/CitationMetadata" - }, - "urlContextMetadata": { - "description": "Output only. Metadata related to url context retrieval tool.", - "readOnly": true, - "$ref": "#/components/schemas/UrlContextMetadata" - }, - "index": { - "readOnly": true, - "format": "int32", - "type": "integer", - "description": "Output only. Index of the candidate in the list of response candidates." - }, - "safetyRatings": { + "files": { "type": "array", - "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.", + "description": "The registered files to be used when calling GenerateContent.", "items": { - "$ref": "#/components/schemas/SafetyRating" + "$ref": "#/components/schemas/File" } - }, - "groundingMetadata": { - "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls.", - "readOnly": true, - "$ref": "#/components/schemas/GroundingMetadata" - }, - "avgLogprobs": { - "format": "double", - "type": "number", - "description": "Output only. Average log probability score of the candidate.", - "readOnly": true - }, - "tokenCount": { - "format": "int32", - "description": "Output only. Token count for this candidate.", - "readOnly": true, - "type": "integer" - }, - "logprobsResult": { - "readOnly": true, - "$ref": "#/components/schemas/LogprobsResult", - "description": "Output only. Log-likelihood scores for the response tokens and top tokens" - }, - "content": { - "description": "Output only. Generated content returned from the model.", - "$ref": "#/components/schemas/Content", - "readOnly": true - }, - "finishReason": { - "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.", - "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" - ], - "readOnly": true, + } + } + }, + "VideoFileMetadata": { + "properties": { + "videoDuration": { + "description": "Duration of the video.", "type": "string", + "format": "google-duration" + } + }, + "type": "object", + "description": "Metadata for a video `File`." + }, + "CreateEnvironmentRequest": { + "type": "object", + "properties": { + "networkMode": { "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 value. Unused.", + "All network egress is blocked." + ], + "enum": [ + "NETWORK_MODE_UNSPECIFIED", + "DISABLED" + ], + "description": "Network egress mode.", + "type": "string" }, - "groundingAttributions": { - "items": { - "$ref": "#/components/schemas/GroundingAttribution" - }, - "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.", - "readOnly": true, - "type": "array" + "networkAllowlist": { + "description": "Allow only specific domains.", + "$ref": "#/components/schemas/EnvironmentNetworkEgressAllowlist" }, - "finishMessage": { - "readOnly": true, - "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.", - "type": "string" + "sources": { + "items": { + "$ref": "#/components/schemas/Source" + }, + "description": "Sources to be mounted into the environment.", + "type": "array" } }, - "description": "A response candidate generated from the model.", + "description": "Request for `CreateEnvironment`." + }, + "ImageSearch": { + "description": "Image search for grounding and related configurations.", + "properties": {}, "type": "object" }, - "VideoFileMetadata": { - "description": "Metadata for a video `File`.", - "type": "object", + "TuningTask": { + "description": "Tuning tasks that create tuned models.", "properties": { - "videoDuration": { + "trainingData": { + "$ref": "#/components/schemas/Dataset", + "description": "Required. Input only. Immutable. The model training data." + }, + "completeTime": { + "description": "Output only. The timestamp when tuning this model completed.", + "readOnly": true, + "format": "google-datetime", + "type": "string" + }, + "startTime": { + "format": "google-datetime", "type": "string", - "description": "Duration of the video.", - "format": "google-duration" + "readOnly": true, + "description": "Output only. The timestamp when tuning this model started." + }, + "snapshots": { + "type": "array", + "description": "Output only. Metrics collected during tuning.", + "items": { + "$ref": "#/components/schemas/TuningSnapshot" + }, + "readOnly": true + }, + "hyperparameters": { + "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used.", + "$ref": "#/components/schemas/Hyperparameters" } - } + }, + "type": "object" }, - "SemanticRetrieverChunk": { + "ToolConfig": { + "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.", "type": "object", - "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.", "properties": { - "source": { - "type": "string", - "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`", - "readOnly": true + "functionCallingConfig": { + "description": "Optional. Function calling config.", + "$ref": "#/components/schemas/FunctionCallingConfig" }, - "chunk": { - "readOnly": true, - "type": "string", - "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`" + "retrievalConfig": { + "$ref": "#/components/schemas/RetrievalConfig", + "description": "Optional. Retrieval config." + }, + "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." } } }, - "EmbedContentConfig": { - "description": "Configurations for the EmbedContent request.", + "ExecutableCode": { "properties": { - "taskType": { - "description": "Optional. The task type of the embedding.", + "code": { + "description": "Required. The code to be executed.", + "type": "string" + }, + "language": { + "enum": [ + "LANGUAGE_UNSPECIFIED", + "PYTHON" + ], + "description": "Required. Programming language of the `code`.", "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" + "Unspecified language. This value should not be used.", + "Python >= 3.10, with numpy and simpy available. Python is the default language." ] }, - "title": { + "id": { "type": "string", - "description": "Optional. The title for the text." - }, - "audioTrackExtraction": { - "description": "Optional. Whether to extract audio from video content.", - "type": "boolean" - }, - "documentOcr": { - "description": "Optional. Whether to enable OCR for document content.", - "type": "boolean" - }, - "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" - }, - "autoTruncate": { - "type": "boolean", - "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length." + "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`." } }, + "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.", "type": "object" }, - "EmbedContentRequest": { + "FunctionCall": { "properties": { - "taskType": { - "type": "string", - "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`).", - "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" - ], - "deprecated": true - }, - "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}`", + "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" }, - "content": { - "description": "Required. The content to embed. Only the `parts.text` fields will be counted.", - "$ref": "#/components/schemas/Content" - }, - "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.", - "type": "string", - "deprecated": true - }, - "embedContentConfig": { - "$ref": "#/components/schemas/EmbedContentConfig", - "description": "Optional. Configuration for the EmbedContent request." + "args": { + "additionalProperties": { + "description": "Properties of the object." + }, + "type": "object", + "description": "Optional. The function parameters and values in JSON object format." }, - "outputDimensionality": { - "type": "integer", - "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`).", - "format": "int32", - "deprecated": true + "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" } }, - "description": "Request containing the `Content` for the model to embed.", - "type": "object" + "type": "object", + "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values." }, - "Hyperparameters": { - "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance", + "VideoMetadata": { "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": { - "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.", - "type": "integer" - }, - "learningRate": { - "format": "float", + "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", - "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." + "format": "double" }, - "learningRateMultiplier": { - "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": "number" + "endOffset": { + "description": "Optional. The end offset of the video.", + "type": "string", + "format": "google-duration" + }, + "startOffset": { + "type": "string", + "description": "Optional. The start offset of the video.", + "format": "google-duration" } }, - "type": "object" + "type": "object", + "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.", + "deprecated": true }, - "PromptFeedback": { + "ThinkingConfig": { + "description": "Config for thinking features.", "type": "object", "properties": { - "blockReason": { + "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", "enum": [ - "BLOCK_REASON_UNSPECIFIED", - "SAFETY", - "OTHER", - "BLOCKLIST", - "PROHIBITED_CONTENT", - "IMAGE_SAFETY" + "THINKING_LEVEL_UNSPECIFIED", + "MINIMAL", + "LOW", + "MEDIUM", + "HIGH" ], - "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt.", - "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." + "Default value.", + "Little to no thinking.", + "Low thinking level.", + "Medium thinking level.", + "High thinking level." ] }, - "safetyRatings": { - "type": "array", + "thinkingBudget": { + "format": "int32", + "description": "The number of thoughts tokens that the model should generate.", + "type": "integer" + }, + "includeThoughts": { + "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.", + "type": "boolean" + } + } + }, + "LogprobsResult": { + "description": "Logprobs Result", + "type": "object", + "properties": { + "topCandidates": { + "type": "array", + "description": "Length = total number of decoding steps.", + "items": { + "$ref": "#/components/schemas/TopCandidates" + } + }, + "chosenCandidates": { "items": { - "$ref": "#/components/schemas/SafetyRating" + "$ref": "#/components/schemas/LogprobsResultCandidate" }, - "description": "Ratings for safety of the prompt. There is at most one rating per category." + "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.", + "type": "array" + }, + "logProbabilitySum": { + "format": "float", + "description": "Sum of log probabilities for all tokens.", + "type": "number" } - }, - "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`." + } }, - "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.", + "CitationMetadata": { + "description": "A collection of source attributions for a piece of content.", "type": "object", "properties": { - "inlineData": { - "$ref": "#/components/schemas/FunctionResponseBlob", - "description": "Inline media bytes." + "citationSources": { + "items": { + "$ref": "#/components/schemas/CitationSource" + }, + "description": "Citations to sources for a specific response.", + "type": "array" } } }, - "WebSearch": { - "description": "Standard web search for grounding and related configurations.", - "properties": {}, + "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" }, - "StreamableHttpTransport": { - "description": "A transport that can stream HTTP requests and responses. Next ID: 6", + "InlinedRequests": { + "description": "The requests to be processed in the batch if provided as part of the batch creation request.", "type": "object", "properties": { - "url": { - "type": "string", - "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"" - }, - "sseReadTimeout": { - "format": "google-duration", - "type": "string", - "description": "Timeout for SSE read operations." - }, - "terminateOnClose": { - "description": "Whether to close the client session when the transport closes.", - "type": "boolean" - }, - "headers": { - "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.", - "type": "object", - "additionalProperties": { - "type": "string" - } + "requests": { + "items": { + "$ref": "#/components/schemas/InlinedRequest" + }, + "description": "Required. The requests to be processed in the batch.", + "type": "array" + } + } + }, + "ContentEmbedding": { + "description": "A list of floats representing an embedding.", + "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." }, - "timeout": { - "description": "HTTP timeout for regular operations.", - "format": "google-duration", - "type": "string" + "shape": { + "items": { + "format": "int32", + "type": "integer" + }, + "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).", + "type": "array" } } }, - "Maps": { + "Corpus": { "properties": { - "placeId": { - "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place.", + "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`", + "readOnly": true, "type": "string" }, - "uri": { - "type": "string", - "description": "URI reference of the place." - }, - "text": { - "type": "string", - "description": "Text description of the place answer." + "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" }, - "title": { - "description": "Title of the place.", + "createTime": { + "readOnly": true, + "format": "google-datetime", + "description": "Output only. The Timestamp of when the `Corpus` was created.", "type": "string" }, - "placeAnswerSources": { - "$ref": "#/components/schemas/PlaceAnswerSources", - "description": "Sources that provide answers about the features of a given place in Google Maps." + "updateTime": { + "format": "google-datetime", + "readOnly": true, + "description": "Output only. The Timestamp of when the `Corpus` was last updated.", + "type": "string" } }, "type": "object", - "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place." + "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora." }, - "ModalityTokenCount": { - "description": "Represents token counting info for a single modality.", + "ResponseFormatConfig": { + "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.", "type": "object", "properties": { - "modality": { - "type": "string", + "text": { + "description": "Optional. Text output format configuration.", + "$ref": "#/components/schemas/TextResponseFormat" + }, + "audio": { + "description": "Optional. Audio output format configuration.", + "$ref": "#/components/schemas/AudioResponseFormat" + }, + "image": { + "description": "Optional. Image output format configuration.", + "$ref": "#/components/schemas/ImageResponseFormat" + } + } + }, + "AutomaticActivityDetection": { + "type": "object", + "description": "Configures automatic detection of activity.", + "properties": { + "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" + }, + "startOfSpeechSensitivity": { + "enum": [ + "START_SENSITIVITY_UNSPECIFIED", + "START_SENSITIVITY_HIGH", + "START_SENSITIVITY_LOW" + ], + "description": "Optional. Determines how likely speech is to be detected.", "x-enum-descriptions": [ - "Unspecified modality.", - "Plain text.", - "Image.", - "Video.", - "Audio.", - "Document, e.g. PDF." + "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." ], + "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." + }, + "endOfSpeechSensitivity": { + "description": "Optional. Determines how likely detected speech is ended.", + "type": "string", "enum": [ - "MODALITY_UNSPECIFIED", - "TEXT", - "IMAGE", - "VIDEO", - "AUDIO", - "DOCUMENT" + "END_SENSITIVITY_UNSPECIFIED", + "END_SENSITIVITY_HIGH", + "END_SENSITIVITY_LOW" ], - "description": "The modality associated with this token count." + "x-enum-descriptions": [ + "The default is END_SENSITIVITY_HIGH.", + "Automatic detection ends speech more often.", + "Automatic detection ends speech less often." + ] }, - "tokenCount": { - "description": "Number of tokens.", + "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" } } @@ -7610,15 +7672,89 @@ "PlaceAnswerSources": { "properties": { "reviewSnippets": { - "type": "array", - "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.", "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" } }, "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.", "type": "object" + }, + "ComputerUse": { + "type": "object", + "properties": { + "disabledSafetyPolicies": { + "description": "Optional. Disabled safety policies for computer use.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "SAFETY_POLICY_UNSPECIFIED", + "FINANCIAL_TRANSACTIONS", + "SENSITIVE_DATA_MODIFICATION", + "COMMUNICATION_TOOL", + "ACCOUNT_CREATION", + "DATA_MODIFICATION", + "USER_CONSENT_MANAGEMENT", + "LEGAL_TERMS_AND_AGREEMENTS" + ], + "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." + ] + } + }, + "environment": { + "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" + ], + "description": "Required. The environment being operated.", + "type": "string" + }, + "enablePromptInjectionDetection": { + "type": "boolean", + "description": "Optional. Whether enable the prompt injection detection check on computer-use request." + }, + "excludedPredefinedFunctions": { + "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.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "description": "Computer Use tool type." + }, + "ImageConfig": { + "type": "object", + "properties": { + "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`." + }, + "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." + } + }, + "description": "Config for image generation features." } } }