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