{
  "discoveryVersion": "v1",
  "name": "generativelanguage",
  "fullyEncodeReservedExpansion": true,
  "parameters": {
    "callback": {
      "location": "query",
      "type": "string",
      "description": "JSONP"
    },
    "access_token": {
      "type": "string",
      "location": "query",
      "description": "OAuth access token."
    },
    "alt": {
      "description": "Data format for response.",
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "default": "json",
      "type": "string",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "location": "query"
    },
    "fields": {
      "location": "query",
      "description": "Selector specifying which fields to include in a partial response.",
      "type": "string"
    },
    "$.xgafv": {
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "location": "query",
      "type": "string",
      "description": "V1 error format.",
      "enum": [
        "1",
        "2"
      ]
    },
    "upload_protocol": {
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query",
      "type": "string"
    },
    "oauth_token": {
      "type": "string",
      "description": "OAuth 2.0 token for the current user.",
      "location": "query"
    },
    "quotaUser": {
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
      "type": "string",
      "location": "query"
    },
    "key": {
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "location": "query"
    },
    "prettyPrint": {
      "location": "query",
      "type": "boolean",
      "default": "true",
      "description": "Returns response with indentations and line breaks."
    },
    "uploadType": {
      "location": "query",
      "type": "string",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
    }
  },
  "resources": {
    "cachedContents": {
      "methods": {
        "get": {
          "path": "v1beta/{+name}",
          "id": "generativelanguage.cachedContents.get",
          "parameterOrder": [
            "name"
          ],
          "description": "Reads CachedContent resource.",
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "parameters": {
            "name": {
              "location": "path",
              "type": "string",
              "required": true,
              "pattern": "^cachedContents/[^/]+$",
              "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`"
            }
          },
          "httpMethod": "GET",
          "response": {
            "$ref": "CachedContent"
          }
        },
        "create": {
          "parameters": {},
          "request": {
            "$ref": "CachedContent"
          },
          "id": "generativelanguage.cachedContents.create",
          "response": {
            "$ref": "CachedContent"
          },
          "flatPath": "v1beta/cachedContents",
          "parameterOrder": [],
          "path": "v1beta/cachedContents",
          "description": "Creates CachedContent resource.",
          "httpMethod": "POST"
        },
        "patch": {
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "request": {
            "$ref": "CachedContent"
          },
          "httpMethod": "PATCH",
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "CachedContent"
          },
          "parameters": {
            "name": {
              "location": "path",
              "description": "Optional. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`",
              "pattern": "^cachedContents/[^/]+$",
              "type": "string",
              "required": true
            },
            "updateMask": {
              "description": "The list of fields to update.",
              "format": "google-fieldmask",
              "type": "string",
              "location": "query"
            }
          },
          "path": "v1beta/{+name}",
          "description": "Updates CachedContent resource (only expiration is updatable).",
          "id": "generativelanguage.cachedContents.patch"
        },
        "list": {
          "description": "Lists CachedContents.",
          "response": {
            "$ref": "ListCachedContentsResponse"
          },
          "parameterOrder": [],
          "httpMethod": "GET",
          "path": "v1beta/cachedContents",
          "parameters": {
            "pageSize": {
              "description": "Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.",
              "type": "integer",
              "format": "int32",
              "location": "query"
            },
            "pageToken": {
              "location": "query",
              "description": "Optional. A page token, received from a previous `ListCachedContents` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCachedContents` must match the call that provided the page token.",
              "type": "string"
            }
          },
          "flatPath": "v1beta/cachedContents",
          "id": "generativelanguage.cachedContents.list"
        },
        "delete": {
          "httpMethod": "DELETE",
          "parameterOrder": [
            "name"
          ],
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "description": "Deletes CachedContent resource.",
          "parameters": {
            "name": {
              "type": "string",
              "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`",
              "pattern": "^cachedContents/[^/]+$",
              "required": true,
              "location": "path"
            }
          },
          "path": "v1beta/{+name}",
          "id": "generativelanguage.cachedContents.delete",
          "response": {
            "$ref": "Empty"
          }
        }
      }
    },
    "corpora": {
      "resources": {
        "documents": {
          "resources": {
            "chunks": {
              "methods": {
                "patch": {
                  "response": {
                    "$ref": "Chunk"
                  },
                  "id": "generativelanguage.corpora.documents.chunks.patch",
                  "parameters": {
                    "name": {
                      "type": "string",
                      "pattern": "^corpora/[^/]+/documents/[^/]+/chunks/[^/]+$",
                      "location": "path",
                      "required": true,
                      "description": "Immutable. Identifier. The `Chunk` resource name. The ID (name excluding the \"corpora/*/documents/*/chunks/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a random 12-character unique ID will be generated. Example: `corpora/{corpus_id}/documents/{document_id}/chunks/123a456b789c`"
                    },
                    "updateMask": {
                      "type": "string",
                      "location": "query",
                      "format": "google-fieldmask",
                      "description": "Required. The list of fields to update. Currently, this only supports updating `custom_metadata` and `data`."
                    }
                  },
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks/{chunksId}",
                  "path": "v1beta/{+name}",
                  "parameterOrder": [
                    "name"
                  ],
                  "description": "Updates a `Chunk`.",
                  "request": {
                    "$ref": "Chunk"
                  },
                  "httpMethod": "PATCH"
                },
                "get": {
                  "id": "generativelanguage.corpora.documents.chunks.get",
                  "parameterOrder": [
                    "name"
                  ],
                  "response": {
                    "$ref": "Chunk"
                  },
                  "httpMethod": "GET",
                  "path": "v1beta/{+name}",
                  "description": "Gets information about a specific `Chunk`.",
                  "parameters": {
                    "name": {
                      "description": "Required. The name of the `Chunk` to retrieve. Example: `corpora/my-corpus-123/documents/the-doc-abc/chunks/some-chunk`",
                      "required": true,
                      "location": "path",
                      "type": "string",
                      "pattern": "^corpora/[^/]+/documents/[^/]+/chunks/[^/]+$"
                    }
                  },
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks/{chunksId}"
                },
                "create": {
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "Chunk"
                  },
                  "description": "Creates a `Chunk`.",
                  "request": {
                    "$ref": "Chunk"
                  },
                  "id": "generativelanguage.corpora.documents.chunks.create",
                  "httpMethod": "POST",
                  "parameters": {
                    "parent": {
                      "required": true,
                      "pattern": "^corpora/[^/]+/documents/[^/]+$",
                      "description": "Required. The name of the `Document` where this `Chunk` will be created. Example: `corpora/my-corpus-123/documents/the-doc-abc`",
                      "type": "string",
                      "location": "path"
                    }
                  },
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks",
                  "path": "v1beta/{+parent}/chunks"
                },
                "delete": {
                  "parameterOrder": [
                    "name"
                  ],
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks/{chunksId}",
                  "response": {
                    "$ref": "Empty"
                  },
                  "id": "generativelanguage.corpora.documents.chunks.delete",
                  "path": "v1beta/{+name}",
                  "parameters": {
                    "name": {
                      "type": "string",
                      "description": "Required. The resource name of the `Chunk` to delete. Example: `corpora/my-corpus-123/documents/the-doc-abc/chunks/some-chunk`",
                      "pattern": "^corpora/[^/]+/documents/[^/]+/chunks/[^/]+$",
                      "required": true,
                      "location": "path"
                    }
                  },
                  "httpMethod": "DELETE",
                  "description": "Deletes a `Chunk`."
                },
                "batchDelete": {
                  "path": "v1beta/{+parent}/chunks:batchDelete",
                  "parameters": {
                    "parent": {
                      "location": "path",
                      "pattern": "^corpora/[^/]+/documents/[^/]+$",
                      "description": "Optional. The name of the `Document` containing the `Chunk`s to delete. The parent field in every `DeleteChunkRequest` must match this value. Example: `corpora/my-corpus-123/documents/the-doc-abc`",
                      "required": true,
                      "type": "string"
                    }
                  },
                  "response": {
                    "$ref": "Empty"
                  },
                  "parameterOrder": [
                    "parent"
                  ],
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks:batchDelete",
                  "id": "generativelanguage.corpora.documents.chunks.batchDelete",
                  "description": "Batch delete `Chunk`s.",
                  "httpMethod": "POST",
                  "request": {
                    "$ref": "BatchDeleteChunksRequest"
                  }
                },
                "list": {
                  "description": "Lists all `Chunk`s in a `Document`.",
                  "parameterOrder": [
                    "parent"
                  ],
                  "parameters": {
                    "pageSize": {
                      "type": "integer",
                      "location": "query",
                      "description": "Optional. The maximum number of `Chunk`s to return (per page). The service may return fewer `Chunk`s. If unspecified, at most 10 `Chunk`s will be returned. The maximum size limit is 100 `Chunk`s per page.",
                      "format": "int32"
                    },
                    "pageToken": {
                      "type": "string",
                      "location": "query",
                      "description": "Optional. A page token, received from a previous `ListChunks` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListChunks` must match the call that provided the page token."
                    },
                    "parent": {
                      "pattern": "^corpora/[^/]+/documents/[^/]+$",
                      "required": true,
                      "type": "string",
                      "description": "Required. The name of the `Document` containing `Chunk`s. Example: `corpora/my-corpus-123/documents/the-doc-abc`",
                      "location": "path"
                    }
                  },
                  "httpMethod": "GET",
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks",
                  "response": {
                    "$ref": "ListChunksResponse"
                  },
                  "path": "v1beta/{+parent}/chunks",
                  "id": "generativelanguage.corpora.documents.chunks.list"
                },
                "batchCreate": {
                  "id": "generativelanguage.corpora.documents.chunks.batchCreate",
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks:batchCreate",
                  "path": "v1beta/{+parent}/chunks:batchCreate",
                  "parameters": {
                    "parent": {
                      "required": true,
                      "pattern": "^corpora/[^/]+/documents/[^/]+$",
                      "location": "path",
                      "type": "string",
                      "description": "Optional. The name of the `Document` where this batch of `Chunk`s will be created. The parent field in every `CreateChunkRequest` must match this value. Example: `corpora/my-corpus-123/documents/the-doc-abc`"
                    }
                  },
                  "description": "Batch create `Chunk`s.",
                  "httpMethod": "POST",
                  "parameterOrder": [
                    "parent"
                  ],
                  "response": {
                    "$ref": "BatchCreateChunksResponse"
                  },
                  "request": {
                    "$ref": "BatchCreateChunksRequest"
                  }
                },
                "batchUpdate": {
                  "description": "Batch update `Chunk`s.",
                  "request": {
                    "$ref": "BatchUpdateChunksRequest"
                  },
                  "path": "v1beta/{+parent}/chunks:batchUpdate",
                  "parameterOrder": [
                    "parent"
                  ],
                  "httpMethod": "POST",
                  "id": "generativelanguage.corpora.documents.chunks.batchUpdate",
                  "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}/chunks:batchUpdate",
                  "response": {
                    "$ref": "BatchUpdateChunksResponse"
                  },
                  "parameters": {
                    "parent": {
                      "required": true,
                      "pattern": "^corpora/[^/]+/documents/[^/]+$",
                      "description": "Optional. The name of the `Document` containing the `Chunk`s to update. The parent field in every `UpdateChunkRequest` must match this value. Example: `corpora/my-corpus-123/documents/the-doc-abc`",
                      "type": "string",
                      "location": "path"
                    }
                  }
                }
              }
            }
          },
          "methods": {
            "get": {
              "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}",
              "id": "generativelanguage.corpora.documents.get",
              "parameters": {
                "name": {
                  "pattern": "^corpora/[^/]+/documents/[^/]+$",
                  "required": true,
                  "location": "path",
                  "description": "Required. The name of the `Document` to retrieve. Example: `corpora/my-corpus-123/documents/the-doc-abc`",
                  "type": "string"
                }
              },
              "httpMethod": "GET",
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "Document"
              },
              "path": "v1beta/{+name}",
              "description": "Gets information about a specific `Document`."
            },
            "delete": {
              "description": "Deletes a `Document`.",
              "id": "generativelanguage.corpora.documents.delete",
              "response": {
                "$ref": "Empty"
              },
              "parameterOrder": [
                "name"
              ],
              "path": "v1beta/{+name}",
              "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}",
              "parameters": {
                "force": {
                  "type": "boolean",
                  "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.",
                  "location": "query"
                },
                "name": {
                  "required": true,
                  "pattern": "^corpora/[^/]+/documents/[^/]+$",
                  "type": "string",
                  "location": "path",
                  "description": "Required. The resource name of the `Document` to delete. Example: `corpora/my-corpus-123/documents/the-doc-abc`"
                }
              },
              "httpMethod": "DELETE"
            },
            "patch": {
              "parameters": {
                "updateMask": {
                  "format": "google-fieldmask",
                  "type": "string",
                  "location": "query",
                  "description": "Required. The list of fields to update. Currently, this only supports updating `display_name` and `custom_metadata`."
                },
                "name": {
                  "type": "string",
                  "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"corpora/*/documents/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/{corpus_id}/documents/my-awesome-doc-123a456b789c`",
                  "required": true,
                  "location": "path",
                  "pattern": "^corpora/[^/]+/documents/[^/]+$"
                }
              },
              "parameterOrder": [
                "name"
              ],
              "description": "Updates a `Document`.",
              "request": {
                "$ref": "Document"
              },
              "response": {
                "$ref": "Document"
              },
              "path": "v1beta/{+name}",
              "id": "generativelanguage.corpora.documents.patch",
              "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}",
              "httpMethod": "PATCH"
            },
            "query": {
              "path": "v1beta/{+name}:query",
              "id": "generativelanguage.corpora.documents.query",
              "description": "Performs semantic search over a `Document`.",
              "parameters": {
                "name": {
                  "description": "Required. The name of the `Document` to query. Example: `corpora/my-corpus-123/documents/the-doc-abc`",
                  "location": "path",
                  "type": "string",
                  "pattern": "^corpora/[^/]+/documents/[^/]+$",
                  "required": true
                }
              },
              "request": {
                "$ref": "QueryDocumentRequest"
              },
              "httpMethod": "POST",
              "flatPath": "v1beta/corpora/{corporaId}/documents/{documentsId}:query",
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "QueryDocumentResponse"
              }
            },
            "list": {
              "parameters": {
                "pageToken": {
                  "type": "string",
                  "location": "query",
                  "description": "Optional. A page token, received from a previous `ListDocuments` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListDocuments` must match the call that provided the page token."
                },
                "pageSize": {
                  "type": "integer",
                  "description": "Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page.",
                  "location": "query",
                  "format": "int32"
                },
                "parent": {
                  "required": true,
                  "pattern": "^corpora/[^/]+$",
                  "description": "Required. The name of the `Corpus` containing `Document`s. Example: `corpora/my-corpus-123`",
                  "location": "path",
                  "type": "string"
                }
              },
              "description": "Lists all `Document`s in a `Corpus`.",
              "response": {
                "$ref": "ListDocumentsResponse"
              },
              "parameterOrder": [
                "parent"
              ],
              "flatPath": "v1beta/corpora/{corporaId}/documents",
              "httpMethod": "GET",
              "id": "generativelanguage.corpora.documents.list",
              "path": "v1beta/{+parent}/documents"
            },
            "create": {
              "httpMethod": "POST",
              "flatPath": "v1beta/corpora/{corporaId}/documents",
              "request": {
                "$ref": "Document"
              },
              "path": "v1beta/{+parent}/documents",
              "parameters": {
                "parent": {
                  "pattern": "^corpora/[^/]+$",
                  "required": true,
                  "type": "string",
                  "location": "path",
                  "description": "Required. The name of the `Corpus` where this `Document` will be created. Example: `corpora/my-corpus-123`"
                }
              },
              "description": "Creates an empty `Document`.",
              "id": "generativelanguage.corpora.documents.create",
              "response": {
                "$ref": "Document"
              },
              "parameterOrder": [
                "parent"
              ]
            }
          }
        },
        "permissions": {
          "methods": {
            "create": {
              "parameterOrder": [
                "parent"
              ],
              "path": "v1beta/{+parent}/permissions",
              "flatPath": "v1beta/corpora/{corporaId}/permissions",
              "response": {
                "$ref": "Permission"
              },
              "description": "Create a permission to a specific resource.",
              "parameters": {
                "parent": {
                  "required": true,
                  "pattern": "^corpora/[^/]+$",
                  "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "location": "path",
                  "type": "string"
                }
              },
              "httpMethod": "POST",
              "id": "generativelanguage.corpora.permissions.create",
              "request": {
                "$ref": "Permission"
              }
            },
            "get": {
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "parameters": {
                "name": {
                  "location": "path",
                  "required": true,
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "type": "string"
                }
              },
              "response": {
                "$ref": "Permission"
              },
              "path": "v1beta/{+name}",
              "id": "generativelanguage.corpora.permissions.get",
              "httpMethod": "GET",
              "description": "Gets information about a specific Permission.",
              "parameterOrder": [
                "name"
              ]
            },
            "patch": {
              "path": "v1beta/{+name}",
              "id": "generativelanguage.corpora.permissions.patch",
              "httpMethod": "PATCH",
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "parameters": {
                "name": {
                  "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",
                  "type": "string",
                  "required": true,
                  "location": "path",
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$"
                },
                "updateMask": {
                  "format": "google-fieldmask",
                  "type": "string",
                  "location": "query",
                  "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)"
                }
              },
              "request": {
                "$ref": "Permission"
              },
              "response": {
                "$ref": "Permission"
              },
              "parameterOrder": [
                "name"
              ],
              "description": "Updates the permission."
            },
            "list": {
              "parameters": {
                "parent": {
                  "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "required": true,
                  "location": "path",
                  "type": "string",
                  "pattern": "^corpora/[^/]+$"
                },
                "pageToken": {
                  "type": "string",
                  "location": "query",
                  "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token."
                },
                "pageSize": {
                  "location": "query",
                  "type": "integer",
                  "format": "int32",
                  "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size."
                }
              },
              "httpMethod": "GET",
              "parameterOrder": [
                "parent"
              ],
              "response": {
                "$ref": "ListPermissionsResponse"
              },
              "path": "v1beta/{+parent}/permissions",
              "description": "Lists permissions for the specific resource.",
              "flatPath": "v1beta/corpora/{corporaId}/permissions",
              "id": "generativelanguage.corpora.permissions.list"
            },
            "delete": {
              "response": {
                "$ref": "Empty"
              },
              "httpMethod": "DELETE",
              "path": "v1beta/{+name}",
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "description": "Deletes the permission.",
              "id": "generativelanguage.corpora.permissions.delete",
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "required": true,
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$",
                  "type": "string",
                  "location": "path"
                }
              }
            }
          }
        }
      },
      "methods": {
        "create": {
          "response": {
            "$ref": "Corpus"
          },
          "httpMethod": "POST",
          "parameters": {},
          "path": "v1beta/corpora",
          "description": "Creates an empty `Corpus`.",
          "request": {
            "$ref": "Corpus"
          },
          "flatPath": "v1beta/corpora",
          "id": "generativelanguage.corpora.create",
          "parameterOrder": []
        },
        "list": {
          "flatPath": "v1beta/corpora",
          "id": "generativelanguage.corpora.list",
          "httpMethod": "GET",
          "parameterOrder": [],
          "response": {
            "$ref": "ListCorporaResponse"
          },
          "description": "Lists all `Corpora` owned by the user.",
          "path": "v1beta/corpora",
          "parameters": {
            "pageToken": {
              "description": "Optional. A page token, received from a previous `ListCorpora` call. Provide the `next_page_token` returned in the response as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListCorpora` must match the call that provided the page token.",
              "location": "query",
              "type": "string"
            },
            "pageSize": {
              "format": "int32",
              "type": "integer",
              "location": "query",
              "description": "Optional. The maximum number of `Corpora` to return (per page). The service may return fewer `Corpora`. If unspecified, at most 10 `Corpora` will be returned. The maximum size limit is 20 `Corpora` per page."
            }
          }
        },
        "get": {
          "parameters": {
            "name": {
              "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`",
              "required": true,
              "type": "string",
              "pattern": "^corpora/[^/]+$",
              "location": "path"
            }
          },
          "response": {
            "$ref": "Corpus"
          },
          "httpMethod": "GET",
          "id": "generativelanguage.corpora.get",
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "flatPath": "v1beta/corpora/{corporaId}",
          "description": "Gets information about a specific `Corpus`."
        },
        "query": {
          "parameters": {
            "name": {
              "required": true,
              "pattern": "^corpora/[^/]+$",
              "type": "string",
              "description": "Required. The name of the `Corpus` to query. Example: `corpora/my-corpus-123`",
              "location": "path"
            }
          },
          "description": "Performs semantic search over a `Corpus`.",
          "httpMethod": "POST",
          "path": "v1beta/{+name}:query",
          "flatPath": "v1beta/corpora/{corporaId}:query",
          "id": "generativelanguage.corpora.query",
          "parameterOrder": [
            "name"
          ],
          "request": {
            "$ref": "QueryCorpusRequest"
          },
          "response": {
            "$ref": "QueryCorpusResponse"
          }
        },
        "delete": {
          "parameters": {
            "force": {
              "location": "query",
              "type": "boolean",
              "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."
            },
            "name": {
              "pattern": "^corpora/[^/]+$",
              "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`",
              "type": "string",
              "required": true,
              "location": "path"
            }
          },
          "id": "generativelanguage.corpora.delete",
          "flatPath": "v1beta/corpora/{corporaId}",
          "response": {
            "$ref": "Empty"
          },
          "parameterOrder": [
            "name"
          ],
          "description": "Deletes a `Corpus`.",
          "path": "v1beta/{+name}",
          "httpMethod": "DELETE"
        },
        "patch": {
          "path": "v1beta/{+name}",
          "id": "generativelanguage.corpora.patch",
          "parameters": {
            "name": {
              "description": "Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the \"corpora/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`",
              "location": "path",
              "pattern": "^corpora/[^/]+$",
              "required": true,
              "type": "string"
            },
            "updateMask": {
              "description": "Required. The list of fields to update. Currently, this only supports updating `display_name`.",
              "format": "google-fieldmask",
              "location": "query",
              "type": "string"
            }
          },
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "PATCH",
          "flatPath": "v1beta/corpora/{corporaId}",
          "request": {
            "$ref": "Corpus"
          },
          "response": {
            "$ref": "Corpus"
          },
          "description": "Updates a `Corpus`."
        }
      }
    },
    "media": {
      "methods": {
        "upload": {
          "path": "v1beta/files",
          "supportsMediaUpload": true,
          "description": "Creates a `File`.",
          "httpMethod": "POST",
          "id": "generativelanguage.media.upload",
          "mediaUpload": {
            "protocols": {
              "resumable": {
                "multipart": true,
                "path": "/resumable/upload/v1beta/files"
              },
              "simple": {
                "path": "/upload/v1beta/files",
                "multipart": true
              }
            },
            "maxSize": "2147483648",
            "accept": [
              "*/*"
            ]
          },
          "parameterOrder": [],
          "response": {
            "$ref": "CreateFileResponse"
          },
          "parameters": {},
          "request": {
            "$ref": "CreateFileRequest"
          },
          "flatPath": "v1beta/files"
        }
      }
    },
    "models": {
      "methods": {
        "embedContent": {
          "request": {
            "$ref": "EmbedContentRequest"
          },
          "description": "Generates an embedding from the model given an input `Content`.",
          "parameterOrder": [
            "model"
          ],
          "flatPath": "v1beta/models/{modelsId}:embedContent",
          "id": "generativelanguage.models.embedContent",
          "path": "v1beta/{+model}:embedContent",
          "parameters": {
            "model": {
              "required": true,
              "location": "path",
              "type": "string",
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "pattern": "^models/[^/]+$"
            }
          },
          "response": {
            "$ref": "EmbedContentResponse"
          },
          "httpMethod": "POST"
        },
        "countMessageTokens": {
          "parameterOrder": [
            "model"
          ],
          "description": "Runs a model's tokenizer on a string and returns the token count.",
          "request": {
            "$ref": "CountMessageTokensRequest"
          },
          "response": {
            "$ref": "CountMessageTokensResponse"
          },
          "flatPath": "v1beta/models/{modelsId}:countMessageTokens",
          "httpMethod": "POST",
          "id": "generativelanguage.models.countMessageTokens",
          "parameters": {
            "model": {
              "location": "path",
              "type": "string",
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "pattern": "^models/[^/]+$",
              "required": true
            }
          },
          "path": "v1beta/{+model}:countMessageTokens"
        },
        "batchEmbedContents": {
          "path": "v1beta/{+model}:batchEmbedContents",
          "httpMethod": "POST",
          "response": {
            "$ref": "BatchEmbedContentsResponse"
          },
          "parameters": {
            "model": {
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "pattern": "^models/[^/]+$",
              "required": true,
              "type": "string",
              "location": "path"
            }
          },
          "request": {
            "$ref": "BatchEmbedContentsRequest"
          },
          "flatPath": "v1beta/models/{modelsId}:batchEmbedContents",
          "id": "generativelanguage.models.batchEmbedContents",
          "description": "Generates multiple embeddings from the model given input text in a synchronous call.",
          "parameterOrder": [
            "model"
          ]
        },
        "streamGenerateContent": {
          "parameters": {
            "model": {
              "pattern": "^models/[^/]+$",
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `name=models/{model}`.",
              "location": "path",
              "type": "string"
            }
          },
          "path": "v1beta/{+model}:streamGenerateContent",
          "httpMethod": "POST",
          "parameterOrder": [
            "model"
          ],
          "description": "Generates a streamed response from the model given an input `GenerateContentRequest`.",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "flatPath": "v1beta/models/{modelsId}:streamGenerateContent",
          "id": "generativelanguage.models.streamGenerateContent",
          "response": {
            "$ref": "GenerateContentResponse"
          }
        },
        "generateMessage": {
          "description": "Generates a response from the model given an input `MessagePrompt`.",
          "response": {
            "$ref": "GenerateMessageResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "id": "generativelanguage.models.generateMessage",
          "path": "v1beta/{+model}:generateMessage",
          "flatPath": "v1beta/models/{modelsId}:generateMessage",
          "parameters": {
            "model": {
              "description": "Required. The name of the model to use. Format: `name=models/{model}`.",
              "type": "string",
              "required": true,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "httpMethod": "POST",
          "request": {
            "$ref": "GenerateMessageRequest"
          }
        },
        "generateContent": {
          "httpMethod": "POST",
          "path": "v1beta/{+model}:generateContent",
          "flatPath": "v1beta/models/{modelsId}:generateContent",
          "id": "generativelanguage.models.generateContent",
          "parameters": {
            "model": {
              "type": "string",
              "pattern": "^models/[^/]+$",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `name=models/{model}`.",
              "required": true,
              "location": "path"
            }
          },
          "description": "Generates a response from the model given an input `GenerateContentRequest`. Input capabilities differ between models, including tuned models. See the [model guide](https://ai.google.dev/models/gemini) and [tuning guide](https://ai.google.dev/docs/model_tuning_guidance) for details.",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "request": {
            "$ref": "GenerateContentRequest"
          }
        },
        "batchEmbedText": {
          "request": {
            "$ref": "BatchEmbedTextRequest"
          },
          "id": "generativelanguage.models.batchEmbedText",
          "parameters": {
            "model": {
              "location": "path",
              "required": true,
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the embedding. Examples: models/embedding-gecko-001",
              "pattern": "^models/[^/]+$"
            }
          },
          "parameterOrder": [
            "model"
          ],
          "path": "v1beta/{+model}:batchEmbedText",
          "description": "Generates multiple embeddings from the model given input text in a synchronous call.",
          "httpMethod": "POST",
          "flatPath": "v1beta/models/{modelsId}:batchEmbedText",
          "response": {
            "$ref": "BatchEmbedTextResponse"
          }
        },
        "countTextTokens": {
          "parameters": {
            "model": {
              "location": "path",
              "required": true,
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "type": "string",
              "pattern": "^models/[^/]+$"
            }
          },
          "description": "Runs a model's tokenizer on a text and returns the token count.",
          "path": "v1beta/{+model}:countTextTokens",
          "httpMethod": "POST",
          "id": "generativelanguage.models.countTextTokens",
          "response": {
            "$ref": "CountTextTokensResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "flatPath": "v1beta/models/{modelsId}:countTextTokens",
          "request": {
            "$ref": "CountTextTokensRequest"
          }
        },
        "get": {
          "description": "Gets information about a specific Model.",
          "parameters": {
            "name": {
              "pattern": "^models/[^/]+$",
              "required": true,
              "location": "path",
              "description": "Required. The resource name of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "type": "string"
            }
          },
          "path": "v1beta/{+name}",
          "id": "generativelanguage.models.get",
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "GET",
          "flatPath": "v1beta/models/{modelsId}",
          "response": {
            "$ref": "Model"
          }
        },
        "embedText": {
          "parameterOrder": [
            "model"
          ],
          "id": "generativelanguage.models.embedText",
          "description": "Generates an embedding from the model given an input message.",
          "flatPath": "v1beta/models/{modelsId}:embedText",
          "parameters": {
            "model": {
              "pattern": "^models/[^/]+$",
              "required": true,
              "location": "path",
              "description": "Required. The model name to use with the format model=models/{model}.",
              "type": "string"
            }
          },
          "request": {
            "$ref": "EmbedTextRequest"
          },
          "path": "v1beta/{+model}:embedText",
          "httpMethod": "POST",
          "response": {
            "$ref": "EmbedTextResponse"
          }
        },
        "generateAnswer": {
          "id": "generativelanguage.models.generateAnswer",
          "request": {
            "$ref": "GenerateAnswerRequest"
          },
          "flatPath": "v1beta/models/{modelsId}:generateAnswer",
          "response": {
            "$ref": "GenerateAnswerResponse"
          },
          "httpMethod": "POST",
          "description": "Generates a grounded answer from the model given an input `GenerateAnswerRequest`.",
          "path": "v1beta/{+model}:generateAnswer",
          "parameters": {
            "model": {
              "location": "path",
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the grounded response. Format: `model=models/{model}`.",
              "required": true,
              "pattern": "^models/[^/]+$"
            }
          },
          "parameterOrder": [
            "model"
          ]
        },
        "list": {
          "description": "Lists models available through the API.",
          "flatPath": "v1beta/models",
          "parameterOrder": [],
          "httpMethod": "GET",
          "path": "v1beta/models",
          "response": {
            "$ref": "ListModelsResponse"
          },
          "parameters": {
            "pageToken": {
              "type": "string",
              "description": "A page token, received from a previous `ListModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.",
              "location": "query"
            },
            "pageSize": {
              "description": "The maximum number of `Models` to return (per page). The service may return fewer models. If unspecified, at most 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.",
              "location": "query",
              "type": "integer",
              "format": "int32"
            }
          },
          "id": "generativelanguage.models.list"
        },
        "generateText": {
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "GenerateTextResponse"
          },
          "httpMethod": "POST",
          "request": {
            "$ref": "GenerateTextRequest"
          },
          "flatPath": "v1beta/models/{modelsId}:generateText",
          "path": "v1beta/{+model}:generateText",
          "description": "Generates a response from the model given an input message.",
          "id": "generativelanguage.models.generateText",
          "parameters": {
            "model": {
              "type": "string",
              "location": "path",
              "pattern": "^models/[^/]+$",
              "description": "Required. The name of the `Model` or `TunedModel` to use for generating the completion. Examples: models/text-bison-001 tunedModels/sentence-translator-u3b7m",
              "required": true
            }
          }
        },
        "countTokens": {
          "path": "v1beta/{+model}:countTokens",
          "httpMethod": "POST",
          "flatPath": "v1beta/models/{modelsId}:countTokens",
          "parameterOrder": [
            "model"
          ],
          "request": {
            "$ref": "CountTokensRequest"
          },
          "response": {
            "$ref": "CountTokensResponse"
          },
          "id": "generativelanguage.models.countTokens",
          "parameters": {
            "model": {
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "required": true,
              "location": "path",
              "pattern": "^models/[^/]+$",
              "type": "string"
            }
          },
          "description": "Runs a model's tokenizer on input content and returns the token count."
        }
      }
    },
    "tunedModels": {
      "methods": {
        "list": {
          "id": "generativelanguage.tunedModels.list",
          "httpMethod": "GET",
          "response": {
            "$ref": "ListTunedModelsResponse"
          },
          "parameters": {
            "pageSize": {
              "type": "integer",
              "format": "int32",
              "description": "Optional. The maximum number of `TunedModels` to return (per page). The service may return fewer tuned models. If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger page_size.",
              "location": "query"
            },
            "pageToken": {
              "location": "query",
              "description": "Optional. A page token, received from a previous `ListTunedModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.",
              "type": "string"
            },
            "filter": {
              "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",
              "type": "string",
              "location": "query"
            }
          },
          "parameterOrder": [],
          "description": "Lists tuned models owned by the user.",
          "flatPath": "v1beta/tunedModels",
          "path": "v1beta/tunedModels"
        },
        "transferOwnership": {
          "httpMethod": "POST",
          "description": "Transfers ownership of the tuned model. This is the only way to change ownership of the tuned model. The current owner will be downgraded to writer role.",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:transferOwnership",
          "path": "v1beta/{+name}:transferOwnership",
          "parameters": {
            "name": {
              "required": true,
              "type": "string",
              "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`",
              "location": "path",
              "pattern": "^tunedModels/[^/]+$"
            }
          },
          "request": {
            "$ref": "TransferOwnershipRequest"
          },
          "parameterOrder": [
            "name"
          ],
          "id": "generativelanguage.tunedModels.transferOwnership",
          "response": {
            "$ref": "TransferOwnershipResponse"
          }
        },
        "delete": {
          "httpMethod": "DELETE",
          "parameterOrder": [
            "name"
          ],
          "path": "v1beta/{+name}",
          "id": "generativelanguage.tunedModels.delete",
          "parameters": {
            "name": {
              "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`",
              "required": true,
              "location": "path",
              "pattern": "^tunedModels/[^/]+$",
              "type": "string"
            }
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "response": {
            "$ref": "Empty"
          },
          "description": "Deletes a tuned model."
        },
        "patch": {
          "description": "Updates a tuned model.",
          "parameters": {
            "updateMask": {
              "type": "string",
              "description": "Required. The list of fields to update.",
              "format": "google-fieldmask",
              "location": "query"
            },
            "name": {
              "pattern": "^tunedModels/[^/]+$",
              "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: display_name = \"Sentence Translator\" name = \"tunedModels/sentence-translator-u3b7m\"",
              "location": "path",
              "type": "string",
              "required": true
            }
          },
          "httpMethod": "PATCH",
          "path": "v1beta/{+name}",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "request": {
            "$ref": "TunedModel"
          },
          "response": {
            "$ref": "TunedModel"
          },
          "id": "generativelanguage.tunedModels.patch",
          "parameterOrder": [
            "name"
          ]
        },
        "generateContent": {
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "description": "Generates a response from the model given an input `GenerateContentRequest`. Input capabilities differ between models, including tuned models. See the [model guide](https://ai.google.dev/models/gemini) and [tuning guide](https://ai.google.dev/docs/model_tuning_guidance) for details.",
          "parameterOrder": [
            "model"
          ],
          "path": "v1beta/{+model}:generateContent",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateContent",
          "id": "generativelanguage.tunedModels.generateContent",
          "httpMethod": "POST",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "parameters": {
            "model": {
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `name=models/{model}`.",
              "location": "path",
              "type": "string",
              "required": true,
              "pattern": "^tunedModels/[^/]+$"
            }
          }
        },
        "get": {
          "response": {
            "$ref": "TunedModel"
          },
          "httpMethod": "GET",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "path": "v1beta/{+name}",
          "parameters": {
            "name": {
              "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`",
              "type": "string",
              "required": true,
              "location": "path",
              "pattern": "^tunedModels/[^/]+$"
            }
          },
          "id": "generativelanguage.tunedModels.get",
          "parameterOrder": [
            "name"
          ],
          "description": "Gets information about a specific TunedModel."
        },
        "generateText": {
          "id": "generativelanguage.tunedModels.generateText",
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "description": "Generates a response from the model given an input message.",
          "path": "v1beta/{+model}:generateText",
          "response": {
            "$ref": "GenerateTextResponse"
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateText",
          "parameters": {
            "model": {
              "type": "string",
              "description": "Required. The name of the `Model` or `TunedModel` to use for generating the completion. Examples: models/text-bison-001 tunedModels/sentence-translator-u3b7m",
              "location": "path",
              "pattern": "^tunedModels/[^/]+$",
              "required": true
            }
          },
          "request": {
            "$ref": "GenerateTextRequest"
          }
        },
        "create": {
          "httpMethod": "POST",
          "path": "v1beta/tunedModels",
          "description": "Creates a tuned model. Intermediate tuning progress (if any) is accessed through the [google.longrunning.Operations] service. Status and results can be accessed through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222",
          "parameterOrder": [],
          "id": "generativelanguage.tunedModels.create",
          "parameters": {
            "tunedModelId": {
              "description": "Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: [a-z]([a-z0-9-]{0,38}[a-z0-9])?.",
              "location": "query",
              "type": "string"
            }
          },
          "request": {
            "$ref": "TunedModel"
          },
          "flatPath": "v1beta/tunedModels",
          "response": {
            "$ref": "Operation"
          }
        }
      },
      "resources": {
        "permissions": {
          "methods": {
            "delete": {
              "parameters": {
                "name": {
                  "required": true,
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",
                  "type": "string",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "location": "path"
                }
              },
              "description": "Deletes the permission.",
              "response": {
                "$ref": "Empty"
              },
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "id": "generativelanguage.tunedModels.permissions.delete",
              "httpMethod": "DELETE",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}"
            },
            "create": {
              "parameterOrder": [
                "parent"
              ],
              "description": "Create a permission to a specific resource.",
              "response": {
                "$ref": "Permission"
              },
              "request": {
                "$ref": "Permission"
              },
              "path": "v1beta/{+parent}/permissions",
              "parameters": {
                "parent": {
                  "type": "string",
                  "pattern": "^tunedModels/[^/]+$",
                  "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "required": true,
                  "location": "path"
                }
              },
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions",
              "httpMethod": "POST",
              "id": "generativelanguage.tunedModels.permissions.create"
            },
            "patch": {
              "parameterOrder": [
                "name"
              ],
              "request": {
                "$ref": "Permission"
              },
              "path": "v1beta/{+name}",
              "description": "Updates the permission.",
              "response": {
                "$ref": "Permission"
              },
              "id": "generativelanguage.tunedModels.permissions.patch",
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",
                  "required": true,
                  "location": "path"
                },
                "updateMask": {
                  "type": "string",
                  "format": "google-fieldmask",
                  "location": "query",
                  "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)"
                }
              },
              "httpMethod": "PATCH",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}"
            },
            "list": {
              "path": "v1beta/{+parent}/permissions",
              "parameterOrder": [
                "parent"
              ],
              "response": {
                "$ref": "ListPermissionsResponse"
              },
              "id": "generativelanguage.tunedModels.permissions.list",
              "description": "Lists permissions for the specific resource.",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions",
              "parameters": {
                "pageSize": {
                  "type": "integer",
                  "location": "query",
                  "format": "int32",
                  "description": "Optional. The maximum number of `Permission`s to return (per page). The service may return fewer permissions. If unspecified, at most 10 permissions will be returned. This method returns at most 1000 permissions per page, even if you pass larger page_size."
                },
                "parent": {
                  "pattern": "^tunedModels/[^/]+$",
                  "location": "path",
                  "type": "string",
                  "required": true,
                  "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`"
                },
                "pageToken": {
                  "location": "query",
                  "description": "Optional. A page token, received from a previous `ListPermissions` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListPermissions` must match the call that provided the page token.",
                  "type": "string"
                }
              },
              "httpMethod": "GET"
            },
            "get": {
              "response": {
                "$ref": "Permission"
              },
              "description": "Gets information about a specific Permission.",
              "httpMethod": "GET",
              "path": "v1beta/{+name}",
              "id": "generativelanguage.tunedModels.permissions.get",
              "parameters": {
                "name": {
                  "location": "path",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "required": true,
                  "type": "string",
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$"
                }
              },
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",
              "parameterOrder": [
                "name"
              ]
            }
          }
        }
      }
    },
    "files": {
      "methods": {
        "get": {
          "httpMethod": "GET",
          "path": "v1beta/{+name}",
          "id": "generativelanguage.files.get",
          "flatPath": "v1beta/files/{filesId}",
          "description": "Gets the metadata for the given `File`.",
          "parameters": {
            "name": {
              "pattern": "^files/[^/]+$",
              "required": true,
              "type": "string",
              "description": "Required. The name of the `File` to get. Example: `files/abc-123`",
              "location": "path"
            }
          },
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "File"
          }
        },
        "delete": {
          "description": "Deletes the `File`.",
          "id": "generativelanguage.files.delete",
          "flatPath": "v1beta/files/{filesId}",
          "response": {
            "$ref": "Empty"
          },
          "parameterOrder": [
            "name"
          ],
          "path": "v1beta/{+name}",
          "parameters": {
            "name": {
              "type": "string",
              "description": "Required. The name of the `File` to delete. Example: `files/abc-123`",
              "pattern": "^files/[^/]+$",
              "required": true,
              "location": "path"
            }
          },
          "httpMethod": "DELETE"
        },
        "list": {
          "path": "v1beta/files",
          "description": "Lists the metadata for `File`s owned by the requesting project.",
          "httpMethod": "GET",
          "response": {
            "$ref": "ListFilesResponse"
          },
          "flatPath": "v1beta/files",
          "parameterOrder": [],
          "id": "generativelanguage.files.list",
          "parameters": {
            "pageSize": {
              "type": "integer",
              "format": "int32",
              "description": "Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.",
              "location": "query"
            },
            "pageToken": {
              "type": "string",
              "description": "Optional. A page token from a previous `ListFiles` call.",
              "location": "query"
            }
          }
        }
      }
    }
  },
  "revision": "20240713",
  "ownerDomain": "google.com",
  "title": "Generative Language API",
  "documentationLink": "https://developers.generativeai.google/api",
  "rootUrl": "https://generativelanguage.googleapis.com/",
  "kind": "discovery#restDescription",
  "servicePath": "",
  "schemas": {
    "FunctionCall": {
      "type": "object",
      "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
      "id": "FunctionCall",
      "properties": {
        "name": {
          "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63.",
          "type": "string"
        },
        "args": {
          "type": "object",
          "description": "Optional. The function parameters and values in JSON object format.",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        }
      }
    },
    "Condition": {
      "type": "object",
      "id": "Condition",
      "properties": {
        "operation": {
          "type": "string",
          "description": "Required. Operator applied to the given key-value pair to trigger the condition.",
          "enum": [
            "OPERATOR_UNSPECIFIED",
            "LESS",
            "LESS_EQUAL",
            "EQUAL",
            "GREATER_EQUAL",
            "GREATER",
            "NOT_EQUAL",
            "INCLUDES",
            "EXCLUDES"
          ],
          "enumDescriptions": [
            "The default value. This value is unused.",
            "Supported by numeric.",
            "Supported by numeric.",
            "Supported by numeric & string.",
            "Supported by numeric.",
            "Supported by numeric.",
            "Supported by numeric & string.",
            "Supported by string only when `CustomMetadata` value type for the given key has a `string_list_value`.",
            "Supported by string only when `CustomMetadata` value type for the given key has a `string_list_value`."
          ]
        },
        "stringValue": {
          "type": "string",
          "description": "The string value to filter the metadata on."
        },
        "numericValue": {
          "type": "number",
          "format": "float",
          "description": "The numeric value to filter the metadata on."
        }
      },
      "description": "Filter condition applicable to a single key."
    },
    "Message": {
      "properties": {
        "citationMetadata": {
          "readOnly": true,
          "$ref": "CitationMetadata",
          "description": "Output only. Citation information for model-generated `content` in this `Message`. If this `Message` was generated as output from the model, this field may be populated with attribution information for any text included in the `content`. This field is used only on output."
        },
        "author": {
          "description": "Optional. The author of this Message. This serves as a key for tagging the content of this Message when it is fed to the model as text. The author can be any alphanumeric string.",
          "type": "string"
        },
        "content": {
          "type": "string",
          "description": "Required. The text content of the structured `Message`."
        }
      },
      "id": "Message",
      "type": "object",
      "description": "The base unit of structured text. A `Message` includes an `author` and the `content` of the `Message`. The `author` is used to tag messages when they are fed to the model as text."
    },
    "GenerateContentResponse": {
      "id": "GenerateContentResponse",
      "type": "object",
      "properties": {
        "usageMetadata": {
          "$ref": "UsageMetadata",
          "readOnly": true,
          "description": "Output only. Metadata on the generation requests' token usage."
        },
        "promptFeedback": {
          "$ref": "PromptFeedback",
          "description": "Returns the prompt's feedback related to the content filters."
        },
        "candidates": {
          "description": "Candidate responses from the model.",
          "items": {
            "$ref": "Candidate"
          },
          "type": "array"
        }
      },
      "description": "Response from the model supporting multiple candidates. Note on safety ratings and content filtering. They are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API contract is that: - either all requested candidates are returned or no candidates at all - no candidates are returned only if there was something wrong with the prompt (see `prompt_feedback`) - feedback on each candidate is reported on `finish_reason` and `safety_ratings`."
    },
    "QueryDocumentRequest": {
      "properties": {
        "metadataFilters": {
          "description": "Optional. Filter for `Chunk` metadata. Each `MetadataFilter` object should correspond to a unique key. Multiple `MetadataFilter` objects are joined by logical \"AND\"s. Note: `Document`-level filtering is not supported for this request because a `Document` name is already specified. Example query: (year \u003e= 2020 OR year \u003c 2010) AND (genre = drama OR genre = action) `MetadataFilter` object list: metadata_filters = [ {key = \"chunk.custom_metadata.year\" conditions = [{int_value = 2020, operation = GREATER_EQUAL}, {int_value = 2010, operation = LESS}}, {key = \"chunk.custom_metadata.genre\" conditions = [{string_value = \"drama\", operation = EQUAL}, {string_value = \"action\", operation = EQUAL}}] Example query for a numeric range of values: (year \u003e 2015 AND year \u003c= 2020) `MetadataFilter` object list: metadata_filters = [ {key = \"chunk.custom_metadata.year\" conditions = [{int_value = 2015, operation = GREATER}]}, {key = \"chunk.custom_metadata.year\" conditions = [{int_value = 2020, operation = LESS_EQUAL}]}] Note: \"AND\"s for the same key are only supported for numeric values. String values only support \"OR\"s for the same key.",
          "items": {
            "$ref": "MetadataFilter"
          },
          "type": "array"
        },
        "resultsCount": {
          "type": "integer",
          "description": "Optional. The maximum number of `Chunk`s to return. The service may return fewer `Chunk`s. If unspecified, at most 10 `Chunk`s will be returned. The maximum specified result count is 100.",
          "format": "int32"
        },
        "query": {
          "description": "Required. Query string to perform semantic search.",
          "type": "string"
        }
      },
      "id": "QueryDocumentRequest",
      "description": "Request for querying a `Document`.",
      "type": "object"
    },
    "CitationMetadata": {
      "properties": {
        "citationSources": {
          "type": "array",
          "description": "Citations to sources for a specific response.",
          "items": {
            "$ref": "CitationSource"
          }
        }
      },
      "type": "object",
      "description": "A collection of source attributions for a piece of content.",
      "id": "CitationMetadata"
    },
    "BatchDeleteChunksRequest": {
      "properties": {
        "requests": {
          "type": "array",
          "description": "Required. The request messages specifying the `Chunk`s to delete.",
          "items": {
            "$ref": "DeleteChunkRequest"
          }
        }
      },
      "description": "Request to batch delete `Chunk`s.",
      "type": "object",
      "id": "BatchDeleteChunksRequest"
    },
    "SafetyRating": {
      "properties": {
        "blocked": {
          "type": "boolean",
          "description": "Was this content blocked because of this rating?"
        },
        "category": {
          "type": "string",
          "enumDescriptions": [
            "Category is unspecified.",
            "Negative or harmful comments targeting identity and/or protected attribute.",
            "Content that is rude, disrespectful, or profane.",
            "Describes scenarios depicting violence against an individual or group, or general descriptions of gore.",
            "Contains references to sexual acts or other lewd content.",
            "Promotes unchecked medical advice.",
            "Dangerous content that promotes, facilitates, or encourages harmful acts.",
            "Harasment content.",
            "Hate speech and content.",
            "Sexually explicit content.",
            "Dangerous content."
          ],
          "description": "Required. The category for this rating.",
          "enum": [
            "HARM_CATEGORY_UNSPECIFIED",
            "HARM_CATEGORY_DEROGATORY",
            "HARM_CATEGORY_TOXICITY",
            "HARM_CATEGORY_VIOLENCE",
            "HARM_CATEGORY_SEXUAL",
            "HARM_CATEGORY_MEDICAL",
            "HARM_CATEGORY_DANGEROUS",
            "HARM_CATEGORY_HARASSMENT",
            "HARM_CATEGORY_HATE_SPEECH",
            "HARM_CATEGORY_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_DANGEROUS_CONTENT"
          ]
        },
        "probability": {
          "enumDescriptions": [
            "Probability is unspecified.",
            "Content has a negligible chance of being unsafe.",
            "Content has a low chance of being unsafe.",
            "Content has a medium chance of being unsafe.",
            "Content has a high chance of being unsafe."
          ],
          "description": "Required. The probability of harm for this content.",
          "enum": [
            "HARM_PROBABILITY_UNSPECIFIED",
            "NEGLIGIBLE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "type": "string"
        }
      },
      "description": "Safety rating for a piece of content. The safety rating contains the category of harm and the harm probability level in that category for a piece of content. Content is classified for safety across a number of harm categories and the probability of the harm classification is included here.",
      "id": "SafetyRating",
      "type": "object"
    },
    "FileData": {
      "description": "URI based data.",
      "id": "FileData",
      "type": "object",
      "properties": {
        "mimeType": {
          "description": "Optional. The IANA standard MIME type of the source data.",
          "type": "string"
        },
        "fileUri": {
          "type": "string",
          "description": "Required. URI."
        }
      }
    },
    "EmbedContentRequest": {
      "type": "object",
      "id": "EmbedContentRequest",
      "description": "Request containing the `Content` for the model to embed.",
      "properties": {
        "model": {
          "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
          "type": "string"
        },
        "taskType": {
          "type": "string",
          "description": "Optional. Optional task type for which the embeddings will be used. Can only be set for `models/embedding-001`.",
          "enumDescriptions": [
            "Unset value, which will default to one of the other enum values.",
            "Specifies the given text is a query in a search/retrieval setting.",
            "Specifies the given text is a document from the corpus being searched.",
            "Specifies the given text will be used for STS.",
            "Specifies that the given text will be classified.",
            "Specifies that the embeddings will be used for clustering.",
            "Specifies that the given text will be used for question answering.",
            "Specifies that the given text will be used for fact verification."
          ],
          "enum": [
            "TASK_TYPE_UNSPECIFIED",
            "RETRIEVAL_QUERY",
            "RETRIEVAL_DOCUMENT",
            "SEMANTIC_SIMILARITY",
            "CLASSIFICATION",
            "CLUSTERING",
            "QUESTION_ANSWERING",
            "FACT_VERIFICATION"
          ]
        },
        "outputDimensionality": {
          "format": "int32",
          "description": "Optional. Optional reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end. Supported by newer models since 2024, and the earlier model (`models/embedding-001`) cannot specify this value.",
          "type": "integer"
        },
        "content": {
          "$ref": "Content",
          "description": "Required. The content to embed. Only the `parts.text` fields will be counted."
        },
        "title": {
          "type": "string",
          "description": "Optional. An optional title for the text. Only applicable when TaskType is `RETRIEVAL_DOCUMENT`. Note: Specifying a `title` for `RETRIEVAL_DOCUMENT` provides better quality embeddings for retrieval."
        }
      }
    },
    "UsageMetadata": {
      "description": "Metadata on the generation request's token usage.",
      "properties": {
        "candidatesTokenCount": {
          "type": "integer",
          "description": "Total number of tokens across the generated candidates.",
          "format": "int32"
        },
        "cachedContentTokenCount": {
          "type": "integer",
          "format": "int32",
          "description": "Number of tokens in the cached part of the prompt, i.e. in the cached content."
        },
        "promptTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "Number of tokens in the prompt. When cached_content is set, this is still the total effective prompt size. I.e. this includes the number of tokens in the cached content."
        },
        "totalTokenCount": {
          "type": "integer",
          "description": "Total token count for the generation request (prompt + candidates).",
          "format": "int32"
        }
      },
      "id": "UsageMetadata",
      "type": "object"
    },
    "GroundingPassages": {
      "id": "GroundingPassages",
      "type": "object",
      "description": "A repeated list of passages.",
      "properties": {
        "passages": {
          "type": "array",
          "description": "List of passages.",
          "items": {
            "$ref": "GroundingPassage"
          }
        }
      }
    },
    "UpdateChunkRequest": {
      "description": "Request to update a `Chunk`.",
      "id": "UpdateChunkRequest",
      "type": "object",
      "properties": {
        "updateMask": {
          "format": "google-fieldmask",
          "description": "Required. The list of fields to update. Currently, this only supports updating `custom_metadata` and `data`.",
          "type": "string"
        },
        "chunk": {
          "$ref": "Chunk",
          "description": "Required. The `Chunk` to update."
        }
      }
    },
    "InputFeedback": {
      "description": "Feedback related to the input data used to answer the question, as opposed to model-generated response to the question.",
      "type": "object",
      "id": "InputFeedback",
      "properties": {
        "blockReason": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Input was blocked due to safety reasons. You can inspect `safety_ratings` to understand which safety category blocked it.",
            "Input was blocked due to other reasons."
          ],
          "type": "string",
          "enum": [
            "BLOCK_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER"
          ],
          "description": "Optional. If set, the input was blocked and no candidates are returned. Rephrase your input."
        },
        "safetyRatings": {
          "description": "Ratings for safety of the input. There is at most one rating per category.",
          "items": {
            "$ref": "SafetyRating"
          },
          "type": "array"
        }
      }
    },
    "TextCompletion": {
      "type": "object",
      "description": "Output text returned from a model.",
      "properties": {
        "citationMetadata": {
          "$ref": "CitationMetadata",
          "readOnly": true,
          "description": "Output only. Citation information for model-generated `output` in this `TextCompletion`. This field may be populated with attribution information for any text included in the `output`."
        },
        "output": {
          "description": "Output only. The generated text returned from the model.",
          "type": "string",
          "readOnly": true
        },
        "safetyRatings": {
          "description": "Ratings for the safety of a response. There is at most one rating per category.",
          "type": "array",
          "items": {
            "$ref": "SafetyRating"
          }
        }
      },
      "id": "TextCompletion"
    },
    "MessagePrompt": {
      "description": "All of the structured input text passed to the model as a prompt. A `MessagePrompt` contains a structured set of fields that provide context for the conversation, examples of user input/model output message pairs that prime the model to respond in different ways, and the conversation history or list of messages representing the alternating turns of the conversation between the user and the model.",
      "properties": {
        "messages": {
          "type": "array",
          "description": "Required. A snapshot of the recent conversation history sorted chronologically. Turns alternate between two authors. If the total input size exceeds the model's `input_token_limit` the input will be truncated: The oldest items will be dropped from `messages`.",
          "items": {
            "$ref": "Message"
          }
        },
        "examples": {
          "description": "Optional. Examples of what the model should generate. This includes both user input and the response that the model should emulate. These `examples` are treated identically to conversation messages except that they take precedence over the history in `messages`: If the total input size exceeds the model's `input_token_limit` the input will be truncated. Items will be dropped from `messages` before `examples`.",
          "items": {
            "$ref": "Example"
          },
          "type": "array"
        },
        "context": {
          "type": "string",
          "description": "Optional. Text that should be provided to the model first to ground the response. If not empty, this `context` will be given to the model first before the `examples` and `messages`. When using a `context` be sure to provide it with every request to maintain continuity. This field can be a description of your prompt to the model to help provide context and guide the responses. Examples: \"Translate the phrase from English to French.\" or \"Given a statement, classify the sentiment as happy, sad or neutral.\" Anything included in this field will take precedence over message history if the total input size exceeds the model's `input_token_limit` and the input request is truncated."
        }
      },
      "id": "MessagePrompt",
      "type": "object"
    },
    "QueryCorpusRequest": {
      "type": "object",
      "description": "Request for querying a `Corpus`.",
      "properties": {
        "query": {
          "description": "Required. Query string to perform semantic search.",
          "type": "string"
        },
        "metadataFilters": {
          "type": "array",
          "description": "Optional. Filter for `Chunk` and `Document` metadata. Each `MetadataFilter` object should correspond to a unique key. Multiple `MetadataFilter` objects are joined by logical \"AND\"s. Example query at document level: (year \u003e= 2020 OR year \u003c 2010) AND (genre = drama OR genre = action) `MetadataFilter` object list: metadata_filters = [ {key = \"document.custom_metadata.year\" conditions = [{int_value = 2020, operation = GREATER_EQUAL}, {int_value = 2010, operation = LESS}]}, {key = \"document.custom_metadata.year\" conditions = [{int_value = 2020, operation = GREATER_EQUAL}, {int_value = 2010, operation = LESS}]}, {key = \"document.custom_metadata.genre\" conditions = [{string_value = \"drama\", operation = EQUAL}, {string_value = \"action\", operation = EQUAL}]}] Example query at chunk level for a numeric range of values: (year \u003e 2015 AND year \u003c= 2020) `MetadataFilter` object list: metadata_filters = [ {key = \"chunk.custom_metadata.year\" conditions = [{int_value = 2015, operation = GREATER}]}, {key = \"chunk.custom_metadata.year\" conditions = [{int_value = 2020, operation = LESS_EQUAL}]}] Note: \"AND\"s for the same key are only supported for numeric values. String values only support \"OR\"s for the same key.",
          "items": {
            "$ref": "MetadataFilter"
          }
        },
        "resultsCount": {
          "description": "Optional. The maximum number of `Chunk`s to return. The service may return fewer `Chunk`s. If unspecified, at most 10 `Chunk`s will be returned. The maximum specified result count is 100.",
          "type": "integer",
          "format": "int32"
        }
      },
      "id": "QueryCorpusRequest"
    },
    "GenerateAnswerRequest": {
      "id": "GenerateAnswerRequest",
      "description": "Request to generate a grounded answer from the model.",
      "type": "object",
      "properties": {
        "safetySettings": {
          "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateAnswerRequest.contents` and `GenerateAnswerResponse.candidate`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT are supported.",
          "type": "array",
          "items": {
            "$ref": "SafetySetting"
          }
        },
        "temperature": {
          "description": "Optional. Controls the randomness of the output. Values can range from [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied and creative, while a value closer to 0.0 will typically result in more straightforward responses from the model. A low temperature (~0.2) is usually recommended for Attributed-Question-Answering use cases.",
          "format": "float",
          "type": "number"
        },
        "inlinePassages": {
          "$ref": "GroundingPassages",
          "description": "Passages provided inline with the request."
        },
        "semanticRetriever": {
          "description": "Content retrieved from resources created via the Semantic Retriever API.",
          "$ref": "SemanticRetrieverConfig"
        },
        "contents": {
          "type": "array",
          "items": {
            "$ref": "Content"
          },
          "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single question to answer. For multi-turn queries, this is a repeated field that contains conversation history and the last `Content` in the list containing the question. Note: GenerateAnswer currently only supports queries in English."
        },
        "answerStyle": {
          "type": "string",
          "enumDescriptions": [
            "Unspecified answer style.",
            "Succint but abstract style.",
            "Very brief and extractive style.",
            "Verbose style including extra details. The response may be formatted as a sentence, paragraph, multiple paragraphs, or bullet points, etc."
          ],
          "enum": [
            "ANSWER_STYLE_UNSPECIFIED",
            "ABSTRACTIVE",
            "EXTRACTIVE",
            "VERBOSE"
          ],
          "description": "Required. Style in which answers should be returned."
        }
      }
    },
    "FunctionCallingConfig": {
      "type": "object",
      "id": "FunctionCallingConfig",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "MODE_UNSPECIFIED",
            "AUTO",
            "ANY",
            "NONE"
          ],
          "enumDescriptions": [
            "Unspecified function calling mode. This value should not be used.",
            "Default model behavior, model decides to predict either a function call or a natural language response.",
            "Model is constrained to always predicting a function call only. If \"allowed_function_names\" are set, the predicted function call will be limited to any one of \"allowed_function_names\", else the predicted function call will be any one of the provided \"function_declarations\".",
            "Model will not predict any function call. Model behavior is same as when not passing any function declarations."
          ],
          "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO."
        },
        "allowedFunctionNames": {
          "type": "array",
          "description": "Optional. A set of function names that, when provided, limits the functions the model will call. This should only be set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided.",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "Configuration for specifying function calling behavior."
    },
    "CustomMetadata": {
      "id": "CustomMetadata",
      "description": "User provided metadata stored as key-value pairs.",
      "properties": {
        "key": {
          "type": "string",
          "description": "Required. The key of the metadata to store."
        },
        "stringValue": {
          "type": "string",
          "description": "The string value of the metadata to store."
        },
        "stringListValue": {
          "$ref": "StringList",
          "description": "The StringList value of the metadata to store."
        },
        "numericValue": {
          "format": "float",
          "description": "The numeric value of the metadata to store.",
          "type": "number"
        }
      },
      "type": "object"
    },
    "CountTokensRequest": {
      "properties": {
        "generateContentRequest": {
          "$ref": "GenerateContentRequest",
          "description": "Optional. The overall input given to the model. CountTokens will count prompt, function calling, etc."
        },
        "contents": {
          "items": {
            "$ref": "Content"
          },
          "type": "array",
          "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set."
        }
      },
      "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",
      "type": "object",
      "id": "CountTokensRequest"
    },
    "ListDocumentsResponse": {
      "properties": {
        "documents": {
          "description": "The returned `Document`s.",
          "type": "array",
          "items": {
            "$ref": "Document"
          }
        },
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",
          "type": "string"
        }
      },
      "id": "ListDocumentsResponse",
      "type": "object",
      "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`."
    },
    "ToolConfig": {
      "id": "ToolConfig",
      "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.",
      "properties": {
        "functionCallingConfig": {
          "$ref": "FunctionCallingConfig",
          "description": "Optional. Function calling config."
        }
      },
      "type": "object"
    },
    "GenerateTextRequest": {
      "description": "Request to generate a text completion response from the model.",
      "type": "object",
      "id": "GenerateTextRequest",
      "properties": {
        "candidateCount": {
          "type": "integer",
          "description": "Optional. Number of generated responses to return. This value must be between [1, 8], inclusive. If unset, this will default to 1.",
          "format": "int32"
        },
        "maxOutputTokens": {
          "type": "integer",
          "description": "Optional. The maximum number of tokens to include in a candidate. If unset, this will default to output_token_limit specified in the `Model` specification.",
          "format": "int32"
        },
        "temperature": {
          "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned the `getModel` function. Values can range from [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied and creative, while a value closer to 0.0 will typically result in more straightforward responses from the model.",
          "format": "float",
          "type": "number"
        },
        "stopSequences": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a stop sequence. The stop sequence will not be included as part of the response."
        },
        "topP": {
          "type": "number",
          "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits number of tokens based on the cumulative probability. Note: The default value varies by model, see the `Model.top_p` attribute of the `Model` returned the `getModel` function.",
          "format": "float"
        },
        "topK": {
          "type": "integer",
          "description": "Optional. The maximum number of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Defaults to 40. Note: The default value varies by model, see the `Model.top_k` attribute of the `Model` returned the `getModel` function.",
          "format": "int32"
        },
        "prompt": {
          "description": "Required. The free-form input text given to the model as a prompt. Given a prompt, the model will generate a TextCompletion response it predicts as the completion of the input text.",
          "$ref": "TextPrompt"
        },
        "safetySettings": {
          "type": "array",
          "items": {
            "$ref": "SafetySetting"
          },
          "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. that will be enforced on the `GenerateTextRequest.prompt` and `GenerateTextResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any prompts and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_DEROGATORY, HARM_CATEGORY_TOXICITY, HARM_CATEGORY_VIOLENCE, HARM_CATEGORY_SEXUAL, HARM_CATEGORY_MEDICAL, HARM_CATEGORY_DANGEROUS are supported in text service."
        }
      }
    },
    "GroundingPassage": {
      "type": "object",
      "description": "Passage included inline with a grounding configuration.",
      "properties": {
        "id": {
          "type": "string",
          "description": "Identifier for the passage for attributing this passage in grounded answers."
        },
        "content": {
          "$ref": "Content",
          "description": "Content of the passage."
        }
      },
      "id": "GroundingPassage"
    },
    "Operation": {
      "properties": {
        "name": {
          "description": "The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.",
          "type": "string"
        },
        "done": {
          "type": "boolean",
          "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available."
        },
        "metadata": {
          "type": "object",
          "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object. Contains field @type with type URL."
          }
        },
        "response": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object. Contains field @type with type URL."
          },
          "type": "object",
          "description": "The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`."
        },
        "error": {
          "$ref": "Status",
          "description": "The error result of the operation in case of failure or cancellation."
        }
      },
      "description": "This resource represents a long-running operation that is the result of a network API call.",
      "id": "Operation",
      "type": "object"
    },
    "CreateFileResponse": {
      "description": "Response for `CreateFile`.",
      "type": "object",
      "properties": {
        "file": {
          "$ref": "File",
          "description": "Metadata for the created file."
        }
      },
      "id": "CreateFileResponse"
    },
    "CountMessageTokensResponse": {
      "description": "A response from `CountMessageTokens`. It returns the model's `token_count` for the `prompt`.",
      "type": "object",
      "properties": {
        "tokenCount": {
          "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative.",
          "type": "integer",
          "format": "int32"
        }
      },
      "id": "CountMessageTokensResponse"
    },
    "GenerateAnswerResponse": {
      "description": "Response from the model for a grounded answer.",
      "properties": {
        "answerableProbability": {
          "type": "number",
          "description": "Output only. The model's estimate of the probability that its answer is correct and grounded in the input passages. A low answerable_probability indicates that the answer might not be grounded in the sources. When `answerable_probability` is low, some clients may wish to: * Display a message to the effect of \"We couldn’t answer that question\" to the user. * Fall back to a general-purpose LLM that answers the question from world knowledge. The threshold and nature of such fallbacks will depend on individual clients’ use cases. 0.5 is a good starting threshold.",
          "format": "float",
          "readOnly": true
        },
        "answer": {
          "$ref": "Candidate",
          "description": "Candidate answer from the model. Note: The model *always* attempts to provide a grounded answer, even when the answer is unlikely to be answerable from the given passages. In that case, a low-quality or ungrounded answer may be provided, along with a low `answerable_probability`."
        },
        "inputFeedback": {
          "description": "Output only. Feedback related to the input data used to answer the question, as opposed to model-generated response to the question. \"Input data\" can be one or more of the following: - Question specified by the last entry in `GenerateAnswerRequest.content` - Conversation history specified by the other entries in `GenerateAnswerRequest.content` - Grounding sources (`GenerateAnswerRequest.semantic_retriever` or `GenerateAnswerRequest.inline_passages`)",
          "readOnly": true,
          "$ref": "InputFeedback"
        }
      },
      "type": "object",
      "id": "GenerateAnswerResponse"
    },
    "QueryDocumentResponse": {
      "id": "QueryDocumentResponse",
      "type": "object",
      "description": "Response from `QueryDocument` containing a list of relevant chunks.",
      "properties": {
        "relevantChunks": {
          "type": "array",
          "description": "The returned relevant chunks.",
          "items": {
            "$ref": "RelevantChunk"
          }
        }
      }
    },
    "StringList": {
      "id": "StringList",
      "properties": {
        "values": {
          "description": "The string values of the metadata to store.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "description": "User provided string values assigned to a single metadata key.",
      "type": "object"
    },
    "SafetyFeedback": {
      "id": "SafetyFeedback",
      "type": "object",
      "properties": {
        "rating": {
          "description": "Safety rating evaluated from content.",
          "$ref": "SafetyRating"
        },
        "setting": {
          "$ref": "SafetySetting",
          "description": "Safety settings applied to the request."
        }
      },
      "description": "Safety feedback for an entire request. This field is populated if content in the input and/or response is blocked due to safety settings. SafetyFeedback may not exist for every HarmCategory. Each SafetyFeedback will return the safety settings used by the request as well as the lowest HarmProbability that should be allowed in order to return a result."
    },
    "BatchCreateChunksResponse": {
      "properties": {
        "chunks": {
          "type": "array",
          "items": {
            "$ref": "Chunk"
          },
          "description": "`Chunk`s created."
        }
      },
      "description": "Response from `BatchCreateChunks` containing a list of created `Chunk`s.",
      "type": "object",
      "id": "BatchCreateChunksResponse"
    },
    "GenerateMessageResponse": {
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "$ref": "Message"
          },
          "description": "The conversation history used by the model."
        },
        "candidates": {
          "description": "Candidate response messages from the model.",
          "type": "array",
          "items": {
            "$ref": "Message"
          }
        },
        "filters": {
          "description": "A set of content filtering metadata for the prompt and response text. This indicates which `SafetyCategory`(s) blocked a candidate from this response, the lowest `HarmProbability` that triggered a block, and the HarmThreshold setting for that category.",
          "items": {
            "$ref": "ContentFilter"
          },
          "type": "array"
        }
      },
      "description": "The response from the model. This includes candidate messages and conversation history in the form of chronologically-ordered messages.",
      "id": "GenerateMessageResponse",
      "type": "object"
    },
    "CreateChunkRequest": {
      "properties": {
        "chunk": {
          "description": "Required. The `Chunk` to create.",
          "$ref": "Chunk"
        },
        "parent": {
          "description": "Required. The name of the `Document` where this `Chunk` will be created. Example: `corpora/my-corpus-123/documents/the-doc-abc`",
          "type": "string"
        }
      },
      "type": "object",
      "id": "CreateChunkRequest",
      "description": "Request to create a `Chunk`."
    },
    "CachedContentUsageMetadata": {
      "description": "Metadata on the usage of the cached content.",
      "type": "object",
      "id": "CachedContentUsageMetadata",
      "properties": {
        "totalTokenCount": {
          "type": "integer",
          "format": "int32",
          "description": "Total number of tokens that the cached content consumes."
        }
      }
    },
    "BatchEmbedTextResponse": {
      "properties": {
        "embeddings": {
          "type": "array",
          "items": {
            "$ref": "Embedding"
          },
          "description": "Output only. The embeddings generated from the input text.",
          "readOnly": true
        }
      },
      "description": "The response to a EmbedTextRequest.",
      "type": "object",
      "id": "BatchEmbedTextResponse"
    },
    "Status": {
      "properties": {
        "code": {
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
          "type": "string"
        },
        "details": {
          "items": {
            "additionalProperties": {
              "type": "any",
              "description": "Properties of the object. Contains field @type with type URL."
            },
            "type": "object"
          },
          "type": "array",
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use."
        }
      },
      "id": "Status",
      "type": "object",
      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."
    },
    "CitationSource": {
      "id": "CitationSource",
      "description": "A citation to a source for a portion of a specific response.",
      "properties": {
        "license": {
          "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.",
          "type": "string"
        },
        "endIndex": {
          "format": "int32",
          "description": "Optional. End of the attributed segment, exclusive.",
          "type": "integer"
        },
        "startIndex": {
          "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.",
          "format": "int32",
          "type": "integer"
        },
        "uri": {
          "description": "Optional. URI that is attributed as a source for a portion of the text.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "ListChunksResponse": {
      "description": "Response from `ListChunks` containing a paginated list of `Chunk`s. The `Chunk`s are sorted by ascending `chunk.create_time`.",
      "type": "object",
      "properties": {
        "chunks": {
          "items": {
            "$ref": "Chunk"
          },
          "type": "array",
          "description": "The returned `Chunk`s."
        },
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",
          "type": "string"
        }
      },
      "id": "ListChunksResponse"
    },
    "ListTunedModelsResponse": {
      "type": "object",
      "description": "Response from `ListTunedModels` containing a paginated list of Models.",
      "properties": {
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages."
        },
        "tunedModels": {
          "description": "The returned Models.",
          "items": {
            "$ref": "TunedModel"
          },
          "type": "array"
        }
      },
      "id": "ListTunedModelsResponse"
    },
    "TransferOwnershipResponse": {
      "type": "object",
      "description": "Response from `TransferOwnership`.",
      "properties": {},
      "id": "TransferOwnershipResponse"
    },
    "GenerateContentRequest": {
      "id": "GenerateContentRequest",
      "properties": {
        "cachedContent": {
          "type": "string",
          "description": "Optional. The name of the cached content used as context to serve the prediction. Note: only used in explicit caching, where users can have control over caching (e.g. what content to cache) and enjoy guaranteed cost savings. Format: `cachedContents/{cachedContent}`"
        },
        "generationConfig": {
          "description": "Optional. Configuration options for model generation and outputs.",
          "$ref": "GenerationConfig"
        },
        "model": {
          "type": "string",
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `name=models/{model}`."
        },
        "systemInstruction": {
          "description": "Optional. Developer set system instruction. Currently, text only.",
          "$ref": "Content"
        },
        "contents": {
          "type": "array",
          "items": {
            "$ref": "Content"
          },
          "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries, this is a repeated field that contains conversation history + latest request."
        },
        "toolConfig": {
          "description": "Optional. Tool configuration for any `Tool` specified in the request.",
          "$ref": "ToolConfig"
        },
        "tools": {
          "type": "array",
          "description": "Optional. A list of `Tools` the model may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model. The only supported tool is currently `Function`.",
          "items": {
            "$ref": "Tool"
          }
        },
        "safetySettings": {
          "items": {
            "$ref": "SafetySetting"
          },
          "type": "array",
          "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. This will be enforced on the `GenerateContentRequest.contents` and `GenerateContentResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any contents and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, HARM_CATEGORY_DANGEROUS_CONTENT, HARM_CATEGORY_HARASSMENT are supported."
        }
      },
      "description": "Request to generate a completion from the model.",
      "type": "object"
    },
    "TextPrompt": {
      "description": "Text given to the model as a prompt. The Model will use this TextPrompt to Generate a text completion.",
      "type": "object",
      "properties": {
        "text": {
          "description": "Required. The prompt text.",
          "type": "string"
        }
      },
      "id": "TextPrompt"
    },
    "SafetySetting": {
      "type": "object",
      "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.",
      "id": "SafetySetting",
      "properties": {
        "category": {
          "description": "Required. The category for this setting.",
          "type": "string",
          "enum": [
            "HARM_CATEGORY_UNSPECIFIED",
            "HARM_CATEGORY_DEROGATORY",
            "HARM_CATEGORY_TOXICITY",
            "HARM_CATEGORY_VIOLENCE",
            "HARM_CATEGORY_SEXUAL",
            "HARM_CATEGORY_MEDICAL",
            "HARM_CATEGORY_DANGEROUS",
            "HARM_CATEGORY_HARASSMENT",
            "HARM_CATEGORY_HATE_SPEECH",
            "HARM_CATEGORY_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_DANGEROUS_CONTENT"
          ],
          "enumDescriptions": [
            "Category is unspecified.",
            "Negative or harmful comments targeting identity and/or protected attribute.",
            "Content that is rude, disrespectful, or profane.",
            "Describes scenarios depicting violence against an individual or group, or general descriptions of gore.",
            "Contains references to sexual acts or other lewd content.",
            "Promotes unchecked medical advice.",
            "Dangerous content that promotes, facilitates, or encourages harmful acts.",
            "Harasment content.",
            "Hate speech and content.",
            "Sexually explicit content.",
            "Dangerous content."
          ]
        },
        "threshold": {
          "enum": [
            "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_ONLY_HIGH",
            "BLOCK_NONE"
          ],
          "enumDescriptions": [
            "Threshold is unspecified.",
            "Content with NEGLIGIBLE will be allowed.",
            "Content with NEGLIGIBLE and LOW will be allowed.",
            "Content with NEGLIGIBLE, LOW, and MEDIUM will be allowed.",
            "All content will be allowed."
          ],
          "type": "string",
          "description": "Required. Controls the probability threshold at which harm is blocked."
        }
      }
    },
    "GenerationConfig": {
      "id": "GenerationConfig",
      "type": "object",
      "properties": {
        "stopSequences": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Optional. The set of character sequences (up to 5) that will stop output generation. If specified, the API will stop at the first appearance of a stop sequence. The stop sequence will not be included as part of the response."
        },
        "responseSchema": {
          "$ref": "Schema",
          "description": "Optional. Output response schema of the generated candidate text when response mime type can have schema. Schema can be objects, primitives or arrays and is a subset of [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema). If set, a compatible response_mime_type must also be set. Compatible mimetypes: `application/json`: Schema for JSON response."
        },
        "responseMimeType": {
          "type": "string",
          "description": "Optional. Output response mimetype of the generated candidate text. Supported mimetype: `text/plain`: (default) Text output. `application/json`: JSON response in the candidates."
        },
        "topP": {
          "type": "number",
          "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Tokens are sorted based on their assigned probabilities so that only the most likely tokens are considered. Top-k sampling directly limits the maximum number of tokens to consider, while Nucleus sampling limits number of tokens based on the cumulative probability. Note: The default value varies by model, see the `Model.top_p` attribute of the `Model` returned from the `getModel` function.",
          "format": "float"
        },
        "candidateCount": {
          "description": "Optional. Number of generated responses to return. Currently, this value can only be set to 1. If unset, this will default to 1.",
          "format": "int32",
          "type": "integer"
        },
        "maxOutputTokens": {
          "description": "Optional. The maximum number of tokens to include in a candidate. Note: The default value varies by model, see the `Model.output_token_limit` attribute of the `Model` returned from the `getModel` function.",
          "type": "integer",
          "format": "int32"
        },
        "topK": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. The maximum number of tokens to consider when sampling. Models use nucleus sampling or combined Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Models running with nucleus sampling don't allow top_k setting. Note: The default value varies by model, see the `Model.top_k` attribute of the `Model` returned from the `getModel` function. Empty `top_k` field in `Model` indicates the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests."
        },
        "temperature": {
          "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned from the `getModel` function. Values can range from [0.0, 2.0].",
          "type": "number",
          "format": "float"
        }
      },
      "description": "Configuration options for model generation and outputs. Not all parameters may be configurable for every model."
    },
    "SemanticRetrieverConfig": {
      "description": "Configuration for retrieving grounding content from a `Corpus` or `Document` created using the Semantic Retriever API.",
      "id": "SemanticRetrieverConfig",
      "type": "object",
      "properties": {
        "source": {
          "type": "string",
          "description": "Required. Name of the resource for retrieval, e.g. corpora/123 or corpora/123/documents/abc."
        },
        "minimumRelevanceScore": {
          "format": "float",
          "type": "number",
          "description": "Optional. Minimum relevance score for retrieved relevant `Chunk`s."
        },
        "maxChunksCount": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Maximum number of relevant `Chunk`s to retrieve."
        },
        "metadataFilters": {
          "type": "array",
          "description": "Optional. Filters for selecting `Document`s and/or `Chunk`s from the resource.",
          "items": {
            "$ref": "MetadataFilter"
          }
        },
        "query": {
          "$ref": "Content",
          "description": "Required. Query to use for similarity matching `Chunk`s in the given resource."
        }
      }
    },
    "BatchUpdateChunksResponse": {
      "properties": {
        "chunks": {
          "items": {
            "$ref": "Chunk"
          },
          "type": "array",
          "description": "`Chunk`s updated."
        }
      },
      "description": "Response from `BatchUpdateChunks` containing a list of updated `Chunk`s.",
      "id": "BatchUpdateChunksResponse",
      "type": "object"
    },
    "CountTextTokensRequest": {
      "type": "object",
      "id": "CountTextTokensRequest",
      "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",
      "properties": {
        "prompt": {
          "description": "Required. The free-form input text given to the model as a prompt.",
          "$ref": "TextPrompt"
        }
      }
    },
    "ListFilesResponse": {
      "description": "Response for `ListFiles`.",
      "properties": {
        "files": {
          "items": {
            "$ref": "File"
          },
          "description": "The list of `File`s.",
          "type": "array"
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call."
        }
      },
      "id": "ListFilesResponse",
      "type": "object"
    },
    "ListModelsResponse": {
      "id": "ListModelsResponse",
      "properties": {
        "models": {
          "description": "The returned Models.",
          "type": "array",
          "items": {
            "$ref": "Model"
          }
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages."
        }
      },
      "type": "object",
      "description": "Response from `ListModel` containing a paginated list of Models."
    },
    "Part": {
      "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",
      "properties": {
        "inlineData": {
          "$ref": "Blob",
          "description": "Inline media bytes."
        },
        "functionResponse": {
          "$ref": "FunctionResponse",
          "description": "The result output of a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model."
        },
        "executableCode": {
          "$ref": "ExecutableCode",
          "description": "Code generated by the model that is meant to be executed."
        },
        "fileData": {
          "$ref": "FileData",
          "description": "URI based data."
        },
        "functionCall": {
          "$ref": "FunctionCall",
          "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values."
        },
        "text": {
          "type": "string",
          "description": "Inline text."
        },
        "codeExecutionResult": {
          "description": "Result of executing the `ExecutableCode`.",
          "$ref": "CodeExecutionResult"
        }
      },
      "type": "object",
      "id": "Part"
    },
    "TunedModel": {
      "properties": {
        "createTime": {
          "format": "google-datetime",
          "description": "Output only. The timestamp when this model was created.",
          "readOnly": true,
          "type": "string"
        },
        "tuningTask": {
          "description": "Required. The tuning task that creates the tuned model.",
          "$ref": "TuningTask"
        },
        "displayName": {
          "type": "string",
          "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces."
        },
        "topP": {
          "type": "number",
          "description": "Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.",
          "format": "float"
        },
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The tuned model name. A unique name will be generated on create. Example: `tunedModels/az2mb0bpw6i` If display_name is set on create, the id portion of the name will be set by concatenating the words of the display_name with hyphens and adding a random portion for uniqueness. Example: display_name = \"Sentence Translator\" name = \"tunedModels/sentence-translator-u3b7m\""
        },
        "state": {
          "enumDescriptions": [
            "The default value. This value is unused.",
            "The model is being created.",
            "The model is ready to be used.",
            "The model failed to be created."
          ],
          "type": "string",
          "description": "Output only. The state of the tuned model.",
          "enum": [
            "STATE_UNSPECIFIED",
            "CREATING",
            "ACTIVE",
            "FAILED"
          ],
          "readOnly": true
        },
        "updateTime": {
          "description": "Output only. The timestamp when this model was updated.",
          "format": "google-datetime",
          "readOnly": true,
          "type": "string"
        },
        "baseModel": {
          "description": "Immutable. The name of the `Model` to tune. Example: `models/text-bison-001`",
          "type": "string"
        },
        "temperature": {
          "type": "number",
          "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be the one used by the base model while creating the model.",
          "format": "float"
        },
        "topK": {
          "type": "integer",
          "description": "Optional. For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. This value specifies default to be the one used by the base model while creating the model.",
          "format": "int32"
        },
        "tunedModelSource": {
          "$ref": "TunedModelSource",
          "description": "Optional. TunedModel to use as the starting point for training the new model."
        },
        "description": {
          "type": "string",
          "description": "Optional. A short description of this model."
        }
      },
      "description": "A fine-tuned model created using ModelService.CreateTunedModel.",
      "type": "object",
      "id": "TunedModel"
    },
    "TuningSnapshot": {
      "type": "object",
      "properties": {
        "computeTime": {
          "format": "google-datetime",
          "type": "string",
          "readOnly": true,
          "description": "Output only. The timestamp when this metric was computed."
        },
        "epoch": {
          "type": "integer",
          "format": "int32",
          "readOnly": true,
          "description": "Output only. The epoch this step was part of."
        },
        "meanLoss": {
          "description": "Output only. The mean loss of the training examples for this step.",
          "type": "number",
          "format": "float",
          "readOnly": true
        },
        "step": {
          "description": "Output only. The tuning step.",
          "type": "integer",
          "readOnly": true,
          "format": "int32"
        }
      },
      "id": "TuningSnapshot",
      "description": "Record for a single tuning step."
    },
    "Embedding": {
      "type": "object",
      "id": "Embedding",
      "properties": {
        "value": {
          "type": "array",
          "items": {
            "type": "number",
            "format": "float"
          },
          "description": "The embedding values."
        }
      },
      "description": "A list of floats representing the embedding."
    },
    "Blob": {
      "id": "Blob",
      "type": "object",
      "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",
      "properties": {
        "data": {
          "description": "Raw bytes for media formats.",
          "format": "byte",
          "type": "string"
        },
        "mimeType": {
          "description": "The IANA standard MIME type of the source data. Examples: - image/png - image/jpeg If an unsupported MIME type is provided, an error will be returned. For a complete list of supported types, see [Supported file formats](https://ai.google.dev/gemini-api/docs/prompting_with_media#supported_file_formats).",
          "type": "string"
        }
      }
    },
    "Candidate": {
      "description": "A response candidate generated from the model.",
      "id": "Candidate",
      "type": "object",
      "properties": {
        "index": {
          "type": "integer",
          "description": "Output only. Index of the candidate in the list of candidates.",
          "readOnly": true,
          "format": "int32"
        },
        "safetyRatings": {
          "type": "array",
          "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.",
          "items": {
            "$ref": "SafetyRating"
          }
        },
        "content": {
          "$ref": "Content",
          "description": "Output only. Generated content returned from the model.",
          "readOnly": true
        },
        "groundingAttributions": {
          "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.",
          "type": "array",
          "items": {
            "$ref": "GroundingAttribution"
          },
          "readOnly": true
        },
        "finishReason": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Natural stop point of the model or provided stop sequence.",
            "The maximum number of tokens as specified in the request was reached.",
            "The candidate content was flagged for safety reasons.",
            "The candidate content was flagged for recitation reasons.",
            "The candidate content was flagged for using an unsupported language.",
            "Unknown reason."
          ],
          "readOnly": true,
          "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating the tokens.",
          "type": "string",
          "enum": [
            "FINISH_REASON_UNSPECIFIED",
            "STOP",
            "MAX_TOKENS",
            "SAFETY",
            "RECITATION",
            "LANGUAGE",
            "OTHER"
          ]
        },
        "citationMetadata": {
          "readOnly": true,
          "$ref": "CitationMetadata",
          "description": "Output only. Citation information for model-generated candidate. This field may be populated with recitation information for any text included in the `content`. These are passages that are \"recited\" from copyrighted material in the foundational LLM's training data."
        },
        "tokenCount": {
          "type": "integer",
          "format": "int32",
          "description": "Output only. Token count for this candidate.",
          "readOnly": true
        }
      }
    },
    "CreateFileRequest": {
      "type": "object",
      "description": "Request for `CreateFile`.",
      "id": "CreateFileRequest",
      "properties": {
        "file": {
          "$ref": "File",
          "description": "Optional. Metadata for the file to create."
        }
      }
    },
    "PromptFeedback": {
      "properties": {
        "safetyRatings": {
          "description": "Ratings for safety of the prompt. There is at most one rating per category.",
          "items": {
            "$ref": "SafetyRating"
          },
          "type": "array"
        },
        "blockReason": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Prompt was blocked due to safety reasons. You can inspect `safety_ratings` to understand which safety category blocked it.",
            "Prompt was blocked due to unknown reasons."
          ],
          "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase your prompt.",
          "enum": [
            "BLOCK_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER"
          ],
          "type": "string"
        }
      },
      "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.",
      "id": "PromptFeedback",
      "type": "object"
    },
    "SemanticRetrieverChunk": {
      "type": "object",
      "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.",
      "properties": {
        "source": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`"
        },
        "chunk": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`"
        }
      },
      "id": "SemanticRetrieverChunk"
    },
    "EmbedContentResponse": {
      "id": "EmbedContentResponse",
      "description": "The response to an `EmbedContentRequest`.",
      "properties": {
        "embedding": {
          "readOnly": true,
          "$ref": "ContentEmbedding",
          "description": "Output only. The embedding generated from the input content."
        }
      },
      "type": "object"
    },
    "MetadataFilter": {
      "description": "User provided filter to limit retrieval based on `Chunk` or `Document` level metadata values. Example (genre = drama OR genre = action): key = \"document.custom_metadata.genre\" conditions = [{string_value = \"drama\", operation = EQUAL}, {string_value = \"action\", operation = EQUAL}]",
      "id": "MetadataFilter",
      "properties": {
        "conditions": {
          "items": {
            "$ref": "Condition"
          },
          "type": "array",
          "description": "Required. The `Condition`s for the given key that will trigger this filter. Multiple `Condition`s are joined by logical ORs."
        },
        "key": {
          "type": "string",
          "description": "Required. The key of the metadata to filter on."
        }
      },
      "type": "object"
    },
    "TunedModelSource": {
      "type": "object",
      "id": "TunedModelSource",
      "properties": {
        "baseModel": {
          "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/text-bison-001`",
          "readOnly": true,
          "type": "string"
        },
        "tunedModel": {
          "type": "string",
          "description": "Immutable. The name of the `TunedModel` to use as the starting point for training the new model. Example: `tunedModels/my-tuned-model`"
        }
      },
      "description": "Tuned model as a source for training a new model."
    },
    "Model": {
      "type": "object",
      "description": "Information about a Generative Language Model.",
      "properties": {
        "description": {
          "type": "string",
          "description": "A short description of the model."
        },
        "topP": {
          "description": "For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model.",
          "format": "float",
          "type": "number"
        },
        "inputTokenLimit": {
          "format": "int32",
          "description": "Maximum number of input tokens allowed for this model.",
          "type": "integer"
        },
        "version": {
          "type": "string",
          "description": "Required. The version number of the model. This represents the major version"
        },
        "baseModelId": {
          "type": "string",
          "description": "Required. The name of the base model, pass this to the generation request. Examples: * `chat-bison`"
        },
        "supportedGenerationMethods": {
          "type": "array",
          "description": "The model's supported generation methods. The method names are defined as Pascal case strings, such as `generateMessage` which correspond to API methods.",
          "items": {
            "type": "string"
          }
        },
        "outputTokenLimit": {
          "format": "int32",
          "description": "Maximum number of output tokens available for this model.",
          "type": "integer"
        },
        "name": {
          "description": "Required. The resource name of the `Model`. Format: `models/{model}` with a `{model}` naming convention of: * \"{base_model_id}-{version}\" Examples: * `models/chat-bison-001`",
          "type": "string"
        },
        "maxTemperature": {
          "format": "float",
          "type": "number",
          "description": "The maximum temperature this model can use."
        },
        "temperature": {
          "description": "Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.",
          "format": "float",
          "type": "number"
        },
        "topK": {
          "format": "int32",
          "type": "integer",
          "description": "For Top-k sampling. Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter."
        },
        "displayName": {
          "description": "The human-readable name of the model. E.g. \"Chat Bison\". The name can be up to 128 characters long and can consist of any UTF-8 characters.",
          "type": "string"
        }
      },
      "id": "Model"
    },
    "ListCorporaResponse": {
      "type": "object",
      "id": "ListCorporaResponse",
      "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`.",
      "properties": {
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",
          "type": "string"
        },
        "corpora": {
          "items": {
            "$ref": "Corpus"
          },
          "type": "array",
          "description": "The returned corpora."
        }
      }
    },
    "TuningTask": {
      "id": "TuningTask",
      "type": "object",
      "description": "Tuning tasks that create tuned models.",
      "properties": {
        "hyperparameters": {
          "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used.",
          "$ref": "Hyperparameters"
        },
        "startTime": {
          "type": "string",
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. The timestamp when tuning this model started."
        },
        "completeTime": {
          "format": "google-datetime",
          "description": "Output only. The timestamp when tuning this model completed.",
          "readOnly": true,
          "type": "string"
        },
        "snapshots": {
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "TuningSnapshot"
          },
          "description": "Output only. Metrics collected during tuning."
        },
        "trainingData": {
          "$ref": "Dataset",
          "description": "Required. Input only. Immutable. The model training data."
        }
      }
    },
    "Schema": {
      "id": "Schema",
      "type": "object",
      "properties": {
        "enum": {
          "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "type": {
          "enum": [
            "TYPE_UNSPECIFIED",
            "STRING",
            "NUMBER",
            "INTEGER",
            "BOOLEAN",
            "ARRAY",
            "OBJECT"
          ],
          "type": "string",
          "enumDescriptions": [
            "Not specified, should not be used.",
            "String type.",
            "Number type.",
            "Integer type.",
            "Boolean type.",
            "Array type.",
            "Object type."
          ],
          "description": "Required. Data type."
        },
        "description": {
          "type": "string",
          "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown."
        },
        "nullable": {
          "description": "Optional. Indicates if the value may be null.",
          "type": "boolean"
        },
        "required": {
          "description": "Optional. Required properties of Type.OBJECT.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "items": {
          "$ref": "Schema",
          "description": "Optional. Schema of the elements of Type.ARRAY."
        },
        "format": {
          "description": "Optional. The format of the data. This is used only for primitive datatypes. Supported formats: for NUMBER type: float, double for INTEGER type: int32, int64 for STRING type: enum",
          "type": "string"
        },
        "properties": {
          "type": "object",
          "description": "Optional. Properties of Type.OBJECT.",
          "additionalProperties": {
            "$ref": "Schema"
          }
        }
      },
      "description": "The `Schema` object allows the definition of input and output data types. These types can be objects, but also primitives and arrays. Represents a select subset of an [OpenAPI 3.0 schema object](https://spec.openapis.org/oas/v3.0.3#schema)."
    },
    "ChunkData": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "The `Chunk` content as a string. The maximum number of tokens per chunk is 2043."
        }
      },
      "id": "ChunkData",
      "description": "Extracted data that represents the `Chunk` content."
    },
    "CountMessageTokensRequest": {
      "id": "CountMessageTokensRequest",
      "type": "object",
      "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",
      "properties": {
        "prompt": {
          "$ref": "MessagePrompt",
          "description": "Required. The prompt, whose token count is to be returned."
        }
      }
    },
    "ListCachedContentsResponse": {
      "properties": {
        "cachedContents": {
          "type": "array",
          "description": "List of cached contents.",
          "items": {
            "$ref": "CachedContent"
          }
        },
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "ListCachedContentsResponse",
      "description": "Response with CachedContents list."
    },
    "Content": {
      "description": "The base structured datatype containing multi-part content of a message. A `Content` includes a `role` field designating the producer of the `Content` and a `parts` field containing multi-part data that contains the content of the message turn.",
      "id": "Content",
      "properties": {
        "role": {
          "type": "string",
          "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset."
        },
        "parts": {
          "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.",
          "items": {
            "$ref": "Part"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "CountTokensResponse": {
      "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.",
      "properties": {
        "totalTokens": {
          "format": "int32",
          "type": "integer",
          "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative. When cached_content is set, this is still the total effective prompt size. I.e. this includes the number of tokens in the cached content."
        }
      },
      "type": "object",
      "id": "CountTokensResponse"
    },
    "CachedContent": {
      "type": "object",
      "id": "CachedContent",
      "properties": {
        "model": {
          "type": "string",
          "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`"
        },
        "ttl": {
          "type": "string",
          "format": "google-duration",
          "description": "Input only. New TTL for this resource, input only."
        },
        "name": {
          "description": "Optional. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`",
          "type": "string"
        },
        "expireTime": {
          "type": "string",
          "description": "Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.",
          "format": "google-datetime"
        },
        "tools": {
          "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response",
          "items": {
            "$ref": "Tool"
          },
          "type": "array"
        },
        "createTime": {
          "readOnly": true,
          "description": "Output only. Creation time of the cache entry.",
          "type": "string",
          "format": "google-datetime"
        },
        "displayName": {
          "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.",
          "type": "string"
        },
        "systemInstruction": {
          "$ref": "Content",
          "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only."
        },
        "contents": {
          "description": "Optional. Input only. Immutable. The content to cache.",
          "items": {
            "$ref": "Content"
          },
          "type": "array"
        },
        "usageMetadata": {
          "readOnly": true,
          "$ref": "CachedContentUsageMetadata",
          "description": "Output only. Metadata on the usage of the cached content."
        },
        "updateTime": {
          "description": "Output only. When the cache entry was last updated in UTC time.",
          "type": "string",
          "format": "google-datetime",
          "readOnly": true
        },
        "toolConfig": {
          "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools.",
          "$ref": "ToolConfig"
        }
      },
      "description": "Content that has been preprocessed and can be used in subsequent request to GenerativeService. Cached content can be only used with model it was created for."
    },
    "BatchEmbedTextRequest": {
      "description": "Batch request to get a text embedding from the model.",
      "id": "BatchEmbedTextRequest",
      "type": "object",
      "properties": {
        "requests": {
          "description": "Optional. Embed requests for the batch. Only one of `texts` or `requests` can be set.",
          "type": "array",
          "items": {
            "$ref": "EmbedTextRequest"
          }
        },
        "texts": {
          "items": {
            "type": "string"
          },
          "description": "Optional. The free-form input texts that the model will turn into an embedding. The current limit is 100 texts, over which an error will be thrown.",
          "type": "array"
        }
      }
    },
    "BatchEmbedContentsResponse": {
      "id": "BatchEmbedContentsResponse",
      "properties": {
        "embeddings": {
          "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.",
          "items": {
            "$ref": "ContentEmbedding"
          },
          "type": "array",
          "readOnly": true
        }
      },
      "description": "The response to a `BatchEmbedContentsRequest`.",
      "type": "object"
    },
    "FunctionDeclaration": {
      "description": "Structured representation of a function declaration as defined by the [OpenAPI 3.03 specification](https://spec.openapis.org/oas/v3.0.3). Included in this declaration are the function name and parameters. This FunctionDeclaration is a representation of a block of code that can be used as a `Tool` by the model and executed by the client.",
      "properties": {
        "description": {
          "description": "Required. A brief description of the function.",
          "type": "string"
        },
        "name": {
          "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63.",
          "type": "string"
        },
        "parameters": {
          "$ref": "Schema",
          "description": "Optional. Describes the parameters to this function. Reflects the Open API 3.03 Parameter Object string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter."
        }
      },
      "id": "FunctionDeclaration",
      "type": "object"
    },
    "Hyperparameters": {
      "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance",
      "type": "object",
      "id": "Hyperparameters",
      "properties": {
        "learningRateMultiplier": {
          "format": "float",
          "type": "number",
          "description": "Optional. Immutable. The learning rate multiplier is used to calculate a final learning_rate based on the default (recommended) value. Actual learning rate := learning_rate_multiplier * default learning rate Default learning rate is dependent on base model and dataset size. If not set, a default of 1.0 will be used."
        },
        "learningRate": {
          "format": "float",
          "description": "Optional. Immutable. The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples.",
          "type": "number"
        },
        "batchSize": {
          "description": "Immutable. The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples.",
          "type": "integer",
          "format": "int32"
        },
        "epochCount": {
          "format": "int32",
          "type": "integer",
          "description": "Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used."
        }
      }
    },
    "TuningExample": {
      "description": "A single example for tuning.",
      "id": "TuningExample",
      "properties": {
        "output": {
          "description": "Required. The expected model output.",
          "type": "string"
        },
        "textInput": {
          "description": "Optional. Text model input.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "BatchCreateChunksRequest": {
      "id": "BatchCreateChunksRequest",
      "type": "object",
      "properties": {
        "requests": {
          "type": "array",
          "description": "Required. The request messages specifying the `Chunk`s to create. A maximum of 100 `Chunk`s can be created in a batch.",
          "items": {
            "$ref": "CreateChunkRequest"
          }
        }
      },
      "description": "Request to batch create `Chunk`s."
    },
    "GroundingAttribution": {
      "description": "Attribution for a source that contributed to an answer.",
      "type": "object",
      "id": "GroundingAttribution",
      "properties": {
        "content": {
          "$ref": "Content",
          "description": "Grounding source content that makes up this attribution."
        },
        "sourceId": {
          "readOnly": true,
          "description": "Output only. Identifier for the source contributing to this attribution.",
          "$ref": "AttributionSourceId"
        }
      }
    },
    "ContentFilter": {
      "description": "Content filtering metadata associated with processing a single request. ContentFilter contains a reason and an optional supporting string. The reason may be unspecified.",
      "id": "ContentFilter",
      "properties": {
        "message": {
          "description": "A string that describes the filtering behavior in more detail.",
          "type": "string"
        },
        "reason": {
          "enum": [
            "BLOCKED_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER"
          ],
          "description": "The reason content was blocked during request processing.",
          "enumDescriptions": [
            "A blocked reason was not specified.",
            "Content was blocked by safety settings.",
            "Content was blocked, but the reason is uncategorized."
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "Tool": {
      "id": "Tool",
      "properties": {
        "codeExecution": {
          "$ref": "CodeExecution",
          "description": "Optional. Enables the model to execute code as part of generation."
        },
        "functionDeclarations": {
          "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the [content.role] \"function\" generation context for the next model turn.",
          "items": {
            "$ref": "FunctionDeclaration"
          },
          "type": "array"
        }
      },
      "description": "Tool details that the model may use to generate response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the model.",
      "type": "object"
    },
    "BatchUpdateChunksRequest": {
      "description": "Request to batch update `Chunk`s.",
      "type": "object",
      "properties": {
        "requests": {
          "description": "Required. The request messages specifying the `Chunk`s to update. A maximum of 100 `Chunk`s can be updated in a batch.",
          "type": "array",
          "items": {
            "$ref": "UpdateChunkRequest"
          }
        }
      },
      "id": "BatchUpdateChunksRequest"
    },
    "RelevantChunk": {
      "description": "The information for a chunk relevant to a query.",
      "id": "RelevantChunk",
      "type": "object",
      "properties": {
        "chunk": {
          "description": "`Chunk` associated with the query.",
          "$ref": "Chunk"
        },
        "chunkRelevanceScore": {
          "type": "number",
          "format": "float",
          "description": "`Chunk` relevance to the query."
        }
      }
    },
    "Empty": {
      "properties": {},
      "id": "Empty",
      "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
      "type": "object"
    },
    "Example": {
      "id": "Example",
      "description": "An input/output example used to instruct the Model. It demonstrates how the model should respond or format its response.",
      "type": "object",
      "properties": {
        "output": {
          "$ref": "Message",
          "description": "Required. An example of what the model should output given the input."
        },
        "input": {
          "$ref": "Message",
          "description": "Required. An example of an input `Message` from the user."
        }
      }
    },
    "ExecutableCode": {
      "type": "object",
      "id": "ExecutableCode",
      "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated.",
      "properties": {
        "code": {
          "description": "Required. The code to be executed.",
          "type": "string"
        },
        "language": {
          "type": "string",
          "enumDescriptions": [
            "Unspecified language. This value should not be used.",
            "Python \u003e= 3.10, with numpy and simpy available."
          ],
          "enum": [
            "LANGUAGE_UNSPECIFIED",
            "PYTHON"
          ],
          "description": "Required. Programming language of the `code`."
        }
      }
    },
    "Corpus": {
      "properties": {
        "updateTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The Timestamp of when the `Corpus` was last updated.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\""
        },
        "name": {
          "type": "string",
          "description": "Immutable. Identifier. The `Corpus` resource name. The ID (name excluding the \"corpora/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/my-awesome-corpora-123a456b789c`"
        },
        "createTime": {
          "format": "google-datetime",
          "description": "Output only. The Timestamp of when the `Corpus` was created.",
          "readOnly": true,
          "type": "string"
        }
      },
      "description": "A `Corpus` is a collection of `Document`s. A project can create up to 5 corpora.",
      "id": "Corpus",
      "type": "object"
    },
    "EmbedTextResponse": {
      "description": "The response to a EmbedTextRequest.",
      "type": "object",
      "id": "EmbedTextResponse",
      "properties": {
        "embedding": {
          "readOnly": true,
          "$ref": "Embedding",
          "description": "Output only. The embedding generated from the input text."
        }
      }
    },
    "VideoMetadata": {
      "id": "VideoMetadata",
      "description": "Metadata for a video `File`.",
      "type": "object",
      "properties": {
        "videoDuration": {
          "type": "string",
          "description": "Duration of the video.",
          "format": "google-duration"
        }
      }
    },
    "CodeExecutionResult": {
      "type": "object",
      "properties": {
        "outcome": {
          "type": "string",
          "enum": [
            "OUTCOME_UNSPECIFIED",
            "OUTCOME_OK",
            "OUTCOME_FAILED",
            "OUTCOME_DEADLINE_EXCEEDED"
          ],
          "description": "Required. Outcome of the code execution.",
          "enumDescriptions": [
            "Unspecified status. This value should not be used.",
            "Code execution completed successfully.",
            "Code execution finished but with a failure. `stderr` should contain the reason.",
            "Code execution ran for too long, and was cancelled. There may or may not be a partial output present."
          ]
        },
        "output": {
          "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.",
          "type": "string"
        }
      },
      "description": "Result of executing the `ExecutableCode`. Only generated when using the `CodeExecution`, and always follows a `part` containing the `ExecutableCode`.",
      "id": "CodeExecutionResult"
    },
    "Chunk": {
      "description": "A `Chunk` is a subpart of a `Document` that is treated as an independent unit for the purposes of vector representation and storage. A `Corpus` can have a maximum of 1 million `Chunk`s.",
      "type": "object",
      "id": "Chunk",
      "properties": {
        "state": {
          "enumDescriptions": [
            "The default value. This value is used if the state is omitted.",
            "`Chunk` is being processed (embedding and vector storage).",
            "`Chunk` is processed and available for querying.",
            "`Chunk` failed processing."
          ],
          "enum": [
            "STATE_UNSPECIFIED",
            "STATE_PENDING_PROCESSING",
            "STATE_ACTIVE",
            "STATE_FAILED"
          ],
          "type": "string",
          "readOnly": true,
          "description": "Output only. Current state of the `Chunk`."
        },
        "customMetadata": {
          "description": "Optional. User provided custom metadata stored as key-value pairs. The maximum number of `CustomMetadata` per chunk is 20.",
          "type": "array",
          "items": {
            "$ref": "CustomMetadata"
          }
        },
        "createTime": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The Timestamp of when the `Chunk` was created."
        },
        "data": {
          "$ref": "ChunkData",
          "description": "Required. The content for the `Chunk`, such as the text string. The maximum number of tokens per chunk is 2043."
        },
        "updateTime": {
          "readOnly": true,
          "description": "Output only. The Timestamp of when the `Chunk` was last updated.",
          "type": "string",
          "format": "google-datetime"
        },
        "name": {
          "description": "Immutable. Identifier. The `Chunk` resource name. The ID (name excluding the \"corpora/*/documents/*/chunks/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a random 12-character unique ID will be generated. Example: `corpora/{corpus_id}/documents/{document_id}/chunks/123a456b789c`",
          "type": "string"
        }
      }
    },
    "GenerateMessageRequest": {
      "description": "Request to generate a message response from the model.",
      "properties": {
        "topK": {
          "description": "Optional. The maximum number of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens.",
          "type": "integer",
          "format": "int32"
        },
        "topP": {
          "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`.",
          "format": "float",
          "type": "number"
        },
        "temperature": {
          "type": "number",
          "description": "Optional. Controls the randomness of the output. Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model.",
          "format": "float"
        },
        "candidateCount": {
          "description": "Optional. The number of generated response messages to return. This value must be between `[1, 8]`, inclusive. If unset, this will default to `1`.",
          "format": "int32",
          "type": "integer"
        },
        "prompt": {
          "$ref": "MessagePrompt",
          "description": "Required. The structured textual input given to the model as a prompt. Given a prompt, the model will return what it predicts is the next message in the discussion."
        }
      },
      "type": "object",
      "id": "GenerateMessageRequest"
    },
    "BatchEmbedContentsRequest": {
      "id": "BatchEmbedContentsRequest",
      "description": "Batch request to get embeddings from the model for a list of prompts.",
      "properties": {
        "requests": {
          "type": "array",
          "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`.",
          "items": {
            "$ref": "EmbedContentRequest"
          }
        }
      },
      "type": "object"
    },
    "QueryCorpusResponse": {
      "description": "Response from `QueryCorpus` containing a list of relevant chunks.",
      "properties": {
        "relevantChunks": {
          "description": "The relevant chunks.",
          "type": "array",
          "items": {
            "$ref": "RelevantChunk"
          }
        }
      },
      "type": "object",
      "id": "QueryCorpusResponse"
    },
    "TransferOwnershipRequest": {
      "properties": {
        "emailAddress": {
          "type": "string",
          "description": "Required. The email address of the user to whom the tuned model is being transferred to."
        }
      },
      "id": "TransferOwnershipRequest",
      "type": "object",
      "description": "Request to transfer the ownership of the tuned model."
    },
    "ContentEmbedding": {
      "type": "object",
      "id": "ContentEmbedding",
      "description": "A list of floats representing an embedding.",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "type": "number",
            "format": "float"
          },
          "description": "The embedding values."
        }
      }
    },
    "EmbedTextRequest": {
      "id": "EmbedTextRequest",
      "type": "object",
      "description": "Request to get a text embedding from the model.",
      "properties": {
        "model": {
          "description": "Required. The model name to use with the format model=models/{model}.",
          "type": "string"
        },
        "text": {
          "type": "string",
          "description": "Optional. The free-form input text that the model will turn into an embedding."
        }
      }
    },
    "CountTextTokensResponse": {
      "type": "object",
      "description": "A response from `CountTextTokens`. It returns the model's `token_count` for the `prompt`.",
      "properties": {
        "tokenCount": {
          "type": "integer",
          "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative.",
          "format": "int32"
        }
      },
      "id": "CountTextTokensResponse"
    },
    "File": {
      "type": "object",
      "id": "File",
      "properties": {
        "updateTime": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The timestamp of when the `File` was last updated."
        },
        "sizeBytes": {
          "type": "string",
          "readOnly": true,
          "format": "int64",
          "description": "Output only. Size of the file in bytes."
        },
        "createTime": {
          "description": "Output only. The timestamp of when the `File` was created.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "uri": {
          "readOnly": true,
          "description": "Output only. The uri of the `File`.",
          "type": "string"
        },
        "expirationTime": {
          "format": "google-datetime",
          "type": "string",
          "readOnly": true,
          "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire."
        },
        "state": {
          "readOnly": true,
          "enumDescriptions": [
            "The default value. This value is used if the state is omitted.",
            "File is being processed and cannot be used for inference yet.",
            "File is processed and available for inference.",
            "File failed processing."
          ],
          "enum": [
            "STATE_UNSPECIFIED",
            "PROCESSING",
            "ACTIVE",
            "FAILED"
          ],
          "description": "Output only. Processing state of the File.",
          "type": "string"
        },
        "displayName": {
          "description": "Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: \"Welcome Image\"",
          "type": "string"
        },
        "error": {
          "description": "Output only. Error status if File processing failed.",
          "$ref": "Status",
          "readOnly": true
        },
        "mimeType": {
          "readOnly": true,
          "description": "Output only. MIME type of the file.",
          "type": "string"
        },
        "name": {
          "type": "string",
          "description": "Immutable. Identifier. The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`"
        },
        "videoMetadata": {
          "readOnly": true,
          "$ref": "VideoMetadata",
          "description": "Output only. Metadata for a video."
        },
        "sha256Hash": {
          "description": "Output only. SHA-256 hash of the uploaded bytes.",
          "readOnly": true,
          "format": "byte",
          "type": "string"
        }
      },
      "description": "A file uploaded to the API."
    },
    "FunctionResponse": {
      "id": "FunctionResponse",
      "type": "object",
      "description": "The result output from a `FunctionCall` that contains a string representing the `FunctionDeclaration.name` and a structured JSON object containing any output from the function is used as context to the model. This should contain the result of a`FunctionCall` made based on model prediction.",
      "properties": {
        "response": {
          "description": "Required. The function response in JSON object format.",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "type": "object"
        },
        "name": {
          "type": "string",
          "description": "Required. The name of the function to call. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 63."
        }
      }
    },
    "CodeExecution": {
      "properties": {},
      "type": "object",
      "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool.",
      "id": "CodeExecution"
    },
    "TuningExamples": {
      "description": "A set of tuning examples. Can be training or validation data.",
      "type": "object",
      "properties": {
        "examples": {
          "items": {
            "$ref": "TuningExample"
          },
          "description": "Required. The examples. Example input can be for text or discuss, but all examples in a set must be of the same type.",
          "type": "array"
        }
      },
      "id": "TuningExamples"
    },
    "Dataset": {
      "description": "Dataset for training or validation.",
      "type": "object",
      "properties": {
        "examples": {
          "$ref": "TuningExamples",
          "description": "Optional. Inline examples."
        }
      },
      "id": "Dataset"
    },
    "Document": {
      "type": "object",
      "id": "Document",
      "description": "A `Document` is a collection of `Chunk`s. A `Corpus` can have a maximum of 10,000 `Document`s.",
      "properties": {
        "createTime": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The Timestamp of when the `Document` was created.",
          "format": "google-datetime"
        },
        "name": {
          "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"corpora/*/documents/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be derived from `display_name` along with a 12 character random suffix. Example: `corpora/{corpus_id}/documents/my-awesome-doc-123a456b789c`",
          "type": "string"
        },
        "customMetadata": {
          "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.",
          "items": {
            "$ref": "CustomMetadata"
          },
          "type": "array"
        },
        "displayName": {
          "description": "Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: \"Semantic Retriever Documentation\"",
          "type": "string"
        },
        "updateTime": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The Timestamp of when the `Document` was last updated.",
          "format": "google-datetime"
        }
      }
    },
    "ListPermissionsResponse": {
      "type": "object",
      "properties": {
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",
          "type": "string"
        },
        "permissions": {
          "items": {
            "$ref": "Permission"
          },
          "type": "array",
          "description": "Returned permissions."
        }
      },
      "description": "Response from `ListPermissions` containing a paginated list of permissions.",
      "id": "ListPermissionsResponse"
    },
    "GroundingPassageId": {
      "description": "Identifier for a part within a `GroundingPassage`.",
      "id": "GroundingPassageId",
      "properties": {
        "passageId": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`."
        },
        "partIndex": {
          "format": "int32",
          "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.",
          "readOnly": true,
          "type": "integer"
        }
      },
      "type": "object"
    },
    "AttributionSourceId": {
      "properties": {
        "groundingPassage": {
          "$ref": "GroundingPassageId",
          "description": "Identifier for an inline passage."
        },
        "semanticRetrieverChunk": {
          "description": "Identifier for a `Chunk` fetched via Semantic Retriever.",
          "$ref": "SemanticRetrieverChunk"
        }
      },
      "description": "Identifier for the source contributing to this attribution.",
      "id": "AttributionSourceId",
      "type": "object"
    },
    "DeleteChunkRequest": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Required. The resource name of the `Chunk` to delete. Example: `corpora/my-corpus-123/documents/the-doc-abc/chunks/some-chunk`"
        }
      },
      "id": "DeleteChunkRequest",
      "description": "Request to delete a `Chunk`."
    },
    "Permission": {
      "id": "Permission",
      "properties": {
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only."
        },
        "role": {
          "enumDescriptions": [
            "The default value. This value is unused.",
            "Owner can use, update, share and delete the resource.",
            "Writer can use, update and share the resource.",
            "Reader can use the resource."
          ],
          "description": "Required. The role granted by this permission.",
          "enum": [
            "ROLE_UNSPECIFIED",
            "OWNER",
            "WRITER",
            "READER"
          ],
          "type": "string"
        },
        "emailAddress": {
          "type": "string",
          "description": "Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE."
        },
        "granteeType": {
          "type": "string",
          "enum": [
            "GRANTEE_TYPE_UNSPECIFIED",
            "USER",
            "GROUP",
            "EVERYONE"
          ],
          "enumDescriptions": [
            "The default value. This value is unused.",
            "Represents a user. When set, you must provide email_address for the user.",
            "Represents a group. When set, you must provide email_address for the group.",
            "Represents access to everyone. No extra information is required."
          ],
          "description": "Optional. Immutable. The type of the grantee."
        }
      },
      "description": "Permission resource grants user, group or the rest of the world access to the PaLM API resource (e.g. a tuned model, corpus). A role is a collection of permitted operations that allows users to perform specific actions on PaLM API resources. To make them available to users, groups, or service accounts, you assign roles. When you assign a role, you grant permissions that the role contains. There are three concentric roles. Each role is a superset of the previous role's permitted operations: - reader can use the resource (e.g. tuned model, corpus) for inference - writer has reader's permissions and additionally can edit and share - owner has writer's permissions and additionally can delete",
      "type": "object"
    },
    "GenerateTextResponse": {
      "description": "The response from the model, including candidate completions.",
      "id": "GenerateTextResponse",
      "type": "object",
      "properties": {
        "safetyFeedback": {
          "description": "Returns any safety feedback related to content filtering.",
          "type": "array",
          "items": {
            "$ref": "SafetyFeedback"
          }
        },
        "candidates": {
          "items": {
            "$ref": "TextCompletion"
          },
          "description": "Candidate responses from the model.",
          "type": "array"
        },
        "filters": {
          "type": "array",
          "items": {
            "$ref": "ContentFilter"
          },
          "description": "A set of content filtering metadata for the prompt and response text. This indicates which `SafetyCategory`(s) blocked a candidate from this response, the lowest `HarmProbability` that triggered a block, and the HarmThreshold setting for that category. This indicates the smallest change to the `SafetySettings` that would be necessary to unblock at least 1 response. The blocking is configured by the `SafetySettings` in the request (or the default `SafetySettings` of the API)."
        }
      }
    }
  },
  "basePath": "",
  "batchPath": "batch",
  "version_module": true,
  "protocol": "rest",
  "icons": {
    "x32": "http://www.google.com/images/icons/product/search-32.gif",
    "x16": "http://www.google.com/images/icons/product/search-16.gif"
  },
  "canonicalName": "Generative Language",
  "baseUrl": "https://generativelanguage.googleapis.com/",
  "description": "The Gemini API allows developers to build generative AI applications using Gemini models. Gemini is our most capable model, built from the ground up to be multimodal. It can generalize and seamlessly understand, operate across, and combine different types of information including language, images, audio, video, and code. You can use the Gemini API for use cases like reasoning across text and images, content generation, dialogue agents, summarization and classification systems, and more.",
  "version": "v1beta",
  "mtlsRootUrl": "https://generativelanguage.mtls.googleapis.com/",
  "id": "generativelanguage:v1beta",
  "ownerName": "Google"
}
