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 5010696..78266e9 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
@@ -7,13 +7,13 @@ public partial class GeminiClient
{
partial void PrepareCorporaDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string corporaId,
- ref bool? force);
+ ref bool? force,
+ ref string corporaId);
partial void PrepareCorporaDeleteRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string corporaId,
- bool? force);
+ bool? force,
+ string corporaId);
partial void ProcessCorporaDeleteResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -26,8 +26,8 @@ partial void ProcessCorporaDeleteResponseContent(
///
/// Deletes a `Corpus`.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaDeleteAsync(
@@ -39,8 +39,8 @@ partial void ProcessCorporaDeleteResponseContent(
client: HttpClient);
PrepareCorporaDeleteArguments(
httpClient: HttpClient,
- corporaId: ref corporaId,
- force: ref force);
+ force: ref force,
+ corporaId: ref corporaId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/corpora/{corporaId}",
@@ -71,8 +71,8 @@ partial void ProcessCorporaDeleteResponseContent(
PrepareCorporaDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId,
- force: force);
+ force: force,
+ corporaId: corporaId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 49d540d..23f2f51 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
@@ -7,13 +7,13 @@ public partial class GeminiClient
{
partial void PrepareCorporaOperationsGetArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string corporaId,
- ref string operationsId);
+ ref string operationsId,
+ ref string corporaId);
partial void PrepareCorporaOperationsGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string corporaId,
- string operationsId);
+ string operationsId,
+ string corporaId);
partial void ProcessCorporaOperationsGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -26,21 +26,21 @@ partial void ProcessCorporaOperationsGetResponseContent(
///
/// Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaOperationsGetAsync(
- string corporaId,
string operationsId,
+ string corporaId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareCorporaOperationsGetArguments(
httpClient: HttpClient,
- corporaId: ref corporaId,
- operationsId: ref operationsId);
+ operationsId: ref operationsId,
+ corporaId: ref corporaId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/corpora/{corporaId}/operations/{operationsId}",
@@ -68,8 +68,8 @@ partial void ProcessCorporaOperationsGetResponseContent(
PrepareCorporaOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId,
- operationsId: operationsId);
+ operationsId: operationsId,
+ corporaId: corporaId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 492f5de..e4626d7 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
@@ -7,13 +7,13 @@ public partial class GeminiClient
{
partial void PrepareCorporaPermissionsDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string corporaId,
- ref string permissionsId);
+ ref string permissionsId,
+ ref string corporaId);
partial void PrepareCorporaPermissionsDeleteRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string corporaId,
- string permissionsId);
+ string permissionsId,
+ string corporaId);
partial void ProcessCorporaPermissionsDeleteResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -26,21 +26,21 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
///
/// Deletes the permission.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsDeleteAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareCorporaPermissionsDeleteArguments(
httpClient: HttpClient,
- corporaId: ref corporaId,
- permissionsId: ref permissionsId);
+ permissionsId: ref permissionsId,
+ corporaId: ref corporaId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/corpora/{corporaId}/permissions/{permissionsId}",
@@ -68,8 +68,8 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
PrepareCorporaPermissionsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId,
- permissionsId: permissionsId);
+ permissionsId: permissionsId,
+ corporaId: corporaId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 fbd0e14..7a0c5e6 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
@@ -7,13 +7,13 @@ public partial class GeminiClient
{
partial void PrepareCorporaPermissionsGetArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string corporaId,
- ref string permissionsId);
+ ref string permissionsId,
+ ref string corporaId);
partial void PrepareCorporaPermissionsGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string corporaId,
- string permissionsId);
+ string permissionsId,
+ string corporaId);
partial void ProcessCorporaPermissionsGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -26,21 +26,21 @@ partial void ProcessCorporaPermissionsGetResponseContent(
///
/// Gets information about a specific Permission.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsGetAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareCorporaPermissionsGetArguments(
httpClient: HttpClient,
- corporaId: ref corporaId,
- permissionsId: ref permissionsId);
+ permissionsId: ref permissionsId,
+ corporaId: ref corporaId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/corpora/{corporaId}/permissions/{permissionsId}",
@@ -68,8 +68,8 @@ partial void ProcessCorporaPermissionsGetResponseContent(
PrepareCorporaPermissionsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId,
- permissionsId: permissionsId);
+ permissionsId: permissionsId,
+ corporaId: corporaId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 15516bf..0ea504a 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
@@ -7,15 +7,15 @@ public partial class GeminiClient
{
partial void PrepareCorporaPermissionsListArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string corporaId,
ref int? pageSize,
- ref string? pageToken);
+ ref string? pageToken,
+ ref string corporaId);
partial void PrepareCorporaPermissionsListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string corporaId,
int? pageSize,
- string? pageToken);
+ string? pageToken,
+ string corporaId);
partial void ProcessCorporaPermissionsListResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -28,9 +28,9 @@ partial void ProcessCorporaPermissionsListResponseContent(
///
/// Lists permissions for the specific resource.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsListAsync(
@@ -43,9 +43,9 @@ partial void ProcessCorporaPermissionsListResponseContent(
client: HttpClient);
PrepareCorporaPermissionsListArguments(
httpClient: HttpClient,
- corporaId: ref corporaId,
pageSize: ref pageSize,
- pageToken: ref pageToken);
+ pageToken: ref pageToken,
+ corporaId: ref corporaId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/corpora/{corporaId}/permissions",
@@ -77,9 +77,9 @@ partial void ProcessCorporaPermissionsListResponseContent(
PrepareCorporaPermissionsListRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId,
pageSize: pageSize,
- pageToken: pageToken);
+ pageToken: pageToken,
+ corporaId: corporaId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 063d127..9b4ff65 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
@@ -7,15 +7,15 @@ public partial class GeminiClient
{
partial void PrepareCorporaPermissionsPatchArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string corporaId,
ref string permissionsId,
+ ref string corporaId,
ref string? updateMask,
global::Google.Gemini.Permission request);
partial void PrepareCorporaPermissionsPatchRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string corporaId,
string permissionsId,
+ string corporaId,
string? updateMask,
global::Google.Gemini.Permission request);
partial void ProcessCorporaPermissionsPatchResponse(
@@ -30,15 +30,15 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
///
/// Updates the permission.
///
- ///
///
+ ///
///
///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsPatchAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
global::Google.Gemini.Permission request,
string? updateMask = default,
@@ -50,8 +50,8 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
client: HttpClient);
PrepareCorporaPermissionsPatchArguments(
httpClient: HttpClient,
- corporaId: ref corporaId,
permissionsId: ref permissionsId,
+ corporaId: ref corporaId,
updateMask: ref updateMask,
request: request);
@@ -90,8 +90,8 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
PrepareCorporaPermissionsPatchRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- corporaId: corporaId,
permissionsId: permissionsId,
+ corporaId: corporaId,
updateMask: updateMask,
request: request);
@@ -195,8 +195,8 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
///
/// Updates the permission.
///
- ///
///
+ ///
///
///
/// Optional. Immutable. The type of the grantee.
@@ -210,8 +210,8 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task CorporaPermissionsPatchAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
string? updateMask = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
string? emailAddress = default,
@@ -226,8 +226,8 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
};
return await CorporaPermissionsPatchAsync(
- corporaId: corporaId,
permissionsId: permissionsId,
+ corporaId: corporaId,
updateMask: updateMask,
request: __request,
cancellationToken: cancellationToken).ConfigureAwait(false);
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 12bbeac..7881bc9 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
@@ -7,13 +7,13 @@ public partial class GeminiClient
{
partial void PrepareFileSearchStoresDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string fileSearchStoresId,
- ref bool? force);
+ ref bool? force,
+ ref string fileSearchStoresId);
partial void PrepareFileSearchStoresDeleteRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string fileSearchStoresId,
- bool? force);
+ bool? force,
+ string fileSearchStoresId);
partial void ProcessFileSearchStoresDeleteResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -26,8 +26,8 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
///
/// Deletes a `FileSearchStore`.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task FileSearchStoresDeleteAsync(
@@ -39,8 +39,8 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
client: HttpClient);
PrepareFileSearchStoresDeleteArguments(
httpClient: HttpClient,
- fileSearchStoresId: ref fileSearchStoresId,
- force: ref force);
+ force: ref force,
+ fileSearchStoresId: ref fileSearchStoresId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/fileSearchStores/{fileSearchStoresId}",
@@ -71,8 +71,8 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
PrepareFileSearchStoresDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- fileSearchStoresId: fileSearchStoresId,
- force: force);
+ force: force,
+ fileSearchStoresId: fileSearchStoresId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 8218225..3db828a 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
@@ -7,15 +7,15 @@ public partial class GeminiClient
{
partial void PrepareFileSearchStoresDocumentsDeleteArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string documentsId,
ref string fileSearchStoresId,
- ref bool? force);
+ ref bool? force,
+ ref string documentsId);
partial void PrepareFileSearchStoresDocumentsDeleteRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string documentsId,
string fileSearchStoresId,
- bool? force);
+ bool? force,
+ string documentsId);
partial void ProcessFileSearchStoresDocumentsDeleteResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -28,14 +28,14 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
///
/// Deletes a `Document`.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task FileSearchStoresDocumentsDeleteAsync(
- string documentsId,
string fileSearchStoresId,
+ string documentsId,
bool? force = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -43,9 +43,9 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
client: HttpClient);
PrepareFileSearchStoresDocumentsDeleteArguments(
httpClient: HttpClient,
- documentsId: ref documentsId,
fileSearchStoresId: ref fileSearchStoresId,
- force: ref force);
+ force: ref force,
+ documentsId: ref documentsId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",
@@ -76,9 +76,9 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
PrepareFileSearchStoresDocumentsDeleteRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- documentsId: documentsId,
fileSearchStoresId: fileSearchStoresId,
- force: force);
+ force: force,
+ documentsId: documentsId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 2a86e24..82092da 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
@@ -7,13 +7,13 @@ public partial class GeminiClient
{
partial void PrepareFileSearchStoresDocumentsGetArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string documentsId,
- ref string fileSearchStoresId);
+ ref string fileSearchStoresId,
+ ref string documentsId);
partial void PrepareFileSearchStoresDocumentsGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string documentsId,
- string fileSearchStoresId);
+ string fileSearchStoresId,
+ string documentsId);
partial void ProcessFileSearchStoresDocumentsGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -26,21 +26,21 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
///
/// Gets information about a specific `Document`.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task FileSearchStoresDocumentsGetAsync(
- string documentsId,
string fileSearchStoresId,
+ string documentsId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareFileSearchStoresDocumentsGetArguments(
httpClient: HttpClient,
- documentsId: ref documentsId,
- fileSearchStoresId: ref fileSearchStoresId);
+ fileSearchStoresId: ref fileSearchStoresId,
+ documentsId: ref documentsId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",
@@ -68,8 +68,8 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
PrepareFileSearchStoresDocumentsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- documentsId: documentsId,
- fileSearchStoresId: fileSearchStoresId);
+ fileSearchStoresId: fileSearchStoresId,
+ documentsId: documentsId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 619edbc..53edb6a 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
@@ -7,15 +7,15 @@ public partial class GeminiClient
{
partial void PrepareFileSearchStoresDocumentsListArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string fileSearchStoresId,
ref int? pageSize,
- ref string? pageToken);
+ ref string? pageToken,
+ ref string fileSearchStoresId);
partial void PrepareFileSearchStoresDocumentsListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string fileSearchStoresId,
int? pageSize,
- string? pageToken);
+ string? pageToken,
+ string fileSearchStoresId);
partial void ProcessFileSearchStoresDocumentsListResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -28,9 +28,9 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
///
/// Lists all `Document`s in a `Corpus`.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task FileSearchStoresDocumentsListAsync(
@@ -43,9 +43,9 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
client: HttpClient);
PrepareFileSearchStoresDocumentsListArguments(
httpClient: HttpClient,
- fileSearchStoresId: ref fileSearchStoresId,
pageSize: ref pageSize,
- pageToken: ref pageToken);
+ pageToken: ref pageToken,
+ fileSearchStoresId: ref fileSearchStoresId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/fileSearchStores/{fileSearchStoresId}/documents",
@@ -77,9 +77,9 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
PrepareFileSearchStoresDocumentsListRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- fileSearchStoresId: fileSearchStoresId,
pageSize: pageSize,
- pageToken: pageToken);
+ pageToken: pageToken,
+ fileSearchStoresId: fileSearchStoresId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 669ebde..b14eaec 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
@@ -7,16 +7,16 @@ public partial class GeminiClient
{
partial void PrepareModelsOperationsListArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string modelsId,
ref string? filter,
+ ref string modelsId,
ref int? pageSize,
ref string? pageToken,
ref bool? returnPartialSuccess);
partial void PrepareModelsOperationsListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string modelsId,
string? filter,
+ string modelsId,
int? pageSize,
string? pageToken,
bool? returnPartialSuccess);
@@ -32,8 +32,8 @@ partial void ProcessModelsOperationsListResponseContent(
///
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
///
- ///
///
+ ///
///
///
///
@@ -51,8 +51,8 @@ partial void ProcessModelsOperationsListResponseContent(
client: HttpClient);
PrepareModelsOperationsListArguments(
httpClient: HttpClient,
- modelsId: ref modelsId,
filter: ref filter,
+ modelsId: ref modelsId,
pageSize: ref pageSize,
pageToken: ref pageToken,
returnPartialSuccess: ref returnPartialSuccess);
@@ -89,8 +89,8 @@ partial void ProcessModelsOperationsListResponseContent(
PrepareModelsOperationsListRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- modelsId: modelsId,
filter: filter,
+ modelsId: modelsId,
pageSize: pageSize,
pageToken: pageToken,
returnPartialSuccess: returnPartialSuccess);
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 81c9a3b..46d35cb 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
@@ -7,15 +7,15 @@ public partial class GeminiClient
{
partial void PrepareTunedModelsListArguments(
global::System.Net.Http.HttpClient httpClient,
+ ref string? filter,
ref int? pageSize,
- ref string? pageToken,
- ref string? filter);
+ ref string? pageToken);
partial void PrepareTunedModelsListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
+ string? filter,
int? pageSize,
- string? pageToken,
- string? filter);
+ string? pageToken);
partial void ProcessTunedModelsListResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -28,24 +28,24 @@ partial void ProcessTunedModelsListResponseContent(
///
/// Lists created tuned models.
///
+ ///
///
///
- ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsListAsync(
+ string? filter = default,
int? pageSize = default,
string? pageToken = default,
- string? filter = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareTunedModelsListArguments(
httpClient: HttpClient,
+ filter: ref filter,
pageSize: ref pageSize,
- pageToken: ref pageToken,
- filter: ref filter);
+ pageToken: ref pageToken);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: "/tunedModels",
@@ -59,9 +59,9 @@ partial void ProcessTunedModelsListResponseContent(
}
}
__pathBuilder
+ .AddOptionalParameter("filter", filter)
.AddOptionalParameter("pageSize", pageSize?.ToString())
- .AddOptionalParameter("pageToken", pageToken)
- .AddOptionalParameter("filter", filter)
+ .AddOptionalParameter("pageToken", pageToken)
;
var __path = __pathBuilder.ToString();
using var __httpRequest = new global::System.Net.Http.HttpRequestMessage(
@@ -78,9 +78,9 @@ partial void ProcessTunedModelsListResponseContent(
PrepareTunedModelsListRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
+ filter: filter,
pageSize: pageSize,
- pageToken: pageToken,
- filter: filter);
+ pageToken: pageToken);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 da7795d..0dc1cd7 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
@@ -7,13 +7,13 @@ public partial class GeminiClient
{
partial void PrepareTunedModelsOperationsGetArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string operationsId,
- ref string tunedModelsId);
+ ref string tunedModelsId,
+ ref string operationsId);
partial void PrepareTunedModelsOperationsGetRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string operationsId,
- string tunedModelsId);
+ string tunedModelsId,
+ string operationsId);
partial void ProcessTunedModelsOperationsGetResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -26,21 +26,21 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
///
/// Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsOperationsGetAsync(
- string operationsId,
string tunedModelsId,
+ string operationsId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
client: HttpClient);
PrepareTunedModelsOperationsGetArguments(
httpClient: HttpClient,
- operationsId: ref operationsId,
- tunedModelsId: ref tunedModelsId);
+ tunedModelsId: ref tunedModelsId,
+ operationsId: ref operationsId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/tunedModels/{tunedModelsId}/operations/{operationsId}",
@@ -68,8 +68,8 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
PrepareTunedModelsOperationsGetRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- operationsId: operationsId,
- tunedModelsId: tunedModelsId);
+ tunedModelsId: tunedModelsId,
+ operationsId: operationsId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
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 80c699f..75e89d3 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
@@ -7,16 +7,16 @@ public partial class GeminiClient
{
partial void PrepareTunedModelsOperationsListArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string tunedModelsId,
ref string? filter,
+ ref string tunedModelsId,
ref int? pageSize,
ref string? pageToken,
ref bool? returnPartialSuccess);
partial void PrepareTunedModelsOperationsListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string tunedModelsId,
string? filter,
+ string tunedModelsId,
int? pageSize,
string? pageToken,
bool? returnPartialSuccess);
@@ -32,8 +32,8 @@ partial void ProcessTunedModelsOperationsListResponseContent(
///
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
///
- ///
///
+ ///
///
///
///
@@ -51,8 +51,8 @@ partial void ProcessTunedModelsOperationsListResponseContent(
client: HttpClient);
PrepareTunedModelsOperationsListArguments(
httpClient: HttpClient,
- tunedModelsId: ref tunedModelsId,
filter: ref filter,
+ tunedModelsId: ref tunedModelsId,
pageSize: ref pageSize,
pageToken: ref pageToken,
returnPartialSuccess: ref returnPartialSuccess);
@@ -89,8 +89,8 @@ partial void ProcessTunedModelsOperationsListResponseContent(
PrepareTunedModelsOperationsListRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId,
filter: filter,
+ tunedModelsId: tunedModelsId,
pageSize: pageSize,
pageToken: pageToken,
returnPartialSuccess: returnPartialSuccess);
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 5644e77..8fae67d 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
@@ -7,15 +7,15 @@ public partial class GeminiClient
{
partial void PrepareTunedModelsPermissionsListArguments(
global::System.Net.Http.HttpClient httpClient,
- ref string tunedModelsId,
ref int? pageSize,
- ref string? pageToken);
+ ref string? pageToken,
+ ref string tunedModelsId);
partial void PrepareTunedModelsPermissionsListRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
- string tunedModelsId,
int? pageSize,
- string? pageToken);
+ string? pageToken,
+ string tunedModelsId);
partial void ProcessTunedModelsPermissionsListResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -28,9 +28,9 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
///
/// Lists permissions for the specific resource.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
public async global::System.Threading.Tasks.Task TunedModelsPermissionsListAsync(
@@ -43,9 +43,9 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
client: HttpClient);
PrepareTunedModelsPermissionsListArguments(
httpClient: HttpClient,
- tunedModelsId: ref tunedModelsId,
pageSize: ref pageSize,
- pageToken: ref pageToken);
+ pageToken: ref pageToken,
+ tunedModelsId: ref tunedModelsId);
var __pathBuilder = new global::Google.Gemini.PathBuilder(
path: $"/tunedModels/{tunedModelsId}/permissions",
@@ -77,9 +77,9 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
PrepareTunedModelsPermissionsListRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
- tunedModelsId: tunedModelsId,
pageSize: pageSize,
- pageToken: pageToken);
+ pageToken: pageToken,
+ tunedModelsId: tunedModelsId);
using var __response = await HttpClient.SendAsync(
request: __httpRequest,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaDelete.g.cs
index db9e9f3..99849c5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaDelete.g.cs
@@ -7,8 +7,8 @@ public partial interface IGeminiClient
///
/// Deletes a `Corpus`.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaDeleteAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaOperationsGet.g.cs
index d99dacb..a2cb1a6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaOperationsGet.g.cs
@@ -7,13 +7,13 @@ public partial interface IGeminiClient
///
/// Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaOperationsGetAsync(
- string corporaId,
string operationsId,
+ string corporaId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsDelete.g.cs
index 50a65f3..b4fef40 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsDelete.g.cs
@@ -7,13 +7,13 @@ public partial interface IGeminiClient
///
/// Deletes the permission.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsDeleteAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsGet.g.cs
index 49b0cc1..afb9e7f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsGet.g.cs
@@ -7,13 +7,13 @@ public partial interface IGeminiClient
///
/// Gets information about a specific Permission.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsGetAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsList.g.cs
index 0d3d3fe..a7bce25 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.CorporaPermissionsList.g.cs
@@ -7,9 +7,9 @@ public partial interface IGeminiClient
///
/// Lists permissions for the specific resource.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsListAsync(
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 9f38288..275fc39 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
@@ -7,15 +7,15 @@ public partial interface IGeminiClient
///
/// Updates the permission.
///
- ///
///
+ ///
///
///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsPatchAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
global::Google.Gemini.Permission request,
string? updateMask = default,
@@ -23,8 +23,8 @@ public partial interface IGeminiClient
///
/// Updates the permission.
///
- ///
///
+ ///
///
///
/// Optional. Immutable. The type of the grantee.
@@ -38,8 +38,8 @@ public partial interface IGeminiClient
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task CorporaPermissionsPatchAsync(
- string corporaId,
string permissionsId,
+ string corporaId,
string? updateMask = default,
global::Google.Gemini.PermissionGranteeType? granteeType = default,
string? emailAddress = default,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDelete.g.cs
index af79d11..f9d4ffc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDelete.g.cs
@@ -7,8 +7,8 @@ public partial interface IGeminiClient
///
/// Deletes a `FileSearchStore`.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task FileSearchStoresDeleteAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsDelete.g.cs
index 7385763..87b466d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsDelete.g.cs
@@ -7,14 +7,14 @@ public partial interface IGeminiClient
///
/// Deletes a `Document`.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task FileSearchStoresDocumentsDeleteAsync(
- string documentsId,
string fileSearchStoresId,
+ string documentsId,
bool? force = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsGet.g.cs
index f500323..160cf84 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsGet.g.cs
@@ -7,13 +7,13 @@ public partial interface IGeminiClient
///
/// Gets information about a specific `Document`.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task FileSearchStoresDocumentsGetAsync(
- string documentsId,
string fileSearchStoresId,
+ string documentsId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsList.g.cs
index 7c2aaab..73cf730 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.FileSearchStoresDocumentsList.g.cs
@@ -7,9 +7,9 @@ public partial interface IGeminiClient
///
/// Lists all `Document`s in a `Corpus`.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task FileSearchStoresDocumentsListAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsOperationsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsOperationsList.g.cs
index 4d452b2..0d0a7e5 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsOperationsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.ModelsOperationsList.g.cs
@@ -7,8 +7,8 @@ public partial interface IGeminiClient
///
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
///
- ///
///
+ ///
///
///
///
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsList.g.cs
index b179dc6..5bac3d1 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsList.g.cs
@@ -7,15 +7,15 @@ public partial interface IGeminiClient
///
/// Lists created tuned models.
///
+ ///
///
///
- ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsListAsync(
+ string? filter = default,
int? pageSize = default,
string? pageToken = default,
- string? filter = default,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsGet.g.cs
index f956463..1b5a791 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsGet.g.cs
@@ -7,13 +7,13 @@ public partial interface IGeminiClient
///
/// Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
///
- ///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsOperationsGetAsync(
- string operationsId,
string tunedModelsId,
+ string operationsId,
global::System.Threading.CancellationToken cancellationToken = default);
}
}
\ No newline at end of file
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsList.g.cs
index cdaedd0..862a89d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsOperationsList.g.cs
@@ -7,8 +7,8 @@ public partial interface IGeminiClient
///
/// Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
///
- ///
///
+ ///
///
///
///
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsList.g.cs
index 8e69d14..4f18408 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.IGeminiClient.TunedModelsPermissionsList.g.cs
@@ -7,9 +7,9 @@ public partial interface IGeminiClient
///
/// Lists permissions for the specific resource.
///
- ///
///
///
+ ///
/// The token to cancel the operation with
///
global::System.Threading.Tasks.Task TunedModelsPermissionsListAsync(
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CandidateFinishReason.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CandidateFinishReason.g.cs
index aab2d71..6d29f3f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CandidateFinishReason.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CandidateFinishReason.g.cs
@@ -9,86 +9,86 @@ namespace Google.Gemini
///
public enum CandidateFinishReason
{
+ ///
+ /// Token generation stopped because the content contains forbidden terms.
+ ///
+ Blocklist,
///
/// Default value. This value is unused.
///
FinishReasonUnspecified,
///
- /// Natural stop point of the model or provided stop sequence.
+ /// Image generation stopped because of other miscellaneous issue.
///
- Stop,
+ ImageOther,
///
- /// The maximum number of tokens as specified in the request was reached.
+ /// Image generation stopped because generated images has other prohibited content.
///
- MaxTokens,
+ ImageProhibitedContent,
///
- /// The response candidate content was flagged for safety reasons.
+ /// Image generation stopped due to recitation.
///
- Safety,
+ ImageRecitation,
///
- /// The response candidate content was flagged for recitation reasons.
+ /// Token generation stopped because generated images contain safety violations.
///
- Recitation,
+ ImageSafety,
///
/// The response candidate content was flagged for using an unsupported language.
///
Language,
///
- /// Unknown reason.
+ /// The function call generated by the model is invalid.
///
- Other,
+ MalformedFunctionCall,
///
- /// Token generation stopped because the content contains forbidden terms.
+ /// Finished due to malformed response.
///
- Blocklist,
+ MalformedResponse,
///
- /// Token generation stopped for potentially containing prohibited content.
+ /// The maximum number of tokens as specified in the request was reached.
///
- ProhibitedContent,
+ MaxTokens,
///
- /// Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).
+ /// Request has at least one thought signature missing.
///
- Spii,
+ MissingThoughtSignature,
///
- /// The function call generated by the model is invalid.
+ /// The model was expected to generate an image, but none was generated.
///
- MalformedFunctionCall,
+ NoImage,
///
- /// Token generation stopped because generated images contain safety violations.
+ /// Unknown reason.
///
- ImageSafety,
+ Other,
///
- /// Image generation stopped because generated images has other prohibited content.
+ /// Token generation stopped for potentially containing prohibited content.
///
- ImageProhibitedContent,
+ ProhibitedContent,
///
- /// Image generation stopped because of other miscellaneous issue.
+ /// The response candidate content was flagged for recitation reasons.
///
- ImageOther,
+ Recitation,
///
- /// The model was expected to generate an image, but none was generated.
+ /// The response candidate content was flagged for safety reasons.
///
- NoImage,
+ Safety,
///
- /// Image generation stopped due to recitation.
+ /// Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).
///
- ImageRecitation,
+ Spii,
///
- /// Model generated a tool call but no tools were enabled in the request.
+ /// Natural stop point of the model or provided stop sequence.
///
- UnexpectedToolCall,
+ Stop,
///
/// Model called too many tools consecutively, thus the system exited execution.
///
TooManyToolCalls,
///
- /// Request has at least one thought signature missing.
- ///
- MissingThoughtSignature,
- ///
- /// Finished due to malformed response.
+ /// Model generated a tool call but no tools were enabled in the request.
///
- MalformedResponse,
+ UnexpectedToolCall,
}
///
@@ -103,26 +103,26 @@ public static string ToValueString(this CandidateFinishReason value)
{
return value switch
{
+ CandidateFinishReason.Blocklist => "BLOCKLIST",
CandidateFinishReason.FinishReasonUnspecified => "FINISH_REASON_UNSPECIFIED",
- CandidateFinishReason.Stop => "STOP",
- CandidateFinishReason.MaxTokens => "MAX_TOKENS",
- CandidateFinishReason.Safety => "SAFETY",
- CandidateFinishReason.Recitation => "RECITATION",
+ CandidateFinishReason.ImageOther => "IMAGE_OTHER",
+ CandidateFinishReason.ImageProhibitedContent => "IMAGE_PROHIBITED_CONTENT",
+ CandidateFinishReason.ImageRecitation => "IMAGE_RECITATION",
+ CandidateFinishReason.ImageSafety => "IMAGE_SAFETY",
CandidateFinishReason.Language => "LANGUAGE",
+ CandidateFinishReason.MalformedFunctionCall => "MALFORMED_FUNCTION_CALL",
+ CandidateFinishReason.MalformedResponse => "MALFORMED_RESPONSE",
+ CandidateFinishReason.MaxTokens => "MAX_TOKENS",
+ CandidateFinishReason.MissingThoughtSignature => "MISSING_THOUGHT_SIGNATURE",
+ CandidateFinishReason.NoImage => "NO_IMAGE",
CandidateFinishReason.Other => "OTHER",
- CandidateFinishReason.Blocklist => "BLOCKLIST",
CandidateFinishReason.ProhibitedContent => "PROHIBITED_CONTENT",
+ CandidateFinishReason.Recitation => "RECITATION",
+ CandidateFinishReason.Safety => "SAFETY",
CandidateFinishReason.Spii => "SPII",
- CandidateFinishReason.MalformedFunctionCall => "MALFORMED_FUNCTION_CALL",
- CandidateFinishReason.ImageSafety => "IMAGE_SAFETY",
- CandidateFinishReason.ImageProhibitedContent => "IMAGE_PROHIBITED_CONTENT",
- CandidateFinishReason.ImageOther => "IMAGE_OTHER",
- CandidateFinishReason.NoImage => "NO_IMAGE",
- CandidateFinishReason.ImageRecitation => "IMAGE_RECITATION",
- CandidateFinishReason.UnexpectedToolCall => "UNEXPECTED_TOOL_CALL",
+ CandidateFinishReason.Stop => "STOP",
CandidateFinishReason.TooManyToolCalls => "TOO_MANY_TOOL_CALLS",
- CandidateFinishReason.MissingThoughtSignature => "MISSING_THOUGHT_SIGNATURE",
- CandidateFinishReason.MalformedResponse => "MALFORMED_RESPONSE",
+ CandidateFinishReason.UnexpectedToolCall => "UNEXPECTED_TOOL_CALL",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -133,26 +133,26 @@ public static string ToValueString(this CandidateFinishReason value)
{
return value switch
{
+ "BLOCKLIST" => CandidateFinishReason.Blocklist,
"FINISH_REASON_UNSPECIFIED" => CandidateFinishReason.FinishReasonUnspecified,
- "STOP" => CandidateFinishReason.Stop,
- "MAX_TOKENS" => CandidateFinishReason.MaxTokens,
- "SAFETY" => CandidateFinishReason.Safety,
- "RECITATION" => CandidateFinishReason.Recitation,
+ "IMAGE_OTHER" => CandidateFinishReason.ImageOther,
+ "IMAGE_PROHIBITED_CONTENT" => CandidateFinishReason.ImageProhibitedContent,
+ "IMAGE_RECITATION" => CandidateFinishReason.ImageRecitation,
+ "IMAGE_SAFETY" => CandidateFinishReason.ImageSafety,
"LANGUAGE" => CandidateFinishReason.Language,
+ "MALFORMED_FUNCTION_CALL" => CandidateFinishReason.MalformedFunctionCall,
+ "MALFORMED_RESPONSE" => CandidateFinishReason.MalformedResponse,
+ "MAX_TOKENS" => CandidateFinishReason.MaxTokens,
+ "MISSING_THOUGHT_SIGNATURE" => CandidateFinishReason.MissingThoughtSignature,
+ "NO_IMAGE" => CandidateFinishReason.NoImage,
"OTHER" => CandidateFinishReason.Other,
- "BLOCKLIST" => CandidateFinishReason.Blocklist,
"PROHIBITED_CONTENT" => CandidateFinishReason.ProhibitedContent,
+ "RECITATION" => CandidateFinishReason.Recitation,
+ "SAFETY" => CandidateFinishReason.Safety,
"SPII" => CandidateFinishReason.Spii,
- "MALFORMED_FUNCTION_CALL" => CandidateFinishReason.MalformedFunctionCall,
- "IMAGE_SAFETY" => CandidateFinishReason.ImageSafety,
- "IMAGE_PROHIBITED_CONTENT" => CandidateFinishReason.ImageProhibitedContent,
- "IMAGE_OTHER" => CandidateFinishReason.ImageOther,
- "NO_IMAGE" => CandidateFinishReason.NoImage,
- "IMAGE_RECITATION" => CandidateFinishReason.ImageRecitation,
- "UNEXPECTED_TOOL_CALL" => CandidateFinishReason.UnexpectedToolCall,
+ "STOP" => CandidateFinishReason.Stop,
"TOO_MANY_TOOL_CALLS" => CandidateFinishReason.TooManyToolCalls,
- "MISSING_THOUGHT_SIGNATURE" => CandidateFinishReason.MissingThoughtSignature,
- "MALFORMED_RESPONSE" => CandidateFinishReason.MalformedResponse,
+ "UNEXPECTED_TOOL_CALL" => CandidateFinishReason.UnexpectedToolCall,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResultOutcome.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResultOutcome.g.cs
index e9f9219..88acee4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResultOutcome.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.CodeExecutionResultOutcome.g.cs
@@ -9,21 +9,21 @@ namespace Google.Gemini
public enum CodeExecutionResultOutcome
{
///
- /// Unspecified status. This value should not be used.
- ///
- OutcomeUnspecified,
- ///
- /// Code execution completed successfully. `output` contains the stdout, if any.
+ /// Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.
///
- OutcomeOk,
+ OutcomeDeadlineExceeded,
///
/// Code execution failed. `output` contains the stderr and stdout, if any.
///
OutcomeFailed,
///
- /// Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present.
+ /// Code execution completed successfully. `output` contains the stdout, if any.
///
- OutcomeDeadlineExceeded,
+ OutcomeOk,
+ ///
+ /// Unspecified status. This value should not be used.
+ ///
+ OutcomeUnspecified,
}
///
@@ -38,10 +38,10 @@ public static string ToValueString(this CodeExecutionResultOutcome value)
{
return value switch
{
- CodeExecutionResultOutcome.OutcomeUnspecified => "OUTCOME_UNSPECIFIED",
- CodeExecutionResultOutcome.OutcomeOk => "OUTCOME_OK",
- CodeExecutionResultOutcome.OutcomeFailed => "OUTCOME_FAILED",
CodeExecutionResultOutcome.OutcomeDeadlineExceeded => "OUTCOME_DEADLINE_EXCEEDED",
+ CodeExecutionResultOutcome.OutcomeFailed => "OUTCOME_FAILED",
+ CodeExecutionResultOutcome.OutcomeOk => "OUTCOME_OK",
+ CodeExecutionResultOutcome.OutcomeUnspecified => "OUTCOME_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -52,10 +52,10 @@ public static string ToValueString(this CodeExecutionResultOutcome value)
{
return value switch
{
- "OUTCOME_UNSPECIFIED" => CodeExecutionResultOutcome.OutcomeUnspecified,
- "OUTCOME_OK" => CodeExecutionResultOutcome.OutcomeOk,
- "OUTCOME_FAILED" => CodeExecutionResultOutcome.OutcomeFailed,
"OUTCOME_DEADLINE_EXCEEDED" => CodeExecutionResultOutcome.OutcomeDeadlineExceeded,
+ "OUTCOME_FAILED" => CodeExecutionResultOutcome.OutcomeFailed,
+ "OUTCOME_OK" => CodeExecutionResultOutcome.OutcomeOk,
+ "OUTCOME_UNSPECIFIED" => CodeExecutionResultOutcome.OutcomeUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseEnvironment.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseEnvironment.g.cs
index 77cba0f..cb77bef 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseEnvironment.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ComputerUseEnvironment.g.cs
@@ -8,14 +8,14 @@ namespace Google.Gemini
///
public enum ComputerUseEnvironment
{
- ///
- /// Defaults to browser.
- ///
- EnvironmentUnspecified,
///
/// Operates in a web browser.
///
EnvironmentBrowser,
+ ///
+ /// Defaults to browser.
+ ///
+ EnvironmentUnspecified,
}
///
@@ -30,8 +30,8 @@ public static string ToValueString(this ComputerUseEnvironment value)
{
return value switch
{
- ComputerUseEnvironment.EnvironmentUnspecified => "ENVIRONMENT_UNSPECIFIED",
ComputerUseEnvironment.EnvironmentBrowser => "ENVIRONMENT_BROWSER",
+ ComputerUseEnvironment.EnvironmentUnspecified => "ENVIRONMENT_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -42,8 +42,8 @@ public static string ToValueString(this ComputerUseEnvironment value)
{
return value switch
{
- "ENVIRONMENT_UNSPECIFIED" => ComputerUseEnvironment.EnvironmentUnspecified,
"ENVIRONMENT_BROWSER" => ComputerUseEnvironment.EnvironmentBrowser,
+ "ENVIRONMENT_UNSPECIFIED" => ComputerUseEnvironment.EnvironmentUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DocumentState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DocumentState.g.cs
index cb496bd..1d32c4e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DocumentState.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DocumentState.g.cs
@@ -9,14 +9,6 @@ namespace Google.Gemini
///
public enum DocumentState
{
- ///
- /// The default value. This value is used if the state is omitted.
- ///
- StateUnspecified,
- ///
- /// Some `Chunks` of the `Document` are being processed (embedding and vector storage).
- ///
- StatePending,
///
/// All `Chunks` of the `Document` is processed and available for querying.
///
@@ -25,6 +17,14 @@ public enum DocumentState
/// Some `Chunks` of the `Document` failed processing.
///
StateFailed,
+ ///
+ /// Some `Chunks` of the `Document` are being processed (embedding and vector storage).
+ ///
+ StatePending,
+ ///
+ /// The default value. This value is used if the state is omitted.
+ ///
+ StateUnspecified,
}
///
@@ -39,10 +39,10 @@ public static string ToValueString(this DocumentState value)
{
return value switch
{
- DocumentState.StateUnspecified => "STATE_UNSPECIFIED",
- DocumentState.StatePending => "STATE_PENDING",
DocumentState.StateActive => "STATE_ACTIVE",
DocumentState.StateFailed => "STATE_FAILED",
+ DocumentState.StatePending => "STATE_PENDING",
+ DocumentState.StateUnspecified => "STATE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -53,10 +53,10 @@ public static string ToValueString(this DocumentState value)
{
return value switch
{
- "STATE_UNSPECIFIED" => DocumentState.StateUnspecified,
- "STATE_PENDING" => DocumentState.StatePending,
"STATE_ACTIVE" => DocumentState.StateActive,
"STATE_FAILED" => DocumentState.StateFailed,
+ "STATE_PENDING" => DocumentState.StatePending,
+ "STATE_UNSPECIFIED" => DocumentState.StateUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DynamicRetrievalConfigMode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DynamicRetrievalConfigMode.g.cs
index 36333c8..20fc69c 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DynamicRetrievalConfigMode.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.DynamicRetrievalConfigMode.g.cs
@@ -8,14 +8,14 @@ namespace Google.Gemini
///
public enum DynamicRetrievalConfigMode
{
- ///
- /// Always trigger retrieval.
- ///
- ModeUnspecified,
///
/// Run retrieval only when system decides it is necessary.
///
ModeDynamic,
+ ///
+ /// Always trigger retrieval.
+ ///
+ ModeUnspecified,
}
///
@@ -30,8 +30,8 @@ public static string ToValueString(this DynamicRetrievalConfigMode value)
{
return value switch
{
- DynamicRetrievalConfigMode.ModeUnspecified => "MODE_UNSPECIFIED",
DynamicRetrievalConfigMode.ModeDynamic => "MODE_DYNAMIC",
+ DynamicRetrievalConfigMode.ModeUnspecified => "MODE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -42,8 +42,8 @@ public static string ToValueString(this DynamicRetrievalConfigMode value)
{
return value switch
{
- "MODE_UNSPECIFIED" => DynamicRetrievalConfigMode.ModeUnspecified,
"MODE_DYNAMIC" => DynamicRetrievalConfigMode.ModeDynamic,
+ "MODE_UNSPECIFIED" => DynamicRetrievalConfigMode.ModeUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchState.g.cs
index 5a04bb3..f2add09 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchState.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentBatchState.g.cs
@@ -10,9 +10,17 @@ namespace Google.Gemini
public enum EmbedContentBatchState
{
///
- /// The batch state is unspecified.
+ /// The batch has been cancelled.
///
- BatchStateUnspecified,
+ BatchStateCancelled,
+ ///
+ /// The batch has expired.
+ ///
+ BatchStateExpired,
+ ///
+ /// The batch failed.
+ ///
+ BatchStateFailed,
///
/// The service is preparing to run the batch.
///
@@ -26,17 +34,9 @@ public enum EmbedContentBatchState
///
BatchStateSucceeded,
///
- /// The batch failed.
- ///
- BatchStateFailed,
- ///
- /// The batch has been cancelled.
- ///
- BatchStateCancelled,
- ///
- /// The batch has expired.
+ /// The batch state is unspecified.
///
- BatchStateExpired,
+ BatchStateUnspecified,
}
///
@@ -51,13 +51,13 @@ public static string ToValueString(this EmbedContentBatchState value)
{
return value switch
{
- EmbedContentBatchState.BatchStateUnspecified => "BATCH_STATE_UNSPECIFIED",
+ EmbedContentBatchState.BatchStateCancelled => "BATCH_STATE_CANCELLED",
+ EmbedContentBatchState.BatchStateExpired => "BATCH_STATE_EXPIRED",
+ EmbedContentBatchState.BatchStateFailed => "BATCH_STATE_FAILED",
EmbedContentBatchState.BatchStatePending => "BATCH_STATE_PENDING",
EmbedContentBatchState.BatchStateRunning => "BATCH_STATE_RUNNING",
EmbedContentBatchState.BatchStateSucceeded => "BATCH_STATE_SUCCEEDED",
- EmbedContentBatchState.BatchStateFailed => "BATCH_STATE_FAILED",
- EmbedContentBatchState.BatchStateCancelled => "BATCH_STATE_CANCELLED",
- EmbedContentBatchState.BatchStateExpired => "BATCH_STATE_EXPIRED",
+ EmbedContentBatchState.BatchStateUnspecified => "BATCH_STATE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -68,13 +68,13 @@ public static string ToValueString(this EmbedContentBatchState value)
{
return value switch
{
- "BATCH_STATE_UNSPECIFIED" => EmbedContentBatchState.BatchStateUnspecified,
+ "BATCH_STATE_CANCELLED" => EmbedContentBatchState.BatchStateCancelled,
+ "BATCH_STATE_EXPIRED" => EmbedContentBatchState.BatchStateExpired,
+ "BATCH_STATE_FAILED" => EmbedContentBatchState.BatchStateFailed,
"BATCH_STATE_PENDING" => EmbedContentBatchState.BatchStatePending,
"BATCH_STATE_RUNNING" => EmbedContentBatchState.BatchStateRunning,
"BATCH_STATE_SUCCEEDED" => EmbedContentBatchState.BatchStateSucceeded,
- "BATCH_STATE_FAILED" => EmbedContentBatchState.BatchStateFailed,
- "BATCH_STATE_CANCELLED" => EmbedContentBatchState.BatchStateCancelled,
- "BATCH_STATE_EXPIRED" => EmbedContentBatchState.BatchStateExpired,
+ "BATCH_STATE_UNSPECIFIED" => EmbedContentBatchState.BatchStateUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequestTaskType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequestTaskType.g.cs
index 526a89c..4f6ae65 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequestTaskType.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.EmbedContentRequestTaskType.g.cs
@@ -9,41 +9,41 @@ namespace Google.Gemini
public enum EmbedContentRequestTaskType
{
///
- /// Unset value, which will default to one of the other enum values.
+ /// Specifies that the given text will be classified.
///
- TaskTypeUnspecified,
+ Classification,
///
- /// Specifies the given text is a query in a search/retrieval setting.
+ /// Specifies that the embeddings will be used for clustering.
///
- RetrievalQuery,
+ Clustering,
///
- /// Specifies the given text is a document from the corpus being searched.
+ /// Specifies that the given text will be used for code retrieval.
///
- RetrievalDocument,
+ CodeRetrievalQuery,
///
- /// Specifies the given text will be used for STS.
+ /// Specifies that the given text will be used for fact verification.
///
- SemanticSimilarity,
+ FactVerification,
///
- /// Specifies that the given text will be classified.
+ /// Specifies that the given text will be used for question answering.
///
- Classification,
+ QuestionAnswering,
///
- /// Specifies that the embeddings will be used for clustering.
+ /// Specifies the given text is a document from the corpus being searched.
///
- Clustering,
+ RetrievalDocument,
///
- /// Specifies that the given text will be used for question answering.
+ /// Specifies the given text is a query in a search/retrieval setting.
///
- QuestionAnswering,
+ RetrievalQuery,
///
- /// Specifies that the given text will be used for fact verification.
+ /// Specifies the given text will be used for STS.
///
- FactVerification,
+ SemanticSimilarity,
///
- /// Specifies that the given text will be used for code retrieval.
+ /// Unset value, which will default to one of the other enum values.
///
- CodeRetrievalQuery,
+ TaskTypeUnspecified,
}
///
@@ -58,15 +58,15 @@ public static string ToValueString(this EmbedContentRequestTaskType value)
{
return value switch
{
- EmbedContentRequestTaskType.TaskTypeUnspecified => "TASK_TYPE_UNSPECIFIED",
- EmbedContentRequestTaskType.RetrievalQuery => "RETRIEVAL_QUERY",
- EmbedContentRequestTaskType.RetrievalDocument => "RETRIEVAL_DOCUMENT",
- EmbedContentRequestTaskType.SemanticSimilarity => "SEMANTIC_SIMILARITY",
EmbedContentRequestTaskType.Classification => "CLASSIFICATION",
EmbedContentRequestTaskType.Clustering => "CLUSTERING",
- EmbedContentRequestTaskType.QuestionAnswering => "QUESTION_ANSWERING",
- EmbedContentRequestTaskType.FactVerification => "FACT_VERIFICATION",
EmbedContentRequestTaskType.CodeRetrievalQuery => "CODE_RETRIEVAL_QUERY",
+ EmbedContentRequestTaskType.FactVerification => "FACT_VERIFICATION",
+ EmbedContentRequestTaskType.QuestionAnswering => "QUESTION_ANSWERING",
+ EmbedContentRequestTaskType.RetrievalDocument => "RETRIEVAL_DOCUMENT",
+ EmbedContentRequestTaskType.RetrievalQuery => "RETRIEVAL_QUERY",
+ EmbedContentRequestTaskType.SemanticSimilarity => "SEMANTIC_SIMILARITY",
+ EmbedContentRequestTaskType.TaskTypeUnspecified => "TASK_TYPE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -77,15 +77,15 @@ public static string ToValueString(this EmbedContentRequestTaskType value)
{
return value switch
{
- "TASK_TYPE_UNSPECIFIED" => EmbedContentRequestTaskType.TaskTypeUnspecified,
- "RETRIEVAL_QUERY" => EmbedContentRequestTaskType.RetrievalQuery,
- "RETRIEVAL_DOCUMENT" => EmbedContentRequestTaskType.RetrievalDocument,
- "SEMANTIC_SIMILARITY" => EmbedContentRequestTaskType.SemanticSimilarity,
"CLASSIFICATION" => EmbedContentRequestTaskType.Classification,
"CLUSTERING" => EmbedContentRequestTaskType.Clustering,
- "QUESTION_ANSWERING" => EmbedContentRequestTaskType.QuestionAnswering,
- "FACT_VERIFICATION" => EmbedContentRequestTaskType.FactVerification,
"CODE_RETRIEVAL_QUERY" => EmbedContentRequestTaskType.CodeRetrievalQuery,
+ "FACT_VERIFICATION" => EmbedContentRequestTaskType.FactVerification,
+ "QUESTION_ANSWERING" => EmbedContentRequestTaskType.QuestionAnswering,
+ "RETRIEVAL_DOCUMENT" => EmbedContentRequestTaskType.RetrievalDocument,
+ "RETRIEVAL_QUERY" => EmbedContentRequestTaskType.RetrievalQuery,
+ "SEMANTIC_SIMILARITY" => EmbedContentRequestTaskType.SemanticSimilarity,
+ "TASK_TYPE_UNSPECIFIED" => EmbedContentRequestTaskType.TaskTypeUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSource.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSource.g.cs
index 9156b0e..8a5e9e4 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSource.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileSource.g.cs
@@ -8,14 +8,6 @@ namespace Google.Gemini
///
public enum FileSource
{
- ///
- /// Used if source is not specified.
- ///
- SourceUnspecified,
- ///
- /// Indicates the file is uploaded by the user.
- ///
- Uploaded,
///
/// Indicates the file is generated by Google.
///
@@ -24,6 +16,14 @@ public enum FileSource
/// Indicates the file is a registered, i.e. a Google Cloud Storage file.
///
Registered,
+ ///
+ /// Used if source is not specified.
+ ///
+ SourceUnspecified,
+ ///
+ /// Indicates the file is uploaded by the user.
+ ///
+ Uploaded,
}
///
@@ -38,10 +38,10 @@ public static string ToValueString(this FileSource value)
{
return value switch
{
- FileSource.SourceUnspecified => "SOURCE_UNSPECIFIED",
- FileSource.Uploaded => "UPLOADED",
FileSource.Generated => "GENERATED",
FileSource.Registered => "REGISTERED",
+ FileSource.SourceUnspecified => "SOURCE_UNSPECIFIED",
+ FileSource.Uploaded => "UPLOADED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -52,10 +52,10 @@ public static string ToValueString(this FileSource value)
{
return value switch
{
- "SOURCE_UNSPECIFIED" => FileSource.SourceUnspecified,
- "UPLOADED" => FileSource.Uploaded,
"GENERATED" => FileSource.Generated,
"REGISTERED" => FileSource.Registered,
+ "SOURCE_UNSPECIFIED" => FileSource.SourceUnspecified,
+ "UPLOADED" => FileSource.Uploaded,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileState.g.cs
index a4d0308..49e6264 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileState.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FileState.g.cs
@@ -9,14 +9,6 @@ namespace Google.Gemini
///
public enum FileState
{
- ///
- /// The default value. This value is used if the state is omitted.
- ///
- StateUnspecified,
- ///
- /// File is being processed and cannot be used for inference yet.
- ///
- Processing,
///
/// File is processed and available for inference.
///
@@ -25,6 +17,14 @@ public enum FileState
/// File failed processing.
///
Failed,
+ ///
+ /// File is being processed and cannot be used for inference yet.
+ ///
+ Processing,
+ ///
+ /// The default value. This value is used if the state is omitted.
+ ///
+ StateUnspecified,
}
///
@@ -39,10 +39,10 @@ public static string ToValueString(this FileState value)
{
return value switch
{
- FileState.StateUnspecified => "STATE_UNSPECIFIED",
- FileState.Processing => "PROCESSING",
FileState.Active => "ACTIVE",
FileState.Failed => "FAILED",
+ FileState.Processing => "PROCESSING",
+ FileState.StateUnspecified => "STATE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -53,10 +53,10 @@ public static string ToValueString(this FileState value)
{
return value switch
{
- "STATE_UNSPECIFIED" => FileState.StateUnspecified,
- "PROCESSING" => FileState.Processing,
"ACTIVE" => FileState.Active,
"FAILED" => FileState.Failed,
+ "PROCESSING" => FileState.Processing,
+ "STATE_UNSPECIFIED" => FileState.StateUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfigMode.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfigMode.g.cs
index 9710675..bb9d462 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfigMode.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionCallingConfigMode.g.cs
@@ -9,17 +9,17 @@ namespace Google.Gemini
public enum FunctionCallingConfigMode
{
///
- /// Unspecified function calling mode. This value should not be used.
+ /// Model is constrained to always predicting a function call only. If "allowed_function_names" are set, the predicted function call will be limited to any one of "allowed_function_names", else the predicted function call will be any one of the provided "function_declarations".
///
- ModeUnspecified,
+ Any,
///
/// Default model behavior, model decides to predict either a function call or a natural language response.
///
Auto,
///
- /// Model is constrained to always predicting a function call only. If "allowed_function_names" are set, the predicted function call will be limited to any one of "allowed_function_names", else the predicted function call will be any one of the provided "function_declarations".
+ /// Unspecified function calling mode. This value should not be used.
///
- Any,
+ ModeUnspecified,
///
/// Model will not predict any function call. Model behavior is same as when not passing any function declarations.
///
@@ -42,9 +42,9 @@ public static string ToValueString(this FunctionCallingConfigMode value)
{
return value switch
{
- FunctionCallingConfigMode.ModeUnspecified => "MODE_UNSPECIFIED",
- FunctionCallingConfigMode.Auto => "AUTO",
FunctionCallingConfigMode.Any => "ANY",
+ FunctionCallingConfigMode.Auto => "AUTO",
+ FunctionCallingConfigMode.ModeUnspecified => "MODE_UNSPECIFIED",
FunctionCallingConfigMode.None => "NONE",
FunctionCallingConfigMode.Validated => "VALIDATED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
@@ -57,9 +57,9 @@ public static string ToValueString(this FunctionCallingConfigMode value)
{
return value switch
{
- "MODE_UNSPECIFIED" => FunctionCallingConfigMode.ModeUnspecified,
- "AUTO" => FunctionCallingConfigMode.Auto,
"ANY" => FunctionCallingConfigMode.Any,
+ "AUTO" => FunctionCallingConfigMode.Auto,
+ "MODE_UNSPECIFIED" => FunctionCallingConfigMode.ModeUnspecified,
"NONE" => FunctionCallingConfigMode.None,
"VALIDATED" => FunctionCallingConfigMode.Validated,
_ => null,
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclarationBehavior.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclarationBehavior.g.cs
index 3cbb738..66d74f7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclarationBehavior.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionDeclarationBehavior.g.cs
@@ -8,10 +8,6 @@ namespace Google.Gemini
///
public enum FunctionDeclarationBehavior
{
- ///
- /// This value is unused.
- ///
- Unspecified,
///
/// If set, the system will wait to receive the function response before continuing the conversation.
///
@@ -20,6 +16,10 @@ public enum FunctionDeclarationBehavior
/// If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model.
///
NonBlocking,
+ ///
+ /// This value is unused.
+ ///
+ Unspecified,
}
///
@@ -34,9 +34,9 @@ public static string ToValueString(this FunctionDeclarationBehavior value)
{
return value switch
{
- FunctionDeclarationBehavior.Unspecified => "UNSPECIFIED",
FunctionDeclarationBehavior.Blocking => "BLOCKING",
FunctionDeclarationBehavior.NonBlocking => "NON_BLOCKING",
+ FunctionDeclarationBehavior.Unspecified => "UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -47,9 +47,9 @@ public static string ToValueString(this FunctionDeclarationBehavior value)
{
return value switch
{
- "UNSPECIFIED" => FunctionDeclarationBehavior.Unspecified,
"BLOCKING" => FunctionDeclarationBehavior.Blocking,
"NON_BLOCKING" => FunctionDeclarationBehavior.NonBlocking,
+ "UNSPECIFIED" => FunctionDeclarationBehavior.Unspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseScheduling.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseScheduling.g.cs
index 96156ca..5b4d277 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseScheduling.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.FunctionResponseScheduling.g.cs
@@ -8,6 +8,10 @@ namespace Google.Gemini
///
public enum FunctionResponseScheduling
{
+ ///
+ /// Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.
+ ///
+ Interrupt,
///
/// This value is unused.
///
@@ -20,10 +24,6 @@ public enum FunctionResponseScheduling
/// Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.
///
WhenIdle,
- ///
- /// Add the result to the conversation context, interrupt ongoing generation and prompt to generate output.
- ///
- Interrupt,
}
///
@@ -38,10 +38,10 @@ public static string ToValueString(this FunctionResponseScheduling value)
{
return value switch
{
+ FunctionResponseScheduling.Interrupt => "INTERRUPT",
FunctionResponseScheduling.SchedulingUnspecified => "SCHEDULING_UNSPECIFIED",
FunctionResponseScheduling.Silent => "SILENT",
FunctionResponseScheduling.WhenIdle => "WHEN_IDLE",
- FunctionResponseScheduling.Interrupt => "INTERRUPT",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -52,10 +52,10 @@ public static string ToValueString(this FunctionResponseScheduling value)
{
return value switch
{
+ "INTERRUPT" => FunctionResponseScheduling.Interrupt,
"SCHEDULING_UNSPECIFIED" => FunctionResponseScheduling.SchedulingUnspecified,
"SILENT" => FunctionResponseScheduling.Silent,
"WHEN_IDLE" => FunctionResponseScheduling.WhenIdle,
- "INTERRUPT" => FunctionResponseScheduling.Interrupt,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchState.g.cs
index 005dd9e..c853491 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchState.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerateContentBatchState.g.cs
@@ -10,9 +10,17 @@ namespace Google.Gemini
public enum GenerateContentBatchState
{
///
- /// The batch state is unspecified.
+ /// The batch has been cancelled.
///
- BatchStateUnspecified,
+ BatchStateCancelled,
+ ///
+ /// The batch has expired.
+ ///
+ BatchStateExpired,
+ ///
+ /// The batch failed.
+ ///
+ BatchStateFailed,
///
/// The service is preparing to run the batch.
///
@@ -26,17 +34,9 @@ public enum GenerateContentBatchState
///
BatchStateSucceeded,
///
- /// The batch failed.
- ///
- BatchStateFailed,
- ///
- /// The batch has been cancelled.
- ///
- BatchStateCancelled,
- ///
- /// The batch has expired.
+ /// The batch state is unspecified.
///
- BatchStateExpired,
+ BatchStateUnspecified,
}
///
@@ -51,13 +51,13 @@ public static string ToValueString(this GenerateContentBatchState value)
{
return value switch
{
- GenerateContentBatchState.BatchStateUnspecified => "BATCH_STATE_UNSPECIFIED",
+ GenerateContentBatchState.BatchStateCancelled => "BATCH_STATE_CANCELLED",
+ GenerateContentBatchState.BatchStateExpired => "BATCH_STATE_EXPIRED",
+ GenerateContentBatchState.BatchStateFailed => "BATCH_STATE_FAILED",
GenerateContentBatchState.BatchStatePending => "BATCH_STATE_PENDING",
GenerateContentBatchState.BatchStateRunning => "BATCH_STATE_RUNNING",
GenerateContentBatchState.BatchStateSucceeded => "BATCH_STATE_SUCCEEDED",
- GenerateContentBatchState.BatchStateFailed => "BATCH_STATE_FAILED",
- GenerateContentBatchState.BatchStateCancelled => "BATCH_STATE_CANCELLED",
- GenerateContentBatchState.BatchStateExpired => "BATCH_STATE_EXPIRED",
+ GenerateContentBatchState.BatchStateUnspecified => "BATCH_STATE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -68,13 +68,13 @@ public static string ToValueString(this GenerateContentBatchState value)
{
return value switch
{
- "BATCH_STATE_UNSPECIFIED" => GenerateContentBatchState.BatchStateUnspecified,
+ "BATCH_STATE_CANCELLED" => GenerateContentBatchState.BatchStateCancelled,
+ "BATCH_STATE_EXPIRED" => GenerateContentBatchState.BatchStateExpired,
+ "BATCH_STATE_FAILED" => GenerateContentBatchState.BatchStateFailed,
"BATCH_STATE_PENDING" => GenerateContentBatchState.BatchStatePending,
"BATCH_STATE_RUNNING" => GenerateContentBatchState.BatchStateRunning,
"BATCH_STATE_SUCCEEDED" => GenerateContentBatchState.BatchStateSucceeded,
- "BATCH_STATE_FAILED" => GenerateContentBatchState.BatchStateFailed,
- "BATCH_STATE_CANCELLED" => GenerateContentBatchState.BatchStateCancelled,
- "BATCH_STATE_EXPIRED" => GenerateContentBatchState.BatchStateExpired,
+ "BATCH_STATE_UNSPECIFIED" => GenerateContentBatchState.BatchStateUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFileState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFileState.g.cs
index ee34d95..3e427c9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFileState.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GeneratedFileState.g.cs
@@ -10,21 +10,21 @@ namespace Google.Gemini
public enum GeneratedFileState
{
///
- /// The default value. This value is used if the state is omitted.
- ///
- StateUnspecified,
- ///
- /// Being generated.
+ /// Failed to generate the GeneratedFile.
///
- Generating,
+ Failed,
///
/// Generated and is ready for download.
///
Generated,
///
- /// Failed to generate the GeneratedFile.
+ /// Being generated.
///
- Failed,
+ Generating,
+ ///
+ /// The default value. This value is used if the state is omitted.
+ ///
+ StateUnspecified,
}
///
@@ -39,10 +39,10 @@ public static string ToValueString(this GeneratedFileState value)
{
return value switch
{
- GeneratedFileState.StateUnspecified => "STATE_UNSPECIFIED",
- GeneratedFileState.Generating => "GENERATING",
- GeneratedFileState.Generated => "GENERATED",
GeneratedFileState.Failed => "FAILED",
+ GeneratedFileState.Generated => "GENERATED",
+ GeneratedFileState.Generating => "GENERATING",
+ GeneratedFileState.StateUnspecified => "STATE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -53,10 +53,10 @@ public static string ToValueString(this GeneratedFileState value)
{
return value switch
{
- "STATE_UNSPECIFIED" => GeneratedFileState.StateUnspecified,
- "GENERATING" => GeneratedFileState.Generating,
- "GENERATED" => GeneratedFileState.Generated,
"FAILED" => GeneratedFileState.Failed,
+ "GENERATED" => GeneratedFileState.Generated,
+ "GENERATING" => GeneratedFileState.Generating,
+ "STATE_UNSPECIFIED" => GeneratedFileState.StateUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigMediaResolution.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigMediaResolution.g.cs
index 59f8a9d..634957f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigMediaResolution.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigMediaResolution.g.cs
@@ -9,9 +9,9 @@ namespace Google.Gemini
public enum GenerationConfigMediaResolution
{
///
- /// Media resolution has not been set.
+ /// Media resolution set to high (zoomed reframing with 256 tokens).
///
- MediaResolutionUnspecified,
+ MediaResolutionHigh,
///
/// Media resolution set to low (64 tokens).
///
@@ -21,9 +21,9 @@ public enum GenerationConfigMediaResolution
///
MediaResolutionMedium,
///
- /// Media resolution set to high (zoomed reframing with 256 tokens).
+ /// Media resolution has not been set.
///
- MediaResolutionHigh,
+ MediaResolutionUnspecified,
}
///
@@ -38,10 +38,10 @@ public static string ToValueString(this GenerationConfigMediaResolution value)
{
return value switch
{
- GenerationConfigMediaResolution.MediaResolutionUnspecified => "MEDIA_RESOLUTION_UNSPECIFIED",
+ GenerationConfigMediaResolution.MediaResolutionHigh => "MEDIA_RESOLUTION_HIGH",
GenerationConfigMediaResolution.MediaResolutionLow => "MEDIA_RESOLUTION_LOW",
GenerationConfigMediaResolution.MediaResolutionMedium => "MEDIA_RESOLUTION_MEDIUM",
- GenerationConfigMediaResolution.MediaResolutionHigh => "MEDIA_RESOLUTION_HIGH",
+ GenerationConfigMediaResolution.MediaResolutionUnspecified => "MEDIA_RESOLUTION_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -52,10 +52,10 @@ public static string ToValueString(this GenerationConfigMediaResolution value)
{
return value switch
{
- "MEDIA_RESOLUTION_UNSPECIFIED" => GenerationConfigMediaResolution.MediaResolutionUnspecified,
+ "MEDIA_RESOLUTION_HIGH" => GenerationConfigMediaResolution.MediaResolutionHigh,
"MEDIA_RESOLUTION_LOW" => GenerationConfigMediaResolution.MediaResolutionLow,
"MEDIA_RESOLUTION_MEDIUM" => GenerationConfigMediaResolution.MediaResolutionMedium,
- "MEDIA_RESOLUTION_HIGH" => GenerationConfigMediaResolution.MediaResolutionHigh,
+ "MEDIA_RESOLUTION_UNSPECIFIED" => GenerationConfigMediaResolution.MediaResolutionUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs
index 0e7758c..147ed14 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.GenerationConfigResponseModalitie.g.cs
@@ -9,21 +9,21 @@ namespace Google.Gemini
public enum GenerationConfigResponseModalitie
{
///
- /// Default value.
- ///
- ModalityUnspecified,
- ///
- /// Indicates the model should return text.
+ /// Indicates the model should return audio.
///
- Text,
+ Audio,
///
/// Indicates the model should return images.
///
Image,
///
- /// Indicates the model should return audio.
+ /// Default value.
///
- Audio,
+ ModalityUnspecified,
+ ///
+ /// Indicates the model should return text.
+ ///
+ Text,
///
/// Indicates the model should return video.
///
@@ -42,10 +42,10 @@ public static string ToValueString(this GenerationConfigResponseModalitie value)
{
return value switch
{
+ GenerationConfigResponseModalitie.Audio => "AUDIO",
+ GenerationConfigResponseModalitie.Image => "IMAGE",
GenerationConfigResponseModalitie.ModalityUnspecified => "MODALITY_UNSPECIFIED",
GenerationConfigResponseModalitie.Text => "TEXT",
- GenerationConfigResponseModalitie.Image => "IMAGE",
- GenerationConfigResponseModalitie.Audio => "AUDIO",
GenerationConfigResponseModalitie.Video => "VIDEO",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
@@ -57,10 +57,10 @@ public static string ToValueString(this GenerationConfigResponseModalitie value)
{
return value switch
{
+ "AUDIO" => GenerationConfigResponseModalitie.Audio,
+ "IMAGE" => GenerationConfigResponseModalitie.Image,
"MODALITY_UNSPECIFIED" => GenerationConfigResponseModalitie.ModalityUnspecified,
"TEXT" => GenerationConfigResponseModalitie.Text,
- "IMAGE" => GenerationConfigResponseModalitie.Image,
- "AUDIO" => GenerationConfigResponseModalitie.Audio,
"VIDEO" => GenerationConfigResponseModalitie.Video,
_ => null,
};
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCountModality.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCountModality.g.cs
index 3d53739..7585da7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCountModality.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModalityTokenCountModality.g.cs
@@ -9,29 +9,29 @@ namespace Google.Gemini
public enum ModalityTokenCountModality
{
///
- /// Unspecified modality.
+ /// Audio.
///
- ModalityUnspecified,
+ Audio,
///
- /// Plain text.
+ /// Document, e.g. PDF.
///
- Text,
+ Document,
///
/// Image.
///
Image,
///
- /// Video.
+ /// Unspecified modality.
///
- Video,
+ ModalityUnspecified,
///
- /// Audio.
+ /// Plain text.
///
- Audio,
+ Text,
///
- /// Document, e.g. PDF.
+ /// Video.
///
- Document,
+ Video,
}
///
@@ -46,12 +46,12 @@ public static string ToValueString(this ModalityTokenCountModality value)
{
return value switch
{
+ ModalityTokenCountModality.Audio => "AUDIO",
+ ModalityTokenCountModality.Document => "DOCUMENT",
+ ModalityTokenCountModality.Image => "IMAGE",
ModalityTokenCountModality.ModalityUnspecified => "MODALITY_UNSPECIFIED",
ModalityTokenCountModality.Text => "TEXT",
- ModalityTokenCountModality.Image => "IMAGE",
ModalityTokenCountModality.Video => "VIDEO",
- ModalityTokenCountModality.Audio => "AUDIO",
- ModalityTokenCountModality.Document => "DOCUMENT",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -62,12 +62,12 @@ public static string ToValueString(this ModalityTokenCountModality value)
{
return value switch
{
+ "AUDIO" => ModalityTokenCountModality.Audio,
+ "DOCUMENT" => ModalityTokenCountModality.Document,
+ "IMAGE" => ModalityTokenCountModality.Image,
"MODALITY_UNSPECIFIED" => ModalityTokenCountModality.ModalityUnspecified,
"TEXT" => ModalityTokenCountModality.Text,
- "IMAGE" => ModalityTokenCountModality.Image,
"VIDEO" => ModalityTokenCountModality.Video,
- "AUDIO" => ModalityTokenCountModality.Audio,
- "DOCUMENT" => ModalityTokenCountModality.Document,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatusModelStage.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatusModelStage.g.cs
index 70948d1..8460c63 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatusModelStage.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ModelStatusModelStage.g.cs
@@ -9,37 +9,37 @@ namespace Google.Gemini
public enum ModelStatusModelStage
{
///
- /// Unspecified model stage.
- ///
- ModelStageUnspecified,
- ///
- /// The underlying model is subject to lots of tunings.
+ /// Models in this stage are deprecated. These models cannot be used.
///
- UnstableExperimental,
+ Deprecated,
///
/// Models in this stage are for experimental purposes only.
///
Experimental,
///
- /// Models in this stage are more mature than experimental models.
- ///
- Preview,
- ///
- /// Models in this stage are considered stable and ready for production use.
- ///
- Stable,
- ///
/// If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.
///
Legacy,
///
- /// Models in this stage are deprecated. These models cannot be used.
+ /// Unspecified model stage.
///
- Deprecated,
+ ModelStageUnspecified,
+ ///
+ /// Models in this stage are more mature than experimental models.
+ ///
+ Preview,
///
/// Models in this stage are retired. These models cannot be used.
///
Retired,
+ ///
+ /// Models in this stage are considered stable and ready for production use.
+ ///
+ Stable,
+ ///
+ /// The underlying model is subject to lots of tunings.
+ ///
+ UnstableExperimental,
}
///
@@ -54,14 +54,14 @@ public static string ToValueString(this ModelStatusModelStage value)
{
return value switch
{
- ModelStatusModelStage.ModelStageUnspecified => "MODEL_STAGE_UNSPECIFIED",
- ModelStatusModelStage.UnstableExperimental => "UNSTABLE_EXPERIMENTAL",
+ ModelStatusModelStage.Deprecated => "DEPRECATED",
ModelStatusModelStage.Experimental => "EXPERIMENTAL",
- ModelStatusModelStage.Preview => "PREVIEW",
- ModelStatusModelStage.Stable => "STABLE",
ModelStatusModelStage.Legacy => "LEGACY",
- ModelStatusModelStage.Deprecated => "DEPRECATED",
+ ModelStatusModelStage.ModelStageUnspecified => "MODEL_STAGE_UNSPECIFIED",
+ ModelStatusModelStage.Preview => "PREVIEW",
ModelStatusModelStage.Retired => "RETIRED",
+ ModelStatusModelStage.Stable => "STABLE",
+ ModelStatusModelStage.UnstableExperimental => "UNSTABLE_EXPERIMENTAL",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -72,14 +72,14 @@ public static string ToValueString(this ModelStatusModelStage value)
{
return value switch
{
- "MODEL_STAGE_UNSPECIFIED" => ModelStatusModelStage.ModelStageUnspecified,
- "UNSTABLE_EXPERIMENTAL" => ModelStatusModelStage.UnstableExperimental,
+ "DEPRECATED" => ModelStatusModelStage.Deprecated,
"EXPERIMENTAL" => ModelStatusModelStage.Experimental,
- "PREVIEW" => ModelStatusModelStage.Preview,
- "STABLE" => ModelStatusModelStage.Stable,
"LEGACY" => ModelStatusModelStage.Legacy,
- "DEPRECATED" => ModelStatusModelStage.Deprecated,
+ "MODEL_STAGE_UNSPECIFIED" => ModelStatusModelStage.ModelStageUnspecified,
+ "PREVIEW" => ModelStatusModelStage.Preview,
"RETIRED" => ModelStatusModelStage.Retired,
+ "STABLE" => ModelStatusModelStage.Stable,
+ "UNSTABLE_EXPERIMENTAL" => ModelStatusModelStage.UnstableExperimental,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionGranteeType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionGranteeType.g.cs
index f1c19dd..6131717 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionGranteeType.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionGranteeType.g.cs
@@ -9,21 +9,21 @@ namespace Google.Gemini
public enum PermissionGranteeType
{
///
- /// The default value. This value is unused.
+ /// Represents access to everyone. No extra information is required.
///
- GranteeTypeUnspecified,
+ Everyone,
///
- /// Represents a user. When set, you must provide email_address for the user.
+ /// The default value. This value is unused.
///
- User,
+ GranteeTypeUnspecified,
///
/// Represents a group. When set, you must provide email_address for the group.
///
Group,
///
- /// Represents access to everyone. No extra information is required.
+ /// Represents a user. When set, you must provide email_address for the user.
///
- Everyone,
+ User,
}
///
@@ -38,10 +38,10 @@ public static string ToValueString(this PermissionGranteeType value)
{
return value switch
{
+ PermissionGranteeType.Everyone => "EVERYONE",
PermissionGranteeType.GranteeTypeUnspecified => "GRANTEE_TYPE_UNSPECIFIED",
- PermissionGranteeType.User => "USER",
PermissionGranteeType.Group => "GROUP",
- PermissionGranteeType.Everyone => "EVERYONE",
+ PermissionGranteeType.User => "USER",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -52,10 +52,10 @@ public static string ToValueString(this PermissionGranteeType value)
{
return value switch
{
+ "EVERYONE" => PermissionGranteeType.Everyone,
"GRANTEE_TYPE_UNSPECIFIED" => PermissionGranteeType.GranteeTypeUnspecified,
- "USER" => PermissionGranteeType.User,
"GROUP" => PermissionGranteeType.Group,
- "EVERYONE" => PermissionGranteeType.Everyone,
+ "USER" => PermissionGranteeType.User,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionRole.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionRole.g.cs
index dbdcfdb..03a88cd 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionRole.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PermissionRole.g.cs
@@ -8,22 +8,22 @@ namespace Google.Gemini
///
public enum PermissionRole
{
- ///
- /// The default value. This value is unused.
- ///
- RoleUnspecified,
///
/// Owner can use, update, share and delete the resource.
///
Owner,
///
- /// Writer can use, update and share the resource.
- ///
- Writer,
- ///
/// Reader can use the resource.
///
Reader,
+ ///
+ /// The default value. This value is unused.
+ ///
+ RoleUnspecified,
+ ///
+ /// Writer can use, update and share the resource.
+ ///
+ Writer,
}
///
@@ -38,10 +38,10 @@ public static string ToValueString(this PermissionRole value)
{
return value switch
{
- PermissionRole.RoleUnspecified => "ROLE_UNSPECIFIED",
PermissionRole.Owner => "OWNER",
- PermissionRole.Writer => "WRITER",
PermissionRole.Reader => "READER",
+ PermissionRole.RoleUnspecified => "ROLE_UNSPECIFIED",
+ PermissionRole.Writer => "WRITER",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -52,10 +52,10 @@ public static string ToValueString(this PermissionRole value)
{
return value switch
{
- "ROLE_UNSPECIFIED" => PermissionRole.RoleUnspecified,
"OWNER" => PermissionRole.Owner,
- "WRITER" => PermissionRole.Writer,
"READER" => PermissionRole.Reader,
+ "ROLE_UNSPECIFIED" => PermissionRole.RoleUnspecified,
+ "WRITER" => PermissionRole.Writer,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedbackBlockReason.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedbackBlockReason.g.cs
index f06e697..812d28b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedbackBlockReason.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.PromptFeedbackBlockReason.g.cs
@@ -8,30 +8,30 @@ namespace Google.Gemini
///
public enum PromptFeedbackBlockReason
{
+ ///
+ /// Prompt was blocked due to the terms which are included from the terminology blocklist.
+ ///
+ Blocklist,
///
/// Default value. This value is unused.
///
BlockReasonUnspecified,
///
- /// Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.
+ /// Candidates blocked due to unsafe image generation content.
///
- Safety,
+ ImageSafety,
///
/// Prompt was blocked due to unknown reasons.
///
Other,
///
- /// Prompt was blocked due to the terms which are included from the terminology blocklist.
- ///
- Blocklist,
- ///
/// Prompt was blocked due to prohibited content.
///
ProhibitedContent,
///
- /// Candidates blocked due to unsafe image generation content.
+ /// Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.
///
- ImageSafety,
+ Safety,
}
///
@@ -46,12 +46,12 @@ public static string ToValueString(this PromptFeedbackBlockReason value)
{
return value switch
{
+ PromptFeedbackBlockReason.Blocklist => "BLOCKLIST",
PromptFeedbackBlockReason.BlockReasonUnspecified => "BLOCK_REASON_UNSPECIFIED",
- PromptFeedbackBlockReason.Safety => "SAFETY",
+ PromptFeedbackBlockReason.ImageSafety => "IMAGE_SAFETY",
PromptFeedbackBlockReason.Other => "OTHER",
- PromptFeedbackBlockReason.Blocklist => "BLOCKLIST",
PromptFeedbackBlockReason.ProhibitedContent => "PROHIBITED_CONTENT",
- PromptFeedbackBlockReason.ImageSafety => "IMAGE_SAFETY",
+ PromptFeedbackBlockReason.Safety => "SAFETY",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -62,12 +62,12 @@ public static string ToValueString(this PromptFeedbackBlockReason value)
{
return value switch
{
+ "BLOCKLIST" => PromptFeedbackBlockReason.Blocklist,
"BLOCK_REASON_UNSPECIFIED" => PromptFeedbackBlockReason.BlockReasonUnspecified,
- "SAFETY" => PromptFeedbackBlockReason.Safety,
+ "IMAGE_SAFETY" => PromptFeedbackBlockReason.ImageSafety,
"OTHER" => PromptFeedbackBlockReason.Other,
- "BLOCKLIST" => PromptFeedbackBlockReason.Blocklist,
"PROHIBITED_CONTENT" => PromptFeedbackBlockReason.ProhibitedContent,
- "IMAGE_SAFETY" => PromptFeedbackBlockReason.ImageSafety,
+ "SAFETY" => PromptFeedbackBlockReason.Safety,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs
index 6d18f7f..dc3f95b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingCategory.g.cs
@@ -9,33 +9,21 @@ namespace Google.Gemini
public enum SafetyRatingCategory
{
///
- /// Category is unspecified.
- ///
- HarmCategoryUnspecified,
- ///
- /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute.
- ///
- HarmCategoryDerogatory,
- ///
- /// **PaLM** - Content that is rude, disrespectful, or profane.
- ///
- HarmCategoryToxicity,
- ///
- /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.
+ /// **Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.
///
- HarmCategoryViolence,
+ HarmCategoryCivicIntegrity,
///
- /// **PaLM** - Contains references to sexual acts or other lewd content.
+ /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.
///
- HarmCategorySexual,
+ HarmCategoryDangerous,
///
- /// **PaLM** - Promotes unchecked medical advice.
+ /// **Gemini** - Dangerous content.
///
- HarmCategoryMedical,
+ HarmCategoryDangerousContent,
///
- /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.
+ /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute.
///
- HarmCategoryDangerous,
+ HarmCategoryDerogatory,
///
/// **Gemini** - Harassment content.
///
@@ -45,17 +33,29 @@ public enum SafetyRatingCategory
///
HarmCategoryHateSpeech,
///
+ /// **PaLM** - Promotes unchecked medical advice.
+ ///
+ HarmCategoryMedical,
+ ///
+ /// **PaLM** - Contains references to sexual acts or other lewd content.
+ ///
+ HarmCategorySexual,
+ ///
/// **Gemini** - Sexually explicit content.
///
HarmCategorySexuallyExplicit,
///
- /// **Gemini** - Dangerous content.
+ /// **PaLM** - Content that is rude, disrespectful, or profane.
///
- HarmCategoryDangerousContent,
+ HarmCategoryToxicity,
///
- /// **Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.
+ /// Category is unspecified.
///
- HarmCategoryCivicIntegrity,
+ HarmCategoryUnspecified,
+ ///
+ /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.
+ ///
+ HarmCategoryViolence,
}
///
@@ -70,18 +70,18 @@ public static string ToValueString(this SafetyRatingCategory value)
{
return value switch
{
- SafetyRatingCategory.HarmCategoryUnspecified => "HARM_CATEGORY_UNSPECIFIED",
- SafetyRatingCategory.HarmCategoryDerogatory => "HARM_CATEGORY_DEROGATORY",
- SafetyRatingCategory.HarmCategoryToxicity => "HARM_CATEGORY_TOXICITY",
- SafetyRatingCategory.HarmCategoryViolence => "HARM_CATEGORY_VIOLENCE",
- SafetyRatingCategory.HarmCategorySexual => "HARM_CATEGORY_SEXUAL",
- SafetyRatingCategory.HarmCategoryMedical => "HARM_CATEGORY_MEDICAL",
+ SafetyRatingCategory.HarmCategoryCivicIntegrity => "HARM_CATEGORY_CIVIC_INTEGRITY",
SafetyRatingCategory.HarmCategoryDangerous => "HARM_CATEGORY_DANGEROUS",
+ SafetyRatingCategory.HarmCategoryDangerousContent => "HARM_CATEGORY_DANGEROUS_CONTENT",
+ SafetyRatingCategory.HarmCategoryDerogatory => "HARM_CATEGORY_DEROGATORY",
SafetyRatingCategory.HarmCategoryHarassment => "HARM_CATEGORY_HARASSMENT",
SafetyRatingCategory.HarmCategoryHateSpeech => "HARM_CATEGORY_HATE_SPEECH",
+ SafetyRatingCategory.HarmCategoryMedical => "HARM_CATEGORY_MEDICAL",
+ SafetyRatingCategory.HarmCategorySexual => "HARM_CATEGORY_SEXUAL",
SafetyRatingCategory.HarmCategorySexuallyExplicit => "HARM_CATEGORY_SEXUALLY_EXPLICIT",
- SafetyRatingCategory.HarmCategoryDangerousContent => "HARM_CATEGORY_DANGEROUS_CONTENT",
- SafetyRatingCategory.HarmCategoryCivicIntegrity => "HARM_CATEGORY_CIVIC_INTEGRITY",
+ SafetyRatingCategory.HarmCategoryToxicity => "HARM_CATEGORY_TOXICITY",
+ SafetyRatingCategory.HarmCategoryUnspecified => "HARM_CATEGORY_UNSPECIFIED",
+ SafetyRatingCategory.HarmCategoryViolence => "HARM_CATEGORY_VIOLENCE",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -92,18 +92,18 @@ public static string ToValueString(this SafetyRatingCategory value)
{
return value switch
{
- "HARM_CATEGORY_UNSPECIFIED" => SafetyRatingCategory.HarmCategoryUnspecified,
- "HARM_CATEGORY_DEROGATORY" => SafetyRatingCategory.HarmCategoryDerogatory,
- "HARM_CATEGORY_TOXICITY" => SafetyRatingCategory.HarmCategoryToxicity,
- "HARM_CATEGORY_VIOLENCE" => SafetyRatingCategory.HarmCategoryViolence,
- "HARM_CATEGORY_SEXUAL" => SafetyRatingCategory.HarmCategorySexual,
- "HARM_CATEGORY_MEDICAL" => SafetyRatingCategory.HarmCategoryMedical,
+ "HARM_CATEGORY_CIVIC_INTEGRITY" => SafetyRatingCategory.HarmCategoryCivicIntegrity,
"HARM_CATEGORY_DANGEROUS" => SafetyRatingCategory.HarmCategoryDangerous,
+ "HARM_CATEGORY_DANGEROUS_CONTENT" => SafetyRatingCategory.HarmCategoryDangerousContent,
+ "HARM_CATEGORY_DEROGATORY" => SafetyRatingCategory.HarmCategoryDerogatory,
"HARM_CATEGORY_HARASSMENT" => SafetyRatingCategory.HarmCategoryHarassment,
"HARM_CATEGORY_HATE_SPEECH" => SafetyRatingCategory.HarmCategoryHateSpeech,
+ "HARM_CATEGORY_MEDICAL" => SafetyRatingCategory.HarmCategoryMedical,
+ "HARM_CATEGORY_SEXUAL" => SafetyRatingCategory.HarmCategorySexual,
"HARM_CATEGORY_SEXUALLY_EXPLICIT" => SafetyRatingCategory.HarmCategorySexuallyExplicit,
- "HARM_CATEGORY_DANGEROUS_CONTENT" => SafetyRatingCategory.HarmCategoryDangerousContent,
- "HARM_CATEGORY_CIVIC_INTEGRITY" => SafetyRatingCategory.HarmCategoryCivicIntegrity,
+ "HARM_CATEGORY_TOXICITY" => SafetyRatingCategory.HarmCategoryToxicity,
+ "HARM_CATEGORY_UNSPECIFIED" => SafetyRatingCategory.HarmCategoryUnspecified,
+ "HARM_CATEGORY_VIOLENCE" => SafetyRatingCategory.HarmCategoryViolence,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingProbability.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingProbability.g.cs
index 0d4679f..1e031c6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingProbability.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetyRatingProbability.g.cs
@@ -13,9 +13,9 @@ public enum SafetyRatingProbability
///
HarmProbabilityUnspecified,
///
- /// Content has a negligible chance of being unsafe.
+ /// Content has a high chance of being unsafe.
///
- Negligible,
+ High,
///
/// Content has a low chance of being unsafe.
///
@@ -25,9 +25,9 @@ public enum SafetyRatingProbability
///
Medium,
///
- /// Content has a high chance of being unsafe.
+ /// Content has a negligible chance of being unsafe.
///
- High,
+ Negligible,
}
///
@@ -43,10 +43,10 @@ public static string ToValueString(this SafetyRatingProbability value)
return value switch
{
SafetyRatingProbability.HarmProbabilityUnspecified => "HARM_PROBABILITY_UNSPECIFIED",
- SafetyRatingProbability.Negligible => "NEGLIGIBLE",
+ SafetyRatingProbability.High => "HIGH",
SafetyRatingProbability.Low => "LOW",
SafetyRatingProbability.Medium => "MEDIUM",
- SafetyRatingProbability.High => "HIGH",
+ SafetyRatingProbability.Negligible => "NEGLIGIBLE",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -58,10 +58,10 @@ public static string ToValueString(this SafetyRatingProbability value)
return value switch
{
"HARM_PROBABILITY_UNSPECIFIED" => SafetyRatingProbability.HarmProbabilityUnspecified,
- "NEGLIGIBLE" => SafetyRatingProbability.Negligible,
+ "HIGH" => SafetyRatingProbability.High,
"LOW" => SafetyRatingProbability.Low,
"MEDIUM" => SafetyRatingProbability.Medium,
- "HIGH" => SafetyRatingProbability.High,
+ "NEGLIGIBLE" => SafetyRatingProbability.Negligible,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs
index 34b2518..510bffd 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingCategory.g.cs
@@ -9,33 +9,21 @@ namespace Google.Gemini
public enum SafetySettingCategory
{
///
- /// Category is unspecified.
- ///
- HarmCategoryUnspecified,
- ///
- /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute.
- ///
- HarmCategoryDerogatory,
- ///
- /// **PaLM** - Content that is rude, disrespectful, or profane.
- ///
- HarmCategoryToxicity,
- ///
- /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.
+ /// **Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.
///
- HarmCategoryViolence,
+ HarmCategoryCivicIntegrity,
///
- /// **PaLM** - Contains references to sexual acts or other lewd content.
+ /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.
///
- HarmCategorySexual,
+ HarmCategoryDangerous,
///
- /// **PaLM** - Promotes unchecked medical advice.
+ /// **Gemini** - Dangerous content.
///
- HarmCategoryMedical,
+ HarmCategoryDangerousContent,
///
- /// **PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.
+ /// **PaLM** - Negative or harmful comments targeting identity and/or protected attribute.
///
- HarmCategoryDangerous,
+ HarmCategoryDerogatory,
///
/// **Gemini** - Harassment content.
///
@@ -45,17 +33,29 @@ public enum SafetySettingCategory
///
HarmCategoryHateSpeech,
///
+ /// **PaLM** - Promotes unchecked medical advice.
+ ///
+ HarmCategoryMedical,
+ ///
+ /// **PaLM** - Contains references to sexual acts or other lewd content.
+ ///
+ HarmCategorySexual,
+ ///
/// **Gemini** - Sexually explicit content.
///
HarmCategorySexuallyExplicit,
///
- /// **Gemini** - Dangerous content.
+ /// **PaLM** - Content that is rude, disrespectful, or profane.
///
- HarmCategoryDangerousContent,
+ HarmCategoryToxicity,
///
- /// **Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.
+ /// Category is unspecified.
///
- HarmCategoryCivicIntegrity,
+ HarmCategoryUnspecified,
+ ///
+ /// **PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.
+ ///
+ HarmCategoryViolence,
}
///
@@ -70,18 +70,18 @@ public static string ToValueString(this SafetySettingCategory value)
{
return value switch
{
- SafetySettingCategory.HarmCategoryUnspecified => "HARM_CATEGORY_UNSPECIFIED",
- SafetySettingCategory.HarmCategoryDerogatory => "HARM_CATEGORY_DEROGATORY",
- SafetySettingCategory.HarmCategoryToxicity => "HARM_CATEGORY_TOXICITY",
- SafetySettingCategory.HarmCategoryViolence => "HARM_CATEGORY_VIOLENCE",
- SafetySettingCategory.HarmCategorySexual => "HARM_CATEGORY_SEXUAL",
- SafetySettingCategory.HarmCategoryMedical => "HARM_CATEGORY_MEDICAL",
+ SafetySettingCategory.HarmCategoryCivicIntegrity => "HARM_CATEGORY_CIVIC_INTEGRITY",
SafetySettingCategory.HarmCategoryDangerous => "HARM_CATEGORY_DANGEROUS",
+ SafetySettingCategory.HarmCategoryDangerousContent => "HARM_CATEGORY_DANGEROUS_CONTENT",
+ SafetySettingCategory.HarmCategoryDerogatory => "HARM_CATEGORY_DEROGATORY",
SafetySettingCategory.HarmCategoryHarassment => "HARM_CATEGORY_HARASSMENT",
SafetySettingCategory.HarmCategoryHateSpeech => "HARM_CATEGORY_HATE_SPEECH",
+ SafetySettingCategory.HarmCategoryMedical => "HARM_CATEGORY_MEDICAL",
+ SafetySettingCategory.HarmCategorySexual => "HARM_CATEGORY_SEXUAL",
SafetySettingCategory.HarmCategorySexuallyExplicit => "HARM_CATEGORY_SEXUALLY_EXPLICIT",
- SafetySettingCategory.HarmCategoryDangerousContent => "HARM_CATEGORY_DANGEROUS_CONTENT",
- SafetySettingCategory.HarmCategoryCivicIntegrity => "HARM_CATEGORY_CIVIC_INTEGRITY",
+ SafetySettingCategory.HarmCategoryToxicity => "HARM_CATEGORY_TOXICITY",
+ SafetySettingCategory.HarmCategoryUnspecified => "HARM_CATEGORY_UNSPECIFIED",
+ SafetySettingCategory.HarmCategoryViolence => "HARM_CATEGORY_VIOLENCE",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -92,18 +92,18 @@ public static string ToValueString(this SafetySettingCategory value)
{
return value switch
{
- "HARM_CATEGORY_UNSPECIFIED" => SafetySettingCategory.HarmCategoryUnspecified,
- "HARM_CATEGORY_DEROGATORY" => SafetySettingCategory.HarmCategoryDerogatory,
- "HARM_CATEGORY_TOXICITY" => SafetySettingCategory.HarmCategoryToxicity,
- "HARM_CATEGORY_VIOLENCE" => SafetySettingCategory.HarmCategoryViolence,
- "HARM_CATEGORY_SEXUAL" => SafetySettingCategory.HarmCategorySexual,
- "HARM_CATEGORY_MEDICAL" => SafetySettingCategory.HarmCategoryMedical,
+ "HARM_CATEGORY_CIVIC_INTEGRITY" => SafetySettingCategory.HarmCategoryCivicIntegrity,
"HARM_CATEGORY_DANGEROUS" => SafetySettingCategory.HarmCategoryDangerous,
+ "HARM_CATEGORY_DANGEROUS_CONTENT" => SafetySettingCategory.HarmCategoryDangerousContent,
+ "HARM_CATEGORY_DEROGATORY" => SafetySettingCategory.HarmCategoryDerogatory,
"HARM_CATEGORY_HARASSMENT" => SafetySettingCategory.HarmCategoryHarassment,
"HARM_CATEGORY_HATE_SPEECH" => SafetySettingCategory.HarmCategoryHateSpeech,
+ "HARM_CATEGORY_MEDICAL" => SafetySettingCategory.HarmCategoryMedical,
+ "HARM_CATEGORY_SEXUAL" => SafetySettingCategory.HarmCategorySexual,
"HARM_CATEGORY_SEXUALLY_EXPLICIT" => SafetySettingCategory.HarmCategorySexuallyExplicit,
- "HARM_CATEGORY_DANGEROUS_CONTENT" => SafetySettingCategory.HarmCategoryDangerousContent,
- "HARM_CATEGORY_CIVIC_INTEGRITY" => SafetySettingCategory.HarmCategoryCivicIntegrity,
+ "HARM_CATEGORY_TOXICITY" => SafetySettingCategory.HarmCategoryToxicity,
+ "HARM_CATEGORY_UNSPECIFIED" => SafetySettingCategory.HarmCategoryUnspecified,
+ "HARM_CATEGORY_VIOLENCE" => SafetySettingCategory.HarmCategoryViolence,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingThreshold.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingThreshold.g.cs
index 2daac8f..9e83df9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingThreshold.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SafetySettingThreshold.g.cs
@@ -8,10 +8,6 @@ namespace Google.Gemini
///
public enum SafetySettingThreshold
{
- ///
- /// Threshold is unspecified.
- ///
- HarmBlockThresholdUnspecified,
///
/// Content with NEGLIGIBLE will be allowed.
///
@@ -21,13 +17,17 @@ public enum SafetySettingThreshold
///
BlockMediumAndAbove,
///
+ /// All content will be allowed.
+ ///
+ BlockNone,
+ ///
/// Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.
///
BlockOnlyHigh,
///
- /// All content will be allowed.
+ /// Threshold is unspecified.
///
- BlockNone,
+ HarmBlockThresholdUnspecified,
///
/// Turn off the safety filter.
///
@@ -46,11 +46,11 @@ public static string ToValueString(this SafetySettingThreshold value)
{
return value switch
{
- SafetySettingThreshold.HarmBlockThresholdUnspecified => "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
SafetySettingThreshold.BlockLowAndAbove => "BLOCK_LOW_AND_ABOVE",
SafetySettingThreshold.BlockMediumAndAbove => "BLOCK_MEDIUM_AND_ABOVE",
- SafetySettingThreshold.BlockOnlyHigh => "BLOCK_ONLY_HIGH",
SafetySettingThreshold.BlockNone => "BLOCK_NONE",
+ SafetySettingThreshold.BlockOnlyHigh => "BLOCK_ONLY_HIGH",
+ SafetySettingThreshold.HarmBlockThresholdUnspecified => "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
SafetySettingThreshold.Off => "OFF",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
@@ -62,11 +62,11 @@ public static string ToValueString(this SafetySettingThreshold value)
{
return value switch
{
- "HARM_BLOCK_THRESHOLD_UNSPECIFIED" => SafetySettingThreshold.HarmBlockThresholdUnspecified,
"BLOCK_LOW_AND_ABOVE" => SafetySettingThreshold.BlockLowAndAbove,
"BLOCK_MEDIUM_AND_ABOVE" => SafetySettingThreshold.BlockMediumAndAbove,
- "BLOCK_ONLY_HIGH" => SafetySettingThreshold.BlockOnlyHigh,
"BLOCK_NONE" => SafetySettingThreshold.BlockNone,
+ "BLOCK_ONLY_HIGH" => SafetySettingThreshold.BlockOnlyHigh,
+ "HARM_BLOCK_THRESHOLD_UNSPECIFIED" => SafetySettingThreshold.HarmBlockThresholdUnspecified,
"OFF" => SafetySettingThreshold.Off,
_ => null,
};
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SchemaType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SchemaType.g.cs
index 964fc6a..611115e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SchemaType.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.SchemaType.g.cs
@@ -9,37 +9,37 @@ namespace Google.Gemini
public enum SchemaType
{
///
- /// Not specified, should not be used.
- ///
- TypeUnspecified,
- ///
- /// String type.
+ /// Array type.
///
- String,
+ Array,
///
- /// Number type.
+ /// Boolean type.
///
- Number,
+ Boolean,
///
/// Integer type.
///
Integer,
///
- /// Boolean type.
+ /// Null type.
///
- Boolean,
+ Null,
///
- /// Array type.
+ /// Number type.
///
- Array,
+ Number,
///
/// Object type.
///
Object,
///
- /// Null type.
+ /// String type.
///
- Null,
+ String,
+ ///
+ /// Not specified, should not be used.
+ ///
+ TypeUnspecified,
}
///
@@ -54,14 +54,14 @@ public static string ToValueString(this SchemaType value)
{
return value switch
{
- SchemaType.TypeUnspecified => "TYPE_UNSPECIFIED",
- SchemaType.String => "STRING",
- SchemaType.Number => "NUMBER",
- SchemaType.Integer => "INTEGER",
- SchemaType.Boolean => "BOOLEAN",
SchemaType.Array => "ARRAY",
- SchemaType.Object => "OBJECT",
+ SchemaType.Boolean => "BOOLEAN",
+ SchemaType.Integer => "INTEGER",
SchemaType.Null => "NULL",
+ SchemaType.Number => "NUMBER",
+ SchemaType.Object => "OBJECT",
+ SchemaType.String => "STRING",
+ SchemaType.TypeUnspecified => "TYPE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -72,14 +72,14 @@ public static string ToValueString(this SchemaType value)
{
return value switch
{
- "TYPE_UNSPECIFIED" => SchemaType.TypeUnspecified,
- "STRING" => SchemaType.String,
- "NUMBER" => SchemaType.Number,
- "INTEGER" => SchemaType.Integer,
- "BOOLEAN" => SchemaType.Boolean,
"ARRAY" => SchemaType.Array,
- "OBJECT" => SchemaType.Object,
+ "BOOLEAN" => SchemaType.Boolean,
+ "INTEGER" => SchemaType.Integer,
"NULL" => SchemaType.Null,
+ "NUMBER" => SchemaType.Number,
+ "OBJECT" => SchemaType.Object,
+ "STRING" => SchemaType.String,
+ "TYPE_UNSPECIFIED" => SchemaType.TypeUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfigThinkingLevel.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfigThinkingLevel.g.cs
index 37791b4..dc53dde 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfigThinkingLevel.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ThinkingConfigThinkingLevel.g.cs
@@ -9,13 +9,9 @@ namespace Google.Gemini
public enum ThinkingConfigThinkingLevel
{
///
- /// Default value.
- ///
- ThinkingLevelUnspecified,
- ///
- /// Little to no thinking.
+ /// High thinking level.
///
- Minimal,
+ High,
///
/// Low thinking level.
///
@@ -25,9 +21,13 @@ public enum ThinkingConfigThinkingLevel
///
Medium,
///
- /// High thinking level.
+ /// Little to no thinking.
///
- High,
+ Minimal,
+ ///
+ /// Default value.
+ ///
+ ThinkingLevelUnspecified,
}
///
@@ -42,11 +42,11 @@ public static string ToValueString(this ThinkingConfigThinkingLevel value)
{
return value switch
{
- ThinkingConfigThinkingLevel.ThinkingLevelUnspecified => "THINKING_LEVEL_UNSPECIFIED",
- ThinkingConfigThinkingLevel.Minimal => "MINIMAL",
+ ThinkingConfigThinkingLevel.High => "HIGH",
ThinkingConfigThinkingLevel.Low => "LOW",
ThinkingConfigThinkingLevel.Medium => "MEDIUM",
- ThinkingConfigThinkingLevel.High => "HIGH",
+ ThinkingConfigThinkingLevel.Minimal => "MINIMAL",
+ ThinkingConfigThinkingLevel.ThinkingLevelUnspecified => "THINKING_LEVEL_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -57,11 +57,11 @@ public static string ToValueString(this ThinkingConfigThinkingLevel value)
{
return value switch
{
- "THINKING_LEVEL_UNSPECIFIED" => ThinkingConfigThinkingLevel.ThinkingLevelUnspecified,
- "MINIMAL" => ThinkingConfigThinkingLevel.Minimal,
+ "HIGH" => ThinkingConfigThinkingLevel.High,
"LOW" => ThinkingConfigThinkingLevel.Low,
"MEDIUM" => ThinkingConfigThinkingLevel.Medium,
- "HIGH" => ThinkingConfigThinkingLevel.High,
+ "MINIMAL" => ThinkingConfigThinkingLevel.Minimal,
+ "THINKING_LEVEL_UNSPECIFIED" => ThinkingConfigThinkingLevel.ThinkingLevelUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCallToolType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCallToolType.g.cs
index 2ea7a0c..a4e5a00 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCallToolType.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolCallToolType.g.cs
@@ -9,29 +9,29 @@ namespace Google.Gemini
public enum ToolCallToolType
{
///
- /// Unspecified tool type.
+ /// File search tool, maps to Tool.file_search.
///
- ToolTypeUnspecified,
+ FileSearch,
///
- /// Google search tool, maps to Tool.google_search.search_types.web_search.
+ /// Google maps tool, maps to Tool.google_maps.
///
- GoogleSearchWeb,
+ GoogleMaps,
///
/// Image search tool, maps to Tool.google_search.search_types.image_search.
///
GoogleSearchImage,
///
- /// URL context tool, maps to Tool.url_context.
+ /// Google search tool, maps to Tool.google_search.search_types.web_search.
///
- UrlContext,
+ GoogleSearchWeb,
///
- /// Google maps tool, maps to Tool.google_maps.
+ /// Unspecified tool type.
///
- GoogleMaps,
+ ToolTypeUnspecified,
///
- /// File search tool, maps to Tool.file_search.
+ /// URL context tool, maps to Tool.url_context.
///
- FileSearch,
+ UrlContext,
}
///
@@ -46,12 +46,12 @@ public static string ToValueString(this ToolCallToolType value)
{
return value switch
{
- ToolCallToolType.ToolTypeUnspecified => "TOOL_TYPE_UNSPECIFIED",
- ToolCallToolType.GoogleSearchWeb => "GOOGLE_SEARCH_WEB",
+ ToolCallToolType.FileSearch => "FILE_SEARCH",
+ ToolCallToolType.GoogleMaps => "GOOGLE_MAPS",
ToolCallToolType.GoogleSearchImage => "GOOGLE_SEARCH_IMAGE",
+ ToolCallToolType.GoogleSearchWeb => "GOOGLE_SEARCH_WEB",
+ ToolCallToolType.ToolTypeUnspecified => "TOOL_TYPE_UNSPECIFIED",
ToolCallToolType.UrlContext => "URL_CONTEXT",
- ToolCallToolType.GoogleMaps => "GOOGLE_MAPS",
- ToolCallToolType.FileSearch => "FILE_SEARCH",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -62,12 +62,12 @@ public static string ToValueString(this ToolCallToolType value)
{
return value switch
{
- "TOOL_TYPE_UNSPECIFIED" => ToolCallToolType.ToolTypeUnspecified,
- "GOOGLE_SEARCH_WEB" => ToolCallToolType.GoogleSearchWeb,
+ "FILE_SEARCH" => ToolCallToolType.FileSearch,
+ "GOOGLE_MAPS" => ToolCallToolType.GoogleMaps,
"GOOGLE_SEARCH_IMAGE" => ToolCallToolType.GoogleSearchImage,
+ "GOOGLE_SEARCH_WEB" => ToolCallToolType.GoogleSearchWeb,
+ "TOOL_TYPE_UNSPECIFIED" => ToolCallToolType.ToolTypeUnspecified,
"URL_CONTEXT" => ToolCallToolType.UrlContext,
- "GOOGLE_MAPS" => ToolCallToolType.GoogleMaps,
- "FILE_SEARCH" => ToolCallToolType.FileSearch,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponseToolType.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponseToolType.g.cs
index 08c9678..10fd079 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponseToolType.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.ToolResponseToolType.g.cs
@@ -9,29 +9,29 @@ namespace Google.Gemini
public enum ToolResponseToolType
{
///
- /// Unspecified tool type.
+ /// File search tool, maps to Tool.file_search.
///
- ToolTypeUnspecified,
+ FileSearch,
///
- /// Google search tool, maps to Tool.google_search.search_types.web_search.
+ /// Google maps tool, maps to Tool.google_maps.
///
- GoogleSearchWeb,
+ GoogleMaps,
///
/// Image search tool, maps to Tool.google_search.search_types.image_search.
///
GoogleSearchImage,
///
- /// URL context tool, maps to Tool.url_context.
+ /// Google search tool, maps to Tool.google_search.search_types.web_search.
///
- UrlContext,
+ GoogleSearchWeb,
///
- /// Google maps tool, maps to Tool.google_maps.
+ /// Unspecified tool type.
///
- GoogleMaps,
+ ToolTypeUnspecified,
///
- /// File search tool, maps to Tool.file_search.
+ /// URL context tool, maps to Tool.url_context.
///
- FileSearch,
+ UrlContext,
}
///
@@ -46,12 +46,12 @@ public static string ToValueString(this ToolResponseToolType value)
{
return value switch
{
- ToolResponseToolType.ToolTypeUnspecified => "TOOL_TYPE_UNSPECIFIED",
- ToolResponseToolType.GoogleSearchWeb => "GOOGLE_SEARCH_WEB",
+ ToolResponseToolType.FileSearch => "FILE_SEARCH",
+ ToolResponseToolType.GoogleMaps => "GOOGLE_MAPS",
ToolResponseToolType.GoogleSearchImage => "GOOGLE_SEARCH_IMAGE",
+ ToolResponseToolType.GoogleSearchWeb => "GOOGLE_SEARCH_WEB",
+ ToolResponseToolType.ToolTypeUnspecified => "TOOL_TYPE_UNSPECIFIED",
ToolResponseToolType.UrlContext => "URL_CONTEXT",
- ToolResponseToolType.GoogleMaps => "GOOGLE_MAPS",
- ToolResponseToolType.FileSearch => "FILE_SEARCH",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -62,12 +62,12 @@ public static string ToValueString(this ToolResponseToolType value)
{
return value switch
{
- "TOOL_TYPE_UNSPECIFIED" => ToolResponseToolType.ToolTypeUnspecified,
- "GOOGLE_SEARCH_WEB" => ToolResponseToolType.GoogleSearchWeb,
+ "FILE_SEARCH" => ToolResponseToolType.FileSearch,
+ "GOOGLE_MAPS" => ToolResponseToolType.GoogleMaps,
"GOOGLE_SEARCH_IMAGE" => ToolResponseToolType.GoogleSearchImage,
+ "GOOGLE_SEARCH_WEB" => ToolResponseToolType.GoogleSearchWeb,
+ "TOOL_TYPE_UNSPECIFIED" => ToolResponseToolType.ToolTypeUnspecified,
"URL_CONTEXT" => ToolResponseToolType.UrlContext,
- "GOOGLE_MAPS" => ToolResponseToolType.GoogleMaps,
- "FILE_SEARCH" => ToolResponseToolType.FileSearch,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelState.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelState.g.cs
index 2fa6d71..d9fdd23 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelState.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.TunedModelState.g.cs
@@ -10,21 +10,21 @@ namespace Google.Gemini
public enum TunedModelState
{
///
- /// The default value. This value is unused.
+ /// The model is ready to be used.
///
- StateUnspecified,
+ Active,
///
/// The model is being created.
///
Creating,
///
- /// The model is ready to be used.
- ///
- Active,
- ///
/// The model failed to be created.
///
Failed,
+ ///
+ /// The default value. This value is unused.
+ ///
+ StateUnspecified,
}
///
@@ -39,10 +39,10 @@ public static string ToValueString(this TunedModelState value)
{
return value switch
{
- TunedModelState.StateUnspecified => "STATE_UNSPECIFIED",
- TunedModelState.Creating => "CREATING",
TunedModelState.Active => "ACTIVE",
+ TunedModelState.Creating => "CREATING",
TunedModelState.Failed => "FAILED",
+ TunedModelState.StateUnspecified => "STATE_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -53,10 +53,10 @@ public static string ToValueString(this TunedModelState value)
{
return value switch
{
- "STATE_UNSPECIFIED" => TunedModelState.StateUnspecified,
- "CREATING" => TunedModelState.Creating,
"ACTIVE" => TunedModelState.Active,
+ "CREATING" => TunedModelState.Creating,
"FAILED" => TunedModelState.Failed,
+ "STATE_UNSPECIFIED" => TunedModelState.StateUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadataUrlRetrievalStatus.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadataUrlRetrievalStatus.g.cs
index fb1f84c..4c3a5a7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadataUrlRetrievalStatus.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Models.UrlMetadataUrlRetrievalStatus.g.cs
@@ -8,14 +8,6 @@ namespace Google.Gemini
///
public enum UrlMetadataUrlRetrievalStatus
{
- ///
- /// Default value. This value is unused.
- ///
- UrlRetrievalStatusUnspecified,
- ///
- /// Url retrieval is successful.
- ///
- UrlRetrievalStatusSuccess,
///
/// Url retrieval is failed due to error.
///
@@ -25,9 +17,17 @@ public enum UrlMetadataUrlRetrievalStatus
///
UrlRetrievalStatusPaywall,
///
+ /// Url retrieval is successful.
+ ///
+ UrlRetrievalStatusSuccess,
+ ///
/// Url retrieval is failed because the content is unsafe.
///
UrlRetrievalStatusUnsafe,
+ ///
+ /// Default value. This value is unused.
+ ///
+ UrlRetrievalStatusUnspecified,
}
///
@@ -42,11 +42,11 @@ public static string ToValueString(this UrlMetadataUrlRetrievalStatus value)
{
return value switch
{
- UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusUnspecified => "URL_RETRIEVAL_STATUS_UNSPECIFIED",
- UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusSuccess => "URL_RETRIEVAL_STATUS_SUCCESS",
UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusError => "URL_RETRIEVAL_STATUS_ERROR",
UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusPaywall => "URL_RETRIEVAL_STATUS_PAYWALL",
+ UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusSuccess => "URL_RETRIEVAL_STATUS_SUCCESS",
UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusUnsafe => "URL_RETRIEVAL_STATUS_UNSAFE",
+ UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusUnspecified => "URL_RETRIEVAL_STATUS_UNSPECIFIED",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
@@ -57,11 +57,11 @@ public static string ToValueString(this UrlMetadataUrlRetrievalStatus value)
{
return value switch
{
- "URL_RETRIEVAL_STATUS_UNSPECIFIED" => UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusUnspecified,
- "URL_RETRIEVAL_STATUS_SUCCESS" => UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusSuccess,
"URL_RETRIEVAL_STATUS_ERROR" => UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusError,
"URL_RETRIEVAL_STATUS_PAYWALL" => UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusPaywall,
+ "URL_RETRIEVAL_STATUS_SUCCESS" => UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusSuccess,
"URL_RETRIEVAL_STATUS_UNSAFE" => UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusUnsafe,
+ "URL_RETRIEVAL_STATUS_UNSPECIFIED" => UrlMetadataUrlRetrievalStatus.UrlRetrievalStatusUnspecified,
_ => null,
};
}
diff --git a/src/libs/Google.Gemini/openapi.json b/src/libs/Google.Gemini/openapi.json
index 397ff38..46954dc 100644
--- a/src/libs/Google.Gemini/openapi.json
+++ b/src/libs/Google.Gemini/openapi.json
@@ -598,6 +598,14 @@
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
"operationId": "models.operations.list",
"parameters": [
+ {
+ "name": "filter",
+ "in": "query",
+ "description": "The standard list filter.",
+ "schema": {
+ "type": "string"
+ }
+ },
{
"name": "modelsId",
"in": "path",
@@ -608,14 +616,6 @@
"pattern": "^models/[^/]+$"
}
},
- {
- "name": "filter",
- "in": "query",
- "description": "The standard list filter.",
- "schema": {
- "type": "string"
- }
- },
{
"name": "pageSize",
"in": "query",
@@ -964,6 +964,14 @@
"description": "Lists created tuned models.",
"operationId": "tunedModels.list",
"parameters": [
+ {
+ "name": "filter",
+ "in": "query",
+ "description": "Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone. Additional operators: - owner:me - writers:me - readers:me - readers:everyone Examples: \"owner:me\" returns all tuned models to which caller has owner role \"readers:me\" returns all tuned models to which caller has reader role \"readers:everyone\" returns all tuned models that are shared with everyone",
+ "schema": {
+ "type": "string"
+ }
+ },
{
"name": "pageSize",
"in": "query",
@@ -980,14 +988,6 @@
"schema": {
"type": "string"
}
- },
- {
- "name": "filter",
- "in": "query",
- "description": "Optional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone. Additional operators: - owner:me - writers:me - readers:me - readers:everyone Examples: \"owner:me\" returns all tuned models to which caller has owner role \"readers:me\" returns all tuned models to which caller has reader role \"readers:everyone\" returns all tuned models that are shared with everyone",
- "schema": {
- "type": "string"
- }
}
],
"responses": {
@@ -1083,6 +1083,14 @@
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
"operationId": "tunedModels.operations.list",
"parameters": [
+ {
+ "name": "filter",
+ "in": "query",
+ "description": "The standard list filter.",
+ "schema": {
+ "type": "string"
+ }
+ },
{
"name": "tunedModelsId",
"in": "path",
@@ -1093,14 +1101,6 @@
"pattern": "^tunedModels/[^/]+$"
}
},
- {
- "name": "filter",
- "in": "query",
- "description": "The standard list filter.",
- "schema": {
- "type": "string"
- }
- },
{
"name": "pageSize",
"in": "query",
@@ -1147,7 +1147,7 @@
"operationId": "tunedModels.operations.get",
"parameters": [
{
- "name": "operationsId",
+ "name": "tunedModelsId",
"in": "path",
"required": true,
"schema": {
@@ -1155,7 +1155,7 @@
}
},
{
- "name": "tunedModelsId",
+ "name": "operationsId",
"in": "path",
"required": true,
"description": "The name of the operation resource.",
@@ -1221,16 +1221,6 @@
"description": "Lists permissions for the specific resource.",
"operationId": "tunedModels.permissions.list",
"parameters": [
- {
- "name": "tunedModelsId",
- "in": "path",
- "required": true,
- "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
- "schema": {
- "type": "string",
- "pattern": "^tunedModels/[^/]+$"
- }
- },
{
"name": "pageSize",
"in": "query",
@@ -1247,6 +1237,16 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "tunedModelsId",
+ "in": "path",
+ "required": true,
+ "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
+ "schema": {
+ "type": "string",
+ "pattern": "^tunedModels/[^/]+$"
+ }
}
],
"responses": {
@@ -1996,6 +1996,14 @@
"description": "Deletes a `FileSearchStore`.",
"operationId": "fileSearchStores.delete",
"parameters": [
+ {
+ "name": "force",
+ "in": "query",
+ "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.",
+ "schema": {
+ "type": "boolean"
+ }
+ },
{
"name": "fileSearchStoresId",
"in": "path",
@@ -2005,14 +2013,6 @@
"type": "string",
"pattern": "^fileSearchStores/[^/]+$"
}
- },
- {
- "name": "force",
- "in": "query",
- "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.",
- "schema": {
- "type": "boolean"
- }
}
],
"responses": {
@@ -2150,7 +2150,7 @@
"operationId": "fileSearchStores.documents.get",
"parameters": [
{
- "name": "documentsId",
+ "name": "fileSearchStoresId",
"in": "path",
"required": true,
"schema": {
@@ -2158,7 +2158,7 @@
}
},
{
- "name": "fileSearchStoresId",
+ "name": "documentsId",
"in": "path",
"required": true,
"description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",
@@ -2186,7 +2186,7 @@
"operationId": "fileSearchStores.documents.delete",
"parameters": [
{
- "name": "documentsId",
+ "name": "fileSearchStoresId",
"in": "path",
"required": true,
"schema": {
@@ -2194,7 +2194,15 @@
}
},
{
- "name": "fileSearchStoresId",
+ "name": "force",
+ "in": "query",
+ "description": "Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s.",
+ "schema": {
+ "type": "boolean"
+ }
+ },
+ {
+ "name": "documentsId",
"in": "path",
"required": true,
"description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",
@@ -2202,14 +2210,6 @@
"type": "string",
"pattern": "^fileSearchStores/[^/]+/documents/[^/]+$"
}
- },
- {
- "name": "force",
- "in": "query",
- "description": "Optional. If set to true, any `Chunk`s and objects related to this `Document` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Document` contains any `Chunk`s.",
- "schema": {
- "type": "boolean"
- }
}
],
"responses": {
@@ -2231,16 +2231,6 @@
"description": "Lists all `Document`s in a `Corpus`.",
"operationId": "fileSearchStores.documents.list",
"parameters": [
- {
- "name": "fileSearchStoresId",
- "in": "path",
- "required": true,
- "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`",
- "schema": {
- "type": "string",
- "pattern": "^fileSearchStores/[^/]+$"
- }
- },
{
"name": "pageSize",
"in": "query",
@@ -2257,6 +2247,16 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "fileSearchStoresId",
+ "in": "path",
+ "required": true,
+ "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`",
+ "schema": {
+ "type": "string",
+ "pattern": "^fileSearchStores/[^/]+$"
+ }
}
],
"responses": {
@@ -2368,6 +2368,14 @@
"description": "Deletes a `Corpus`.",
"operationId": "corpora.delete",
"parameters": [
+ {
+ "name": "force",
+ "in": "query",
+ "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.",
+ "schema": {
+ "type": "boolean"
+ }
+ },
{
"name": "corporaId",
"in": "path",
@@ -2377,14 +2385,6 @@
"type": "string",
"pattern": "^corpora/[^/]+$"
}
- },
- {
- "name": "force",
- "in": "query",
- "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.",
- "schema": {
- "type": "boolean"
- }
}
],
"responses": {
@@ -2407,7 +2407,7 @@
"operationId": "corpora.operations.get",
"parameters": [
{
- "name": "corporaId",
+ "name": "operationsId",
"in": "path",
"required": true,
"schema": {
@@ -2415,7 +2415,7 @@
}
},
{
- "name": "operationsId",
+ "name": "corporaId",
"in": "path",
"required": true,
"description": "The name of the operation resource.",
@@ -2481,16 +2481,6 @@
"description": "Lists permissions for the specific resource.",
"operationId": "corpora.permissions.list",
"parameters": [
- {
- "name": "corporaId",
- "in": "path",
- "required": true,
- "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
- "schema": {
- "type": "string",
- "pattern": "^corpora/[^/]+$"
- }
- },
{
"name": "pageSize",
"in": "query",
@@ -2507,6 +2497,16 @@
"schema": {
"type": "string"
}
+ },
+ {
+ "name": "corporaId",
+ "in": "path",
+ "required": true,
+ "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
+ "schema": {
+ "type": "string",
+ "pattern": "^corpora/[^/]+$"
+ }
}
],
"responses": {
@@ -2529,7 +2529,7 @@
"operationId": "corpora.permissions.get",
"parameters": [
{
- "name": "corporaId",
+ "name": "permissionsId",
"in": "path",
"required": true,
"schema": {
@@ -2537,7 +2537,7 @@
}
},
{
- "name": "permissionsId",
+ "name": "corporaId",
"in": "path",
"required": true,
"description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
@@ -2565,7 +2565,7 @@
"operationId": "corpora.permissions.patch",
"parameters": [
{
- "name": "corporaId",
+ "name": "permissionsId",
"in": "path",
"required": true,
"schema": {
@@ -2573,7 +2573,7 @@
}
},
{
- "name": "permissionsId",
+ "name": "corporaId",
"in": "path",
"required": true,
"description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",
@@ -2619,7 +2619,7 @@
"operationId": "corpora.permissions.delete",
"parameters": [
{
- "name": "corporaId",
+ "name": "permissionsId",
"in": "path",
"required": true,
"schema": {
@@ -2627,7 +2627,7 @@
}
},
{
- "name": "permissionsId",
+ "name": "corporaId",
"in": "path",
"required": true,
"description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",