diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.AutoSDKHttpResponse.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.AutoSDKHttpResponse.g.cs
index 8896ca6c0..c375ade02 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.AutoSDKHttpResponse.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.AutoSDKHttpResponse.g.cs
@@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests
{
send = send ?? throw new global::System.ArgumentNullException(nameof(send));
requestOptions = CloneRequestOptions(requestOptions);
- if (!string.IsNullOrWhiteSpace(entityTag))
+ if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag))
{
- requestOptions.Headers["If-None-Match"] = entityTag!;
+ requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag;
}
try
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 0b40570b1..8bea9163c 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
@@ -169,7 +169,7 @@ partial void ProcessAuthTokensCreateResponseContent(
pathTemplate: "\"/auth_tokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -203,7 +203,7 @@ partial void ProcessAuthTokensCreateResponseContent(
pathTemplate: "\"/auth_tokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -244,7 +244,7 @@ partial void ProcessAuthTokensCreateResponseContent(
pathTemplate: "\"/auth_tokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -292,7 +292,7 @@ partial void ProcessAuthTokensCreateResponseContent(
pathTemplate: "\"/auth_tokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessAuthTokensCreateResponseContent(
pathTemplate: "\"/auth_tokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -434,12 +434,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 number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.
///
+ ///
+ /// Optional. Input only. Immutable. 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.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
@@ -447,8 +447,8 @@ partial void ProcessAuthTokensCreateResponseContent(
string? newSessionExpireTime = default,
string? expireTime = default,
global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default,
- string? fieldMask = default,
int? uses = default,
+ string? fieldMask = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -457,8 +457,8 @@ partial void ProcessAuthTokensCreateResponseContent(
NewSessionExpireTime = newSessionExpireTime,
ExpireTime = expireTime,
BidiGenerateContentSetup = bidiGenerateContentSetup,
- FieldMask = fieldMask,
Uses = uses,
+ FieldMask = fieldMask,
};
return await AuthTokensCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs
index 4b991bc3b..81750b8c1 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs
@@ -136,7 +136,7 @@ partial void ProcessBatchesCancelResponseContent(
PrepareBatchesCancelRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- batchesId: batchesId!);
+ batchesId: batchesId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessBatchesCancelResponseContent(
pathTemplate: "$\"/batches/{batchesId}:cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessBatchesCancelResponseContent(
pathTemplate: "$\"/batches/{batchesId}:cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessBatchesCancelResponseContent(
pathTemplate: "$\"/batches/{batchesId}:cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessBatchesCancelResponseContent(
pathTemplate: "$\"/batches/{batchesId}:cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessBatchesCancelResponseContent(
pathTemplate: "$\"/batches/{batchesId}:cancel\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs
index 21a4f7078..bf66c33fe 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs
@@ -136,7 +136,7 @@ partial void ProcessBatchesDeleteResponseContent(
PrepareBatchesDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- batchesId: batchesId!);
+ batchesId: batchesId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessBatchesDeleteResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessBatchesDeleteResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessBatchesDeleteResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessBatchesDeleteResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessBatchesDeleteResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs
index bb5b09624..617a32758 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessBatchesGetResponseContent(
PrepareBatchesGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- batchesId: batchesId!);
+ batchesId: batchesId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessBatchesGetResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessBatchesGetResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessBatchesGetResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessBatchesGetResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessBatchesGetResponseContent(
pathTemplate: "$\"/batches/{batchesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs
index 1f77ff545..959ba5963 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs
@@ -191,7 +191,7 @@ partial void ProcessBatchesListResponseContent(
pathTemplate: "\"/batches\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -225,7 +225,7 @@ partial void ProcessBatchesListResponseContent(
pathTemplate: "\"/batches\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -266,7 +266,7 @@ partial void ProcessBatchesListResponseContent(
pathTemplate: "\"/batches\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessBatchesListResponseContent(
pathTemplate: "\"/batches\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -336,7 +336,7 @@ partial void ProcessBatchesListResponseContent(
pathTemplate: "\"/batches\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 c9a030d6b..5b20f6765 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
@@ -166,7 +166,7 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
PrepareBatchesUpdateEmbedContentBatchRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- batchesId: batchesId!,
+ batchesId: batchesId,
updateMask: updateMask,
request: request);
@@ -190,7 +190,7 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateEmbedContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -224,7 +224,7 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateEmbedContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -265,7 +265,7 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateEmbedContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -313,7 +313,7 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateEmbedContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -335,7 +335,7 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateEmbedContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -448,23 +448,23 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
///
///
///
- ///
- /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
- ///
///
/// Required. The user-defined name of this batch.
///
+ ///
+ /// 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}`.
+ ///
///
/// Stats about the batch.
///
///
/// Configures the input to the batch request.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
+ ///
+ /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
/// 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,
- string? priority = default,
string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ string? model = default,
global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- string? model = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ string? priority = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentBatch
{
- Priority = priority,
DisplayName = displayName,
+ Output = output,
+ Model = model,
BatchStats = batchStats,
InputConfig = inputConfig,
- Model = model,
- Output = output,
+ Priority = priority,
};
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 dc3e3bd43..570fb75c2 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
@@ -166,7 +166,7 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
PrepareBatchesUpdateGenerateContentBatchRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- batchesId: batchesId!,
+ batchesId: batchesId,
updateMask: updateMask,
request: request);
@@ -190,7 +190,7 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateGenerateContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -224,7 +224,7 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateGenerateContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -265,7 +265,7 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateGenerateContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -313,7 +313,7 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateGenerateContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -335,7 +335,7 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
pathTemplate: "$\"/batches/{batchesId}:updateGenerateContentBatch\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -448,47 +448,47 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
///
///
///
- ///
- /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
- ///
- ///
- /// Required. The user-defined name of this batch.
- ///
- ///
- /// Stats about the batch.
- ///
///
/// Configures the input to the batch request.
///
+ ///
+ /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
+ ///
///
/// 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.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
+ ///
+ /// Stats about the batch.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync(
string batchesId,
string? updateMask = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
- string? displayName = default,
- global::Google.Gemini.BatchStats? batchStats = default,
global::Google.Gemini.InputConfig? inputConfig = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
string? model = default,
string? priority = default,
+ string? displayName = default,
+ global::Google.Gemini.BatchStats? batchStats = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentBatch
{
- Output = output,
- DisplayName = displayName,
- BatchStats = batchStats,
InputConfig = inputConfig,
+ Output = output,
Model = model,
Priority = priority,
+ DisplayName = displayName,
+ BatchStats = batchStats,
};
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 130d41600..d6e66ffbe 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
@@ -169,7 +169,7 @@ partial void ProcessCachedContentsCreateResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -203,7 +203,7 @@ partial void ProcessCachedContentsCreateResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -244,7 +244,7 @@ partial void ProcessCachedContentsCreateResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -292,7 +292,7 @@ partial void ProcessCachedContentsCreateResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessCachedContentsCreateResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -425,60 +425,60 @@ partial void ProcessCachedContentsCreateResponseContent(
///
/// Creates CachedContent resource.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
///
/// Metadata on the usage of the cached content.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// 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? displayName = default,
string? expireTime = default,
- string? ttl = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? ttl = default,
+ string? model = default,
global::System.Collections.Generic.IList? tools = default,
+ string? displayName = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.Content? systemInstruction = default,
- string? model = 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
{
- DisplayName = displayName,
ExpireTime = expireTime,
- Ttl = ttl,
+ SystemInstruction = systemInstruction,
+ ToolConfig = toolConfig,
UsageMetadata = usageMetadata,
+ Ttl = ttl,
+ Model = model,
Tools = tools,
+ DisplayName = displayName,
Contents = contents,
- SystemInstruction = systemInstruction,
- Model = model,
- ToolConfig = toolConfig,
};
return await CachedContentsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs
index 9a4fec409..760261cd3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs
@@ -136,7 +136,7 @@ partial void ProcessCachedContentsDeleteResponseContent(
PrepareCachedContentsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- cachedContentsId: cachedContentsId!);
+ cachedContentsId: cachedContentsId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessCachedContentsDeleteResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessCachedContentsDeleteResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessCachedContentsDeleteResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessCachedContentsDeleteResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessCachedContentsDeleteResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs
index e476a6405..e1bca1030 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessCachedContentsGetResponseContent(
PrepareCachedContentsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- cachedContentsId: cachedContentsId!);
+ cachedContentsId: cachedContentsId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessCachedContentsGetResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessCachedContentsGetResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessCachedContentsGetResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessCachedContentsGetResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessCachedContentsGetResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs
index 7d37bf983..bdc18fde4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs
@@ -171,7 +171,7 @@ partial void ProcessCachedContentsListResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -205,7 +205,7 @@ partial void ProcessCachedContentsListResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -246,7 +246,7 @@ partial void ProcessCachedContentsListResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -294,7 +294,7 @@ partial void ProcessCachedContentsListResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -316,7 +316,7 @@ partial void ProcessCachedContentsListResponseContent(
pathTemplate: "\"/cachedContents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 24ecc6af5..778b5214c 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
@@ -166,7 +166,7 @@ partial void ProcessCachedContentsPatchResponseContent(
PrepareCachedContentsPatchRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- cachedContentsId: cachedContentsId!,
+ cachedContentsId: cachedContentsId,
updateMask: updateMask,
request: request);
@@ -190,7 +190,7 @@ partial void ProcessCachedContentsPatchResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -224,7 +224,7 @@ partial void ProcessCachedContentsPatchResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -265,7 +265,7 @@ partial void ProcessCachedContentsPatchResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -313,7 +313,7 @@ partial void ProcessCachedContentsPatchResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -335,7 +335,7 @@ partial void ProcessCachedContentsPatchResponseContent(
pathTemplate: "$\"/cachedContents/{cachedContentsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -448,62 +448,62 @@ partial void ProcessCachedContentsPatchResponseContent(
///
///
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
///
/// Metadata on the usage of the cached content.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// 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? displayName = default,
string? expireTime = default,
- string? ttl = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? ttl = default,
+ string? model = default,
global::System.Collections.Generic.IList? tools = default,
+ string? displayName = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.Content? systemInstruction = default,
- string? model = 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
{
- DisplayName = displayName,
ExpireTime = expireTime,
- Ttl = ttl,
+ SystemInstruction = systemInstruction,
+ ToolConfig = toolConfig,
UsageMetadata = usageMetadata,
+ Ttl = ttl,
+ Model = model,
Tools = tools,
+ DisplayName = displayName,
Contents = contents,
- SystemInstruction = systemInstruction,
- Model = model,
- ToolConfig = toolConfig,
};
return await CachedContentsPatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs
index 661862529..2cd4bed0a 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs
@@ -169,7 +169,7 @@ partial void ProcessCorporaCreateResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -203,7 +203,7 @@ partial void ProcessCorporaCreateResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -244,7 +244,7 @@ partial void ProcessCorporaCreateResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -292,7 +292,7 @@ partial void ProcessCorporaCreateResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessCorporaCreateResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs
index 559076f77..12ccf4bd0 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs
@@ -148,7 +148,7 @@ partial void ProcessCorporaDeleteResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
force: force,
- corporaId: corporaId!);
+ corporaId: corporaId);
return __httpRequest;
}
@@ -170,7 +170,7 @@ partial void ProcessCorporaDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -204,7 +204,7 @@ partial void ProcessCorporaDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -245,7 +245,7 @@ partial void ProcessCorporaDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -293,7 +293,7 @@ partial void ProcessCorporaDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -315,7 +315,7 @@ partial void ProcessCorporaDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs
index 52da4dc8d..a5c0c6a09 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessCorporaGetResponseContent(
PrepareCorporaGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId!);
+ corporaId: corporaId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessCorporaGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessCorporaGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessCorporaGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessCorporaGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessCorporaGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs
index 963240df9..6d2bbb53e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs
@@ -171,7 +171,7 @@ partial void ProcessCorporaListResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -205,7 +205,7 @@ partial void ProcessCorporaListResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -246,7 +246,7 @@ partial void ProcessCorporaListResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -294,7 +294,7 @@ partial void ProcessCorporaListResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -316,7 +316,7 @@ partial void ProcessCorporaListResponseContent(
pathTemplate: "\"/corpora\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs
index 66eef5257..1e0604462 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessCorporaOperationsGetResponseContent(
PrepareCorporaOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- operationsId: operationsId!,
- corporaId: corporaId!);
+ operationsId: operationsId,
+ corporaId: corporaId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessCorporaOperationsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessCorporaOperationsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessCorporaOperationsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessCorporaOperationsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessCorporaOperationsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs
index c8ec7f866..62c562fb6 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
@@ -155,7 +155,7 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
PrepareCorporaPermissionsCreateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId!,
+ corporaId: corporaId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,31 +435,31 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
/// Create a permission to a specific resource.
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
+ GranteeType = granteeType,
Role = role,
EmailAddress = emailAddress,
- GranteeType = granteeType,
};
return await CorporaPermissionsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs
index 8eac92fab..e8579d4b8 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs
@@ -144,8 +144,8 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
PrepareCorporaPermissionsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- permissionsId: permissionsId!,
- corporaId: corporaId!);
+ permissionsId: permissionsId,
+ corporaId: corporaId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs
index 9bd555ee7..7dd892b29 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessCorporaPermissionsGetResponseContent(
PrepareCorporaPermissionsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- permissionsId: permissionsId!,
- corporaId: corporaId!);
+ permissionsId: permissionsId,
+ corporaId: corporaId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessCorporaPermissionsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessCorporaPermissionsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessCorporaPermissionsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessCorporaPermissionsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessCorporaPermissionsGetResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs
index 2ada74a32..8955c1c70 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs
@@ -158,7 +158,7 @@ partial void ProcessCorporaPermissionsListResponseContent(
httpRequestMessage: __httpRequest,
pageSize: pageSize,
pageToken: pageToken,
- corporaId: corporaId!);
+ corporaId: corporaId);
return __httpRequest;
}
@@ -180,7 +180,7 @@ partial void ProcessCorporaPermissionsListResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -214,7 +214,7 @@ partial void ProcessCorporaPermissionsListResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -255,7 +255,7 @@ partial void ProcessCorporaPermissionsListResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessCorporaPermissionsListResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -325,7 +325,7 @@ partial void ProcessCorporaPermissionsListResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs
index 198dc316a..7ff8e493d 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
@@ -174,8 +174,8 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
PrepareCorporaPermissionsPatchRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- permissionsId: permissionsId!,
- corporaId: corporaId!,
+ permissionsId: permissionsId,
+ corporaId: corporaId,
updateMask: updateMask,
request: request);
@@ -199,7 +199,7 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -274,7 +274,7 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -322,7 +322,7 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -344,7 +344,7 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
pathTemplate: "$\"/corpora/{corporaId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -458,15 +458,15 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
///
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
+ GranteeType = granteeType,
Role = role,
EmailAddress = emailAddress,
- GranteeType = granteeType,
};
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 bff0e617e..56b5809af 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
@@ -155,7 +155,7 @@ partial void ProcessDynamicGenerateContentResponseContent(
PrepareDynamicGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- dynamicId: dynamicId!,
+ dynamicId: dynamicId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessDynamicGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessDynamicGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessDynamicGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessDynamicGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessDynamicGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,71 +435,71 @@ partial void ProcessDynamicGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
return await DynamicGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
index aa9fc4ce8..fd171eea4 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
@@ -159,7 +159,7 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
PrepareDynamicStreamGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- dynamicId: dynamicId!,
+ dynamicId: dynamicId,
request: request);
return __httpRequest;
@@ -182,7 +182,7 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -216,7 +216,7 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -257,7 +257,7 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -327,7 +327,7 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -439,71 +439,71 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
return await DynamicStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContentAsStream.g.cs
index 3974cc791..7e3b1cbe0 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
@@ -129,7 +129,7 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
PrepareDynamicStreamGenerateContentAsStreamRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- dynamicId: dynamicId!,
+ dynamicId: dynamicId,
request: request);
return __httpRequest;
@@ -152,7 +152,7 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -186,7 +186,7 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -227,7 +227,7 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -275,7 +275,7 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -297,7 +297,7 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/dynamic/{dynamicId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -380,71 +380,71 @@ partial void ProcessDynamicStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
var __enumerable = DynamicStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsCreate.g.cs
index 7ad2c3e1c..a45c87013 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
@@ -169,7 +169,7 @@ partial void ProcessEnvironmentsCreateResponseContent(
pathTemplate: "\"/environments:create\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -203,7 +203,7 @@ partial void ProcessEnvironmentsCreateResponseContent(
pathTemplate: "\"/environments:create\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -244,7 +244,7 @@ partial void ProcessEnvironmentsCreateResponseContent(
pathTemplate: "\"/environments:create\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -292,7 +292,7 @@ partial void ProcessEnvironmentsCreateResponseContent(
pathTemplate: "\"/environments:create\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessEnvironmentsCreateResponseContent(
pathTemplate: "\"/environments:create\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -425,9 +425,6 @@ partial void ProcessEnvironmentsCreateResponseContent(
///
/// Creates an environment.
///
- ///
- /// Network egress configuration for the environment.
- ///
///
/// Network egress mode.
///
@@ -437,23 +434,26 @@ 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.EnvironmentsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsDelete.g.cs
index 512bc9a27..a0fc72233 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsDelete.g.cs
@@ -136,7 +136,7 @@ partial void ProcessEnvironmentsDeleteResponseContent(
PrepareEnvironmentsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessEnvironmentsDeleteResponseContent(
pathTemplate: "$\"/environments/{id}:delete\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessEnvironmentsDeleteResponseContent(
pathTemplate: "$\"/environments/{id}:delete\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessEnvironmentsDeleteResponseContent(
pathTemplate: "$\"/environments/{id}:delete\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessEnvironmentsDeleteResponseContent(
pathTemplate: "$\"/environments/{id}:delete\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessEnvironmentsDeleteResponseContent(
pathTemplate: "$\"/environments/{id}:delete\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs
index f960513df..06c242b39 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaDownload.g.cs
@@ -175,8 +175,8 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent(
httpRequestMessage: __httpRequest,
pageSize: pageSize,
pageToken: pageToken,
- environmentsId: environmentsId!,
- filesId: filesId!,
+ environmentsId: environmentsId,
+ filesId: filesId,
recursive: recursive);
return __httpRequest;
@@ -199,7 +199,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -274,7 +274,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -322,7 +322,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -344,7 +344,7 @@ partial void ProcessEnvironmentsFilesMediaDownloadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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
index 08e5e28d0..833a8d401 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsFilesMediaUpload.g.cs
@@ -163,8 +163,8 @@ partial void ProcessEnvironmentsFilesMediaUploadResponseContent(
PrepareEnvironmentsFilesMediaUploadRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- environmentsId: environmentsId!,
- filesId: filesId!,
+ environmentsId: environmentsId,
+ filesId: filesId,
request: request);
return __httpRequest;
@@ -187,7 +187,7 @@ partial void ProcessEnvironmentsFilesMediaUploadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "PUT",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -221,7 +221,7 @@ partial void ProcessEnvironmentsFilesMediaUploadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "PUT",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -262,7 +262,7 @@ partial void ProcessEnvironmentsFilesMediaUploadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "PUT",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -310,7 +310,7 @@ partial void ProcessEnvironmentsFilesMediaUploadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "PUT",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -332,7 +332,7 @@ partial void ProcessEnvironmentsFilesMediaUploadResponseContent(
pathTemplate: "$\"/environments/{environmentsId}/files/{filesId}\"",
httpMethod: "PUT",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsGet.g.cs
index 76ffdded3..8f3902ea5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessEnvironmentsGetResponseContent(
PrepareEnvironmentsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- id: id!);
+ id: id);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessEnvironmentsGetResponseContent(
pathTemplate: "$\"/environments/{id}:get\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessEnvironmentsGetResponseContent(
pathTemplate: "$\"/environments/{id}:get\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessEnvironmentsGetResponseContent(
pathTemplate: "$\"/environments/{id}:get\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessEnvironmentsGetResponseContent(
pathTemplate: "$\"/environments/{id}:get\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessEnvironmentsGetResponseContent(
pathTemplate: "$\"/environments/{id}:get\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsList.g.cs
index d45a96bcd..72c4c1394 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.EnvironmentsList.g.cs
@@ -171,7 +171,7 @@ partial void ProcessEnvironmentsListResponseContent(
pathTemplate: "\"/environments:list\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -205,7 +205,7 @@ partial void ProcessEnvironmentsListResponseContent(
pathTemplate: "\"/environments:list\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -246,7 +246,7 @@ partial void ProcessEnvironmentsListResponseContent(
pathTemplate: "\"/environments:list\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -294,7 +294,7 @@ partial void ProcessEnvironmentsListResponseContent(
pathTemplate: "\"/environments:list\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -316,7 +316,7 @@ partial void ProcessEnvironmentsListResponseContent(
pathTemplate: "\"/environments:list\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
index 9f8368aa2..f5560c4da 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
@@ -169,7 +169,7 @@ partial void ProcessFileSearchStoresCreateResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -203,7 +203,7 @@ partial void ProcessFileSearchStoresCreateResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -244,7 +244,7 @@ partial void ProcessFileSearchStoresCreateResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -292,7 +292,7 @@ partial void ProcessFileSearchStoresCreateResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessFileSearchStoresCreateResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs
index 3c91ba19c..bd9e040d2 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs
@@ -148,7 +148,7 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
force: force,
- fileSearchStoresId: fileSearchStoresId!);
+ fileSearchStoresId: fileSearchStoresId);
return __httpRequest;
}
@@ -170,7 +170,7 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -204,7 +204,7 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -245,7 +245,7 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -293,7 +293,7 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -315,7 +315,7 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs
index b8d83f75e..2590c6903 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs
@@ -155,9 +155,9 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
PrepareFileSearchStoresDocumentsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- fileSearchStoresId: fileSearchStoresId!,
+ fileSearchStoresId: fileSearchStoresId,
force: force,
- documentsId: documentsId!);
+ documentsId: documentsId);
return __httpRequest;
}
@@ -179,7 +179,7 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -213,7 +213,7 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -254,7 +254,7 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -302,7 +302,7 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -324,7 +324,7 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs
index 29130907f..478f7acb1 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
PrepareFileSearchStoresDocumentsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- fileSearchStoresId: fileSearchStoresId!,
- documentsId: documentsId!);
+ fileSearchStoresId: fileSearchStoresId,
+ documentsId: documentsId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs
index 92d683b34..20958a8af 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs
@@ -158,7 +158,7 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
httpRequestMessage: __httpRequest,
pageSize: pageSize,
pageToken: pageToken,
- fileSearchStoresId: fileSearchStoresId!);
+ fileSearchStoresId: fileSearchStoresId);
return __httpRequest;
}
@@ -180,7 +180,7 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -214,7 +214,7 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -255,7 +255,7 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -325,7 +325,7 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/documents\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs
index af003eac2..23e47221c 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessFileSearchStoresGetResponseContent(
PrepareFileSearchStoresGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- fileSearchStoresId: fileSearchStoresId!);
+ fileSearchStoresId: fileSearchStoresId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessFileSearchStoresGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessFileSearchStoresGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessFileSearchStoresGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessFileSearchStoresGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessFileSearchStoresGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
index 6eebaf777..b010e596b 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
@@ -155,7 +155,7 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
PrepareFileSearchStoresImportFileRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- fileSearchStoresId: fileSearchStoresId!,
+ fileSearchStoresId: fileSearchStoresId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:importFile\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:importFile\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:importFile\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:importFile\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:importFile\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs
index 8db71f368..384bc7345 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs
@@ -171,7 +171,7 @@ partial void ProcessFileSearchStoresListResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -205,7 +205,7 @@ partial void ProcessFileSearchStoresListResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -246,7 +246,7 @@ partial void ProcessFileSearchStoresListResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -294,7 +294,7 @@ partial void ProcessFileSearchStoresListResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -316,7 +316,7 @@ partial void ProcessFileSearchStoresListResponseContent(
pathTemplate: "\"/fileSearchStores\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs
index 9dc71dd9f..943f558c4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessFileSearchStoresOperationsGetResponseContent(
PrepareFileSearchStoresOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- operationsId: operationsId!,
- fileSearchStoresId: fileSearchStoresId!);
+ operationsId: operationsId,
+ fileSearchStoresId: fileSearchStoresId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessFileSearchStoresOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessFileSearchStoresOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessFileSearchStoresOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessFileSearchStoresOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessFileSearchStoresOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs
index 1f4fe39a7..f878d5dcc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessFileSearchStoresUploadOperationsGetResponseContent(
PrepareFileSearchStoresUploadOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- operationsId: operationsId!,
- fileSearchStoresId: fileSearchStoresId!);
+ operationsId: operationsId,
+ fileSearchStoresId: fileSearchStoresId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessFileSearchStoresUploadOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessFileSearchStoresUploadOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessFileSearchStoresUploadOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessFileSearchStoresUploadOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessFileSearchStoresUploadOperationsGetResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs
index 917fe12a2..e1911a7e9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs
@@ -136,7 +136,7 @@ partial void ProcessFilesDeleteResponseContent(
PrepareFilesDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- filesId: filesId!);
+ filesId: filesId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessFilesDeleteResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessFilesDeleteResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessFilesDeleteResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessFilesDeleteResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessFilesDeleteResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs
index 9d5e5da25..8c9014589 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessFilesGetResponseContent(
PrepareFilesGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- filesId: filesId!);
+ filesId: filesId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessFilesGetResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessFilesGetResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessFilesGetResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessFilesGetResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessFilesGetResponseContent(
pathTemplate: "$\"/files/{filesId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs
index f9289451a..63f7dd1c3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs
@@ -171,7 +171,7 @@ partial void ProcessFilesListResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -205,7 +205,7 @@ partial void ProcessFilesListResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -246,7 +246,7 @@ partial void ProcessFilesListResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -294,7 +294,7 @@ partial void ProcessFilesListResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -316,7 +316,7 @@ partial void ProcessFilesListResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs
index f728dd0a5..7b61176ba 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs
@@ -169,7 +169,7 @@ partial void ProcessFilesRegisterResponseContent(
pathTemplate: "\"/files:register\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -203,7 +203,7 @@ partial void ProcessFilesRegisterResponseContent(
pathTemplate: "\"/files:register\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -244,7 +244,7 @@ partial void ProcessFilesRegisterResponseContent(
pathTemplate: "\"/files:register\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -292,7 +292,7 @@ partial void ProcessFilesRegisterResponseContent(
pathTemplate: "\"/files:register\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessFilesRegisterResponseContent(
pathTemplate: "\"/files:register\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs
index f6dc3189c..b8df89108 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs
@@ -171,7 +171,7 @@ partial void ProcessGeneratedFilesListResponseContent(
pathTemplate: "\"/generatedFiles\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -205,7 +205,7 @@ partial void ProcessGeneratedFilesListResponseContent(
pathTemplate: "\"/generatedFiles\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -246,7 +246,7 @@ partial void ProcessGeneratedFilesListResponseContent(
pathTemplate: "\"/generatedFiles\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -294,7 +294,7 @@ partial void ProcessGeneratedFilesListResponseContent(
pathTemplate: "\"/generatedFiles\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -316,7 +316,7 @@ partial void ProcessGeneratedFilesListResponseContent(
pathTemplate: "\"/generatedFiles\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs
index dcc8c3380..2276ef8f8 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessGeneratedFilesOperationsGetResponseContent(
PrepareGeneratedFilesOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- operationsId: operationsId!,
- generatedFilesId: generatedFilesId!);
+ operationsId: operationsId,
+ generatedFilesId: generatedFilesId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessGeneratedFilesOperationsGetResponseContent(
pathTemplate: "$\"/generatedFiles/{generatedFilesId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessGeneratedFilesOperationsGetResponseContent(
pathTemplate: "$\"/generatedFiles/{generatedFilesId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessGeneratedFilesOperationsGetResponseContent(
pathTemplate: "$\"/generatedFiles/{generatedFilesId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessGeneratedFilesOperationsGetResponseContent(
pathTemplate: "$\"/generatedFiles/{generatedFilesId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessGeneratedFilesOperationsGetResponseContent(
pathTemplate: "$\"/generatedFiles/{generatedFilesId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs
index 941f36c01..0cf5be449 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs
@@ -169,7 +169,7 @@ partial void ProcessMediaUploadResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -203,7 +203,7 @@ partial void ProcessMediaUploadResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -244,7 +244,7 @@ partial void ProcessMediaUploadResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -292,7 +292,7 @@ partial void ProcessMediaUploadResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -314,7 +314,7 @@ partial void ProcessMediaUploadResponseContent(
pathTemplate: "\"/files\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 b209f1abd..16554c227 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
@@ -155,7 +155,7 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
PrepareMediaUploadToFileSearchStoreRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- fileSearchStoresId: fileSearchStoresId!,
+ fileSearchStoresId: fileSearchStoresId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
pathTemplate: "$\"/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,36 +435,36 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
/// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.
///
///
- ///
- /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
+ ///
+ /// Optional. Display name of the created document.
///
///
/// Custom metadata to be associated with the data.
///
+ ///
+ /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
+ ///
///
/// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
///
- ///
- /// Optional. Display name of the created document.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
+ string? displayName = default,
global::System.Collections.Generic.IList? customMetadata = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
string? mimeType = default,
- string? displayName = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.UploadToFileSearchStoreRequest
{
- ChunkingConfig = chunkingConfig,
+ DisplayName = displayName,
CustomMetadata = customMetadata,
+ ChunkingConfig = chunkingConfig,
MimeType = mimeType,
- DisplayName = displayName,
};
return await MediaUploadToFileSearchStoreAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs
index 386d9472f..4da1020d1 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs
@@ -155,7 +155,7 @@ partial void ProcessModelsAsyncBatchEmbedContentResponseContent(
PrepareModelsAsyncBatchEmbedContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs
index 52f2469f2..d0a796d4d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs
@@ -155,7 +155,7 @@ partial void ProcessModelsBatchEmbedContentsResponseContent(
PrepareModelsBatchEmbedContentsRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessModelsBatchEmbedContentsResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchEmbedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessModelsBatchEmbedContentsResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchEmbedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessModelsBatchEmbedContentsResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchEmbedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessModelsBatchEmbedContentsResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchEmbedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessModelsBatchEmbedContentsResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchEmbedContents\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs
index 2a875f9b2..4db345207 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs
@@ -155,7 +155,7 @@ partial void ProcessModelsBatchGenerateContentResponseContent(
PrepareModelsBatchGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
index e1d939a47..ca694e1c8 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
@@ -155,7 +155,7 @@ partial void ProcessModelsCountTokensResponseContent(
PrepareModelsCountTokensRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessModelsCountTokensResponseContent(
pathTemplate: "$\"/models/{modelsId}:countTokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessModelsCountTokensResponseContent(
pathTemplate: "$\"/models/{modelsId}:countTokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessModelsCountTokensResponseContent(
pathTemplate: "$\"/models/{modelsId}:countTokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessModelsCountTokensResponseContent(
pathTemplate: "$\"/models/{modelsId}:countTokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessModelsCountTokensResponseContent(
pathTemplate: "$\"/models/{modelsId}:countTokens\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
index 6d0e9cc9e..e2b67f854 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
@@ -157,7 +157,7 @@ partial void ProcessModelsEmbedContentResponseContent(
PrepareModelsEmbedContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -180,7 +180,7 @@ partial void ProcessModelsEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:embedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -214,7 +214,7 @@ partial void ProcessModelsEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:embedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -255,7 +255,7 @@ partial void ProcessModelsEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:embedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessModelsEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:embedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -325,7 +325,7 @@ partial void ProcessModelsEmbedContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:embedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -437,31 +437,31 @@ partial void ProcessModelsEmbedContentResponseContent(
/// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).
///
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`
///
///
/// Configurations for the EmbedContent request.
///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsEmbedContentAsync(
string modelsId,
- global::Google.Gemini.Content? content = default,
string? model = default,
global::Google.Gemini.EmbedContentConfig? embedContentConfig = default,
+ global::Google.Gemini.Content? content = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.EmbedContentRequest
{
- Content = content,
Model = model,
EmbedContentConfig = embedContentConfig,
+ Content = content,
};
return await ModelsEmbedContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
index 3bbd0e463..eac4af839 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
@@ -155,7 +155,7 @@ partial void ProcessModelsGenerateContentResponseContent(
PrepareModelsGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessModelsGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessModelsGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessModelsGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessModelsGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessModelsGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,71 +435,71 @@ partial void ProcessModelsGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
return await ModelsGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs
index 089bebb60..97f0267c5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessModelsGetResponseContent(
PrepareModelsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!);
+ modelsId: modelsId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessModelsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessModelsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessModelsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessModelsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessModelsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs
index 4e420b48c..a395a5c0e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs
@@ -171,7 +171,7 @@ partial void ProcessModelsListResponseContent(
pathTemplate: "\"/models\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -205,7 +205,7 @@ partial void ProcessModelsListResponseContent(
pathTemplate: "\"/models\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -246,7 +246,7 @@ partial void ProcessModelsListResponseContent(
pathTemplate: "\"/models\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -294,7 +294,7 @@ partial void ProcessModelsListResponseContent(
pathTemplate: "\"/models\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -316,7 +316,7 @@ partial void ProcessModelsListResponseContent(
pathTemplate: "\"/models\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs
index 08cbd32a3..1890ad955 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessModelsOperationsGetResponseContent(
PrepareModelsOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- operationsId: operationsId!,
- modelsId: modelsId!);
+ operationsId: operationsId,
+ modelsId: modelsId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessModelsOperationsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessModelsOperationsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessModelsOperationsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessModelsOperationsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessModelsOperationsGetResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs
index 87ecb1733..22844751d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs
@@ -175,7 +175,7 @@ partial void ProcessModelsOperationsListResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
filter: filter,
- modelsId: modelsId!,
+ modelsId: modelsId,
pageSize: pageSize,
pageToken: pageToken,
returnPartialSuccess: returnPartialSuccess);
@@ -200,7 +200,7 @@ partial void ProcessModelsOperationsListResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -234,7 +234,7 @@ partial void ProcessModelsOperationsListResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -275,7 +275,7 @@ partial void ProcessModelsOperationsListResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessModelsOperationsListResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -345,7 +345,7 @@ partial void ProcessModelsOperationsListResponseContent(
pathTemplate: "$\"/models/{modelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 021fe195c..1501e2e7b 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
@@ -159,7 +159,7 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
PrepareModelsStreamGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -182,7 +182,7 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -216,7 +216,7 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -257,7 +257,7 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -327,7 +327,7 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -439,71 +439,71 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
return await ModelsStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContentAsStream.g.cs
index 4b1361f5b..d1c93e028 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
@@ -129,7 +129,7 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
PrepareModelsStreamGenerateContentAsStreamRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId!,
+ modelsId: modelsId,
request: request);
return __httpRequest;
@@ -152,7 +152,7 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -186,7 +186,7 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -227,7 +227,7 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -275,7 +275,7 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -297,7 +297,7 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/models/{modelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -380,71 +380,71 @@ partial void ProcessModelsStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
var __enumerable = ModelsStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs
index 44029b687..929c264f3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs
@@ -155,7 +155,7 @@ partial void ProcessTunedModelsAsyncBatchEmbedContentResponseContent(
PrepareTunedModelsAsyncBatchEmbedContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessTunedModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessTunedModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessTunedModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessTunedModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessTunedModelsAsyncBatchEmbedContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:asyncBatchEmbedContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs
index 209c23c27..858bc4c12 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs
@@ -155,7 +155,7 @@ partial void ProcessTunedModelsBatchGenerateContentResponseContent(
PrepareTunedModelsBatchGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessTunedModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessTunedModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessTunedModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessTunedModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessTunedModelsBatchGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:batchGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 7d96a0b8b..f9165360f 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
@@ -181,7 +181,7 @@ partial void ProcessTunedModelsCreateResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -215,7 +215,7 @@ partial void ProcessTunedModelsCreateResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -256,7 +256,7 @@ partial void ProcessTunedModelsCreateResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -304,7 +304,7 @@ partial void ProcessTunedModelsCreateResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -326,7 +326,7 @@ partial void ProcessTunedModelsCreateResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -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
///
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Tuned model as a source for training a new model.
+ ///
+ ///
+ /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// 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.
- ///
- ///
- /// 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. 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 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.
- ///
/// 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,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- string? baseModel = default,
- string? description = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
int? topK = default,
float? temperature = default,
+ string? displayName = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ string? description = default,
+ string? baseModel = default,
float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.TunedModel
{
- TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
- BaseModel = baseModel,
- Description = description,
- DisplayName = displayName,
+ TunedModelSource = tunedModelSource,
TopK = topK,
Temperature = temperature,
+ DisplayName = displayName,
+ ReaderProjectNumbers = readerProjectNumbers,
+ TuningTask = tuningTask,
+ Description = description,
+ BaseModel = baseModel,
TopP = topP,
- TunedModelSource = tunedModelSource,
};
return await TunedModelsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs
index 344feefd2..fb02cb5d5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs
@@ -136,7 +136,7 @@ partial void ProcessTunedModelsDeleteResponseContent(
PrepareTunedModelsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!);
+ tunedModelsId: tunedModelsId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessTunedModelsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessTunedModelsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessTunedModelsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessTunedModelsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessTunedModelsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 5f6b362ef..7e62f8264 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
@@ -155,7 +155,7 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
PrepareTunedModelsGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:generateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,71 +435,71 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
return await TunedModelsGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs
index 51d482a5d..fce16d43e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs
@@ -136,7 +136,7 @@ partial void ProcessTunedModelsGetResponseContent(
PrepareTunedModelsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!);
+ tunedModelsId: tunedModelsId);
return __httpRequest;
}
@@ -158,7 +158,7 @@ partial void ProcessTunedModelsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -192,7 +192,7 @@ partial void ProcessTunedModelsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessTunedModelsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -281,7 +281,7 @@ partial void ProcessTunedModelsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessTunedModelsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs
index 67dbb4c58..6a0ee5b73 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs
@@ -181,7 +181,7 @@ partial void ProcessTunedModelsListResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -215,7 +215,7 @@ partial void ProcessTunedModelsListResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -256,7 +256,7 @@ partial void ProcessTunedModelsListResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -304,7 +304,7 @@ partial void ProcessTunedModelsListResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -326,7 +326,7 @@ partial void ProcessTunedModelsListResponseContent(
pathTemplate: "\"/tunedModels\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs
index a3ac26f53..2fbd60057 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
PrepareTunedModelsOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
- operationsId: operationsId!);
+ tunedModelsId: tunedModelsId,
+ operationsId: operationsId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations/{operationsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs
index 60432bd35..183f5371b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs
@@ -175,7 +175,7 @@ partial void ProcessTunedModelsOperationsListResponseContent(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
filter: filter,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
pageSize: pageSize,
pageToken: pageToken,
returnPartialSuccess: returnPartialSuccess);
@@ -200,7 +200,7 @@ partial void ProcessTunedModelsOperationsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -234,7 +234,7 @@ partial void ProcessTunedModelsOperationsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -275,7 +275,7 @@ partial void ProcessTunedModelsOperationsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessTunedModelsOperationsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -345,7 +345,7 @@ partial void ProcessTunedModelsOperationsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/operations\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 1c888035a..45f267fbb 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
@@ -166,7 +166,7 @@ partial void ProcessTunedModelsPatchResponseContent(
PrepareTunedModelsPatchRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
updateMask: updateMask,
request: request);
@@ -190,7 +190,7 @@ partial void ProcessTunedModelsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -224,7 +224,7 @@ partial void ProcessTunedModelsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -265,7 +265,7 @@ partial void ProcessTunedModelsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -313,7 +313,7 @@ partial void ProcessTunedModelsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -335,7 +335,7 @@ partial void ProcessTunedModelsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -448,62 +448,62 @@ partial void ProcessTunedModelsPatchResponseContent(
///
///
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Tuned model as a source for training a new model.
+ ///
+ ///
+ /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// 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.
- ///
- ///
- /// 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. 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 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsPatchAsync(
string tunedModelsId,
string? updateMask = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- string? baseModel = default,
- string? description = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
int? topK = default,
float? temperature = default,
+ string? displayName = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ string? description = default,
+ string? baseModel = default,
float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.TunedModel
{
- TuningTask = tuningTask,
- ReaderProjectNumbers = readerProjectNumbers,
- BaseModel = baseModel,
- Description = description,
- DisplayName = displayName,
+ TunedModelSource = tunedModelSource,
TopK = topK,
Temperature = temperature,
+ DisplayName = displayName,
+ ReaderProjectNumbers = readerProjectNumbers,
+ TuningTask = tuningTask,
+ Description = description,
+ BaseModel = baseModel,
TopP = topP,
- TunedModelSource = tunedModelSource,
};
return await TunedModelsPatchAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs
index 984df9bc4..16e8bc986 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
@@ -155,7 +155,7 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
PrepareTunedModelsPermissionsCreateRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -435,31 +435,31 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
/// Create a permission to a specific resource.
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
+ GranteeType = granteeType,
Role = role,
EmailAddress = emailAddress,
- GranteeType = granteeType,
};
return await TunedModelsPermissionsCreateAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs
index b7307f685..7fdae5663 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs
@@ -144,8 +144,8 @@ partial void ProcessTunedModelsPermissionsDeleteResponseContent(
PrepareTunedModelsPermissionsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
- permissionsId: permissionsId!);
+ tunedModelsId: tunedModelsId,
+ permissionsId: permissionsId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessTunedModelsPermissionsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessTunedModelsPermissionsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessTunedModelsPermissionsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessTunedModelsPermissionsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessTunedModelsPermissionsDeleteResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "DELETE",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs
index a47c51c39..dbea87d3d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs
@@ -144,8 +144,8 @@ partial void ProcessTunedModelsPermissionsGetResponseContent(
PrepareTunedModelsPermissionsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
- permissionsId: permissionsId!);
+ tunedModelsId: tunedModelsId,
+ permissionsId: permissionsId);
return __httpRequest;
}
@@ -167,7 +167,7 @@ partial void ProcessTunedModelsPermissionsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -201,7 +201,7 @@ partial void ProcessTunedModelsPermissionsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -242,7 +242,7 @@ partial void ProcessTunedModelsPermissionsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -290,7 +290,7 @@ partial void ProcessTunedModelsPermissionsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -312,7 +312,7 @@ partial void ProcessTunedModelsPermissionsGetResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs
index bbc9bf6dc..80285f751 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs
@@ -158,7 +158,7 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
httpRequestMessage: __httpRequest,
pageSize: pageSize,
pageToken: pageToken,
- tunedModelsId: tunedModelsId!);
+ tunedModelsId: tunedModelsId);
return __httpRequest;
}
@@ -180,7 +180,7 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -214,7 +214,7 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -255,7 +255,7 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -303,7 +303,7 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -325,7 +325,7 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions\"",
httpMethod: "GET",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs
index a61ff9381..c60e3947c 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
@@ -174,8 +174,8 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
PrepareTunedModelsPermissionsPatchRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
- permissionsId: permissionsId!,
+ tunedModelsId: tunedModelsId,
+ permissionsId: permissionsId,
updateMask: updateMask,
request: request);
@@ -199,7 +199,7 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -233,7 +233,7 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -274,7 +274,7 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -322,7 +322,7 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -344,7 +344,7 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}/permissions/{permissionsId}\"",
httpMethod: "PATCH",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -458,15 +458,15 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
///
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.Permission
{
+ GranteeType = granteeType,
Role = role,
EmailAddress = emailAddress,
- GranteeType = granteeType,
};
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 52c9205c2..442fab4ed 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
@@ -159,7 +159,7 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
PrepareTunedModelsStreamGenerateContentRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
request: request);
return __httpRequest;
@@ -182,7 +182,7 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -216,7 +216,7 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -257,7 +257,7 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -305,7 +305,7 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -327,7 +327,7 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -439,71 +439,71 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
return await TunedModelsStreamGenerateContentAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
index b10acfbf5..2b37c137f 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
@@ -129,7 +129,7 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
PrepareTunedModelsStreamGenerateContentAsStreamRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
request: request);
return __httpRequest;
@@ -152,7 +152,7 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -186,7 +186,7 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -227,7 +227,7 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -275,7 +275,7 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -297,7 +297,7 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:streamGenerateContent\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -380,71 +380,71 @@ partial void ProcessTunedModelsStreamGenerateContentAsStreamResponse(
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
public async global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
{
var __request = new global::Google.Gemini.GenerateContentRequest
{
- Model = model,
- Labels = labels,
- ToolConfig = toolConfig,
+ CachedContent = cachedContent,
+ Contents = contents,
ServiceTier = serviceTier,
- Tools = tools,
Store = store,
- SafetySettings = safetySettings,
- SystemInstruction = systemInstruction,
+ Labels = labels,
GenerationConfig = generationConfig,
- CachedContent = cachedContent,
- Contents = contents,
+ ToolConfig = toolConfig,
+ SystemInstruction = systemInstruction,
+ SafetySettings = safetySettings,
+ Model = model,
+ Tools = tools,
};
var __enumerable = TunedModelsStreamGenerateContentAsStreamAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs
index 7ebbce444..8b363f46e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs
@@ -155,7 +155,7 @@ partial void ProcessTunedModelsTransferOwnershipResponseContent(
PrepareTunedModelsTransferOwnershipRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId!,
+ tunedModelsId: tunedModelsId,
request: request);
return __httpRequest;
@@ -178,7 +178,7 @@ partial void ProcessTunedModelsTransferOwnershipResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:transferOwnership\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
@@ -212,7 +212,7 @@ partial void ProcessTunedModelsTransferOwnershipResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:transferOwnership\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
@@ -253,7 +253,7 @@ partial void ProcessTunedModelsTransferOwnershipResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:transferOwnership\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -301,7 +301,7 @@ partial void ProcessTunedModelsTransferOwnershipResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:transferOwnership\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
@@ -323,7 +323,7 @@ partial void ProcessTunedModelsTransferOwnershipResponseContent(
pathTemplate: "$\"/tunedModels/{tunedModelsId}:transferOwnership\"",
httpMethod: "POST",
baseUri: BaseUri,
- request: __httpRequest!,
+ request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
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 7a1ebff1a..aaaee9555 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
@@ -40,12 +40,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 number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.
///
+ ///
+ /// Optional. Input only. Immutable. 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.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
@@ -53,8 +53,8 @@ public partial interface IGeminiClient
string? newSessionExpireTime = default,
string? expireTime = default,
global::Google.Gemini.BidiGenerateContentSetup? bidiGenerateContentSetup = default,
- string? fieldMask = default,
int? uses = default,
+ string? fieldMask = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateEmbedContentBatch.g.cs
index 2db56c2c7..ab18d69ea 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
///
///
///
- ///
- /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
- ///
///
/// Required. The user-defined name of this batch.
///
+ ///
+ /// 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}`.
+ ///
///
/// Stats about the batch.
///
///
/// Configures the input to the batch request.
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.
+ ///
+ /// Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.
///
/// 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,
- string? priority = default,
string? displayName = default,
+ global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ string? model = default,
global::Google.Gemini.EmbedContentBatchStats? batchStats = default,
global::Google.Gemini.InputEmbedContentConfig? inputConfig = default,
- string? model = default,
- global::Google.Gemini.EmbedContentBatchOutput? output = default,
+ string? priority = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.BatchesUpdateGenerateContentBatch.g.cs
index ca878ba8f..2c9459ad8 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
///
///
///
- ///
- /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
- ///
- ///
- /// Required. The user-defined name of this batch.
- ///
- ///
- /// Stats about the batch.
- ///
///
/// Configures the input to the batch request.
///
+ ///
+ /// The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.
+ ///
///
/// 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.
///
+ ///
+ /// Required. The user-defined name of this batch.
+ ///
+ ///
+ /// Stats about the batch.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task BatchesUpdateGenerateContentBatchAsync(
string batchesId,
string? updateMask = default,
- global::Google.Gemini.GenerateContentBatchOutput? output = default,
- string? displayName = default,
- global::Google.Gemini.BatchStats? batchStats = default,
global::Google.Gemini.InputConfig? inputConfig = default,
+ global::Google.Gemini.GenerateContentBatchOutput? output = default,
string? model = default,
string? priority = default,
+ string? displayName = default,
+ global::Google.Gemini.BatchStats? batchStats = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CachedContentsCreate.g.cs
index d4bbc8508..6dda9a474 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,46 +31,46 @@ public partial interface IGeminiClient
///
/// Creates CachedContent resource.
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
///
/// Metadata on the usage of the cached content.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// 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? displayName = default,
string? expireTime = default,
- string? ttl = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? ttl = default,
+ string? model = default,
global::System.Collections.Generic.IList? tools = default,
+ string? displayName = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.Content? systemInstruction = default,
- string? model = 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 c83427316..2032cf0c1 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,48 +41,48 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
- ///
///
/// Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.
///
- ///
- /// Input only. New TTL for this resource, input only.
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
+ ///
+ /// The Tool configuration containing parameters for specifying `Tool` use in the request.
///
///
/// Metadata on the usage of the cached content.
///
+ ///
+ /// Input only. New TTL for this resource, input only.
+ ///
+ ///
+ /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
+ ///
///
/// Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response
///
+ ///
+ /// Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.
+ ///
///
/// Optional. Input only. Immutable. The content to cache.
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
- ///
- /// Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`
- ///
- ///
- /// 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? displayName = default,
string? expireTime = default,
- string? ttl = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
global::Google.Gemini.CachedContentUsageMetadata? usageMetadata = default,
+ string? ttl = default,
+ string? model = default,
global::System.Collections.Generic.IList? tools = default,
+ string? displayName = default,
global::System.Collections.Generic.IList? contents = default,
- global::Google.Gemini.Content? systemInstruction = default,
- string? model = 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 9fdaa4879..8736c8ace 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.
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsPatch.g.cs
index 52e19f8e1..674f1dfea 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,15 +46,15 @@ public partial interface IGeminiClient
///
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = 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 c852e7ba9..759475c9b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicGenerateContent.g.cs
@@ -36,55 +36,55 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task DynamicGenerateContentAsync(
string dynamicId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 9fb55cb07..c393faab3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContent.g.cs
@@ -36,55 +36,55 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task DynamicStreamGenerateContentAsync(
string dynamicId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 1eb1966c4..af22c1db3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.DynamicStreamGenerateContentAsStream.g.cs
@@ -22,55 +22,55 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable DynamicStreamGenerateContentAsStreamAsync(
string dynamicId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 87af552fb..33e2fb29d 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,9 +31,6 @@ public partial interface IGeminiClient
///
/// Creates an environment.
///
- ///
- /// Network egress configuration for the environment.
- ///
///
/// Network egress mode.
///
@@ -43,14 +40,17 @@ 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.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
index 6616cc1c7..490b53614 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -36,27 +36,27 @@ public partial interface IGeminiClient
/// Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.
///
///
- ///
- /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
+ ///
+ /// Optional. Display name of the created document.
///
///
/// Custom metadata to be associated with the data.
///
+ ///
+ /// Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto
+ ///
///
/// Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content.
///
- ///
- /// Optional. Display name of the created document.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task MediaUploadToFileSearchStoreAsync(
string fileSearchStoresId,
- global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
+ string? displayName = default,
global::System.Collections.Generic.IList? customMetadata = default,
+ global::Google.Gemini.ChunkingConfig? chunkingConfig = default,
string? mimeType = default,
- string? displayName = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs
index c9ec16717..93f07c6e4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsEmbedContent.g.cs
@@ -38,23 +38,23 @@ public partial interface IGeminiClient
/// Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).
///
///
- ///
- /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
- ///
///
/// Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`
///
///
/// Configurations for the EmbedContent request.
///
+ ///
+ /// The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.
+ ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsEmbedContentAsync(
string modelsId,
- global::Google.Gemini.Content? content = default,
string? model = default,
global::Google.Gemini.EmbedContentConfig? embedContentConfig = default,
+ global::Google.Gemini.Content? content = 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 0a537659d..0289043dd 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsGenerateContent.g.cs
@@ -36,55 +36,55 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsGenerateContentAsync(
string modelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 70bd3abe8..67ac178aa 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContent.g.cs
@@ -36,55 +36,55 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task ModelsStreamGenerateContentAsync(
string modelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 79d645364..3ce1d09a6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsStreamGenerateContentAsStream.g.cs
@@ -22,55 +22,55 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable ModelsStreamGenerateContentAsStreamAsync(
string modelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 36bce64ae..3da044b2f 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
///
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Tuned model as a source for training a new model.
+ ///
+ ///
+ /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// 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.
- ///
- ///
- /// 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. 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 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.
- ///
/// 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,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- string? baseModel = default,
- string? description = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
int? topK = default,
float? temperature = default,
+ string? displayName = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ string? description = default,
+ string? baseModel = default,
float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = 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 144d21af8..299ecb3b7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsGenerateContent.g.cs
@@ -36,55 +36,55 @@ public partial interface IGeminiClient
/// Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsGenerateContentAsync(
string tunedModelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 097d63615..50aa6a8c5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPatch.g.cs
@@ -41,48 +41,48 @@ public partial interface IGeminiClient
///
///
///
- ///
- /// Tuning tasks that create tuned models.
+ ///
+ /// Tuned model as a source for training a new model.
+ ///
+ ///
+ /// Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.
+ ///
+ ///
+ /// Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.
///
///
/// Optional. List of project numbers that have read access to the tuned model.
///
- ///
- /// Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`
+ ///
+ /// Tuning tasks that create tuned models.
///
///
/// 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.
- ///
- ///
- /// 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. 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 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.
- ///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsPatchAsync(
string tunedModelsId,
string? updateMask = default,
- global::Google.Gemini.TuningTask? tuningTask = default,
- global::System.Collections.Generic.IList? readerProjectNumbers = default,
- string? baseModel = default,
- string? description = default,
- string? displayName = default,
+ global::Google.Gemini.TunedModelSource? tunedModelSource = default,
int? topK = default,
float? temperature = default,
+ string? displayName = default,
+ global::System.Collections.Generic.IList? readerProjectNumbers = default,
+ global::Google.Gemini.TuningTask? tuningTask = default,
+ string? description = default,
+ string? baseModel = default,
float? topP = default,
- global::Google.Gemini.TunedModelSource? tunedModelSource = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsCreate.g.cs
index ac83efb9a..5c5f33eb0 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.
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = default,
global::Google.Gemini.AutoSDKRequestOptions? requestOptions = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsPatch.g.cs
index ecc922215..9e3910e82 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,15 +46,15 @@ public partial interface IGeminiClient
///
///
///
+ ///
+ /// Optional. Immutable. The type of the grantee.
+ ///
///
/// Required. The role granted by this permission.
///
///
/// Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE.
///
- ///
- /// Optional. Immutable. The type of the grantee.
- ///
/// 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.PermissionGranteeType? granteeType = default,
global::Google.Gemini.PermissionRole? role = default,
string? emailAddress = default,
- global::Google.Gemini.PermissionGranteeType? granteeType = 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 0e2421a2b..dbeda6787 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContent.g.cs
@@ -36,55 +36,55 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsStreamGenerateContentAsync(
string tunedModelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 59b882306..06e5a2aad 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsStreamGenerateContentAsStream.g.cs
@@ -22,55 +22,55 @@ public partial interface IGeminiClient
/// Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.
///
///
- ///
- /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
- ///
- ///
- /// 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. 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}`
///
- ///
- /// 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. The service tier of the request.
///
- ///
- /// Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more.
- ///
///
/// Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config.
///
- ///
- /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
+ ///
+ /// Optional. 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"}`)
+ ///
+ ///
+ /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ ///
+ /// 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.
///
- ///
- /// Configuration options for model generation and outputs. Not all parameters are configurable for every model.
+ ///
+ /// Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.
///
- ///
- /// Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`
+ ///
+ /// Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.
///
- ///
- /// Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.
+ ///
+ /// 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.
///
/// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering.
/// The token to cancel the operation with
///
global::System.Collections.Generic.IAsyncEnumerable TunedModelsStreamGenerateContentAsStreamAsync(
string tunedModelsId,
- string? model = default,
- global::System.Collections.Generic.Dictionary? labels = default,
- global::Google.Gemini.ToolConfig? toolConfig = default,
+ string? cachedContent = default,
+ global::System.Collections.Generic.IList? contents = default,
global::Google.Gemini.GenerateContentRequestServiceTier? serviceTier = default,
- global::System.Collections.Generic.IList? tools = default,
bool? store = default,
- global::System.Collections.Generic.IList? safetySettings = default,
- global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.Dictionary? labels = default,
global::Google.Gemini.GenerationConfig? generationConfig = default,
- string? cachedContent = default,
- global::System.Collections.Generic.IList? contents = default,
+ global::Google.Gemini.ToolConfig? toolConfig = default,
+ global::Google.Gemini.Content? systemInstruction = default,
+ global::System.Collections.Generic.IList? safetySettings = default,
+ string? model = default,
+ global::System.Collections.Generic.IList? tools = 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 640c263de..bd3b1f077 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.JsonSerializerContext.g.cs
@@ -1,584 +1,591 @@
#nullable enable
-#pragma warning disable CS0618 // Type or member is obsolete
-#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant
-
namespace Google.Gemini
{
///
///
///
+ #pragma warning disable CS3016 // Converter type array in this attribute is not CLS-compliant.
[global::System.Text.Json.Serialization.JsonSourceGenerationOptions(
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters = new global::System.Type[]
{
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
-
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SchemaTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonJsonConverter),
typeof(global::Google.Gemini.JsonConverters.PromptFeedbackBlockReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CreateEnvironmentRequestNetworkModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolResponseToolTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.PartMediaProcessingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.TunedModelStateJsonConverter),
typeof(global::Google.Gemini.JsonConverters.TunedModelStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GeneratedFileStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.CandidateFinishReasonNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionRoleNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.PermissionGranteeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionStartOfSpeechSensitivityNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ModalityTokenCountModalityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.FunctionResponseSchedulingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatDeliveryNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ThinkingConfigThinkingLevelNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatAspectRatioNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseEnvironmentNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatMimeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ComputerUseDisabledSafetyPolicieNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ImageResponseFormatImageSizeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingCategoryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DocumentStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.SafetySettingThresholdNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentRequestTaskTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatMimeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.DynamicRetrievalConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioResponseFormatDeliveryNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.ExecutableCodeLanguageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.UsageMetadataServiceTierNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EmbedContentBatchStateNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeJsonConverter),
typeof(global::Google.Gemini.JsonConverters.CodeExecutionResultOutcomeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.ToolCallToolTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingCategoryNullableJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityJsonConverter),
+
+ typeof(global::Google.Gemini.JsonConverters.SafetyRatingProbabilityNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageJsonConverter),
typeof(global::Google.Gemini.JsonConverters.ModelStatusModelStageNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileStateNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.V1mainMediaResolutionLevelNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FileSourceNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.GenerateContentBatchStateNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerateContentRequestServiceTierNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentFileTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter),
- 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.AutomaticActivityDetectionEndOfSpeechSensitivityJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AutomaticActivityDetectionEndOfSpeechSensitivityNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionDeclarationBehaviorNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EmbedContentConfigTaskTypeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.TextResponseFormatMimeTypeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigTurnCoverageNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.UrlMetadataUrlRetrievalStatusNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.RealtimeInputConfigActivityHandlingNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigResponseModalitieNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentStatusNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.GenerationConfigMediaResolutionNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.EnvironmentNetworkModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.FunctionCallingConfigModeNullableJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SourceTypeJsonConverter),
- typeof(global::Google.Gemini.JsonConverters.AudioTranscriptionConfigModeNullableJsonConverter),
+ typeof(global::Google.Gemini.JsonConverters.SourceTypeNullableJsonConverter),
typeof(global::Google.Gemini.JsonConverters.UnixTimestampJsonConverter),
})]
+ #pragma warning restore CS3016
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Google.Gemini.JsonSerializerContextTypes))]
[global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List