{
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/devstorage.read_only": {
          "description": "View your data in Google Cloud Storage"
        }
      }
    }
  },
  "revision": "20260901",
  "documentationLink": "https://developers.generativeai.google/api",
  "baseUrl": "https://generativelanguage.googleapis.com/",
  "version": "v1beta",
  "servicePath": "",
  "parameters": {
    "upload_protocol": {
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "location": "query"
    },
    "oauth_token": {
      "location": "query",
      "description": "OAuth 2.0 token for the current user.",
      "type": "string"
    },
    "key": {
      "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.",
      "type": "string",
      "location": "query"
    },
    "access_token": {
      "location": "query",
      "description": "OAuth access token.",
      "type": "string"
    },
    "quotaUser": {
      "location": "query",
      "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"
    },
    "alt": {
      "type": "string",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "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",
      "location": "query",
      "description": "Data format for response."
    },
    "fields": {
      "description": "Selector specifying which fields to include in a partial response.",
      "location": "query",
      "type": "string"
    },
    "uploadType": {
      "type": "string",
      "location": "query",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
    },
    "$.xgafv": {
      "location": "query",
      "description": "V1 error format.",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ],
      "type": "string",
      "enum": [
        "1",
        "2"
      ]
    },
    "prettyPrint": {
      "type": "boolean",
      "location": "query",
      "default": "true",
      "description": "Returns response with indentations and line breaks."
    },
    "callback": {
      "type": "string",
      "location": "query",
      "description": "JSONP"
    }
  },
  "discoveryVersion": "v1",
  "ownerName": "Google",
  "name": "generativelanguage",
  "basePath": "",
  "fullyEncodeReservedExpansion": true,
  "ownerDomain": "google.com",
  "rootUrl": "https://generativelanguage.googleapis.com/",
  "batchPath": "batch",
  "canonicalName": "Generative Language",
  "version_module": true,
  "schemas": {
    "Content": {
      "id": "Content",
      "type": "object",
      "properties": {
        "role": {
          "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.",
          "type": "string"
        },
        "parts": {
          "type": "array",
          "items": {
            "$ref": "Part"
          },
          "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types."
        }
      },
      "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."
    },
    "WordInfo": {
      "description": "Information about a single recognized word.",
      "id": "WordInfo",
      "type": "object",
      "properties": {
        "startOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "Optional. Start offset in time of the word relative to the start of the audio."
        },
        "endOffset": {
          "type": "string",
          "format": "google-duration",
          "description": "Optional. End offset in time of the word relative to the start of the audio."
        },
        "word": {
          "description": "Required. Transcript of the word.",
          "type": "string"
        }
      }
    },
    "BatchEmbedContentsRequest": {
      "properties": {
        "requests": {
          "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": "array"
        }
      },
      "type": "object",
      "description": "Batch request to get embeddings from the model for a list of prompts.",
      "id": "BatchEmbedContentsRequest"
    },
    "AttributionSourceId": {
      "description": "Identifier for the source contributing to this attribution.",
      "type": "object",
      "properties": {
        "semanticRetrieverChunk": {
          "$ref": "SemanticRetrieverChunk",
          "description": "Identifier for a `Chunk` fetched via Semantic Retriever."
        },
        "groundingPassage": {
          "$ref": "GroundingPassageId",
          "description": "Identifier for an inline passage."
        }
      },
      "id": "AttributionSourceId"
    },
    "Hyperparameters": {
      "type": "object",
      "id": "Hyperparameters",
      "properties": {
        "learningRate": {
          "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.",
          "format": "float",
          "type": "number"
        },
        "epochCount": {
          "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.",
          "format": "int32"
        },
        "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"
        },
        "learningRateMultiplier": {
          "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.",
          "format": "float",
          "type": "number"
        }
      },
      "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance"
    },
    "LogprobsResultCandidate": {
      "description": "Candidate for the logprobs token and score.",
      "type": "object",
      "id": "LogprobsResultCandidate",
      "properties": {
        "token": {
          "description": "The candidate’s token string value.",
          "type": "string"
        },
        "logProbability": {
          "type": "number",
          "description": "The candidate's log probability.",
          "format": "float"
        },
        "tokenId": {
          "type": "integer",
          "description": "The candidate’s token id value.",
          "format": "int32"
        }
      }
    },
    "Candidate": {
      "description": "A response candidate generated from the model.",
      "id": "Candidate",
      "type": "object",
      "properties": {
        "logprobsResult": {
          "description": "Output only. Log-likelihood scores for the response tokens and top tokens",
          "readOnly": true,
          "$ref": "LogprobsResult"
        },
        "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."
        },
        "finishReason": {
          "type": "string",
          "enum": [
            "FINISH_REASON_UNSPECIFIED",
            "STOP",
            "MAX_TOKENS",
            "SAFETY",
            "RECITATION",
            "LANGUAGE",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "SPII",
            "MALFORMED_FUNCTION_CALL",
            "IMAGE_SAFETY",
            "IMAGE_PROHIBITED_CONTENT",
            "IMAGE_OTHER",
            "NO_IMAGE",
            "IMAGE_RECITATION",
            "UNEXPECTED_TOOL_CALL",
            "TOO_MANY_TOOL_CALLS",
            "MISSING_THOUGHT_SIGNATURE",
            "MALFORMED_RESPONSE",
            "ESCALATION",
            "PUP_LIMITED_DISABLED"
          ],
          "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.",
          "readOnly": true,
          "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 response candidate content was flagged for safety reasons.",
            "The response candidate content was flagged for recitation reasons.",
            "The response candidate content was flagged for using an unsupported language.",
            "Unknown reason.",
            "Token generation stopped because the content contains forbidden terms.",
            "Token generation stopped for potentially containing prohibited content.",
            "Token generation stopped because the content potentially contains Sensitive Personally Identifiable Information (SPII).",
            "The function call generated by the model is invalid.",
            "Token generation stopped because generated images contain safety violations.",
            "Image generation stopped because generated images has other prohibited content.",
            "Image generation stopped because of other miscellaneous issue.",
            "The model was expected to generate an image, but none was generated.",
            "Image generation stopped due to recitation.",
            "Model generated a tool call but no tools were enabled in the request.",
            "Model called too many tools consecutively, thus the system exited execution.",
            "Request has at least one thought signature missing.",
            "Finished due to malformed response.",
            "Request was filtered by an escalation rule.",
            "Indicates that token generation stopped because the user account is limited or disabled due to Prohibited Use Policy (PUP) violations."
          ]
        },
        "safetyRatings": {
          "items": {
            "$ref": "SafetyRating"
          },
          "type": "array",
          "description": "List of ratings for the safety of a response candidate. There is at most one rating per category."
        },
        "avgLogprobs": {
          "description": "Output only. Average log probability score of the candidate.",
          "readOnly": true,
          "format": "double",
          "type": "number"
        },
        "urlContextMetadata": {
          "readOnly": true,
          "$ref": "UrlContextMetadata",
          "description": "Output only. Metadata related to url context retrieval tool."
        },
        "groundingAttributions": {
          "items": {
            "$ref": "GroundingAttribution"
          },
          "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.",
          "type": "array",
          "readOnly": true
        },
        "tokenCount": {
          "format": "int32",
          "description": "Output only. Token count for this candidate.",
          "readOnly": true,
          "type": "integer"
        },
        "index": {
          "description": "Output only. Index of the candidate in the list of response candidates.",
          "type": "integer",
          "readOnly": true,
          "format": "int32"
        },
        "groundingMetadata": {
          "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls.",
          "readOnly": true,
          "$ref": "GroundingMetadata"
        },
        "content": {
          "readOnly": true,
          "$ref": "Content",
          "description": "Output only. Generated content returned from the model."
        },
        "finishMessage": {
          "readOnly": true,
          "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.",
          "type": "string"
        }
      }
    },
    "PrebuiltVoiceConfig": {
      "properties": {
        "voiceName": {
          "type": "string",
          "description": "Optional. The name of the preset voice to use."
        }
      },
      "description": "The configuration for the prebuilt speaker to use.",
      "type": "object",
      "id": "PrebuiltVoiceConfig"
    },
    "CountTextTokensRequest": {
      "properties": {
        "prompt": {
          "description": "Required. The free-form input text given to the model as a prompt.",
          "$ref": "TextPrompt"
        }
      },
      "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`.",
      "id": "CountTextTokensRequest"
    },
    "EmbedTextResponse": {
      "id": "EmbedTextResponse",
      "type": "object",
      "properties": {
        "embedding": {
          "$ref": "Embedding",
          "readOnly": true,
          "description": "Output only. The embedding generated from the input text."
        }
      },
      "description": "The response to a EmbedTextRequest."
    },
    "CountMessageTokensRequest": {
      "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",
      "properties": {
        "prompt": {
          "$ref": "MessagePrompt",
          "description": "Required. The prompt, whose token count is to be returned."
        }
      },
      "id": "CountMessageTokensRequest"
    },
    "InlinedEmbedContentResponse": {
      "description": "The response to a single request in the batch.",
      "type": "object",
      "properties": {
        "metadata": {
          "description": "Output only. The metadata associated with the request.",
          "readOnly": true,
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "type": "object"
        },
        "response": {
          "description": "Output only. The response to the request.",
          "$ref": "EmbedContentResponse",
          "readOnly": true
        },
        "error": {
          "description": "Output only. The error encountered while processing the request.",
          "readOnly": true,
          "$ref": "Status"
        }
      },
      "id": "InlinedEmbedContentResponse"
    },
    "GenerateContentRequest": {
      "id": "GenerateContentRequest",
      "properties": {
        "store": {
          "type": "boolean",
          "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config."
        },
        "model": {
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
          "type": "string"
        },
        "tools": {
          "items": {
            "$ref": "Tool"
          },
          "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`. Supported `Tool`s are `Function` and `code_execution`. Refer to the [Function calling](https://ai.google.dev/gemini-api/docs/function-calling) and the [Code execution](https://ai.google.dev/gemini-api/docs/code-execution) guides to learn more."
        },
        "generationConfig": {
          "$ref": "GenerationConfig",
          "description": "Optional. Configuration options for model generation and outputs."
        },
        "cachedContent": {
          "type": "string",
          "description": "Optional. The name of the content [cached](https://ai.google.dev/gemini-api/docs/caching) to use as context to serve the prediction. Format: `cachedContents/{cachedContent}`"
        },
        "serviceTier": {
          "description": "Optional. The service tier of the request.",
          "enumDescriptions": [
            "Default service tier, which is standard.",
            "Standard service tier.",
            "Flex service tier.",
            "Priority service tier."
          ],
          "type": "string",
          "enum": [
            "unspecified",
            "standard",
            "flex",
            "priority"
          ]
        },
        "systemInstruction": {
          "$ref": "Content",
          "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only."
        },
        "contents": {
          "description": "Required. The content of the current conversation with the model. For single-turn queries, this is a single instance. For multi-turn queries like [chat](https://ai.google.dev/gemini-api/docs/text-generation#chat), this is a repeated field that contains the conversation history and the latest request.",
          "type": "array",
          "items": {
            "$ref": "Content"
          }
        },
        "toolConfig": {
          "$ref": "ToolConfig",
          "description": "Optional. Tool configuration for any `Tool` specified in the request. Refer to the [Function calling guide](https://ai.google.dev/gemini-api/docs/function-calling#function_calling_mode) for a usage example."
        },
        "safetySettings": {
          "items": {
            "$ref": "SafetySetting"
          },
          "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, HARM_CATEGORY_CIVIC_INTEGRITY, HARM_CATEGORY_JAILBREAK are supported. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.",
          "type": "array"
        }
      },
      "description": "Request to generate a completion from the model.",
      "type": "object"
    },
    "EmbedContentRequest": {
      "description": "Request containing the `Content` for the model to embed.",
      "id": "EmbedContentRequest",
      "type": "object",
      "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"
        },
        "embedContentConfig": {
          "description": "Optional. Configuration for the EmbedContent request.",
          "$ref": "EmbedContentConfig"
        },
        "taskType": {
          "description": "Optional. Deprecated: Please use EmbedContentConfig.task_type instead. Optional task type for which the embeddings will be used. Not supported on earlier models (`models/embedding-001`).",
          "type": "string",
          "enum": [
            "TASK_TYPE_UNSPECIFIED",
            "RETRIEVAL_QUERY",
            "RETRIEVAL_DOCUMENT",
            "SEMANTIC_SIMILARITY",
            "CLASSIFICATION",
            "CLUSTERING",
            "QUESTION_ANSWERING",
            "FACT_VERIFICATION",
            "CODE_RETRIEVAL_QUERY"
          ],
          "deprecated": true,
          "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.",
            "Specifies that the given text will be used for code retrieval."
          ]
        },
        "outputDimensionality": {
          "description": "Optional. Deprecated: Please use EmbedContentConfig.output_dimensionality instead. 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 only. You cannot set this value if using the earlier model (`models/embedding-001`).",
          "deprecated": true,
          "format": "int32",
          "type": "integer"
        },
        "title": {
          "deprecated": true,
          "type": "string",
          "description": "Optional. Deprecated: Please use EmbedContentConfig.title instead. 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."
        },
        "content": {
          "description": "Required. The content to embed. Only the `parts.text` fields will be counted.",
          "$ref": "Content"
        }
      }
    },
    "AudioResponseFormat": {
      "id": "AudioResponseFormat",
      "properties": {
        "sampleRate": {
          "description": "Optional. Sample rate in Hz.",
          "format": "int32",
          "type": "integer"
        },
        "bitRate": {
          "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus).",
          "type": "integer",
          "format": "int32"
        },
        "mimeType": {
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "AUDIO_MP3",
            "AUDIO_OGG_OPUS",
            "AUDIO_L16",
            "AUDIO_WAV",
            "AUDIO_ALAW",
            "AUDIO_MULAW"
          ],
          "description": "Optional. The MIME type of the audio output.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "MP3 audio format.",
            "OGG Opus audio format.",
            "Raw PCM (L16) audio format.",
            "WAV audio format.",
            "A-law audio format.",
            "Mu-law audio format."
          ]
        },
        "delivery": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Audio data is returned inline in the response.",
            "Audio data is returned as a URI."
          ],
          "type": "string",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "description": "Optional. The delivery mode for the audio output."
        }
      },
      "type": "object",
      "description": "Configuration for audio output format."
    },
    "GetEnvironmentFilesResponse": {
      "id": "GetEnvironmentFilesResponse",
      "properties": {
        "files": {
          "description": "If the requested path is a directory, this contains its contents. If the requested path is a file, this contains a single entry with the file's metadata. If alt=media was specified, this is empty (content is served via `blob`).",
          "items": {
            "$ref": "EnvironmentFile"
          },
          "type": "array"
        },
        "next_page_token": {
          "description": "Pagination token for directory listing. NOLINT",
          "type": "string"
        }
      },
      "description": "Response for `GetEnvironmentFiles`.",
      "type": "object"
    },
    "SearchEntryPoint": {
      "description": "Google search entry point.",
      "properties": {
        "renderedContent": {
          "type": "string",
          "description": "Optional. Web content snippet that can be embedded in a web page or an app webview."
        },
        "sdkBlob": {
          "description": "Optional. Base64 encoded JSON representing array of tuple.",
          "type": "string",
          "format": "byte"
        }
      },
      "id": "SearchEntryPoint",
      "type": "object"
    },
    "ToolCall": {
      "type": "object",
      "description": "A predicted server-side `ToolCall` returned from the model. This message contains information about a tool that the model wants to invoke. The client is NOT expected to execute this `ToolCall`. Instead, the client should pass this `ToolCall` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolResponse`.",
      "id": "ToolCall",
      "properties": {
        "toolType": {
          "type": "string",
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH"
          ],
          "description": "Required. The type of tool that was called.",
          "enumDescriptions": [
            "Unspecified tool type.",
            "Google search tool, maps to Tool.google_search.search_types.web_search.",
            "Image search tool, maps to Tool.google_search.search_types.image_search.",
            "URL context tool, maps to Tool.url_context.",
            "Google maps tool, maps to Tool.google_maps.",
            "File search tool, maps to Tool.file_search."
          ]
        },
        "args": {
          "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}",
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        },
        "toolName": {
          "description": "Optional. The name of the tool that was called.",
          "type": "string"
        },
        "id": {
          "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`.",
          "type": "string"
        }
      }
    },
    "CachedContent": {
      "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.",
      "properties": {
        "model": {
          "type": "string",
          "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`"
        },
        "systemInstruction": {
          "$ref": "Content",
          "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only."
        },
        "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"
        },
        "createTime": {
          "format": "google-datetime",
          "description": "Output only. Creation time of the cache entry.",
          "readOnly": true,
          "type": "string"
        },
        "updateTime": {
          "description": "Output only. When the cache entry was last updated in UTC time.",
          "format": "google-datetime",
          "readOnly": true,
          "type": "string"
        },
        "contents": {
          "items": {
            "$ref": "Content"
          },
          "type": "array",
          "description": "Optional. Input only. Immutable. The content to cache."
        },
        "usageMetadata": {
          "$ref": "CachedContentUsageMetadata",
          "description": "Output only. Metadata on the usage of the cached content.",
          "readOnly": true
        },
        "name": {
          "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`",
          "readOnly": true,
          "type": "string"
        },
        "tools": {
          "type": "array",
          "items": {
            "$ref": "Tool"
          },
          "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response"
        },
        "displayName": {
          "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.",
          "type": "string"
        },
        "toolConfig": {
          "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools.",
          "$ref": "ToolConfig"
        },
        "ttl": {
          "description": "Input only. New TTL for this resource, input only.",
          "format": "google-duration",
          "type": "string"
        }
      },
      "type": "object",
      "id": "CachedContent"
    },
    "V1mainMediaResolution": {
      "id": "V1mainMediaResolution",
      "type": "object",
      "description": "Media resolution for tokenization.",
      "properties": {
        "level": {
          "description": "The tokenization quality used for given media. for Gemini API support .",
          "type": "string",
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH",
            "MEDIA_RESOLUTION_ULTRA_HIGH"
          ],
          "enumDescriptions": [
            "Media resolution has not been set.",
            "Media resolution set to low.",
            "Media resolution set to medium.",
            "Media resolution set to high.",
            "Media resolution set to ultra high."
          ]
        }
      }
    },
    "BatchGenerateContentRequest": {
      "type": "object",
      "description": "Request for a `BatchGenerateContent` operation.",
      "id": "BatchGenerateContentRequest",
      "properties": {
        "batch": {
          "$ref": "GenerateContentBatch",
          "description": "Required. The batch to create."
        }
      }
    },
    "AudioTranscriptionConfig": {
      "type": "object",
      "description": "The audio transcription configuration.",
      "id": "AudioTranscriptionConfig",
      "properties": {
        "adaptationPhrases": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms.",
          "deprecated": true
        },
        "mode": {
          "enumDescriptions": [
            "Unspecified transcription mode.",
            "Verbatim transcription mode.",
            "Smart transcription mode."
          ],
          "description": "Optional. Configures transcription mode. Supported values: `VERBATIM`, `SMART`. If unspecified, defaults to `VERBATIM` transcription. In `SMART` mode, the model performs disfluency removal (eliminating filler words, repetitions, and false starts), light grammatical cleanup, automatic formatting (paragraphs, bullet points, numbered lists), and minor user edits (inline self-corrections). Timestamps and diarization are incompatible with mode `SMART`.",
          "type": "string",
          "enum": [
            "MODE_UNSPECIFIED",
            "VERBATIM",
            "SMART"
          ]
        },
        "diarization": {
          "description": "Optional. Configures speaker diarization.",
          "type": "boolean"
        },
        "languageAuto": {
          "$ref": "LanguageAuto",
          "description": "Optional. The model will detect the language automatically.",
          "deprecated": true
        },
        "customVocabulary": {
          "description": "Optional. A list of custom vocabulary phrases to bias the speech recognition model toward recognizing specific terms (product names, proper nouns, jargon).",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "languageHints": {
          "description": "Optional. Specifies one or more languages in the audio.",
          "deprecated": true,
          "$ref": "LanguageHints"
        },
        "languageCodes": {
          "description": "Optional. BCP-47 language codes providing hints about the languages present in the audio. If omitted or empty, defaults to automatic language detection.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "wordTimestamp": {
          "type": "boolean",
          "description": "Optional. Configures word-level timestamp generation."
        }
      }
    },
    "TranslationConfig": {
      "description": "Config for translation features.",
      "properties": {
        "echoTargetLanguage": {
          "type": "boolean",
          "description": "Optional. If true, the model will generate audio when the target language is spoken, essentially it will parrot the input. If false, we will not produce audio for the target language."
        },
        "targetLanguageCode": {
          "type": "string",
          "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")."
        }
      },
      "type": "object",
      "id": "TranslationConfig"
    },
    "LanguageHints": {
      "description": "Provides hints to the model about possible languages present in the audio.",
      "deprecated": true,
      "type": "object",
      "id": "LanguageHints",
      "properties": {
        "languageCodes": {
          "deprecated": true,
          "description": "Required. BCP-47 language codes.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      }
    },
    "GroundingChunkStringList": {
      "id": "GroundingChunkStringList",
      "properties": {
        "values": {
          "type": "array",
          "description": "The string values of the list.",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object",
      "description": "A list of string values."
    },
    "FunctionResponsePart": {
      "properties": {
        "inlineData": {
          "description": "Inline media bytes.",
          "$ref": "FunctionResponseBlob"
        }
      },
      "id": "FunctionResponsePart",
      "description": "A datatype containing media that is part of a `FunctionResponse` message. A `FunctionResponsePart` consists of data which has an associated datatype. A `FunctionResponsePart` can only contain one of the accepted types in `FunctionResponsePart.data`. A `FunctionResponsePart` 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.",
      "type": "object"
    },
    "WhiteSpaceConfig": {
      "type": "object",
      "id": "WhiteSpaceConfig",
      "description": "Configuration for a white space chunking algorithm [white space delimited].",
      "properties": {
        "maxOverlapTokens": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum number of overlapping tokens between two adjacent chunks."
        },
        "maxTokensPerChunk": {
          "format": "int32",
          "type": "integer",
          "description": "Maximum number of tokens per chunk. Tokens are defined as words for this chunking algorithm. Note: we are defining tokens as words split by whitespace as opposed to the output of a tokenizer. The context window of the latest gemini embedding model as of 2025-04-17 is currently 8192 tokens. We assume that the average word is 5 characters. Therefore, we set the upper limit to 2**9, which is 512 words, or 2560 tokens, assuming worst case a character per token. This is a conservative estimate meant to prevent context window overflow."
        }
      }
    },
    "ListPermissionsResponse": {
      "type": "object",
      "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."
        },
        "permissions": {
          "type": "array",
          "description": "Returned permissions.",
          "items": {
            "$ref": "Permission"
          }
        }
      },
      "id": "ListPermissionsResponse",
      "description": "Response from `ListPermissions` containing a paginated list of permissions."
    },
    "SpeakerVoiceConfig": {
      "description": "The configuration for a single speaker in a multi speaker setup.",
      "type": "object",
      "id": "SpeakerVoiceConfig",
      "properties": {
        "voiceConfig": {
          "description": "Required. The configuration for the voice to use.",
          "$ref": "VoiceConfig"
        },
        "speaker": {
          "type": "string",
          "description": "Required. The name of the speaker to use. Should be the same as in the prompt."
        }
      }
    },
    "CitationSource": {
      "description": "A citation to a source for a portion of a specific response.",
      "id": "CitationSource",
      "properties": {
        "uri": {
          "description": "Optional. URI that is attributed as a source for a portion of the text.",
          "type": "string"
        },
        "license": {
          "type": "string",
          "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations."
        },
        "startIndex": {
          "format": "int32",
          "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.",
          "type": "integer"
        },
        "endIndex": {
          "type": "integer",
          "description": "Optional. End of the attributed segment, exclusive.",
          "format": "int32"
        }
      },
      "type": "object"
    },
    "GenerateAnswerResponse": {
      "id": "GenerateAnswerResponse",
      "description": "Response from the model for a grounded answer.",
      "properties": {
        "inputFeedback": {
          "readOnly": true,
          "$ref": "InputFeedback",
          "description": "Output only. Feedback related to the input data used to answer the question, as opposed to the model-generated response to the question. The 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`)"
        },
        "answerableProbability": {
          "readOnly": true,
          "format": "float",
          "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, you may want 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 use cases. `0.5` is a good starting threshold."
        },
        "answer": {
          "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`.",
          "$ref": "Candidate"
        }
      },
      "type": "object"
    },
    "ContentTypeInfo": {
      "id": "ContentTypeInfo",
      "description": "Detailed Content-Type information from Scotty. The Content-Type of the media will typically be filled in by the header or Scotty's best_guess, but this extended information provides the backend with more information so that it can make a better decision if needed. This is only used on media upload requests from Scotty.",
      "type": "object",
      "properties": {
        "fromUrlPath": {
          "type": "string",
          "description": "The content type of the file derived from the file extension of the URL path. The URL path is assumed to represent a file name (which is typically only true for agents that are providing a REST API)."
        },
        "fromHeader": {
          "description": "The content type of the file as specified in the request headers, multipart headers, or RUPIO start request.",
          "type": "string"
        },
        "fromBytes": {
          "description": "The content type of the file derived by looking at specific bytes (i.e. \"magic bytes\") of the actual file.",
          "type": "string"
        },
        "fromFusionId": {
          "type": "string",
          "description": "The content type of the file detected by Fusion ID. go/fusionid"
        },
        "fusionIdDetectionMetadata": {
          "format": "byte",
          "type": "string",
          "description": "Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only set if from_fusion_id is set."
        },
        "bestGuess": {
          "description": "Scotty's best guess of what the content type of the file is.",
          "type": "string"
        },
        "fromFileName": {
          "description": "The content type of the file derived from the file extension of the original file name used by the client.",
          "type": "string"
        }
      }
    },
    "ListModelsResponse": {
      "id": "ListModelsResponse",
      "type": "object",
      "description": "Response from `ListModel` containing a paginated list of Models.",
      "properties": {
        "models": {
          "description": "The returned Models.",
          "items": {
            "$ref": "Model"
          },
          "type": "array"
        },
        "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"
        }
      }
    },
    "GenerateMessageRequest": {
      "description": "Request to generate a message response from the model.",
      "properties": {
        "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"
        },
        "prompt": {
          "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.",
          "$ref": "MessagePrompt"
        },
        "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`.",
          "type": "number",
          "format": "float"
        },
        "candidateCount": {
          "type": "integer",
          "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"
        },
        "topK": {
          "format": "int32",
          "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."
        }
      },
      "id": "GenerateMessageRequest",
      "type": "object"
    },
    "GoogleAiGenerativelanguageV1betaSegment": {
      "type": "object",
      "properties": {
        "endIndex": {
          "format": "int32",
          "description": "End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.",
          "type": "integer"
        },
        "startIndex": {
          "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.",
          "format": "int32",
          "type": "integer"
        },
        "partIndex": {
          "format": "int32",
          "description": "The index of a Part object within its parent Content object.",
          "type": "integer"
        },
        "text": {
          "description": "The text corresponding to the segment from the response.",
          "type": "string"
        }
      },
      "description": "Segment of the content.",
      "id": "GoogleAiGenerativelanguageV1betaSegment"
    },
    "GenerateContentBatch": {
      "description": "A resource representing a batch of `GenerateContent` requests.",
      "properties": {
        "inputConfig": {
          "description": "Required. Input configuration of the instances on which batch processing are performed.",
          "$ref": "InputConfig"
        },
        "priority": {
          "format": "int64",
          "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.",
          "type": "string"
        },
        "endTime": {
          "format": "google-datetime",
          "readOnly": true,
          "description": "Output only. The time at which the batch processing completed.",
          "type": "string"
        },
        "output": {
          "readOnly": true,
          "$ref": "GenerateContentBatchOutput",
          "description": "Output only. The output of the batch request."
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`."
        },
        "state": {
          "type": "string",
          "enum": [
            "BATCH_STATE_UNSPECIFIED",
            "BATCH_STATE_PENDING",
            "BATCH_STATE_RUNNING",
            "BATCH_STATE_SUCCEEDED",
            "BATCH_STATE_FAILED",
            "BATCH_STATE_CANCELLED",
            "BATCH_STATE_EXPIRED"
          ],
          "enumDescriptions": [
            "The batch state is unspecified.",
            "The service is preparing to run the batch.",
            "The batch is in progress.",
            "The batch completed successfully.",
            "The batch failed.",
            "The batch has been cancelled.",
            "The batch has expired."
          ],
          "readOnly": true,
          "description": "Output only. The state of the batch."
        },
        "model": {
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
          "type": "string"
        },
        "createTime": {
          "type": "string",
          "description": "Output only. The time at which the batch was created.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "updateTime": {
          "readOnly": true,
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. The time at which the batch was last updated."
        },
        "batchStats": {
          "$ref": "BatchStats",
          "description": "Output only. Stats about the batch.",
          "readOnly": true
        },
        "displayName": {
          "description": "Required. The user-defined name of this batch.",
          "type": "string"
        }
      },
      "id": "GenerateContentBatch",
      "type": "object"
    },
    "GroundingMetadata": {
      "type": "object",
      "id": "GroundingMetadata",
      "description": "Metadata returned to client when grounding is enabled.",
      "properties": {
        "searchEntryPoint": {
          "description": "Optional. Google search entry for the following-up web searches.",
          "$ref": "SearchEntryPoint"
        },
        "groundingChunks": {
          "description": "List of supporting references retrieved from specified grounding source. When streaming, this only contains the grounding chunks that have not been included in the grounding metadata of previous responses.",
          "items": {
            "$ref": "GroundingChunk"
          },
          "type": "array"
        },
        "webSearchQueries": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Web search queries for the following-up web search."
        },
        "groundingSupports": {
          "description": "List of grounding support.",
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaGroundingSupport"
          },
          "type": "array"
        },
        "retrievalMetadata": {
          "description": "Metadata related to retrieval in the grounding flow.",
          "$ref": "RetrievalMetadata"
        },
        "imageSearchQueries": {
          "description": "Image search queries used for grounding.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "googleMapsWidgetContextToken": {
          "description": "Optional. Resource name of the Google Maps widget context token that can be used with the PlacesContextElement widget in order to render contextual data. Only populated in the case that grounding with Google Maps is enabled.",
          "type": "string"
        }
      }
    },
    "Embedding": {
      "type": "object",
      "description": "A list of floats representing the embedding.",
      "id": "Embedding",
      "properties": {
        "value": {
          "description": "The embedding values.",
          "type": "array",
          "items": {
            "format": "float",
            "type": "number"
          }
        }
      }
    },
    "ToolConfig": {
      "type": "object",
      "properties": {
        "functionCallingConfig": {
          "description": "Optional. Function calling config.",
          "$ref": "FunctionCallingConfig"
        },
        "includeServerSideToolInvocations": {
          "type": "boolean",
          "description": "Optional. If true, the API response will include the server-side tool calls and responses within the `Content` message. This allows clients to observe the server's tool interactions."
        },
        "retrievalConfig": {
          "description": "Optional. Retrieval config.",
          "$ref": "RetrievalConfig"
        }
      },
      "id": "ToolConfig",
      "description": "The Tool configuration containing parameters for specifying `Tool` use in the request."
    },
    "TextResponseFormat": {
      "type": "object",
      "id": "TextResponseFormat",
      "properties": {
        "schema": {
          "type": "any",
          "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON."
        },
        "mimeType": {
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "APPLICATION_JSON",
            "TEXT_PLAIN"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JSON output format.",
            "Plain text output format."
          ],
          "description": "Optional. The MIME type of the text output."
        }
      },
      "description": "Configuration for text output format."
    },
    "InlinedEmbedContentRequests": {
      "description": "The requests to be processed in the batch if provided as part of the batch creation request.",
      "id": "InlinedEmbedContentRequests",
      "type": "object",
      "properties": {
        "requests": {
          "items": {
            "$ref": "InlinedEmbedContentRequest"
          },
          "type": "array",
          "description": "Required. The requests to be processed in the batch."
        }
      }
    },
    "BidiGenerateContentSetup": {
      "properties": {
        "historyConfig": {
          "$ref": "HistoryConfig",
          "description": "Optional. Configures the exchange of history between the client and the server."
        },
        "inputAudioTranscription": {
          "$ref": "AudioTranscriptionConfig",
          "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured."
        },
        "model": {
          "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`",
          "type": "string"
        },
        "tools": {
          "type": "array",
          "items": {
            "$ref": "Tool"
          },
          "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."
        },
        "systemInstruction": {
          "description": "Optional. The user provided system instructions for the model. Note: Only text should be used in parts and content in each part will be in a separate paragraph.",
          "$ref": "Content"
        },
        "sessionResumption": {
          "$ref": "SessionResumptionConfig",
          "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages."
        },
        "realtimeInputConfig": {
          "description": "Optional. Configures the handling of realtime input.",
          "$ref": "RealtimeInputConfig"
        },
        "contextWindowCompression": {
          "$ref": "ContextWindowCompressionConfig",
          "description": "Optional. Configures a context window compression mechanism. If included, the server will automatically reduce the size of the context when it exceeds the configured length."
        },
        "generationConfig": {
          "description": "Optional. Generation config. The following fields are not supported: - `response_logprobs` - `response_mime_type` - `logprobs` - `response_schema` - `response_json_schema` - `stop_sequence` - `skip_response_cache` - `routing_config` - `audio_timestamp`",
          "$ref": "GenerationConfig"
        },
        "outputAudioTranscription": {
          "$ref": "AudioTranscriptionConfig",
          "description": "Optional. If set, enables transcription of the model's audio output. The transcription aligns with the language code specified for the output audio, if configured."
        }
      },
      "id": "BidiGenerateContentSetup",
      "description": "Message to be sent in the first (and only in the first) `BidiGenerateContentClientMessage`. Contains configuration that will apply for the duration of the streaming RPC. Clients should wait for a `BidiGenerateContentSetupComplete` message before sending any additional messages.",
      "type": "object"
    },
    "ListCorporaResponse": {
      "id": "ListCorporaResponse",
      "properties": {
        "corpora": {
          "items": {
            "$ref": "Corpus"
          },
          "type": "array",
          "description": "The returned corpora."
        },
        "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 `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`."
    },
    "SlidingWindow": {
      "description": "The SlidingWindow method operates by discarding content at the beginning of the context window. The resulting context will always begin at the start of a USER role turn. System instructions and any `BidiGenerateContentSetup.prefix_turns` will always remain at the beginning of the result.",
      "type": "object",
      "properties": {
        "targetTokens": {
          "description": "The target number of tokens to keep. The default value is trigger_tokens/2. Discarding parts of the context window causes a temporary latency increase so this value should be calibrated to avoid frequent compression operations.",
          "type": "string",
          "format": "int64"
        }
      },
      "id": "SlidingWindow"
    },
    "TuningSnapshot": {
      "id": "TuningSnapshot",
      "properties": {
        "meanLoss": {
          "type": "number",
          "description": "Output only. The mean loss of the training examples for this step.",
          "readOnly": true,
          "format": "float"
        },
        "step": {
          "readOnly": true,
          "type": "integer",
          "format": "int32",
          "description": "Output only. The tuning step."
        },
        "epoch": {
          "readOnly": true,
          "type": "integer",
          "format": "int32",
          "description": "Output only. The epoch this step was part of."
        },
        "computeTime": {
          "type": "string",
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The timestamp when this metric was computed."
        }
      },
      "description": "Record for a single tuning step.",
      "type": "object"
    },
    "CountTokensRequest": {
      "id": "CountTokensRequest",
      "type": "object",
      "properties": {
        "contents": {
          "items": {
            "$ref": "Content"
          },
          "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.",
          "type": "array"
        },
        "generateContentRequest": {
          "$ref": "GenerateContentRequest",
          "description": "Optional. The overall input given to the `Model`. This includes the prompt as well as other model steering information like [system instructions](https://ai.google.dev/gemini-api/docs/system-instructions), and/or function declarations for [function calling](https://ai.google.dev/gemini-api/docs/function-calling). `Model`s/`Content`s and `generate_content_request`s are mutually exclusive. You can either send `Model` + `Content`s or a `generate_content_request`, but never both."
        }
      },
      "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`."
    },
    "CountMessageTokensResponse": {
      "type": "object",
      "description": "A response from `CountMessageTokens`. 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": "CountMessageTokensResponse"
    },
    "SafetySetting": {
      "type": "object",
      "id": "SafetySetting",
      "description": "Safety setting, affecting the safety-blocking behavior. Passing a safety setting for a category changes the allowed probability that content is blocked.",
      "properties": {
        "threshold": {
          "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.",
            "Turn off the safety filter."
          ],
          "type": "string",
          "enum": [
            "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_ONLY_HIGH",
            "BLOCK_NONE",
            "OFF"
          ],
          "description": "Required. Controls the probability threshold at which harm is blocked."
        },
        "category": {
          "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",
            "HARM_CATEGORY_CIVIC_INTEGRITY",
            "HARM_CATEGORY_JAILBREAK"
          ],
          "enumDescriptions": [
            "Category is unspecified.",
            "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.",
            "**PaLM** - Content that is rude, disrespectful, or profane.",
            "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.",
            "**PaLM** - Contains references to sexual acts or other lewd content.",
            "**PaLM** - Promotes unchecked medical advice.",
            "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.",
            "**Gemini** - Harassment content.",
            "**Gemini** - Hate speech and content.",
            "**Gemini** - Sexually explicit content.",
            "**Gemini** - Dangerous content.",
            "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.",
            "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)."
          ],
          "enumDeprecated": [
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            true,
            false
          ],
          "description": "Required. The category for this setting."
        }
      }
    },
    "GenerateAnswerRequest": {
      "properties": {
        "semanticRetriever": {
          "description": "Content retrieved from resources created via the Semantic Retriever API.",
          "$ref": "SemanticRetrieverConfig"
        },
        "inlinePassages": {
          "description": "Passages provided inline with the request.",
          "$ref": "GroundingPassages"
        },
        "safetySettings": {
          "type": "array",
          "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. Refer to the [guide](https://ai.google.dev/gemini-api/docs/safety-settings) for detailed information on available safety settings. Also refer to the [Safety guidance](https://ai.google.dev/gemini-api/docs/safety-guidance) to learn how to incorporate safety considerations in your AI applications.",
          "items": {
            "$ref": "SafetySetting"
          }
        },
        "answerStyle": {
          "type": "string",
          "enum": [
            "ANSWER_STYLE_UNSPECIFIED",
            "ABSTRACTIVE",
            "EXTRACTIVE",
            "VERBOSE"
          ],
          "description": "Required. Style in which answers should be returned.",
          "enumDescriptions": [
            "Unspecified answer style.",
            "Succinct 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."
          ]
        },
        "contents": {
          "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` only supports queries in English.",
          "type": "array",
          "items": {
            "$ref": "Content"
          }
        },
        "temperature": {
          "format": "float",
          "type": "number",
          "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."
        }
      },
      "description": "Request to generate a grounded answer from the `Model`.",
      "type": "object",
      "id": "GenerateAnswerRequest"
    },
    "Environment": {
      "type": "object",
      "id": "Environment",
      "description": "An execution environment for an agent.",
      "properties": {
        "networkMode": {
          "enumDescriptions": [
            "Default value. Unused.",
            "All network egress is blocked."
          ],
          "description": "Network egress mode.",
          "type": "string",
          "enum": [
            "NETWORK_MODE_UNSPECIFIED",
            "DISABLED"
          ]
        },
        "lastAccessed": {
          "description": "Output only. The time at which the environment was last accessed in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).",
          "type": "string",
          "readOnly": true
        },
        "sizeBytes": {
          "format": "int64",
          "readOnly": true,
          "description": "Output only. The total size of the environment files in bytes, output only.",
          "type": "string"
        },
        "status": {
          "description": "Output only. The status of the environment container.",
          "readOnly": true,
          "type": "string",
          "enum": [
            "STATUS_UNSPECIFIED",
            "ACTIVE",
            "EXPIRED"
          ],
          "enumDescriptions": [
            "",
            "",
            ""
          ]
        },
        "sources": {
          "type": "array",
          "description": "Sources to be mounted into the environment.",
          "items": {
            "$ref": "Source"
          }
        },
        "updated": {
          "readOnly": true,
          "description": "Output only. The time at which the environment was last updated in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).",
          "type": "string"
        },
        "id": {
          "readOnly": true,
          "description": "Required. Output only. The ID of the environment.",
          "type": "string"
        },
        "created": {
          "readOnly": true,
          "description": "Output only. The time at which the environment was created in ISO 8601 format (YYYY-MM-DDThh:mm:ssZ).",
          "type": "string"
        },
        "networkAllowlist": {
          "description": "Allow only specific domains.",
          "$ref": "EnvironmentNetworkEgressAllowlist"
        },
        "fileCount": {
          "format": "int64",
          "type": "string",
          "description": "Output only. The number of files in the environment, output only.",
          "readOnly": true
        }
      }
    },
    "File": {
      "type": "object",
      "properties": {
        "state": {
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "PROCESSING",
            "ACTIVE",
            "FAILED"
          ],
          "readOnly": true,
          "description": "Output only. Processing state of the File.",
          "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."
          ]
        },
        "expirationTime": {
          "readOnly": true,
          "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.",
          "format": "google-datetime",
          "type": "string"
        },
        "error": {
          "description": "Output only. Error status if File processing failed.",
          "readOnly": true,
          "$ref": "Status"
        },
        "downloadUri": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The download uri of the `File`."
        },
        "sizeBytes": {
          "type": "string",
          "description": "Output only. Size of the file in bytes.",
          "format": "int64",
          "readOnly": true
        },
        "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`"
        },
        "mimeType": {
          "type": "string",
          "description": "Output only. MIME type of the file.",
          "readOnly": true
        },
        "createTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The timestamp of when the `File` was created.",
          "readOnly": true
        },
        "updateTime": {
          "description": "Output only. The timestamp of when the `File` was last updated.",
          "format": "google-datetime",
          "type": "string",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "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\""
        },
        "uri": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The uri of the `File`."
        },
        "sha256Hash": {
          "type": "string",
          "description": "Output only. SHA-256 hash of the uploaded bytes.",
          "format": "byte",
          "readOnly": true
        },
        "source": {
          "description": "Source of the File.",
          "enumDescriptions": [
            "Used if source is not specified.",
            "Indicates the file is uploaded by the user.",
            "Indicates the file is generated by Google.",
            "Indicates the file is a registered, i.e. a Google Cloud Storage file."
          ],
          "type": "string",
          "enum": [
            "SOURCE_UNSPECIFIED",
            "UPLOADED",
            "GENERATED",
            "REGISTERED"
          ]
        },
        "videoMetadata": {
          "description": "Output only. Metadata for a video.",
          "readOnly": true,
          "$ref": "VideoFileMetadata"
        }
      },
      "description": "A file uploaded to the API. Next ID: 15",
      "id": "File"
    },
    "DiffUploadResponse": {
      "id": "DiffUploadResponse",
      "description": "Backend response for a Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
      "properties": {
        "objectVersion": {
          "description": "The object version of the object at the server. Must be included in the end notification response. The version in the end notification response must correspond to the new version of the object that is now stored at the server, after the upload.",
          "type": "string"
        },
        "originalObject": {
          "description": "The location of the original file for a diff upload request. Must be filled in if responding to an upload start notification.",
          "$ref": "CompositeMedia"
        }
      },
      "type": "object"
    },
    "RegisterFilesResponse": {
      "type": "object",
      "id": "RegisterFilesResponse",
      "description": "Response for `RegisterFiles`.",
      "properties": {
        "files": {
          "type": "array",
          "description": "The registered files to be used when calling GenerateContent.",
          "items": {
            "$ref": "File"
          }
        }
      }
    },
    "TextPrompt": {
      "description": "Text given to the model as a prompt. The Model will use this TextPrompt to Generate a text completion.",
      "type": "object",
      "id": "TextPrompt",
      "properties": {
        "text": {
          "description": "Required. The prompt text.",
          "type": "string"
        }
      }
    },
    "Part": {
      "type": "object",
      "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.",
      "id": "Part",
      "properties": {
        "toolResponse": {
          "$ref": "ToolResponse",
          "description": "The output from a server-side `ToolCall` execution. This field is populated by the client with the results of executing the corresponding `ToolCall`."
        },
        "thought": {
          "description": "Optional. Indicates if the part is thought from the model.",
          "type": "boolean"
        },
        "mediaProcessing": {
          "description": "Optional. How the model processes this part's media for understanding. Only meaningful for video parts (`inline_data` or `file_data` with video mime). Non-video parts ignore this field.",
          "type": "string",
          "enum": [
            "MEDIA_PROCESSING_UNSPECIFIED",
            "STATIC",
            "AGENTIC"
          ],
          "enumDescriptions": [
            "Defaults to model-specific processing.",
            "Fixed-rate frame extraction. All frames placed in context.",
            "Model-driven dynamic navigation. Recommended for most use cases."
          ]
        },
        "codeExecutionResult": {
          "description": "Result of executing the `ExecutableCode`.",
          "$ref": "CodeExecutionResult"
        },
        "fileData": {
          "description": "URI based data.",
          "$ref": "FileData"
        },
        "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."
        },
        "mediaResolution": {
          "$ref": "V1mainMediaResolution",
          "description": "Optional. Media resolution for the input media."
        },
        "toolCall": {
          "description": "Server-side tool call. This field is populated when the model predicts a tool invocation that should be executed on the server. The client is expected to echo this message back to the API.",
          "$ref": "ToolCall"
        },
        "audioTranscription": {
          "description": "Optional. Audio (input or output) transcription. This is only set when this Part contains audio data.",
          "$ref": "AudioTranscription"
        },
        "thoughtSignature": {
          "format": "byte",
          "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
          "type": "string"
        },
        "executableCode": {
          "description": "Code generated by the model that is meant to be executed.",
          "$ref": "ExecutableCode"
        },
        "inlineData": {
          "$ref": "Blob",
          "description": "Inline media bytes."
        },
        "videoMetadata": {
          "description": "Optional. Video metadata. The metadata should only be specified while the video data is presented in inline_data or file_data.",
          "$ref": "VideoMetadata"
        },
        "text": {
          "description": "Inline text.",
          "type": "string"
        },
        "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."
        },
        "partMetadata": {
          "type": "object",
          "description": "Custom metadata associated with the Part. Agents using genai.Part as content representation may need to keep track of the additional information. For example it can be name of a file/source from which the Part originates or a way to multiplex multiple Part streams.",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        }
      }
    },
    "FunctionDeclaration": {
      "id": "FunctionDeclaration",
      "properties": {
        "name": {
          "description": "Required. The name of the function. Must be a-z, A-Z, 0-9, or contain underscores, colons, dots, and dashes, with a maximum length of 128.",
          "type": "string"
        },
        "response": {
          "description": "Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function.",
          "$ref": "Schema"
        },
        "responseJsonSchema": {
          "description": "Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`.",
          "type": "any"
        },
        "behavior": {
          "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.",
          "enumDescriptions": [
            "This value is unused.",
            "If set, the system will wait to receive the function response before continuing the conversation.",
            "If set, the system will not wait to receive the function response. Instead, it will attempt to handle function responses as they become available while maintaining the conversation between the user and the model."
          ],
          "type": "string",
          "enum": [
            "UNSPECIFIED",
            "BLOCKING",
            "NON_BLOCKING"
          ]
        },
        "parametersJsonSchema": {
          "description": "Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`.",
          "type": "any"
        },
        "description": {
          "description": "Required. A brief description of the function.",
          "type": "string"
        },
        "parameters": {
          "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.",
          "$ref": "Schema"
        }
      },
      "type": "object",
      "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."
    },
    "Status": {
      "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).",
      "properties": {
        "details": {
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use.",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "any",
              "description": "Properties of the object. Contains field @type with type URL."
            }
          },
          "type": "array"
        },
        "code": {
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "format": "int32",
          "type": "integer"
        },
        "message": {
          "type": "string",
          "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": "object",
      "id": "Status"
    },
    "MetadataFilter": {
      "type": "object",
      "id": "MetadataFilter",
      "properties": {
        "conditions": {
          "description": "Required. The `Condition`s for the given key that will trigger this filter. Multiple `Condition`s are joined by logical ORs.",
          "items": {
            "$ref": "Condition"
          },
          "type": "array"
        },
        "key": {
          "type": "string",
          "description": "Required. The key of the metadata to filter on."
        }
      },
      "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}]"
    },
    "ListTunedModelsResponse": {
      "type": "object",
      "id": "ListTunedModelsResponse",
      "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.",
          "type": "array",
          "items": {
            "$ref": "TunedModel"
          }
        }
      },
      "description": "Response from `ListTunedModels` containing a paginated list of Models."
    },
    "ContentFilter": {
      "properties": {
        "message": {
          "type": "string",
          "description": "A string that describes the filtering behavior in more detail."
        },
        "reason": {
          "enumDescriptions": [
            "A blocked reason was not specified.",
            "Content was blocked by safety settings.",
            "Content was blocked, but the reason is uncategorized."
          ],
          "description": "The reason content was blocked during request processing.",
          "type": "string",
          "enum": [
            "BLOCKED_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER"
          ]
        }
      },
      "id": "ContentFilter",
      "type": "object",
      "description": "Content filtering metadata associated with processing a single request. ContentFilter contains a reason and an optional supporting string. The reason may be unspecified."
    },
    "Source": {
      "description": "A source to be mounted into the environment.",
      "type": "object",
      "id": "Source",
      "properties": {
        "source": {
          "type": "string",
          "description": "The source of the environment. For Cloud Storage, this is the Cloud Storage path. For GitHub, this is the GitHub path."
        },
        "target": {
          "type": "string",
          "description": "Where the source should appear in the environment."
        },
        "type": {
          "enumDescriptions": [
            "",
            "A Cloud Storage bucket.",
            "Inline content.",
            "A generic repository. The protocol prefix in the source URL identifies the provider (e.g., github://, gcs://)."
          ],
          "type": "string",
          "enum": [
            "TYPE_UNSPECIFIED",
            "GCS",
            "INLINE",
            "REPOSITORY"
          ]
        },
        "content": {
          "type": "string",
          "description": "The inline content if `type` is `INLINE`."
        },
        "encoding": {
          "type": "string",
          "description": "Optional encoding for inline content (e.g. `base64`)."
        }
      }
    },
    "Blob": {
      "type": "object",
      "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",
      "id": "Blob",
      "properties": {
        "mimeType": {
          "description": "The IANA standard MIME type of the source data. Examples of supported types: - Images: image/png, image/jpeg, image/jpg, image/webp, image/heic, image/heif, image/gif, image/avif - Audio: audio/*, video/audio/s16le, video/audio/wav - Video: video/* - Text: text/plain, text/html, text/css, text/javascript, text/x-typescript, text/csv, text/markdown, text/x-python, text/xml, text/rtf, video/text/timestamp - Applications: application/x-javascript, application/x-typescript, application/x-python-code, application/json, application/x-ipynb+json, application/rtf, application/pdf For additional context, see [Supported file formats](https://ai.google.dev/gemini-api/docs/file-input-methods#supported-content-types). //",
          "type": "string"
        },
        "data": {
          "description": "Raw bytes for media formats.",
          "format": "byte",
          "type": "string"
        },
        "displayName": {
          "description": "Optional. Specifies the name used to refer to this blob to the model (e.g. \"my_blob.png\"). Used as the blob reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`.",
          "type": "string"
        }
      }
    },
    "Image": {
      "id": "Image",
      "type": "object",
      "properties": {
        "sourceUri": {
          "type": "string",
          "description": "The web page URI for attribution."
        },
        "title": {
          "type": "string",
          "description": "The title of the web page that the image is from."
        },
        "imageUri": {
          "description": "The image asset URL.",
          "type": "string"
        },
        "domain": {
          "description": "The root domain of the web page that the image is from, e.g. \"example.com\".",
          "type": "string"
        }
      },
      "description": "Chunk from image search."
    },
    "GenerateMessageResponse": {
      "type": "object",
      "properties": {
        "filters": {
          "items": {
            "$ref": "ContentFilter"
          },
          "type": "array",
          "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."
        },
        "messages": {
          "type": "array",
          "items": {
            "$ref": "Message"
          },
          "description": "The conversation history used by the model."
        },
        "candidates": {
          "items": {
            "$ref": "Message"
          },
          "description": "Candidate response messages from the model.",
          "type": "array"
        }
      },
      "id": "GenerateMessageResponse",
      "description": "The response from the model. This includes candidate messages and conversation history in the form of chronologically-ordered messages."
    },
    "InlinedEmbedContentResponses": {
      "id": "InlinedEmbedContentResponses",
      "description": "The responses to the requests in the batch.",
      "type": "object",
      "properties": {
        "inlinedResponses": {
          "description": "Output only. The responses to the requests in the batch.",
          "readOnly": true,
          "items": {
            "$ref": "InlinedEmbedContentResponse"
          },
          "type": "array"
        }
      }
    },
    "CustomMetadata": {
      "description": "User provided metadata stored as key-value pairs.",
      "type": "object",
      "properties": {
        "stringValue": {
          "description": "The string value of the metadata to store.",
          "type": "string"
        },
        "numericValue": {
          "type": "number",
          "format": "float",
          "description": "The numeric value of the metadata to store."
        },
        "key": {
          "description": "Required. The key of the metadata to store.",
          "type": "string"
        },
        "stringListValue": {
          "$ref": "StringList",
          "description": "The StringList value of the metadata to store."
        }
      },
      "id": "CustomMetadata"
    },
    "StreamableHttpTransport": {
      "description": "A transport that can stream HTTP requests and responses. Next ID: 6",
      "properties": {
        "headers": {
          "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "sseReadTimeout": {
          "format": "google-duration",
          "type": "string",
          "description": "Timeout for SSE read operations."
        },
        "terminateOnClose": {
          "description": "Whether to close the client session when the transport closes.",
          "type": "boolean"
        },
        "url": {
          "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\"",
          "type": "string"
        },
        "timeout": {
          "description": "HTTP timeout for regular operations.",
          "format": "google-duration",
          "type": "string"
        }
      },
      "id": "StreamableHttpTransport",
      "type": "object"
    },
    "HistoryConfig": {
      "properties": {
        "initialHistoryInClientContent": {
          "description": "Optional. If true, after sending `setup_complete`, the server will wait and at first process `client_content` messages until `turn_complete` is `true`. This initial history will not trigger a model call and may end with role `MODEL`. After `turn_complete` is `true`, the client can start the realtime conversation via `realtime_input`.",
          "type": "boolean"
        }
      },
      "id": "HistoryConfig",
      "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.",
      "type": "object"
    },
    "BatchStats": {
      "id": "BatchStats",
      "properties": {
        "failedRequestCount": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. The number of requests that failed to be processed.",
          "type": "string"
        },
        "requestCount": {
          "type": "string",
          "format": "int64",
          "description": "Output only. The number of requests in the batch.",
          "readOnly": true
        },
        "pendingRequestCount": {
          "description": "Output only. The number of requests that are still pending processing.",
          "format": "int64",
          "readOnly": true,
          "type": "string"
        },
        "successfulRequestCount": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. The number of requests that were successfully processed.",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Stats about the batch."
    },
    "InputEmbedContentConfig": {
      "type": "object",
      "id": "InputEmbedContentConfig",
      "properties": {
        "fileName": {
          "description": "The name of the `File` containing the input requests.",
          "type": "string"
        },
        "requests": {
          "$ref": "InlinedEmbedContentRequests",
          "description": "The requests to be processed in the batch."
        }
      },
      "description": "Configures the input to the batch request."
    },
    "DiffChecksumsResponse": {
      "description": "Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
      "properties": {
        "objectSizeBytes": {
          "description": "The total size of the server object.",
          "type": "string",
          "format": "int64"
        },
        "objectLocation": {
          "$ref": "CompositeMedia",
          "description": "If set, calculate the checksums based on the contents and return them to the caller."
        },
        "chunkSizeBytes": {
          "description": "The chunk size of checksums. Must be a multiple of 256KB.",
          "format": "int64",
          "type": "string"
        },
        "objectVersion": {
          "description": "The object version of the object the checksums are being returned for.",
          "type": "string"
        },
        "checksumsLocation": {
          "description": "Exactly one of these fields must be populated. If checksums_location is filled, the server will return the corresponding contents to the user. If object_location is filled, the server will calculate the checksums based on the content there and return that to the user. For details on the format of the checksums, see http://go/scotty-diff-protocol.",
          "$ref": "CompositeMedia"
        }
      },
      "type": "object",
      "id": "DiffChecksumsResponse"
    },
    "CitationMetadata": {
      "id": "CitationMetadata",
      "description": "A collection of source attributions for a piece of content.",
      "properties": {
        "citationSources": {
          "description": "Citations to sources for a specific response.",
          "type": "array",
          "items": {
            "$ref": "CitationSource"
          }
        }
      },
      "type": "object"
    },
    "ContentEmbedding": {
      "description": "A list of floats representing an embedding.",
      "id": "ContentEmbedding",
      "type": "object",
      "properties": {
        "values": {
          "items": {
            "type": "number",
            "format": "float"
          },
          "type": "array",
          "description": "The embedding values. This is for 3P users only and will not be populated for 1P calls."
        },
        "shape": {
          "type": "array",
          "items": {
            "format": "int32",
            "type": "integer"
          },
          "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048])."
        }
      }
    },
    "FileSearchStore": {
      "properties": {
        "sizeBytes": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The size of raw bytes ingested into the `FileSearchStore`. This is the total size of all the documents in the `FileSearchStore`.",
          "format": "int64"
        },
        "name": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. Immutable. Identifier. The `FileSearchStore` resource name. It is an ID (name excluding the \"fileSearchStores/\" prefix) that can contain up to 40 characters that are lowercase alphanumeric or dashes (-). It is output only. The unique name will be derived from `display_name` along with a 12 character random suffix. Example: `fileSearchStores/my-awesome-file-search-store-123a456b789c` If `display_name` is not provided, the name will be randomly generated."
        },
        "embeddingModel": {
          "description": "Optional. The embedding model to use for the `FileSearchStore`. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`. If not specified, the default embedding model will be used.",
          "type": "string"
        },
        "activeDocumentsCount": {
          "readOnly": true,
          "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.",
          "type": "string",
          "format": "int64"
        },
        "displayName": {
          "type": "string",
          "description": "Optional. The human-readable display name for the `FileSearchStore`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\""
        },
        "pendingDocumentsCount": {
          "readOnly": true,
          "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.",
          "format": "int64",
          "type": "string"
        },
        "failedDocumentsCount": {
          "format": "int64",
          "type": "string",
          "readOnly": true,
          "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing."
        },
        "createTime": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The Timestamp of when the `FileSearchStore` was created.",
          "format": "google-datetime"
        },
        "updateTime": {
          "format": "google-datetime",
          "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.",
          "readOnly": true,
          "type": "string"
        }
      },
      "type": "object",
      "description": "A `FileSearchStore` is a collection of `Document`s.",
      "id": "FileSearchStore"
    },
    "LanguageAuto": {
      "deprecated": true,
      "properties": {},
      "type": "object",
      "description": "Indicates the language of the audio should be automatically detected.",
      "id": "LanguageAuto"
    },
    "TunedModelSource": {
      "type": "object",
      "id": "TunedModelSource",
      "description": "Tuned model as a source for training a new model.",
      "properties": {
        "baseModel": {
          "type": "string",
          "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`",
          "readOnly": true
        },
        "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`"
        }
      }
    },
    "MultiSpeakerVoiceConfig": {
      "type": "object",
      "description": "The configuration for the multi-speaker setup.",
      "id": "MultiSpeakerVoiceConfig",
      "properties": {
        "speakerVoiceConfigs": {
          "type": "array",
          "items": {
            "$ref": "SpeakerVoiceConfig"
          },
          "description": "Required. All the enabled speaker voices."
        }
      }
    },
    "FunctionCall": {
      "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
      "id": "FunctionCall",
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Optional. Unique identifier of the function call. If populated, the client to execute the `function_call` and return the response with the matching `id`."
        },
        "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 128.",
          "type": "string"
        },
        "args": {
          "description": "Optional. The function parameters and values in JSON object format.",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "type": "object"
        }
      }
    },
    "ListFileSearchStoresResponse": {
      "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.",
      "properties": {
        "fileSearchStores": {
          "type": "array",
          "description": "The returned rag_stores.",
          "items": {
            "$ref": "FileSearchStore"
          }
        },
        "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": "ListFileSearchStoresResponse",
      "type": "object"
    },
    "UrlContext": {
      "id": "UrlContext",
      "type": "object",
      "properties": {},
      "description": "Tool to support URL context retrieval."
    },
    "EmbeddingUsageMetadata": {
      "type": "object",
      "description": "Metadata on the usage of the embedding request.",
      "properties": {
        "promptTokenCount": {
          "format": "int32",
          "description": "Output only. Number of tokens in the prompt.",
          "readOnly": true,
          "type": "integer"
        },
        "promptTokenDetails": {
          "description": "Output only. List of modalities that were processed in the request input.",
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "type": "array",
          "readOnly": true
        }
      },
      "id": "EmbeddingUsageMetadata"
    },
    "CreateFileRequest": {
      "properties": {
        "file": {
          "description": "Optional. Metadata for the file to create.",
          "$ref": "File"
        }
      },
      "description": "Request for `CreateFile`.",
      "id": "CreateFileRequest",
      "type": "object"
    },
    "ListEnvironmentsResponse": {
      "description": "Response for `ListEnvironments`.",
      "properties": {
        "environments": {
          "description": "Environments belonging to the provided project.",
          "items": {
            "$ref": "Environment"
          },
          "type": "array"
        },
        "nextPageToken": {
          "description": "Pagination token.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "ListEnvironmentsResponse"
    },
    "FileData": {
      "description": "URI based data.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "Optional. Specifies the name used to refer to this file to the model (e.g. \"my_file.pdf\"). Used as the file reference identifier when `verbalization_mode` is set to `REFERENCE_ONLY`."
        },
        "fileUri": {
          "type": "string",
          "description": "Required. URI."
        },
        "mimeType": {
          "description": "Optional. The IANA standard MIME type of the source data.",
          "type": "string"
        }
      },
      "id": "FileData",
      "type": "object"
    },
    "BatchEmbedContentsResponse": {
      "id": "BatchEmbedContentsResponse",
      "type": "object",
      "properties": {
        "usageMetadata": {
          "description": "Output only. The usage metadata for the request.",
          "readOnly": true,
          "$ref": "EmbeddingUsageMetadata"
        },
        "embeddings": {
          "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.",
          "type": "array",
          "readOnly": true,
          "items": {
            "$ref": "ContentEmbedding"
          }
        }
      },
      "description": "The response to a `BatchEmbedContentsRequest`."
    },
    "Interval": {
      "type": "object",
      "id": "Interval",
      "properties": {
        "endTime": {
          "format": "google-datetime",
          "description": "Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will have to be before the end.",
          "type": "string"
        },
        "startTime": {
          "format": "google-datetime",
          "description": "Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval will have to be the same or after the start.",
          "type": "string"
        }
      },
      "description": "Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time."
    },
    "TuningTask": {
      "type": "object",
      "description": "Tuning tasks that create tuned models.",
      "properties": {
        "hyperparameters": {
          "$ref": "Hyperparameters",
          "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used."
        },
        "completeTime": {
          "format": "google-datetime",
          "description": "Output only. The timestamp when tuning this model completed.",
          "readOnly": true,
          "type": "string"
        },
        "startTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The timestamp when tuning this model started.",
          "readOnly": true
        },
        "snapshots": {
          "items": {
            "$ref": "TuningSnapshot"
          },
          "readOnly": true,
          "description": "Output only. Metrics collected during tuning.",
          "type": "array"
        },
        "trainingData": {
          "$ref": "Dataset",
          "description": "Required. Input only. Immutable. The model training data."
        }
      },
      "id": "TuningTask"
    },
    "ObjectId": {
      "id": "ObjectId",
      "type": "object",
      "properties": {
        "bucketName": {
          "description": "The name of the bucket to which this object belongs.",
          "type": "string"
        },
        "objectName": {
          "type": "string",
          "description": "The name of the object."
        },
        "generation": {
          "type": "string",
          "format": "int64",
          "description": "Generation of the object. Generations are monotonically increasing across writes, allowing them to be be compared to determine which generation is newer. If this is omitted in a request, then you are requesting the live object. See http://go/bigstore-versions"
        }
      },
      "description": "This is a copy of the tech.blob.ObjectId proto, which could not be used directly here due to transitive closure issues with JavaScript support; see http://b/8801763."
    },
    "UrlMetadata": {
      "id": "UrlMetadata",
      "description": "Context of the a single url retrieval.",
      "type": "object",
      "properties": {
        "retrievedUrl": {
          "description": "Retrieved url by the tool.",
          "type": "string"
        },
        "urlRetrievalStatus": {
          "type": "string",
          "enum": [
            "URL_RETRIEVAL_STATUS_UNSPECIFIED",
            "URL_RETRIEVAL_STATUS_SUCCESS",
            "URL_RETRIEVAL_STATUS_ERROR",
            "URL_RETRIEVAL_STATUS_PAYWALL",
            "URL_RETRIEVAL_STATUS_UNSAFE"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Url retrieval is successful.",
            "Url retrieval is failed due to error.",
            "Url retrieval is failed because the content is behind paywall.",
            "Url retrieval is failed because the content is unsafe."
          ],
          "description": "Status of the url retrieval."
        }
      }
    },
    "CustomLongRunningOperation": {
      "type": "object",
      "id": "CustomLongRunningOperation",
      "properties": {
        "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": {
            "description": "Properties of the object. Contains field @type with type URL.",
            "type": "any"
          },
          "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`."
        },
        "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"
        },
        "error": {
          "$ref": "Status",
          "description": "The error result of the operation in case of failure or cancellation."
        },
        "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."
        }
      }
    },
    "CreateFileResponse": {
      "id": "CreateFileResponse",
      "type": "object",
      "properties": {
        "file": {
          "$ref": "File",
          "description": "Metadata for the created file."
        }
      },
      "description": "Response for `CreateFile`."
    },
    "EmbedContentBatch": {
      "description": "A resource representing a batch of `EmbedContent` requests.",
      "properties": {
        "createTime": {
          "description": "Output only. The time at which the batch was created.",
          "readOnly": true,
          "type": "string",
          "format": "google-datetime"
        },
        "updateTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. The time at which the batch was last updated.",
          "readOnly": true
        },
        "batchStats": {
          "readOnly": true,
          "description": "Output only. Stats about the batch.",
          "$ref": "EmbedContentBatchStats"
        },
        "inputConfig": {
          "description": "Required. Input configuration of the instances on which batch processing are performed.",
          "$ref": "InputEmbedContentConfig"
        },
        "output": {
          "$ref": "EmbedContentBatchOutput",
          "readOnly": true,
          "description": "Output only. The output of the batch request."
        },
        "model": {
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
          "type": "string"
        },
        "endTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The time at which the batch processing completed.",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
          "readOnly": true
        },
        "displayName": {
          "type": "string",
          "description": "Required. The user-defined name of this batch."
        },
        "priority": {
          "format": "int64",
          "description": "Optional. The priority of the batch. Batches with a higher priority value will be processed before batches with a lower priority value. Negative values are allowed. Default is 0.",
          "type": "string"
        },
        "state": {
          "enumDescriptions": [
            "The batch state is unspecified.",
            "The service is preparing to run the batch.",
            "The batch is in progress.",
            "The batch completed successfully.",
            "The batch failed.",
            "The batch has been cancelled.",
            "The batch has expired."
          ],
          "description": "Output only. The state of the batch.",
          "readOnly": true,
          "type": "string",
          "enum": [
            "BATCH_STATE_UNSPECIFIED",
            "BATCH_STATE_PENDING",
            "BATCH_STATE_RUNNING",
            "BATCH_STATE_SUCCEEDED",
            "BATCH_STATE_FAILED",
            "BATCH_STATE_CANCELLED",
            "BATCH_STATE_EXPIRED"
          ]
        }
      },
      "id": "EmbedContentBatch",
      "type": "object"
    },
    "Maps": {
      "description": "A grounding chunk from Google Maps. A Maps chunk corresponds to a single place.",
      "properties": {
        "placeId": {
          "type": "string",
          "description": "The ID of the place, in `places/{place_id}` format. A user can use this ID to look up that place."
        },
        "placeAnswerSources": {
          "description": "Sources that provide answers about the features of a given place in Google Maps.",
          "$ref": "PlaceAnswerSources"
        },
        "text": {
          "description": "Text description of the place answer.",
          "type": "string"
        },
        "uri": {
          "type": "string",
          "description": "URI reference of the place."
        },
        "title": {
          "type": "string",
          "description": "Title of the place."
        }
      },
      "id": "Maps",
      "type": "object"
    },
    "Condition": {
      "description": "Filter condition applicable to a single key.",
      "type": "object",
      "id": "Condition",
      "properties": {
        "operation": {
          "description": "Required. Operator applied to the given key-value pair to trigger the condition.",
          "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`."
          ],
          "type": "string",
          "enum": [
            "OPERATOR_UNSPECIFIED",
            "LESS",
            "LESS_EQUAL",
            "EQUAL",
            "GREATER_EQUAL",
            "GREATER",
            "NOT_EQUAL",
            "INCLUDES",
            "EXCLUDES"
          ]
        },
        "stringValue": {
          "description": "The string value to filter the metadata on.",
          "type": "string"
        },
        "numericValue": {
          "format": "float",
          "description": "The numeric value to filter the metadata on.",
          "type": "number"
        }
      }
    },
    "GeneratedFile": {
      "type": "object",
      "description": "A file generated on behalf of a user.",
      "id": "GeneratedFile",
      "properties": {
        "error": {
          "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state.",
          "$ref": "Status"
        },
        "mimeType": {
          "description": "MIME type of the generatedFile.",
          "type": "string"
        },
        "state": {
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "GENERATING",
            "GENERATED",
            "FAILED"
          ],
          "readOnly": true,
          "enumDescriptions": [
            "The default value. This value is used if the state is omitted.",
            "Being generated.",
            "Generated and is ready for download.",
            "Failed to generate the GeneratedFile."
          ],
          "description": "Output only. The state of the GeneratedFile."
        },
        "name": {
          "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`",
          "type": "string"
        }
      }
    },
    "SpeechConfig": {
      "description": "Config for speech generation and transcription.",
      "properties": {
        "multiSpeakerVoiceConfig": {
          "$ref": "MultiSpeakerVoiceConfig",
          "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field."
        },
        "languageCode": {
          "type": "string",
          "description": "Optional. The IETF [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language code that the user configured the app to use. Used for speech recognition and synthesis. Valid values are: `de-DE`, `en-AU`, `en-GB`, `en-IN`, `en-US`, `es-US`, `fr-FR`, `hi-IN`, `pt-BR`, `ar-XA`, `es-ES`, `fr-CA`, `id-ID`, `it-IT`, `ja-JP`, `tr-TR`, `vi-VN`, `bn-IN`, `gu-IN`, `kn-IN`, `ml-IN`, `mr-IN`, `ta-IN`, `te-IN`, `nl-NL`, `ko-KR`, `cmn-CN`, `pl-PL`, `ru-RU`, and `th-TH`."
        },
        "voiceConfig": {
          "$ref": "VoiceConfig",
          "description": "The configuration in case of single-voice output."
        }
      },
      "type": "object",
      "id": "SpeechConfig"
    },
    "Blobstore2Info": {
      "type": "object",
      "id": "Blobstore2Info",
      "description": "Information to read/write to blobstore2.",
      "properties": {
        "uploadFragmentListCreationInfo": {
          "description": "A serialized Object Fragment List Creation Info passed from Bigstore -\u003e Scotty for a GCS upload. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.",
          "format": "byte",
          "type": "string"
        },
        "downloadReadHandle": {
          "type": "string",
          "format": "byte",
          "description": "Read handle passed from Bigstore -\u003e Scotty for a GCS download. This is a signed, serialized blobstore2.ReadHandle proto which must never be set outside of Bigstore, and is not applicable to non-GCS media downloads."
        },
        "blobId": {
          "type": "string",
          "description": "The blob id, e.g., /blobstore/prod/playground/scotty"
        },
        "uploadMetadataContainer": {
          "format": "byte",
          "description": "Metadata passed from Blobstore -\u003e Scotty for a new GCS upload. This is a signed, serialized blobstore2.BlobMetadataContainer proto which must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads.",
          "type": "string"
        },
        "blobGeneration": {
          "description": "The blob generation id.",
          "type": "string",
          "format": "int64"
        },
        "readToken": {
          "description": "The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call.",
          "type": "string"
        },
        "downloadExternalReadToken": {
          "type": "string",
          "format": "byte",
          "description": "A serialized External Read Token passed from Bigstore -\u003e Scotty for a GCS download. This field must never be consumed outside of Bigstore, and is not applicable to non-GCS media uploads."
        }
      }
    },
    "GoogleAiGenerativelanguageV1betaGroundingSupport": {
      "properties": {
        "segment": {
          "$ref": "GoogleAiGenerativelanguageV1betaSegment",
          "description": "Segment of the content this support belongs to."
        },
        "groundingChunkIndices": {
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "type": "array",
          "description": "Optional. A list of indices (into 'grounding_chunk' in `response.candidate.grounding_metadata`) specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. If the response is streaming, the grounding_chunk_indices refer to the indices across all responses. It is the client's responsibility to accumulate the grounding chunks from all responses (while maintaining the same order)."
        },
        "confidenceScores": {
          "type": "array",
          "description": "Optional. Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices.",
          "items": {
            "type": "number",
            "format": "float"
          }
        },
        "renderedParts": {
          "description": "Output only. Indices into the `parts` field of the candidate's content. These indices specify which rendered parts are associated with this support source.",
          "readOnly": true,
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "description": "Grounding support.",
      "type": "object",
      "id": "GoogleAiGenerativelanguageV1betaGroundingSupport"
    },
    "Example": {
      "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."
        }
      },
      "description": "An input/output example used to instruct the Model. It demonstrates how the model should respond or format its response.",
      "id": "Example",
      "type": "object"
    },
    "DownloadParameters": {
      "properties": {
        "ignoreRange": {
          "type": "boolean",
          "description": "Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty."
        },
        "allowGzipCompression": {
          "description": "A boolean to be returned in the response to Scotty. Allows/disallows gzip encoding of the payload content when the server thinks it's advantageous (hence, does not guarantee compression) which allows Scotty to GZip the response to the client.",
          "type": "boolean"
        }
      },
      "type": "object",
      "description": "Parameters specific to media downloads.",
      "id": "DownloadParameters"
    },
    "RegisterFilesRequest": {
      "type": "object",
      "id": "RegisterFilesRequest",
      "properties": {
        "uris": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`."
        }
      },
      "description": "Request for `RegisterFiles`."
    },
    "InlinedResponses": {
      "description": "The responses to the requests in the batch.",
      "properties": {
        "inlinedResponses": {
          "description": "Output only. The responses to the requests in the batch.",
          "readOnly": true,
          "items": {
            "$ref": "InlinedResponse"
          },
          "type": "array"
        }
      },
      "id": "InlinedResponses",
      "type": "object"
    },
    "ThinkingConfig": {
      "type": "object",
      "id": "ThinkingConfig",
      "properties": {
        "thinkingLevel": {
          "type": "string",
          "enum": [
            "THINKING_LEVEL_UNSPECIFIED",
            "MINIMAL",
            "LOW",
            "MEDIUM",
            "HIGH"
          ],
          "description": "Optional. Controls the maximum depth of the model's internal reasoning process before it produces a response. The default value is model-dependent. Refer to the [Thinking levels guide](https://ai.google.dev/gemini-api/docs/thinking#thinking-levels) for more details. Recommended for Gemini 3 or later models. Use with earlier models results in an error.",
          "enumDescriptions": [
            "Default value.",
            "Little to no thinking.",
            "Low thinking level.",
            "Medium thinking level.",
            "High thinking level."
          ]
        },
        "thinkingBudget": {
          "description": "The number of thoughts tokens that the model should generate.",
          "type": "integer",
          "format": "int32"
        },
        "includeThoughts": {
          "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available.",
          "type": "boolean"
        }
      },
      "description": "Config for thinking features."
    },
    "CreateEnvironmentRequest": {
      "properties": {
        "networkMode": {
          "enumDescriptions": [
            "Default value. Unused.",
            "All network egress is blocked."
          ],
          "type": "string",
          "enum": [
            "NETWORK_MODE_UNSPECIFIED",
            "DISABLED"
          ],
          "description": "Network egress mode."
        },
        "sources": {
          "type": "array",
          "description": "Sources to be mounted into the environment.",
          "items": {
            "$ref": "Source"
          }
        },
        "networkAllowlist": {
          "$ref": "EnvironmentNetworkEgressAllowlist",
          "description": "Allow only specific domains."
        }
      },
      "description": "Request for `CreateEnvironment`.",
      "id": "CreateEnvironmentRequest",
      "type": "object"
    },
    "EgressRule": {
      "description": "A network egress rule that controls which external domains the environment is allowed to reach. Each rule identifies a target domain and, optionally, a set of HTTP headers to inject into every matching outbound request.",
      "type": "object",
      "id": "EgressRule",
      "properties": {
        "domain": {
          "description": "The domain pattern to match for this rule. Use an exact hostname (e.g., `github.com`), a wildcard prefix (e.g., `*.googleapis.com`), or `*` to match all domains.",
          "type": "string"
        },
        "transform": {
          "description": "Headers to inject into requests matching this rule. Key: header name (e.g., \"Authorization\"). Value: header value (e.g., \"Bearer your-token\").",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        }
      }
    },
    "TextCompletion": {
      "description": "Output text returned from a model.",
      "type": "object",
      "id": "TextCompletion",
      "properties": {
        "citationMetadata": {
          "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`.",
          "readOnly": true,
          "$ref": "CitationMetadata"
        },
        "output": {
          "description": "Output only. The generated text returned from the model.",
          "type": "string",
          "readOnly": true
        },
        "safetyRatings": {
          "items": {
            "$ref": "SafetyRating"
          },
          "description": "Ratings for the safety of a response. There is at most one rating per category.",
          "type": "array"
        }
      }
    },
    "PromptFeedback": {
      "type": "object",
      "properties": {
        "safetyRatings": {
          "type": "array",
          "description": "Ratings for safety of the prompt. There is at most one rating per category.",
          "items": {
            "$ref": "SafetyRating"
          }
        },
        "blockReason": {
          "type": "string",
          "enum": [
            "BLOCK_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "IMAGE_SAFETY"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Prompt was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.",
            "Prompt was blocked due to unknown reasons.",
            "Prompt was blocked due to the terms which are included from the terminology blocklist.",
            "Prompt was blocked due to prohibited content.",
            "Candidates blocked due to unsafe image generation content."
          ],
          "description": "Optional. If set, the prompt was blocked and no candidates are returned. Rephrase the prompt."
        }
      },
      "id": "PromptFeedback",
      "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`."
    },
    "InputConfig": {
      "type": "object",
      "id": "InputConfig",
      "description": "Configures the input to the batch request.",
      "properties": {
        "fileName": {
          "description": "The name of the `File` containing the input requests.",
          "type": "string"
        },
        "requests": {
          "$ref": "InlinedRequests",
          "description": "The requests to be processed in the batch."
        }
      }
    },
    "TopCandidates": {
      "type": "object",
      "id": "TopCandidates",
      "properties": {
        "candidates": {
          "description": "Sorted by log probability in descending order.",
          "type": "array",
          "items": {
            "$ref": "LogprobsResultCandidate"
          }
        }
      },
      "description": "Candidates with top log probabilities at each decoding step."
    },
    "TransferOwnershipRequest": {
      "type": "object",
      "description": "Request to transfer the ownership of the tuned model.",
      "id": "TransferOwnershipRequest",
      "properties": {
        "emailAddress": {
          "description": "Required. The email address of the user to whom the tuned model is being transferred to.",
          "type": "string"
        }
      }
    },
    "Web": {
      "id": "Web",
      "description": "Chunk from the web.",
      "type": "object",
      "properties": {
        "uri": {
          "description": "Output only. URI reference of the chunk.",
          "type": "string",
          "readOnly": true
        },
        "title": {
          "description": "Output only. Title of the chunk.",
          "type": "string",
          "readOnly": true
        }
      }
    },
    "StringList": {
      "type": "object",
      "properties": {
        "values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The string values of the metadata to store."
        }
      },
      "id": "StringList",
      "description": "User provided string values assigned to a single metadata key."
    },
    "ImageConfig": {
      "description": "Config for image generation features.",
      "id": "ImageConfig",
      "type": "object",
      "properties": {
        "imageSize": {
          "type": "string",
          "description": "Optional. Specifies the size of generated images. Supported values are `512`, `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`."
        },
        "aspectRatio": {
          "description": "Optional. The aspect ratio of the image to generate. Supported aspect ratios: `1:1`, `1:4`, `4:1`, `1:8`, `8:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, or `21:9`. If not specified, the model will choose a default aspect ratio based on any reference images provided.",
          "type": "string"
        }
      }
    },
    "Tool": {
      "type": "object",
      "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. Next ID: 17",
      "properties": {
        "fileSearch": {
          "$ref": "FileSearch",
          "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora."
        },
        "googleSearch": {
          "$ref": "GoogleSearch",
          "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."
        },
        "computerUse": {
          "$ref": "ComputerUse",
          "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations."
        },
        "googleSearchRetrieval": {
          "description": "Optional. Retrieval tool that is powered by Google search.",
          "$ref": "GoogleSearchRetrieval"
        },
        "mcpServers": {
          "description": "Optional. MCP Servers to connect to.",
          "type": "array",
          "items": {
            "$ref": "McpServer"
          }
        },
        "googleMaps": {
          "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query.",
          "$ref": "GoogleMaps"
        },
        "codeExecution": {
          "description": "Optional. Enables the model to execute code as part of generation.",
          "$ref": "CodeExecution"
        },
        "functionDeclarations": {
          "items": {
            "$ref": "FunctionDeclaration"
          },
          "type": "array",
          "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."
        },
        "urlContext": {
          "description": "Optional. Tool to support URL context retrieval.",
          "$ref": "UrlContext"
        }
      },
      "id": "Tool"
    },
    "DiffVersionResponse": {
      "id": "DiffVersionResponse",
      "description": "Backend response for a Diff get version response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
      "properties": {
        "objectVersion": {
          "description": "The version of the object stored at the server.",
          "type": "string"
        },
        "objectSizeBytes": {
          "type": "string",
          "description": "The total size of the server object.",
          "format": "int64"
        }
      },
      "type": "object"
    },
    "SafetyRating": {
      "type": "object",
      "properties": {
        "category": {
          "description": "Required. The category for this rating.",
          "enumDescriptions": [
            "Category is unspecified.",
            "**PaLM** - Negative or harmful comments targeting identity and/or protected attribute.",
            "**PaLM** - Content that is rude, disrespectful, or profane.",
            "**PaLM** - Describes scenarios depicting violence against an individual or group, or general descriptions of gore.",
            "**PaLM** - Contains references to sexual acts or other lewd content.",
            "**PaLM** - Promotes unchecked medical advice.",
            "**PaLM** - Dangerous content that promotes, facilitates, or encourages harmful acts.",
            "**Gemini** - Harassment content.",
            "**Gemini** - Hate speech and content.",
            "**Gemini** - Sexually explicit content.",
            "**Gemini** - Dangerous content.",
            "**Gemini** - Content that may be used to harm civic integrity. DEPRECATED: use enable_enhanced_civic_answers instead.",
            "**Gemini** - Prompts attempting to bypass or subvert the model's safety guidelines (jailbreak attempts)."
          ],
          "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",
            "HARM_CATEGORY_CIVIC_INTEGRITY",
            "HARM_CATEGORY_JAILBREAK"
          ],
          "enumDeprecated": [
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            false,
            true,
            false
          ]
        },
        "probability": {
          "description": "Required. The probability of harm for this content.",
          "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."
          ],
          "type": "string",
          "enum": [
            "HARM_PROBABILITY_UNSPECIFIED",
            "NEGLIGIBLE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ]
        },
        "blocked": {
          "description": "Was this content blocked because of this rating?",
          "type": "boolean"
        }
      },
      "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"
    },
    "HttpBody": {
      "description": "Message that represents an arbitrary HTTP body. It should only be used for payload formats that can't be represented as JSON, such as raw binary or an HTML page. This message can be used both in streaming and non-streaming API methods in the request as well as the response. It can be used as a top-level request field, which is convenient if one wants to extract parameters from either the URL or HTTP template into the request fields and also want access to the raw HTTP body. Example: message GetResourceRequest { // A unique request id. string request_id = 1; // The raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; } service ResourceService { rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns (google.protobuf.Empty); } Example with streaming methods: service CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns (stream google.api.HttpBody); } Use of this type only changes how the request and response bodies are handled, all other features will continue to work unchanged.",
      "id": "HttpBody",
      "properties": {
        "extensions": {
          "description": "Application specific response metadata. Must be set in the first response for streaming APIs.",
          "type": "array",
          "items": {
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL.",
              "type": "any"
            },
            "type": "object"
          }
        },
        "contentType": {
          "type": "string",
          "description": "The HTTP Content-Type header value specifying the content type of the body."
        },
        "data": {
          "description": "The HTTP request/response body as raw binary.",
          "type": "string",
          "format": "byte"
        }
      },
      "type": "object"
    },
    "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."
        },
        "granteeType": {
          "description": "Optional. Immutable. The type of the grantee.",
          "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."
          ]
        },
        "role": {
          "type": "string",
          "enum": [
            "ROLE_UNSPECIFIED",
            "OWNER",
            "WRITER",
            "READER"
          ],
          "description": "Required. The role granted by this permission.",
          "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."
          ]
        },
        "emailAddress": {
          "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.",
          "type": "string"
        }
      },
      "id": "Permission",
      "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"
    },
    "V1mainTuningSnapshot": {
      "id": "V1mainTuningSnapshot",
      "description": "Record for a single tuning step.",
      "properties": {
        "computeTime": {
          "readOnly": true,
          "description": "Output only. The timestamp when this metric was computed.",
          "format": "google-datetime",
          "type": "string"
        },
        "meanLoss": {
          "description": "Output only. The mean loss of the training examples for this step.",
          "type": "number",
          "readOnly": true,
          "format": "float"
        },
        "epoch": {
          "type": "integer",
          "description": "Output only. The epoch this step was part of.",
          "format": "int32",
          "readOnly": true
        },
        "step": {
          "type": "integer",
          "description": "Output only. The tuning step.",
          "format": "int32",
          "readOnly": true
        }
      },
      "type": "object"
    },
    "ModelStatus": {
      "id": "ModelStatus",
      "description": "The status of the underlying model. This is used to indicate the stage of the underlying model and the retirement time if applicable.",
      "type": "object",
      "properties": {
        "retirementTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "The time at which the model will be retired."
        },
        "message": {
          "description": "A message explaining the model status.",
          "type": "string"
        },
        "modelStage": {
          "enumDeprecated": [
            false,
            true,
            false,
            false,
            false,
            false,
            true,
            false
          ],
          "enumDescriptions": [
            "Unspecified model stage.",
            "The underlying model is subject to lots of tunings.",
            "Models in this stage are for experimental purposes only.",
            "Models in this stage are more mature than experimental models.",
            "Models in this stage are considered stable and ready for production use.",
            "If the model is on this stage, it means that this model is on the path to deprecation in near future. Only existing customers can use this model.",
            "Models in this stage are deprecated. These models cannot be used.",
            "Models in this stage are retired. These models cannot be used."
          ],
          "description": "The stage of the underlying model.",
          "type": "string",
          "enum": [
            "MODEL_STAGE_UNSPECIFIED",
            "UNSTABLE_EXPERIMENTAL",
            "EXPERIMENTAL",
            "PREVIEW",
            "STABLE",
            "LEGACY",
            "DEPRECATED",
            "RETIRED"
          ]
        }
      }
    },
    "EmbedTextRequest": {
      "id": "EmbedTextRequest",
      "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."
        }
      },
      "type": "object"
    },
    "CompositeMedia": {
      "type": "object",
      "properties": {
        "crc32cHash": {
          "type": "integer",
          "description": "crc32.c hash for the payload.",
          "format": "uint32"
        },
        "sha1Hash": {
          "type": "string",
          "description": "SHA-1 hash for the payload.",
          "format": "byte"
        },
        "length": {
          "type": "string",
          "format": "int64",
          "description": "Size of the data, in bytes"
        },
        "path": {
          "description": "Path to the data, set if reference_type is PATH",
          "type": "string"
        },
        "md5Hash": {
          "description": "MD5 hash for the payload.",
          "type": "string",
          "format": "byte"
        },
        "referenceType": {
          "type": "string",
          "enum": [
            "PATH",
            "BLOB_REF",
            "INLINE",
            "BIGSTORE_REF",
            "COSMO_BINARY_REFERENCE"
          ],
          "enumDescriptions": [
            "Reference contains a GFS path or a local path.",
            "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.",
            "Data is included into this proto buffer",
            "Reference points to a bigstore object",
            "Indicates the data is stored in cosmo_binary_reference."
          ],
          "description": "Describes what the field reference contains."
        },
        "objectId": {
          "$ref": "ObjectId",
          "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF."
        },
        "blobstore2Info": {
          "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.",
          "$ref": "Blobstore2Info"
        },
        "cosmoBinaryReference": {
          "type": "string",
          "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.",
          "format": "byte"
        },
        "blobRef": {
          "type": "string",
          "format": "byte",
          "deprecated": true,
          "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef."
        },
        "inline": {
          "type": "string",
          "format": "byte",
          "description": "Media data, set if reference_type is INLINE"
        }
      },
      "id": "CompositeMedia",
      "description": "A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites."
    },
    "PredictLongRunningRequest": {
      "id": "PredictLongRunningRequest",
      "properties": {
        "parameters": {
          "description": "Optional. The parameters that govern the prediction call.",
          "type": "any"
        },
        "instances": {
          "items": {
            "type": "any"
          },
          "description": "Required. The instances that are the input to the prediction call.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "Request message for [PredictionService.PredictLongRunning]."
    },
    "CodeExecutionResult": {
      "properties": {
        "outcome": {
          "description": "Required. Outcome of the code execution.",
          "enumDescriptions": [
            "Unspecified status. This value should not be used.",
            "Code execution completed successfully. `output` contains the stdout, if any.",
            "Code execution failed. `output` contains the stderr and stdout, if any.",
            "Code execution ran for too long, and was cancelled. There may or may not be a partial `output` present."
          ],
          "type": "string",
          "enum": [
            "OUTCOME_UNSPECIFIED",
            "OUTCOME_OK",
            "OUTCOME_FAILED",
            "OUTCOME_DEADLINE_EXCEEDED"
          ]
        },
        "output": {
          "type": "string",
          "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise."
        },
        "id": {
          "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.",
          "type": "string"
        }
      },
      "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.",
      "id": "CodeExecutionResult",
      "type": "object"
    },
    "FunctionResponseBlob": {
      "id": "FunctionResponseBlob",
      "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.",
      "type": "object",
      "properties": {
        "data": {
          "format": "byte",
          "description": "Raw bytes for media formats.",
          "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"
        }
      }
    },
    "GroundingAttribution": {
      "description": "Attribution for a source that contributed to an answer.",
      "properties": {
        "sourceId": {
          "description": "Output only. Identifier for the source contributing to this attribution.",
          "readOnly": true,
          "$ref": "AttributionSourceId"
        },
        "content": {
          "description": "Grounding source content that makes up this attribution.",
          "$ref": "Content"
        }
      },
      "type": "object",
      "id": "GroundingAttribution"
    },
    "ReviewSnippet": {
      "id": "ReviewSnippet",
      "type": "object",
      "properties": {
        "reviewId": {
          "description": "The ID of the review snippet.",
          "type": "string"
        },
        "title": {
          "type": "string",
          "description": "Title of the review."
        },
        "googleMapsUri": {
          "type": "string",
          "description": "A link that corresponds to the user review on Google Maps."
        }
      },
      "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps."
    },
    "RetrievalConfig": {
      "type": "object",
      "id": "RetrievalConfig",
      "description": "Retrieval config.",
      "properties": {
        "languageCode": {
          "description": "Optional. The language code of the user. Language code for content. Use language tags defined by [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).",
          "type": "string"
        },
        "latLng": {
          "description": "Optional. The location of the user.",
          "$ref": "LatLng"
        }
      }
    },
    "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).",
      "properties": {
        "title": {
          "type": "string",
          "description": "Optional. The title of the schema."
        },
        "anyOf": {
          "items": {
            "$ref": "Schema"
          },
          "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.",
          "type": "array"
        },
        "minLength": {
          "format": "int64",
          "type": "string",
          "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING"
        },
        "maxProperties": {
          "description": "Optional. Maximum number of the properties for Type.OBJECT.",
          "format": "int64",
          "type": "string"
        },
        "minItems": {
          "description": "Optional. Minimum number of the elements for Type.ARRAY.",
          "format": "int64",
          "type": "string"
        },
        "format": {
          "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality.",
          "type": "string"
        },
        "propertyOrdering": {
          "items": {
            "type": "string"
          },
          "description": "Optional. The order of the properties. Not a standard field in open api spec. Used to determine the order of the properties in the response.",
          "type": "array"
        },
        "pattern": {
          "type": "string",
          "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression."
        },
        "maxLength": {
          "type": "string",
          "description": "Optional. Maximum length of the Type.STRING",
          "format": "int64"
        },
        "nullable": {
          "description": "Optional. Indicates if the value may be null.",
          "type": "boolean"
        },
        "maxItems": {
          "format": "int64",
          "description": "Optional. Maximum number of the elements for Type.ARRAY.",
          "type": "string"
        },
        "maximum": {
          "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER",
          "type": "number",
          "format": "double"
        },
        "required": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. Required properties of Type.OBJECT."
        },
        "example": {
          "description": "Optional. Example of the object. Will only populated when the object is the root.",
          "type": "any"
        },
        "default": {
          "description": "Optional. Default value of the field. Per JSON Schema, this field is intended for documentation generators and doesn't affect validation. Thus it's included here and ignored so that developers who send schemas with a `default` field don't get unknown-field errors.",
          "type": "any"
        },
        "type": {
          "type": "string",
          "enum": [
            "TYPE_UNSPECIFIED",
            "STRING",
            "NUMBER",
            "INTEGER",
            "BOOLEAN",
            "ARRAY",
            "OBJECT",
            "NULL"
          ],
          "enumDescriptions": [
            "Not specified, should not be used.",
            "String type.",
            "Number type.",
            "Integer type.",
            "Boolean type.",
            "Array type.",
            "Object type.",
            "Null type."
          ],
          "description": "Required. Data type."
        },
        "description": {
          "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.",
          "type": "string"
        },
        "properties": {
          "description": "Optional. Properties of Type.OBJECT.",
          "additionalProperties": {
            "$ref": "Schema"
          },
          "type": "object"
        },
        "minimum": {
          "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER",
          "format": "double",
          "type": "number"
        },
        "minProperties": {
          "type": "string",
          "format": "int64",
          "description": "Optional. Minimum number of the properties for Type.OBJECT."
        },
        "items": {
          "description": "Optional. Schema of the elements of Type.ARRAY.",
          "$ref": "Schema"
        },
        "enum": {
          "type": "array",
          "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\"]}",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object",
      "id": "Schema"
    },
    "ListGeneratedFilesResponse": {
      "id": "ListGeneratedFilesResponse",
      "type": "object",
      "properties": {
        "generatedFiles": {
          "description": "The list of `GeneratedFile`s.",
          "items": {
            "$ref": "GeneratedFile"
          },
          "type": "array"
        },
        "nextPageToken": {
          "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call.",
          "type": "string"
        }
      },
      "description": "Response for `ListGeneratedFiles`."
    },
    "ListFilesResponse": {
      "type": "object",
      "properties": {
        "files": {
          "description": "The list of `File`s.",
          "type": "array",
          "items": {
            "$ref": "File"
          }
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call."
        }
      },
      "id": "ListFilesResponse",
      "description": "Response for `ListFiles`."
    },
    "FunctionResponse": {
      "id": "FunctionResponse",
      "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": {
          "type": "object",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          },
          "description": "Required. The function response in JSON object format. Callers can use any keys of their choice that fit the function's syntax to return the function output, e.g. \"output\", \"result\", etc. In particular, if the function call failed to execute, the response can have an \"error\" key to return error details to the model. Multimedia can be included by using a subobject containing a single \"$ref\" key whose value is the `inline_data.display_name` of a `FunctionResponsePart` holding the multimedia. See https://ai.google.dev/gemini-api/docs/function-calling#multimodal."
        },
        "willContinue": {
          "type": "boolean",
          "description": "Optional. Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished. This may still trigger the model generation. To avoid triggering the generation and finish the function call, additionally set `scheduling` to `SILENT`."
        },
        "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 128."
        },
        "parts": {
          "items": {
            "$ref": "FunctionResponsePart"
          },
          "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types.",
          "type": "array"
        },
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`."
        },
        "scheduling": {
          "enumDescriptions": [
            "This value is unused.",
            "Only add the result to the conversation context, do not interrupt or trigger generation.",
            "Add the result to the conversation context, and prompt to generate output without interrupting ongoing generation.",
            "Add the result to the conversation context, interrupt ongoing generation and prompt to generate output."
          ],
          "description": "Optional. Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE.",
          "type": "string",
          "enum": [
            "SCHEDULING_UNSPECIFIED",
            "SILENT",
            "WHEN_IDLE",
            "INTERRUPT"
          ]
        }
      },
      "type": "object"
    },
    "ImageSearch": {
      "type": "object",
      "id": "ImageSearch",
      "description": "Image search for grounding and related configurations.",
      "properties": {}
    },
    "BatchEmbedTextRequest": {
      "type": "object",
      "description": "Batch request to get a text embedding from the model.",
      "id": "BatchEmbedTextRequest",
      "properties": {
        "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"
        },
        "requests": {
          "description": "Optional. Embed requests for the batch. Only one of `texts` or `requests` can be set.",
          "type": "array",
          "items": {
            "$ref": "EmbedTextRequest"
          }
        }
      }
    },
    "CountTokensResponse": {
      "properties": {
        "totalTokens": {
          "format": "int32",
          "type": "integer",
          "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative."
        },
        "promptTokensDetails": {
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "description": "Output only. List of modalities that were processed in the request input.",
          "readOnly": true,
          "type": "array"
        },
        "cacheTokensDetails": {
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "description": "Output only. List of modalities that were processed in the cached content.",
          "readOnly": true,
          "type": "array"
        },
        "cachedContentTokenCount": {
          "format": "int32",
          "description": "Number of tokens in the cached part of the prompt (the cached content).",
          "type": "integer"
        }
      },
      "id": "CountTokensResponse",
      "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.",
      "type": "object"
    },
    "SemanticRetrieverConfig": {
      "id": "SemanticRetrieverConfig",
      "description": "Configuration for retrieving grounding content from a `Corpus` or `Document` created using the Semantic Retriever API.",
      "properties": {
        "query": {
          "$ref": "Content",
          "description": "Required. Query to use for matching `Chunk`s in the given resource by similarity."
        },
        "source": {
          "type": "string",
          "description": "Required. Name of the resource for retrieval. Example: `corpora/123` or `corpora/123/documents/abc`."
        },
        "minimumRelevanceScore": {
          "description": "Optional. Minimum relevance score for retrieved relevant `Chunk`s.",
          "format": "float",
          "type": "number"
        },
        "metadataFilters": {
          "items": {
            "$ref": "MetadataFilter"
          },
          "description": "Optional. Filters for selecting `Document`s and/or `Chunk`s from the resource.",
          "type": "array"
        },
        "maxChunksCount": {
          "format": "int32",
          "description": "Optional. Maximum number of relevant `Chunk`s to retrieve.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "BatchEmbedTextResponse": {
      "id": "BatchEmbedTextResponse",
      "type": "object",
      "properties": {
        "embeddings": {
          "items": {
            "$ref": "Embedding"
          },
          "description": "Output only. The embeddings generated from the input text.",
          "type": "array",
          "readOnly": true
        }
      },
      "description": "The response to a EmbedTextRequest."
    },
    "FileSearch": {
      "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.",
      "id": "FileSearch",
      "properties": {
        "metadataFilter": {
          "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.",
          "type": "string"
        },
        "fileSearchStoreNames": {
          "items": {
            "type": "string"
          },
          "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`",
          "type": "array"
        },
        "topK": {
          "format": "int32",
          "description": "Optional. The number of semantic retrieval chunks to retrieve.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "UploadToFileSearchStoreRequest": {
      "id": "UploadToFileSearchStoreRequest",
      "description": "Request for `UploadToFileSearchStore`.",
      "properties": {
        "displayName": {
          "description": "Optional. Display name of the created document.",
          "type": "string"
        },
        "mimeType": {
          "type": "string",
          "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content."
        },
        "customMetadata": {
          "description": "Custom metadata to be associated with the data.",
          "items": {
            "$ref": "CustomMetadata"
          },
          "type": "array"
        },
        "chunkingConfig": {
          "description": "Optional. Config for telling the service how to chunk the data. If not provided, the service will use default parameters.",
          "$ref": "ChunkingConfig"
        }
      },
      "type": "object"
    },
    "DiffDownloadResponse": {
      "properties": {
        "objectLocation": {
          "$ref": "CompositeMedia",
          "description": "The original object location."
        }
      },
      "type": "object",
      "id": "DiffDownloadResponse",
      "description": "Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol."
    },
    "InputFeedback": {
      "id": "InputFeedback",
      "properties": {
        "blockReason": {
          "description": "Optional. If set, the input was blocked and no candidates are returned. Rephrase the input.",
          "type": "string",
          "enum": [
            "BLOCK_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Input was blocked due to safety reasons. Inspect `safety_ratings` to understand which safety category blocked it.",
            "Input was blocked due to other reasons."
          ]
        },
        "safetyRatings": {
          "type": "array",
          "description": "Ratings for safety of the input. There is at most one rating per category.",
          "items": {
            "$ref": "SafetyRating"
          }
        }
      },
      "type": "object",
      "description": "Feedback related to the input data used to answer the question, as opposed to the model-generated response to the question."
    },
    "LatLng": {
      "id": "LatLng",
      "description": "An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.",
      "properties": {
        "latitude": {
          "type": "number",
          "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
          "format": "double"
        },
        "longitude": {
          "format": "double",
          "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
          "type": "number"
        }
      },
      "type": "object"
    },
    "DynamicRetrievalConfig": {
      "description": "Describes the options to customize dynamic retrieval.",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "MODE_UNSPECIFIED",
            "MODE_DYNAMIC"
          ],
          "description": "The mode of the predictor to be used in dynamic retrieval.",
          "enumDescriptions": [
            "Always trigger retrieval.",
            "Run retrieval only when system decides it is necessary."
          ]
        },
        "dynamicThreshold": {
          "type": "number",
          "format": "float",
          "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used."
        }
      },
      "type": "object",
      "id": "DynamicRetrievalConfig"
    },
    "DownloadFileResponse": {
      "type": "object",
      "id": "DownloadFileResponse",
      "properties": {},
      "description": "Response for `DownloadFile`."
    },
    "Model": {
      "id": "Model",
      "description": "Information about a Generative Language Model.",
      "type": "object",
      "properties": {
        "maxTemperature": {
          "type": "number",
          "description": "The maximum temperature this model can use.",
          "format": "float"
        },
        "thinking": {
          "type": "boolean",
          "description": "Whether the model supports thinking."
        },
        "version": {
          "type": "string",
          "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)"
        },
        "temperature": {
          "type": "number",
          "format": "float",
          "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."
        },
        "baseModelId": {
          "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`",
          "type": "string"
        },
        "displayName": {
          "description": "The human-readable name of the model. E.g. \"Gemini 1.5 Flash\". The name can be up to 128 characters long and can consist of any UTF-8 characters.",
          "type": "string"
        },
        "name": {
          "description": "Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values. Format: `models/{model}` with a `{model}` naming convention of: * \"{base_model_id}-{version}\" Examples: * `models/gemini-1.5-flash-001`",
          "type": "string"
        },
        "topK": {
          "format": "int32",
          "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.",
          "type": "integer"
        },
        "inputTokenLimit": {
          "description": "Maximum number of input tokens allowed for this model.",
          "format": "int32",
          "type": "integer"
        },
        "topP": {
          "format": "float",
          "type": "number",
          "description": "For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p). 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."
        },
        "outputTokenLimit": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum number of output tokens available for this model."
        },
        "description": {
          "description": "A short description of the model.",
          "type": "string"
        },
        "supportedGenerationMethods": {
          "items": {
            "type": "string"
          },
          "description": "The model's supported generation methods. The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`.",
          "type": "array"
        }
      }
    },
    "InlinedRequests": {
      "properties": {
        "requests": {
          "items": {
            "$ref": "InlinedRequest"
          },
          "description": "Required. The requests to be processed in the batch.",
          "type": "array"
        }
      },
      "type": "object",
      "id": "InlinedRequests",
      "description": "The requests to be processed in the batch if provided as part of the batch creation request."
    },
    "DiffUploadRequest": {
      "description": "A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
      "properties": {
        "objectInfo": {
          "description": "The location of the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received.",
          "$ref": "CompositeMedia"
        },
        "objectVersion": {
          "type": "string",
          "description": "The object version of the object that is the base version the incoming diff script will be applied to. This field will always be filled in."
        },
        "checksumsInfo": {
          "$ref": "CompositeMedia",
          "description": "The location of the checksums for the new object. Agents must clone the object located here, as the upload server will delete the contents once a response is received. For details on the format of the checksums, see http://go/scotty-diff-protocol."
        }
      },
      "type": "object",
      "id": "DiffUploadRequest"
    },
    "SearchTypes": {
      "type": "object",
      "description": "Different types of search that can be enabled on the GoogleSearch tool.",
      "properties": {
        "imageSearch": {
          "$ref": "ImageSearch",
          "description": "Optional. Enables image search. Image bytes are returned."
        },
        "webSearch": {
          "$ref": "WebSearch",
          "description": "Optional. Enables web search. Only text results are returned."
        }
      },
      "id": "SearchTypes"
    },
    "AudioTranscription": {
      "properties": {
        "words": {
          "items": {
            "$ref": "WordInfo"
          },
          "description": "Optional. Detailed word-level transcriptions and timing details. Present when word_timestamp is set.",
          "type": "array"
        },
        "speakerLabel": {
          "description": "Optional. A label identifying the speaker of this audio segment (e.g. \"spk_1\", \"spk_2\"). Present when diarization is set.",
          "type": "string"
        },
        "text": {
          "description": "Required. The transcription text of this audio segment.",
          "type": "string"
        }
      },
      "description": "The transcription of an audio part. For multi-speaker audio, each speaker segment is a separate Part with its own AudioTranscription carrying the speaker_label.",
      "type": "object",
      "id": "AudioTranscription"
    },
    "RealtimeInputConfig": {
      "description": "Configures the realtime input behavior in `BidiGenerateContent`.",
      "type": "object",
      "properties": {
        "activityHandling": {
          "enumDescriptions": [
            "If unspecified, the default behavior is `START_OF_ACTIVITY_INTERRUPTS`.",
            "If true, start of activity will interrupt the model's response (also called \"barge in\"). The model's current response will be cut-off in the moment of the interruption. This is the default behavior.",
            "The model's response will not be interrupted."
          ],
          "type": "string",
          "enum": [
            "ACTIVITY_HANDLING_UNSPECIFIED",
            "START_OF_ACTIVITY_INTERRUPTS",
            "NO_INTERRUPTION"
          ],
          "description": "Optional. Defines what effect activity has."
        },
        "turnCoverage": {
          "description": "Optional. Defines which input is included in the user's turn.",
          "enumDescriptions": [
            "If unspecified, a default behavior is selected based on the model. E.g., for Gemini 2.5, the default is `TURN_INCLUDES_ONLY_ACTIVITY`, while for Gemini 3.1 and onwards, it's `TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO`.",
            "Includes activity since the last turn, excluding inactivity (e.g. silence on the audio stream).",
            "Includes all realtime input since the last turn, including inactivity (e.g. silence on the audio stream).",
            "Includes audio activity and all video since the last turn. With automatic activity detection, audio activity means speech and excludes silence."
          ],
          "type": "string",
          "enum": [
            "TURN_COVERAGE_UNSPECIFIED",
            "TURN_INCLUDES_ONLY_ACTIVITY",
            "TURN_INCLUDES_ALL_INPUT",
            "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
          ]
        },
        "automaticActivityDetection": {
          "description": "Optional. If not set, automatic activity detection is enabled by default. If automatic voice detection is disabled, the client must send activity signals.",
          "$ref": "AutomaticActivityDetection"
        }
      },
      "id": "RealtimeInputConfig"
    },
    "Document": {
      "type": "object",
      "properties": {
        "updateTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The Timestamp of when the `Document` was last updated.",
          "readOnly": true
        },
        "createTime": {
          "description": "Output only. The Timestamp of when the `Document` was created.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "name": {
          "description": "Immutable. Identifier. The `Document` resource name. The ID (name excluding the \"fileSearchStores/*/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: `fileSearchStores/{file_search_store_id}/documents/my-awesome-doc-123a456b789c`",
          "type": "string"
        },
        "displayName": {
          "type": "string",
          "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\""
        },
        "state": {
          "description": "Output only. Current state of the `Document`.",
          "type": "string",
          "enum": [
            "STATE_UNSPECIFIED",
            "STATE_PENDING",
            "STATE_ACTIVE",
            "STATE_FAILED"
          ],
          "readOnly": true,
          "enumDescriptions": [
            "The default value. This value is used if the state is omitted.",
            "Some `Chunks` of the `Document` are being processed (embedding and vector storage).",
            "All `Chunks` of the `Document` is processed and available for querying.",
            "Some `Chunks` of the `Document` failed processing."
          ]
        },
        "mimeType": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The mime type of the Document."
        },
        "sizeBytes": {
          "format": "int64",
          "type": "string",
          "description": "Output only. The size of raw bytes ingested into the Document.",
          "readOnly": true
        },
        "customMetadata": {
          "type": "array",
          "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"
          }
        }
      },
      "id": "Document",
      "description": "A `Document` is a collection of `Chunk`s."
    },
    "V1mainCreateTunedModelMetadata": {
      "properties": {
        "completedSteps": {
          "type": "integer",
          "description": "The number of steps completed.",
          "format": "int32"
        },
        "totalSteps": {
          "type": "integer",
          "description": "The total number of tuning steps.",
          "format": "int32"
        },
        "snapshots": {
          "items": {
            "$ref": "V1mainTuningSnapshot"
          },
          "type": "array",
          "description": "Metrics collected during tuning."
        },
        "tunedModel": {
          "description": "Name of the tuned model associated with the tuning operation.",
          "type": "string"
        },
        "completedPercent": {
          "description": "The completed percentage for the tuning operation.",
          "type": "number",
          "format": "float"
        }
      },
      "id": "V1mainCreateTunedModelMetadata",
      "type": "object",
      "description": "Metadata about the state and progress of creating a tuned model returned from the long-running operation"
    },
    "ListOperationsResponse": {
      "description": "The response message for Operations.ListOperations.",
      "properties": {
        "unreachable": {
          "description": "Unordered list. Unreachable resources. Populated when the request sets `ListOperationsRequest.return_partial_success` and reads across collections. For example, when attempting to list all resources across all supported locations.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "operations": {
          "type": "array",
          "description": "A list of operations that matches the specified filter in the request.",
          "items": {
            "$ref": "Operation"
          }
        },
        "nextPageToken": {
          "description": "The standard List next-page token.",
          "type": "string"
        }
      },
      "id": "ListOperationsResponse",
      "type": "object"
    },
    "PredictResponse": {
      "properties": {
        "predictions": {
          "description": "The outputs of the prediction call.",
          "items": {
            "type": "any"
          },
          "type": "array"
        }
      },
      "id": "PredictResponse",
      "type": "object",
      "description": "Response message for [PredictionService.Predict]."
    },
    "AuthToken": {
      "id": "AuthToken",
      "properties": {
        "expireTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent sessions will be rejected. (Gemini may preemptively close the session after this time.) If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future."
        },
        "fieldMask": {
          "type": "string",
          "format": "google-fieldmask",
          "description": "Optional. Input only. Immutable. If field_mask is empty, and `bidi_generate_content_setup` is not present, then the effective `BidiGenerateContentSetup` message is taken from the Live API connection. If field_mask is empty, and `bidi_generate_content_setup` _is_ present, then the effective `BidiGenerateContentSetup` message is taken entirely from `bidi_generate_content_setup` in this request. The setup message from the Live API connection is ignored. If field_mask is not empty, then the corresponding fields from `bidi_generate_content_setup` will overwrite the fields from the setup message in the Live API connection."
        },
        "uses": {
          "type": "integer",
          "description": "Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.",
          "format": "int32"
        },
        "newSessionExpireTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Optional. Input only. Immutable. The time after which new Live API sessions using the token resulting from this request will be rejected. If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future."
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Identifier. The token itself."
        },
        "bidiGenerateContentSetup": {
          "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`.",
          "$ref": "BidiGenerateContentSetup"
        }
      },
      "type": "object",
      "description": "A request to create an ephemeral authentication token."
    },
    "FunctionCallingConfig": {
      "type": "object",
      "description": "Configuration for specifying function calling behavior.",
      "properties": {
        "allowedFunctionNames": {
          "items": {
            "type": "string"
          },
          "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 or VALIDATED. Function names should match [FunctionDeclaration.name]. When set, model will predict a function call from only allowed function names."
        },
        "mode": {
          "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.",
          "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.",
            "Model decides to predict either a function call or a natural language response, but will validate function calls with constrained decoding. 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\"."
          ],
          "type": "string",
          "enum": [
            "MODE_UNSPECIFIED",
            "AUTO",
            "ANY",
            "NONE",
            "VALIDATED"
          ]
        }
      },
      "id": "FunctionCallingConfig"
    },
    "TransferOwnershipResponse": {
      "description": "Response from `TransferOwnership`.",
      "id": "TransferOwnershipResponse",
      "type": "object",
      "properties": {}
    },
    "ComputerUse": {
      "properties": {
        "enablePromptInjectionDetection": {
          "description": "Optional. Whether enable the prompt injection detection check on computer-use request.",
          "type": "boolean"
        },
        "environment": {
          "type": "string",
          "enum": [
            "ENVIRONMENT_UNSPECIFIED",
            "ENVIRONMENT_BROWSER",
            "ENVIRONMENT_MOBILE",
            "ENVIRONMENT_DESKTOP"
          ],
          "description": "Required. The environment being operated.",
          "enumDescriptions": [
            "Defaults to browser.",
            "Operates in a web browser.",
            "Operates in a mobile environment.",
            "Operates in a desktop environment."
          ]
        },
        "disabledSafetyPolicies": {
          "description": "Optional. Disabled safety policies for computer use.",
          "type": "array",
          "items": {
            "enumDescriptions": [
              "Unspecified safety policy.",
              "Safety policy for financial transactions.",
              "Safety policy for sensitive data modification.",
              "Safety policy for communication tools (e.g. Gmail, Chat, Meet).",
              "Safety policy for account creation.",
              "Safety policy for data modification.",
              "Safety policy for user consent management.",
              "Safety policy for legal terms and agreements."
            ],
            "type": "string",
            "enum": [
              "SAFETY_POLICY_UNSPECIFIED",
              "FINANCIAL_TRANSACTIONS",
              "SENSITIVE_DATA_MODIFICATION",
              "COMMUNICATION_TOOL",
              "ACCOUNT_CREATION",
              "DATA_MODIFICATION",
              "USER_CONSENT_MANAGEMENT",
              "LEGAL_TERMS_AND_AGREEMENTS"
            ]
          }
        },
        "excludedPredefinedFunctions": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Optional. By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions."
        }
      },
      "type": "object",
      "id": "ComputerUse",
      "description": "Computer Use tool type."
    },
    "LogprobsResult": {
      "id": "LogprobsResult",
      "properties": {
        "logProbabilitySum": {
          "format": "float",
          "type": "number",
          "description": "Sum of log probabilities for all tokens."
        },
        "chosenCandidates": {
          "type": "array",
          "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates.",
          "items": {
            "$ref": "LogprobsResultCandidate"
          }
        },
        "topCandidates": {
          "type": "array",
          "items": {
            "$ref": "TopCandidates"
          },
          "description": "Length = total number of decoding steps."
        }
      },
      "description": "Logprobs Result",
      "type": "object"
    },
    "EmbedContentBatchOutput": {
      "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.",
      "id": "EmbedContentBatchOutput",
      "properties": {
        "responsesFile": {
          "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `EmbedContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.",
          "type": "string",
          "readOnly": true
        },
        "inlinedResponses": {
          "readOnly": true,
          "$ref": "InlinedEmbedContentResponses",
          "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests."
        }
      },
      "type": "object"
    },
    "CachedContentUsageMetadata": {
      "id": "CachedContentUsageMetadata",
      "description": "Metadata on the usage of the cached content.",
      "properties": {
        "totalTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "Total number of tokens that the cached content consumes."
        }
      },
      "type": "object"
    },
    "VideoFileMetadata": {
      "id": "VideoFileMetadata",
      "properties": {
        "videoDuration": {
          "description": "Duration of the video.",
          "format": "google-duration",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Metadata for a video `File`."
    },
    "CountTextTokensResponse": {
      "id": "CountTextTokensResponse",
      "properties": {
        "tokenCount": {
          "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative.",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object",
      "description": "A response from `CountTextTokens`. It returns the model's `token_count` for the `prompt`."
    },
    "PlaceAnswerSources": {
      "type": "object",
      "id": "PlaceAnswerSources",
      "properties": {
        "reviewSnippets": {
          "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.",
          "items": {
            "$ref": "ReviewSnippet"
          },
          "type": "array"
        }
      },
      "description": "Collection of sources that provide answers about the features of a given place in Google Maps. Each PlaceAnswerSources message corresponds to a specific place in Google Maps. The Google Maps tool used these sources in order to answer questions about features of the place (e.g: \"does Bar Foo have Wifi\" or \"is Foo Bar wheelchair accessible?\"). Currently we only support review snippets as sources."
    },
    "SemanticRetrieverChunk": {
      "type": "object",
      "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.",
      "id": "SemanticRetrieverChunk",
      "properties": {
        "source": {
          "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`",
          "readOnly": true,
          "type": "string"
        },
        "chunk": {
          "readOnly": true,
          "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`",
          "type": "string"
        }
      }
    },
    "SafetyFeedback": {
      "properties": {
        "rating": {
          "description": "Safety rating evaluated from content.",
          "$ref": "SafetyRating"
        },
        "setting": {
          "$ref": "SafetySetting",
          "description": "Safety settings applied to the request."
        }
      },
      "id": "SafetyFeedback",
      "type": "object",
      "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."
    },
    "EnvironmentFile": {
      "id": "EnvironmentFile",
      "properties": {
        "mime_type": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The MIME type of the file (e.g., \"text/python\", \"image/png\"). Empty for directories. NOLINT"
        },
        "size_bytes": {
          "format": "int64",
          "readOnly": true,
          "description": "Output only. The size of the file/directory in bytes. NOLINT",
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "TYPE_UNSPECIFIED",
            "FILE",
            "DIRECTORY"
          ],
          "readOnly": true,
          "enumDescriptions": [
            "Unspecified type.",
            "A regular file.",
            "A directory."
          ],
          "description": "Output only. The type of the entry."
        },
        "created": {
          "format": "google-datetime",
          "description": "Output only. The creation time of the file/directory.",
          "readOnly": true,
          "type": "string"
        },
        "path": {
          "readOnly": true,
          "description": "Output only. The full relative path within the environment (e.g., \"workspace/src/main.py\").",
          "type": "string"
        },
        "modified": {
          "format": "google-datetime",
          "description": "Output only. The modification time of the file/directory.",
          "type": "string",
          "readOnly": true
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The name of the file or directory (e.g., \"main.py\" or \"src\")."
        }
      },
      "description": "Metadata for a file or directory within an environment.",
      "type": "object"
    },
    "TuningExamples": {
      "properties": {
        "examples": {
          "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type.",
          "items": {
            "$ref": "TuningExample"
          },
          "type": "array"
        }
      },
      "id": "TuningExamples",
      "description": "A set of tuning examples. Can be training or validation data.",
      "type": "object"
    },
    "ModalityTokenCount": {
      "description": "Represents token counting info for a single modality.",
      "id": "ModalityTokenCount",
      "type": "object",
      "properties": {
        "tokenCount": {
          "format": "int32",
          "description": "Number of tokens.",
          "type": "integer"
        },
        "modality": {
          "type": "string",
          "enum": [
            "MODALITY_UNSPECIFIED",
            "TEXT",
            "IMAGE",
            "VIDEO",
            "AUDIO",
            "DOCUMENT"
          ],
          "description": "The modality associated with this token count.",
          "enumDescriptions": [
            "Unspecified modality.",
            "Plain text.",
            "Image.",
            "Video.",
            "Audio.",
            "Document, e.g. PDF."
          ]
        }
      }
    },
    "GenerateContentBatchOutput": {
      "id": "GenerateContentBatchOutput",
      "properties": {
        "responsesFile": {
          "description": "Output only. The file ID of the file containing the responses. The file will be a JSONL file with a single response per line. The responses will be `GenerateContentResponse` messages formatted as JSON. The responses will be written in the same order as the input requests.",
          "readOnly": true,
          "type": "string"
        },
        "inlinedResponses": {
          "description": "Output only. The responses to the requests in the batch. Returned when the batch was built using inlined requests. The responses will be in the same order as the input requests.",
          "readOnly": true,
          "$ref": "InlinedResponses"
        }
      },
      "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.",
      "type": "object"
    },
    "ResponseFormatConfig": {
      "id": "ResponseFormatConfig",
      "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.",
      "type": "object",
      "properties": {
        "audio": {
          "description": "Optional. Audio output format configuration.",
          "$ref": "AudioResponseFormat"
        },
        "text": {
          "description": "Optional. Text output format configuration.",
          "$ref": "TextResponseFormat"
        },
        "image": {
          "description": "Optional. Image output format configuration.",
          "$ref": "ImageResponseFormat"
        }
      }
    },
    "AutomaticActivityDetection": {
      "type": "object",
      "properties": {
        "prefixPaddingMs": {
          "format": "int32",
          "description": "Optional. The required duration of detected speech before start-of-speech is committed. The lower this value, the more sensitive the start-of-speech detection is and shorter speech can be recognized. However, this also increases the probability of false positives.",
          "type": "integer"
        },
        "endOfSpeechSensitivity": {
          "type": "string",
          "enum": [
            "END_SENSITIVITY_UNSPECIFIED",
            "END_SENSITIVITY_HIGH",
            "END_SENSITIVITY_LOW"
          ],
          "enumDescriptions": [
            "The default is END_SENSITIVITY_HIGH.",
            "Automatic detection ends speech more often.",
            "Automatic detection ends speech less often."
          ],
          "description": "Optional. Determines how likely detected speech is ended."
        },
        "disabled": {
          "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals.",
          "type": "boolean"
        },
        "silenceDurationMs": {
          "description": "Optional. The required duration of detected non-speech (e.g. silence) before end-of-speech is committed. The larger this value, the longer speech gaps can be without interrupting the user's activity but this will increase the model's latency.",
          "type": "integer",
          "format": "int32"
        },
        "startOfSpeechSensitivity": {
          "description": "Optional. Determines how likely speech is to be detected.",
          "enumDescriptions": [
            "The default is START_SENSITIVITY_HIGH.",
            "Automatic detection will detect the start of speech more often.",
            "Automatic detection will detect the start of speech less often."
          ],
          "type": "string",
          "enum": [
            "START_SENSITIVITY_UNSPECIFIED",
            "START_SENSITIVITY_HIGH",
            "START_SENSITIVITY_LOW"
          ]
        }
      },
      "id": "AutomaticActivityDetection",
      "description": "Configures automatic detection of activity."
    },
    "RetrievedContext": {
      "id": "RetrievedContext",
      "properties": {
        "text": {
          "description": "Optional. Text of the chunk.",
          "type": "string"
        },
        "uri": {
          "type": "string",
          "description": "Optional. URI reference of the semantic retrieval document."
        },
        "title": {
          "description": "Optional. Title of the document.",
          "type": "string"
        },
        "customMetadata": {
          "type": "array",
          "items": {
            "$ref": "GroundingChunkCustomMetadata"
          },
          "description": "Optional. User-provided metadata about the retrieved context."
        },
        "mediaId": {
          "type": "string",
          "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}"
        },
        "fileSearchStore": {
          "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`",
          "type": "string"
        },
        "pageNumber": {
          "description": "Optional. Page number of the retrieved context, if applicable.",
          "type": "integer",
          "format": "int32"
        }
      },
      "description": "Chunk from context retrieved by the file search tool.",
      "type": "object"
    },
    "Empty": {
      "id": "Empty",
      "type": "object",
      "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); }",
      "properties": {}
    },
    "EmbedContentConfig": {
      "properties": {
        "autoTruncate": {
          "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.",
          "type": "boolean"
        },
        "outputDimensionality": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end."
        },
        "audioTrackExtraction": {
          "description": "Optional. Whether to extract audio from video content.",
          "type": "boolean"
        },
        "title": {
          "description": "Optional. The title for the text.",
          "type": "string"
        },
        "taskType": {
          "type": "string",
          "enum": [
            "TASK_TYPE_UNSPECIFIED",
            "RETRIEVAL_QUERY",
            "RETRIEVAL_DOCUMENT",
            "SEMANTIC_SIMILARITY",
            "CLASSIFICATION",
            "CLUSTERING",
            "QUESTION_ANSWERING",
            "FACT_VERIFICATION",
            "CODE_RETRIEVAL_QUERY"
          ],
          "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.",
            "Specifies that the given text will be used for code retrieval."
          ],
          "description": "Optional. The task type of the embedding."
        },
        "documentOcr": {
          "description": "Optional. Whether to enable OCR for document content.",
          "type": "boolean"
        }
      },
      "id": "EmbedContentConfig",
      "type": "object",
      "description": "Configurations for the EmbedContent request."
    },
    "ToolResponse": {
      "id": "ToolResponse",
      "description": "The output from a server-side `ToolCall` execution. This message contains the results of a tool invocation that was initiated by a `ToolCall` from the model. The client should pass this `ToolResponse` back to the API in a subsequent turn within a `Content` message, along with the corresponding `ToolCall`.",
      "properties": {
        "response": {
          "description": "Optional. The tool response.",
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        },
        "toolType": {
          "enumDescriptions": [
            "Unspecified tool type.",
            "Google search tool, maps to Tool.google_search.search_types.web_search.",
            "Image search tool, maps to Tool.google_search.search_types.image_search.",
            "URL context tool, maps to Tool.url_context.",
            "Google maps tool, maps to Tool.google_maps.",
            "File search tool, maps to Tool.file_search."
          ],
          "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.",
          "type": "string",
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH"
          ]
        },
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the tool call this response is for."
        }
      },
      "type": "object"
    },
    "RetrievalMetadata": {
      "id": "RetrievalMetadata",
      "description": "Metadata related to retrieval in the grounding flow.",
      "properties": {
        "googleSearchDynamicRetrievalScore": {
          "description": "Optional. Score indicating how likely information from google search could help answer the prompt. The score is in the range [0, 1], where 0 is the least likely and 1 is the most likely. This score is only populated when google search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger google search.",
          "format": "float",
          "type": "number"
        }
      },
      "type": "object"
    },
    "WebSearch": {
      "id": "WebSearch",
      "description": "Standard web search for grounding and related configurations.",
      "type": "object",
      "properties": {}
    },
    "ImportFileRequest": {
      "description": "Request for `ImportFile` to import a File API file with a `FileSearchStore`.",
      "properties": {
        "customMetadata": {
          "description": "Custom metadata to be associated with the file.",
          "type": "array",
          "items": {
            "$ref": "CustomMetadata"
          }
        },
        "chunkingConfig": {
          "description": "Optional. Config for telling the service how to chunk the file. If not provided, the service will use default parameters.",
          "$ref": "ChunkingConfig"
        },
        "fileName": {
          "description": "Required. The name of the `File` to import. Example: `files/abc-123`",
          "type": "string"
        }
      },
      "type": "object",
      "id": "ImportFileRequest"
    },
    "InlinedRequest": {
      "id": "InlinedRequest",
      "description": "The request to be processed in the batch.",
      "properties": {
        "request": {
          "description": "Required. The request to be processed in the batch.",
          "$ref": "GenerateContentRequest"
        },
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "description": "Optional. The metadata to be associated with the request."
        }
      },
      "type": "object"
    },
    "GenerateContentResponse": {
      "description": "Response from the model supporting multiple candidate responses. Safety ratings and content filtering are reported for both prompt in `GenerateContentResponse.prompt_feedback` and for each candidate in `finish_reason` and in `safety_ratings`. The API: - Returns either all requested candidates or none of them - Returns no candidates at all only if there was something wrong with the prompt (check `prompt_feedback`) - Reports feedback on each candidate in `finish_reason` and `safety_ratings`.",
      "type": "object",
      "properties": {
        "usageMetadata": {
          "description": "Output only. Metadata on the generation requests' token usage.",
          "$ref": "UsageMetadata",
          "readOnly": true
        },
        "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"
        },
        "modelStatus": {
          "description": "Output only. The current model status of this model.",
          "$ref": "ModelStatus",
          "readOnly": true
        },
        "modelVersion": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. The model version used to generate the response."
        },
        "responseId": {
          "type": "string",
          "readOnly": true,
          "description": "Output only. response_id is used to identify each response."
        }
      },
      "id": "GenerateContentResponse"
    },
    "Corpus": {
      "id": "Corpus",
      "type": "object",
      "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora.",
      "properties": {
        "name": {
          "readOnly": true,
          "description": "Output only. 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`",
          "type": "string"
        },
        "displayName": {
          "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\"",
          "type": "string"
        },
        "createTime": {
          "format": "google-datetime",
          "description": "Output only. The Timestamp of when the `Corpus` was created.",
          "type": "string",
          "readOnly": true
        },
        "updateTime": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The Timestamp of when the `Corpus` was last updated.",
          "format": "google-datetime"
        }
      }
    },
    "MessagePrompt": {
      "id": "MessagePrompt",
      "properties": {
        "messages": {
          "type": "array",
          "items": {
            "$ref": "Message"
          },
          "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`."
        },
        "context": {
          "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.",
          "type": "string"
        },
        "examples": {
          "items": {
            "$ref": "Example"
          },
          "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`.",
          "type": "array"
        }
      },
      "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.",
      "type": "object"
    },
    "McpServer": {
      "id": "McpServer",
      "type": "object",
      "properties": {
        "streamableHttpTransport": {
          "$ref": "StreamableHttpTransport",
          "description": "A transport that can stream HTTP requests and responses."
        },
        "name": {
          "description": "The name of the MCPServer.",
          "type": "string"
        }
      },
      "description": "A MCPServer is a server that can be called by the model to perform actions. It is a server that implements the MCP protocol. Next ID: 6"
    },
    "Dataset": {
      "type": "object",
      "properties": {
        "examples": {
          "$ref": "TuningExamples",
          "description": "Optional. Inline examples with simple input/output text."
        }
      },
      "id": "Dataset",
      "description": "Dataset for training or validation."
    },
    "AsyncBatchEmbedContentRequest": {
      "id": "AsyncBatchEmbedContentRequest",
      "description": "Request for an `AsyncBatchEmbedContent` operation.",
      "type": "object",
      "properties": {
        "batch": {
          "description": "Required. The batch to create.",
          "$ref": "EmbedContentBatch"
        }
      }
    },
    "GroundingPassage": {
      "properties": {
        "content": {
          "description": "Content of the passage.",
          "$ref": "Content"
        },
        "id": {
          "type": "string",
          "description": "Identifier for the passage for attributing this passage in grounded answers."
        }
      },
      "type": "object",
      "id": "GroundingPassage",
      "description": "Passage included inline with a grounding configuration."
    },
    "UrlContextMetadata": {
      "description": "Metadata related to url context retrieval tool.",
      "properties": {
        "urlMetadata": {
          "description": "List of url context.",
          "items": {
            "$ref": "UrlMetadata"
          },
          "type": "array"
        }
      },
      "type": "object",
      "id": "UrlContextMetadata"
    },
    "ListDocumentsResponse": {
      "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."
        },
        "documents": {
          "items": {
            "$ref": "Document"
          },
          "type": "array",
          "description": "The returned `Document`s."
        }
      },
      "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.",
      "id": "ListDocumentsResponse",
      "type": "object"
    },
    "ListCachedContentsResponse": {
      "type": "object",
      "id": "ListCachedContentsResponse",
      "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 subsequent pages.",
          "type": "string"
        },
        "cachedContents": {
          "type": "array",
          "description": "List of cached contents.",
          "items": {
            "$ref": "CachedContent"
          }
        }
      },
      "description": "Response with CachedContents list."
    },
    "GroundingChunkCustomMetadata": {
      "id": "GroundingChunkCustomMetadata",
      "properties": {
        "stringListValue": {
          "description": "Optional. A list of string values for the metadata.",
          "$ref": "GroundingChunkStringList"
        },
        "stringValue": {
          "description": "Optional. The string value of the metadata.",
          "type": "string"
        },
        "key": {
          "description": "The key of the metadata.",
          "type": "string"
        },
        "numericValue": {
          "type": "number",
          "description": "Optional. The numeric value of the metadata. The expected range for this value depends on the specific `key` used.",
          "format": "float"
        }
      },
      "description": "User provided metadata about the GroundingFact.",
      "type": "object"
    },
    "ContextWindowCompressionConfig": {
      "id": "ContextWindowCompressionConfig",
      "type": "object",
      "properties": {
        "slidingWindow": {
          "$ref": "SlidingWindow",
          "description": "A sliding-window mechanism."
        },
        "triggerTokens": {
          "format": "int64",
          "type": "string",
          "description": "The number of tokens (before running a turn) required to trigger a context window compression. This can be used to balance quality against latency as shorter context windows may result in faster model responses. However, any compression operation will cause a temporary latency increase, so they should not be triggered frequently. If not set, the default is 80% of the model's context window limit. This leaves 20% for the next user request/model response."
        }
      },
      "description": "Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length."
    },
    "VideoMetadata": {
      "properties": {
        "endOffset": {
          "description": "Optional. The end offset of the video.",
          "format": "google-duration",
          "type": "string"
        },
        "fps": {
          "type": "number",
          "format": "double",
          "description": "Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0]."
        },
        "startOffset": {
          "format": "google-duration",
          "description": "Optional. The start offset of the video.",
          "type": "string"
        }
      },
      "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.",
      "type": "object",
      "id": "VideoMetadata",
      "deprecated": true
    },
    "TunedModel": {
      "properties": {
        "tuningTask": {
          "$ref": "TuningTask",
          "description": "Required. The tuning task that creates the tuned model."
        },
        "temperature": {
          "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",
          "type": "number"
        },
        "createTime": {
          "description": "Output only. The timestamp when this model was created.",
          "format": "google-datetime",
          "readOnly": true,
          "type": "string"
        },
        "updateTime": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The timestamp when this model was updated.",
          "format": "google-datetime"
        },
        "baseModel": {
          "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`",
          "type": "string"
        },
        "topP": {
          "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",
          "type": "number"
        },
        "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."
        },
        "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": {
          "readOnly": true,
          "description": "Output only. The state of the tuned model.",
          "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",
          "enum": [
            "STATE_UNSPECIFIED",
            "CREATING",
            "ACTIVE",
            "FAILED"
          ]
        },
        "topK": {
          "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.",
          "type": "integer",
          "format": "int32"
        },
        "description": {
          "type": "string",
          "description": "Optional. A short description of this model."
        },
        "readerProjectNumbers": {
          "items": {
            "format": "int64",
            "type": "string"
          },
          "type": "array",
          "description": "Optional. List of project numbers that have read access to the tuned model."
        },
        "tunedModelSource": {
          "$ref": "TunedModelSource",
          "description": "Optional. TunedModel to use as the starting point for training the new model."
        }
      },
      "description": "A fine-tuned model created using ModelService.CreateTunedModel.",
      "id": "TunedModel",
      "type": "object"
    },
    "InlinedEmbedContentRequest": {
      "id": "InlinedEmbedContentRequest",
      "properties": {
        "metadata": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          },
          "description": "Optional. The metadata to be associated with the request.",
          "type": "object"
        },
        "request": {
          "description": "Required. The request to be processed in the batch.",
          "$ref": "EmbedContentRequest"
        }
      },
      "type": "object",
      "description": "The request to be processed in the batch."
    },
    "GoogleMaps": {
      "id": "GoogleMaps",
      "properties": {
        "enableWidget": {
          "description": "Optional. Whether to return a widget context token in the GroundingMetadata of the response. Developers can use the widget context token to render a Google Maps widget with geospatial context related to the places that the model references in the response.",
          "type": "boolean"
        }
      },
      "description": "The GoogleMaps Tool that provides geospatial context for the user's query.",
      "type": "object"
    },
    "GenerateTextRequest": {
      "type": "object",
      "id": "GenerateTextRequest",
      "properties": {
        "temperature": {
          "format": "float",
          "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.",
          "type": "number"
        },
        "topP": {
          "format": "float",
          "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."
        },
        "safetySettings": {
          "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.",
          "items": {
            "$ref": "SafetySetting"
          },
          "type": "array"
        },
        "stopSequences": {
          "type": "array",
          "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.",
          "items": {
            "type": "string"
          }
        },
        "candidateCount": {
          "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",
          "type": "integer"
        },
        "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"
        },
        "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"
        },
        "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"
        }
      },
      "description": "Request to generate a text completion response from the model."
    },
    "EmbedContentResponse": {
      "properties": {
        "embedding": {
          "readOnly": true,
          "description": "Output only. The embedding generated from the input content.",
          "$ref": "ContentEmbedding"
        },
        "usageMetadata": {
          "description": "Output only. The usage metadata for the request.",
          "readOnly": true,
          "$ref": "EmbeddingUsageMetadata"
        }
      },
      "type": "object",
      "id": "EmbedContentResponse",
      "description": "The response to an `EmbedContentRequest`."
    },
    "GdataMedia": {
      "properties": {
        "bigstoreObjectRef": {
          "description": "Use object_id instead.",
          "deprecated": true,
          "format": "byte",
          "type": "string"
        },
        "compositeMedia": {
          "items": {
            "$ref": "CompositeMedia"
          },
          "description": "A composite media composed of one or more media objects, set if reference_type is COMPOSITE_MEDIA. The media length field must be set to the sum of the lengths of all composite media objects. Note: All composite media must have length specified.",
          "type": "array"
        },
        "timestamp": {
          "description": "Time at which the media data was last updated, in milliseconds since UNIX epoch",
          "format": "uint64",
          "type": "string"
        },
        "diffUploadResponse": {
          "description": "Set if reference_type is DIFF_UPLOAD_RESPONSE.",
          "$ref": "DiffUploadResponse"
        },
        "cosmoBinaryReference": {
          "description": "A binary data reference for a media download. Serves as a technology-agnostic binary reference in some Google infrastructure. This value is a serialized storage_cosmo.BinaryReference proto. Storing it as bytes is a hack to get around the fact that the cosmo proto (as well as others it includes) doesn't support JavaScript. This prevents us from including the actual type of this field.",
          "format": "byte",
          "type": "string"
        },
        "filename": {
          "type": "string",
          "description": "Original file name"
        },
        "blobRef": {
          "deprecated": true,
          "format": "byte",
          "type": "string",
          "description": "Blobstore v1 reference, set if reference_type is BLOBSTORE_REF This should be the byte representation of a blobstore.BlobRef. Since Blobstore is deprecating v1, use blobstore2_info instead. For now, any v2 blob will also be represented in this field as v1 BlobRef."
        },
        "path": {
          "type": "string",
          "description": "Path to the data, set if reference_type is PATH"
        },
        "contentTypeInfo": {
          "description": "Extended content type information provided for Scotty uploads.",
          "$ref": "ContentTypeInfo"
        },
        "sha512Hash": {
          "description": "Scotty-provided SHA512 hash for an upload.",
          "type": "string",
          "format": "byte"
        },
        "diffChecksumsResponse": {
          "$ref": "DiffChecksumsResponse",
          "description": "Set if reference_type is DIFF_CHECKSUMS_RESPONSE."
        },
        "algorithm": {
          "deprecated": true,
          "description": "Deprecated, use one of explicit hash type fields instead. Algorithm used for calculating the hash. As of 2011/01/21, \"MD5\" is the only possible value for this field. New values may be added at any time.",
          "type": "string"
        },
        "length": {
          "description": "Size of the data, in bytes",
          "format": "int64",
          "type": "string"
        },
        "blobstore2Info": {
          "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.",
          "$ref": "Blobstore2Info"
        },
        "diffVersionResponse": {
          "description": "Set if reference_type is DIFF_VERSION_RESPONSE.",
          "$ref": "DiffVersionResponse"
        },
        "mediaId": {
          "format": "byte",
          "description": "Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.",
          "type": "string"
        },
        "diffUploadRequest": {
          "description": "Set if reference_type is DIFF_UPLOAD_REQUEST.",
          "$ref": "DiffUploadRequest"
        },
        "hashVerified": {
          "type": "boolean",
          "description": "For Scotty uploads only. If a user sends a hash code and the backend has requested that Scotty verify the upload against the client hash, Scotty will perform the check on behalf of the backend and will reject it if the hashes don't match. This is set to true if Scotty performed this verification."
        },
        "referenceType": {
          "enumDescriptions": [
            "Reference contains a GFS path or a local path.",
            "Reference points to a blobstore object. This could be either a v1 blob_ref or a v2 blobstore2_info. Clients should check blobstore2_info first, since v1 is being deprecated.",
            "Data is included into this proto buffer",
            "Data should be accessed from the current service using the operation GetMedia.",
            "The content for this media object is stored across multiple partial media objects under the composite_media field.",
            "Reference points to a bigstore object",
            "Indicates the data is stored in diff_version_response.",
            "Indicates the data is stored in diff_checksums_response.",
            "Indicates the data is stored in diff_download_response.",
            "Indicates the data is stored in diff_upload_request.",
            "Indicates the data is stored in diff_upload_response.",
            "Indicates the data is stored in cosmo_binary_reference.",
            "Informs Scotty to generate a response payload with the size specified in the length field. The contents of the payload are generated by Scotty and are undefined. This is useful for testing download speeds between the user and Scotty without involving a real payload source. Note: range is not supported when using arbitrary_bytes."
          ],
          "description": "Describes what the field reference contains.",
          "type": "string",
          "enum": [
            "PATH",
            "BLOB_REF",
            "INLINE",
            "GET_MEDIA",
            "COMPOSITE_MEDIA",
            "BIGSTORE_REF",
            "DIFF_VERSION_RESPONSE",
            "DIFF_CHECKSUMS_RESPONSE",
            "DIFF_DOWNLOAD_RESPONSE",
            "DIFF_UPLOAD_REQUEST",
            "DIFF_UPLOAD_RESPONSE",
            "COSMO_BINARY_REFERENCE",
            "ARBITRARY_BYTES"
          ]
        },
        "downloadParameters": {
          "$ref": "DownloadParameters",
          "description": "Parameters for a media download."
        },
        "token": {
          "type": "string",
          "description": "A unique fingerprint/version id for the media data"
        },
        "contentType": {
          "type": "string",
          "description": "MIME type of the data"
        },
        "md5Hash": {
          "format": "byte",
          "type": "string",
          "description": "Scotty-provided MD5 hash for an upload."
        },
        "diffDownloadResponse": {
          "$ref": "DiffDownloadResponse",
          "description": "Set if reference_type is DIFF_DOWNLOAD_RESPONSE."
        },
        "sha1Hash": {
          "description": "Scotty-provided SHA1 hash for an upload.",
          "type": "string",
          "format": "byte"
        },
        "isPotentialRetry": {
          "description": "|is_potential_retry| is set false only when Scotty is certain that it has not sent the request before. When a client resumes an upload, this field must be set true in agent calls, because Scotty cannot be certain that it has never sent the request before due to potential failure in the session state persistence.",
          "type": "boolean"
        },
        "crc32cHash": {
          "type": "integer",
          "format": "uint32",
          "description": "For Scotty Uploads: Scotty-provided hashes for uploads For Scotty Downloads: (WARNING: DO NOT USE WITHOUT PERMISSION FROM THE SCOTTY TEAM.) A Hash provided by the agent to be used to verify the data being downloaded. Currently only supported for inline payloads. Further, only crc32c_hash is currently supported."
        },
        "hash": {
          "type": "string",
          "deprecated": true,
          "description": "Deprecated, use one of explicit hash type fields instead. These two hash related fields will only be populated on Scotty based media uploads and will contain the content of the hash group in the NotificationRequest: http://cs/#google3/blobstore2/api/scotty/service/proto/upload_listener.proto&q=class:Hash Hex encoded hash value of the uploaded media."
        },
        "sha256Hash": {
          "format": "byte",
          "type": "string",
          "description": "Scotty-provided SHA256 hash for an upload."
        },
        "objectId": {
          "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF.",
          "$ref": "ObjectId"
        },
        "inline": {
          "type": "string",
          "format": "byte",
          "description": "Media data, set if reference_type is INLINE"
        }
      },
      "type": "object",
      "description": "A reference to data stored on the filesystem, on GFS or in blobstore.",
      "id": "GdataMedia"
    },
    "GenerateTextResponse": {
      "id": "GenerateTextResponse",
      "properties": {
        "candidates": {
          "description": "Candidate responses from the model.",
          "items": {
            "$ref": "TextCompletion"
          },
          "type": "array"
        },
        "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. 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).",
          "type": "array",
          "items": {
            "$ref": "ContentFilter"
          }
        },
        "safetyFeedback": {
          "type": "array",
          "items": {
            "$ref": "SafetyFeedback"
          },
          "description": "Returns any safety feedback related to content filtering."
        }
      },
      "description": "The response from the model, including candidate completions.",
      "type": "object"
    },
    "EmbedContentBatchStats": {
      "type": "object",
      "properties": {
        "successfulRequestCount": {
          "description": "Output only. The number of requests that were successfully processed.",
          "readOnly": true,
          "type": "string",
          "format": "int64"
        },
        "requestCount": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The number of requests in the batch.",
          "format": "int64"
        },
        "pendingRequestCount": {
          "description": "Output only. The number of requests that are still pending processing.",
          "readOnly": true,
          "format": "int64",
          "type": "string"
        },
        "failedRequestCount": {
          "description": "Output only. The number of requests that failed to be processed.",
          "type": "string",
          "readOnly": true,
          "format": "int64"
        }
      },
      "description": "Stats about the batch.",
      "id": "EmbedContentBatchStats"
    },
    "GroundingChunk": {
      "type": "object",
      "description": "A `GroundingChunk` represents a segment of supporting evidence that grounds the model's response. It can be a chunk from the web, a retrieved context from a file, or information from Google Maps.",
      "properties": {
        "maps": {
          "$ref": "Maps",
          "description": "Optional. Grounding chunk from Google Maps."
        },
        "web": {
          "description": "Grounding chunk from the web.",
          "$ref": "Web"
        },
        "retrievedContext": {
          "description": "Optional. Grounding chunk from context retrieved by the file search tool.",
          "$ref": "RetrievedContext"
        },
        "image": {
          "description": "Optional. Grounding chunk from image search.",
          "$ref": "Image"
        }
      },
      "id": "GroundingChunk"
    },
    "CodeExecution": {
      "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",
      "properties": {},
      "type": "object"
    },
    "VoiceConfig": {
      "description": "The configuration for the voice to use.",
      "type": "object",
      "properties": {
        "prebuiltVoiceConfig": {
          "$ref": "PrebuiltVoiceConfig",
          "description": "The configuration for the prebuilt voice to use."
        }
      },
      "id": "VoiceConfig"
    },
    "UsageMetadata": {
      "properties": {
        "promptTokensDetails": {
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "readOnly": true,
          "description": "Output only. List of modalities that were processed in the request input.",
          "type": "array"
        },
        "candidatesTokensDetails": {
          "readOnly": true,
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "description": "Output only. List of modalities that were returned in the response.",
          "type": "array"
        },
        "cacheTokensDetails": {
          "type": "array",
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "description": "Output only. List of modalities of the cached content in the request input.",
          "readOnly": true
        },
        "promptTokenCount": {
          "type": "integer",
          "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content.",
          "format": "int32"
        },
        "totalTokenCount": {
          "type": "integer",
          "description": "Total token count for the generation request (prompt + thoughts + response candidates).",
          "format": "int32"
        },
        "serviceTier": {
          "readOnly": true,
          "enumDescriptions": [
            "Default service tier, which is standard.",
            "Standard service tier.",
            "Flex service tier.",
            "Priority service tier."
          ],
          "description": "Output only. Service tier of the request.",
          "type": "string",
          "enum": [
            "unspecified",
            "standard",
            "flex",
            "priority"
          ]
        },
        "candidatesTokenCount": {
          "type": "integer",
          "format": "int32",
          "description": "Total number of tokens across all the generated response candidates."
        },
        "toolUsePromptTokenCount": {
          "readOnly": true,
          "description": "Output only. Number of tokens present in tool-use prompt(s).",
          "type": "integer",
          "format": "int32"
        },
        "cachedContentTokenCount": {
          "type": "integer",
          "description": "Number of tokens in the cached part of the prompt (the cached content)",
          "format": "int32"
        },
        "toolUsePromptTokensDetails": {
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "readOnly": true,
          "description": "Output only. List of modalities that were processed for tool-use request inputs.",
          "type": "array"
        },
        "thoughtsTokenCount": {
          "type": "integer",
          "description": "Output only. Number of tokens of thoughts for thinking models.",
          "readOnly": true,
          "format": "int32"
        }
      },
      "description": "Metadata on the generation request's token usage.",
      "id": "UsageMetadata",
      "type": "object"
    },
    "SessionResumptionConfig": {
      "id": "SessionResumptionConfig",
      "description": "Session resumption configuration. This message is included in the session configuration as `BidiGenerateContentSetup.session_resumption`. If configured, the server will send `SessionResumptionUpdate` messages.",
      "properties": {
        "handle": {
          "description": "The handle of a previous session. If not present then a new session is created. Session handles come from `SessionResumptionUpdate.token` values in previous connections.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "PredictRequest": {
      "properties": {
        "parameters": {
          "type": "any",
          "description": "Optional. The parameters that govern the prediction call."
        },
        "instances": {
          "type": "array",
          "description": "Required. The instances that are the input to the prediction call.",
          "items": {
            "type": "any"
          }
        }
      },
      "description": "Request message for PredictionService.Predict.",
      "id": "PredictRequest",
      "type": "object"
    },
    "TuningExample": {
      "id": "TuningExample",
      "properties": {
        "textInput": {
          "description": "Optional. Text model input.",
          "type": "string"
        },
        "output": {
          "type": "string",
          "description": "Required. The expected model output."
        }
      },
      "description": "A single example for tuning.",
      "type": "object"
    },
    "ExecutableCode": {
      "id": "ExecutableCode",
      "type": "object",
      "properties": {
        "code": {
          "description": "Required. The code to be executed.",
          "type": "string"
        },
        "id": {
          "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.",
          "type": "string"
        },
        "language": {
          "description": "Required. Programming language of the `code`.",
          "enumDescriptions": [
            "Unspecified language. This value should not be used.",
            "Python \u003e= 3.10, with numpy and simpy available. Python is the default language."
          ],
          "type": "string",
          "enum": [
            "LANGUAGE_UNSPECIFIED",
            "PYTHON"
          ]
        }
      },
      "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."
    },
    "Operation": {
      "id": "Operation",
      "properties": {
        "metadata": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object. Contains field @type with type URL."
          },
          "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.",
          "type": "object"
        },
        "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"
        },
        "response": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object. Contains field @type with type URL."
          },
          "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`.",
          "type": "object"
        },
        "error": {
          "description": "The error result of the operation in case of failure or cancellation.",
          "$ref": "Status"
        },
        "done": {
          "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.",
          "type": "boolean"
        }
      },
      "type": "object",
      "description": "This resource represents a long-running operation that is the result of a network API call."
    },
    "Message": {
      "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.",
      "properties": {
        "citationMetadata": {
          "$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.",
          "readOnly": true
        },
        "author": {
          "type": "string",
          "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."
        },
        "content": {
          "type": "string",
          "description": "Required. The text content of the structured `Message`."
        }
      },
      "id": "Message",
      "type": "object"
    },
    "InlinedResponse": {
      "properties": {
        "metadata": {
          "type": "object",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "readOnly": true,
          "description": "Output only. The metadata associated with the request."
        },
        "error": {
          "$ref": "Status",
          "readOnly": true,
          "description": "Output only. The error encountered while processing the request."
        },
        "response": {
          "description": "Output only. The response to the request.",
          "$ref": "GenerateContentResponse",
          "readOnly": true
        }
      },
      "type": "object",
      "id": "InlinedResponse",
      "description": "The response to a single request in the batch."
    },
    "ImageResponseFormat": {
      "id": "ImageResponseFormat",
      "type": "object",
      "properties": {
        "imageSize": {
          "description": "Optional. The size of the image output.",
          "type": "string",
          "enum": [
            "IMAGE_SIZE_UNSPECIFIED",
            "IMAGE_SIZE_FIVE_TWELVE",
            "IMAGE_SIZE_ONE_K",
            "IMAGE_SIZE_TWO_K",
            "IMAGE_SIZE_FOUR_K"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "512px image size.",
            "1K image size.",
            "2K image size.",
            "4K image size."
          ]
        },
        "aspectRatio": {
          "description": "Optional. The aspect ratio for the image output.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "1:1 aspect ratio.",
            "2:3 aspect ratio.",
            "3:2 aspect ratio.",
            "3:4 aspect ratio.",
            "4:3 aspect ratio.",
            "4:5 aspect ratio.",
            "5:4 aspect ratio.",
            "9:16 aspect ratio.",
            "16:9 aspect ratio.",
            "21:9 aspect ratio.",
            "1:8 aspect ratio.",
            "8:1 aspect ratio.",
            "1:4 aspect ratio.",
            "4:1 aspect ratio."
          ],
          "type": "string",
          "enum": [
            "ASPECT_RATIO_UNSPECIFIED",
            "ASPECT_RATIO_ONE_BY_ONE",
            "ASPECT_RATIO_TWO_BY_THREE",
            "ASPECT_RATIO_THREE_BY_TWO",
            "ASPECT_RATIO_THREE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_THREE",
            "ASPECT_RATIO_FOUR_BY_FIVE",
            "ASPECT_RATIO_FIVE_BY_FOUR",
            "ASPECT_RATIO_NINE_BY_SIXTEEN",
            "ASPECT_RATIO_SIXTEEN_BY_NINE",
            "ASPECT_RATIO_TWENTY_ONE_BY_NINE",
            "ASPECT_RATIO_ONE_BY_EIGHT",
            "ASPECT_RATIO_EIGHT_BY_ONE",
            "ASPECT_RATIO_ONE_BY_FOUR",
            "ASPECT_RATIO_FOUR_BY_ONE"
          ]
        },
        "mimeType": {
          "type": "string",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "IMAGE_JPEG"
          ],
          "description": "Optional. The MIME type of the image output.",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JPEG image format."
          ]
        },
        "delivery": {
          "description": "Optional. The delivery mode for the image output.",
          "type": "string",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Image data is returned inline in the response.",
            "Image data is returned as a URI."
          ]
        }
      },
      "description": "Configuration for image output format."
    },
    "EnvironmentNetworkEgressAllowlist": {
      "properties": {
        "allowlist": {
          "type": "array",
          "items": {
            "$ref": "EgressRule"
          },
          "description": "List of allowed domains and their configurations."
        }
      },
      "description": "Network egress configuration for the environment.",
      "type": "object",
      "id": "EnvironmentNetworkEgressAllowlist"
    },
    "GroundingPassageId": {
      "properties": {
        "partIndex": {
          "readOnly": true,
          "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.",
          "format": "int32",
          "type": "integer"
        },
        "passageId": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`."
        }
      },
      "description": "Identifier for a part within a `GroundingPassage`.",
      "id": "GroundingPassageId",
      "type": "object"
    },
    "GoogleSearch": {
      "id": "GoogleSearch",
      "type": "object",
      "properties": {
        "searchTypes": {
          "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.",
          "$ref": "SearchTypes"
        },
        "timeRangeFilter": {
          "$ref": "Interval",
          "description": "Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa)."
        }
      },
      "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google."
    },
    "GenerationConfig": {
      "id": "GenerationConfig",
      "type": "object",
      "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.",
      "properties": {
        "presencePenalty": {
          "format": "float",
          "description": "Optional. Presence penalty applied to the next token's logprobs if the token has already been seen in the response. This penalty is binary on/off and not dependant on the number of times the token is used (after the first). Use frequency_penalty for a penalty that increases with each use. A positive penalty will discourage the use of tokens that have already been used in the response, increasing the vocabulary. A negative penalty will encourage the use of tokens that have already been used in the response, decreasing the vocabulary.",
          "type": "number"
        },
        "speechConfig": {
          "description": "Optional. The speech generation config.",
          "$ref": "SpeechConfig"
        },
        "audioTranscriptionConfig": {
          "description": "Optional. Config for audio transcription (speech recognition).",
          "$ref": "AudioTranscriptionConfig"
        },
        "_responseJsonSchema": {
          "type": "any",
          "deprecated": true,
          "description": "Optional. Output schema of the generated response. This is an alternative to `response_schema` that accepts [JSON Schema](https://json-schema.org/). If set, `response_schema` must be omitted, but `response_mime_type` is required. While the full JSON Schema may be sent, not all features are supported. Specifically, only the following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor` - `type` - `format` - `title` - `description` - `enum` (for strings and numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` - `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) - `properties` - `additionalProperties` - `required` The non-standard `propertyOrdering` property may also be set. Cyclic references are unrolled to a limited degree and, as such, may only be used within non-required properties. (Nullable properties are not sufficient.) If `$ref` is set on a sub-schema, no other properties, except for than those starting as a `$`, may be set."
        },
        "temperature": {
          "type": "number",
          "format": "float",
          "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]."
        },
        "translationConfig": {
          "$ref": "TranslationConfig",
          "description": "Optional. Config for translation."
        },
        "responseLogprobs": {
          "description": "Optional. If true, export the logprobs results in response.",
          "type": "boolean"
        },
        "stopSequences": {
          "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.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "topK": {
          "type": "integer",
          "description": "Optional. The maximum number of tokens to consider when sampling. Gemini models use Top-p (nucleus) sampling or a combination of 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` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests.",
          "format": "int32"
        },
        "logprobs": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Only valid if response_logprobs=True. This sets the number of top logprobs, including the chosen candidate, to return at each decoding step in the Candidate.logprobs_result. The number must be in the range of [0, 20]."
        },
        "responseJsonSchema": {
          "type": "any",
          "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field."
        },
        "enableEnhancedCivicAnswers": {
          "description": "Optional. Enables enhanced civic answers. It may not be available for all models.",
          "type": "boolean"
        },
        "maxOutputTokens": {
          "format": "int32",
          "description": "Optional. The maximum number of tokens to include in a response 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"
        },
        "thinkingConfig": {
          "$ref": "ThinkingConfig",
          "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking."
        },
        "imageConfig": {
          "description": "Optional. Config for image generation. An error will be returned if this field is set for models that don't support these config options.",
          "$ref": "ImageConfig"
        },
        "frequencyPenalty": {
          "type": "number",
          "format": "float",
          "description": "Optional. Frequency penalty applied to the next token's logprobs, multiplied by the number of times each token has been seen in the respponse so far. A positive penalty will discourage the use of tokens that have already been used, proportional to the number of times the token has been used: The more a token is used, the more difficult it is for the model to use that token again increasing the vocabulary of responses. Caution: A _negative_ penalty will encourage the model to reuse tokens proportional to the number of times the token has been used. Small negative values will reduce the vocabulary of a response. Larger negative values will cause the model to start repeating a common token until it hits the max_output_tokens limit."
        },
        "topP": {
          "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and Top-p (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 the number of tokens based on the cumulative probability. Note: The default value varies by `Model` and is specified by the`Model.top_p` attribute returned from the `getModel` function. An empty `top_k` attribute indicates that the model doesn't apply top-k sampling and doesn't allow setting `top_k` on requests.",
          "format": "float",
          "type": "number"
        },
        "mediaResolution": {
          "enumDescriptions": [
            "Media resolution has not been set.",
            "Media resolution set to low (64 tokens).",
            "Media resolution set to medium (256 tokens).",
            "Media resolution set to high (zoomed reframing with 256 tokens)."
          ],
          "description": "Optional. If specified, the media resolution specified will be used.",
          "type": "string",
          "enum": [
            "MEDIA_RESOLUTION_UNSPECIFIED",
            "MEDIA_RESOLUTION_LOW",
            "MEDIA_RESOLUTION_MEDIUM",
            "MEDIA_RESOLUTION_HIGH"
          ]
        },
        "responseFormat": {
          "description": "Optional. Configuration for the response output format. Allows specifying output configuration per modality (text, audio, image) in a flat structure.",
          "$ref": "ResponseFormatConfig"
        },
        "responseSchema": {
          "description": "Optional. Output schema of the generated candidate text. Schemas must be a subset of the [OpenAPI schema](https://spec.openapis.org/oas/v3.0.3#schema) and can be objects, primitives or arrays. If set, a compatible `response_mime_type` must also be set. Compatible MIME types: `application/json`: Schema for JSON response. Refer to the [JSON text generation guide](https://ai.google.dev/gemini-api/docs/json-mode) for more details.",
          "deprecated": true,
          "$ref": "Schema"
        },
        "responseMimeType": {
          "description": "Optional. MIME type of the generated candidate text. Supported MIME types are: `text/plain`: (default) Text output. `application/json`: JSON response in the response candidates. `text/x.enum`: ENUM as a string response in the response candidates. Refer to the [docs](https://ai.google.dev/gemini-api/docs/prompting_with_media#plain_text_formats) for a list of all supported text MIME types.",
          "type": "string"
        },
        "enableAffectiveDialog": {
          "type": "boolean",
          "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly."
        },
        "seed": {
          "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.",
          "format": "int32",
          "type": "integer"
        },
        "candidateCount": {
          "description": "Optional. Number of generated responses to return. If unset, this will default to 1. Please note that this doesn't work for previous generation models (Gemini 1.0 family)",
          "format": "int32",
          "type": "integer"
        },
        "responseModalities": {
          "type": "array",
          "description": "Optional. The requested modalities of the response. Represents the set of modalities that the model can return, and should be expected in the response. This is an exact match to the modalities of the response. A model may have multiple combinations of supported modalities. If the requested modalities do not match any of the supported combinations, an error will be returned. An empty list is equivalent to requesting only text.",
          "items": {
            "enumDescriptions": [
              "Default value.",
              "Indicates the model should return text.",
              "Indicates the model should return images.",
              "Indicates the model should return audio."
            ],
            "type": "string",
            "enum": [
              "MODALITY_UNSPECIFIED",
              "TEXT",
              "IMAGE",
              "AUDIO"
            ]
          }
        }
      }
    },
    "GoogleSearchRetrieval": {
      "type": "object",
      "description": "Tool to retrieve public web data for grounding, powered by Google.",
      "properties": {
        "dynamicRetrievalConfig": {
          "description": "Specifies the dynamic retrieval configuration for the given source.",
          "$ref": "DynamicRetrievalConfig"
        }
      },
      "id": "GoogleSearchRetrieval"
    },
    "DownloadMediaResponse": {
      "properties": {
        "blob": {
          "readOnly": true,
          "description": "Output only. The blob data.",
          "$ref": "GdataMedia"
        }
      },
      "id": "DownloadMediaResponse",
      "type": "object",
      "description": "Response for DownloadMedia."
    },
    "GroundingPassages": {
      "type": "object",
      "properties": {
        "passages": {
          "type": "array",
          "items": {
            "$ref": "GroundingPassage"
          },
          "description": "List of passages."
        }
      },
      "description": "A repeated list of passages.",
      "id": "GroundingPassages"
    },
    "ChunkingConfig": {
      "properties": {
        "whiteSpaceConfig": {
          "$ref": "WhiteSpaceConfig",
          "description": "White space chunking configuration."
        }
      },
      "id": "ChunkingConfig",
      "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto",
      "type": "object"
    }
  },
  "title": "Gemini API",
  "resources": {
    "cachedContents": {
      "methods": {
        "create": {
          "httpMethod": "POST",
          "description": "Creates CachedContent resource.",
          "response": {
            "$ref": "CachedContent"
          },
          "id": "generativelanguage.cachedContents.create",
          "request": {
            "$ref": "CachedContent"
          },
          "parameterOrder": [],
          "flatPath": "v1beta/cachedContents",
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "path": "v1beta/cachedContents",
          "parameters": {}
        },
        "get": {
          "httpMethod": "GET",
          "parameterOrder": [
            "name"
          ],
          "id": "generativelanguage.cachedContents.get",
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "description": "Reads CachedContent resource.",
          "parameters": {
            "name": {
              "pattern": "^cachedContents/[^/]+$",
              "location": "path",
              "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`",
              "type": "string",
              "required": true
            }
          },
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "path": "v1beta/{+name}",
          "response": {
            "$ref": "CachedContent"
          }
        },
        "patch": {
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "PATCH",
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "request": {
            "$ref": "CachedContent"
          },
          "description": "Updates CachedContent resource (only expiration is updatable).",
          "response": {
            "$ref": "CachedContent"
          },
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "id": "generativelanguage.cachedContents.patch",
          "parameters": {
            "updateMask": {
              "location": "query",
              "description": "The list of fields to update.",
              "format": "google-fieldmask",
              "type": "string"
            },
            "name": {
              "pattern": "^cachedContents/[^/]+$",
              "type": "string",
              "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`",
              "location": "path",
              "required": true
            }
          }
        },
        "delete": {
          "parameters": {
            "name": {
              "pattern": "^cachedContents/[^/]+$",
              "type": "string",
              "location": "path",
              "required": true,
              "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`"
            }
          },
          "parameterOrder": [
            "name"
          ],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "id": "generativelanguage.cachedContents.delete",
          "response": {
            "$ref": "Empty"
          },
          "httpMethod": "DELETE",
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "path": "v1beta/{+name}",
          "description": "Deletes CachedContent resource."
        },
        "list": {
          "parameterOrder": [],
          "parameters": {
            "pageToken": {
              "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.",
              "location": "query",
              "type": "string"
            },
            "pageSize": {
              "location": "query",
              "type": "integer",
              "format": "int32",
              "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."
            }
          },
          "id": "generativelanguage.cachedContents.list",
          "description": "Lists CachedContents.",
          "httpMethod": "GET",
          "response": {
            "$ref": "ListCachedContentsResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "flatPath": "v1beta/cachedContents",
          "path": "v1beta/cachedContents"
        }
      }
    },
    "generatedFiles": {
      "methods": {
        "list": {
          "flatPath": "v1beta/generatedFiles",
          "id": "generativelanguage.generatedFiles.list",
          "response": {
            "$ref": "ListGeneratedFilesResponse"
          },
          "parameters": {
            "pageSize": {
              "description": "Optional. Maximum number of `GeneratedFile`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 50.",
              "format": "int32",
              "location": "query",
              "type": "integer"
            },
            "pageToken": {
              "description": "Optional. A page token from a previous `ListGeneratedFiles` call.",
              "type": "string",
              "location": "query"
            }
          },
          "description": "Lists the generated files owned by the requesting project.",
          "httpMethod": "GET",
          "parameterOrder": [],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "path": "v1beta/generatedFiles"
        }
      },
      "resources": {
        "operations": {
          "methods": {
            "get": {
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "Operation"
              },
              "httpMethod": "GET",
              "id": "generativelanguage.generatedFiles.operations.get",
              "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
              "path": "v1beta/{+name}",
              "parameters": {
                "name": {
                  "type": "string",
                  "pattern": "^generatedFiles/[^/]+/operations/[^/]+$",
                  "description": "The name of the operation resource.",
                  "location": "path",
                  "required": true
                }
              },
              "flatPath": "v1beta/generatedFiles/{generatedFilesId}/operations/{operationsId}"
            }
          }
        }
      }
    },
    "corpora": {
      "methods": {
        "delete": {
          "httpMethod": "DELETE",
          "parameterOrder": [
            "name"
          ],
          "id": "generativelanguage.corpora.delete",
          "path": "v1beta/{+name}",
          "deprecated": true,
          "response": {
            "$ref": "Empty"
          },
          "description": "Deletes a `Corpus`.",
          "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",
              "location": "path",
              "required": true
            }
          },
          "flatPath": "v1beta/corpora/{corporaId}"
        },
        "list": {
          "parameters": {
            "pageToken": {
              "location": "query",
              "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.",
              "type": "string"
            },
            "pageSize": {
              "type": "integer",
              "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.",
              "format": "int32",
              "location": "query"
            }
          },
          "httpMethod": "GET",
          "parameterOrder": [],
          "id": "generativelanguage.corpora.list",
          "flatPath": "v1beta/corpora",
          "response": {
            "$ref": "ListCorporaResponse"
          },
          "deprecated": true,
          "description": "Lists all `Corpora` owned by the user.",
          "path": "v1beta/corpora"
        },
        "create": {
          "description": "Creates an empty `Corpus`.",
          "parameters": {},
          "path": "v1beta/corpora",
          "httpMethod": "POST",
          "request": {
            "$ref": "Corpus"
          },
          "deprecated": true,
          "id": "generativelanguage.corpora.create",
          "parameterOrder": [],
          "flatPath": "v1beta/corpora",
          "response": {
            "$ref": "Corpus"
          }
        },
        "get": {
          "parameterOrder": [
            "name"
          ],
          "id": "generativelanguage.corpora.get",
          "parameters": {
            "name": {
              "pattern": "^corpora/[^/]+$",
              "type": "string",
              "location": "path",
              "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`",
              "required": true
            }
          },
          "deprecated": true,
          "httpMethod": "GET",
          "flatPath": "v1beta/corpora/{corporaId}",
          "path": "v1beta/{+name}",
          "description": "Gets information about a specific `Corpus`.",
          "response": {
            "$ref": "Corpus"
          }
        }
      },
      "resources": {
        "permissions": {
          "methods": {
            "create": {
              "description": "Create a permission to a specific resource.",
              "request": {
                "$ref": "Permission"
              },
              "httpMethod": "POST",
              "id": "generativelanguage.corpora.permissions.create",
              "path": "v1beta/{+parent}/permissions",
              "parameters": {
                "parent": {
                  "required": true,
                  "type": "string",
                  "location": "path",
                  "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "pattern": "^corpora/[^/]+$"
                }
              },
              "parameterOrder": [
                "parent"
              ],
              "flatPath": "v1beta/corpora/{corporaId}/permissions",
              "response": {
                "$ref": "Permission"
              }
            },
            "get": {
              "path": "v1beta/{+name}",
              "response": {
                "$ref": "Permission"
              },
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "description": "Gets information about a specific Permission.",
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$",
                  "location": "path",
                  "type": "string",
                  "required": true,
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`"
                }
              },
              "httpMethod": "GET",
              "id": "generativelanguage.corpora.permissions.get"
            },
            "list": {
              "description": "Lists permissions for the specific resource.",
              "flatPath": "v1beta/corpora/{corporaId}/permissions",
              "path": "v1beta/{+parent}/permissions",
              "id": "generativelanguage.corpora.permissions.list",
              "parameters": {
                "parent": {
                  "type": "string",
                  "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "pattern": "^corpora/[^/]+$",
                  "required": true,
                  "location": "path"
                },
                "pageSize": {
                  "format": "int32",
                  "type": "integer",
                  "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.",
                  "location": "query"
                },
                "pageToken": {
                  "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.",
                  "location": "query",
                  "type": "string"
                }
              },
              "httpMethod": "GET",
              "parameterOrder": [
                "parent"
              ],
              "response": {
                "$ref": "ListPermissionsResponse"
              }
            },
            "delete": {
              "parameters": {
                "name": {
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$",
                  "location": "path",
                  "required": true,
                  "type": "string"
                }
              },
              "parameterOrder": [
                "name"
              ],
              "id": "generativelanguage.corpora.permissions.delete",
              "httpMethod": "DELETE",
              "description": "Deletes the permission.",
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "response": {
                "$ref": "Empty"
              },
              "path": "v1beta/{+name}"
            },
            "patch": {
              "description": "Updates the permission.",
              "parameterOrder": [
                "name"
              ],
              "request": {
                "$ref": "Permission"
              },
              "httpMethod": "PATCH",
              "id": "generativelanguage.corpora.permissions.patch",
              "response": {
                "$ref": "Permission"
              },
              "parameters": {
                "name": {
                  "required": true,
                  "type": "string",
                  "location": "path",
                  "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": "^corpora/[^/]+/permissions/[^/]+$"
                },
                "updateMask": {
                  "format": "google-fieldmask",
                  "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)",
                  "location": "query",
                  "type": "string"
                }
              },
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "path": "v1beta/{+name}"
            }
          }
        },
        "operations": {
          "methods": {
            "get": {
              "parameters": {
                "name": {
                  "pattern": "^corpora/[^/]+/operations/[^/]+$",
                  "location": "path",
                  "description": "The name of the operation resource.",
                  "required": true,
                  "type": "string"
                }
              },
              "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
              "path": "v1beta/{+name}",
              "httpMethod": "GET",
              "response": {
                "$ref": "Operation"
              },
              "parameterOrder": [
                "name"
              ],
              "flatPath": "v1beta/corpora/{corporaId}/operations/{operationsId}",
              "id": "generativelanguage.corpora.operations.get"
            }
          }
        }
      }
    },
    "models": {
      "resources": {
        "operations": {
          "methods": {
            "list": {
              "httpMethod": "GET",
              "parameters": {
                "name": {
                  "description": "The name of the operation's parent resource.",
                  "location": "path",
                  "pattern": "^models/[^/]+$",
                  "type": "string",
                  "required": true
                },
                "filter": {
                  "location": "query",
                  "description": "The standard list filter.",
                  "type": "string"
                },
                "returnPartialSuccess": {
                  "location": "query",
                  "type": "boolean",
                  "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation."
                },
                "pageToken": {
                  "description": "The standard list page token.",
                  "type": "string",
                  "location": "query"
                },
                "pageSize": {
                  "type": "integer",
                  "location": "query",
                  "description": "The standard list page size.",
                  "format": "int32"
                }
              },
              "parameterOrder": [
                "name"
              ],
              "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
              "flatPath": "v1beta/models/{modelsId}/operations",
              "path": "v1beta/{+name}/operations",
              "id": "generativelanguage.models.operations.list",
              "response": {
                "$ref": "ListOperationsResponse"
              }
            },
            "get": {
              "id": "generativelanguage.models.operations.get",
              "flatPath": "v1beta/models/{modelsId}/operations/{operationsId}",
              "httpMethod": "GET",
              "path": "v1beta/{+name}",
              "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "The name of the operation resource.",
                  "required": true,
                  "location": "path",
                  "pattern": "^models/[^/]+/operations/[^/]+$"
                }
              },
              "response": {
                "$ref": "Operation"
              },
              "parameterOrder": [
                "name"
              ]
            }
          }
        }
      },
      "methods": {
        "streamGenerateContent": {
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "id": "generativelanguage.models.streamGenerateContent",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.",
          "flatPath": "v1beta/models/{modelsId}:streamGenerateContent",
          "path": "v1beta/{+model}:streamGenerateContent",
          "parameters": {
            "model": {
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "pattern": "^models/[^/]+$",
              "location": "path",
              "type": "string",
              "required": true
            }
          },
          "httpMethod": "POST"
        },
        "embedText": {
          "deprecated": true,
          "id": "generativelanguage.models.embedText",
          "request": {
            "$ref": "EmbedTextRequest"
          },
          "path": "v1beta/{+model}:embedText",
          "response": {
            "$ref": "EmbedTextResponse"
          },
          "flatPath": "v1beta/models/{modelsId}:embedText",
          "httpMethod": "POST",
          "description": "Generates an embedding from the model given an input message.",
          "parameterOrder": [
            "model"
          ],
          "parameters": {
            "model": {
              "pattern": "^models/[^/]+$",
              "description": "Required. The model name to use with the format model=models/{model}.",
              "location": "path",
              "type": "string",
              "required": true
            }
          }
        },
        "countMessageTokens": {
          "parameters": {
            "model": {
              "required": true,
              "location": "path",
              "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/[^/]+$"
            }
          },
          "path": "v1beta/{+model}:countMessageTokens",
          "request": {
            "$ref": "CountMessageTokensRequest"
          },
          "response": {
            "$ref": "CountMessageTokensResponse"
          },
          "flatPath": "v1beta/models/{modelsId}:countMessageTokens",
          "parameterOrder": [
            "model"
          ],
          "description": "Runs a model's tokenizer on a string and returns the token count.",
          "id": "generativelanguage.models.countMessageTokens",
          "httpMethod": "POST",
          "deprecated": true
        },
        "generateText": {
          "id": "generativelanguage.models.generateText",
          "description": "Generates a response from the model given an input message.",
          "parameters": {
            "model": {
              "location": "path",
              "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,
              "pattern": "^models/[^/]+$",
              "type": "string"
            }
          },
          "request": {
            "$ref": "GenerateTextRequest"
          },
          "deprecated": true,
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "GenerateTextResponse"
          },
          "flatPath": "v1beta/models/{modelsId}:generateText",
          "path": "v1beta/{+model}:generateText",
          "httpMethod": "POST"
        },
        "batchEmbedText": {
          "parameterOrder": [
            "model"
          ],
          "request": {
            "$ref": "BatchEmbedTextRequest"
          },
          "deprecated": true,
          "flatPath": "v1beta/models/{modelsId}:batchEmbedText",
          "id": "generativelanguage.models.batchEmbedText",
          "response": {
            "$ref": "BatchEmbedTextResponse"
          },
          "httpMethod": "POST",
          "path": "v1beta/{+model}:batchEmbedText",
          "parameters": {
            "model": {
              "location": "path",
              "description": "Required. The name of the `Model` to use for generating the embedding. Examples: models/embedding-gecko-001",
              "required": true,
              "pattern": "^models/[^/]+$",
              "type": "string"
            }
          },
          "description": "Generates multiple embeddings from the model given input text in a synchronous call."
        },
        "get": {
          "description": "Gets information about a specific `Model` such as its version number, token limits, [parameters](https://ai.google.dev/gemini-api/docs/models/generative-models#model-parameters) and other metadata. Refer to the [Gemini models guide](https://ai.google.dev/gemini-api/docs/models/gemini) for detailed model information.",
          "path": "v1beta/{+name}",
          "id": "generativelanguage.models.get",
          "httpMethod": "GET",
          "flatPath": "v1beta/models/{modelsId}",
          "parameters": {
            "name": {
              "description": "Required. The resource name of the model. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "required": true,
              "type": "string",
              "location": "path",
              "pattern": "^models/[^/]+$"
            }
          },
          "response": {
            "$ref": "Model"
          },
          "parameterOrder": [
            "name"
          ]
        },
        "generateMessage": {
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "deprecated": true,
          "description": "Generates a response from the model given an input `MessagePrompt`.",
          "id": "generativelanguage.models.generateMessage",
          "request": {
            "$ref": "GenerateMessageRequest"
          },
          "flatPath": "v1beta/models/{modelsId}:generateMessage",
          "path": "v1beta/{+model}:generateMessage",
          "parameters": {
            "model": {
              "type": "string",
              "location": "path",
              "required": true,
              "pattern": "^models/[^/]+$",
              "description": "Required. The name of the model to use. Format: `name=models/{model}`."
            }
          },
          "response": {
            "$ref": "GenerateMessageResponse"
          }
        },
        "countTokens": {
          "parameters": {
            "model": {
              "location": "path",
              "required": true,
              "pattern": "^models/[^/]+$",
              "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"
            }
          },
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "CountTokensResponse"
          },
          "request": {
            "$ref": "CountTokensRequest"
          },
          "flatPath": "v1beta/models/{modelsId}:countTokens",
          "path": "v1beta/{+model}:countTokens",
          "description": "Runs a model's tokenizer on input `Content` and returns the token count. Refer to the [tokens guide](https://ai.google.dev/gemini-api/docs/tokens) to learn more about tokens.",
          "httpMethod": "POST",
          "id": "generativelanguage.models.countTokens"
        },
        "embedContent": {
          "parameters": {
            "model": {
              "type": "string",
              "pattern": "^models/[^/]+$",
              "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}`",
              "location": "path",
              "required": true
            }
          },
          "description": "Generates a text embedding vector from the input `Content` using the specified [Gemini Embedding model](https://ai.google.dev/gemini-api/docs/models/gemini#text-embedding).",
          "id": "generativelanguage.models.embedContent",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "EmbedContentResponse"
          },
          "path": "v1beta/{+model}:embedContent",
          "request": {
            "$ref": "EmbedContentRequest"
          },
          "flatPath": "v1beta/models/{modelsId}:embedContent",
          "httpMethod": "POST"
        },
        "generateAnswer": {
          "path": "v1beta/{+model}:generateAnswer",
          "httpMethod": "POST",
          "request": {
            "$ref": "GenerateAnswerRequest"
          },
          "deprecated": true,
          "parameterOrder": [
            "model"
          ],
          "flatPath": "v1beta/models/{modelsId}:generateAnswer",
          "parameters": {
            "model": {
              "location": "path",
              "type": "string",
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the grounded response. Format: `model=models/{model}`.",
              "pattern": "^models/[^/]+$"
            }
          },
          "description": "Generates a grounded answer from the model given an input `GenerateAnswerRequest`.",
          "response": {
            "$ref": "GenerateAnswerResponse"
          },
          "id": "generativelanguage.models.generateAnswer"
        },
        "batchEmbedContents": {
          "flatPath": "v1beta/models/{modelsId}:batchEmbedContents",
          "response": {
            "$ref": "BatchEmbedContentsResponse"
          },
          "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.",
          "id": "generativelanguage.models.batchEmbedContents",
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "path": "v1beta/{+model}:batchEmbedContents",
          "request": {
            "$ref": "BatchEmbedContentsRequest"
          },
          "parameters": {
            "model": {
              "required": true,
              "location": "path",
              "pattern": "^models/[^/]+$",
              "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"
            }
          }
        },
        "batchGenerateContent": {
          "path": "v1beta/{+model}:batchGenerateContent",
          "id": "generativelanguage.models.batchGenerateContent",
          "parameters": {
            "model": {
              "location": "path",
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "pattern": "^models/[^/]+$",
              "required": true
            }
          },
          "flatPath": "v1beta/models/{modelsId}:batchGenerateContent",
          "request": {
            "$ref": "BatchGenerateContentRequest"
          },
          "response": {
            "$ref": "Operation"
          },
          "description": "Enqueues a batch of `GenerateContent` requests for batch processing.",
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST"
        },
        "countTextTokens": {
          "request": {
            "$ref": "CountTextTokensRequest"
          },
          "id": "generativelanguage.models.countTextTokens",
          "deprecated": true,
          "httpMethod": "POST",
          "path": "v1beta/{+model}:countTextTokens",
          "flatPath": "v1beta/models/{modelsId}:countTextTokens",
          "parameters": {
            "model": {
              "required": true,
              "type": "string",
              "location": "path",
              "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/[^/]+$"
            }
          },
          "parameterOrder": [
            "model"
          ],
          "description": "Runs a model's tokenizer on a text and returns the token count.",
          "response": {
            "$ref": "CountTextTokensResponse"
          }
        },
        "predictLongRunning": {
          "flatPath": "v1beta/models/{modelsId}:predictLongRunning",
          "response": {
            "$ref": "Operation"
          },
          "path": "v1beta/{+model}:predictLongRunning",
          "parameters": {
            "model": {
              "location": "path",
              "pattern": "^models/[^/]+$",
              "type": "string",
              "required": true,
              "description": "Required. The name of the model for prediction. Format: `name=models/{model}`."
            }
          },
          "parameterOrder": [
            "model"
          ],
          "request": {
            "$ref": "PredictLongRunningRequest"
          },
          "description": "Same as Predict but returns an LRO.",
          "id": "generativelanguage.models.predictLongRunning",
          "httpMethod": "POST"
        },
        "asyncBatchEmbedContent": {
          "path": "v1beta/{+model}:asyncBatchEmbedContent",
          "parameters": {
            "model": {
              "type": "string",
              "required": true,
              "location": "path",
              "pattern": "^models/[^/]+$",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
            }
          },
          "response": {
            "$ref": "Operation"
          },
          "flatPath": "v1beta/models/{modelsId}:asyncBatchEmbedContent",
          "request": {
            "$ref": "AsyncBatchEmbedContentRequest"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion.",
          "id": "generativelanguage.models.asyncBatchEmbedContent"
        },
        "generateContent": {
          "parameters": {
            "model": {
              "required": true,
              "location": "path",
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "pattern": "^models/[^/]+$"
            }
          },
          "id": "generativelanguage.models.generateContent",
          "path": "v1beta/{+model}:generateContent",
          "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "flatPath": "v1beta/models/{modelsId}:generateContent"
        },
        "list": {
          "parameterOrder": [],
          "response": {
            "$ref": "ListModelsResponse"
          },
          "parameters": {
            "pageSize": {
              "description": "The maximum number of `Models` to return (per page). If unspecified, 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",
              "format": "int32",
              "type": "integer"
            },
            "pageToken": {
              "type": "string",
              "location": "query",
              "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."
            }
          },
          "path": "v1beta/models",
          "httpMethod": "GET",
          "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.",
          "flatPath": "v1beta/models",
          "id": "generativelanguage.models.list"
        },
        "predict": {
          "flatPath": "v1beta/models/{modelsId}:predict",
          "response": {
            "$ref": "PredictResponse"
          },
          "request": {
            "$ref": "PredictRequest"
          },
          "id": "generativelanguage.models.predict",
          "description": "Performs a prediction request.",
          "parameters": {
            "model": {
              "required": true,
              "location": "path",
              "type": "string",
              "description": "Required. The name of the model for prediction. Format: `name=models/{model}`.",
              "pattern": "^models/[^/]+$"
            }
          },
          "parameterOrder": [
            "model"
          ],
          "path": "v1beta/{+model}:predict",
          "httpMethod": "POST"
        }
      }
    },
    "batches": {
      "methods": {
        "delete": {
          "response": {
            "$ref": "Empty"
          },
          "description": "Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.",
          "flatPath": "v1beta/batches/{batchesId}",
          "parameters": {
            "name": {
              "pattern": "^batches/[^/]+$",
              "type": "string",
              "location": "path",
              "description": "The name of the operation resource to be deleted.",
              "required": true
            }
          },
          "path": "v1beta/{+name}",
          "id": "generativelanguage.batches.delete",
          "httpMethod": "DELETE",
          "parameterOrder": [
            "name"
          ]
        },
        "cancel": {
          "path": "v1beta/{+name}:cancel",
          "flatPath": "v1beta/batches/{batchesId}:cancel",
          "description": "Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`.",
          "response": {
            "$ref": "Empty"
          },
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "POST",
          "id": "generativelanguage.batches.cancel",
          "parameters": {
            "name": {
              "required": true,
              "location": "path",
              "type": "string",
              "pattern": "^batches/[^/]+$",
              "description": "The name of the operation resource to be cancelled."
            }
          }
        },
        "get": {
          "path": "v1beta/{+name}",
          "parameters": {
            "name": {
              "required": true,
              "location": "path",
              "type": "string",
              "description": "The name of the operation resource.",
              "pattern": "^batches/[^/]+$"
            }
          },
          "response": {
            "$ref": "Operation"
          },
          "httpMethod": "GET",
          "flatPath": "v1beta/batches/{batchesId}",
          "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
          "id": "generativelanguage.batches.get",
          "parameterOrder": [
            "name"
          ]
        },
        "updateGenerateContentBatch": {
          "httpMethod": "PATCH",
          "flatPath": "v1beta/batches/{batchesId}:updateGenerateContentBatch",
          "response": {
            "$ref": "GenerateContentBatch"
          },
          "request": {
            "$ref": "GenerateContentBatch"
          },
          "description": "Updates a batch of GenerateContent requests for batch processing.",
          "id": "generativelanguage.batches.updateGenerateContentBatch",
          "path": "v1beta/{+name}:updateGenerateContentBatch",
          "parameterOrder": [
            "name"
          ],
          "parameters": {
            "updateMask": {
              "type": "string",
              "location": "query",
              "format": "google-fieldmask",
              "description": "Optional. The list of fields to update."
            },
            "name": {
              "type": "string",
              "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
              "pattern": "^batches/[^/]+$",
              "required": true,
              "location": "path"
            }
          }
        },
        "list": {
          "parameters": {
            "pageToken": {
              "location": "query",
              "description": "The standard list page token.",
              "type": "string"
            },
            "name": {
              "required": true,
              "location": "path",
              "description": "The name of the operation's parent resource.",
              "type": "string",
              "pattern": "^batches$"
            },
            "returnPartialSuccess": {
              "location": "query",
              "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation.",
              "type": "boolean"
            },
            "pageSize": {
              "description": "The standard list page size.",
              "type": "integer",
              "location": "query",
              "format": "int32"
            },
            "filter": {
              "description": "The standard list filter.",
              "location": "query",
              "type": "string"
            }
          },
          "path": "v1beta/{+name}",
          "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
          "id": "generativelanguage.batches.list",
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "GET",
          "response": {
            "$ref": "ListOperationsResponse"
          },
          "flatPath": "v1beta/batches"
        },
        "updateEmbedContentBatch": {
          "parameterOrder": [
            "name"
          ],
          "request": {
            "$ref": "EmbedContentBatch"
          },
          "parameters": {
            "name": {
              "type": "string",
              "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
              "required": true,
              "pattern": "^batches/[^/]+$",
              "location": "path"
            },
            "updateMask": {
              "format": "google-fieldmask",
              "description": "Optional. The list of fields to update.",
              "type": "string",
              "location": "query"
            }
          },
          "flatPath": "v1beta/batches/{batchesId}:updateEmbedContentBatch",
          "response": {
            "$ref": "EmbedContentBatch"
          },
          "id": "generativelanguage.batches.updateEmbedContentBatch",
          "path": "v1beta/{+name}:updateEmbedContentBatch",
          "description": "Updates a batch of EmbedContent requests for batch processing.",
          "httpMethod": "PATCH"
        }
      }
    },
    "dynamic": {
      "methods": {
        "generateContent": {
          "path": "v1beta/{+model}:generateContent",
          "httpMethod": "POST",
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "flatPath": "v1beta/dynamic/{dynamicId}:generateContent",
          "parameters": {
            "model": {
              "location": "path",
              "type": "string",
              "required": true,
              "pattern": "^dynamic/[^/]+$",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
            }
          },
          "parameterOrder": [
            "model"
          ],
          "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.",
          "id": "generativelanguage.dynamic.generateContent"
        },
        "streamGenerateContent": {
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "parameters": {
            "model": {
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string",
              "required": true,
              "pattern": "^dynamic/[^/]+$",
              "location": "path"
            }
          },
          "flatPath": "v1beta/dynamic/{dynamicId}:streamGenerateContent",
          "id": "generativelanguage.dynamic.streamGenerateContent",
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "path": "v1beta/{+model}:streamGenerateContent",
          "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.",
          "request": {
            "$ref": "GenerateContentRequest"
          }
        }
      }
    },
    "auth_tokens": {
      "methods": {
        "create": {
          "parameters": {},
          "request": {
            "$ref": "AuthToken"
          },
          "description": "Creates a token that can be used to constrain the behavior of a BidiGenerateContent session.",
          "id": "generativelanguage.auth_tokens.create",
          "parameterOrder": [],
          "path": "v1beta/auth_tokens",
          "response": {
            "$ref": "AuthToken"
          },
          "flatPath": "v1beta/auth_tokens",
          "httpMethod": "POST"
        }
      }
    },
    "fileSearchStores": {
      "methods": {
        "importFile": {
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "parameterOrder": [
            "fileSearchStoreName"
          ],
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}:importFile",
          "response": {
            "$ref": "Operation"
          },
          "parameters": {
            "fileSearchStoreName": {
              "type": "string",
              "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`",
              "location": "path",
              "required": true,
              "pattern": "^fileSearchStores/[^/]+$"
            }
          },
          "description": "Imports a `File` from File Service to a `FileSearchStore`.",
          "request": {
            "$ref": "ImportFileRequest"
          },
          "path": "v1beta/{+fileSearchStoreName}:importFile",
          "httpMethod": "POST",
          "id": "generativelanguage.fileSearchStores.importFile"
        },
        "list": {
          "description": "Lists all `FileSearchStores` owned by the user.",
          "parameterOrder": [],
          "parameters": {
            "pageSize": {
              "type": "integer",
              "description": "Optional. The maximum number of `FileSearchStores` to return (per page). The service may return fewer `FileSearchStores`. If unspecified, at most 10 `FileSearchStores` will be returned. The maximum size limit is 20 `FileSearchStores` per page.",
              "location": "query",
              "format": "int32"
            },
            "pageToken": {
              "location": "query",
              "description": "Optional. A page token, received from a previous `ListFileSearchStores` 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 `ListFileSearchStores` must match the call that provided the page token.",
              "type": "string"
            }
          },
          "path": "v1beta/fileSearchStores",
          "flatPath": "v1beta/fileSearchStores",
          "id": "generativelanguage.fileSearchStores.list",
          "response": {
            "$ref": "ListFileSearchStoresResponse"
          },
          "httpMethod": "GET"
        },
        "get": {
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}",
          "id": "generativelanguage.fileSearchStores.get",
          "httpMethod": "GET",
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "parameters": {
            "name": {
              "required": true,
              "location": "path",
              "type": "string",
              "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`",
              "pattern": "^fileSearchStores/[^/]+$"
            }
          },
          "response": {
            "$ref": "FileSearchStore"
          },
          "description": "Gets information about a specific `FileSearchStore`."
        },
        "delete": {
          "description": "Deletes a `FileSearchStore`.",
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "DELETE",
          "parameters": {
            "name": {
              "required": true,
              "location": "path",
              "type": "string",
              "pattern": "^fileSearchStores/[^/]+$",
              "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`"
            },
            "force": {
              "location": "query",
              "description": "Optional. If set to true, any `Document`s and objects related to this `FileSearchStore` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `FileSearchStore` contains any `Document`s.",
              "type": "boolean"
            }
          },
          "response": {
            "$ref": "Empty"
          },
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}",
          "id": "generativelanguage.fileSearchStores.delete",
          "path": "v1beta/{+name}"
        },
        "create": {
          "flatPath": "v1beta/fileSearchStores",
          "path": "v1beta/fileSearchStores",
          "description": "Creates an empty `FileSearchStore`.",
          "response": {
            "$ref": "FileSearchStore"
          },
          "httpMethod": "POST",
          "request": {
            "$ref": "FileSearchStore"
          },
          "id": "generativelanguage.fileSearchStores.create",
          "parameterOrder": [],
          "parameters": {}
        }
      },
      "resources": {
        "upload": {
          "resources": {
            "operations": {
              "methods": {
                "get": {
                  "parameterOrder": [
                    "name"
                  ],
                  "httpMethod": "GET",
                  "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}",
                  "parameters": {
                    "name": {
                      "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$",
                      "required": true,
                      "type": "string",
                      "location": "path",
                      "description": "The name of the operation resource."
                    }
                  },
                  "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
                  "response": {
                    "$ref": "Operation"
                  },
                  "path": "v1beta/{+name}",
                  "id": "generativelanguage.fileSearchStores.upload.operations.get"
                }
              }
            }
          }
        },
        "operations": {
          "methods": {
            "get": {
              "path": "v1beta/{+name}",
              "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}",
              "parameters": {
                "name": {
                  "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$",
                  "description": "The name of the operation resource.",
                  "type": "string",
                  "location": "path",
                  "required": true
                }
              },
              "id": "generativelanguage.fileSearchStores.operations.get",
              "httpMethod": "GET",
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "Operation"
              }
            }
          }
        },
        "documents": {
          "methods": {
            "get": {
              "path": "v1beta/{+name}",
              "parameters": {
                "name": {
                  "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$",
                  "type": "string",
                  "location": "path",
                  "description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",
                  "required": true
                }
              },
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",
              "id": "generativelanguage.fileSearchStores.documents.get",
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "Document"
              },
              "httpMethod": "GET",
              "description": "Gets information about a specific `Document`."
            },
            "delete": {
              "parameterOrder": [
                "name"
              ],
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",
              "parameters": {
                "name": {
                  "description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",
                  "type": "string",
                  "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$",
                  "required": true,
                  "location": "path"
                },
                "force": {
                  "location": "query",
                  "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."
                }
              },
              "httpMethod": "DELETE",
              "response": {
                "$ref": "Empty"
              },
              "id": "generativelanguage.fileSearchStores.documents.delete",
              "path": "v1beta/{+name}",
              "description": "Deletes a `Document`."
            },
            "list": {
              "response": {
                "$ref": "ListDocumentsResponse"
              },
              "parameterOrder": [
                "parent"
              ],
              "path": "v1beta/{+parent}/documents",
              "description": "Lists all `Document`s in a `Corpus`.",
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents",
              "id": "generativelanguage.fileSearchStores.documents.list",
              "parameters": {
                "parent": {
                  "type": "string",
                  "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`",
                  "required": true,
                  "location": "path",
                  "pattern": "^fileSearchStores/[^/]+$"
                },
                "pageToken": {
                  "location": "query",
                  "type": "string",
                  "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": {
                  "location": "query",
                  "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.",
                  "type": "integer",
                  "format": "int32"
                }
              },
              "httpMethod": "GET"
            }
          }
        }
      }
    },
    "media": {
      "methods": {
        "upload": {
          "parameterOrder": [],
          "flatPath": "v1beta/files",
          "response": {
            "$ref": "CreateFileResponse"
          },
          "request": {
            "$ref": "CreateFileRequest"
          },
          "description": "Creates a `File`.",
          "supportsMediaUpload": true,
          "parameters": {},
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "path": "v1beta/files",
          "mediaUpload": {
            "accept": [
              "*/*"
            ],
            "maxSize": "2147483648",
            "protocols": {
              "resumable": {
                "multipart": true,
                "path": "/resumable/upload/v1beta/files"
              },
              "simple": {
                "path": "/upload/v1beta/files",
                "multipart": true
              }
            }
          },
          "httpMethod": "POST",
          "id": "generativelanguage.media.upload"
        },
        "uploadToFileSearchStore": {
          "parameterOrder": [
            "fileSearchStoreName"
          ],
          "id": "generativelanguage.media.uploadToFileSearchStore",
          "parameters": {
            "fileSearchStoreName": {
              "type": "string",
              "required": true,
              "location": "path",
              "pattern": "^fileSearchStores/[^/]+$",
              "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`"
            }
          },
          "supportsMediaUpload": true,
          "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.",
          "mediaUpload": {
            "protocols": {
              "simple": {
                "path": "/upload/v1beta/{+fileSearchStoreName}:uploadToFileSearchStore",
                "multipart": true
              },
              "resumable": {
                "multipart": true,
                "path": "/resumable/upload/v1beta/{+fileSearchStoreName}:uploadToFileSearchStore"
              }
            },
            "maxSize": "104857600",
            "accept": [
              "*/*"
            ]
          },
          "request": {
            "$ref": "UploadToFileSearchStoreRequest"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "path": "v1beta/{+fileSearchStoreName}:uploadToFileSearchStore",
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore",
          "response": {
            "$ref": "CustomLongRunningOperation"
          },
          "httpMethod": "POST"
        }
      }
    },
    "environments": {
      "methods": {
        "list": {
          "flatPath": "v1beta/environments:list",
          "id": "generativelanguage.environments.list",
          "description": "Lists environments.",
          "response": {
            "$ref": "ListEnvironmentsResponse"
          },
          "httpMethod": "GET",
          "parameterOrder": [],
          "path": "v1beta/environments:list",
          "parameters": {
            "pageSize": {
              "type": "integer",
              "description": "Maximum number of environments to return. If unspecified, defaults to 50. Maximum is 1000.",
              "format": "int32",
              "location": "query"
            },
            "pageToken": {
              "location": "query",
              "type": "string",
              "description": "Pagination token."
            }
          }
        },
        "delete": {
          "path": "v1beta/environments/{id}:delete",
          "description": "Deletes an environment.",
          "id": "generativelanguage.environments.delete",
          "httpMethod": "DELETE",
          "response": {
            "$ref": "Empty"
          },
          "parameters": {
            "id": {
              "type": "string",
              "required": true,
              "description": "Required. The identifier of the environment to delete.",
              "location": "path"
            }
          },
          "flatPath": "v1beta/environments/{id}:delete",
          "parameterOrder": [
            "id"
          ]
        },
        "get": {
          "parameters": {
            "id": {
              "required": true,
              "description": "Required. The identifier of the environment to retrieve.",
              "location": "path",
              "type": "string"
            }
          },
          "description": "Gets an environment.",
          "response": {
            "$ref": "Environment"
          },
          "path": "v1beta/environments/{id}:get",
          "httpMethod": "GET",
          "flatPath": "v1beta/environments/{id}:get",
          "parameterOrder": [
            "id"
          ],
          "id": "generativelanguage.environments.get"
        },
        "create": {
          "parameterOrder": [],
          "flatPath": "v1beta/environments:create",
          "response": {
            "$ref": "Environment"
          },
          "description": "Creates an environment.",
          "parameters": {},
          "id": "generativelanguage.environments.create",
          "request": {
            "$ref": "CreateEnvironmentRequest"
          },
          "path": "v1beta/environments:create",
          "httpMethod": "POST"
        }
      },
      "resources": {
        "files": {
          "resources": {
            "media": {
              "methods": {
                "download": {
                  "id": "generativelanguage.environments.files.media.download",
                  "parameters": {
                    "page_token": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. Pagination token for directory listing. NOLINT"
                    },
                    "path": {
                      "description": "Optional. The path of the file or directory within the environment. If empty, defaults to the root of the workspace. Example: \"workspace/src/main.py\"",
                      "pattern": "^.*$",
                      "location": "path",
                      "type": "string",
                      "required": true
                    },
                    "page_size": {
                      "location": "query",
                      "type": "integer",
                      "format": "int32",
                      "description": "Optional. Maximum number of entries to return per page (for directory listing). If unspecified, defaults to 100. Maximum is 1000. NOLINT"
                    },
                    "recursive": {
                      "type": "boolean",
                      "description": "Optional. If true and the path is a directory, recursively lists all files and subdirectories. Defaults to false (immediate children only).",
                      "location": "query"
                    },
                    "parent": {
                      "type": "string",
                      "description": "Required. The resource name of the environment. Format: `environments/{environment_id}`",
                      "required": true,
                      "pattern": "^environments/[^/]+$",
                      "location": "path"
                    }
                  },
                  "path": "v1beta/{+parent}/files/{+path}",
                  "description": "Retrieves a file or directory from an environment's snapshot (HTTP endpoint).",
                  "supportsMediaDownload": true,
                  "httpMethod": "GET",
                  "response": {
                    "$ref": "GetEnvironmentFilesResponse"
                  },
                  "useMediaDownloadService": true,
                  "parameterOrder": [
                    "parent",
                    "path"
                  ],
                  "flatPath": "v1beta/environments/{environmentsId}/files/{filesId}"
                }
              }
            }
          }
        }
      }
    },
    "tunedModels": {
      "methods": {
        "create": {
          "parameterOrder": [],
          "request": {
            "$ref": "TunedModel"
          },
          "description": "Creates a tuned model. Check intermediate tuning progress (if any) through the [google.longrunning.Operations] service. Access status and results through the Operations service. Example: GET /v1/tunedModels/az2mb0bpw6i/operations/000-111-222",
          "parameters": {
            "tunedModelId": {
              "type": "string",
              "location": "query",
              "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])?`."
            }
          },
          "path": "v1beta/tunedModels",
          "deprecated": true,
          "httpMethod": "POST",
          "response": {
            "$ref": "Operation"
          },
          "flatPath": "v1beta/tunedModels",
          "id": "generativelanguage.tunedModels.create"
        },
        "streamGenerateContent": {
          "path": "v1beta/{+model}:streamGenerateContent",
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:streamGenerateContent",
          "httpMethod": "POST",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "description": "Generates a [streamed response](https://ai.google.dev/gemini-api/docs/text-generation?lang=python#generate-a-text-stream) from the model given an input `GenerateContentRequest`.",
          "id": "generativelanguage.tunedModels.streamGenerateContent",
          "parameterOrder": [
            "model"
          ],
          "parameters": {
            "model": {
              "pattern": "^tunedModels/[^/]+$",
              "type": "string",
              "location": "path",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "required": true
            }
          }
        },
        "batchGenerateContent": {
          "parameters": {
            "model": {
              "location": "path",
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string",
              "pattern": "^tunedModels/[^/]+$"
            }
          },
          "path": "v1beta/{+model}:batchGenerateContent",
          "response": {
            "$ref": "Operation"
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:batchGenerateContent",
          "description": "Enqueues a batch of `GenerateContent` requests for batch processing.",
          "id": "generativelanguage.tunedModels.batchGenerateContent",
          "httpMethod": "POST",
          "parameterOrder": [
            "model"
          ],
          "request": {
            "$ref": "BatchGenerateContentRequest"
          }
        },
        "get": {
          "description": "Gets information about a specific TunedModel.",
          "deprecated": true,
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "TunedModel"
          },
          "httpMethod": "GET",
          "path": "v1beta/{+name}",
          "parameters": {
            "name": {
              "pattern": "^tunedModels/[^/]+$",
              "location": "path",
              "type": "string",
              "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`",
              "required": true
            }
          },
          "id": "generativelanguage.tunedModels.get"
        },
        "patch": {
          "parameters": {
            "name": {
              "required": true,
              "location": "path",
              "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`",
              "type": "string",
              "pattern": "^tunedModels/[^/]+$"
            },
            "updateMask": {
              "description": "Optional. The list of fields to update.",
              "location": "query",
              "format": "google-fieldmask",
              "type": "string"
            }
          },
          "path": "v1beta/{+name}",
          "request": {
            "$ref": "TunedModel"
          },
          "httpMethod": "PATCH",
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "TunedModel"
          },
          "id": "generativelanguage.tunedModels.patch",
          "description": "Updates a tuned model.",
          "deprecated": true,
          "flatPath": "v1beta/tunedModels/{tunedModelsId}"
        },
        "transferOwnership": {
          "request": {
            "$ref": "TransferOwnershipRequest"
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:transferOwnership",
          "response": {
            "$ref": "TransferOwnershipResponse"
          },
          "httpMethod": "POST",
          "id": "generativelanguage.tunedModels.transferOwnership",
          "parameterOrder": [
            "name"
          ],
          "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.",
          "path": "v1beta/{+name}:transferOwnership",
          "parameters": {
            "name": {
              "pattern": "^tunedModels/[^/]+$",
              "location": "path",
              "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`",
              "type": "string",
              "required": true
            }
          }
        },
        "generateText": {
          "parameters": {
            "model": {
              "pattern": "^tunedModels/[^/]+$",
              "required": true,
              "description": "Required. The name of the `Model` or `TunedModel` to use for generating the completion. Examples: models/text-bison-001 tunedModels/sentence-translator-u3b7m",
              "type": "string",
              "location": "path"
            }
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateText",
          "response": {
            "$ref": "GenerateTextResponse"
          },
          "path": "v1beta/{+model}:generateText",
          "parameterOrder": [
            "model"
          ],
          "request": {
            "$ref": "GenerateTextRequest"
          },
          "httpMethod": "POST",
          "description": "Generates a response from the model given an input message.",
          "deprecated": true,
          "id": "generativelanguage.tunedModels.generateText"
        },
        "asyncBatchEmbedContent": {
          "path": "v1beta/{+model}:asyncBatchEmbedContent",
          "parameters": {
            "model": {
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "required": true,
              "location": "path",
              "pattern": "^tunedModels/[^/]+$",
              "type": "string"
            }
          },
          "id": "generativelanguage.tunedModels.asyncBatchEmbedContent",
          "response": {
            "$ref": "Operation"
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:asyncBatchEmbedContent",
          "request": {
            "$ref": "AsyncBatchEmbedContentRequest"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "description": "Enqueues a batch of `EmbedContent` requests for batch processing. We have a `BatchEmbedContents` handler in `GenerativeService`, but it was synchronized. So we name this one to be `Async` to avoid confusion."
        },
        "generateContent": {
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "path": "v1beta/{+model}:generateContent",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateContent",
          "parameters": {
            "model": {
              "required": true,
              "type": "string",
              "location": "path",
              "pattern": "^tunedModels/[^/]+$",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
            }
          },
          "description": "Generates a model response given an input `GenerateContentRequest`. Refer to the [text generation guide](https://ai.google.dev/gemini-api/docs/text-generation) for detailed usage information. Input capabilities differ between models, including tuned models. Refer to the [model guide](https://ai.google.dev/gemini-api/docs/models/gemini) and [tuning guide](https://ai.google.dev/gemini-api/docs/model-tuning) for details.",
          "id": "generativelanguage.tunedModels.generateContent",
          "httpMethod": "POST",
          "parameterOrder": [
            "model"
          ],
          "request": {
            "$ref": "GenerateContentRequest"
          }
        },
        "delete": {
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "DELETE",
          "deprecated": true,
          "parameters": {
            "name": {
              "required": true,
              "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`",
              "location": "path",
              "type": "string",
              "pattern": "^tunedModels/[^/]+$"
            }
          },
          "path": "v1beta/{+name}",
          "description": "Deletes a tuned model.",
          "response": {
            "$ref": "Empty"
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "id": "generativelanguage.tunedModels.delete"
        },
        "list": {
          "response": {
            "$ref": "ListTunedModelsResponse"
          },
          "description": "Lists created tuned models.",
          "parameters": {
            "pageSize": {
              "type": "integer",
              "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",
              "format": "int32"
            },
            "filter": {
              "type": "string",
              "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",
              "location": "query"
            },
            "pageToken": {
              "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",
              "location": "query"
            }
          },
          "flatPath": "v1beta/tunedModels",
          "parameterOrder": [],
          "deprecated": true,
          "path": "v1beta/tunedModels",
          "id": "generativelanguage.tunedModels.list",
          "httpMethod": "GET"
        }
      },
      "resources": {
        "permissions": {
          "methods": {
            "list": {
              "parameters": {
                "pageSize": {
                  "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.",
                  "type": "integer",
                  "location": "query"
                },
                "pageToken": {
                  "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",
                  "location": "query"
                },
                "parent": {
                  "location": "path",
                  "pattern": "^tunedModels/[^/]+$",
                  "required": true,
                  "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "type": "string"
                }
              },
              "httpMethod": "GET",
              "path": "v1beta/{+parent}/permissions",
              "id": "generativelanguage.tunedModels.permissions.list",
              "parameterOrder": [
                "parent"
              ],
              "response": {
                "$ref": "ListPermissionsResponse"
              },
              "description": "Lists permissions for the specific resource.",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions"
            },
            "patch": {
              "description": "Updates the permission.",
              "path": "v1beta/{+name}",
              "parameters": {
                "updateMask": {
                  "format": "google-fieldmask",
                  "location": "query",
                  "type": "string",
                  "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)"
                },
                "name": {
                  "required": true,
                  "location": "path",
                  "type": "string",
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",
                  "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."
                }
              },
              "id": "generativelanguage.tunedModels.permissions.patch",
              "request": {
                "$ref": "Permission"
              },
              "httpMethod": "PATCH",
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "Permission"
              },
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}"
            },
            "delete": {
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "Empty"
              },
              "description": "Deletes the permission.",
              "id": "generativelanguage.tunedModels.permissions.delete",
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",
                  "location": "path",
                  "required": true
                }
              },
              "httpMethod": "DELETE",
              "path": "v1beta/{+name}"
            },
            "get": {
              "id": "generativelanguage.tunedModels.permissions.get",
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "GET",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",
              "description": "Gets information about a specific Permission.",
              "response": {
                "$ref": "Permission"
              },
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "required": true,
                  "location": "path",
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$"
                }
              },
              "path": "v1beta/{+name}"
            },
            "create": {
              "id": "generativelanguage.tunedModels.permissions.create",
              "parameterOrder": [
                "parent"
              ],
              "parameters": {
                "parent": {
                  "type": "string",
                  "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "required": true,
                  "pattern": "^tunedModels/[^/]+$",
                  "location": "path"
                }
              },
              "response": {
                "$ref": "Permission"
              },
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions",
              "description": "Create a permission to a specific resource.",
              "path": "v1beta/{+parent}/permissions",
              "httpMethod": "POST",
              "request": {
                "$ref": "Permission"
              }
            }
          }
        },
        "operations": {
          "methods": {
            "list": {
              "path": "v1beta/{+name}/operations",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/operations",
              "parameterOrder": [
                "name"
              ],
              "response": {
                "$ref": "ListOperationsResponse"
              },
              "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
              "parameters": {
                "filter": {
                  "location": "query",
                  "description": "The standard list filter.",
                  "type": "string"
                },
                "name": {
                  "location": "path",
                  "required": true,
                  "type": "string",
                  "description": "The name of the operation's parent resource.",
                  "pattern": "^tunedModels/[^/]+$"
                },
                "pageToken": {
                  "description": "The standard list page token.",
                  "type": "string",
                  "location": "query"
                },
                "returnPartialSuccess": {
                  "location": "query",
                  "type": "boolean",
                  "description": "When set to `true`, operations that are reachable are returned as normal, and those that are unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` when reading across collections. For example, when `parent` is set to `\"projects/example/locations/-\"`. This field is not supported by default and will result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific documentation."
                },
                "pageSize": {
                  "format": "int32",
                  "description": "The standard list page size.",
                  "location": "query",
                  "type": "integer"
                }
              },
              "id": "generativelanguage.tunedModels.operations.list",
              "httpMethod": "GET"
            },
            "get": {
              "parameters": {
                "name": {
                  "pattern": "^tunedModels/[^/]+/operations/[^/]+$",
                  "type": "string",
                  "location": "path",
                  "description": "The name of the operation resource.",
                  "required": true
                }
              },
              "description": "Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.",
              "id": "generativelanguage.tunedModels.operations.get",
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "GET",
              "response": {
                "$ref": "Operation"
              },
              "path": "v1beta/{+name}",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/operations/{operationsId}"
            }
          }
        }
      }
    },
    "files": {
      "methods": {
        "get": {
          "httpMethod": "GET",
          "flatPath": "v1beta/files/{filesId}",
          "path": "v1beta/{+name}",
          "parameters": {
            "name": {
              "required": true,
              "description": "Required. The name of the `File` to get. Example: `files/abc-123`",
              "pattern": "^files/[^/]+$",
              "location": "path",
              "type": "string"
            }
          },
          "description": "Gets the metadata for the given `File`.",
          "response": {
            "$ref": "File"
          },
          "parameterOrder": [
            "name"
          ],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "id": "generativelanguage.files.get"
        },
        "delete": {
          "httpMethod": "DELETE",
          "id": "generativelanguage.files.delete",
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "path": "v1beta/{+name}",
          "description": "Deletes the `File`.",
          "parameterOrder": [
            "name"
          ],
          "flatPath": "v1beta/files/{filesId}",
          "response": {
            "$ref": "Empty"
          },
          "parameters": {
            "name": {
              "description": "Required. The name of the `File` to delete. Example: `files/abc-123`",
              "required": true,
              "pattern": "^files/[^/]+$",
              "type": "string",
              "location": "path"
            }
          }
        },
        "list": {
          "flatPath": "v1beta/files",
          "response": {
            "$ref": "ListFilesResponse"
          },
          "id": "generativelanguage.files.list",
          "description": "Lists the metadata for `File`s owned by the requesting project.",
          "path": "v1beta/files",
          "parameters": {
            "pageSize": {
              "location": "query",
              "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."
            },
            "pageToken": {
              "type": "string",
              "location": "query",
              "description": "Optional. A page token from a previous `ListFiles` call."
            }
          },
          "parameterOrder": [],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "httpMethod": "GET"
        },
        "register": {
          "response": {
            "$ref": "RegisterFilesResponse"
          },
          "flatPath": "v1beta/files:register",
          "description": "Registers a Google Cloud Storage files with FileService. The user is expected to provide Google Cloud Storage URIs and will receive a File resource for each URI in return. Note that the files are not copied, just registered with File API. If one file fails to register, the whole request fails.",
          "path": "v1beta/files:register",
          "id": "generativelanguage.files.register",
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "parameters": {},
          "parameterOrder": [],
          "request": {
            "$ref": "RegisterFilesRequest"
          },
          "httpMethod": "POST"
        }
      }
    }
  },
  "kind": "discovery#restDescription",
  "mtlsRootUrl": "https://generativelanguage.mtls.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.",
  "protocol": "rest",
  "id": "generativelanguage:v1beta"
}
