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 6adc8f07..ceceacd5 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
@@ -428,12 +428,12 @@ partial void ProcessAuthTokensCreateResponseContent(
///
/// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages.
///
- ///
- /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.
- ///
///
/// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.
///
+ ///
+ /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.
+ ///
///
/// Optional. Input only. Immutable. The 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.
///
@@ -445,8 +445,8 @@ partial void ProcessAuthTokensCreateResponseContent(
///
public async global::System.Threading.Tasks.Task AuthTokensCreateAsync(
global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default,
- string? fieldMask = default,
string? newSessionExpireTime = default,
+ string? fieldMask = default,
int? uses = default,
string? expireTime = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
@@ -455,8 +455,8 @@ partial void ProcessAuthTokensCreateResponseContent(
var __request = new global::Google.Gemini.AuthToken
{
BidiGenerateContentSetup = bidiGenerateContentSetup,
- FieldMask = fieldMask,
NewSessionExpireTime = newSessionExpireTime,
+ FieldMask = fieldMask,
Uses = uses,
ExpireTime = expireTime,
};
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 759f9abe..4c4546dc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
@@ -448,23 +448,23 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
///
///
///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// Stats about the batch.
///
- ///
- /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// 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.
+ ///
+ /// Configures the input to the batch request.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -472,23 +472,23 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
public async global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync(
string batchesId,
string? updateMask = default,
- global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ string? model = default,
string? priority = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
string? displayName = default,
- string? model = default,
- global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentBatch
{
- InputConfig = inputConfig,
- Output = output,
+ BatchStats = batchStats,
+ Model = model,
Priority = priority,
+ Output = output,
DisplayName = displayName,
- Model = model,
- BatchStats = batchStats,
+ InputConfig = inputConfig,
};
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 9cd532c5..81db9ef6 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(
///
///
///
- ///
- /// Required. The user-defined name of this batch.
- ///
///
/// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
///
///
/// Stats about the batch.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
+ ///
+ /// Configures the input to the batch request.
+ ///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
- ///
/// 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,
- string? displayName = default,
string? priority = default,
- global::Google.Gemini.InputConfig? inputConfig = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.BatchStats? batchStats = default,
+ string? displayName = default,
+ global::Google.Gemini.InputConfig? inputConfig = default,
string? model = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentBatch
{
- DisplayName = displayName,
Priority = priority,
- InputConfig = inputConfig,
+ Output = output,
BatchStats = batchStats,
+ DisplayName = displayName,
+ InputConfig = inputConfig,
Model = model,
- Output = output,
};
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 7f2f11c8..2894dd5e 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,14 +425,20 @@ partial void ProcessCachedContentsCreateResponseContent(
///
/// Creates CachedContent resource.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
///
/// Optional. Input only. Immutable. The content to cache.
@@ -440,45 +446,39 @@ partial void ProcessCachedContentsCreateResponseContent(
///
/// Metadata on the usage of the cached content.
///
- ///
- /// 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.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
///
/// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the 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 CachedContentsCreateAsync(
- string? model = default,
+ string? displayName = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? tools = default,
+ string? expireTime = default,
+ string? model = default,
global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? expireTime = default,
- string? displayName = default,
+ global::System.Collections.Generic.IList? tools = default,
string? ttl = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- Model = model,
+ DisplayName = displayName,
+ ToolConfig = toolConfig,
SystemInstruction = systemInstruction,
- Tools = tools,
+ ExpireTime = expireTime,
+ Model = model,
Contents = contents,
UsageMetadata = usageMetadata,
- ExpireTime = expireTime,
- DisplayName = displayName,
+ Tools = tools,
Ttl = ttl,
- ToolConfig = toolConfig,
};
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 9a19ec05..e0b9f02f 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,14 +448,20 @@ partial void ProcessCachedContentsPatchResponseContent(
///
///
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
///
/// Optional. Input only. Immutable. The content to cache.
@@ -463,47 +469,41 @@ partial void ProcessCachedContentsPatchResponseContent(
///
/// Metadata on the usage of the cached content.
///
- ///
- /// 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.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
///
/// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the 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 CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? model = default,
+ string? displayName = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? tools = default,
+ string? expireTime = default,
+ string? model = default,
global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? expireTime = default,
- string? displayName = default,
+ global::System.Collections.Generic.IList? tools = default,
string? ttl = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CachedContent
{
- Model = model,
+ DisplayName = displayName,
+ ToolConfig = toolConfig,
SystemInstruction = systemInstruction,
- Tools = tools,
+ ExpireTime = expireTime,
+ Model = model,
Contents = contents,
UsageMetadata = usageMetadata,
- ExpireTime = expireTime,
- DisplayName = displayName,
+ Tools = tools,
Ttl = ttl,
- ToolConfig = toolConfig,
};
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 c8ec7f86..5e53cccf 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 198dc316..ed2f0c85 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 456f3bab..37123c15 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
@@ -438,32 +438,32 @@ partial void ProcessDynamicGenerateContentResponseContent(
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -474,15 +474,15 @@ partial void ProcessDynamicGenerateContentResponseContent(
public async global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -490,15 +490,15 @@ partial void ProcessDynamicGenerateContentResponseContent(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 57daa48c..9568e48a 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
@@ -442,32 +442,32 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
///
/// 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -478,15 +478,15 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
public async global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -494,15 +494,15 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 cf008916..0710b9b3 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
@@ -383,32 +383,32 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
///
/// 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -419,15 +419,15 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
@@ -435,15 +435,15 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 bf94838f..7ad2c3e1 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,6 +425,9 @@ partial void ProcessEnvironmentsCreateResponseContent(
///
/// Creates an environment.
///
+ ///
+ /// Network egress configuration for the environment.
+ ///
///
/// Network egress mode.
///
@@ -434,26 +437,23 @@ partial void ProcessEnvironmentsCreateResponseContent(
///
/// Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.
///
- ///
- /// Network egress configuration for the environment.
- ///
/// 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.EnvironmentNetworkEgressAllowlist? networkAllowlist = default,
global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default,
global::System.Collections.Generic.IList? sources = default,
string? fromEnvironment = default,
- global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.CreateEnvironmentRequest
{
+ NetworkAllowlist = networkAllowlist,
NetworkMode = networkMode,
Sources = sources,
FromEnvironment = fromEnvironment,
- NetworkAllowlist = networkAllowlist,
};
return await EnvironmentsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs
new file mode 100644
index 00000000..48081960
--- /dev/null
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs
@@ -0,0 +1,479 @@
+
+#nullable enable
+
+namespace Google.Gemini
+{
+ public partial class GeminiClient
+ {
+
+
+ private static readonly global::Google.Gemini.EndPointSecurityRequirement s_EnvironmentsFilesMediaUploadSecurityRequirement0 =
+ 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_EnvironmentsFilesMediaUploadSecurityRequirements =
+ new global::Google.Gemini.EndPointSecurityRequirement[]
+ { s_EnvironmentsFilesMediaUploadSecurityRequirement0,
+ };
+ partial void PrepareEnvironmentsFilesMediaUploadArguments(
+ global::System.Net.Http.HttpClient httpClient,
+ ref string environmentsId,
+ ref string filesId,
+ global::Google.Gemini.UploadEnvironmentFileRequest request);
+ partial void PrepareEnvironmentsFilesMediaUploadRequest(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string environmentsId,
+ string filesId,
+ global::Google.Gemini.UploadEnvironmentFileRequest request);
+ partial void ProcessEnvironmentsFilesMediaUploadResponse(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage);
+
+ partial void ProcessEnvironmentsFilesMediaUploadResponseContent(
+ global::System.Net.Http.HttpClient httpClient,
+ global::System.Net.Http.HttpResponseMessage httpResponseMessage,
+ ref string content);
+
+ ///
+ /// Uploads (creates or updates) a file in an environment's workspace.
+ ///
+ ///
+ ///
+ ///
+ /// 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 EnvironmentsFilesMediaUploadAsync(
+ string environmentsId,
+ string filesId,
+
+ global::Google.Gemini.UploadEnvironmentFileRequest request,
+ global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __response = await EnvironmentsFilesMediaUploadAsResponseAsync(
+ environmentsId: environmentsId,
+ filesId: filesId,
+
+ request: request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken
+ ).ConfigureAwait(false);
+
+ return __response.Body;
+ }
+ ///
+ /// Uploads (creates or updates) a file in an environment's workspace.
+ ///
+ ///
+ ///
+ ///
+ /// 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> EnvironmentsFilesMediaUploadAsResponseAsync(
+ string environmentsId,
+ string filesId,
+
+ global::Google.Gemini.UploadEnvironmentFileRequest request,
+ global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ PrepareArguments(
+ client: HttpClient);
+ PrepareEnvironmentsFilesMediaUploadArguments(
+ httpClient: HttpClient,
+ environmentsId: ref environmentsId,
+ filesId: ref filesId,
+ request: request);
+
+
+ var __authorizations = global::Google.Gemini.EndPointSecurityResolver.ResolveAuthorizations(
+ availableAuthorizations: Authorizations,
+ securityRequirements: s_EnvironmentsFilesMediaUploadSecurityRequirements,
+ operationName: "EnvironmentsFilesMediaUploadAsync");
+
+ 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);
+ }
+ }
+ 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.Put,
+ 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
+ var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
+ var __httpRequestContent = new global::System.Net.Http.StringContent(
+ content: __httpRequestContentBody,
+ encoding: global::System.Text.Encoding.UTF8,
+ mediaType: "application/json");
+ __httpRequest.Content = __httpRequestContent;
+ global::Google.Gemini.AutoSDKRequestOptionsSupport.ApplyHeaders(
+ request: __httpRequest,
+ clientHeaders: Options.Headers,
+ requestHeaders: requestOptions?.Headers);
+
+ PrepareRequest(
+ client: HttpClient,
+ request: __httpRequest);
+ PrepareEnvironmentsFilesMediaUploadRequest(
+ httpClient: HttpClient,
+ httpRequestMessage: __httpRequest,
+ environmentsId: environmentsId!,
+ filesId: filesId!,
+ request: request);
+
+ 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: "EnvironmentsFilesMediaUpload",
+ methodName: "EnvironmentsFilesMediaUploadAsync",
+ pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
+ httpMethod: "PUT",
+ 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: "EnvironmentsFilesMediaUpload",
+ methodName: "EnvironmentsFilesMediaUploadAsync",
+ pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
+ httpMethod: "PUT",
+ 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: "EnvironmentsFilesMediaUpload",
+ methodName: "EnvironmentsFilesMediaUploadAsync",
+ pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
+ httpMethod: "PUT",
+ 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);
+ ProcessEnvironmentsFilesMediaUploadResponse(
+ httpClient: HttpClient,
+ httpResponseMessage: __response);
+ if (__response.IsSuccessStatusCode)
+ {
+ await global::Google.Gemini.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync(
+ clientOptions: Options,
+ context: global::Google.Gemini.AutoSDKRequestOptionsSupport.CreateHookContext(
+ operationId: "EnvironmentsFilesMediaUpload",
+ methodName: "EnvironmentsFilesMediaUploadAsync",
+ pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
+ httpMethod: "PUT",
+ 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: "EnvironmentsFilesMediaUpload",
+ methodName: "EnvironmentsFilesMediaUploadAsync",
+ pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
+ httpMethod: "PUT",
+ 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);
+ ProcessEnvironmentsFilesMediaUploadResponseContent(
+ httpClient: HttpClient,
+ httpResponseMessage: __response,
+ content: ref __content);
+
+ try
+ {
+ __response.EnsureSuccessStatusCode();
+
+ var __value = global::Google.Gemini.UploadEnvironmentFileResponse.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.UploadEnvironmentFileResponse.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();
+ }
+ }
+ ///
+ /// Uploads (creates or updates) a file in an environment's workspace.
+ ///
+ ///
+ ///
+ ///
+ /// Optional. Whether to overwrite the destination file if it already exists.
+ ///
+ ///
+ /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`.
+ ///
+ /// 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 EnvironmentsFilesMediaUploadAsync(
+ string environmentsId,
+ string filesId,
+ bool? overwrite = default,
+ bool? extract = default,
+ global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default)
+ {
+ var __request = new global::Google.Gemini.UploadEnvironmentFileRequest
+ {
+ Overwrite = overwrite,
+ Extract = extract,
+ };
+
+ return await EnvironmentsFilesMediaUploadAsync(
+ environmentsId: environmentsId,
+ filesId: filesId,
+ request: __request,
+ requestOptions: requestOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+ }
+ }
+}
\ No newline at end of file
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 ecbb3a1f..945fb3d5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
@@ -435,31 +435,31 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
/// Imports a `File` from File Service to a `FileSearchStore`.
///
///
- ///
- /// 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
///
///
/// Required. The name of the `File` to import. Example: `files/abc-123`
///
- ///
- /// 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,
- global::System.Collections.Generic.IList? customMetadata = default,
- string? fileName = default,
global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
+ string? fileName = 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
{
- CustomMetadata = customMetadata,
- FileName = fileName,
ChunkingConfig = chunkingConfig,
+ FileName = fileName,
+ 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 b209f1ab..f5d4ee7b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -435,36 +435,36 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
/// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.
///
///
- ///
- /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
- ///
///
/// 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. Display name of the created document.
///
+ ///
+ /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::System.Collections.Generic.IList? customMetadata = default,
- string? mimeType = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
string? displayName = default,
+ string? mimeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.UploadToFileSearchStoreRequest
{
- ChunkingConfig = chunkingConfig,
CustomMetadata = customMetadata,
- MimeType = mimeType,
+ ChunkingConfig = chunkingConfig,
DisplayName = displayName,
+ MimeType = mimeType,
};
return await MediaUploadToFileSearchStoreAsync(
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 544ca788..63b4a07b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
@@ -438,32 +438,32 @@ partial void ProcessModelsGenerateContentResponseContent(
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -474,15 +474,15 @@ partial void ProcessModelsGenerateContentResponseContent(
public async global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -490,15 +490,15 @@ partial void ProcessModelsGenerateContentResponseContent(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 70de1c5f..d05da5d7 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
@@ -442,32 +442,32 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
///
/// 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -478,15 +478,15 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
public async global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -494,15 +494,15 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 0f63a497..d58e2f0c 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
@@ -383,32 +383,32 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
///
/// 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -419,15 +419,15 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
@@ -435,15 +435,15 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 cb9546f7..e74d9de8 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. A short description of this model.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// 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. 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. 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.
- ///
- ///
- /// Tuned model as a source for training a new model.
+ ///
+ /// Optional. A short description of this model.
///
///
/// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
- ///
- ///
- /// 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.
- ///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// 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 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.
///
/// 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? description = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? temperature = default,
+ string? baseModel = default,
int? topK = default,
- float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ string? description = default,
string? displayName = default,
- string? baseModel = default,
- float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ float? topP = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.TunedModel
{
- Description = description,
+ ReaderProjectNumbers = readerProjectNumbers,
+ TuningTask = tuningTask,
+ Temperature = temperature,
+ BaseModel = baseModel,
TopK = topK,
- TopP = topP,
- TunedModelSource = tunedModelSource,
+ Description = description,
DisplayName = displayName,
- BaseModel = baseModel,
- Temperature = temperature,
- TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
+ TunedModelSource = tunedModelSource,
+ TopP = topP,
};
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 c220eb7f..7c303ff4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
@@ -438,32 +438,32 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -474,15 +474,15 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
public async global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -490,15 +490,15 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 e31d585e..5125a8b8 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,32 +448,32 @@ partial void ProcessTunedModelsPatchResponseContent(
///
///
///
- ///
- /// Optional. A short description of this model.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// 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. 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. 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.
- ///
- ///
- /// Tuned model as a source for training a new model.
+ ///
+ /// Optional. A short description of this model.
///
///
/// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
- ///
- ///
- /// 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.
- ///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// 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 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -481,29 +481,29 @@ partial void ProcessTunedModelsPatchResponseContent(
public async global::System.Threading.Tasks.Task TunedModelsPatchAsync(
string tunedModelsId,
string? updateMask = default,
- string? description = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? temperature = default,
+ string? baseModel = default,
int? topK = default,
- float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ string? description = default,
string? displayName = default,
- string? baseModel = default,
- float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ float? topP = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.TunedModel
{
- Description = description,
+ ReaderProjectNumbers = readerProjectNumbers,
+ TuningTask = tuningTask,
+ Temperature = temperature,
+ BaseModel = baseModel,
TopK = topK,
- TopP = topP,
- TunedModelSource = tunedModelSource,
+ Description = description,
DisplayName = displayName,
- BaseModel = baseModel,
- Temperature = temperature,
- TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
+ TunedModelSource = tunedModelSource,
+ TopP = topP,
};
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 984df9bc..9e0209cf 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 a61ff938..2e627ccb 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 389341b0..c7ef9d9d 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
@@ -442,32 +442,32 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
///
/// 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -478,15 +478,15 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
public async global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -494,15 +494,15 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 5aa65e69..70def6c9 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
@@ -383,32 +383,32 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
///
/// 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -419,15 +419,15 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = default,
string? model = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
@@ -435,15 +435,15 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
var __request = new global::Google.Gemini.GenerateContentRequest
{
CachedContent = cachedContent,
- Labels = labels,
- ToolConfig = toolConfig,
- Contents = contents,
SafetySettings = safetySettings,
SystemInstruction = systemInstruction,
- GenerationConfig = generationConfig,
- ServiceTier = serviceTier,
Store = store,
+ GenerationConfig = generationConfig,
Tools = tools,
+ ToolConfig = toolConfig,
+ ServiceTier = serviceTier,
+ Labels = labels,
+ Contents = contents,
Model = model,
};
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 00a75a1c..54d758ce 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
@@ -34,12 +34,12 @@ public partial interface IGeminiClient
///
/// Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages.
///
- ///
- /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.
- ///
///
/// Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.
///
+ ///
+ /// Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection.
+ ///
///
/// Optional. Input only. Immutable. The 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.
///
@@ -51,8 +51,8 @@ public partial interface IGeminiClient
///
global::System.Threading.Tasks.Task AuthTokensCreateAsync(
global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default,
- string? fieldMask = default,
string? newSessionExpireTime = default,
+ string? fieldMask = default,
int? uses = default,
string? expireTime = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = 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 6063e33c..6e28f511 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
@@ -41,23 +41,23 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// Stats about the batch.
///
- ///
- /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
///
/// 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.
+ ///
+ /// Configures the input to the batch request.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -65,12 +65,12 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task BatchesUpdateEmbedContentBatchAsync(
string batchesId,
string? updateMask = default,
- global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ string? model = default,
string? priority = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
string? displayName = default,
- string? model = default,
- global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
+ global::Google.Gemini.InputEmbedContentConfig? inputConfig = 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 577d21d4..f1f4e13b 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
///
///
///
- ///
- /// Required. The user-defined name of this batch.
- ///
///
/// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
- ///
- /// Configures the input to the batch request.
+ ///
+ /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
///
///
/// Stats about the batch.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
+ ///
+ /// Configures the input to the batch request.
+ ///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
- ///
/// 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,
- string? displayName = default,
string? priority = default,
- global::Google.Gemini.InputConfig? inputConfig = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.BatchStats? batchStats = default,
+ string? displayName = default,
+ global::Google.Gemini.InputConfig? inputConfig = default,
string? model = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
index 554cb62e..28060361 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,14 +31,20 @@ public partial interface IGeminiClient
///
/// Creates CachedContent resource.
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
///
/// Optional. Input only. Immutable. The content to cache.
@@ -46,31 +52,25 @@ public partial interface IGeminiClient
///
/// Metadata on the usage of the cached content.
///
- ///
- /// 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.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
///
/// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the 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 CachedContentsCreateAsync(
- string? model = default,
+ string? displayName = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? tools = default,
+ string? expireTime = default,
+ string? model = default,
global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? expireTime = default,
- string? displayName = default,
+ global::System.Collections.Generic.IList? tools = default,
string? ttl = default,
- global::Google.Gemini.ToolConfig? toolConfig = 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 8130098a..ef01c3a2 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,14 +41,20 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the 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.
///
- ///
- /// 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.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
///
///
/// Optional. Input only. Immutable. The content to cache.
@@ -56,33 +62,27 @@ public partial interface IGeminiClient
///
/// Metadata on the usage of the cached content.
///
- ///
- /// 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.
+ ///
+ /// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
///
/// Input only. New TTL for this resource, input only.
///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the 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 CachedContentsPatchAsync(
string cachedContentsId,
string? updateMask = default,
- string? model = default,
+ string? displayName = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::System.Collections.Generic.IList? tools = default,
+ string? expireTime = default,
+ string? model = default,
global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
- string? expireTime = default,
- string? displayName = default,
+ global::System.Collections.Generic.IList? tools = default,
string? ttl = default,
- global::Google.Gemini.ToolConfig? toolConfig = 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 9fdaa487..742c7e66 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 52e19f8e..b57a43d0 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 6829e94a..8318b722 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
@@ -39,32 +39,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -75,15 +75,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
index 02a1a675..a673fb2c 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
@@ -39,32 +39,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -75,15 +75,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
index 5406529d..1c94fc0d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
@@ -25,32 +25,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -61,15 +61,15 @@ public partial interface IGeminiClient
global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.EnvironmentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsCreate.g.cs
index 33e2fb29..87af552f 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,6 +31,9 @@ public partial interface IGeminiClient
///
/// Creates an environment.
///
+ ///
+ /// Network egress configuration for the environment.
+ ///
///
/// Network egress mode.
///
@@ -40,17 +43,14 @@ public partial interface IGeminiClient
///
/// Optional. The source environment to copy/fork from. Format: `environments/{environment_id}` or `{environment_id}`. When specified, `sources` and `env` must be empty.
///
- ///
- /// Network egress configuration for the environment.
- ///
/// 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.EnvironmentNetworkEgressAllowlist? networkAllowlist = default,
global::Google.Gemini.CreateEnvironmentRequestNetworkMode? networkMode = default,
global::System.Collections.Generic.IList? sources = default,
string? fromEnvironment = default,
- global::Google.Gemini.EnvironmentNetworkEgressAllowlist? networkAllowlist = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaUpload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaUpload.g.cs
new file mode 100644
index 00000000..bd4dfe39
--- /dev/null
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.EnvironmentsFilesMediaUpload.g.cs
@@ -0,0 +1,61 @@
+#nullable enable
+
+namespace Google.Gemini
+{
+ public partial interface IGeminiClient
+ {
+ ///
+ /// Uploads (creates or updates) a file in an environment's workspace.
+ ///
+ ///
+ ///
+ ///
+ /// 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 EnvironmentsFilesMediaUploadAsync(
+ string environmentsId,
+ string filesId,
+
+ global::Google.Gemini.UploadEnvironmentFileRequest request,
+ global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Uploads (creates or updates) a file in an environment's workspace.
+ ///
+ ///
+ ///
+ ///
+ /// 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> EnvironmentsFilesMediaUploadAsResponseAsync(
+ string environmentsId,
+ string filesId,
+
+ global::Google.Gemini.UploadEnvironmentFileRequest request,
+ global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
+ global::System.Threading.CancellationToken cancellationToken = default);
+ ///
+ /// Uploads (creates or updates) a file in an environment's workspace.
+ ///
+ ///
+ ///
+ ///
+ /// Optional. Whether to overwrite the destination file if it already exists.
+ ///
+ ///
+ /// Optional. If true, treats the uploaded file as a tar/tar.gz archive and unpacks it into `path`.
+ ///
+ /// 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 EnvironmentsFilesMediaUploadAsync(
+ string environmentsId,
+ string filesId,
+ bool? overwrite = default,
+ bool? extract = 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.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs
index e31c28d5..44182be1 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresImportFile.g.cs
@@ -36,23 +36,23 @@ public partial interface IGeminiClient
/// Imports a `File` from File Service to a `FileSearchStore`.
///
///
- ///
- /// 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
///
///
/// Required. The name of the `File` to import. Example: `files/abc-123`
///
- ///
- /// 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,
- global::System.Collections.Generic.IList? customMetadata = default,
- string? fileName = default,
global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
+ string? fileName = 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 6616cc1c..f3066d85 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -36,27 +36,27 @@ public partial interface IGeminiClient
/// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.
///
///
- ///
- /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
- ///
///
/// 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. Display name of the created document.
///
+ ///
+ /// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
global::System.Collections.Generic.IList? customMetadata = default,
- string? mimeType = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
string? displayName = default,
+ string? mimeType = 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 bed82604..4c62f4d5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
@@ -39,32 +39,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -75,15 +75,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
index ea84b985..673d186f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
@@ -39,32 +39,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -75,15 +75,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
index cbbcd086..e752f9a9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
@@ -25,32 +25,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -61,15 +61,15 @@ public partial interface IGeminiClient
global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsCreate.g.cs
index 9461babb..ce9afa5a 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. A short description of this model.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// 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. 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. 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.
- ///
- ///
- /// Tuned model as a source for training a new model.
+ ///
+ /// Optional. A short description of this model.
///
///
/// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
- ///
- ///
- /// 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.
- ///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// 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 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.
///
/// 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? description = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? temperature = default,
+ string? baseModel = default,
int? topK = default,
- float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ string? description = default,
string? displayName = default,
- string? baseModel = default,
- float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ float? topP = 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 c42a9c1e..d700a784 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
@@ -39,32 +39,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -75,15 +75,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs
index e4be111b..403d0ea2 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,32 +41,32 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Optional. A short description of this model.
+ ///
+ /// Optional. List of project numbers that have read access to the tuned model.
+ ///
+ ///
+ /// Tuning tasks that create tuned models.
+ ///
+ ///
+ /// 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. 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. 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.
- ///
- ///
- /// Tuned model as a source for training a new model.
+ ///
+ /// Optional. A short description of this model.
///
///
/// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
- ///
- ///
- /// 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.
- ///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// 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 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
@@ -74,15 +74,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task TunedModelsPatchAsync(
string tunedModelsId,
string? updateMask = default,
- string? description = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ float? temperature = default,
+ string? baseModel = default,
int? topK = default,
- float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ string? description = default,
string? displayName = default,
- string? baseModel = default,
- float? temperature = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
+ float? topP = 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 ac83efb9..6d247e33 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 ecc92221..065efa6e 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 46518b42..fb6df620 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
@@ -39,32 +39,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -75,15 +75,15 @@ public partial interface IGeminiClient
global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
index 3f05f11b..2eb86ecc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
@@ -25,32 +25,32 @@ public partial interface IGeminiClient
///
/// Optional. 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. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
- ///
- ///
- /// The Tool configuration containing parameters for specifying `Tool` use in the request.
- ///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
- ///
///
/// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
///
/// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
///
+ ///
+ /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
///
/// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
///
+ ///
+ /// 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 service tier of the request.
///
- ///
- /// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
+ ///
+ /// Optional. Labels with user-defined metadata for the request. Optional. Labels must follow standard unified Cloud label requirements: - Label keys must start with a letter. - Label keys and values can be no longer than 63 characters (Unicode codepoints) and can only contain lowercase letters, numeric characters, underscores, and dashes. - International characters are allowed. Usage: - Safety identifiers from aggregators: Use the key `safety_identifier` (e.g. `{"safety_identifier": "user_session_123"}`)
///
- ///
- /// 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.
+ ///
+ /// 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.
///
///
/// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
@@ -61,15 +61,15 @@ public partial interface IGeminiClient
global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
string? cachedContent = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
- global::System.Collections.Generic.IList? contents = default,
global::System.Collections.Generic.IList? safetySettings = default,
global::Google.Gemini.Content? systemInstruction = default,
- global::Google.Gemini.GenerationConfig? generationConfig = default,
- global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
bool? store = default,
+ global::Google.Gemini.GenerationConfig? generationConfig = default,
global::System.Collections.Generic.IList? tools = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
+ global::System.Collections.Generic.IList? contents = 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.JsonSerializerContext.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
index bcbe905f..71b97857 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
@@ -13,569 +13,571 @@ namespace Google.Gemini
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter),
- 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.AudioResponseFormatMimeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter),
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::System.Collections.Generic.List