{
  "protocol": "rest",
  "schemas": {
    "PlaceAnswerSources": {
      "type": "object",
      "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.",
      "properties": {
        "reviewSnippets": {
          "items": {
            "$ref": "ReviewSnippet"
          },
          "description": "Snippets of reviews that are used to generate answers about the features of a given place in Google Maps.",
          "type": "array"
        }
      },
      "id": "PlaceAnswerSources"
    },
    "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.",
      "properties": {
        "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"
        },
        "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": {
          "description": "Optional. Configures session resumption mechanism. If included, the server will send `SessionResumptionUpdate` messages.",
          "$ref": "SessionResumptionConfig"
        },
        "contextWindowCompression": {
          "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.",
          "$ref": "ContextWindowCompressionConfig"
        },
        "outputAudioTranscription": {
          "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.",
          "$ref": "AudioTranscriptionConfig"
        },
        "realtimeInputConfig": {
          "description": "Optional. Configures the handling of realtime input.",
          "$ref": "RealtimeInputConfig"
        },
        "historyConfig": {
          "description": "Optional. Configures the exchange of history between the client and the server.",
          "$ref": "HistoryConfig"
        },
        "model": {
          "type": "string",
          "description": "Required. The model's resource name. This serves as an ID for the Model to use. Format: `models/{model}`"
        },
        "inputAudioTranscription": {
          "description": "Optional. If set, enables transcription of voice input. The transcription aligns with the input audio language, if configured.",
          "$ref": "AudioTranscriptionConfig"
        },
        "tools": {
          "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.",
          "type": "array"
        }
      },
      "type": "object",
      "id": "BidiGenerateContentSetup"
    },
    "InputConfig": {
      "description": "Configures the input to the batch request.",
      "properties": {
        "requests": {
          "description": "The requests to be processed in the batch.",
          "$ref": "InlinedRequests"
        },
        "fileName": {
          "type": "string",
          "description": "The name of the `File` containing the input requests."
        }
      },
      "type": "object",
      "id": "InputConfig"
    },
    "Dataset": {
      "id": "Dataset",
      "type": "object",
      "description": "Dataset for training or validation.",
      "properties": {
        "examples": {
          "description": "Optional. Inline examples with simple input/output text.",
          "$ref": "TuningExamples"
        }
      }
    },
    "Part": {
      "description": "A datatype containing media that is part of a multi-part `Content` message. A `Part` consists of data which has an associated datatype. A `Part` can only contain one of the accepted types in `Part.data`. A `Part` must have a fixed IANA MIME type identifying the type and subtype of the media if the `inline_data` field is filled with raw bytes.",
      "properties": {
        "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"
        },
        "mediaResolution": {
          "description": "Optional. Media resolution for the input media.",
          "$ref": "MediaResolution"
        },
        "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`.",
          "$ref": "ToolResponse"
        },
        "thought": {
          "type": "boolean",
          "description": "Optional. Indicates if the part is thought from the model."
        },
        "functionCall": {
          "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
          "$ref": "FunctionCall"
        },
        "thoughtSignature": {
          "description": "Optional. An opaque signature for the thought so it can be reused in subsequent requests.",
          "type": "string",
          "format": "byte"
        },
        "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"
        },
        "codeExecutionResult": {
          "description": "Result of executing the `ExecutableCode`.",
          "$ref": "CodeExecutionResult"
        },
        "inlineData": {
          "description": "Inline media bytes.",
          "$ref": "Blob"
        },
        "fileData": {
          "description": "URI based data.",
          "$ref": "FileData"
        },
        "partMetadata": {
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "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.",
          "type": "object"
        },
        "text": {
          "description": "Inline text.",
          "type": "string"
        },
        "executableCode": {
          "description": "Code generated by the model that is meant to be executed.",
          "$ref": "ExecutableCode"
        },
        "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.",
          "$ref": "FunctionResponse"
        }
      },
      "type": "object",
      "id": "Part"
    },
    "CodeExecutionResult": {
      "type": "object",
      "description": "Result of executing the `ExecutableCode`. Generated only when the `CodeExecution` tool is used.",
      "properties": {
        "outcome": {
          "description": "Required. Outcome of the code execution.",
          "enum": [
            "OUTCOME_UNSPECIFIED",
            "OUTCOME_OK",
            "OUTCOME_FAILED",
            "OUTCOME_DEADLINE_EXCEEDED"
          ],
          "type": "string",
          "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."
          ]
        },
        "id": {
          "description": "Optional. The identifier of the `ExecutableCode` part this result is for. Only populated if the corresponding `ExecutableCode` has an id.",
          "type": "string"
        },
        "output": {
          "description": "Optional. Contains stdout when code execution is successful, stderr or other description otherwise.",
          "type": "string"
        }
      },
      "id": "CodeExecutionResult"
    },
    "AudioTranscriptionConfig": {
      "description": "The audio transcription configuration.",
      "properties": {
        "languageHints": {
          "description": "Optional. Specifies one or more languages in the audio.",
          "$ref": "LanguageHints"
        },
        "languageAuto": {
          "description": "Optional. The model will detect the language automatically.",
          "$ref": "LanguageAuto"
        },
        "adaptationPhrases": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Optional. A list of phrases used for speech adaptation, which biases the ASR model to improve recognition of these specific terms."
        }
      },
      "type": "object",
      "id": "AudioTranscriptionConfig"
    },
    "RegisterFilesRequest": {
      "description": "Request for `RegisterFiles`.",
      "properties": {
        "uris": {
          "type": "array",
          "description": "Required. The Google Cloud Storage URIs to register. Example: `gs://bucket/object`.",
          "items": {
            "type": "string"
          }
        }
      },
      "type": "object",
      "id": "RegisterFilesRequest"
    },
    "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.",
      "properties": {
        "reason": {
          "description": "The reason content was blocked during request processing.",
          "enum": [
            "BLOCKED_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER"
          ],
          "type": "string",
          "enumDescriptions": [
            "A blocked reason was not specified.",
            "Content was blocked by safety settings.",
            "Content was blocked, but the reason is uncategorized."
          ]
        },
        "message": {
          "description": "A string that describes the filtering behavior in more detail.",
          "type": "string"
        }
      },
      "id": "ContentFilter"
    },
    "File": {
      "id": "File",
      "type": "object",
      "description": "A file uploaded to the API. Next ID: 15",
      "properties": {
        "uri": {
          "readOnly": true,
          "description": "Output only. The uri of the `File`.",
          "type": "string"
        },
        "updateTime": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The timestamp of when the `File` was last updated."
        },
        "downloadUri": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The download uri of the `File`."
        },
        "name": {
          "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`",
          "type": "string"
        },
        "mimeType": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. MIME type of the file."
        },
        "sizeBytes": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. Size of the file in bytes.",
          "type": "string"
        },
        "state": {
          "description": "Output only. Processing state of the File.",
          "enum": [
            "STATE_UNSPECIFIED",
            "PROCESSING",
            "ACTIVE",
            "FAILED"
          ],
          "type": "string",
          "readOnly": true,
          "enumDescriptions": [
            "The default value. This value is used if the state is omitted.",
            "File is being processed and cannot be used for inference yet.",
            "File is processed and available for inference.",
            "File failed processing."
          ]
        },
        "displayName": {
          "description": "Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: \"Welcome Image\"",
          "type": "string"
        },
        "error": {
          "$ref": "Status",
          "readOnly": true,
          "description": "Output only. Error status if File processing failed."
        },
        "sha256Hash": {
          "type": "string",
          "description": "Output only. SHA-256 hash of the uploaded bytes.",
          "readOnly": true,
          "format": "byte"
        },
        "source": {
          "description": "Source of the File.",
          "enum": [
            "SOURCE_UNSPECIFIED",
            "UPLOADED",
            "GENERATED",
            "REGISTERED"
          ],
          "type": "string",
          "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."
          ]
        },
        "createTime": {
          "description": "Output only. The timestamp of when the `File` was created.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "expirationTime": {
          "description": "Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "videoMetadata": {
          "description": "Output only. Metadata for a video.",
          "$ref": "VideoFileMetadata",
          "readOnly": true
        }
      }
    },
    "FunctionResponsePart": {
      "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.",
      "properties": {
        "inlineData": {
          "description": "Inline media bytes.",
          "$ref": "FunctionResponseBlob"
        }
      },
      "type": "object"
    },
    "SearchEntryPoint": {
      "id": "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"
        }
      },
      "type": "object"
    },
    "ReviewSnippet": {
      "type": "object",
      "description": "Encapsulates a snippet of a user review that answers a question about the features of a specific place in Google Maps.",
      "properties": {
        "reviewId": {
          "description": "The ID of the review snippet.",
          "type": "string"
        },
        "googleMapsUri": {
          "description": "A link that corresponds to the user review on Google Maps.",
          "type": "string"
        },
        "title": {
          "description": "Title of the review.",
          "type": "string"
        }
      },
      "id": "ReviewSnippet"
    },
    "ListFileSearchStoresResponse": {
      "description": "Response from `ListFileSearchStores` containing a paginated list of `FileSearchStores`. The results are sorted by ascending `file_search_store.create_time`.",
      "properties": {
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",
          "type": "string"
        },
        "fileSearchStores": {
          "items": {
            "$ref": "FileSearchStore"
          },
          "description": "The returned rag_stores.",
          "type": "array"
        }
      },
      "type": "object",
      "id": "ListFileSearchStoresResponse"
    },
    "EmbedTextRequest": {
      "description": "Request to get a text embedding from the model.",
      "properties": {
        "text": {
          "description": "Optional. The free-form input text that the model will turn into an embedding.",
          "type": "string"
        },
        "model": {
          "type": "string",
          "description": "Required. The model name to use with the format model=models/{model}."
        }
      },
      "type": "object",
      "id": "EmbedTextRequest"
    },
    "SpeechConfig": {
      "id": "SpeechConfig",
      "type": "object",
      "description": "Config for speech generation and transcription.",
      "properties": {
        "voiceConfig": {
          "description": "The configuration in case of single-voice output.",
          "$ref": "VoiceConfig"
        },
        "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`."
        },
        "multiSpeakerVoiceConfig": {
          "description": "Optional. The configuration for the multi-speaker setup. It is mutually exclusive with the voice_config field.",
          "$ref": "MultiSpeakerVoiceConfig"
        }
      }
    },
    "EmbedContentRequest": {
      "id": "EmbedContentRequest",
      "description": "Request containing the `Content` for the model to embed.",
      "properties": {
        "content": {
          "description": "Required. The content to embed. Only the `parts.text` fields will be counted.",
          "$ref": "Content"
        },
        "title": {
          "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.",
          "type": "string",
          "deprecated": true
        },
        "outputDimensionality": {
          "format": "int32",
          "deprecated": true,
          "type": "integer",
          "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`)."
        },
        "embedContentConfig": {
          "description": "Optional. Configuration for the EmbedContent request.",
          "$ref": "EmbedContentConfig"
        },
        "taskType": {
          "type": "string",
          "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`).",
          "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."
          ],
          "deprecated": true
        },
        "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"
        }
      },
      "type": "object"
    },
    "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.",
      "properties": {
        "message": {
          "description": "A message explaining the model status.",
          "type": "string"
        },
        "modelStage": {
          "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."
          ],
          "enumDeprecated": [
            false,
            true,
            false,
            false,
            false,
            false,
            true,
            false
          ],
          "type": "string",
          "description": "The stage of the underlying model.",
          "enum": [
            "MODEL_STAGE_UNSPECIFIED",
            "UNSTABLE_EXPERIMENTAL",
            "EXPERIMENTAL",
            "PREVIEW",
            "STABLE",
            "LEGACY",
            "DEPRECATED",
            "RETIRED"
          ]
        },
        "retirementTime": {
          "description": "The time at which the model will be retired.",
          "type": "string",
          "format": "google-datetime"
        }
      },
      "type": "object",
      "id": "ModelStatus"
    },
    "TextPrompt": {
      "type": "object",
      "description": "Text given to the model as a prompt. The Model will use this TextPrompt to Generate a text completion.",
      "properties": {
        "text": {
          "description": "Required. The prompt text.",
          "type": "string"
        }
      },
      "id": "TextPrompt"
    },
    "WebSearch": {
      "type": "object",
      "description": "Standard web search for grounding and related configurations.",
      "properties": {},
      "id": "WebSearch"
    },
    "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": {
        "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."
        },
        "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`."
        },
        "scheduling": {
          "type": "string",
          "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.",
          "enum": [
            "SCHEDULING_UNSPECIFIED",
            "SILENT",
            "WHEN_IDLE",
            "INTERRUPT"
          ]
        },
        "id": {
          "description": "Optional. The identifier of the function call this response is for. Populated by the client to match the corresponding function call `id`.",
          "type": "string"
        },
        "response": {
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          },
          "type": "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."
        },
        "parts": {
          "items": {
            "$ref": "FunctionResponsePart"
          },
          "type": "array",
          "description": "Optional. Ordered `Parts` that constitute a function response. Parts may have different IANA MIME types."
        }
      },
      "type": "object"
    },
    "TextResponseFormat": {
      "type": "object",
      "description": "Configuration for text output format.",
      "properties": {
        "mimeType": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JSON output format.",
            "Plain text output format."
          ],
          "description": "Optional. The MIME type of the text output.",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "APPLICATION_JSON",
            "TEXT_PLAIN"
          ]
        },
        "schema": {
          "type": "any",
          "description": "Optional. The JSON schema that the output should conform to. Only applicable when mime_type is APPLICATION_JSON."
        }
      },
      "id": "TextResponseFormat"
    },
    "InlinedEmbedContentResponses": {
      "id": "InlinedEmbedContentResponses",
      "description": "The responses to the requests in the batch.",
      "properties": {
        "inlinedResponses": {
          "items": {
            "$ref": "InlinedEmbedContentResponse"
          },
          "readOnly": true,
          "description": "Output only. The responses to the requests in the batch.",
          "type": "array"
        }
      },
      "type": "object"
    },
    "Document": {
      "id": "Document",
      "description": "A `Document` is a collection of `Chunk`s.",
      "properties": {
        "displayName": {
          "description": "Optional. The human-readable display name for the `Document`. The display name must be no more than 512 characters in length, including spaces. Example: \"Semantic Retriever Documentation\"",
          "type": "string"
        },
        "customMetadata": {
          "description": "Optional. User provided custom metadata stored as key-value pairs used for querying. A `Document` can have a maximum of 20 `CustomMetadata`.",
          "type": "array",
          "items": {
            "$ref": "CustomMetadata"
          }
        },
        "updateTime": {
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The Timestamp of when the `Document` was last updated.",
          "type": "string"
        },
        "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"
        },
        "createTime": {
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The Timestamp of when the `Document` was created.",
          "type": "string"
        },
        "sizeBytes": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. The size of raw bytes ingested into the Document.",
          "type": "string"
        },
        "mimeType": {
          "readOnly": true,
          "description": "Output only. The mime type of the Document.",
          "type": "string"
        },
        "state": {
          "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."
          ],
          "type": "string",
          "description": "Output only. Current state of the `Document`.",
          "enum": [
            "STATE_UNSPECIFIED",
            "STATE_PENDING",
            "STATE_ACTIVE",
            "STATE_FAILED"
          ],
          "readOnly": true
        }
      },
      "type": "object"
    },
    "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.",
      "properties": {
        "setting": {
          "description": "Safety settings applied to the request.",
          "$ref": "SafetySetting"
        },
        "rating": {
          "description": "Safety rating evaluated from content.",
          "$ref": "SafetyRating"
        }
      },
      "id": "SafetyFeedback"
    },
    "Maps": {
      "id": "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."
        },
        "title": {
          "type": "string",
          "description": "Title of the place."
        },
        "text": {
          "type": "string",
          "description": "Text description of the place answer."
        },
        "uri": {
          "description": "URI reference of the place.",
          "type": "string"
        },
        "placeAnswerSources": {
          "description": "Sources that provide answers about the features of a given place in Google Maps.",
          "$ref": "PlaceAnswerSources"
        }
      },
      "type": "object"
    },
    "TranslationConfig": {
      "type": "object",
      "description": "Config for translation features.",
      "properties": {
        "echoTargetLanguage": {
          "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.",
          "type": "boolean"
        },
        "targetLanguageCode": {
          "type": "string",
          "description": "Required. The target language for translation. Supported values are BCP-47 language codes (e.g. \"en\", \"es\", \"fr\")."
        }
      },
      "id": "TranslationConfig"
    },
    "Web": {
      "type": "object",
      "description": "Chunk from the web.",
      "properties": {
        "uri": {
          "readOnly": true,
          "description": "Output only. URI reference of the chunk.",
          "type": "string"
        },
        "title": {
          "readOnly": true,
          "description": "Output only. Title of the chunk.",
          "type": "string"
        }
      },
      "id": "Web"
    },
    "ImageResponseFormat": {
      "description": "Configuration for image output format.",
      "properties": {
        "aspectRatio": {
          "description": "Optional. The aspect ratio for the image output.",
          "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"
          ],
          "type": "string",
          "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."
          ]
        },
        "imageSize": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "512px image size.",
            "1K image size.",
            "2K image size.",
            "4K image size."
          ],
          "description": "Optional. The size of the image output.",
          "enum": [
            "IMAGE_SIZE_UNSPECIFIED",
            "IMAGE_SIZE_FIVE_TWELVE",
            "IMAGE_SIZE_ONE_K",
            "IMAGE_SIZE_TWO_K",
            "IMAGE_SIZE_FOUR_K"
          ]
        },
        "mimeType": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "JPEG image format."
          ],
          "description": "Optional. The MIME type of the image output.",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "IMAGE_JPEG"
          ]
        },
        "delivery": {
          "description": "Optional. The delivery mode for the image output.",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ],
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Image data is returned inline in the response.",
            "Image data is returned as a URI."
          ]
        }
      },
      "type": "object",
      "id": "ImageResponseFormat"
    },
    "McpServer": {
      "id": "McpServer",
      "type": "object",
      "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",
      "properties": {
        "name": {
          "description": "The name of the MCPServer.",
          "type": "string"
        },
        "streamableHttpTransport": {
          "description": "A transport that can stream HTTP requests and responses.",
          "$ref": "StreamableHttpTransport"
        }
      }
    },
    "TuningExample": {
      "id": "TuningExample",
      "description": "A single example for tuning.",
      "properties": {
        "textInput": {
          "description": "Optional. Text model input.",
          "type": "string"
        },
        "output": {
          "type": "string",
          "description": "Required. The expected model output."
        }
      },
      "type": "object"
    },
    "BatchStats": {
      "type": "object",
      "description": "Stats about the batch.",
      "properties": {
        "successfulRequestCount": {
          "type": "string",
          "description": "Output only. The number of requests that were successfully processed.",
          "readOnly": true,
          "format": "int64"
        },
        "failedRequestCount": {
          "readOnly": true,
          "format": "int64",
          "type": "string",
          "description": "Output only. The number of requests that failed to be processed."
        },
        "requestCount": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. The number of requests in the batch.",
          "type": "string"
        },
        "pendingRequestCount": {
          "readOnly": true,
          "format": "int64",
          "type": "string",
          "description": "Output only. The number of requests that are still pending processing."
        }
      },
      "id": "BatchStats"
    },
    "FileSearchStore": {
      "type": "object",
      "description": "A `FileSearchStore` is a collection of `Document`s.",
      "properties": {
        "failedDocumentsCount": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. The number of documents in the `FileSearchStore` that have failed processing.",
          "type": "string"
        },
        "updateTime": {
          "type": "string",
          "description": "Output only. The Timestamp of when the `FileSearchStore` was last updated.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "displayName": {
          "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\"",
          "type": "string"
        },
        "embeddingModel": {
          "type": "string",
          "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."
        },
        "createTime": {
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The Timestamp of when the `FileSearchStore` was created.",
          "type": "string"
        },
        "activeDocumentsCount": {
          "type": "string",
          "description": "Output only. The number of documents in the `FileSearchStore` that are active and ready for retrieval.",
          "readOnly": true,
          "format": "int64"
        },
        "sizeBytes": {
          "readOnly": true,
          "format": "int64",
          "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`."
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "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."
        },
        "pendingDocumentsCount": {
          "type": "string",
          "description": "Output only. The number of documents in the `FileSearchStore` that are being processed.",
          "readOnly": true,
          "format": "int64"
        }
      },
      "id": "FileSearchStore"
    },
    "ListDocumentsResponse": {
      "description": "Response from `ListDocuments` containing a paginated list of `Document`s. The `Document`s are sorted by ascending `document.create_time`.",
      "properties": {
        "documents": {
          "type": "array",
          "description": "The returned `Document`s.",
          "items": {
            "$ref": "Document"
          }
        },
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "ListDocumentsResponse"
    },
    "SemanticRetrieverConfig": {
      "type": "object",
      "description": "Configuration for retrieving grounding content from a `Corpus` or `Document` created using the Semantic Retriever API.",
      "properties": {
        "query": {
          "description": "Required. Query to use for matching `Chunk`s in the given resource by similarity.",
          "$ref": "Content"
        },
        "metadataFilters": {
          "items": {
            "$ref": "MetadataFilter"
          },
          "description": "Optional. Filters for selecting `Document`s and/or `Chunk`s from the resource.",
          "type": "array"
        },
        "source": {
          "description": "Required. Name of the resource for retrieval. Example: `corpora/123` or `corpora/123/documents/abc`.",
          "type": "string"
        },
        "maxChunksCount": {
          "format": "int32",
          "description": "Optional. Maximum number of relevant `Chunk`s to retrieve.",
          "type": "integer"
        },
        "minimumRelevanceScore": {
          "description": "Optional. Minimum relevance score for retrieved relevant `Chunk`s.",
          "type": "number",
          "format": "float"
        }
      },
      "id": "SemanticRetrieverConfig"
    },
    "GenerateTextRequest": {
      "description": "Request to generate a text completion response from the model.",
      "properties": {
        "safetySettings": {
          "items": {
            "$ref": "SafetySetting"
          },
          "description": "Optional. A list of unique `SafetySetting` instances for blocking unsafe content. that will be enforced on the `GenerateTextRequest.prompt` and `GenerateTextResponse.candidates`. There should not be more than one setting for each `SafetyCategory` type. The API will block any prompts and responses that fail to meet the thresholds set by these settings. This list overrides the default settings for each `SafetyCategory` specified in the safety_settings. If there is no `SafetySetting` for a given `SafetyCategory` provided in the list, the API will use the default safety setting for that category. Harm categories HARM_CATEGORY_DEROGATORY, HARM_CATEGORY_TOXICITY, HARM_CATEGORY_VIOLENCE, HARM_CATEGORY_SEXUAL, HARM_CATEGORY_MEDICAL, HARM_CATEGORY_DANGEROUS are supported in text service.",
          "type": "array"
        },
        "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"
        },
        "temperature": {
          "type": "number",
          "description": "Optional. Controls the randomness of the output. Note: The default value varies by model, see the `Model.temperature` attribute of the `Model` returned the `getModel` function. Values can range from [0.0,1.0], inclusive. A value closer to 1.0 will produce responses that are more varied and creative, while a value closer to 0.0 will typically result in more straightforward responses from the model.",
          "format": "float"
        },
        "maxOutputTokens": {
          "format": "int32",
          "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."
        },
        "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."
        },
        "topK": {
          "description": "Optional. The maximum number of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens. Defaults to 40. Note: The default value varies by model, see the `Model.top_k` attribute of the `Model` returned the `getModel` function.",
          "type": "integer",
          "format": "int32"
        },
        "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": {
          "format": "int32",
          "description": "Optional. Number of generated responses to return. This value must be between [1, 8], inclusive. If unset, this will default to 1.",
          "type": "integer"
        }
      },
      "type": "object",
      "id": "GenerateTextRequest"
    },
    "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`.",
      "properties": {
        "prompt": {
          "description": "Required. The prompt, whose token count is to be returned.",
          "$ref": "MessagePrompt"
        }
      },
      "type": "object",
      "id": "CountMessageTokensRequest"
    },
    "ThinkingConfig": {
      "id": "ThinkingConfig",
      "description": "Config for thinking features.",
      "properties": {
        "thinkingLevel": {
          "type": "string",
          "enumDescriptions": [
            "Default value.",
            "Little to no thinking.",
            "Low thinking level.",
            "Medium thinking level.",
            "High thinking level."
          ],
          "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.",
          "enum": [
            "THINKING_LEVEL_UNSPECIFIED",
            "MINIMAL",
            "LOW",
            "MEDIUM",
            "HIGH"
          ]
        },
        "includeThoughts": {
          "type": "boolean",
          "description": "Indicates whether to include thoughts in the response. If true, thoughts are returned only when available."
        },
        "thinkingBudget": {
          "format": "int32",
          "description": "The number of thoughts tokens that the model should generate.",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "Interval": {
      "id": "Interval",
      "type": "object",
      "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.",
      "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"
        }
      }
    },
    "VideoMetadata": {
      "type": "object",
      "description": "Deprecated: Use `GenerateContentRequest.processing_options` instead. Metadata describes the input video content.",
      "properties": {
        "endOffset": {
          "format": "google-duration",
          "type": "string",
          "description": "Optional. The end offset of the video."
        },
        "fps": {
          "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].",
          "type": "number"
        },
        "startOffset": {
          "format": "google-duration",
          "description": "Optional. The start offset of the video.",
          "type": "string"
        }
      },
      "id": "VideoMetadata",
      "deprecated": true
    },
    "ModalityTokenCount": {
      "id": "ModalityTokenCount",
      "type": "object",
      "description": "Represents token counting info for a single modality.",
      "properties": {
        "modality": {
          "description": "The modality associated with this token count.",
          "enum": [
            "MODALITY_UNSPECIFIED",
            "TEXT",
            "IMAGE",
            "VIDEO",
            "AUDIO",
            "DOCUMENT"
          ],
          "type": "string",
          "enumDescriptions": [
            "Unspecified modality.",
            "Plain text.",
            "Image.",
            "Video.",
            "Audio.",
            "Document, e.g. PDF."
          ]
        },
        "tokenCount": {
          "type": "integer",
          "description": "Number of tokens.",
          "format": "int32"
        }
      }
    },
    "GroundingPassages": {
      "description": "A repeated list of passages.",
      "properties": {
        "passages": {
          "description": "List of passages.",
          "type": "array",
          "items": {
            "$ref": "GroundingPassage"
          }
        }
      },
      "type": "object",
      "id": "GroundingPassages"
    },
    "GenerateMessageResponse": {
      "description": "The response from the model. This includes candidate messages and conversation history in the form of chronologically-ordered messages.",
      "properties": {
        "messages": {
          "items": {
            "$ref": "Message"
          },
          "description": "The conversation history used by the model.",
          "type": "array"
        },
        "candidates": {
          "description": "Candidate response messages from the model.",
          "type": "array",
          "items": {
            "$ref": "Message"
          }
        },
        "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."
        }
      },
      "type": "object",
      "id": "GenerateMessageResponse"
    },
    "RetrievedContext": {
      "id": "RetrievedContext",
      "type": "object",
      "description": "Chunk from context retrieved by the file search tool.",
      "properties": {
        "pageNumber": {
          "description": "Optional. Page number of the retrieved context, if applicable.",
          "type": "integer",
          "format": "int32"
        },
        "mediaId": {
          "type": "string",
          "description": "Optional. The media blob resource name for multimodal file search results. Format: fileSearchStores/{file_search_store_id}/media/{blob_id}"
        },
        "title": {
          "type": "string",
          "description": "Optional. Title of the document."
        },
        "fileSearchStore": {
          "description": "Optional. Name of the `FileSearchStore` containing the document. Example: `fileSearchStores/123`",
          "type": "string"
        },
        "uri": {
          "description": "Optional. URI reference of the semantic retrieval document.",
          "type": "string"
        },
        "text": {
          "type": "string",
          "description": "Optional. Text of the chunk."
        },
        "customMetadata": {
          "type": "array",
          "description": "Optional. User-provided metadata about the retrieved context.",
          "items": {
            "$ref": "GroundingChunkCustomMetadata"
          }
        }
      }
    },
    "GenerateMessageRequest": {
      "type": "object",
      "description": "Request to generate a message response from the model.",
      "properties": {
        "topP": {
          "type": "number",
          "description": "Optional. The maximum cumulative probability of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`.",
          "format": "float"
        },
        "topK": {
          "description": "Optional. The maximum number of tokens to consider when sampling. The model uses combined Top-k and nucleus sampling. Top-k sampling considers the set of `top_k` most probable tokens.",
          "type": "integer",
          "format": "int32"
        },
        "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"
        },
        "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"
        }
      },
      "id": "GenerateMessageRequest"
    },
    "MessagePrompt": {
      "type": "object",
      "description": "All of the structured input text passed to the model as a prompt. A `MessagePrompt` contains a structured set of fields that provide context for the conversation, examples of user input/model output message pairs that prime the model to respond in different ways, and the conversation history or list of messages representing the alternating turns of the conversation between the user and the model.",
      "properties": {
        "examples": {
          "description": "Optional. Examples of what the model should generate. This includes both user input and the response that the model should emulate. These `examples` are treated identically to conversation messages except that they take precedence over the history in `messages`: If the total input size exceeds the model's `input_token_limit` the input will be truncated. Items will be dropped from `messages` before `examples`.",
          "type": "array",
          "items": {
            "$ref": "Example"
          }
        },
        "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"
        },
        "messages": {
          "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`.",
          "type": "array",
          "items": {
            "$ref": "Message"
          }
        }
      },
      "id": "MessagePrompt"
    },
    "GroundingChunk": {
      "id": "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": {
        "image": {
          "description": "Optional. Grounding chunk from image search.",
          "$ref": "Image"
        },
        "retrievedContext": {
          "description": "Optional. Grounding chunk from context retrieved by the file search tool.",
          "$ref": "RetrievedContext"
        },
        "web": {
          "description": "Grounding chunk from the web.",
          "$ref": "Web"
        },
        "maps": {
          "description": "Optional. Grounding chunk from Google Maps.",
          "$ref": "Maps"
        }
      }
    },
    "CountTokensResponse": {
      "id": "CountTokensResponse",
      "description": "A response from `CountTokens`. It returns the model's `token_count` for the `prompt`.",
      "properties": {
        "cacheTokensDetails": {
          "readOnly": true,
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "type": "array",
          "description": "Output only. List of modalities that were processed in the cached content."
        },
        "promptTokensDetails": {
          "readOnly": true,
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "type": "array",
          "description": "Output only. List of modalities that were processed in the request input."
        },
        "cachedContentTokenCount": {
          "type": "integer",
          "description": "Number of tokens in the cached part of the prompt (the cached content).",
          "format": "int32"
        },
        "totalTokens": {
          "format": "int32",
          "type": "integer",
          "description": "The number of tokens that the `Model` tokenizes the `prompt` into. Always non-negative."
        }
      },
      "type": "object"
    },
    "Corpus": {
      "id": "Corpus",
      "type": "object",
      "description": "A `Corpus` is a collection of `Document`s. A project can create up to 10 corpora.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "Optional. The human-readable display name for the `Corpus`. The display name must be no more than 512 characters in length, including spaces. Example: \"Docs on Semantic Retriever\""
        },
        "createTime": {
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The Timestamp of when the `Corpus` was created.",
          "type": "string"
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "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`"
        },
        "updateTime": {
          "type": "string",
          "description": "Output only. The Timestamp of when the `Corpus` was last updated.",
          "readOnly": true,
          "format": "google-datetime"
        }
      }
    },
    "Permission": {
      "id": "Permission",
      "type": "object",
      "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",
      "properties": {
        "granteeType": {
          "description": "Optional. Immutable. The type of the grantee.",
          "enum": [
            "GRANTEE_TYPE_UNSPECIFIED",
            "USER",
            "GROUP",
            "EVERYONE"
          ],
          "type": "string",
          "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",
          "enumDescriptions": [
            "The default value. This value is unused.",
            "Owner can use, update, share and delete the resource.",
            "Writer can use, update and share the resource.",
            "Reader can use the resource."
          ],
          "description": "Required. The role granted by this permission.",
          "enum": [
            "ROLE_UNSPECIFIED",
            "OWNER",
            "WRITER",
            "READER"
          ]
        },
        "emailAddress": {
          "type": "string",
          "description": "Optional. Immutable. The email address of the user of group which this permission refers. Field is not set when permission's grantee type is EVERYONE."
        },
        "name": {
          "type": "string",
          "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",
          "readOnly": true
        }
      }
    },
    "DiffUploadRequest": {
      "id": "DiffUploadRequest",
      "description": "A Diff upload request. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
      "properties": {
        "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": {
          "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.",
          "$ref": "CompositeMedia"
        },
        "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"
        }
      },
      "type": "object"
    },
    "TextCompletion": {
      "id": "TextCompletion",
      "type": "object",
      "description": "Output text returned from a model.",
      "properties": {
        "safetyRatings": {
          "description": "Ratings for the safety of a response. There is at most one rating per category.",
          "type": "array",
          "items": {
            "$ref": "SafetyRating"
          }
        },
        "output": {
          "description": "Output only. The generated text returned from the model.",
          "type": "string",
          "readOnly": true
        },
        "citationMetadata": {
          "readOnly": true,
          "$ref": "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`."
        }
      }
    },
    "DownloadParameters": {
      "id": "DownloadParameters",
      "type": "object",
      "description": "Parameters specific to media downloads.",
      "properties": {
        "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"
        },
        "ignoreRange": {
          "description": "Determining whether or not Apiary should skip the inclusion of any Content-Range header on its response to Scotty.",
          "type": "boolean"
        }
      }
    },
    "GoogleSearchRetrieval": {
      "id": "GoogleSearchRetrieval",
      "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"
        }
      },
      "type": "object"
    },
    "Status": {
      "type": "object",
      "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors).",
      "properties": {
        "details": {
          "items": {
            "type": "object",
            "additionalProperties": {
              "description": "Properties of the object. Contains field @type with type URL.",
              "type": "any"
            }
          },
          "type": "array",
          "description": "A list of messages that carry the error details. There is a common set of message types for APIs to use."
        },
        "code": {
          "description": "The status code, which should be an enum value of google.rpc.Code.",
          "type": "integer",
          "format": "int32"
        },
        "message": {
          "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.",
          "type": "string"
        }
      },
      "id": "Status"
    },
    "UrlContextMetadata": {
      "type": "object",
      "description": "Metadata related to url context retrieval tool.",
      "properties": {
        "urlMetadata": {
          "items": {
            "$ref": "UrlMetadata"
          },
          "description": "List of url context.",
          "type": "array"
        }
      },
      "id": "UrlContextMetadata"
    },
    "UploadToFileSearchStoreRequest": {
      "id": "UploadToFileSearchStoreRequest",
      "description": "Request for `UploadToFileSearchStore`.",
      "properties": {
        "displayName": {
          "type": "string",
          "description": "Optional. Display name of the created document."
        },
        "customMetadata": {
          "items": {
            "$ref": "CustomMetadata"
          },
          "description": "Custom metadata to be associated with the data.",
          "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"
        },
        "mimeType": {
          "type": "string",
          "description": "Optional. MIME type of the data. If not provided, it will be inferred from the uploaded content."
        }
      },
      "type": "object"
    },
    "GroundingAttribution": {
      "id": "GroundingAttribution",
      "type": "object",
      "description": "Attribution for a source that contributed to an answer.",
      "properties": {
        "content": {
          "description": "Grounding source content that makes up this attribution.",
          "$ref": "Content"
        },
        "sourceId": {
          "$ref": "AttributionSourceId",
          "readOnly": true,
          "description": "Output only. Identifier for the source contributing to this attribution."
        }
      }
    },
    "FunctionDeclaration": {
      "id": "FunctionDeclaration",
      "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.",
      "properties": {
        "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"
        },
        "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"
        },
        "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"
        },
        "responseJsonSchema": {
          "type": "any",
          "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`."
        },
        "parametersJsonSchema": {
          "type": "any",
          "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`."
        },
        "behavior": {
          "type": "string",
          "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."
          ],
          "description": "Optional. Specifies the function Behavior. Currently only supported by the BidiGenerateContent method.",
          "enum": [
            "UNSPECIFIED",
            "BLOCKING",
            "NON_BLOCKING"
          ]
        },
        "description": {
          "type": "string",
          "description": "Required. A brief description of the function."
        }
      }
    },
    "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": {
          "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.",
          "$ref": "CitationMetadata",
          "readOnly": true
        },
        "content": {
          "type": "string",
          "description": "Required. The text content of the structured `Message`."
        },
        "author": {
          "description": "Optional. The author of this Message. This serves as a key for tagging the content of this Message when it is fed to the model as text. The author can be any alphanumeric string.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "Message"
    },
    "ContextWindowCompressionConfig": {
      "id": "ContextWindowCompressionConfig",
      "type": "object",
      "description": "Enables context window compression — a mechanism for managing the model's context window so that it does not exceed a given length.",
      "properties": {
        "slidingWindow": {
          "description": "A sliding-window mechanism.",
          "$ref": "SlidingWindow"
        },
        "triggerTokens": {
          "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.",
          "format": "int64"
        }
      }
    },
    "ListOperationsResponse": {
      "id": "ListOperationsResponse",
      "type": "object",
      "description": "The response message for Operations.ListOperations.",
      "properties": {
        "operations": {
          "type": "array",
          "description": "A list of operations that matches the specified filter in the request.",
          "items": {
            "$ref": "Operation"
          }
        },
        "unreachable": {
          "type": "array",
          "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.",
          "items": {
            "type": "string"
          }
        },
        "nextPageToken": {
          "description": "The standard List next-page token.",
          "type": "string"
        }
      }
    },
    "PrebuiltVoiceConfig": {
      "type": "object",
      "description": "The configuration for the prebuilt speaker to use.",
      "properties": {
        "voiceName": {
          "type": "string",
          "description": "The name of the preset voice to use."
        }
      },
      "id": "PrebuiltVoiceConfig"
    },
    "SessionResumptionConfig": {
      "type": "object",
      "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"
        }
      },
      "id": "SessionResumptionConfig"
    },
    "SearchTypes": {
      "description": "Different types of search that can be enabled on the GoogleSearch tool.",
      "properties": {
        "webSearch": {
          "description": "Optional. Enables web search. Only text results are returned.",
          "$ref": "WebSearch"
        },
        "imageSearch": {
          "description": "Optional. Enables image search. Image bytes are returned.",
          "$ref": "ImageSearch"
        }
      },
      "type": "object",
      "id": "SearchTypes"
    },
    "InlinedEmbedContentRequest": {
      "id": "InlinedEmbedContentRequest",
      "type": "object",
      "description": "The request to be processed in the batch.",
      "properties": {
        "request": {
          "description": "Required. The request to be processed in the batch.",
          "$ref": "EmbedContentRequest"
        },
        "metadata": {
          "type": "object",
          "description": "Optional. The metadata to be associated with the request.",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        }
      }
    },
    "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": {
          "description": "The latitude in degrees. It must be in the range [-90.0, +90.0].",
          "type": "number",
          "format": "double"
        },
        "longitude": {
          "type": "number",
          "description": "The longitude in degrees. It must be in the range [-180.0, +180.0].",
          "format": "double"
        }
      },
      "type": "object"
    },
    "AuthToken": {
      "id": "AuthToken",
      "description": "A request to create an ephemeral authentication token.",
      "properties": {
        "bidiGenerateContentSetup": {
          "description": "Optional. Input only. Immutable. Configuration specific to `BidiGenerateContent`.",
          "$ref": "BidiGenerateContentSetup"
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Identifier. The token itself."
        },
        "fieldMask": {
          "type": "string",
          "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.",
          "format": "google-fieldmask"
        },
        "newSessionExpireTime": {
          "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.",
          "type": "string",
          "format": "google-datetime"
        },
        "uses": {
          "format": "int32",
          "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."
        },
        "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."
        }
      },
      "type": "object"
    },
    "LogprobsResult": {
      "id": "LogprobsResult",
      "type": "object",
      "description": "Logprobs Result",
      "properties": {
        "chosenCandidates": {
          "items": {
            "$ref": "LogprobsResultCandidate"
          },
          "type": "array",
          "description": "Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates."
        },
        "topCandidates": {
          "description": "Length = total number of decoding steps.",
          "type": "array",
          "items": {
            "$ref": "TopCandidates"
          }
        },
        "logProbabilitySum": {
          "type": "number",
          "description": "Sum of log probabilities for all tokens.",
          "format": "float"
        }
      }
    },
    "ObjectId": {
      "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.",
      "properties": {
        "bucketName": {
          "type": "string",
          "description": "The name of the bucket to which this object belongs."
        },
        "generation": {
          "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",
          "type": "string",
          "format": "int64"
        },
        "objectName": {
          "description": "The name of the object.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "ObjectId"
    },
    "ComputerUse": {
      "type": "object",
      "description": "Computer Use tool type.",
      "properties": {
        "enablePromptInjectionDetection": {
          "type": "boolean",
          "description": "Optional. Whether enable the prompt injection detection check on computer-use request."
        },
        "disabledSafetyPolicies": {
          "description": "Optional. Disabled safety policies for computer use.",
          "type": "array",
          "items": {
            "type": "string",
            "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."
            ],
            "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",
          "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.",
          "items": {
            "type": "string"
          }
        },
        "environment": {
          "type": "string",
          "enumDescriptions": [
            "Defaults to browser.",
            "Operates in a web browser.",
            "Operates in a mobile environment.",
            "Operates in a desktop environment."
          ],
          "description": "Required. The environment being operated.",
          "enum": [
            "ENVIRONMENT_UNSPECIFIED",
            "ENVIRONMENT_BROWSER",
            "ENVIRONMENT_MOBILE",
            "ENVIRONMENT_DESKTOP"
          ]
        }
      },
      "id": "ComputerUse"
    },
    "GoogleAiGenerativelanguageV1betaSegment": {
      "id": "GoogleAiGenerativelanguageV1betaSegment",
      "description": "Segment of the content.",
      "properties": {
        "startIndex": {
          "format": "int32",
          "description": "Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.",
          "type": "integer"
        },
        "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"
        },
        "partIndex": {
          "description": "The index of a Part object within its parent Content object.",
          "type": "integer",
          "format": "int32"
        },
        "text": {
          "description": "The text corresponding to the segment from the response.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "CreateFileResponse": {
      "id": "CreateFileResponse",
      "type": "object",
      "description": "Response for `CreateFile`.",
      "properties": {
        "file": {
          "description": "Metadata for the created file.",
          "$ref": "File"
        }
      }
    },
    "VideoFileMetadata": {
      "id": "VideoFileMetadata",
      "description": "Metadata for a video `File`.",
      "properties": {
        "videoDuration": {
          "type": "string",
          "description": "Duration of the video.",
          "format": "google-duration"
        }
      },
      "type": "object"
    },
    "Blob": {
      "description": "Raw media bytes. Text should not be sent as raw bytes, use the 'text' field.",
      "properties": {
        "mimeType": {
          "type": "string",
          "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). //"
        },
        "data": {
          "type": "string",
          "description": "Raw bytes for media formats.",
          "format": "byte"
        }
      },
      "type": "object",
      "id": "Blob"
    },
    "GoogleMaps": {
      "id": "GoogleMaps",
      "description": "The GoogleMaps Tool that provides geospatial context for the user's query.",
      "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"
        }
      },
      "type": "object"
    },
    "InlinedEmbedContentRequests": {
      "type": "object",
      "description": "The requests to be processed in the batch if provided as part of the batch creation request.",
      "properties": {
        "requests": {
          "items": {
            "$ref": "InlinedEmbedContentRequest"
          },
          "type": "array",
          "description": "Required. The requests to be processed in the batch."
        }
      },
      "id": "InlinedEmbedContentRequests"
    },
    "TransferOwnershipRequest": {
      "description": "Request to transfer the ownership of the tuned model.",
      "properties": {
        "emailAddress": {
          "type": "string",
          "description": "Required. The email address of the user to whom the tuned model is being transferred to."
        }
      },
      "type": "object",
      "id": "TransferOwnershipRequest"
    },
    "ListCachedContentsResponse": {
      "description": "Response with CachedContents list.",
      "properties": {
        "cachedContents": {
          "items": {
            "$ref": "CachedContent"
          },
          "type": "array",
          "description": "List of cached contents."
        },
        "nextPageToken": {
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "ListCachedContentsResponse"
    },
    "Example": {
      "type": "object",
      "description": "An input/output example used to instruct the Model. It demonstrates how the model should respond or format its response.",
      "properties": {
        "input": {
          "description": "Required. An example of an input `Message` from the user.",
          "$ref": "Message"
        },
        "output": {
          "description": "Required. An example of what the model should output given the input.",
          "$ref": "Message"
        }
      },
      "id": "Example"
    },
    "HistoryConfig": {
      "id": "HistoryConfig",
      "description": "History configuration. This message is included in the session configuration as `BidiGenerateContentSetup.history_config`. Configures the exchange of history messages.",
      "properties": {
        "initialHistoryInClientContent": {
          "type": "boolean",
          "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": "object"
    },
    "AttributionSourceId": {
      "id": "AttributionSourceId",
      "description": "Identifier for the source contributing to this attribution.",
      "properties": {
        "semanticRetrieverChunk": {
          "description": "Identifier for a `Chunk` fetched via Semantic Retriever.",
          "$ref": "SemanticRetrieverChunk"
        },
        "groundingPassage": {
          "description": "Identifier for an inline passage.",
          "$ref": "GroundingPassageId"
        }
      },
      "type": "object"
    },
    "Blobstore2Info": {
      "id": "Blobstore2Info",
      "description": "Information to read/write to blobstore2.",
      "properties": {
        "downloadExternalReadToken": {
          "format": "byte",
          "type": "string",
          "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."
        },
        "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": {
          "type": "string",
          "description": "The blob read token. Needed to read blobs that have not been replicated. Might not be available until the final call."
        },
        "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.",
          "type": "string",
          "format": "byte"
        },
        "blobId": {
          "description": "The blob id, e.g., /blobstore/prod/playground/scotty",
          "type": "string"
        },
        "downloadReadHandle": {
          "format": "byte",
          "type": "string",
          "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."
        }
      },
      "type": "object"
    },
    "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": {
        "toolType": {
          "description": "Required. The type of tool that was called, matching the `tool_type` in the corresponding `ToolCall`.",
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH"
          ],
          "type": "string",
          "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."
          ]
        },
        "id": {
          "type": "string",
          "description": "Optional. The identifier of the tool call this response is for."
        },
        "response": {
          "description": "Optional. The tool response.",
          "type": "object",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        }
      },
      "type": "object"
    },
    "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",
      "id": "DiffUploadResponse"
    },
    "BatchEmbedTextRequest": {
      "id": "BatchEmbedTextRequest",
      "description": "Batch request to get a text embedding from the model.",
      "properties": {
        "texts": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "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."
        },
        "requests": {
          "items": {
            "$ref": "EmbedTextRequest"
          },
          "description": "Optional. Embed requests for the batch. Only one of `texts` or `requests` can be set.",
          "type": "array"
        }
      },
      "type": "object"
    },
    "GenerateContentRequest": {
      "type": "object",
      "description": "Request to generate a completion from the model.",
      "properties": {
        "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"
        },
        "serviceTier": {
          "type": "string",
          "enumDescriptions": [
            "Default service tier, which is standard.",
            "Standard service tier.",
            "Flex service tier.",
            "Priority service tier."
          ],
          "description": "Optional. The service tier of the request.",
          "enum": [
            "unspecified",
            "standard",
            "flex",
            "priority"
          ]
        },
        "systemInstruction": {
          "description": "Optional. Developer set [system instruction(s)](https://ai.google.dev/gemini-api/docs/system-instructions). Currently, text only.",
          "$ref": "Content"
        },
        "generationConfig": {
          "description": "Optional. Configuration options for model generation and outputs.",
          "$ref": "GenerationConfig"
        },
        "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.",
          "$ref": "ToolConfig"
        },
        "model": {
          "type": "string",
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
        },
        "contents": {
          "items": {
            "$ref": "Content"
          },
          "type": "array",
          "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."
        },
        "store": {
          "type": "boolean",
          "description": "Optional. Configures the logging behavior for a given request. If set, it takes precedence over the project-level logging config."
        },
        "cachedContent": {
          "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}`",
          "type": "string"
        },
        "tools": {
          "type": "array",
          "description": "Optional. A list of `Tools` the `Model` may use to generate the next response. A `Tool` is a piece of code that enables the system to interact with external systems to perform an action, or set of actions, outside of knowledge and scope of the `Model`. 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.",
          "items": {
            "$ref": "Tool"
          }
        }
      },
      "id": "GenerateContentRequest"
    },
    "InlinedResponses": {
      "id": "InlinedResponses",
      "description": "The responses to the requests in the batch.",
      "properties": {
        "inlinedResponses": {
          "type": "array",
          "description": "Output only. The responses to the requests in the batch.",
          "readOnly": true,
          "items": {
            "$ref": "InlinedResponse"
          }
        }
      },
      "type": "object"
    },
    "ListFilesResponse": {
      "id": "ListFilesResponse",
      "type": "object",
      "description": "Response for `ListFiles`.",
      "properties": {
        "files": {
          "type": "array",
          "description": "The list of `File`s.",
          "items": {
            "$ref": "File"
          }
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token that can be sent as a `page_token` into a subsequent `ListFiles` call."
        }
      }
    },
    "ListPermissionsResponse": {
      "type": "object",
      "description": "Response from `ListPermissions` containing a paginated list of permissions.",
      "properties": {
        "permissions": {
          "type": "array",
          "description": "Returned permissions.",
          "items": {
            "$ref": "Permission"
          }
        },
        "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."
        }
      },
      "id": "ListPermissionsResponse"
    },
    "CountTokensRequest": {
      "id": "CountTokensRequest",
      "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",
      "properties": {
        "contents": {
          "description": "Optional. The input given to the model as a prompt. This field is ignored when `generate_content_request` is set.",
          "type": "array",
          "items": {
            "$ref": "Content"
          }
        },
        "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.",
          "$ref": "GenerateContentRequest"
        }
      },
      "type": "object"
    },
    "EmbedTextResponse": {
      "id": "EmbedTextResponse",
      "description": "The response to a EmbedTextRequest.",
      "properties": {
        "embedding": {
          "description": "Output only. The embedding generated from the input text.",
          "readOnly": true,
          "$ref": "Embedding"
        }
      },
      "type": "object"
    },
    "Operation": {
      "type": "object",
      "description": "This resource represents a long-running operation that is the result of a network API call.",
      "properties": {
        "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"
        },
        "response": {
          "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",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object. Contains field @type with type URL."
          }
        },
        "error": {
          "description": "The error result of the operation in case of failure or cancellation.",
          "$ref": "Status"
        },
        "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"
        },
        "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"
        }
      },
      "id": "Operation"
    },
    "ChunkingConfig": {
      "id": "ChunkingConfig",
      "type": "object",
      "description": "Parameters for telling the service how to chunk the file. inspired by google3/cloud/ai/platform/extension/lib/retrieval/config/chunker_config.proto",
      "properties": {
        "whiteSpaceConfig": {
          "description": "White space chunking configuration.",
          "$ref": "WhiteSpaceConfig"
        }
      }
    },
    "CustomLongRunningOperation": {
      "id": "CustomLongRunningOperation",
      "type": "object",
      "properties": {
        "error": {
          "description": "The error result of the operation in case of failure or cancellation.",
          "$ref": "Status"
        },
        "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"
        },
        "done": {
          "type": "boolean",
          "description": "If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available."
        },
        "metadata": {
          "type": "object",
          "description": "Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.",
          "additionalProperties": {
            "description": "Properties of the object. Contains field @type with type URL.",
            "type": "any"
          }
        },
        "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"
        }
      }
    },
    "GenerationConfig": {
      "description": "Configuration options for model generation and outputs. Not all parameters are configurable for every model.",
      "properties": {
        "frequencyPenalty": {
          "format": "float",
          "type": "number",
          "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."
        },
        "logprobs": {
          "type": "integer",
          "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].",
          "format": "int32"
        },
        "thinkingConfig": {
          "description": "Optional. Config for thinking features. An error will be returned if this field is set for models that don't support thinking.",
          "$ref": "ThinkingConfig"
        },
        "speechConfig": {
          "description": "Optional. The speech generation config.",
          "$ref": "SpeechConfig"
        },
        "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"
        },
        "maxOutputTokens": {
          "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",
          "format": "int32"
        },
        "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.",
          "$ref": "Schema"
        },
        "temperature": {
          "format": "float",
          "type": "number",
          "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]."
        },
        "responseJsonSchema": {
          "description": "Optional. An internal detail. Use `responseJsonSchema` rather than this field.",
          "type": "any"
        },
        "topP": {
          "format": "float",
          "type": "number",
          "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."
        },
        "seed": {
          "format": "int32",
          "description": "Optional. Seed used in decoding. If not set, the request uses a randomly generated seed.",
          "type": "integer"
        },
        "enableEnhancedCivicAnswers": {
          "type": "boolean",
          "description": "Optional. Enables enhanced civic answers. It may not be available for all models."
        },
        "mediaResolution": {
          "type": "string",
          "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.",
          "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"
        },
        "candidateCount": {
          "type": "integer",
          "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"
        },
        "enableAffectiveDialog": {
          "description": "Optional. If enabled, the model will detect emotions and adapt its responses accordingly.",
          "type": "boolean"
        },
        "responseModalities": {
          "items": {
            "enum": [
              "MODALITY_UNSPECIFIED",
              "TEXT",
              "IMAGE",
              "AUDIO"
            ],
            "type": "string",
            "enumDescriptions": [
              "Default value.",
              "Indicates the model should return text.",
              "Indicates the model should return images.",
              "Indicates the model should return audio."
            ]
          },
          "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."
        },
        "_responseJsonSchema": {
          "type": "any",
          "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."
        },
        "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"
        },
        "translationConfig": {
          "description": "Optional. Config for translation.",
          "$ref": "TranslationConfig"
        },
        "stopSequences": {
          "items": {
            "type": "string"
          },
          "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.",
          "type": "array"
        },
        "responseLogprobs": {
          "type": "boolean",
          "description": "Optional. If true, export the logprobs results in response."
        },
        "topK": {
          "format": "int32",
          "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.",
          "type": "integer"
        },
        "presencePenalty": {
          "type": "number",
          "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.",
          "format": "float"
        }
      },
      "type": "object",
      "id": "GenerationConfig"
    },
    "GroundingPassageId": {
      "type": "object",
      "description": "Identifier for a part within a `GroundingPassage`.",
      "properties": {
        "partIndex": {
          "readOnly": true,
          "format": "int32",
          "description": "Output only. Index of the part within the `GenerateAnswerRequest`'s `GroundingPassage.content`.",
          "type": "integer"
        },
        "passageId": {
          "readOnly": true,
          "description": "Output only. ID of the passage matching the `GenerateAnswerRequest`'s `GroundingPassage.id`.",
          "type": "string"
        }
      },
      "id": "GroundingPassageId"
    },
    "RegisterFilesResponse": {
      "id": "RegisterFilesResponse",
      "type": "object",
      "description": "Response for `RegisterFiles`.",
      "properties": {
        "files": {
          "description": "The registered files to be used when calling GenerateContent.",
          "type": "array",
          "items": {
            "$ref": "File"
          }
        }
      }
    },
    "BatchEmbedTextResponse": {
      "description": "The response to a EmbedTextRequest.",
      "properties": {
        "embeddings": {
          "type": "array",
          "description": "Output only. The embeddings generated from the input text.",
          "readOnly": true,
          "items": {
            "$ref": "Embedding"
          }
        }
      },
      "type": "object",
      "id": "BatchEmbedTextResponse"
    },
    "GdataMedia": {
      "description": "A reference to data stored on the filesystem, on GFS or in blobstore.",
      "properties": {
        "bigstoreObjectRef": {
          "description": "Use object_id instead.",
          "type": "string",
          "deprecated": true,
          "format": "byte"
        },
        "blobstore2Info": {
          "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.",
          "$ref": "Blobstore2Info"
        },
        "inline": {
          "description": "Media data, set if reference_type is INLINE",
          "type": "string",
          "format": "byte"
        },
        "diffUploadResponse": {
          "description": "Set if reference_type is DIFF_UPLOAD_RESPONSE.",
          "$ref": "DiffUploadResponse"
        },
        "path": {
          "type": "string",
          "description": "Path to the data, set if reference_type is PATH"
        },
        "mediaId": {
          "type": "string",
          "description": "Media id to forward to the operation GetMedia. Can be set if reference_type is GET_MEDIA.",
          "format": "byte"
        },
        "algorithm": {
          "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",
          "deprecated": true
        },
        "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.",
          "type": "string",
          "format": "byte"
        },
        "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."
        },
        "hash": {
          "type": "string",
          "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.",
          "deprecated": true
        },
        "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"
        },
        "diffVersionResponse": {
          "description": "Set if reference_type is DIFF_VERSION_RESPONSE.",
          "$ref": "DiffVersionResponse"
        },
        "token": {
          "type": "string",
          "description": "A unique fingerprint/version id for the media data"
        },
        "referenceType": {
          "description": "Describes what the field reference contains.",
          "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"
          ],
          "type": "string",
          "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."
          ]
        },
        "md5Hash": {
          "description": "Scotty-provided MD5 hash for an upload.",
          "type": "string",
          "format": "byte"
        },
        "sha256Hash": {
          "format": "byte",
          "type": "string",
          "description": "Scotty-provided SHA256 hash for an upload."
        },
        "filename": {
          "type": "string",
          "description": "Original file name"
        },
        "length": {
          "description": "Size of the data, in bytes",
          "type": "string",
          "format": "int64"
        },
        "crc32cHash": {
          "type": "integer",
          "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.",
          "format": "uint32"
        },
        "diffDownloadResponse": {
          "description": "Set if reference_type is DIFF_DOWNLOAD_RESPONSE.",
          "$ref": "DiffDownloadResponse"
        },
        "contentTypeInfo": {
          "description": "Extended content type information provided for Scotty uploads.",
          "$ref": "ContentTypeInfo"
        },
        "contentType": {
          "type": "string",
          "description": "MIME type of the data"
        },
        "isPotentialRetry": {
          "type": "boolean",
          "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."
        },
        "diffUploadRequest": {
          "description": "Set if reference_type is DIFF_UPLOAD_REQUEST.",
          "$ref": "DiffUploadRequest"
        },
        "downloadParameters": {
          "description": "Parameters for a media download.",
          "$ref": "DownloadParameters"
        },
        "diffChecksumsResponse": {
          "description": "Set if reference_type is DIFF_CHECKSUMS_RESPONSE.",
          "$ref": "DiffChecksumsResponse"
        },
        "sha512Hash": {
          "description": "Scotty-provided SHA512 hash for an upload.",
          "type": "string",
          "format": "byte"
        },
        "sha1Hash": {
          "format": "byte",
          "description": "Scotty-provided SHA1 hash for an upload.",
          "type": "string"
        },
        "blobRef": {
          "deprecated": true,
          "format": "byte",
          "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.",
          "type": "string"
        },
        "timestamp": {
          "type": "string",
          "description": "Time at which the media data was last updated, in milliseconds since UNIX epoch",
          "format": "uint64"
        },
        "objectId": {
          "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF.",
          "$ref": "ObjectId"
        }
      },
      "type": "object",
      "id": "GdataMedia"
    },
    "BatchEmbedContentsRequest": {
      "type": "object",
      "description": "Batch request to get embeddings from the model for a list of prompts.",
      "properties": {
        "requests": {
          "type": "array",
          "description": "Required. Embed requests for the batch. The model in each of these requests must match the model specified `BatchEmbedContentsRequest.model`.",
          "items": {
            "$ref": "EmbedContentRequest"
          }
        }
      },
      "id": "BatchEmbedContentsRequest"
    },
    "EmbeddingUsageMetadata": {
      "description": "Metadata on the usage of the embedding request.",
      "properties": {
        "promptTokenCount": {
          "readOnly": true,
          "format": "int32",
          "description": "Output only. Number of tokens in the prompt.",
          "type": "integer"
        },
        "promptTokenDetails": {
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "readOnly": true,
          "description": "Output only. List of modalities that were processed in the request input.",
          "type": "array"
        }
      },
      "type": "object",
      "id": "EmbeddingUsageMetadata"
    },
    "GeneratedFile": {
      "id": "GeneratedFile",
      "description": "A file generated on behalf of a user.",
      "properties": {
        "state": {
          "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.",
          "enum": [
            "STATE_UNSPECIFIED",
            "GENERATING",
            "GENERATED",
            "FAILED"
          ],
          "type": "string",
          "readOnly": true
        },
        "name": {
          "description": "Identifier. The name of the generated file. Example: `generatedFiles/abc-123`",
          "type": "string"
        },
        "mimeType": {
          "type": "string",
          "description": "MIME type of the generatedFile."
        },
        "error": {
          "description": "Error details if the GeneratedFile ends up in the STATE_FAILED state.",
          "$ref": "Status"
        }
      },
      "type": "object"
    },
    "SafetyRating": {
      "type": "object",
      "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.",
      "properties": {
        "blocked": {
          "description": "Was this content blocked because of this rating?",
          "type": "boolean"
        },
        "probability": {
          "type": "string",
          "enumDescriptions": [
            "Probability is unspecified.",
            "Content has a negligible chance of being unsafe.",
            "Content has a low chance of being unsafe.",
            "Content has a medium chance of being unsafe.",
            "Content has a high chance of being unsafe."
          ],
          "description": "Required. The probability of harm for this content.",
          "enum": [
            "HARM_PROBABILITY_UNSPECIFIED",
            "NEGLIGIBLE",
            "LOW",
            "MEDIUM",
            "HIGH"
          ]
        },
        "category": {
          "type": "string",
          "description": "Required. The category for this rating.",
          "enum": [
            "HARM_CATEGORY_UNSPECIFIED",
            "HARM_CATEGORY_DEROGATORY",
            "HARM_CATEGORY_TOXICITY",
            "HARM_CATEGORY_VIOLENCE",
            "HARM_CATEGORY_SEXUAL",
            "HARM_CATEGORY_MEDICAL",
            "HARM_CATEGORY_DANGEROUS",
            "HARM_CATEGORY_HARASSMENT",
            "HARM_CATEGORY_HATE_SPEECH",
            "HARM_CATEGORY_SEXUALLY_EXPLICIT",
            "HARM_CATEGORY_DANGEROUS_CONTENT",
            "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
          ]
        }
      },
      "id": "SafetyRating"
    },
    "GenerateContentBatchOutput": {
      "id": "GenerateContentBatchOutput",
      "type": "object",
      "description": "The output of a batch request. This is returned in the `BatchGenerateContentResponse` or the `GenerateContentBatch.output` field.",
      "properties": {
        "responsesFile": {
          "type": "string",
          "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
        },
        "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"
        }
      }
    },
    "TuningExamples": {
      "id": "TuningExamples",
      "description": "A set of tuning examples. Can be training or validation data.",
      "properties": {
        "examples": {
          "items": {
            "$ref": "TuningExample"
          },
          "type": "array",
          "description": "The examples. Example input can be for text or discuss, but all examples in a set must be of the same type."
        }
      },
      "type": "object"
    },
    "CachedContent": {
      "id": "CachedContent",
      "type": "object",
      "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": {
        "toolConfig": {
          "description": "Optional. Input only. Immutable. Tool config. This config is shared for all tools.",
          "$ref": "ToolConfig"
        },
        "updateTime": {
          "description": "Output only. When the cache entry was last updated in UTC time.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "systemInstruction": {
          "description": "Optional. Input only. Immutable. Developer set system instruction. Currently text only.",
          "$ref": "Content"
        },
        "ttl": {
          "description": "Input only. New TTL for this resource, input only.",
          "type": "string",
          "format": "google-duration"
        },
        "displayName": {
          "description": "Optional. Immutable. The user-generated meaningful display name of the cached content. Maximum 128 Unicode characters.",
          "type": "string"
        },
        "name": {
          "readOnly": true,
          "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`",
          "type": "string"
        },
        "tools": {
          "description": "Optional. Input only. Immutable. A list of `Tools` the model may use to generate the next response",
          "type": "array",
          "items": {
            "$ref": "Tool"
          }
        },
        "createTime": {
          "type": "string",
          "description": "Output only. Creation time of the cache entry.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "model": {
          "description": "Required. Immutable. The name of the `Model` to use for cached content Format: `models/{model}`",
          "type": "string"
        },
        "expireTime": {
          "format": "google-datetime",
          "description": "Timestamp in UTC of when this resource is considered expired. This is *always* provided on output, regardless of what was sent on input.",
          "type": "string"
        },
        "contents": {
          "type": "array",
          "description": "Optional. Input only. Immutable. The content to cache.",
          "items": {
            "$ref": "Content"
          }
        },
        "usageMetadata": {
          "description": "Output only. Metadata on the usage of the cached content.",
          "readOnly": true,
          "$ref": "CachedContentUsageMetadata"
        }
      }
    },
    "Schema": {
      "id": "Schema",
      "type": "object",
      "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": {
        "items": {
          "description": "Optional. Schema of the elements of Type.ARRAY.",
          "$ref": "Schema"
        },
        "minProperties": {
          "format": "int64",
          "type": "string",
          "description": "Optional. Minimum number of the properties for Type.OBJECT."
        },
        "maxLength": {
          "format": "int64",
          "type": "string",
          "description": "Optional. Maximum length of the Type.STRING"
        },
        "maxItems": {
          "format": "int64",
          "type": "string",
          "description": "Optional. Maximum number of the elements for Type.ARRAY."
        },
        "maxProperties": {
          "format": "int64",
          "description": "Optional. Maximum number of the properties for Type.OBJECT.",
          "type": "string"
        },
        "type": {
          "description": "Required. Data type.",
          "enum": [
            "TYPE_UNSPECIFIED",
            "STRING",
            "NUMBER",
            "INTEGER",
            "BOOLEAN",
            "ARRAY",
            "OBJECT",
            "NULL"
          ],
          "type": "string",
          "enumDescriptions": [
            "Not specified, should not be used.",
            "String type.",
            "Number type.",
            "Integer type.",
            "Boolean type.",
            "Array type.",
            "Object type.",
            "Null type."
          ]
        },
        "default": {
          "type": "any",
          "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."
        },
        "enum": {
          "description": "Optional. Possible values of the element of Type.STRING with enum format. For example we can define an Enum Direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]}",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "example": {
          "description": "Optional. Example of the object. Will only populated when the object is the root.",
          "type": "any"
        },
        "pattern": {
          "description": "Optional. Pattern of the Type.STRING to restrict a string to a regular expression.",
          "type": "string"
        },
        "minimum": {
          "description": "Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER",
          "type": "number",
          "format": "double"
        },
        "maximum": {
          "description": "Optional. Maximum value of the Type.INTEGER and Type.NUMBER",
          "type": "number",
          "format": "double"
        },
        "minItems": {
          "type": "string",
          "description": "Optional. Minimum number of the elements for Type.ARRAY.",
          "format": "int64"
        },
        "title": {
          "description": "Optional. The title of the schema.",
          "type": "string"
        },
        "description": {
          "description": "Optional. A brief description of the parameter. This could contain examples of use. Parameter description may be formatted as Markdown.",
          "type": "string"
        },
        "anyOf": {
          "description": "Optional. The value should be validated against any (one or more) of the subschemas in the list.",
          "type": "array",
          "items": {
            "$ref": "Schema"
          }
        },
        "minLength": {
          "format": "int64",
          "type": "string",
          "description": "Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING"
        },
        "propertyOrdering": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "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."
        },
        "properties": {
          "description": "Optional. Properties of Type.OBJECT.",
          "type": "object",
          "additionalProperties": {
            "$ref": "Schema"
          }
        },
        "format": {
          "type": "string",
          "description": "Optional. The format of the data. Any value is allowed, but most do not trigger any special functionality."
        },
        "required": {
          "type": "array",
          "description": "Optional. Required properties of Type.OBJECT.",
          "items": {
            "type": "string"
          }
        },
        "nullable": {
          "description": "Optional. Indicates if the value may be null.",
          "type": "boolean"
        }
      }
    },
    "LogprobsResultCandidate": {
      "type": "object",
      "description": "Candidate for the logprobs token and score.",
      "properties": {
        "tokenId": {
          "format": "int32",
          "type": "integer",
          "description": "The candidate’s token id value."
        },
        "logProbability": {
          "type": "number",
          "description": "The candidate's log probability.",
          "format": "float"
        },
        "token": {
          "type": "string",
          "description": "The candidate’s token string value."
        }
      },
      "id": "LogprobsResultCandidate"
    },
    "RetrievalMetadata": {
      "type": "object",
      "description": "Metadata related to retrieval in the grounding flow.",
      "properties": {
        "googleSearchDynamicRetrievalScore": {
          "format": "float",
          "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.",
          "type": "number"
        }
      },
      "id": "RetrievalMetadata"
    },
    "AutomaticActivityDetection": {
      "id": "AutomaticActivityDetection",
      "type": "object",
      "description": "Configures automatic detection of activity.",
      "properties": {
        "prefixPaddingMs": {
          "type": "integer",
          "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.",
          "format": "int32"
        },
        "startOfSpeechSensitivity": {
          "type": "string",
          "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."
          ],
          "description": "Optional. Determines how likely speech is to be detected.",
          "enum": [
            "START_SENSITIVITY_UNSPECIFIED",
            "START_SENSITIVITY_HIGH",
            "START_SENSITIVITY_LOW"
          ]
        },
        "endOfSpeechSensitivity": {
          "description": "Optional. Determines how likely detected speech is ended.",
          "enum": [
            "END_SENSITIVITY_UNSPECIFIED",
            "END_SENSITIVITY_HIGH",
            "END_SENSITIVITY_LOW"
          ],
          "type": "string",
          "enumDescriptions": [
            "The default is END_SENSITIVITY_HIGH.",
            "Automatic detection ends speech more often.",
            "Automatic detection ends speech less often."
          ]
        },
        "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"
        },
        "disabled": {
          "type": "boolean",
          "description": "Optional. If enabled (the default), detected voice and text input count as activity. If disabled, the client must send activity signals."
        }
      }
    },
    "ListCorporaResponse": {
      "id": "ListCorporaResponse",
      "type": "object",
      "description": "Response from `ListCorpora` containing a paginated list of `Corpora`. The results are sorted by ascending `corpus.create_time`.",
      "properties": {
        "corpora": {
          "items": {
            "$ref": "Corpus"
          },
          "type": "array",
          "description": "The returned corpora."
        },
        "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"
        }
      }
    },
    "CountTextTokensRequest": {
      "id": "CountTextTokensRequest",
      "type": "object",
      "description": "Counts the number of tokens in the `prompt` sent to a model. Models may tokenize text differently, so each model may return a different `token_count`.",
      "properties": {
        "prompt": {
          "description": "Required. The free-form input text given to the model as a prompt.",
          "$ref": "TextPrompt"
        }
      }
    },
    "GroundingPassage": {
      "id": "GroundingPassage",
      "description": "Passage included inline with a grounding configuration.",
      "properties": {
        "id": {
          "description": "Identifier for the passage for attributing this passage in grounded answers.",
          "type": "string"
        },
        "content": {
          "description": "Content of the passage.",
          "$ref": "Content"
        }
      },
      "type": "object"
    },
    "EmbedContentConfig": {
      "id": "EmbedContentConfig",
      "type": "object",
      "description": "Configurations for the EmbedContent request.",
      "properties": {
        "title": {
          "description": "Optional. The title for the text.",
          "type": "string"
        },
        "autoTruncate": {
          "description": "Optional. Whether to silently truncate the input content if it's longer than the maximum sequence length.",
          "type": "boolean"
        },
        "outputDimensionality": {
          "type": "integer",
          "description": "Optional. Reduced dimension for the output embedding. If set, excessive values in the output embedding are truncated from the end.",
          "format": "int32"
        },
        "documentOcr": {
          "description": "Optional. Whether to enable OCR for document content.",
          "type": "boolean"
        },
        "audioTrackExtraction": {
          "type": "boolean",
          "description": "Optional. Whether to extract audio from video content."
        },
        "taskType": {
          "description": "Optional. The task type of the embedding.",
          "enum": [
            "TASK_TYPE_UNSPECIFIED",
            "RETRIEVAL_QUERY",
            "RETRIEVAL_DOCUMENT",
            "SEMANTIC_SIMILARITY",
            "CLASSIFICATION",
            "CLUSTERING",
            "QUESTION_ANSWERING",
            "FACT_VERIFICATION",
            "CODE_RETRIEVAL_QUERY"
          ],
          "type": "string",
          "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."
          ]
        }
      }
    },
    "CachedContentUsageMetadata": {
      "type": "object",
      "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."
        }
      },
      "id": "CachedContentUsageMetadata"
    },
    "ToolCall": {
      "id": "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`.",
      "properties": {
        "toolType": {
          "type": "string",
          "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.",
          "enum": [
            "TOOL_TYPE_UNSPECIFIED",
            "GOOGLE_SEARCH_WEB",
            "GOOGLE_SEARCH_IMAGE",
            "URL_CONTEXT",
            "GOOGLE_MAPS",
            "FILE_SEARCH"
          ]
        },
        "id": {
          "type": "string",
          "description": "Optional. Unique identifier of the tool call. The server returns the tool response with the matching `id`."
        },
        "args": {
          "description": "Optional. The tool call arguments. Example: {\"arg1\" : \"value1\", \"arg2\" : \"value2\" , ...}",
          "type": "object",
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          }
        }
      }
    },
    "CodeExecution": {
      "id": "CodeExecution",
      "type": "object",
      "description": "Tool that executes code generated by the model, and automatically returns the result to the model. See also `ExecutableCode` and `CodeExecutionResult` which are only generated when using this tool.",
      "properties": {}
    },
    "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": {
          "type": "string",
          "description": "The version of the object stored at the server."
        },
        "objectSizeBytes": {
          "format": "int64",
          "description": "The total size of the server object.",
          "type": "string"
        }
      },
      "type": "object",
      "id": "DiffVersionResponse"
    },
    "AsyncBatchEmbedContentRequest": {
      "id": "AsyncBatchEmbedContentRequest",
      "description": "Request for an `AsyncBatchEmbedContent` operation.",
      "properties": {
        "batch": {
          "description": "Required. The batch to create.",
          "$ref": "EmbedContentBatch"
        }
      },
      "type": "object"
    },
    "PromptFeedback": {
      "type": "object",
      "description": "A set of the feedback metadata the prompt specified in `GenerateContentRequest.content`.",
      "properties": {
        "blockReason": {
          "type": "string",
          "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.",
          "enum": [
            "BLOCK_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER",
            "BLOCKLIST",
            "PROHIBITED_CONTENT",
            "IMAGE_SAFETY"
          ]
        },
        "safetyRatings": {
          "type": "array",
          "description": "Ratings for safety of the prompt. There is at most one rating per category.",
          "items": {
            "$ref": "SafetyRating"
          }
        }
      },
      "id": "PromptFeedback"
    },
    "GenerateAnswerResponse": {
      "id": "GenerateAnswerResponse",
      "type": "object",
      "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`)"
        },
        "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"
        },
        "answerableProbability": {
          "type": "number",
          "description": "Output only. The model's estimate of the probability that its answer is correct and grounded in the input passages. A low `answerable_probability` indicates that the answer might not be grounded in the sources. When `answerable_probability` is low, 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.",
          "readOnly": true,
          "format": "float"
        }
      }
    },
    "TunedModel": {
      "id": "TunedModel",
      "type": "object",
      "description": "A fine-tuned model created using ModelService.CreateTunedModel.",
      "properties": {
        "tunedModelSource": {
          "description": "Optional. TunedModel to use as the starting point for training the new model.",
          "$ref": "TunedModelSource"
        },
        "displayName": {
          "description": "Optional. The name to display for this model in user interfaces. The display name must be up to 40 characters including spaces.",
          "type": "string"
        },
        "temperature": {
          "format": "float",
          "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.",
          "type": "number"
        },
        "readerProjectNumbers": {
          "description": "Optional. List of project numbers that have read access to the tuned model.",
          "type": "array",
          "items": {
            "type": "string",
            "format": "int64"
          }
        },
        "baseModel": {
          "type": "string",
          "description": "Immutable. The name of the `Model` to tune. Example: `models/gemini-1.5-flash-001`"
        },
        "topP": {
          "type": "number",
          "description": "Optional. For Nucleus sampling. Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be the one used by the base model while creating the model.",
          "format": "float"
        },
        "createTime": {
          "type": "string",
          "description": "Output only. The timestamp when this model was created.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "updateTime": {
          "type": "string",
          "description": "Output only. The timestamp when this model was updated.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "tuningTask": {
          "description": "Required. The tuning task that creates the tuned model.",
          "$ref": "TuningTask"
        },
        "description": {
          "type": "string",
          "description": "Optional. A short description of this model."
        },
        "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"
        },
        "state": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. The state of the tuned model.",
          "enum": [
            "STATE_UNSPECIFIED",
            "CREATING",
            "ACTIVE",
            "FAILED"
          ],
          "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."
          ]
        },
        "name": {
          "readOnly": true,
          "type": "string",
          "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`"
        }
      }
    },
    "FileSearch": {
      "id": "FileSearch",
      "type": "object",
      "description": "The FileSearch tool that retrieves knowledge from Semantic Retrieval corpora. Files are imported to Semantic Retrieval corpora using the ImportFile API.",
      "properties": {
        "fileSearchStoreNames": {
          "description": "Required. The names of the file_search_stores to retrieve from. Example: `fileSearchStores/my-file-search-store-123`",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "topK": {
          "format": "int32",
          "description": "Optional. The number of semantic retrieval chunks to retrieve.",
          "type": "integer"
        },
        "metadataFilter": {
          "description": "Optional. Metadata filter to apply to the semantic retrieval documents and chunks.",
          "type": "string"
        }
      }
    },
    "PredictRequest": {
      "description": "Request message for PredictionService.Predict.",
      "properties": {
        "instances": {
          "items": {
            "type": "any"
          },
          "type": "array",
          "description": "Required. The instances that are the input to the prediction call."
        },
        "parameters": {
          "type": "any",
          "description": "Optional. The parameters that govern the prediction call."
        }
      },
      "type": "object",
      "id": "PredictRequest"
    },
    "MetadataFilter": {
      "id": "MetadataFilter",
      "type": "object",
      "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}]",
      "properties": {
        "key": {
          "type": "string",
          "description": "Required. The key of the metadata to filter on."
        },
        "conditions": {
          "items": {
            "$ref": "Condition"
          },
          "type": "array",
          "description": "Required. The `Condition`s for the given key that will trigger this filter. Multiple `Condition`s are joined by logical ORs."
        }
      }
    },
    "InputFeedback": {
      "id": "InputFeedback",
      "type": "object",
      "description": "Feedback related to the input data used to answer the question, as opposed to the model-generated response to the question.",
      "properties": {
        "blockReason": {
          "description": "Optional. If set, the input was blocked and no candidates are returned. Rephrase the input.",
          "enum": [
            "BLOCK_REASON_UNSPECIFIED",
            "SAFETY",
            "OTHER"
          ],
          "type": "string",
          "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"
          }
        }
      }
    },
    "CustomMetadata": {
      "description": "User provided metadata stored as key-value pairs.",
      "properties": {
        "stringValue": {
          "description": "The string value of the metadata to store.",
          "type": "string"
        },
        "numericValue": {
          "type": "number",
          "description": "The numeric value of the metadata to store.",
          "format": "float"
        },
        "key": {
          "type": "string",
          "description": "Required. The key of the metadata to store."
        },
        "stringListValue": {
          "description": "The StringList value of the metadata to store.",
          "$ref": "StringList"
        }
      },
      "type": "object",
      "id": "CustomMetadata"
    },
    "GenerateTextResponse": {
      "description": "The response from the model, including candidate completions.",
      "properties": {
        "candidates": {
          "description": "Candidate responses from the model.",
          "type": "array",
          "items": {
            "$ref": "TextCompletion"
          }
        },
        "safetyFeedback": {
          "description": "Returns any safety feedback related to content filtering.",
          "type": "array",
          "items": {
            "$ref": "SafetyFeedback"
          }
        },
        "filters": {
          "items": {
            "$ref": "ContentFilter"
          },
          "description": "A set of content filtering metadata for the prompt and response text. This indicates which `SafetyCategory`(s) blocked a candidate from this response, the lowest `HarmProbability` that triggered a block, and the HarmThreshold setting for that category. This indicates the smallest change to the `SafetySettings` that would be necessary to unblock at least 1 response. The blocking is configured by the `SafetySettings` in the request (or the default `SafetySettings` of the API).",
          "type": "array"
        }
      },
      "type": "object",
      "id": "GenerateTextResponse"
    },
    "StreamableHttpTransport": {
      "description": "A transport that can stream HTTP requests and responses. Next ID: 6",
      "properties": {
        "headers": {
          "additionalProperties": {
            "type": "string"
          },
          "description": "Optional: Fields for authentication headers, timeouts, etc., if needed.",
          "type": "object"
        },
        "terminateOnClose": {
          "description": "Whether to close the client session when the transport closes.",
          "type": "boolean"
        },
        "url": {
          "type": "string",
          "description": "The full URL for the MCPServer endpoint. Example: \"https://api.example.com/mcp\""
        },
        "timeout": {
          "description": "HTTP timeout for regular operations.",
          "type": "string",
          "format": "google-duration"
        },
        "sseReadTimeout": {
          "type": "string",
          "description": "Timeout for SSE read operations.",
          "format": "google-duration"
        }
      },
      "type": "object",
      "id": "StreamableHttpTransport"
    },
    "VoiceConfig": {
      "type": "object",
      "description": "The configuration for the voice to use.",
      "properties": {
        "prebuiltVoiceConfig": {
          "description": "The configuration for the prebuilt voice to use.",
          "$ref": "PrebuiltVoiceConfig"
        }
      },
      "id": "VoiceConfig"
    },
    "InlinedResponse": {
      "id": "InlinedResponse",
      "type": "object",
      "description": "The response to a single request in the batch.",
      "properties": {
        "error": {
          "$ref": "Status",
          "readOnly": true,
          "description": "Output only. The error encountered while processing the request."
        },
        "metadata": {
          "type": "object",
          "description": "Output only. The metadata associated with the request.",
          "readOnly": true,
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        },
        "response": {
          "description": "Output only. The response to the request.",
          "readOnly": true,
          "$ref": "GenerateContentResponse"
        }
      }
    },
    "BatchGenerateContentRequest": {
      "id": "BatchGenerateContentRequest",
      "type": "object",
      "description": "Request for a `BatchGenerateContent` operation.",
      "properties": {
        "batch": {
          "description": "Required. The batch to create.",
          "$ref": "GenerateContentBatch"
        }
      }
    },
    "ListModelsResponse": {
      "description": "Response from `ListModel` containing a paginated list of Models.",
      "properties": {
        "nextPageToken": {
          "type": "string",
          "description": "A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no more pages."
        },
        "models": {
          "items": {
            "$ref": "Model"
          },
          "description": "The returned Models.",
          "type": "array"
        }
      },
      "type": "object",
      "id": "ListModelsResponse"
    },
    "UsageMetadata": {
      "type": "object",
      "description": "Metadata on the generation request's token usage.",
      "properties": {
        "totalTokenCount": {
          "format": "int32",
          "description": "Total token count for the generation request (prompt + thoughts + response candidates).",
          "type": "integer"
        },
        "toolUsePromptTokenCount": {
          "type": "integer",
          "description": "Output only. Number of tokens present in tool-use prompt(s).",
          "readOnly": true,
          "format": "int32"
        },
        "thoughtsTokenCount": {
          "readOnly": true,
          "format": "int32",
          "type": "integer",
          "description": "Output only. Number of tokens of thoughts for thinking models."
        },
        "candidatesTokenCount": {
          "description": "Total number of tokens across all the generated response candidates.",
          "type": "integer",
          "format": "int32"
        },
        "promptTokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "Number of tokens in the prompt. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content."
        },
        "candidatesTokensDetails": {
          "readOnly": true,
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "type": "array",
          "description": "Output only. List of modalities that were returned in the response."
        },
        "cacheTokensDetails": {
          "description": "Output only. List of modalities of the cached content in the request input.",
          "type": "array",
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "readOnly": true
        },
        "cachedContentTokenCount": {
          "type": "integer",
          "description": "Number of tokens in the cached part of the prompt (the cached content)",
          "format": "int32"
        },
        "toolUsePromptTokensDetails": {
          "type": "array",
          "description": "Output only. List of modalities that were processed for tool-use request inputs.",
          "readOnly": true,
          "items": {
            "$ref": "ModalityTokenCount"
          }
        },
        "promptTokensDetails": {
          "items": {
            "$ref": "ModalityTokenCount"
          },
          "readOnly": true,
          "description": "Output only. List of modalities that were processed in the request input.",
          "type": "array"
        },
        "serviceTier": {
          "enumDescriptions": [
            "Default service tier, which is standard.",
            "Standard service tier.",
            "Flex service tier.",
            "Priority service tier."
          ],
          "readOnly": true,
          "type": "string",
          "description": "Output only. Service tier of the request.",
          "enum": [
            "unspecified",
            "standard",
            "flex",
            "priority"
          ]
        }
      },
      "id": "UsageMetadata"
    },
    "DynamicRetrievalConfig": {
      "id": "DynamicRetrievalConfig",
      "description": "Describes the options to customize dynamic retrieval.",
      "properties": {
        "dynamicThreshold": {
          "type": "number",
          "description": "The threshold to be used in dynamic retrieval. If not set, a system default value is used.",
          "format": "float"
        },
        "mode": {
          "type": "string",
          "enumDescriptions": [
            "Always trigger retrieval.",
            "Run retrieval only when system decides it is necessary."
          ],
          "description": "The mode of the predictor to be used in dynamic retrieval.",
          "enum": [
            "MODE_UNSPECIFIED",
            "MODE_DYNAMIC"
          ]
        }
      },
      "type": "object"
    },
    "ImageSearch": {
      "type": "object",
      "description": "Image search for grounding and related configurations.",
      "properties": {},
      "id": "ImageSearch"
    },
    "ImageConfig": {
      "id": "ImageConfig",
      "description": "Config for image generation features.",
      "properties": {
        "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"
        },
        "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`."
        }
      },
      "type": "object"
    },
    "EmbedContentResponse": {
      "id": "EmbedContentResponse",
      "description": "The response to an `EmbedContentRequest`.",
      "properties": {
        "usageMetadata": {
          "$ref": "EmbeddingUsageMetadata",
          "readOnly": true,
          "description": "Output only. The usage metadata for the request."
        },
        "embedding": {
          "description": "Output only. The embedding generated from the input content.",
          "readOnly": true,
          "$ref": "ContentEmbedding"
        }
      },
      "type": "object"
    },
    "DiffDownloadResponse": {
      "id": "DiffDownloadResponse",
      "type": "object",
      "description": "Backend response for a Diff download response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
      "properties": {
        "objectLocation": {
          "description": "The original object location.",
          "$ref": "CompositeMedia"
        }
      }
    },
    "EmbedContentBatch": {
      "type": "object",
      "description": "A resource representing a batch of `EmbedContent` requests.",
      "properties": {
        "displayName": {
          "description": "Required. The user-defined name of this batch.",
          "type": "string"
        },
        "inputConfig": {
          "description": "Required. Input configuration of the instances on which batch processing are performed.",
          "$ref": "InputEmbedContentConfig"
        },
        "updateTime": {
          "description": "Output only. The time at which the batch was last updated.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "batchStats": {
          "description": "Output only. Stats about the batch.",
          "$ref": "EmbedContentBatchStats",
          "readOnly": true
        },
        "priority": {
          "type": "string",
          "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.",
          "format": "int64"
        },
        "name": {
          "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
          "type": "string",
          "readOnly": true
        },
        "createTime": {
          "type": "string",
          "description": "Output only. The time at which the batch was created.",
          "readOnly": true,
          "format": "google-datetime"
        },
        "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."
          ],
          "type": "string",
          "description": "Output only. The state of the batch.",
          "enum": [
            "BATCH_STATE_UNSPECIFIED",
            "BATCH_STATE_PENDING",
            "BATCH_STATE_RUNNING",
            "BATCH_STATE_SUCCEEDED",
            "BATCH_STATE_FAILED",
            "BATCH_STATE_CANCELLED",
            "BATCH_STATE_EXPIRED"
          ],
          "readOnly": true
        },
        "output": {
          "description": "Output only. The output of the batch request.",
          "readOnly": true,
          "$ref": "EmbedContentBatchOutput"
        },
        "model": {
          "type": "string",
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
        },
        "endTime": {
          "type": "string",
          "description": "Output only. The time at which the batch processing completed.",
          "readOnly": true,
          "format": "google-datetime"
        }
      },
      "id": "EmbedContentBatch"
    },
    "TuningSnapshot": {
      "type": "object",
      "description": "Record for a single tuning step.",
      "properties": {
        "epoch": {
          "type": "integer",
          "description": "Output only. The epoch this step was part of.",
          "readOnly": true,
          "format": "int32"
        },
        "computeTime": {
          "description": "Output only. The timestamp when this metric was computed.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "step": {
          "readOnly": true,
          "format": "int32",
          "description": "Output only. The tuning step.",
          "type": "integer"
        },
        "meanLoss": {
          "type": "number",
          "description": "Output only. The mean loss of the training examples for this step.",
          "readOnly": true,
          "format": "float"
        }
      },
      "id": "TuningSnapshot"
    },
    "Candidate": {
      "type": "object",
      "description": "A response candidate generated from the model.",
      "properties": {
        "index": {
          "readOnly": true,
          "format": "int32",
          "type": "integer",
          "description": "Output only. Index of the candidate in the list of response candidates."
        },
        "tokenCount": {
          "type": "integer",
          "description": "Output only. Token count for this candidate.",
          "readOnly": true,
          "format": "int32"
        },
        "avgLogprobs": {
          "type": "number",
          "description": "Output only. Average log probability score of the candidate.",
          "readOnly": true,
          "format": "double"
        },
        "logprobsResult": {
          "$ref": "LogprobsResult",
          "readOnly": true,
          "description": "Output only. Log-likelihood scores for the response tokens and top tokens"
        },
        "content": {
          "description": "Output only. Generated content returned from the model.",
          "$ref": "Content",
          "readOnly": true
        },
        "groundingAttributions": {
          "type": "array",
          "description": "Output only. Attribution information for sources that contributed to a grounded answer. This field is populated for `GenerateAnswer` calls.",
          "readOnly": true,
          "items": {
            "$ref": "GroundingAttribution"
          }
        },
        "finishReason": {
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Natural stop point of the model or provided stop sequence.",
            "The maximum number of tokens as specified in the request was reached.",
            "The 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."
          ],
          "description": "Optional. Output only. The reason why the model stopped generating tokens. If empty, the model has not stopped generating tokens.",
          "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"
          ],
          "type": "string",
          "readOnly": true
        },
        "safetyRatings": {
          "items": {
            "$ref": "SafetyRating"
          },
          "description": "List of ratings for the safety of a response candidate. There is at most one rating per category.",
          "type": "array"
        },
        "finishMessage": {
          "type": "string",
          "description": "Optional. Output only. Details the reason why the model stopped generating tokens. This is populated only when `finish_reason` is set.",
          "readOnly": true
        },
        "urlContextMetadata": {
          "$ref": "UrlContextMetadata",
          "readOnly": true,
          "description": "Output only. Metadata related to url context retrieval tool."
        },
        "groundingMetadata": {
          "readOnly": true,
          "$ref": "GroundingMetadata",
          "description": "Output only. Grounding metadata for the candidate. This field is populated for `GenerateContent` calls."
        },
        "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.",
          "$ref": "CitationMetadata",
          "readOnly": true
        }
      },
      "id": "Candidate"
    },
    "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": {
          "type": "string",
          "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."
          ],
          "description": "Required. Controls the probability threshold at which harm is blocked.",
          "enum": [
            "HARM_BLOCK_THRESHOLD_UNSPECIFIED",
            "BLOCK_LOW_AND_ABOVE",
            "BLOCK_MEDIUM_AND_ABOVE",
            "BLOCK_ONLY_HIGH",
            "BLOCK_NONE",
            "OFF"
          ]
        },
        "category": {
          "description": "Required. The category for this setting.",
          "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"
          ],
          "type": "string",
          "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
          ]
        }
      },
      "type": "object",
      "id": "SafetySetting"
    },
    "SlidingWindow": {
      "id": "SlidingWindow",
      "type": "object",
      "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.",
      "properties": {
        "targetTokens": {
          "type": "string",
          "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.",
          "format": "int64"
        }
      }
    },
    "InlinedRequest": {
      "id": "InlinedRequest",
      "type": "object",
      "description": "The request to be processed in the batch.",
      "properties": {
        "request": {
          "description": "Required. The request to be processed in the batch.",
          "$ref": "GenerateContentRequest"
        },
        "metadata": {
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          },
          "type": "object",
          "description": "Optional. The metadata to be associated with the request."
        }
      }
    },
    "FunctionResponseBlob": {
      "description": "Raw media bytes for function response. Text should not be sent as raw bytes, use the 'FunctionResponse.response' field.",
      "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"
        }
      },
      "type": "object",
      "id": "FunctionResponseBlob"
    },
    "ToolConfig": {
      "id": "ToolConfig",
      "type": "object",
      "description": "The Tool configuration containing parameters for specifying `Tool` use in the request.",
      "properties": {
        "retrievalConfig": {
          "description": "Optional. Retrieval config.",
          "$ref": "RetrievalConfig"
        },
        "includeServerSideToolInvocations": {
          "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.",
          "type": "boolean"
        },
        "functionCallingConfig": {
          "description": "Optional. Function calling config.",
          "$ref": "FunctionCallingConfig"
        }
      }
    },
    "WhiteSpaceConfig": {
      "id": "WhiteSpaceConfig",
      "description": "Configuration for a white space chunking algorithm [white space delimited].",
      "properties": {
        "maxOverlapTokens": {
          "type": "integer",
          "description": "Maximum number of overlapping tokens between two adjacent chunks.",
          "format": "int32"
        },
        "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."
        }
      },
      "type": "object"
    },
    "CitationSource": {
      "id": "CitationSource",
      "type": "object",
      "description": "A citation to a source for a portion of a specific response.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Optional. URI that is attributed as a source for a portion of the text."
        },
        "startIndex": {
          "description": "Optional. Start of segment of the response that is attributed to this source. Index indicates the start of the segment, measured in bytes.",
          "type": "integer",
          "format": "int32"
        },
        "endIndex": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. End of the attributed segment, exclusive."
        },
        "license": {
          "description": "Optional. License for the GitHub project that is attributed as a source for segment. License info is required for code citations.",
          "type": "string"
        }
      }
    },
    "AudioResponseFormat": {
      "type": "object",
      "description": "Configuration for audio output format.",
      "properties": {
        "mimeType": {
          "description": "Optional. The MIME type of the audio output.",
          "enum": [
            "MIME_TYPE_UNSPECIFIED",
            "AUDIO_MP3",
            "AUDIO_OGG_OPUS",
            "AUDIO_L16",
            "AUDIO_WAV",
            "AUDIO_ALAW",
            "AUDIO_MULAW"
          ],
          "type": "string",
          "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": {
          "type": "string",
          "enumDescriptions": [
            "Default value. This value is unused.",
            "Audio data is returned inline in the response.",
            "Audio data is returned as a URI."
          ],
          "description": "Optional. The delivery mode for the audio output.",
          "enum": [
            "DELIVERY_UNSPECIFIED",
            "INLINE",
            "URI"
          ]
        },
        "sampleRate": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. Sample rate in Hz."
        },
        "bitRate": {
          "format": "int32",
          "type": "integer",
          "description": "Optional. Bit rate in bits per second (bps). Only applicable for compressed formats (MP3, Opus)."
        }
      },
      "id": "AudioResponseFormat"
    },
    "GenerateAnswerRequest": {
      "id": "GenerateAnswerRequest",
      "type": "object",
      "description": "Request to generate a grounded answer from the `Model`.",
      "properties": {
        "inlinePassages": {
          "description": "Passages provided inline with the request.",
          "$ref": "GroundingPassages"
        },
        "answerStyle": {
          "description": "Required. Style in which answers should be returned.",
          "enum": [
            "ANSWER_STYLE_UNSPECIFIED",
            "ABSTRACTIVE",
            "EXTRACTIVE",
            "VERBOSE"
          ],
          "type": "string",
          "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."
          ]
        },
        "safetySettings": {
          "items": {
            "$ref": "SafetySetting"
          },
          "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."
        },
        "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."
        },
        "semanticRetriever": {
          "description": "Content retrieved from resources created via the Semantic Retriever API.",
          "$ref": "SemanticRetrieverConfig"
        },
        "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"
          }
        }
      }
    },
    "TopCandidates": {
      "id": "TopCandidates",
      "type": "object",
      "description": "Candidates with top log probabilities at each decoding step.",
      "properties": {
        "candidates": {
          "description": "Sorted by log probability in descending order.",
          "type": "array",
          "items": {
            "$ref": "LogprobsResultCandidate"
          }
        }
      }
    },
    "Model": {
      "id": "Model",
      "description": "Information about a Generative Language Model.",
      "properties": {
        "thinking": {
          "type": "boolean",
          "description": "Whether the model supports thinking."
        },
        "name": {
          "type": "string",
          "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`"
        },
        "maxTemperature": {
          "description": "The maximum temperature this model can use.",
          "type": "number",
          "format": "float"
        },
        "version": {
          "description": "Required. The version number of the model. This represents the major version (`1.0` or `1.5`)",
          "type": "string"
        },
        "description": {
          "type": "string",
          "description": "A short description of the model."
        },
        "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"
        },
        "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"
        },
        "displayName": {
          "type": "string",
          "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."
        },
        "baseModelId": {
          "description": "Required. The name of the base model, pass this to the generation request. Examples: * `gemini-1.5-flash`",
          "type": "string"
        },
        "outputTokenLimit": {
          "format": "int32",
          "type": "integer",
          "description": "Maximum number of output tokens available for this model."
        },
        "topP": {
          "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.",
          "format": "float"
        },
        "inputTokenLimit": {
          "format": "int32",
          "description": "Maximum number of input tokens allowed for this model.",
          "type": "integer"
        },
        "temperature": {
          "type": "number",
          "description": "Controls the randomness of the output. Values can range over `[0.0,max_temperature]`, inclusive. A higher value will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.",
          "format": "float"
        }
      },
      "type": "object"
    },
    "UrlContext": {
      "id": "UrlContext",
      "type": "object",
      "description": "Tool to support URL context retrieval.",
      "properties": {}
    },
    "GenerateContentResponse": {
      "id": "GenerateContentResponse",
      "type": "object",
      "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`.",
      "properties": {
        "modelStatus": {
          "readOnly": true,
          "$ref": "ModelStatus",
          "description": "Output only. The current model status of this model."
        },
        "candidates": {
          "items": {
            "$ref": "Candidate"
          },
          "description": "Candidate responses from the model.",
          "type": "array"
        },
        "modelVersion": {
          "description": "Output only. The model version used to generate the response.",
          "type": "string",
          "readOnly": true
        },
        "promptFeedback": {
          "description": "Returns the prompt's feedback related to the content filters.",
          "$ref": "PromptFeedback"
        },
        "usageMetadata": {
          "readOnly": true,
          "$ref": "UsageMetadata",
          "description": "Output only. Metadata on the generation requests' token usage."
        },
        "responseId": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. response_id is used to identify each response."
        }
      }
    },
    "RetrievalConfig": {
      "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"
        }
      },
      "type": "object"
    },
    "TuningTask": {
      "id": "TuningTask",
      "description": "Tuning tasks that create tuned models.",
      "properties": {
        "snapshots": {
          "items": {
            "$ref": "TuningSnapshot"
          },
          "readOnly": true,
          "description": "Output only. Metrics collected during tuning.",
          "type": "array"
        },
        "startTime": {
          "description": "Output only. The timestamp when tuning this model started.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "hyperparameters": {
          "description": "Immutable. Hyperparameters controlling the tuning process. If not provided, default values will be used.",
          "$ref": "Hyperparameters"
        },
        "trainingData": {
          "description": "Required. Input only. Immutable. The model training data.",
          "$ref": "Dataset"
        },
        "completeTime": {
          "readOnly": true,
          "format": "google-datetime",
          "description": "Output only. The timestamp when tuning this model completed.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "LanguageAuto": {
      "id": "LanguageAuto",
      "type": "object",
      "description": "Indicates the language of the audio should be automatically detected.",
      "properties": {}
    },
    "LanguageHints": {
      "id": "LanguageHints",
      "type": "object",
      "description": "Provides hints to the model about possible languages present in the audio.",
      "properties": {
        "languageCodes": {
          "type": "array",
          "description": "Required. BCP-47 language codes.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "GroundingChunkStringList": {
      "id": "GroundingChunkStringList",
      "description": "A list of string values.",
      "properties": {
        "values": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "The string values of the list."
        }
      },
      "type": "object"
    },
    "RealtimeInputConfig": {
      "id": "RealtimeInputConfig",
      "type": "object",
      "description": "Configures the realtime input behavior in `BidiGenerateContent`.",
      "properties": {
        "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"
        },
        "turnCoverage": {
          "type": "string",
          "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."
          ],
          "description": "Optional. Defines which input is included in the user's turn.",
          "enum": [
            "TURN_COVERAGE_UNSPECIFIED",
            "TURN_INCLUDES_ONLY_ACTIVITY",
            "TURN_INCLUDES_ALL_INPUT",
            "TURN_INCLUDES_AUDIO_ACTIVITY_AND_ALL_VIDEO"
          ]
        },
        "activityHandling": {
          "type": "string",
          "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."
          ],
          "description": "Optional. Defines what effect activity has.",
          "enum": [
            "ACTIVITY_HANDLING_UNSPECIFIED",
            "START_OF_ACTIVITY_INTERRUPTS",
            "NO_INTERRUPTION"
          ]
        }
      }
    },
    "ExecutableCode": {
      "id": "ExecutableCode",
      "description": "Code generated by the model that is meant to be executed, and the result returned to the model. Only generated when using the `CodeExecution` tool, in which the code will be automatically executed, and a corresponding `CodeExecutionResult` will also be generated.",
      "properties": {
        "code": {
          "description": "Required. The code to be executed.",
          "type": "string"
        },
        "id": {
          "description": "Optional. Unique identifier of the `ExecutableCode` part. The server returns the `CodeExecutionResult` with the matching `id`.",
          "type": "string"
        },
        "language": {
          "type": "string",
          "enumDescriptions": [
            "Unspecified language. This value should not be used.",
            "Python \u003e= 3.10, with numpy and simpy available. Python is the default language."
          ],
          "description": "Required. Programming language of the `code`.",
          "enum": [
            "LANGUAGE_UNSPECIFIED",
            "PYTHON"
          ]
        }
      },
      "type": "object"
    },
    "CreateFileRequest": {
      "id": "CreateFileRequest",
      "type": "object",
      "description": "Request for `CreateFile`.",
      "properties": {
        "file": {
          "description": "Optional. Metadata for the file to create.",
          "$ref": "File"
        }
      }
    },
    "ListTunedModelsResponse": {
      "type": "object",
      "description": "Response from `ListTunedModels` containing a paginated list of Models.",
      "properties": {
        "tunedModels": {
          "items": {
            "$ref": "TunedModel"
          },
          "type": "array",
          "description": "The returned Models."
        },
        "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."
        }
      },
      "id": "ListTunedModelsResponse"
    },
    "FunctionCallingConfig": {
      "id": "FunctionCallingConfig",
      "type": "object",
      "description": "Configuration for specifying function calling behavior.",
      "properties": {
        "mode": {
          "description": "Optional. Specifies the mode in which function calling should execute. If unspecified, the default value will be set to AUTO.",
          "enum": [
            "MODE_UNSPECIFIED",
            "AUTO",
            "ANY",
            "NONE",
            "VALIDATED"
          ],
          "type": "string",
          "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\"."
          ]
        },
        "allowedFunctionNames": {
          "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.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "UrlMetadata": {
      "description": "Context of the a single url retrieval.",
      "properties": {
        "retrievedUrl": {
          "description": "Retrieved url by the tool.",
          "type": "string"
        },
        "urlRetrievalStatus": {
          "type": "string",
          "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.",
          "enum": [
            "URL_RETRIEVAL_STATUS_UNSPECIFIED",
            "URL_RETRIEVAL_STATUS_SUCCESS",
            "URL_RETRIEVAL_STATUS_ERROR",
            "URL_RETRIEVAL_STATUS_PAYWALL",
            "URL_RETRIEVAL_STATUS_UNSAFE"
          ]
        }
      },
      "type": "object",
      "id": "UrlMetadata"
    },
    "SpeakerVoiceConfig": {
      "id": "SpeakerVoiceConfig",
      "description": "The configuration for a single speaker in a multi speaker setup.",
      "properties": {
        "speaker": {
          "type": "string",
          "description": "Required. The name of the speaker to use. Should be the same as in the prompt."
        },
        "voiceConfig": {
          "description": "Required. The configuration for the voice to use.",
          "$ref": "VoiceConfig"
        }
      },
      "type": "object"
    },
    "Image": {
      "id": "Image",
      "description": "Chunk from image search.",
      "properties": {
        "sourceUri": {
          "description": "The web page URI for attribution.",
          "type": "string"
        },
        "domain": {
          "description": "The root domain of the web page that the image is from, e.g. \"example.com\".",
          "type": "string"
        },
        "imageUri": {
          "type": "string",
          "description": "The image asset URL."
        },
        "title": {
          "description": "The title of the web page that the image is from.",
          "type": "string"
        }
      },
      "type": "object"
    },
    "DiffChecksumsResponse": {
      "type": "object",
      "description": "Backend response for a Diff get checksums response. For details on the Scotty Diff protocol, visit http://go/scotty-diff-protocol.",
      "properties": {
        "objectVersion": {
          "description": "The object version of the object the checksums are being returned for.",
          "type": "string"
        },
        "chunkSizeBytes": {
          "format": "int64",
          "description": "The chunk size of checksums. Must be a multiple of 256KB.",
          "type": "string"
        },
        "objectLocation": {
          "description": "If set, calculate the checksums based on the contents and return them to the caller.",
          "$ref": "CompositeMedia"
        },
        "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"
        },
        "objectSizeBytes": {
          "description": "The total size of the server object.",
          "type": "string",
          "format": "int64"
        }
      },
      "id": "DiffChecksumsResponse"
    },
    "Embedding": {
      "type": "object",
      "description": "A list of floats representing the embedding.",
      "properties": {
        "value": {
          "description": "The embedding values.",
          "type": "array",
          "items": {
            "type": "number",
            "format": "float"
          }
        }
      },
      "id": "Embedding"
    },
    "GroundingChunkCustomMetadata": {
      "id": "GroundingChunkCustomMetadata",
      "description": "User provided metadata about the GroundingFact.",
      "properties": {
        "key": {
          "description": "The key of the metadata.",
          "type": "string"
        },
        "stringValue": {
          "type": "string",
          "description": "Optional. The string value of the metadata."
        },
        "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"
        },
        "stringListValue": {
          "description": "Optional. A list of string values for the metadata.",
          "$ref": "GroundingChunkStringList"
        }
      },
      "type": "object"
    },
    "EmbedContentBatchStats": {
      "description": "Stats about the batch.",
      "properties": {
        "requestCount": {
          "type": "string",
          "description": "Output only. The number of requests in the batch.",
          "readOnly": true,
          "format": "int64"
        },
        "pendingRequestCount": {
          "readOnly": true,
          "format": "int64",
          "description": "Output only. The number of requests that are still pending processing.",
          "type": "string"
        },
        "failedRequestCount": {
          "type": "string",
          "description": "Output only. The number of requests that failed to be processed.",
          "readOnly": true,
          "format": "int64"
        },
        "successfulRequestCount": {
          "description": "Output only. The number of requests that were successfully processed.",
          "type": "string",
          "readOnly": true,
          "format": "int64"
        }
      },
      "type": "object",
      "id": "EmbedContentBatchStats"
    },
    "Content": {
      "type": "object",
      "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.",
      "properties": {
        "role": {
          "type": "string",
          "description": "Optional. The producer of the content. Must be either 'user' or 'model'. Useful to set for multi-turn conversations, otherwise can be left blank or unset."
        },
        "parts": {
          "type": "array",
          "description": "Ordered `Parts` that constitute a single message. Parts may have different MIME types.",
          "items": {
            "$ref": "Part"
          }
        }
      },
      "id": "Content"
    },
    "GroundingMetadata": {
      "id": "GroundingMetadata",
      "type": "object",
      "description": "Metadata returned to client when grounding is enabled.",
      "properties": {
        "groundingChunks": {
          "type": "array",
          "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"
          }
        },
        "groundingSupports": {
          "items": {
            "$ref": "GoogleAiGenerativelanguageV1betaGroundingSupport"
          },
          "description": "List of grounding support.",
          "type": "array"
        },
        "searchEntryPoint": {
          "description": "Optional. Google search entry for the following-up web searches.",
          "$ref": "SearchEntryPoint"
        },
        "retrievalMetadata": {
          "description": "Metadata related to retrieval in the grounding flow.",
          "$ref": "RetrievalMetadata"
        },
        "googleMapsWidgetContextToken": {
          "type": "string",
          "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."
        },
        "webSearchQueries": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Web search queries for the following-up web search."
        },
        "imageSearchQueries": {
          "description": "Image search queries used for grounding.",
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "FileData": {
      "description": "URI based data.",
      "properties": {
        "fileUri": {
          "type": "string",
          "description": "Required. URI."
        },
        "mimeType": {
          "type": "string",
          "description": "Optional. The IANA standard MIME type of the source data."
        }
      },
      "type": "object",
      "id": "FileData"
    },
    "DownloadMediaResponse": {
      "id": "DownloadMediaResponse",
      "type": "object",
      "description": "Response for DownloadMedia.",
      "properties": {
        "blob": {
          "readOnly": true,
          "$ref": "GdataMedia",
          "description": "Output only. The blob data."
        }
      }
    },
    "Condition": {
      "type": "object",
      "description": "Filter condition applicable to a single key.",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "The string value to filter the metadata on."
        },
        "numericValue": {
          "description": "The numeric value to filter the metadata on.",
          "type": "number",
          "format": "float"
        },
        "operation": {
          "type": "string",
          "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`."
          ],
          "description": "Required. Operator applied to the given key-value pair to trigger the condition.",
          "enum": [
            "OPERATOR_UNSPECIFIED",
            "LESS",
            "LESS_EQUAL",
            "EQUAL",
            "GREATER_EQUAL",
            "GREATER",
            "NOT_EQUAL",
            "INCLUDES",
            "EXCLUDES"
          ]
        }
      },
      "id": "Condition"
    },
    "ResponseFormatConfig": {
      "description": "Configuration for the response output format. This is a flat object where each optional sub-field configures a specific output modality.",
      "properties": {
        "image": {
          "description": "Optional. Image output format configuration.",
          "$ref": "ImageResponseFormat"
        },
        "text": {
          "description": "Optional. Text output format configuration.",
          "$ref": "TextResponseFormat"
        },
        "audio": {
          "description": "Optional. Audio output format configuration.",
          "$ref": "AudioResponseFormat"
        }
      },
      "type": "object",
      "id": "ResponseFormatConfig"
    },
    "GoogleSearch": {
      "id": "GoogleSearch",
      "description": "GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
      "properties": {
        "timeRangeFilter": {
          "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).",
          "$ref": "Interval"
        },
        "searchTypes": {
          "description": "Optional. The set of search types to enable. If not set, web search is enabled by default.",
          "$ref": "SearchTypes"
        }
      },
      "type": "object"
    },
    "InlinedRequests": {
      "description": "The requests to be processed in the batch if provided as part of the batch creation request.",
      "properties": {
        "requests": {
          "description": "Required. The requests to be processed in the batch.",
          "type": "array",
          "items": {
            "$ref": "InlinedRequest"
          }
        }
      },
      "type": "object",
      "id": "InlinedRequests"
    },
    "GenerateContentBatch": {
      "id": "GenerateContentBatch",
      "type": "object",
      "description": "A resource representing a batch of `GenerateContent` requests.",
      "properties": {
        "displayName": {
          "description": "Required. The user-defined name of this batch.",
          "type": "string"
        },
        "inputConfig": {
          "description": "Required. Input configuration of the instances on which batch processing are performed.",
          "$ref": "InputConfig"
        },
        "updateTime": {
          "description": "Output only. The time at which the batch was last updated.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "batchStats": {
          "$ref": "BatchStats",
          "readOnly": true,
          "description": "Output only. Stats about the batch."
        },
        "priority": {
          "type": "string",
          "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.",
          "format": "int64"
        },
        "output": {
          "description": "Output only. The output of the batch request.",
          "readOnly": true,
          "$ref": "GenerateContentBatchOutput"
        },
        "model": {
          "type": "string",
          "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`."
        },
        "endTime": {
          "readOnly": true,
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. The time at which the batch processing completed."
        },
        "createTime": {
          "description": "Output only. The time at which the batch was created.",
          "type": "string",
          "readOnly": true,
          "format": "google-datetime"
        },
        "name": {
          "type": "string",
          "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
          "readOnly": true
        },
        "state": {
          "readOnly": true,
          "description": "Output only. The state of the batch.",
          "enum": [
            "BATCH_STATE_UNSPECIFIED",
            "BATCH_STATE_PENDING",
            "BATCH_STATE_RUNNING",
            "BATCH_STATE_SUCCEEDED",
            "BATCH_STATE_FAILED",
            "BATCH_STATE_CANCELLED",
            "BATCH_STATE_EXPIRED"
          ],
          "type": "string",
          "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."
          ]
        }
      }
    },
    "ListGeneratedFilesResponse": {
      "type": "object",
      "description": "Response for `ListGeneratedFiles`.",
      "properties": {
        "generatedFiles": {
          "items": {
            "$ref": "GeneratedFile"
          },
          "type": "array",
          "description": "The list of `GeneratedFile`s."
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token that can be sent as a `page_token` into a subsequent `ListGeneratedFiles` call."
        }
      },
      "id": "ListGeneratedFilesResponse"
    },
    "CountMessageTokensResponse": {
      "id": "CountMessageTokensResponse",
      "description": "A response from `CountMessageTokens`. It returns the model's `token_count` for the `prompt`.",
      "properties": {
        "tokenCount": {
          "format": "int32",
          "type": "integer",
          "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative."
        }
      },
      "type": "object"
    },
    "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.",
      "properties": {
        "fromFusionId": {
          "type": "string",
          "description": "The content type of the file detected by Fusion ID. go/fusionid"
        },
        "fromHeader": {
          "type": "string",
          "description": "The content type of the file as specified in the request headers, multipart headers, or RUPIO start request."
        },
        "fromBytes": {
          "type": "string",
          "description": "The content type of the file derived by looking at specific bytes (i.e. \"magic bytes\") of the actual file."
        },
        "fusionIdDetectionMetadata": {
          "format": "byte",
          "description": "Metadata information from Fusion ID detection. Serialized FusionIdDetectionMetadata proto. Only set if from_fusion_id is set.",
          "type": "string"
        },
        "bestGuess": {
          "type": "string",
          "description": "Scotty's best guess of what the content type of the file is."
        },
        "fromFileName": {
          "type": "string",
          "description": "The content type of the file derived from the file extension of the original file name used by the client."
        },
        "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)."
        }
      },
      "type": "object",
      "id": "ContentTypeInfo"
    },
    "CountTextTokensResponse": {
      "type": "object",
      "description": "A response from `CountTextTokens`. It returns the model's `token_count` for the `prompt`.",
      "properties": {
        "tokenCount": {
          "type": "integer",
          "description": "The number of tokens that the `model` tokenizes the `prompt` into. Always non-negative.",
          "format": "int32"
        }
      },
      "id": "CountTextTokensResponse"
    },
    "MultiSpeakerVoiceConfig": {
      "type": "object",
      "description": "The configuration for the multi-speaker setup.",
      "properties": {
        "speakerVoiceConfigs": {
          "items": {
            "$ref": "SpeakerVoiceConfig"
          },
          "description": "Required. All the enabled speaker voices.",
          "type": "array"
        }
      },
      "id": "MultiSpeakerVoiceConfig"
    },
    "FunctionCall": {
      "id": "FunctionCall",
      "type": "object",
      "description": "A predicted `FunctionCall` returned from the model that contains a string representing the `FunctionDeclaration.name` with the arguments and their values.",
      "properties": {
        "args": {
          "type": "object",
          "description": "Optional. The function parameters and values in JSON object format.",
          "additionalProperties": {
            "description": "Properties of the object.",
            "type": "any"
          }
        },
        "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"
        }
      }
    },
    "EmbedContentBatchOutput": {
      "description": "The output of a batch request. This is returned in the `AsyncBatchEmbedContentResponse` or the `EmbedContentBatch.output` field.",
      "properties": {
        "responsesFile": {
          "readOnly": true,
          "type": "string",
          "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."
        },
        "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": "InlinedEmbedContentResponses"
        }
      },
      "type": "object",
      "id": "EmbedContentBatchOutput"
    },
    "StringList": {
      "id": "StringList",
      "type": "object",
      "description": "User provided string values assigned to a single metadata key.",
      "properties": {
        "values": {
          "type": "array",
          "description": "The string values of the metadata to store.",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "PredictResponse": {
      "description": "Response message for [PredictionService.Predict].",
      "properties": {
        "predictions": {
          "type": "array",
          "description": "The outputs of the prediction call.",
          "items": {
            "type": "any"
          }
        }
      },
      "type": "object",
      "id": "PredictResponse"
    },
    "InputEmbedContentConfig": {
      "id": "InputEmbedContentConfig",
      "type": "object",
      "description": "Configures the input to the batch request.",
      "properties": {
        "fileName": {
          "description": "The name of the `File` containing the input requests.",
          "type": "string"
        },
        "requests": {
          "description": "The requests to be processed in the batch.",
          "$ref": "InlinedEmbedContentRequests"
        }
      }
    },
    "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": {}
    },
    "GoogleAiGenerativelanguageV1betaGroundingSupport": {
      "id": "GoogleAiGenerativelanguageV1betaGroundingSupport",
      "type": "object",
      "description": "Grounding support.",
      "properties": {
        "confidenceScores": {
          "items": {
            "type": "number",
            "format": "float"
          },
          "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."
        },
        "segment": {
          "description": "Segment of the content this support belongs to.",
          "$ref": "GoogleAiGenerativelanguageV1betaSegment"
        },
        "renderedParts": {
          "type": "array",
          "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,
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "groundingChunkIndices": {
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "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).",
          "type": "array"
        }
      }
    },
    "BatchEmbedContentsResponse": {
      "id": "BatchEmbedContentsResponse",
      "type": "object",
      "description": "The response to a `BatchEmbedContentsRequest`.",
      "properties": {
        "embeddings": {
          "type": "array",
          "description": "Output only. The embeddings for each request, in the same order as provided in the batch request.",
          "readOnly": true,
          "items": {
            "$ref": "ContentEmbedding"
          }
        },
        "usageMetadata": {
          "$ref": "EmbeddingUsageMetadata",
          "readOnly": true,
          "description": "Output only. The usage metadata for the request."
        }
      }
    },
    "SemanticRetrieverChunk": {
      "description": "Identifier for a `Chunk` retrieved via Semantic Retriever specified in the `GenerateAnswerRequest` using `SemanticRetrieverConfig`.",
      "properties": {
        "source": {
          "readOnly": true,
          "type": "string",
          "description": "Output only. Name of the source matching the request's `SemanticRetrieverConfig.source`. Example: `corpora/123` or `corpora/123/documents/abc`"
        },
        "chunk": {
          "readOnly": true,
          "description": "Output only. Name of the `Chunk` containing the attributed text. Example: `corpora/123/documents/abc/chunks/xyz`",
          "type": "string"
        }
      },
      "type": "object",
      "id": "SemanticRetrieverChunk"
    },
    "Tool": {
      "id": "Tool",
      "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: 16",
      "properties": {
        "codeExecution": {
          "description": "Optional. Enables the model to execute code as part of generation.",
          "$ref": "CodeExecution"
        },
        "urlContext": {
          "description": "Optional. Tool to support URL context retrieval.",
          "$ref": "UrlContext"
        },
        "fileSearch": {
          "description": "Optional. FileSearch tool type. Tool to retrieve knowledge from Semantic Retrieval corpora.",
          "$ref": "FileSearch"
        },
        "functionDeclarations": {
          "description": "Optional. A list of `FunctionDeclarations` available to the model that can be used for function calling. The model or system does not execute the function. Instead the defined function may be returned as a FunctionCall with arguments to the client side for execution. The model may decide to call a subset of these functions by populating FunctionCall in the response. The next conversation turn may contain a FunctionResponse with the Content.role \"function\" generation context for the next model turn.",
          "type": "array",
          "items": {
            "$ref": "FunctionDeclaration"
          }
        },
        "googleMaps": {
          "description": "Optional. Tool that allows grounding the model's response with geospatial context related to the user's query.",
          "$ref": "GoogleMaps"
        },
        "mcpServers": {
          "items": {
            "$ref": "McpServer"
          },
          "description": "Optional. MCP Servers to connect to.",
          "type": "array"
        },
        "googleSearch": {
          "description": "Optional. GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.",
          "$ref": "GoogleSearch"
        },
        "computerUse": {
          "description": "Optional. Tool to support the model interacting directly with the computer. If enabled, it automatically populates computer-use specific Function Declarations.",
          "$ref": "ComputerUse"
        },
        "googleSearchRetrieval": {
          "description": "Optional. Retrieval tool that is powered by Google search.",
          "$ref": "GoogleSearchRetrieval"
        }
      },
      "type": "object"
    },
    "Hyperparameters": {
      "type": "object",
      "description": "Hyperparameters controlling the tuning process. Read more at https://ai.google.dev/docs/model_tuning_guidance",
      "properties": {
        "learningRate": {
          "type": "number",
          "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"
        },
        "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.",
          "type": "number",
          "format": "float"
        },
        "epochCount": {
          "format": "int32",
          "type": "integer",
          "description": "Immutable. The number of training epochs. An epoch is one pass through the training data. If not set, a default of 5 will be used."
        },
        "batchSize": {
          "type": "integer",
          "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.",
          "format": "int32"
        }
      },
      "id": "Hyperparameters"
    },
    "PredictLongRunningRequest": {
      "type": "object",
      "description": "Request message for [PredictionService.PredictLongRunning].",
      "properties": {
        "instances": {
          "type": "array",
          "description": "Required. The instances that are the input to the prediction call.",
          "items": {
            "type": "any"
          }
        },
        "parameters": {
          "type": "any",
          "description": "Optional. The parameters that govern the prediction call."
        }
      },
      "id": "PredictLongRunningRequest"
    },
    "ContentEmbedding": {
      "type": "object",
      "description": "A list of floats representing an embedding.",
      "properties": {
        "shape": {
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "description": "This field stores the soft tokens tensor frame shape (e.g. [1, 1, 256, 2048]).",
          "type": "array"
        },
        "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."
        }
      },
      "id": "ContentEmbedding"
    },
    "InlinedEmbedContentResponse": {
      "description": "The response to a single request in the batch.",
      "properties": {
        "response": {
          "$ref": "EmbedContentResponse",
          "readOnly": true,
          "description": "Output only. The response to the request."
        },
        "error": {
          "description": "Output only. The error encountered while processing the request.",
          "readOnly": true,
          "$ref": "Status"
        },
        "metadata": {
          "readOnly": true,
          "additionalProperties": {
            "type": "any",
            "description": "Properties of the object."
          },
          "type": "object",
          "description": "Output only. The metadata associated with the request."
        }
      },
      "type": "object",
      "id": "InlinedEmbedContentResponse"
    },
    "CompositeMedia": {
      "id": "CompositeMedia",
      "type": "object",
      "description": "A sequence of media data references representing composite data. Introduced to support Bigstore composite objects. For details, visit http://go/bigstore-composites.",
      "properties": {
        "referenceType": {
          "description": "Describes what the field reference contains.",
          "enum": [
            "PATH",
            "BLOB_REF",
            "INLINE",
            "BIGSTORE_REF",
            "COSMO_BINARY_REFERENCE"
          ],
          "type": "string",
          "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."
          ]
        },
        "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.",
          "type": "string",
          "format": "byte"
        },
        "blobRef": {
          "format": "byte",
          "deprecated": true,
          "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."
        },
        "md5Hash": {
          "format": "byte",
          "type": "string",
          "description": "MD5 hash for the payload."
        },
        "objectId": {
          "description": "Reference to a TI Blob, set if reference_type is BIGSTORE_REF.",
          "$ref": "ObjectId"
        },
        "length": {
          "type": "string",
          "description": "Size of the data, in bytes",
          "format": "int64"
        },
        "inline": {
          "description": "Media data, set if reference_type is INLINE",
          "type": "string",
          "format": "byte"
        },
        "crc32cHash": {
          "format": "uint32",
          "type": "integer",
          "description": "crc32.c hash for the payload."
        },
        "blobstore2Info": {
          "description": "Blobstore v2 info, set if reference_type is BLOBSTORE_REF and it refers to a v2 blob.",
          "$ref": "Blobstore2Info"
        },
        "path": {
          "type": "string",
          "description": "Path to the data, set if reference_type is PATH"
        },
        "sha1Hash": {
          "format": "byte",
          "description": "SHA-1 hash for the payload.",
          "type": "string"
        }
      }
    },
    "TunedModelSource": {
      "description": "Tuned model as a source for training a new model.",
      "properties": {
        "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`"
        },
        "baseModel": {
          "readOnly": true,
          "description": "Output only. The name of the base `Model` this `TunedModel` was tuned from. Example: `models/gemini-1.5-flash-001`",
          "type": "string"
        }
      },
      "type": "object",
      "id": "TunedModelSource"
    },
    "DownloadFileResponse": {
      "description": "Response for `DownloadFile`.",
      "properties": {},
      "type": "object",
      "id": "DownloadFileResponse"
    },
    "TransferOwnershipResponse": {
      "id": "TransferOwnershipResponse",
      "type": "object",
      "description": "Response from `TransferOwnership`.",
      "properties": {}
    },
    "CitationMetadata": {
      "id": "CitationMetadata",
      "description": "A collection of source attributions for a piece of content.",
      "properties": {
        "citationSources": {
          "items": {
            "$ref": "CitationSource"
          },
          "type": "array",
          "description": "Citations to sources for a specific response."
        }
      },
      "type": "object"
    },
    "ImportFileRequest": {
      "id": "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": {
          "type": "string",
          "description": "Required. The name of the `File` to import. Example: `files/abc-123`"
        }
      },
      "type": "object"
    }
  },
  "rootUrl": "https://generativelanguage.googleapis.com/",
  "basePath": "",
  "version": "v1beta",
  "revision": "20260717",
  "id": "generativelanguage:v1beta",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "ownerDomain": "google.com",
  "kind": "discovery#restDescription",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/devstorage.read_only": {
          "description": "View your data in Google Cloud Storage"
        }
      }
    }
  },
  "batchPath": "batch",
  "documentationLink": "https://developers.generativeai.google/api",
  "servicePath": "",
  "resources": {
    "files": {
      "methods": {
        "register": {
          "id": "generativelanguage.files.register",
          "parameters": {},
          "path": "v1beta/files:register",
          "flatPath": "v1beta/files:register",
          "request": {
            "$ref": "RegisterFilesRequest"
          },
          "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.",
          "response": {
            "$ref": "RegisterFilesResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "parameterOrder": [],
          "httpMethod": "POST"
        },
        "list": {
          "flatPath": "v1beta/files",
          "description": "Lists the metadata for `File`s owned by the requesting project.",
          "id": "generativelanguage.files.list",
          "parameters": {
            "pageToken": {
              "type": "string",
              "description": "Optional. A page token from a previous `ListFiles` call.",
              "location": "query"
            },
            "pageSize": {
              "type": "integer",
              "description": "Optional. Maximum number of `File`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 100.",
              "location": "query",
              "format": "int32"
            }
          },
          "path": "v1beta/files",
          "httpMethod": "GET",
          "response": {
            "$ref": "ListFilesResponse"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "parameterOrder": []
        },
        "delete": {
          "httpMethod": "DELETE",
          "parameterOrder": [
            "name"
          ],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "response": {
            "$ref": "Empty"
          },
          "flatPath": "v1beta/files/{filesId}",
          "description": "Deletes the `File`.",
          "path": "v1beta/{+name}",
          "parameters": {
            "name": {
              "pattern": "^files/[^/]+$",
              "location": "path",
              "type": "string",
              "description": "Required. The name of the `File` to delete. Example: `files/abc-123`",
              "required": true
            }
          },
          "id": "generativelanguage.files.delete"
        },
        "get": {
          "id": "generativelanguage.files.get",
          "parameters": {
            "name": {
              "required": true,
              "description": "Required. The name of the `File` to get. Example: `files/abc-123`",
              "type": "string",
              "location": "path",
              "pattern": "^files/[^/]+$"
            }
          },
          "path": "v1beta/{+name}",
          "flatPath": "v1beta/files/{filesId}",
          "description": "Gets the metadata for the given `File`.",
          "response": {
            "$ref": "File"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "GET"
        }
      }
    },
    "media": {
      "methods": {
        "uploadToFileSearchStore": {
          "httpMethod": "POST",
          "response": {
            "$ref": "CustomLongRunningOperation"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "parameterOrder": [
            "fileSearchStoreName"
          ],
          "mediaUpload": {
            "accept": [
              "*/*"
            ],
            "maxSize": "104857600",
            "protocols": {
              "resumable": {
                "path": "/resumable/upload/v1beta/{+fileSearchStoreName}:uploadToFileSearchStore",
                "multipart": true
              },
              "simple": {
                "path": "/upload/v1beta/{+fileSearchStoreName}:uploadToFileSearchStore",
                "multipart": true
              }
            }
          },
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}:uploadToFileSearchStore",
          "request": {
            "$ref": "UploadToFileSearchStoreRequest"
          },
          "description": "Uploads data to a FileSearchStore, preprocesses and chunks before storing it in a FileSearchStore Document.",
          "id": "generativelanguage.media.uploadToFileSearchStore",
          "supportsMediaUpload": true,
          "parameters": {
            "fileSearchStoreName": {
              "required": true,
              "type": "string",
              "description": "Required. Immutable. The name of the `FileSearchStore` to upload the file into. Example: `fileSearchStores/my-file-search-store-123`",
              "location": "path",
              "pattern": "^fileSearchStores/[^/]+$"
            }
          },
          "path": "v1beta/{+fileSearchStoreName}:uploadToFileSearchStore"
        },
        "upload": {
          "path": "v1beta/files",
          "parameters": {},
          "id": "generativelanguage.media.upload",
          "supportsMediaUpload": true,
          "flatPath": "v1beta/files",
          "request": {
            "$ref": "CreateFileRequest"
          },
          "description": "Creates a `File`.",
          "parameterOrder": [],
          "mediaUpload": {
            "accept": [
              "*/*"
            ],
            "maxSize": "2147483648",
            "protocols": {
              "resumable": {
                "multipart": true,
                "path": "/resumable/upload/v1beta/files"
              },
              "simple": {
                "path": "/upload/v1beta/files",
                "multipart": true
              }
            }
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "response": {
            "$ref": "CreateFileResponse"
          },
          "httpMethod": "POST"
        }
      }
    },
    "models": {
      "methods": {
        "batchEmbedContents": {
          "httpMethod": "POST",
          "response": {
            "$ref": "BatchEmbedContentsResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "flatPath": "v1beta/models/{modelsId}:batchEmbedContents",
          "request": {
            "$ref": "BatchEmbedContentsRequest"
          },
          "description": "Generates multiple embedding vectors from the input `Content` which consists of a batch of strings represented as `EmbedContentRequest` objects.",
          "id": "generativelanguage.models.batchEmbedContents",
          "parameters": {
            "model": {
              "type": "string",
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "required": true,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "path": "v1beta/{+model}:batchEmbedContents"
        },
        "countTextTokens": {
          "parameters": {
            "model": {
              "required": true,
              "type": "string",
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "location": "path",
              "pattern": "^models/[^/]+$"
            }
          },
          "id": "generativelanguage.models.countTextTokens",
          "path": "v1beta/{+model}:countTextTokens",
          "flatPath": "v1beta/models/{modelsId}:countTextTokens",
          "request": {
            "$ref": "CountTextTokensRequest"
          },
          "description": "Runs a model's tokenizer on a text and returns the token count.",
          "response": {
            "$ref": "CountTextTokensResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST"
        },
        "embedText": {
          "httpMethod": "POST",
          "response": {
            "$ref": "EmbedTextResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "flatPath": "v1beta/models/{modelsId}:embedText",
          "request": {
            "$ref": "EmbedTextRequest"
          },
          "description": "Generates an embedding from the model given an input message.",
          "id": "generativelanguage.models.embedText",
          "parameters": {
            "model": {
              "required": true,
              "type": "string",
              "description": "Required. The model name to use with the format model=models/{model}.",
              "location": "path",
              "pattern": "^models/[^/]+$"
            }
          },
          "path": "v1beta/{+model}:embedText"
        },
        "generateAnswer": {
          "flatPath": "v1beta/models/{modelsId}:generateAnswer",
          "request": {
            "$ref": "GenerateAnswerRequest"
          },
          "description": "Generates a grounded answer from the model given an input `GenerateAnswerRequest`.",
          "path": "v1beta/{+model}:generateAnswer",
          "id": "generativelanguage.models.generateAnswer",
          "parameters": {
            "model": {
              "description": "Required. The name of the `Model` to use for generating the grounded response. Format: `model=models/{model}`.",
              "type": "string",
              "required": true,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "httpMethod": "POST",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "GenerateAnswerResponse"
          }
        },
        "countTokens": {
          "flatPath": "v1beta/models/{modelsId}:countTokens",
          "request": {
            "$ref": "CountTokensRequest"
          },
          "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.",
          "parameters": {
            "model": {
              "required": true,
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`",
              "type": "string",
              "location": "path",
              "pattern": "^models/[^/]+$"
            }
          },
          "id": "generativelanguage.models.countTokens",
          "path": "v1beta/{+model}:countTokens",
          "httpMethod": "POST",
          "response": {
            "$ref": "CountTokensResponse"
          },
          "parameterOrder": [
            "model"
          ]
        },
        "list": {
          "httpMethod": "GET",
          "flatPath": "v1beta/models",
          "description": "Lists the [`Model`s](https://ai.google.dev/gemini-api/docs/models/gemini) available through the Gemini API.",
          "path": "v1beta/models",
          "parameterOrder": [],
          "id": "generativelanguage.models.list",
          "response": {
            "$ref": "ListModelsResponse"
          },
          "parameters": {
            "pageToken": {
              "type": "string",
              "description": "A page token, received from a previous `ListModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.",
              "location": "query"
            },
            "pageSize": {
              "description": "The maximum number of `Models` to return (per page). 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.",
              "type": "integer",
              "location": "query",
              "format": "int32"
            }
          }
        },
        "generateContent": {
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "parameters": {
            "model": {
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string",
              "location": "path",
              "pattern": "^models/[^/]+$"
            }
          },
          "id": "generativelanguage.models.generateContent",
          "path": "v1beta/{+model}:generateContent",
          "flatPath": "v1beta/models/{modelsId}:generateContent",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "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."
        },
        "batchEmbedText": {
          "path": "v1beta/{+model}:batchEmbedText",
          "parameters": {
            "model": {
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the embedding. Examples: models/embedding-gecko-001",
              "required": true,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "id": "generativelanguage.models.batchEmbedText",
          "flatPath": "v1beta/models/{modelsId}:batchEmbedText",
          "request": {
            "$ref": "BatchEmbedTextRequest"
          },
          "description": "Generates multiple embeddings from the model given input text in a synchronous call.",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "BatchEmbedTextResponse"
          },
          "httpMethod": "POST"
        },
        "asyncBatchEmbedContent": {
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "Operation"
          },
          "httpMethod": "POST",
          "path": "v1beta/{+model}:asyncBatchEmbedContent",
          "parameters": {
            "model": {
              "location": "path",
              "pattern": "^models/[^/]+$",
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string"
            }
          },
          "id": "generativelanguage.models.asyncBatchEmbedContent",
          "flatPath": "v1beta/models/{modelsId}:asyncBatchEmbedContent",
          "request": {
            "$ref": "AsyncBatchEmbedContentRequest"
          },
          "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."
        },
        "batchGenerateContent": {
          "path": "v1beta/{+model}:batchGenerateContent",
          "parameters": {
            "model": {
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string",
              "location": "path",
              "pattern": "^models/[^/]+$"
            }
          },
          "id": "generativelanguage.models.batchGenerateContent",
          "flatPath": "v1beta/models/{modelsId}:batchGenerateContent",
          "request": {
            "$ref": "BatchGenerateContentRequest"
          },
          "description": "Enqueues a batch of `GenerateContent` requests for batch processing.",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "Operation"
          },
          "httpMethod": "POST"
        },
        "get": {
          "flatPath": "v1beta/models/{modelsId}",
          "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.",
          "httpMethod": "GET",
          "parameters": {
            "name": {
              "type": "string",
              "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,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "id": "generativelanguage.models.get",
          "response": {
            "$ref": "Model"
          },
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ]
        },
        "generateMessage": {
          "response": {
            "$ref": "GenerateMessageResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "id": "generativelanguage.models.generateMessage",
          "parameters": {
            "model": {
              "description": "Required. The name of the model to use. Format: `name=models/{model}`.",
              "type": "string",
              "required": true,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "path": "v1beta/{+model}:generateMessage",
          "flatPath": "v1beta/models/{modelsId}:generateMessage",
          "request": {
            "$ref": "GenerateMessageRequest"
          },
          "description": "Generates a response from the model given an input `MessagePrompt`."
        },
        "generateText": {
          "flatPath": "v1beta/models/{modelsId}:generateText",
          "request": {
            "$ref": "GenerateTextRequest"
          },
          "description": "Generates a response from the model given an input message.",
          "parameters": {
            "model": {
              "pattern": "^models/[^/]+$",
              "location": "path",
              "type": "string",
              "description": "Required. The name of the `Model` or `TunedModel` to use for generating the completion. Examples: models/text-bison-001 tunedModels/sentence-translator-u3b7m",
              "required": true
            }
          },
          "id": "generativelanguage.models.generateText",
          "path": "v1beta/{+model}:generateText",
          "httpMethod": "POST",
          "response": {
            "$ref": "GenerateTextResponse"
          },
          "parameterOrder": [
            "model"
          ]
        },
        "predict": {
          "response": {
            "$ref": "PredictResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "parameters": {
            "model": {
              "description": "Required. The name of the model for prediction. Format: `name=models/{model}`.",
              "type": "string",
              "required": true,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "id": "generativelanguage.models.predict",
          "path": "v1beta/{+model}:predict",
          "flatPath": "v1beta/models/{modelsId}:predict",
          "request": {
            "$ref": "PredictRequest"
          },
          "description": "Performs a prediction request."
        },
        "embedContent": {
          "flatPath": "v1beta/models/{modelsId}:embedContent",
          "request": {
            "$ref": "EmbedContentRequest"
          },
          "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).",
          "path": "v1beta/{+model}:embedContent",
          "parameters": {
            "model": {
              "location": "path",
              "pattern": "^models/[^/]+$",
              "required": true,
              "type": "string",
              "description": "Required. The model's resource name. This serves as an ID for the Model to use. This name should match a model name returned by the `ListModels` method. Format: `models/{model}`"
            }
          },
          "id": "generativelanguage.models.embedContent",
          "httpMethod": "POST",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "EmbedContentResponse"
          }
        },
        "countMessageTokens": {
          "id": "generativelanguage.models.countMessageTokens",
          "parameters": {
            "model": {
              "pattern": "^models/[^/]+$",
              "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",
              "required": true
            }
          },
          "path": "v1beta/{+model}:countMessageTokens",
          "flatPath": "v1beta/models/{modelsId}:countMessageTokens",
          "request": {
            "$ref": "CountMessageTokensRequest"
          },
          "description": "Runs a model's tokenizer on a string and returns the token count.",
          "response": {
            "$ref": "CountMessageTokensResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST"
        },
        "predictLongRunning": {
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "Operation"
          },
          "httpMethod": "POST",
          "path": "v1beta/{+model}:predictLongRunning",
          "id": "generativelanguage.models.predictLongRunning",
          "parameters": {
            "model": {
              "type": "string",
              "description": "Required. The name of the model for prediction. Format: `name=models/{model}`.",
              "required": true,
              "pattern": "^models/[^/]+$",
              "location": "path"
            }
          },
          "flatPath": "v1beta/models/{modelsId}:predictLongRunning",
          "request": {
            "$ref": "PredictLongRunningRequest"
          },
          "description": "Same as Predict but returns an LRO."
        },
        "streamGenerateContent": {
          "id": "generativelanguage.models.streamGenerateContent",
          "parameters": {
            "model": {
              "required": true,
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "location": "path",
              "pattern": "^models/[^/]+$"
            }
          },
          "path": "v1beta/{+model}:streamGenerateContent",
          "flatPath": "v1beta/models/{modelsId}: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`.",
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST"
        }
      },
      "resources": {
        "operations": {
          "methods": {
            "get": {
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "id": "generativelanguage.models.operations.get",
              "response": {
                "$ref": "Operation"
              },
              "parameters": {
                "name": {
                  "location": "path",
                  "pattern": "^models/[^/]+/operations/[^/]+$",
                  "required": true,
                  "type": "string",
                  "description": "The name of the operation resource."
                }
              },
              "httpMethod": "GET",
              "flatPath": "v1beta/models/{modelsId}/operations/{operationsId}",
              "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."
            },
            "list": {
              "id": "generativelanguage.models.operations.list",
              "response": {
                "$ref": "ListOperationsResponse"
              },
              "parameters": {
                "pageSize": {
                  "description": "The standard list page size.",
                  "type": "integer",
                  "location": "query",
                  "format": "int32"
                },
                "name": {
                  "location": "path",
                  "pattern": "^models/[^/]+$",
                  "required": true,
                  "type": "string",
                  "description": "The name of the operation's parent resource."
                },
                "filter": {
                  "description": "The standard list filter.",
                  "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."
                },
                "pageToken": {
                  "location": "query",
                  "type": "string",
                  "description": "The standard list page token."
                }
              },
              "path": "v1beta/{+name}/operations",
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "GET",
              "flatPath": "v1beta/models/{modelsId}/operations",
              "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`."
            }
          }
        }
      }
    },
    "fileSearchStores": {
      "methods": {
        "get": {
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}",
          "description": "Gets information about a specific `FileSearchStore`.",
          "httpMethod": "GET",
          "parameters": {
            "name": {
              "type": "string",
              "description": "Required. The name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`",
              "required": true,
              "pattern": "^fileSearchStores/[^/]+$",
              "location": "path"
            }
          },
          "id": "generativelanguage.fileSearchStores.get",
          "response": {
            "$ref": "FileSearchStore"
          },
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ]
        },
        "delete": {
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}",
          "description": "Deletes a `FileSearchStore`.",
          "httpMethod": "DELETE",
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "parameters": {
            "name": {
              "description": "Required. The resource name of the `FileSearchStore`. Example: `fileSearchStores/my-file-search-store-123`",
              "type": "string",
              "required": true,
              "pattern": "^fileSearchStores/[^/]+$",
              "location": "path"
            },
            "force": {
              "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",
              "location": "query"
            }
          },
          "id": "generativelanguage.fileSearchStores.delete",
          "response": {
            "$ref": "Empty"
          }
        },
        "list": {
          "httpMethod": "GET",
          "flatPath": "v1beta/fileSearchStores",
          "description": "Lists all `FileSearchStores` owned by the user.",
          "id": "generativelanguage.fileSearchStores.list",
          "response": {
            "$ref": "ListFileSearchStoresResponse"
          },
          "parameters": {
            "pageToken": {
              "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",
              "location": "query"
            },
            "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"
            }
          },
          "path": "v1beta/fileSearchStores",
          "parameterOrder": []
        },
        "create": {
          "parameterOrder": [],
          "response": {
            "$ref": "FileSearchStore"
          },
          "httpMethod": "POST",
          "path": "v1beta/fileSearchStores",
          "parameters": {},
          "id": "generativelanguage.fileSearchStores.create",
          "flatPath": "v1beta/fileSearchStores",
          "request": {
            "$ref": "FileSearchStore"
          },
          "description": "Creates an empty `FileSearchStore`."
        },
        "importFile": {
          "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}:importFile",
          "request": {
            "$ref": "ImportFileRequest"
          },
          "description": "Imports a `File` from File Service to a `FileSearchStore`.",
          "path": "v1beta/{+fileSearchStoreName}:importFile",
          "parameters": {
            "fileSearchStoreName": {
              "description": "Required. Immutable. The name of the `FileSearchStore` to import the file into. Example: `fileSearchStores/my-file-search-store-123`",
              "type": "string",
              "required": true,
              "pattern": "^fileSearchStores/[^/]+$",
              "location": "path"
            }
          },
          "id": "generativelanguage.fileSearchStores.importFile",
          "httpMethod": "POST",
          "parameterOrder": [
            "fileSearchStoreName"
          ],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "response": {
            "$ref": "Operation"
          }
        }
      },
      "resources": {
        "operations": {
          "methods": {
            "get": {
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "id": "generativelanguage.fileSearchStores.operations.get",
              "response": {
                "$ref": "Operation"
              },
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "The name of the operation resource.",
                  "required": true,
                  "pattern": "^fileSearchStores/[^/]+/operations/[^/]+$",
                  "location": "path"
                }
              },
              "httpMethod": "GET",
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/operations/{operationsId}",
              "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."
            }
          }
        },
        "upload": {
          "resources": {
            "operations": {
              "methods": {
                "get": {
                  "parameters": {
                    "name": {
                      "pattern": "^fileSearchStores/[^/]+/upload/operations/[^/]+$",
                      "location": "path",
                      "type": "string",
                      "description": "The name of the operation resource.",
                      "required": true
                    }
                  },
                  "id": "generativelanguage.fileSearchStores.upload.operations.get",
                  "response": {
                    "$ref": "Operation"
                  },
                  "path": "v1beta/{+name}",
                  "parameterOrder": [
                    "name"
                  ],
                  "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/upload/operations/{operationsId}",
                  "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.",
                  "httpMethod": "GET"
                }
              }
            }
          }
        },
        "documents": {
          "methods": {
            "delete": {
              "httpMethod": "DELETE",
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",
              "description": "Deletes a `Document`.",
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "id": "generativelanguage.fileSearchStores.documents.delete",
              "response": {
                "$ref": "Empty"
              },
              "parameters": {
                "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."
                },
                "name": {
                  "required": true,
                  "description": "Required. The resource name of the `Document` to delete. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",
                  "type": "string",
                  "location": "path",
                  "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$"
                }
              }
            },
            "list": {
              "httpMethod": "GET",
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents",
              "description": "Lists all `Document`s in a `Corpus`.",
              "path": "v1beta/{+parent}/documents",
              "parameterOrder": [
                "parent"
              ],
              "id": "generativelanguage.fileSearchStores.documents.list",
              "response": {
                "$ref": "ListDocumentsResponse"
              },
              "parameters": {
                "pageSize": {
                  "location": "query",
                  "format": "int32",
                  "type": "integer",
                  "description": "Optional. The maximum number of `Document`s to return (per page). The service may return fewer `Document`s. If unspecified, at most 10 `Document`s will be returned. The maximum size limit is 20 `Document`s per page."
                },
                "parent": {
                  "description": "Required. The name of the `FileSearchStore` containing `Document`s. Example: `fileSearchStores/my-file-search-store-123`",
                  "type": "string",
                  "required": true,
                  "pattern": "^fileSearchStores/[^/]+$",
                  "location": "path"
                },
                "pageToken": {
                  "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.",
                  "location": "query"
                }
              }
            },
            "get": {
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "id": "generativelanguage.fileSearchStores.documents.get",
              "response": {
                "$ref": "Document"
              },
              "parameters": {
                "name": {
                  "description": "Required. The name of the `Document` to retrieve. Example: `fileSearchStores/my-file-search-store-123/documents/the-doc-abc`",
                  "type": "string",
                  "required": true,
                  "pattern": "^fileSearchStores/[^/]+/documents/[^/]+$",
                  "location": "path"
                }
              },
              "httpMethod": "GET",
              "flatPath": "v1beta/fileSearchStores/{fileSearchStoresId}/documents/{documentsId}",
              "description": "Gets information about a specific `Document`."
            }
          }
        }
      }
    },
    "auth_tokens": {
      "methods": {
        "create": {
          "parameterOrder": [],
          "response": {
            "$ref": "AuthToken"
          },
          "httpMethod": "POST",
          "path": "v1beta/auth_tokens",
          "id": "generativelanguage.auth_tokens.create",
          "parameters": {},
          "flatPath": "v1beta/auth_tokens",
          "request": {
            "$ref": "AuthToken"
          },
          "description": "Creates a token that can be used to constrain the behavior of a BidiGenerateContent session."
        }
      }
    },
    "dynamic": {
      "methods": {
        "generateContent": {
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST",
          "id": "generativelanguage.dynamic.generateContent",
          "parameters": {
            "model": {
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "required": true,
              "pattern": "^dynamic/[^/]+$",
              "location": "path"
            }
          },
          "path": "v1beta/{+model}:generateContent",
          "flatPath": "v1beta/dynamic/{dynamicId}:generateContent",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "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."
        },
        "streamGenerateContent": {
          "flatPath": "v1beta/dynamic/{dynamicId}: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`.",
          "path": "v1beta/{+model}:streamGenerateContent",
          "id": "generativelanguage.dynamic.streamGenerateContent",
          "parameters": {
            "model": {
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string",
              "location": "path",
              "pattern": "^dynamic/[^/]+$"
            }
          },
          "httpMethod": "POST",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "GenerateContentResponse"
          }
        }
      }
    },
    "corpora": {
      "methods": {
        "create": {
          "parameterOrder": [],
          "response": {
            "$ref": "Corpus"
          },
          "httpMethod": "POST",
          "path": "v1beta/corpora",
          "id": "generativelanguage.corpora.create",
          "parameters": {},
          "flatPath": "v1beta/corpora",
          "request": {
            "$ref": "Corpus"
          },
          "description": "Creates an empty `Corpus`."
        },
        "get": {
          "parameters": {
            "name": {
              "required": true,
              "description": "Required. The name of the `Corpus`. Example: `corpora/my-corpus-123`",
              "type": "string",
              "location": "path",
              "pattern": "^corpora/[^/]+$"
            }
          },
          "id": "generativelanguage.corpora.get",
          "response": {
            "$ref": "Corpus"
          },
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "flatPath": "v1beta/corpora/{corporaId}",
          "description": "Gets information about a specific `Corpus`.",
          "httpMethod": "GET"
        },
        "delete": {
          "httpMethod": "DELETE",
          "flatPath": "v1beta/corpora/{corporaId}",
          "description": "Deletes a `Corpus`.",
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "id": "generativelanguage.corpora.delete",
          "response": {
            "$ref": "Empty"
          },
          "parameters": {
            "name": {
              "pattern": "^corpora/[^/]+$",
              "location": "path",
              "type": "string",
              "description": "Required. The resource name of the `Corpus`. Example: `corpora/my-corpus-123`",
              "required": true
            },
            "force": {
              "location": "query",
              "description": "Optional. If set to true, any `Document`s and objects related to this `Corpus` will also be deleted. If false (the default), a `FAILED_PRECONDITION` error will be returned if `Corpus` contains any `Document`s.",
              "type": "boolean"
            }
          }
        },
        "list": {
          "id": "generativelanguage.corpora.list",
          "response": {
            "$ref": "ListCorporaResponse"
          },
          "parameters": {
            "pageToken": {
              "location": "query",
              "type": "string",
              "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."
            },
            "pageSize": {
              "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.",
              "type": "integer",
              "location": "query",
              "format": "int32"
            }
          },
          "path": "v1beta/corpora",
          "parameterOrder": [],
          "httpMethod": "GET",
          "flatPath": "v1beta/corpora",
          "description": "Lists all `Corpora` owned by the user."
        }
      },
      "resources": {
        "operations": {
          "methods": {
            "get": {
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "location": "path",
                  "pattern": "^corpora/[^/]+/operations/[^/]+$",
                  "required": true,
                  "type": "string",
                  "description": "The name of the operation resource."
                }
              },
              "id": "generativelanguage.corpora.operations.get",
              "response": {
                "$ref": "Operation"
              },
              "flatPath": "v1beta/corpora/{corporaId}/operations/{operationsId}",
              "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.",
              "httpMethod": "GET"
            }
          }
        },
        "permissions": {
          "methods": {
            "create": {
              "path": "v1beta/{+parent}/permissions",
              "parameters": {
                "parent": {
                  "required": true,
                  "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "type": "string",
                  "location": "path",
                  "pattern": "^corpora/[^/]+$"
                }
              },
              "id": "generativelanguage.corpora.permissions.create",
              "flatPath": "v1beta/corpora/{corporaId}/permissions",
              "request": {
                "$ref": "Permission"
              },
              "description": "Create a permission to a specific resource.",
              "parameterOrder": [
                "parent"
              ],
              "response": {
                "$ref": "Permission"
              },
              "httpMethod": "POST"
            },
            "patch": {
              "httpMethod": "PATCH",
              "response": {
                "$ref": "Permission"
              },
              "parameterOrder": [
                "name"
              ],
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "request": {
                "$ref": "Permission"
              },
              "description": "Updates the permission.",
              "id": "generativelanguage.corpora.permissions.patch",
              "parameters": {
                "name": {
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$",
                  "location": "path",
                  "type": "string",
                  "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",
                  "required": true
                },
                "updateMask": {
                  "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)",
                  "type": "string",
                  "location": "query",
                  "format": "google-fieldmask"
                }
              },
              "path": "v1beta/{+name}"
            },
            "get": {
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "required": true,
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$",
                  "location": "path"
                }
              },
              "id": "generativelanguage.corpora.permissions.get",
              "response": {
                "$ref": "Permission"
              },
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "description": "Gets information about a specific Permission.",
              "httpMethod": "GET"
            },
            "list": {
              "flatPath": "v1beta/corpora/{corporaId}/permissions",
              "description": "Lists permissions for the specific resource.",
              "httpMethod": "GET",
              "parameters": {
                "parent": {
                  "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "type": "string",
                  "required": true,
                  "pattern": "^corpora/[^/]+$",
                  "location": "path"
                },
                "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"
                },
                "pageSize": {
                  "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",
                  "format": "int32"
                }
              },
              "id": "generativelanguage.corpora.permissions.list",
              "response": {
                "$ref": "ListPermissionsResponse"
              },
              "path": "v1beta/{+parent}/permissions",
              "parameterOrder": [
                "parent"
              ]
            },
            "delete": {
              "flatPath": "v1beta/corpora/{corporaId}/permissions/{permissionsId}",
              "description": "Deletes the permission.",
              "httpMethod": "DELETE",
              "parameters": {
                "name": {
                  "pattern": "^corpora/[^/]+/permissions/[^/]+$",
                  "location": "path",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "type": "string",
                  "required": true
                }
              },
              "id": "generativelanguage.corpora.permissions.delete",
              "response": {
                "$ref": "Empty"
              },
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ]
            }
          }
        }
      }
    },
    "generatedFiles": {
      "methods": {
        "list": {
          "parameterOrder": [],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "response": {
            "$ref": "ListGeneratedFilesResponse"
          },
          "httpMethod": "GET",
          "path": "v1beta/generatedFiles",
          "parameters": {
            "pageToken": {
              "type": "string",
              "description": "Optional. A page token from a previous `ListGeneratedFiles` call.",
              "location": "query"
            },
            "pageSize": {
              "type": "integer",
              "description": "Optional. Maximum number of `GeneratedFile`s to return per page. If unspecified, defaults to 10. Maximum `page_size` is 50.",
              "location": "query",
              "format": "int32"
            }
          },
          "id": "generativelanguage.generatedFiles.list",
          "flatPath": "v1beta/generatedFiles",
          "description": "Lists the generated files owned by the requesting project."
        }
      },
      "resources": {
        "operations": {
          "methods": {
            "get": {
              "parameters": {
                "name": {
                  "location": "path",
                  "pattern": "^generatedFiles/[^/]+/operations/[^/]+$",
                  "required": true,
                  "description": "The name of the operation resource.",
                  "type": "string"
                }
              },
              "id": "generativelanguage.generatedFiles.operations.get",
              "response": {
                "$ref": "Operation"
              },
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "flatPath": "v1beta/generatedFiles/{generatedFilesId}/operations/{operationsId}",
              "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.",
              "httpMethod": "GET"
            }
          }
        }
      }
    },
    "cachedContents": {
      "methods": {
        "list": {
          "flatPath": "v1beta/cachedContents",
          "description": "Lists CachedContents.",
          "path": "v1beta/cachedContents",
          "parameters": {
            "pageToken": {
              "type": "string",
              "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"
            },
            "pageSize": {
              "location": "query",
              "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.",
              "type": "integer"
            }
          },
          "id": "generativelanguage.cachedContents.list",
          "httpMethod": "GET",
          "parameterOrder": [],
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "response": {
            "$ref": "ListCachedContentsResponse"
          }
        },
        "delete": {
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "Empty"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "httpMethod": "DELETE",
          "path": "v1beta/{+name}",
          "id": "generativelanguage.cachedContents.delete",
          "parameters": {
            "name": {
              "location": "path",
              "pattern": "^cachedContents/[^/]+$",
              "required": true,
              "type": "string",
              "description": "Required. The resource name referring to the content cache entry Format: `cachedContents/{id}`"
            }
          },
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "description": "Deletes CachedContent resource."
        },
        "get": {
          "httpMethod": "GET",
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "response": {
            "$ref": "CachedContent"
          },
          "parameterOrder": [
            "name"
          ],
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "description": "Reads CachedContent resource.",
          "parameters": {
            "name": {
              "required": true,
              "description": "Required. The resource name referring to the content cache entry. Format: `cachedContents/{id}`",
              "type": "string",
              "location": "path",
              "pattern": "^cachedContents/[^/]+$"
            }
          },
          "id": "generativelanguage.cachedContents.get",
          "path": "v1beta/{+name}"
        },
        "patch": {
          "parameters": {
            "name": {
              "location": "path",
              "pattern": "^cachedContents/[^/]+$",
              "required": true,
              "description": "Output only. Identifier. The resource name referring to the cached content. Format: `cachedContents/{id}`",
              "type": "string"
            },
            "updateMask": {
              "location": "query",
              "format": "google-fieldmask",
              "description": "The list of fields to update.",
              "type": "string"
            }
          },
          "id": "generativelanguage.cachedContents.patch",
          "path": "v1beta/{+name}",
          "flatPath": "v1beta/cachedContents/{cachedContentsId}",
          "request": {
            "$ref": "CachedContent"
          },
          "description": "Updates CachedContent resource (only expiration is updatable).",
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "response": {
            "$ref": "CachedContent"
          },
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "PATCH"
        },
        "create": {
          "httpMethod": "POST",
          "parameterOrder": [],
          "response": {
            "$ref": "CachedContent"
          },
          "scopes": [
            "https://www.googleapis.com/auth/devstorage.read_only"
          ],
          "flatPath": "v1beta/cachedContents",
          "request": {
            "$ref": "CachedContent"
          },
          "description": "Creates CachedContent resource.",
          "path": "v1beta/cachedContents",
          "id": "generativelanguage.cachedContents.create",
          "parameters": {}
        }
      }
    },
    "batches": {
      "methods": {
        "updateEmbedContentBatch": {
          "parameters": {
            "name": {
              "required": true,
              "type": "string",
              "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`.",
              "location": "path",
              "pattern": "^batches/[^/]+$"
            },
            "updateMask": {
              "location": "query",
              "format": "google-fieldmask",
              "type": "string",
              "description": "Optional. The list of fields to update."
            }
          },
          "id": "generativelanguage.batches.updateEmbedContentBatch",
          "path": "v1beta/{+name}:updateEmbedContentBatch",
          "flatPath": "v1beta/batches/{batchesId}:updateEmbedContentBatch",
          "request": {
            "$ref": "EmbedContentBatch"
          },
          "description": "Updates a batch of EmbedContent requests for batch processing.",
          "response": {
            "$ref": "EmbedContentBatch"
          },
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "PATCH"
        },
        "cancel": {
          "id": "generativelanguage.batches.cancel",
          "response": {
            "$ref": "Empty"
          },
          "parameters": {
            "name": {
              "type": "string",
              "description": "The name of the operation resource to be cancelled.",
              "required": true,
              "pattern": "^batches/[^/]+$",
              "location": "path"
            }
          },
          "path": "v1beta/{+name}:cancel",
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "POST",
          "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`."
        },
        "updateGenerateContentBatch": {
          "parameterOrder": [
            "name"
          ],
          "response": {
            "$ref": "GenerateContentBatch"
          },
          "httpMethod": "PATCH",
          "path": "v1beta/{+name}:updateGenerateContentBatch",
          "parameters": {
            "name": {
              "location": "path",
              "pattern": "^batches/[^/]+$",
              "required": true,
              "type": "string",
              "description": "Output only. Identifier. Resource name of the batch. Format: `batches/{batch_id}`."
            },
            "updateMask": {
              "location": "query",
              "format": "google-fieldmask",
              "description": "Optional. The list of fields to update.",
              "type": "string"
            }
          },
          "id": "generativelanguage.batches.updateGenerateContentBatch",
          "flatPath": "v1beta/batches/{batchesId}:updateGenerateContentBatch",
          "request": {
            "$ref": "GenerateContentBatch"
          },
          "description": "Updates a batch of GenerateContent requests for batch processing."
        },
        "get": {
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "id": "generativelanguage.batches.get",
          "response": {
            "$ref": "Operation"
          },
          "parameters": {
            "name": {
              "type": "string",
              "description": "The name of the operation resource.",
              "required": true,
              "pattern": "^batches/[^/]+$",
              "location": "path"
            }
          },
          "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."
        },
        "list": {
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "parameters": {
            "pageToken": {
              "description": "The standard list page token.",
              "type": "string",
              "location": "query"
            },
            "pageSize": {
              "description": "The standard list page size.",
              "type": "integer",
              "location": "query",
              "format": "int32"
            },
            "name": {
              "location": "path",
              "pattern": "^batches$",
              "required": true,
              "type": "string",
              "description": "The name of the operation's parent resource."
            },
            "filter": {
              "type": "string",
              "description": "The standard list filter.",
              "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."
            }
          },
          "id": "generativelanguage.batches.list",
          "response": {
            "$ref": "ListOperationsResponse"
          },
          "flatPath": "v1beta/batches",
          "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
          "httpMethod": "GET"
        },
        "delete": {
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "parameters": {
            "name": {
              "description": "The name of the operation resource to be deleted.",
              "type": "string",
              "required": true,
              "pattern": "^batches/[^/]+$",
              "location": "path"
            }
          },
          "id": "generativelanguage.batches.delete",
          "response": {
            "$ref": "Empty"
          },
          "flatPath": "v1beta/batches/{batchesId}",
          "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`.",
          "httpMethod": "DELETE"
        }
      }
    },
    "tunedModels": {
      "methods": {
        "get": {
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ],
          "id": "generativelanguage.tunedModels.get",
          "response": {
            "$ref": "TunedModel"
          },
          "parameters": {
            "name": {
              "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`",
              "type": "string",
              "required": true,
              "pattern": "^tunedModels/[^/]+$",
              "location": "path"
            }
          },
          "httpMethod": "GET",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "description": "Gets information about a specific TunedModel."
        },
        "list": {
          "httpMethod": "GET",
          "flatPath": "v1beta/tunedModels",
          "description": "Lists created tuned models.",
          "id": "generativelanguage.tunedModels.list",
          "response": {
            "$ref": "ListTunedModelsResponse"
          },
          "parameters": {
            "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": {
              "location": "query",
              "description": "Optional. A page token, received from a previous `ListTunedModels` call. Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page. When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.",
              "type": "string"
            },
            "pageSize": {
              "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.",
              "type": "integer",
              "location": "query",
              "format": "int32"
            }
          },
          "path": "v1beta/tunedModels",
          "parameterOrder": []
        },
        "delete": {
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "description": "Deletes a tuned model.",
          "httpMethod": "DELETE",
          "parameters": {
            "name": {
              "type": "string",
              "description": "Required. The resource name of the model. Format: `tunedModels/my-model-id`",
              "required": true,
              "pattern": "^tunedModels/[^/]+$",
              "location": "path"
            }
          },
          "id": "generativelanguage.tunedModels.delete",
          "response": {
            "$ref": "Empty"
          },
          "path": "v1beta/{+name}",
          "parameterOrder": [
            "name"
          ]
        },
        "generateText": {
          "parameters": {
            "model": {
              "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",
              "pattern": "^tunedModels/[^/]+$"
            }
          },
          "id": "generativelanguage.tunedModels.generateText",
          "path": "v1beta/{+model}:generateText",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateText",
          "request": {
            "$ref": "GenerateTextRequest"
          },
          "description": "Generates a response from the model given an input message.",
          "response": {
            "$ref": "GenerateTextResponse"
          },
          "parameterOrder": [
            "model"
          ],
          "httpMethod": "POST"
        },
        "asyncBatchEmbedContent": {
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:asyncBatchEmbedContent",
          "request": {
            "$ref": "AsyncBatchEmbedContentRequest"
          },
          "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.tunedModels.asyncBatchEmbedContent",
          "parameters": {
            "model": {
              "location": "path",
              "pattern": "^tunedModels/[^/]+$",
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string"
            }
          },
          "path": "v1beta/{+model}:asyncBatchEmbedContent",
          "httpMethod": "POST",
          "response": {
            "$ref": "Operation"
          },
          "parameterOrder": [
            "model"
          ]
        },
        "patch": {
          "id": "generativelanguage.tunedModels.patch",
          "parameters": {
            "name": {
              "type": "string",
              "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`",
              "required": true,
              "pattern": "^tunedModels/[^/]+$",
              "location": "path"
            },
            "updateMask": {
              "description": "Optional. The list of fields to update.",
              "type": "string",
              "location": "query",
              "format": "google-fieldmask"
            }
          },
          "path": "v1beta/{+name}",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}",
          "request": {
            "$ref": "TunedModel"
          },
          "description": "Updates a tuned model.",
          "response": {
            "$ref": "TunedModel"
          },
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "PATCH"
        },
        "batchGenerateContent": {
          "path": "v1beta/{+model}:batchGenerateContent",
          "id": "generativelanguage.tunedModels.batchGenerateContent",
          "parameters": {
            "model": {
              "required": true,
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "location": "path",
              "pattern": "^tunedModels/[^/]+$"
            }
          },
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:batchGenerateContent",
          "request": {
            "$ref": "BatchGenerateContentRequest"
          },
          "description": "Enqueues a batch of `GenerateContent` requests for batch processing.",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "Operation"
          },
          "httpMethod": "POST"
        },
        "streamGenerateContent": {
          "flatPath": "v1beta/tunedModels/{tunedModelsId}: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`.",
          "path": "v1beta/{+model}:streamGenerateContent",
          "parameters": {
            "model": {
              "pattern": "^tunedModels/[^/]+$",
              "location": "path",
              "type": "string",
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "required": true
            }
          },
          "id": "generativelanguage.tunedModels.streamGenerateContent",
          "httpMethod": "POST",
          "parameterOrder": [
            "model"
          ],
          "response": {
            "$ref": "GenerateContentResponse"
          }
        },
        "generateContent": {
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:generateContent",
          "request": {
            "$ref": "GenerateContentRequest"
          },
          "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.",
          "parameters": {
            "model": {
              "location": "path",
              "pattern": "^tunedModels/[^/]+$",
              "required": true,
              "description": "Required. The name of the `Model` to use for generating the completion. Format: `models/{model}`.",
              "type": "string"
            }
          },
          "id": "generativelanguage.tunedModels.generateContent",
          "path": "v1beta/{+model}:generateContent",
          "httpMethod": "POST",
          "response": {
            "$ref": "GenerateContentResponse"
          },
          "parameterOrder": [
            "model"
          ]
        },
        "create": {
          "httpMethod": "POST",
          "response": {
            "$ref": "Operation"
          },
          "parameterOrder": [],
          "flatPath": "v1beta/tunedModels",
          "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",
          "id": "generativelanguage.tunedModels.create",
          "parameters": {
            "tunedModelId": {
              "description": "Optional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: `[a-z]([a-z0-9-]{0,38}[a-z0-9])?`.",
              "type": "string",
              "location": "query"
            }
          },
          "path": "v1beta/tunedModels"
        },
        "transferOwnership": {
          "parameters": {
            "name": {
              "location": "path",
              "pattern": "^tunedModels/[^/]+$",
              "required": true,
              "type": "string",
              "description": "Required. The resource name of the tuned model to transfer ownership. Format: `tunedModels/my-model-id`"
            }
          },
          "id": "generativelanguage.tunedModels.transferOwnership",
          "path": "v1beta/{+name}:transferOwnership",
          "flatPath": "v1beta/tunedModels/{tunedModelsId}:transferOwnership",
          "request": {
            "$ref": "TransferOwnershipRequest"
          },
          "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.",
          "response": {
            "$ref": "TransferOwnershipResponse"
          },
          "parameterOrder": [
            "name"
          ],
          "httpMethod": "POST"
        }
      },
      "resources": {
        "operations": {
          "methods": {
            "list": {
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/operations",
              "description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
              "httpMethod": "GET",
              "path": "v1beta/{+name}/operations",
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "required": true,
                  "type": "string",
                  "description": "The name of the operation's parent resource.",
                  "location": "path",
                  "pattern": "^tunedModels/[^/]+$"
                },
                "filter": {
                  "description": "The standard list filter.",
                  "type": "string",
                  "location": "query"
                },
                "returnPartialSuccess": {
                  "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.",
                  "location": "query"
                },
                "pageSize": {
                  "type": "integer",
                  "description": "The standard list page size.",
                  "location": "query",
                  "format": "int32"
                },
                "pageToken": {
                  "location": "query",
                  "description": "The standard list page token.",
                  "type": "string"
                }
              },
              "id": "generativelanguage.tunedModels.operations.list",
              "response": {
                "$ref": "ListOperationsResponse"
              }
            },
            "get": {
              "httpMethod": "GET",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/operations/{operationsId}",
              "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",
              "response": {
                "$ref": "Operation"
              },
              "parameters": {
                "name": {
                  "location": "path",
                  "pattern": "^tunedModels/[^/]+/operations/[^/]+$",
                  "required": true,
                  "type": "string",
                  "description": "The name of the operation resource."
                }
              },
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ]
            }
          }
        },
        "permissions": {
          "methods": {
            "patch": {
              "parameters": {
                "name": {
                  "location": "path",
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",
                  "required": true,
                  "description": "Output only. Identifier. The permission name. A unique name will be generated on create. Examples: tunedModels/{tuned_model}/permissions/{permission} corpora/{corpus}/permissions/{permission} Output only.",
                  "type": "string"
                },
                "updateMask": {
                  "location": "query",
                  "format": "google-fieldmask",
                  "type": "string",
                  "description": "Required. The list of fields to update. Accepted ones: - role (`Permission.role` field)"
                }
              },
              "id": "generativelanguage.tunedModels.permissions.patch",
              "path": "v1beta/{+name}",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",
              "request": {
                "$ref": "Permission"
              },
              "description": "Updates the permission.",
              "response": {
                "$ref": "Permission"
              },
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "PATCH"
            },
            "create": {
              "response": {
                "$ref": "Permission"
              },
              "parameterOrder": [
                "parent"
              ],
              "httpMethod": "POST",
              "parameters": {
                "parent": {
                  "description": "Required. The parent resource of the `Permission`. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "type": "string",
                  "required": true,
                  "pattern": "^tunedModels/[^/]+$",
                  "location": "path"
                }
              },
              "id": "generativelanguage.tunedModels.permissions.create",
              "path": "v1beta/{+parent}/permissions",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions",
              "request": {
                "$ref": "Permission"
              },
              "description": "Create a permission to a specific resource."
            },
            "list": {
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions",
              "description": "Lists permissions for the specific resource.",
              "httpMethod": "GET",
              "parameters": {
                "pageSize": {
                  "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",
                  "format": "int32"
                },
                "parent": {
                  "description": "Required. The parent resource of the permissions. Formats: `tunedModels/{tuned_model}` `corpora/{corpus}`",
                  "type": "string",
                  "required": true,
                  "pattern": "^tunedModels/[^/]+$",
                  "location": "path"
                },
                "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"
                }
              },
              "id": "generativelanguage.tunedModels.permissions.list",
              "response": {
                "$ref": "ListPermissionsResponse"
              },
              "path": "v1beta/{+parent}/permissions",
              "parameterOrder": [
                "parent"
              ]
            },
            "delete": {
              "httpMethod": "DELETE",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",
              "description": "Deletes the permission.",
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ],
              "id": "generativelanguage.tunedModels.permissions.delete",
              "response": {
                "$ref": "Empty"
              },
              "parameters": {
                "name": {
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "type": "string",
                  "required": true,
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$",
                  "location": "path"
                }
              }
            },
            "get": {
              "httpMethod": "GET",
              "flatPath": "v1beta/tunedModels/{tunedModelsId}/permissions/{permissionsId}",
              "description": "Gets information about a specific Permission.",
              "id": "generativelanguage.tunedModels.permissions.get",
              "response": {
                "$ref": "Permission"
              },
              "parameters": {
                "name": {
                  "required": true,
                  "type": "string",
                  "description": "Required. The resource name of the permission. Formats: `tunedModels/{tuned_model}/permissions/{permission}` `corpora/{corpus}/permissions/{permission}`",
                  "location": "path",
                  "pattern": "^tunedModels/[^/]+/permissions/[^/]+$"
                }
              },
              "path": "v1beta/{+name}",
              "parameterOrder": [
                "name"
              ]
            }
          }
        }
      }
    }
  },
  "baseUrl": "https://generativelanguage.googleapis.com/",
  "discoveryVersion": "v1",
  "fullyEncodeReservedExpansion": true,
  "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.",
  "title": "Gemini API",
  "name": "generativelanguage",
  "parameters": {
    "callback": {
      "type": "string",
      "description": "JSONP",
      "location": "query"
    },
    "prettyPrint": {
      "description": "Returns response with indentations and line breaks.",
      "type": "boolean",
      "default": "true",
      "location": "query"
    },
    "upload_protocol": {
      "location": "query",
      "type": "string",
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\")."
    },
    "alt": {
      "type": "string",
      "default": "json",
      "description": "Data format for response.",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "location": "query",
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ]
    },
    "key": {
      "location": "query",
      "type": "string",
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token."
    },
    "fields": {
      "location": "query",
      "description": "Selector specifying which fields to include in a partial response.",
      "type": "string"
    },
    "uploadType": {
      "location": "query",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
      "type": "string"
    },
    "access_token": {
      "location": "query",
      "type": "string",
      "description": "OAuth access token."
    },
    "quotaUser": {
      "location": "query",
      "type": "string",
      "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."
    },
    "$.xgafv": {
      "type": "string",
      "description": "V1 error format.",
      "enum": [
        "1",
        "2"
      ],
      "location": "query",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ]
    },
    "oauth_token": {
      "location": "query",
      "description": "OAuth 2.0 token for the current user.",
      "type": "string"
    }
  },
  "canonicalName": "Generative Language",
  "version_module": true,
  "ownerName": "Google",
  "mtlsRootUrl": "https://generativelanguage.mtls.googleapis.com/"
}
